@ckeditor/ckeditor5-track-changes 38.0.0 → 38.1.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 (79) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +10 -8
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.d.ts +3 -2
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.d.ts +3 -2
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.d.ts +3 -2
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.d.ts +3 -2
  43. package/src/integrations/shiftentercommand.js +1 -1
  44. package/src/integrations/standardeditingmode.js +1 -1
  45. package/src/integrations/style.js +1 -1
  46. package/src/integrations/table.js +1 -1
  47. package/src/integrations/tablecaption.d.ts +3 -2
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.d.ts +3 -2
  50. package/src/integrations/tableclipboard.js +1 -1
  51. package/src/integrations/tablecolumnresize.js +1 -1
  52. package/src/integrations/tableheadings.d.ts +3 -2
  53. package/src/integrations/tableheadings.js +1 -1
  54. package/src/integrations/tablemergesplit.d.ts +3 -2
  55. package/src/integrations/tablemergesplit.js +1 -1
  56. package/src/integrations/tableofcontents.js +1 -1
  57. package/src/integrations/tableproperties.d.ts +1 -1
  58. package/src/integrations/tableproperties.js +1 -1
  59. package/src/integrations/template.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.d.ts +1 -1
  64. package/src/suggestion.js +1 -1
  65. package/src/suggestiondescriptionfactory.js +1 -1
  66. package/src/trackchanges.d.ts +5 -5
  67. package/src/trackchanges.js +1 -1
  68. package/src/trackchangesdata.d.ts +4 -5
  69. package/src/trackchangesdata.js +1 -1
  70. package/src/trackchangesediting.d.ts +49 -5
  71. package/src/trackchangesediting.js +1 -1
  72. package/src/trackchangesui.d.ts +5 -5
  73. package/src/trackchangesui.js +1 -1
  74. package/src/ui/suggestioncontroller.js +1 -1
  75. package/src/ui/view/basesuggestionthreadview.js +1 -1
  76. package/src/ui/view/suggestionthreadview.d.ts +0 -2
  77. package/src/ui/view/suggestionthreadview.js +1 -1
  78. package/src/utils/common-translations.js +1 -1
  79. package/src/utils/utils.js +1 -1
@@ -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:()=>xc,TrackChanges:()=>Ac,TrackChangesData:()=>Mc,TrackChangesEditing:()=>zx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["TrackChangesCommand","isEnabled","_disableUnsupportedCommands","_enableCommands","refresh","editor","affectsData","commands","value","_enabledCommands"];var c,l;c=x,l=212,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return x[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x7")]=e,this.value=!1,this[d("0x2")](),this._isEnabledBasedOnSelection=!1}[d("0x2")](){this[d("0x9")]=!0}execute(){this[d("0x6")]=!this[d("0x6")],this.value?this._disableUnsupportedCommands():this[d("0x1")]()}[d("0x0")](){for(const t of this[d("0x3")][d("0x5")][d("0x5")]())t[d("0x4")]&&!this._enabledCommands.has(t)&&t.forceDisabled(d("0x8"))}[d("0x1")](){for(const t of this.editor[d("0x5")][d("0x5")]())t[d("0x4")]&&!this._enabledCommands.has(t)&&t.clearForceDisabled(d("0x8"))}}const g=["isEnabled","refresh","_suggestions","acceptSuggestion","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing","getRanges","editor"];var m,f;m=g,f=239,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("0x6")]=e,this[h("0x5")](),this[h("0x8")]=!1}[h("0x5")](){this[h("0x4")]=!0}execute(t){const n=this[h("0x6")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x2")]();this[h("0x3")].model[h("0x0")](o)&&this.editor.plugins.get(h("0x1"))[h("0x7")](n)}}const b=["execute","canEditAt","TrackChangesEditing","plugins","track-changes-discard-suggestion-not-found","refresh","model","isEnabled","getRanges","editor","get","_suggestions"];var E,_;E=b,_=127,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("0x4")]=e,this[T("0xa")](),this._isEnabledBasedOnSelection=!1}[T("0xa")](){this[T("0x0")]=!0}[T("0x5")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(T("0x9"),this);const o=n[T("0x1")]();this[T("0x2")][T("0xb")][T("0x6")](o)&&this[T("0x2")][T("0x8")][T("0x3")](T("0x7")).discardSuggestion(n)}}const y=["isArray","isTouching","replace","createPositionAt","change","splice","createRange","next","createPositionAfter"," [color ","end","length","createPositionBefore","type","join","from","getRanges","getRange","execute","start","value","schema","isInContent","isIntersecting","map","color","deletion","isMultiRange","content"];var k,A;k=y,A=437,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)=>v("0x18")==t.type&&v("0x18")!=e[v("0xb")]?-1:v("0x18")!=t[v("0xb")]&&v("0x18")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x13")];for(;o<t[v("0x9")];){const i=t[o],a=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,a)||(s.push(e[v("0x4")](n,r.isObject(i)?e[v("0x6")](i):e[v("0x1")](i,v("0x8")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x6")](e),s=t[v("0xa")](n);return o[v("0x1c")](s)}function L(t,e,n){for(;n[v("0x9")];){const o=n[v("0x3")](0,100);t[v("0x2")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0x10")](t.id)}))}}const N=["values","_suggestions","getRanges","execute","refresh","_command","editor","from","_isEnabledBasedOnSelection","model","isInContent"];var M,w;M=N,w=380,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class P extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x6")]=n,this[O("0x9")](),this[O("0x2")]=!1}[O("0x9")](){const t=Array[O("0x1")](this._suggestions.values()).some((t=>t[O("0x4")]));this.isEnabled=this._command.isEnabled&&t}[O("0x8")](){const t=R(Array[O("0x1")](this._suggestions[O("0x5")]()));for(const e of t){const t=e[O("0x7")]();if(!this.editor[O("0x3")].canEditAt(t))return}L(this[O("0x0")][O("0x3")],this[O("0xa")],t)}}const F=["_selectedSuggestions","document","isEnabled","size","model","_suggestions","values","execute","refresh","_command","canEditAt","selection","editor","_isEnabledBasedOnSelection","from","getRanges"];var D,B;D=F,B=206,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return F[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xb")]=e,this[j("0x7")]=n,this._selectedSuggestions=new Set,this[j("0xa")](),this[j("0xf")]=!1}[j("0xa")](){const t=this.editor[j("0x6")][j("0x3")][j("0xd")],e=Array[j("0x0")](this[j("0x7")][j("0x8")]());this[j("0x2")]=function(t,e){const n=Array[v("0xd")](t[v("0xe")]()),o=new Set;for(const s of e)if(s[v("0x14")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0xf")]();(e[v("0x15")](r)||t.isCollapsed&&!s[v("0x19")]&&s[v("0x5")]&&r[v("0x8")][v("0x1c")](e[v("0x11")]))&&o.add(s)}return o}(t,e),this[j("0x4")]=this[j("0xb")][j("0x4")]&&!!this[j("0x2")][j("0x5")]}[j("0x9")](){const t=R(Array[j("0x0")](this[j("0x2")]));for(const e of t){const t=e[j("0x1")]();if(!this[j("0xe")][j("0x6")][j("0xc")](t))return}L(this[j("0xe")][j("0x6")],this[j("0xb")],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 $=function(t){return W(this.__data__,t)>-1};const q=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 X(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])}}X.prototype.clear=G,X.prototype.delete=V,X.prototype.get=K,X.prototype.has=$,X.prototype.set=q;const J=X;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,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),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 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 Pt=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Pt.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=Ft,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 $t=function(t){return zt(this,t).has(t)};const qt=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 Xt(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])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Vt,Xt.prototype.get=Kt,Xt.prototype.has=$t,Xt.prototype.set=qt;const Jt=Xt;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 a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=xe(function(){return arguments}())?xe:function(t){return ae(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 ae(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&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,a=i?ie(t.length,String):[],x=a.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,x))||a.push(c);return a};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Pe=function(t,e){return function(n){return t(e(n))}};const Fe=Pe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Fe(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 $e="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=$e&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=qe&&qe.exports===$e?ot.Buffer:void 0,Je=Xe?Xe.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 an=Pe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(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,xn)};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 Pn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Fn=st?st.prototype:void 0,Dn=Fn?Fn.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 Pn(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(an(t))};const zn=function(t){return ae(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const $n=function(t){return ae(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const Xn=qn?ke(qn):$n;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 a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var d=ge(e);if(d){if(a=Ln(e),!x)return Ze(e,a)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:Wn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[u])return r?e:{};a=Un(e,u,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),Xn(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.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(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(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 ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(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,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))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<a;){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 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 a=So;case"[object Set]":var x=1&o;if(a||(a=Io),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(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,a=dn(t),x=a.length;if(x!=dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[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<x;){var f=t[l=a[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 Po="[object Arguments]",Fo="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),a=ge(e),x=i?Fo:Sn(t),c=a?Fo:Sn(e),l=(x=x==Po?Do:x)==Do,d=(c=c==Po?Do:c)==Do,u=x==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,x,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||!ae(e)&&!ae(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 $o=function(t,e){return null==t||Ko(t,e)},qo=["end","delete","isExternal","_markerNames","push","getItems","next","previous","hasComments","change","nodeBefore","removeAttribute","onAttributesChange","getFirstRange","createdAt","from","type","getMarkerNames","commentThread","_model","_onAttributesChange","attributes","_onAccept","getAllAdjacentSuggestions","accept","setAttribute","decorate","get","discard","creator","_onDiscard","isInContent","head","data","onAccept","getMultiRangeId","substr","size","subType","removeMarkers","getContainedElement","getMarkers","author","getRange","toJSON","map","getFirstMarker","authoredAt","onDiscard","isIntersecting","reduce","set","addMarkerName","addRange","_saved","getRanges","removeMarker","add","isMultiRange"];var Xo,Jo;Xo=qo,Jo=459,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x1d")]=e[Qo("0x1d")],this.subType=e[Qo("0x33")]||null,this[Qo("0x37")]=e.author,this[Qo("0x2a")]=e[Qo("0x2a")]||e[Qo("0x37")],this[Qo("0xf")]=Boolean(e[Qo("0x22")]&&e[Qo("0x22")]["@external"]),this[Qo("0x2e")]=null,this._model=t,this[Qo("0x23")]=e[Qo("0x2f")],this[Qo("0x2b")]=e[Qo("0x2")],this[Qo("0x21")]=e[Qo("0x19")],this[Qo("0x10")]=new Set,this[Qo("0x1b")]=null,this[Qo("0x5")](Qo("0x1"),null),this.set(Qo("0x22"),e[Qo("0x22")]||{}),this[Qo("0x5")]("previous",null),this.set(Qo("0x13"),null),this[Qo("0x5")]("commentThread",null),this[Qo("0x5")](Qo("0x8"),!1),this[Qo("0x27")](Qo("0x25")),this[Qo("0x27")](Qo("0x29"))}get[Qo("0x2d")](){let t=this;for(;t[Qo("0x14")];)t=t.previous;return t}get[Qo("0x15")](){return!!this[Qo("0x1f")]&&this.commentThread.length>0}get[Qo("0xc")](){return 0!=this._markerNames[Qo("0x32")]&&6==Array[Qo("0x1c")](this[Qo("0x10")])[0].split(":").length}get[Qo("0x2c")](){return null!==this[Qo("0x0")]()}[Qo("0x6")](t){this._markerNames[Qo("0xb")](t)}getMarkerNames(){return Array[Qo("0x1c")](this[Qo("0x10")])}[Qo("0x36")](){return this[Qo("0x1e")]()[Qo("0x3a")]((t=>this[Qo("0x20")].markers[Qo("0x28")](t))).filter((t=>t))}[Qo("0x0")](){return this.getMarkers()[0]||null}[Qo("0x34")](){this[Qo("0x20")][Qo("0x16")]((t=>{for(const e of this[Qo("0x36")]())t[Qo("0xa")](e)})),this._markerNames.clear()}[Qo("0xa")](t){this._model.change((e=>{e.removeMarker(t)})),this[Qo("0x10")][Qo("0xe")](t)}[Qo("0x7")](t){const e="suggestion:"+this.type+":"+this[Qo("0x33")]+":"+this.id+":"+this[Qo("0x2a")].id+":"+Zo.getMultiRangeId();this[Qo("0x6")](e),this._model[Qo("0x16")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x9")]())if(e[Qo("0x3")](t))return!0;return!1}[Qo("0x9")](){return this.getMarkers()[Qo("0x3a")]((t=>t[Qo("0x38")]()))}[Qo("0x12")](){return this[Qo("0x9")]()[Qo("0x4")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x1a")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}[Qo("0x35")](){const t=this[Qo("0x9")]();if(1!=t.length)return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0xd")][Qo("0x17")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x25")](){this[Qo("0x23")](this[Qo("0x9")](),this[Qo("0x2e")],this[Qo("0x22")]),this[Qo("0x34")]()}[Qo("0x29")](){this._onDiscard(this[Qo("0x9")](),this[Qo("0x2e")],this[Qo("0x22")]),this[Qo("0x34")]()}[Qo("0x24")](){const t=[];let e=this[Qo("0x2d")];for(;e;)t[Qo("0x11")](e),e=e[Qo("0x13")];return t}[Qo("0x26")](t,e){const n=eo(this[Qo("0x22")]);_o(n,t,e),Go(n,this[Qo("0x22")])||(this[Qo("0x22")]=n,this[Qo("0x21")](n))}[Qo("0x18")](t){const e=eo(this[Qo("0x22")]);$o(e,t),Go(e,this[Qo("0x22")])||(this[Qo("0x22")]=e,this._onAttributesChange(this[Qo("0x22")]))}[Qo("0x39")](){return{id:this.id,type:this[Qo("0x33")]?this[Qo("0x1d")]+":"+this[Qo("0x33")]:this[Qo("0x1d")],authorId:this[Qo("0x2a")].id,createdAt:this.createdAt,hasComments:this[Qo("0x15")],data:this[Qo("0x2e")],attributes:this[Qo("0x22")]}}static[Qo("0x30")](){return(0,e.uid)()[Qo("0x31")](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=["getWalker","deletion","matchingCallback","type","previousSibling","getFirstRange","*Remove:* %0","_customCallbacks","item","nextSibling","pop","isInContent","indexOf","function","data","getDescriptions","addObject","$textProxy","end","registerDescriptionCallback","_itemLabelsCallbacks","_schema","EmptyContainer","getItemLabel","_itemLabels","_addDescriptionItems","elementEnd","REPLACE_TEXT","set","ELEMENT_SPACE","isEqual","remove","isObject","$text","$1 $2","*Merge:* %0","insertion","get","_resolveDescriptionItems","length","text","addContainer","element","start","checkChild","quantity","isEmpty","softBreak","*Insert:* %0","removeContainer","replace","_locale","Object","push","add","name","normal","Container","removeEmptyContainer","elementStart","match"];var es,ns;es=ts,ns=455,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("0x39")]=new Map,this[os("0x35")]=[],this._schema=t,this[os("0x17")]=e}[os("0x30")](t){const e=[];for(let n=0;n<t[os("0xb")];n++){const o=t[n];if(!o[os("0x2c")])continue;let s=!1;for(const t of this[os("0x28")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this[os("0x3a")](e,o);const s=t[n+1];if(s&&!o[os("0x26")]()[os("0x33")][os("0x2")](s[os("0x26")]()[os("0xf")])){const t=e[e[os("0xb")]-1],n=os("0x8")==o.type?os("0x1a"):os("0x3");t&&"text"==t[os("0x24")]&&(t[n]+="\n")}}}return this[os("0xa")](e)}[os("0x34")](t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x1c")]){os("0x2e")==typeof t?(0,e.insertToPriorityArray)(this[os("0x35")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x0")](t,n)}[os("0x38")](t,e=1){let n;for(const e of this[os("0x35")])if(e[os("0x23")](t)){n=e.label;break}return n||(n=this[os("0x39")][os("0x9")](t[os("0x1b")])),n?n(e):1!==e?e+" "+t[os("0x1b")]+"s":""+t.name}[os("0x3a")](t,e){const n=e[os("0x26")]()[os("0x21")](),o="insertion"==e[os("0x24")]?os("0x1a"):os("0x3");for(const e of n){const s=e[os("0x29")],r=t[t[os("0xb")]-1];if(s.is(os("0x32")))r&&r[os("0x24")].indexOf(os("0x1d"))>-1&&t[os("0x2b")](),r&&os("0xc")==r[os("0x24")]?r[o]+=s[os("0x2f")]:t.push({type:os("0xc"),add:os("0x1a")==o?s[os("0x2f")]:"",remove:"remove"==o?s.data:""});else if(this[os("0x36")][os("0x4")](s)){const i=s;if(r&&r[os("0x24")].indexOf(os("0x1d"))>-1&&t[os("0x2b")](),os("0x3b")==e[os("0x24")])continue;r&&r[os("0x24")]==o+"Object"&&r[os("0xe")][os("0x1b")]==i[os("0x1b")]?r[os("0x11")]++:t[os("0x19")]({type:o+os("0x18"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x24")]&&t[os("0x29")]==s)))}else if(this[os("0x36")][os("0x10")](s,os("0x5"))||s.is(os("0xe"),os("0x13"))){const n=s;if("add"==o&&os("0x1f")==e[os("0x24")]||os("0x3")==o&&os("0x3b")==e[os("0x24")])continue;if(r&&-1==r[os("0x24")][os("0x2d")](os("0x1d"))){os("0xc")==r[os("0x24")]&&(r[o]+="\n");continue}let i;if(i=os("0x1a")==o?n[os("0x2a")]&&!this._schema.isObject(n[os("0x2a")])?n[os("0x2a")]:null:n.previousSibling&&!this._schema[os("0x4")](n.previousSibling)?n[os("0x25")]:null,n.isEmpty||i&&i[os("0x12")]){const e=i&&i[os("0x12")]?i:n;r&&r.type==o+os("0x37")&&r[os("0xe")].name==e[os("0x1b")]?r[os("0x11")]++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0xa")](t){const e=this[os("0x17")],n=[];for(const o of t){switch(o[os("0x24")]){case os("0xc"):if(o[os("0x1a")]=o[os("0x1a")][os("0x16")](/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o[os("0x3")]=o.remove[os("0x16")](/(\S)\u000A+(\S)/g,os("0x6"))[os("0x16")](/\u000A/g,""),""!=o[os("0x1a")]&&""!=o.remove){n[os("0x19")]({type:os("0x16"),content:Yo(e,os("0x3c"),['"'+o[os("0x3")]+'"','"'+o[os("0x1a")]+'"'])});continue}if(null!=o[os("0x1a")][os("0x20")](/^ +$/)){n[os("0x19")]({type:os("0x8"),content:Yo(e,"*Insert:* %0",Yo(e,"ELEMENT_SPACE",o.add[os("0xb")]))});continue}if(null!=o[os("0x3")][os("0x20")](/^ +$/)){n[os("0x19")]({type:os("0x22"),content:Yo(e,os("0x27"),Yo(e,os("0x1"),o.remove[os("0xb")]))});continue}if(""!=o[os("0x1a")]){n[os("0x19")]({type:os("0x8"),content:Yo(e,os("0x14"),'"'+o[os("0x1a")]+'"')});continue}n[os("0x19")]({type:os("0x22"),content:Yo(e,os("0x27"),'"'+o[os("0x3")]+'"')});continue;case"addEmptyContainer":case os("0x31"):n[os("0x19")]({type:os("0x8"),content:Yo(e,"*Insert:* %0",this[os("0x38")](o.element,o.quantity))});continue;case os("0x1e"):case"removeObject":n[os("0x19")]({type:os("0x22"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0xe")],o[os("0x11")]))});continue;case os("0xd"):n[os("0x19")]({type:os("0x8"),content:Yo(e,"*Split:* %0",this[os("0x38")](o[os("0xe")],o[os("0x11")]))});continue;case os("0x15"):n[os("0x19")]({type:os("0x22"),content:Yo(e,os("0x7"),this[os("0x38")](o.element,o[os("0x11")]))});continue}n[os("0x19")](o)}return n}}const rs=["commandParams","AlignmentEditing","afterInit","right","model","filter","registerDescriptionCallback","editor","has","alignment","locale","TrackChangesEditing","enableCommand","FORMAT_ALIGN_TO_RIGHT","document","FORMAT_JUSTIFY_TEXT","checkAttribute","center","ltr","change","FORMAT_ALIGN_TO_LEFT","plugins","markBlockFormat","justify","commandName","getAttribute","_descriptionFactory","FORMAT_ALIGN_TO_CENTER","left","from","*Format:* %0","value","contentLanguageDirection"];var is,as;is=rs,as=455,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x9")](){const t=this[xs("0xe")],e=t[xs("0x11")];if(!t[xs("0x1c")][xs("0xf")](xs("0x8")))return;const n=t.plugins.get(xs("0x12"));n[xs("0x13")](xs("0x10"),((e,o={})=>{let s=o[xs("0x5")];o[xs("0x5")]||(s=xs("0x19")===t[xs("0x11")][xs("0x6")]?xs("0x2"):xs("0xa"));const r=Array[xs("0x3")](this[xs("0xe")][xs("0xb")][xs("0x15")].selection.getSelectedBlocks())[xs("0xc")]((t=>function(t,e,n){const o=t[xs("0x20")](xs("0x10"))||null;return e[xs("0x17")](t,xs("0x10"))&&n!=o}(t,this[xs("0xe")][xs("0xb")].schema,s)));t.model[xs("0x1a")]((()=>{for(const t of r)n[xs("0x1d")](t,{commandName:xs("0x10"),commandParams:[{value:s}]})}))})),n[xs("0x0")][xs("0xd")]((t=>{const{data:n}=t;if(n&&xs("0x10")==n[xs("0x1f")]){const t=n[xs("0x7")][0][xs("0x5")];return{type:"format",content:Yo(e,xs("0x4"),function(t){switch(t){case xs("0x2"):return Yo(e,xs("0x1b"));case xs("0xa"):return Yo(e,xs("0x14"));case xs("0x18"):return Yo(e,xs("0x1"));case xs("0x1e"):return Yo(e,xs("0x16"))}}(t))}}}))}}const ls=["isContent","isBlock","previousPosition","bindElementToMarker","getItems","push","addClass","name","activeMarkers","parent","listIndent","test","elementEnd","getCustomProperty","includes","type","element","toViewPosition","toViewElement","nextSibling","getAttribute","markerName","TrackChangesEditing","listItem","hasAttribute","createRangeOn","addHighlight","mapper","writer","start","schema","ck-suggestion-marker-","markerRange","plugins","isAtEnd","model","consumable","createUIElement"];var ds,us;ds=ls,us=164,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("0x1e")]())s[gs("0xc")](t)&&o[gs("0x1f")](n[gs("0xd")](s));return o}function fs(t){const e=[];if(t.is(gs("0x4"),gs("0xb"))){let n=t[gs("0x7")];for(;n&&n.is(gs("0x4"),gs("0xb"))&&n[gs("0x8")](gs("0x24"))>0;)e[gs("0x1f")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x15")].get(gs("0xa"));return(s,r,i)=>{if(!i[gs("0x18")][gs("0x25")](r.markerRange,s[gs("0x21")]))return;const a=r[gs("0x14")].getWalker(),x=r.markerRange[gs("0x11")],c=t[gs("0x17")][gs("0x12")];let l=null,d=null,u=!1,g=!1;for(const t of a){const e=t.item;u=u||c[gs("0x1a")](e);const n=i[gs("0xf")][gs("0x6")](e);if(n&&n[gs("0x1")](gs("0xe")))return;gs("0x0")==t[gs("0x3")]&&c[gs("0x1b")](e)&&!c.isLimit(e)&&(e[gs("0x7")]||x[gs("0x16")]?l&&l[gs("0x23")]==e||(l=e,m(t[gs("0x1c")]),g=!0):d=d||t[gs("0x1c")])}function m(t){const s=i[gs("0x10")][gs("0x19")]("span",{class:gs("0x13")+e}),a=i[gs("0xf")][gs("0x5")](t);n&&o[gs("0x22")][gs("0x2")](r[gs("0x9")])&&i[gs("0x10")][gs("0x20")]("ck-suggestion-marker--active",s),i[gs("0x10")].insert(a,s),i[gs("0xf")][gs("0x1d")](s,r.markerName)}u||g||!d||m(d)}}const ps=["commands","enableCommand","FORMAT_BOLD","plugins","value","StrikethroughEditing","bold","isCollapsed","TrackChangesEditing","editor","markInlineFormat","SubscriptEditing","toLowerCase","underline","has","forceValue","model","from","registerDescriptionCallback","FORMAT_SUBSCRIPT","FORMAT_CODE","document","afterInit","FORMAT_STRIKETHROUGH","commandName","getRanges","strikethrough","UnderlineEditing","format","italic","CodeEditing","ItalicEditing","superscript","get","subscript","BoldEditing","SuperscriptEditing"];var bs,Es;bs=ps,Es=392,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xd"),_s("0x9"),_s("0x5"),_s("0x8"),_s("0x14"),_s("0x1a"),_s("0xe")];class Cs extends t.Plugin{[_s("0x0")](){const t=this[_s("0x18")],e=t[_s("0x1f")],n=t[_s("0x12")].get(_s("0x17")),o=t.locale;for(const o of Ts){if(!t[_s("0x12")][_s("0x1d")](o))continue;const s=o.slice(0,-7)[_s("0x1b")](),r=t[_s("0xf")][_s("0xb")](s);n[_s("0x10")](s,((t,o={})=>{const i=e[_s("0x24")].selection;if(i[_s("0x16")])return void t(o);const a=void 0!==o[_s("0x1e")]?o[_s("0x1e")]:!r[_s("0x13")];e.change((()=>{const t=Array[_s("0x20")](i[_s("0x3")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x19")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x21")]((n=>{const{data:s}=n;if(s&&s[_s("0x2")]===t)return s.commandParams[0][_s("0x1e")]?{type:"format",content:Yo(o,"*Format:* %0",e)}:{type:_s("0x6"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x15"),Yo(o,_s("0x11"))),s(_s("0x7"),Yo(o,"FORMAT_ITALIC")),s(_s("0x1c"),Yo(o,"FORMAT_UNDERLINE")),s("code",Yo(o,_s("0x23"))),s(_s("0x4"),Yo(o,_s("0x1"))),s(_s("0xc"),Yo(o,_s("0x22"))),s(_s("0xa"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["forceValue","filter","parent","_descriptionFactory","commandName","schema","has","*Remove format:* %0","plugins","change","afterInit","*Format:* %0","$root","blockQuote","value","TrackChangesEditing","document","getSelectedBlocks","commandParams","from","markBlockFormat","format","editor","checkChild","get","model"];var ks,As;ks=ys,As=398,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x2")](){const t=this.editor,e=t.locale;if(!t.plugins[vs("0x18")]("BlockQuoteEditing"))return;const n=t[vs("0x0")][vs("0x10")](vs("0x7")),o=this[vs("0xe")].commands.get(vs("0x5"));n.enableCommand(vs("0x5"),((e,s={})=>{const r=this[vs("0xe")].model[vs("0x8")].selection,i=s&&void 0!==s.forceValue?s[vs("0x12")]:!o[vs("0x6")];let a=[];if(i){const e=Array.from(r.getSelectedBlocks())[vs("0x13")]((t=>Ss(t)||function(t,e){const n=e[vs("0xf")](t[vs("0x14")],"blockQuote"),o=e[vs("0xf")]([vs("0x4"),vs("0x5")],t);return n&&o}(t,this[vs("0xe")].model[vs("0x17")])));a=S(e,t[vs("0x11")])}else{const e=Array[vs("0xb")](r[vs("0x9")]()).filter((t=>Ss(t)));a=S(e,t[vs("0x11")])}t[vs("0x11")][vs("0x1")]((()=>{for(const t of a)n[vs("0xc")](t,{commandName:vs("0x5"),commandParams:[{forceValue:i}]})}))})),n[vs("0x15")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x5")==n[vs("0x16")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0xa")][0].forceValue?{type:vs("0xd"),content:Yo(e,vs("0x3"),t)}:{type:vs("0xd"),content:Yo(e,vs("0x19"),t)}}}))}}function Ss(t){return vs("0x5")==t[vs("0x14")].name}const Is=["afterInit","get","editor","enableCommand","commands","ckbox"];var Ls,Ns;Ls=Is,Ns=412,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x2")](){const t=this[Ms("0x4")];t[Ms("0x0")][Ms("0x3")]("ckbox")&&t.plugins.get("TrackChangesEditing")[Ms("0x5")](Ms("0x1"))}}const Os=["document","commands","codeBlock","plugins","find","schema","selection","model","isLimit","commandParams","outdentCodeBlock","has","value","config","from","registerDescriptionCallback","locale","name","parent","afterInit","registerElementLabel","_descriptionFactory","blockName","commandName","get","enableCommand","ELEMENT_CODE_BLOCK","getSelectedBlocks","filter","*Format:* %0","markBlockFormat","language","forceValue","change","rootElement","format","TrackChangesEditing","label"];var Ps,Fs;Ps=Os,Fs=233,function(t){for(;--t;)Ps.push(Ps.shift())}(++Fs);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0xe")](){const t=this.editor;if(!t[Ds("0x24")][Ds("0x6")]("CodeBlock"))return;const e=t[Ds("0x24")][Ds("0x13")](Ds("0x1f")),n=t[Ds("0xb")],o=t[Ds("0x8")][Ds("0x13")](Ds("0x23")).languages,s=t[Ds("0x22")][Ds("0x13")](Ds("0x23"));e[Ds("0x14")]("indentCodeBlock"),e[Ds("0x14")](Ds("0x5")),e[Ds("0x14")]("codeBlock",((n,r={})=>{const i=t[Ds("0x2")],a=t.model[Ds("0x21")][Ds("0x1")],x=r&&void 0!==r[Ds("0x1b")]?r.forceValue:!s[Ds("0x7")];let c;r[Ds("0x1a")]||(r.language=o[0].language),c=x?Array[Ds("0x9")](a[Ds("0x16")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x0")],!e.is(Ds("0x1d"))&&!n[Ds("0x3")](e)&&n.checkChild(e[Ds("0xd")],Ds("0x23")));var e,n})):Array[Ds("0x9")](a[Ds("0x16")]())[Ds("0x17")]((t=>js(t)));const l=S(c,i);i[Ds("0x1c")]((()=>{for(const t of l)e[Ds("0x19")](t,{commandName:Ds("0x23"),commandParams:[{...r,forceValue:x}],formatGroupId:Ds("0x11")})}))})),e[Ds("0x10")][Ds("0xf")](Ds("0x23"),(t=>Yo(n,Ds("0x15"),t))),e[Ds("0x10")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Ds("0x12")]){const t=r[Ds("0x4")][0][Ds("0x1a")],s=e(o[Ds("0x25")]((e=>e[Ds("0x1a")]===t))[Ds("0x20")]);return r[Ds("0x4")][0][Ds("0x1b")]?{type:Ds("0x1e"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x15"),1)+" ("+s+")")}:{type:Ds("0x1e"),content:Yo(n,"*Remove format:* %0",Yo(n,Ds("0x15"),1))}}}))}}function js(t){return Ds("0x23")==t[Ds("0xc")]}const Us=["addCommentThread","TrackChangesEditing","CommentsEditing","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=292,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this.editor;t[Ws("0x2")].has(Ws("0x0"))&&t[Ws("0x2")].get(Ws("0x4"))[Ws("0x1")](Ws("0x3"))}}var Vs=n(181);const Ks=["addMarker:suggestion:deletion","createRange","getFirstRange","merge","start","rootName","TrackChangesEditing","deleteForward","createSelection","plugins","editor","commands","modifySelection","root","editing","high","setSelection","uiElement","forward","buffer","fromRange","selection","writer","end","unit","downcastDispatcher","$graveyard","data","delete","requires","get","batch","options","detach","enableCommand","model","init","markerNameToElements","mapper","showSuggestionHighlights","removeMarker:suggestion:deletion","unbindElementFromMarkerName"];var $s,qs;$s=Ks,qs=403,function(t){for(;--t;)$s.push($s.shift())}(++qs);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[Xs("0x4")](){return[Vs.Delete]}[Xs("0xb")](){const t=this[Xs("0x1b")],e=t[Xs("0x1a")].get(Xs("0x17"));e[Xs("0x9")](Xs("0x3"));const n=t[Xs("0x1c")][Xs("0x5")](Xs("0x18"));e[Xs("0x9")](Xs("0x18"),((e,o={})=>{const s=t[Xs("0xa")][Xs("0x19")](t.model.document[Xs("0x26")]);s.isCollapsed&&t[Xs("0xa")][Xs("0x1d")](s,{direction:Xs("0x23"),unit:o[Xs("0x29")]});const r=s[Xs("0x13")](),a=i.LiveRange[Xs("0x25")](r);let x;e(o),x=Xs("0x1")==a[Xs("0x1e")][Xs("0x16")]?t.model[Xs("0x12")](r[Xs("0x15")]):t[Xs("0xa")].createRange(a[Xs("0x15")],a[Xs("0x28")]),a[Xs("0x8")](),t.model.enqueueChange(n[Xs("0x24")][Xs("0x6")],(t=>{n[Xs("0x24")].lock(),t[Xs("0x21")](t.createRange(x[Xs("0x28")])),n[Xs("0x24")].unlock()}))})),t[Xs("0x1f")][Xs("0x0")].on(Xs("0x11"),hs(t,Xs("0x14")),{priority:Xs("0x20")}),t[Xs("0x2")][Xs("0x0")].on(Xs("0x11"),((e,n,o)=>{o[Xs("0x7")][Xs("0xe")]&&hs(t,Xs("0x14"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Xs("0x20")}),t.editing[Xs("0x0")].on(Xs("0xf"),((t,e,n)=>{const o=n[Xs("0xd")][Xs("0xc")](e.markerName);if(o)for(const t of o)t.is(Xs("0x22"))&&(n[Xs("0xd")][Xs("0x10")](t,e.markerName),n[Xs("0x27")].remove(t))}),{priority:Xs("0x20")})}}const Qs=["end","TrackChangesEditing","toUpperCase","plugins","listType","commandName","document","enableCommand","isObject","has","afterInit","before","from","schema","listIndent","_LIST","start","commandParams","map","setSelection","registerDescriptionCallback","slice","documentList","mergeListItemForward","forceValue","splitListItemAfter","containsItem","bulletedList","format","*Outdent:* %0","parent","DocumentListUtils","push","hasAttribute","listItemId","findIndex","numberedList","indentList","*Format:* insert into %0","outdentList","nextSibling","mergeListItemBackward","getFirstRange","value","getAttribute","change","ELEMENT_NUMBERED_LIST","registerCustomCallback","*Change to:* %0","previousSibling","get","selection","commands","nodeAfter","getSelectedBlocks","model","*Format:* remove from %0","ELEMENT_LIST_ITEM","ELEMENT_","splitListItemBefore","getRanges","_suggestionFactory","_descriptionFactory","registerElementLabel","createRange","isFirstBlockOfListItem","deletion","createPositionAt"];var Zs,Ys;Zs=Qs,Ys=472,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0xe")](){const t=this.editor;if(!t.plugins[tr("0xd")]("DocumentListEditing"))return;const e=t.locale,n=t[tr("0x7")].get(tr("0x5")),o=t[tr("0x7")][tr("0x36")](tr("0x23"));function s(e){return()=>{const s=t[tr("0x38")].get(e);let r=Array[tr("0x10")](t[tr("0x3b")][tr("0xa")][tr("0x37")][tr("0x3a")]());if(x(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x1")](e)&&t[tr("0x24")](e);r=t}t.model[tr("0x31")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x2f")]}],formatGroupId:"listType"},[],tr("0x1a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x10")](t);const n=e[tr("0x27")]((t=>!t[tr("0x25")](tr("0x26"))));return n>-1&&(e=e[tr("0x19")](0,n)),e}(t.model[tr("0xa")][tr("0x37")][tr("0x3a")]()),s=o[o.length-1],r=t[tr("0x3b")][tr("0x11")][tr("0xc")](s)?"after":tr("0x4"),i=t[tr("0x3b")].createRange(t[tr("0x3b")][tr("0x3")](o[0],tr("0xf")),t[tr("0x3b")].createPositionAt(s,r));t[tr("0x3b")][tr("0x31")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x8")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x30")](tr("0x12"))>n[tr("0x30")](tr("0x12"));)e.add(t),t=t[tr("0x2c")]}return Array[tr("0x10")](e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x3b")][tr("0xa")].selection.getSelectedBlocks().next()[tr("0x2f")],s=t.model.createPositionAt(o,tr("0xf")),r=t[tr("0x3b")][tr("0x3")](o,0),i=t.model[tr("0x0")](s,r);t[tr("0x3b")][tr("0x31")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t[tr("0x38")][tr("0x36")](tr("0x1f")).value,o=t[tr("0x38")].get(tr("0x28")).value;return tr("0x28")===e?n:o}n.enableCommand(tr("0x28"),s(tr("0x28"))),n[tr("0xb")]("bulletedList",s(tr("0x1f"))),n[tr("0xb")](tr("0x29"),r(tr("0x29"))),n.enableCommand(tr("0x2b"),r(tr("0x2b"))),n[tr("0xb")](tr("0x1d"),a(tr("0x1d"))),n.enableCommand(tr("0x3f"),a(tr("0x3f"))),n._descriptionFactory[tr("0x43")]((function(e){const n=!t[tr("0x3b")][tr("0x11")][tr("0xc")](e),o=e[tr("0x35")],s=e[tr("0x2c")],r=e[tr("0x30")]("listItemId"),i=!o||o[tr("0x30")](tr("0x26"))!==r,a=!s||s[tr("0x30")](tr("0x26"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,tr("0x3d"),t))),n[tr("0x42")][tr("0x18")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x9")]){case tr("0x1f"):r=n[tr("0x15")][0][tr("0x1c")],i=x(n.commandName),o=r?tr("0x2a"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x20"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x28"):r=n.commandParams[0].forceValue,i=x(n[tr("0x9")]),o=tr(r?"0x2a":"0x3c"),i&&(o=tr("0x34")),s={type:tr("0x20"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case tr("0x29"):o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0x3d")))};break;case tr("0x2b"):o=function(t){const e=t[tr("0x2e")]();let n=e[tr("0x14")][tr("0x39")];for(;n&&e[tr("0x1e")](n);){if(n[tr("0x30")](tr("0x12"))>0)return!1;n=n[tr("0x2c")]}return!0}(t)?Yo(e,tr("0x3c"),Yo(e,function(t){const e=t[tr("0x2e")]().start.nodeAfter;return tr("0x3e")+e.getAttribute(tr("0x8"))[tr("0x6")]()+tr("0x13")}(t))):Yo(e,tr("0x21"),Yo(e,tr("0x3d"))),s={type:"format",content:o};break;case tr("0x2d"):case tr("0x1b"):!1===n.multipleBlocks&&(o="*Merge:* %0",s={type:tr("0x2"),content:Yo(e,o,Yo(e,tr("0x3d")))})}return s})),n[tr("0x41")][tr("0x33")]("formatBlock","documentList","accept",(function(e,n){const o=[];for(let n of e)n[tr("0x14")].nodeAfter===n[tr("0x4")][tr("0x22")]&&(n=t[tr("0x3b")][tr("0x0")](t[tr("0x3b")][tr("0x3")](n[tr("0x14")][tr("0x39")],0))),o.push(n);t[tr("0x3b")][tr("0x31")]((e=>{const s=t[tr("0x3b")][tr("0xa")][tr("0x37")],r=Array.from(s[tr("0x40")]())[tr("0x16")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x38")][tr("0x36")](n[tr("0x9")]).refresh(),n[tr("0x15")][tr("0x24")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n[tr("0x15")]),e[tr("0x17")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["enterBlock","addMarker:suggestion:insertion","mapper","get","requires","afterExecute","fromRange","parent","showSuggestionHighlights","split","selection","ck-suggestion-marker-split","end","change","markerName","setSelection","model","remove","editor","init","markInsertion","plugins","enableCommand","createPositionAt","TrackChangesEditing","hasClass","enter","bind","commands","detach","fire","editing","options","createRange","markerNameToElements","document","high","downcastDispatcher"];var sr,rr;sr=or,rr=413,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x9")](){return[nr.Enter]}[ir("0x18")](){const t=this[ir("0x17")],e=t[ir("0x1a")].get(ir("0x1d")),n=t[ir("0x21")][ir("0x8")](ir("0x1f"));e[ir("0x1b")](ir("0x1f"),(()=>{t[ir("0x15")][ir("0x12")]((o=>{const s=t[ir("0x15")][ir("0x2")][ir("0xf")],r=s.getFirstPosition(),a=i.LiveRange[ir("0xb")](s.getFirstRange());if(n[ir("0x5")](o)){const n=t[ir("0x15")][ir("0x1c")](r[ir("0xc")].nextSibling,0),s=o.createRange(r,n);e[ir("0x19")](s)}else o[ir("0x14")](o[ir("0x0")](a[ir("0x11")]));a[ir("0x22")](),n[ir("0x23")](ir("0xa"),{writer:o})}))})),t[ir("0x24")][ir("0x4")].on(ir("0x6"),hs(t,ir("0xe")),{priority:ir("0x3")}),t[ir("0x24")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x7")][ir("0x1")](e[ir("0x13")]);if(o)for(const t of o)t[ir("0x1e")](ir("0x10"))&&(n[ir("0x7")].unbindElementFromMarkerName(t,e[ir("0x13")]),n.writer[ir("0x16")](t))}),{priority:ir("0x3")}),t.data[ir("0x4")].on(ir("0x6"),((e,n,o)=>{o[ir("0x25")][ir("0xd")]&&hs(t,ir("0xe"),{showActiveMarker:!1})[ir("0x20")](this)(e,n,o)}),{priority:"high"})}}const xr=["getMarkersGroup","getIntersection","replaceAll","createPositionAt","string","FindAndReplaceEditing","editor","plugins","afterInit","handleFindCommand","suggestion:deletion","FindAndReplaceUtils","has","findPrevious","filter","get","enableCommand","findByTextCallback","bind","markers","TrackChangesEditing","_isInDeletionRange","find","getRange","end","model","start","item"];var cr,lr;cr=xr,lr=237,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return xr[t-=0]};class ur extends t.Plugin{[dr("0x17")](){if(!this.editor[dr("0x16")][dr("0x1b")](dr("0x14")))return;const t=this.editor[dr("0x16")].get(dr("0x7"));t[dr("0x3")](dr("0x9"),this[dr("0x18")][dr("0x5")](this)),t[dr("0x3")]("findNext"),t[dr("0x3")](dr("0x0")),t[dr("0x3")]("replace"),t[dr("0x3")](dr("0x11"))}handleFindCommand(t,e,n={}){const o=this.editor[dr("0x16")][dr("0x2")](dr("0x1a"));void 0!==n&&t((t=>(dr("0x13")==typeof e?o[dr("0x4")](e,n):e)(t)[dr("0x1")]((e=>!1===this[dr("0x8")](e,t[dr("0xe")])))),n)}[dr("0x8")](t,e){const n=this[dr("0x15")][dr("0xc")].createRange(this[dr("0x15")][dr("0xc")][dr("0x12")](e,t[dr("0xd")]),this[dr("0x15")][dr("0xc")][dr("0x12")](e,t[dr("0xb")]));for(const t of this.editor.model[dr("0x6")][dr("0xf")](dr("0x19")))if(null!==n[dr("0x10")](t[dr("0xa")]()))return!0;return!1}}const gr=["selection","fontBackgroundColor.colors","config","FontSize","value","toLowerCase","find","trim","FontFamilyEditing","format","fontSize","getRanges","from","*Reset font size*","label","change","_enableCommand","get","plugins","fontColor.colors","*Reset font color*","markInlineFormat","*Set font color:* %0","normalizeSizeOptions","commandParams","*Set font family:* %0","commandName","*Set font size:* %0","afterInit","has","FontSizeEditing","fontColor","fontFamily","model","*Set font background color:* %0","locale","FontBackgroundColorEditing","editor","fontBackgroundColor","TrackChangesEditing","*Reset font background color*","registerDescriptionCallback"];var mr,fr;mr=gr,fr=208,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x20"),commandName:"fontSize"},{pluginName:hr("0xa"),commandName:hr("0x22")},{pluginName:"FontColorEditing",commandName:hr("0x21")},{pluginName:hr("0x26"),commandName:hr("0x28")}];class br extends t.Plugin{[hr("0x1e")](){const t=this[hr("0x27")][hr("0x25")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x27")][hr("0x14")][hr("0x1f")](t)&&this[hr("0x12")](e);this[hr("0x27")][hr("0x14")][hr("0x13")](hr("0x29"))._descriptionFactory[hr("0x1")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xc")==o[hr("0x1c")]){const e=o.commandParams[0][hr("0x6")];if(e){const o=n(this[hr("0x27")][hr("0x14")][hr("0x13")](hr("0x5"))[hr("0x19")](this.editor[hr("0x4")][hr("0x13")]("fontSize.options")).find((t=>t.model==e)).title).toLowerCase();return{type:hr("0xb"),content:Yo(t,hr("0x1d"),o)}}return{type:hr("0xb"),content:Yo(t,hr("0xf"))}}if(hr("0x22")==o[hr("0x1c")]){const e=o[hr("0x1a")][0].value;return e?{type:hr("0xb"),content:Yo(t,hr("0x1b"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hr("0x21")==o[hr("0x1c")]){const e=o.commandParams[0][hr("0x6")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x27")].config[hr("0x13")](hr("0x15")))[hr("0x8")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x7")]()),{type:hr("0xb"),content:Yo(t,hr("0x18"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x16"))}}if(hr("0x28")==o[hr("0x1c")]){const e=o[hr("0x1a")][0][hr("0x6")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x27")][hr("0x4")][hr("0x13")](hr("0x3")))[hr("0x8")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x7")]()),{type:"format",content:Yo(t,hr("0x24"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xb"),content:Yo(t,hr("0x0"))}}}}))}[hr("0x12")](t){const e=this[hr("0x27")];e[hr("0x14")][hr("0x13")](hr("0x29")).enableCommand(t,((n,o={})=>{const s=e[hr("0x23")].document[hr("0x2")],r=o.value;s.isCollapsed?n(o):e[hr("0x23")][hr("0x11")]((()=>{const n=Array[hr("0xe")](s[hr("0xd")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x23")]);for(const o of n)e[hr("0x14")][hr("0x13")](hr("0x29"))[hr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["normalizeSizeOptions","model","TrackChangesEditing","isBlock","createRange","editor","createSelection","boolean","fontColor.colors","backward","getAttributeProperties","getRanges","fontColor","enableCommand","get","join","*Set format to:* %0","modifySelection","selection","getAttributes","toUpperCase","slice","toLowerCase","find","commands","pasteFormat","afterInit","length","*Remove all formatting*","copyFormat","FontSize","isFormatting","title","forward","registerDescriptionCallback","keys","fontSize.options","commandParams","_descriptionFactory","getFirstPosition","getItems","entries","charAt","getLastPosition","locale","word","document","getSelectedBlocks","plugins","change","push","config","commandName"];var _r,Tr;_r=Er,Tr=254,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x25")](){const t=this[Cr("0x10")],n=t.model,o=n[Cr("0x4")][Cr("0x1d")],s=t[Cr("0x6")][Cr("0x19")](Cr("0xd")),r=t.locale,i=t[Cr("0x23")][Cr("0x19")](Cr("0x28")),a=t[Cr("0x23")][Cr("0x19")](Cr("0x24"));i&&a&&(s[Cr("0x18")](Cr("0x24"),((t,r={})=>{const i=r;n[Cr("0x7")]((()=>{const t=Array.from(o[Cr("0x16")]()),r=o.isCollapsed?[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("0x1e")]()){const t=e[Cr("0x15")](n);t&&t[Cr("0x2a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x16")]())for(const t of e[Cr("0x33")]())!n[Cr("0xe")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x5")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cr("0x2e")](i)[Cr("0x26")])for(const t of r)s.markInlineFormat(t,{commandName:Cr("0x24"),commandParams:[i]})}))})),s[Cr("0x31")][Cr("0x2d")]((e=>{const{data:n}=e;if(n&&Cr("0x24")===n[Cr("0xa")]){const e=[],o=n[Cr("0x30")][0];for(const[n,s]of Object[Cr("0x34")](o))e[Cr("0x8")](Ar(t,n,s));return e[Cr("0x26")]?{type:"format",content:Yo(r,Cr("0x1b"),e[Cr("0x1a")](", "))}:{type:"format",content:Yo(r,Cr("0x27"))}}})),t[Cr("0x6")][Cr("0x19")](Cr("0xd"))[Cr("0x18")](Cr("0x28")))}}function kr(t,e){const n=t[Cr("0x11")](e);t[Cr("0x1c")](n,{unit:"word",direction:Cr("0x14")});const o=n[Cr("0x32")]();t[Cr("0x1c")](n,{unit:Cr("0x3"),direction:Cr("0x2c")});const s=n[Cr("0x1")]();return t[Cr("0xf")](o,s)}function Ar(t,e,n){const o=t[Cr("0x2")].t,r=e.split(/(?=[A-Z])/)[Cr("0x1a")](" "),i=o(r[Cr("0x0")](0)[Cr("0x1f")]()+r[Cr("0x20")](1))[Cr("0x21")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x17")===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x9")][Cr("0x19")](Cr("0x13")))[Cr("0x22")]((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x21")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x19")](Cr("0x29"))[Cr("0xb")](t[Cr("0x9")][Cr("0x19")](Cr("0x2f")))[Cr("0x22")]((t=>t[Cr("0xc")]==n));return i+" ("+(e?o(e[Cr("0x2b")])[Cr("0x21")]():n)+")"}return i+" ("+n+")"}const vr=["paragraph","editor","from","afterInit","selection","*Change to:* %0","commandParams","title","parent","schema","change","heading.options","formatBlock","registerElementLabel","getSelectedBlocks","match","blockName","name","HeadingEditing","registerDescriptionCallback","format","get","value","isObject","commandName","_descriptionFactory","TrackChangesEditing","plugins","markBlockFormat","heading","filter","ELEMENT_HEADING_CUSTOM","model","checkChild","ELEMENT_HEADING"];var Rr,Sr;Rr=vr,Sr=493,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x0")](){const t=this.editor,e=t.locale,n=t.config[Ir("0x12")](Ir("0x8"));if(!t[Ir("0x18")].has(Ir("0xf")))return;const o=t[Ir("0x18")][Ir("0x12")](Ir("0x17"));o.enableCommand(Ir("0x1a"),((e,n)=>{const s=n.value,r=Array[Ir("0x22")](this.editor[Ir("0x1d")].document[Ir("0x1")][Ir("0xb")]())[Ir("0x1b")]((t=>{return e=t,n=s,(o=this[Ir("0x21")][Ir("0x1d")][Ir("0x6")])[Ir("0x1e")](e[Ir("0x5")],n)&&!o[Ir("0x14")](e)&&e[Ir("0xe")]!=n;var e,n,o}));t[Ir("0x1d")][Ir("0x7")]((()=>{for(const t of r)o[Ir("0x19")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0xd")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0x1d")]&&o[Ir("0x16")][Ir("0xa")](t[Ir("0x1d")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x4")])}));function s(t,n){return Yo(e,Ir("0x1f"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x16")][Ir("0x10")]((t=>{const{type:o,data:i}=t;if(Ir("0x9")==o&&i&&"heading"==i[Ir("0x15")]){const t=i[Ir("0x3")][0][Ir("0x13")],o=Nr(t);if(null!==o)return{type:Ir("0x11"),content:Yo(e,"*Change to:* %0",s(1,o))};const a=n.find((e=>e.model===t)).title;return{type:Ir("0x11"),content:Yo(e,Ir("0x2"),r(1,a))}}}))}}function Nr(t){const e=t[Ir("0xc")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["commandName","format","backward","registerDescriptionCallback","value","markInlineFormat","getAttribute","TrackChangesEditing","isCollapsed","getRanges","plugins","getFirstPosition","_descriptionFactory","title","getLastMatchingPosition","editor","document","selection","*Set highlight:* %0","*Remove highlight*","locale","color","highlight","afterInit","model","get","config","highlight.options","push","item","toLowerCase","has","HighlightEditing","FORMAT_HIGHLIGHT","createRange"];var wr,Or;wr=Mr,Or=458,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Pr=function(t,e){return Mr[t-=0]};class Fr extends t.Plugin{[Pr("0x14")](){const t=this[Pr("0xc")];if(!t.plugins[Pr("0x1c")](Pr("0x1d")))return;const e=t[Pr("0x7")][Pr("0x16")](Pr("0x4"));e.enableCommand("highlight",((n,o={})=>{const s=t[Pr("0x15")][Pr("0xd")][Pr("0xe")],r=s[Pr("0x3")](Pr("0x13"));let i=o[Pr("0x1")],a=[];if(s[Pr("0x5")]){const e=s[Pr("0x8")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Pr("0x1a")].getAttribute(Pr("0x13"))===r,o=e[Pr("0xb")](n,{direction:Pr("0x22")}),s=e[Pr("0xb")](n);a=[t[Pr("0x15")][Pr("0x1f")](o,s)],i==r&&(i=null)}}else for(const e of s[Pr("0x6")]())i?a.push(e):a[Pr("0x19")](...ms(Pr("0x13"),e,t.model));t[Pr("0x15")].change((()=>{for(const t of a)e[Pr("0x2")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Pr("0x11")];e[Pr("0x9")][Pr("0x0")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Pr("0x13")==s[Pr("0x20")]){const e=n.t,o=s.commandParams[0].value;if(o){const s=t[Pr("0x17")][Pr("0x16")](Pr("0x18")).find((t=>t[Pr("0x15")]==o)),r=e(s[Pr("0xa")])[Pr("0x1b")]();return{type:Pr("0x21"),content:Yo(n,Pr("0xf"),r),color:{value:s[Pr("0x12")],title:s[Pr("0xa")]}}}return{type:Pr("0x21"),content:Yo(n,Pr("0x10"),Yo(n,Pr("0x1e")))}}}))}}const Dr=["get","_descriptionFactory","createEmptyElement","enableCommand","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","afterInit","showSuggestionHighlights","plugins","has","high","for","editor","locale","registerElementLabel","elementToStructure","createPositionAt","TrackChangesEditing","HorizontalLineEditing","div","conversion","horizontalLine"];var Br,jr;Br=Dr,jr=237,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xb")](){const t=this[Ur("0x11")];if(!t.plugins[Ur("0xe")](Ur("0x1")))return;t[Ur("0xd")][Ur("0x5")](Ur("0x0"))[Ur("0x8")]("horizontalLine");const e=t[Ur("0xd")][Ur("0x5")](Ur("0x0")),n=t[Ur("0x12")];e[Ur("0x6")][Ur("0x13")]("horizontalLine",(t=>Yo(n,Ur("0x9"),t))),t[Ur("0x3")][Ur("0x10")]("dataDowncast")[Ur("0x14")]({model:Ur("0x4"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0xc")])return null;const o=e.createContainerElement(Ur("0x2")),s=e[Ur("0x7")]("hr");return e.addClass(Ur("0xa"),o),e.insert(e[Ur("0x15")](o,0),s),o},converterPriority:Ur("0xf")})}}const Hr=["element","plugins","getSelectedElement","getAttribute","format","get","cancel","editor","view","value","has","htmlEmbed","getCustomProperty","enableCommand","ELEMENT_HTML_EMBED","commandName","registerElementLabel","HtmlEmbed","selection","markBlockFormat","registerDescriptionCallback","*Change %0 content*","document","model","rawHtml","TrackChangesEditing","_descriptionFactory"];var Wr,zr;Wr=Hr,zr=212,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("0xb")];if(!t[Vr("0x5")][Vr("0xe")](Vr("0x15")))return;const e=t[Vr("0x5")].get(Vr("0x2")),n=t.locale,o=t.editing[Vr("0xc")][Vr("0x1a")][Vr("0x16")];e._descriptionFactory[Vr("0x14")](Vr("0x1"),(t=>Yo(n,Vr("0x12"),t))),t[Vr("0x5")][Vr("0x9")]("TrackChangesEditing")[Vr("0x11")](Vr("0xf"),((n,s)=>{const r=t[Vr("0x0")],i=r[Vr("0x1a")].selection;r.change((()=>{const t=function(t){const e=t[Vr("0x6")]();return e&&e.is(Vr("0x4"),Vr("0x1"))?t[Vr("0x6")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x7")](Vr("0xd"))||"";void 0!==s&&s!==r&&(e[Vr("0x17")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x6")]()[Vr("0x10")]("rawHtmlApi")[Vr("0xa")]())}))})),e[Vr("0x3")][Vr("0x18")]((t=>{const{data:e}=t;if(e&&Vr("0xf")==e[Vr("0x13")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x8"),content:Yo(n,Vr("0x19"),t)}}}))}}const $r=["ImageUploadEditing","imageTypeBlock","get","discard","getChangedMarkers","width","registerDescriptionCallback","Users","nodeAfter","isIntersecting","markInsertion","getSuggestionCallback","hasAttribute","length","getCaptionFromImageModelElement","caption","imageTextAlternative","getContainedElement","registerElementLabel","enableCommand","insertion","accept","name","filter","_descriptionFactory","markDeletion","join","newRange","suggestion","addObject","imageStylePostApply","formatBlock","registerPostFixer","newValue","type","imageStyle","backward","forEach","imageBlock","value","imageCaption","discardSuggestion","change","Block image to inline image","_suggestionFactory","document","afterInit","removeObject","hasSuggestion","schema","find","_findSuggestions","refresh","ImageCaptionUtils","editor","formatInline","subType","ELEMENT_IMAGE","has","createRangeOn","chain","next","ELEMENT_INLINE_IMAGE","resizeImage","convertBlockImageToInline","isEqual","isBefore","markBlockFormat","ImageStyleEditing","ImageEditing","isInContent","findIndex","deletion","getClosestSelectedImageElement","ImageResize","fromPosition","getFirstRange","commands","toggleImageCaption","ELEMENT_CAPTION","detach","getAttribute","ImageCaptionEditing","FORMAT_SIDE_IMAGE","commandName","differ","alt","registerCustomCallback","createRange","start","plugins","*Reset image width*","ImageInlineEditing","toNext","imageTypeInline","isBlockImage","getNearestSelectionRange","from","commandParams","getSuggestions","insertImage","normalizedStyles","shouldConvertImageType","selection","model","format","end","convertInlineImageToBlock","*Format:* %0","imageInline","*Set image text alternative:* %0","isOwn","head","imageStylePreApply","_splitMarkerName","title","isCollapsed","TrackChangesEditing","markInlineFormat","locale"];var qr,Xr;qr=$r,Xr=472,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x36")](){const t=this[Jr("0x3e")];if(!t[Jr("0x62")][Jr("0x42")](Jr("0x4d")))return;const n=t[Jr("0x62")].get(Jr("0x5")),o=t[Jr("0x62")].get("ImageUtils"),s={},r=t[Jr("0x7")];if(n[Jr("0x1b")](Jr("0x6c")),n[Jr("0x20")][Jr("0x1a")](Jr("0x2e"),(t=>Yo(r,Jr("0x41"),t))),n._descriptionFactory[Jr("0x1a")](Jr("0x75"),(t=>Yo(r,Jr("0x46"),t))),n._descriptionFactory[Jr("0x1a")](Jr("0x17"),(()=>Yo(r,Jr("0x57")))),t.plugins.has(Jr("0x8"))&&n[Jr("0x1b")]("uploadImage"),t.plugins.has("ImageBlockEditing")&&t.plugins[Jr("0x42")](Jr("0x64"))&&(n[Jr("0x1b")](Jr("0x66"),((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")][Jr("0x6f")]);t[Jr("0x70")][Jr("0x32")]((()=>{n[Jr("0x4b")](r,{commandName:Jr("0x66"),commandParams:[s]},[],Jr("0x48"))}))})),n[Jr("0x1b")](Jr("0x9"),((e,s)=>{t.model[Jr("0x32")]((r=>{let a=o[Jr("0x51")](t[Jr("0x70")].document[Jr("0x6f")]),x=r[Jr("0x43")](a);const c=i.LivePosition[Jr("0x53")](x[Jr("0x61")],"toPrevious"),l=i.LivePosition[Jr("0x53")](x[Jr("0x72")],Jr("0x65"));n.forceDefaultExecution((()=>e(s))),a=o[Jr("0x51")](t.model[Jr("0x35")].selection),x=r[Jr("0x43")](a);const d=r[Jr("0x60")](c,l);c.detach(),l[Jr("0x58")](),n.markBlockFormat(a,{commandName:Jr("0x66"),commandParams:[]},[],"convertInlineImageToBlock"),d.start.isBefore(x[Jr("0x61")])&&n[Jr("0x12")](r[Jr("0x60")](d[Jr("0x61")],x.start),"convertInlineImageToBlock"),x.end[Jr("0x4a")](d[Jr("0x72")])&&n[Jr("0x12")](r[Jr("0x60")](x[Jr("0x72")],d[Jr("0x72")]),Jr("0x73"))}))})),n[Jr("0x34")].registerCustomCallback("formatBlock",Jr("0x73"),Jr("0x22"),(()=>{})),n[Jr("0x34")][Jr("0x5f")](Jr("0x27"),Jr("0x73"),Jr("0x1d"),(()=>{})),n[Jr("0x34")][Jr("0x5f")](Jr("0x27"),Jr("0x73"),"discard",n[Jr("0x34")][Jr("0x13")](Jr("0x27"),"",Jr("0x1d"))),n[Jr("0x34")][Jr("0x5f")]("insertion","convertInlineImageToBlock","join",(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x1c"),"convertInlineImageToBlock",Jr("0xb"),(([e])=>{const o=n[Jr("0x34")].getSuggestionCallback("insertion","",Jr("0xb"));let s=e[Jr("0x61")],r=e[Jr("0x72")];const i=t.model[Jr("0x39")][Jr("0x68")](s,Jr("0x2c")),a=t[Jr("0x70")].schema[Jr("0x68")](r,"forward");i[Jr("0x4")]&&(s=i[Jr("0x61")]),a[Jr("0x4")]&&(r=a[Jr("0x72")]),o([t[Jr("0x70")][Jr("0x60")](s,r)])})),n[Jr("0x34")][Jr("0x5f")](Jr("0x27"),"convertInlineImageToBlock",Jr("0x44"),c),n._suggestionFactory[Jr("0x5f")](Jr("0x1c"),Jr("0x73"),Jr("0x44"),c)),t[Jr("0x62")][Jr("0x42")](Jr("0x5a"))&&(n.enableCommand(Jr("0x56"),((e,s)=>{const r=t[Jr("0x62")][Jr("0xa")](Jr("0x3d"));let i=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")][Jr("0x6f")]),a=r[Jr("0x16")](i);t.model[Jr("0x32")]((()=>{if(a)return void n[Jr("0x21")](t[Jr("0x70")][Jr("0x43")](a));const x=o[Jr("0x67")](i);e(s),i=o[Jr("0x51")](t.model.document.selection),a=r[Jr("0x16")](i),n[Jr("0x12")](t.model[Jr("0x43")](a),x?null:Jr("0x30"))}))})),n[Jr("0x34")].registerCustomCallback(Jr("0x1c"),Jr("0x30"),Jr("0x44"),c)),t[Jr("0x62")][Jr("0x42")](Jr("0x4c"))){n[Jr("0x1b")](Jr("0x2b"),((s,r)=>{const i=t[Jr("0x62")][Jr("0xa")](Jr("0xf")).me,a=t[Jr("0x55")][Jr("0xa")](Jr("0x2b"));let x=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")].selection),c=t[Jr("0x70")][Jr("0x43")](x),l=a.value;if(l==r[Jr("0x2f")])return;const d={commandName:Jr("0x2b"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x70")][Jr("0x32")]((()=>{if(n[Jr("0x6b")]()[Jr("0x1f")]((t=>t[Jr("0x4e")]&&i==t.author&&("formatBlock"==t[Jr("0x2a")]||Jr("0x3f")==t[Jr("0x2a")])&&(Jr("0x1")==t[Jr("0x40")]||Jr("0x26")==t.subType)&&t[Jr("0x54")]()[Jr("0x49")](c)))[Jr("0x2d")]((t=>n[Jr("0x31")](t[Jr("0x0")]))),x=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")][Jr("0x6f")]),c=t[Jr("0x70")][Jr("0x43")](x),a[Jr("0x3c")](),t.commands.get(Jr("0x66"))[Jr("0x3c")](),t[Jr("0x55")].get(Jr("0x9")).refresh(),l=a[Jr("0x2f")],l!=r.value)return o.isInlineImage(x)&&a[Jr("0x6e")](r[Jr("0x2f")],x)?(s(r),x=o[Jr("0x51")](t.model[Jr("0x35")][Jr("0x6f")]),void n[Jr("0x4b")](x,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x1"))):void(o[Jr("0x67")](x)?n[Jr("0x4b")](x,d,[],"imageStylePostApply"):n[Jr("0x6")](c,d,Jr("0x26")))}))}));for(const e of t[Jr("0x62")][Jr("0xa")](Jr("0x4c"))[Jr("0x6d")])s[e[Jr("0x1e")]]=e[Jr("0x3")].toLowerCase();n[Jr("0x34")].registerCustomCallback(Jr("0x27"),"imageStylePreApply",Jr("0x22"),(()=>{})),n[Jr("0x34")][Jr("0x5f")]("formatBlock","imageStylePostApply","join",(()=>{})),n._suggestionFactory[Jr("0x5f")](Jr("0x3f"),"imageStylePostApply","join",(()=>{})),n._suggestionFactory[Jr("0x5f")](Jr("0x27"),Jr("0x1"),Jr("0x1d"),(()=>{})),n._suggestionFactory[Jr("0x5f")]("formatBlock",Jr("0x1"),Jr("0xb"),((t,e)=>{n[Jr("0x34")][Jr("0x13")](Jr("0x27"),"",Jr("0x1d"))(t,{commandName:e[Jr("0x5c")],commandParams:e.commandReversedParams})})),n[Jr("0x34")][Jr("0x5f")](Jr("0x27"),Jr("0x1"),Jr("0x44"),c)}const a=[{type:"formatBlock",subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x30")},{type:Jr("0x27"),subType:"convertInlineImageToBlock"},{type:Jr("0x1c"),subType:"convertInlineImageToBlock"}];function x(t,e){const s=a.findIndex((({type:e,subType:n})=>t[Jr("0x2a")]==e&&t[Jr("0x40")]==n)),r=a[Jr("0x4f")]((({type:t,subType:n})=>e[Jr("0x2a")]==t&&e[Jr("0x40")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x54")](),x=e[Jr("0x54")]();if((0==s||1==s)&&2==r&&i[Jr("0x11")](x))return!0;if(2==s&&3==r){const t=n[Jr("0x3b")](i,"insertion")[Jr("0x1f")]((({suggestion:t,meta:e})=>e[Jr("0x77")]&&Jr("0x73")==t[Jr("0x40")]));if(t[Jr("0x15")]>1&&x.end.isEqual(i.start))return!0;if(1==t[Jr("0x15")]&&(i[Jr("0x61")][Jr("0x49")](x[Jr("0x72")])||i.end[Jr("0x49")](x[Jr("0x61")])))return!0}if(3==s&&3==r&&i[Jr("0x61")].isBefore(x[Jr("0x61")])){const t=i[Jr("0x72")][Jr("0x10")],e=x.start.nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x70")].document[Jr("0x28")]((()=>{let e=!1;const s=Array[Jr("0x69")](t[Jr("0x70")][Jr("0x35")][Jr("0x5d")][Jr("0xc")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n[Jr("0x2")](t);if(Jr("0x24")==s&&n[Jr("0x38")](x)){if(Jr("0x27")==i&&(Jr("0x1")==a||Jr("0x26")==a)){const t=n.getSuggestion(x);if(r[Jr("0x23")]){const s=t[Jr("0x54")]()[Jr("0x19")]();if(o[Jr("0x67")](s))continue;n[Jr("0x31")](t),e=!0}}if("insertion"==i&&"imageCaption"==a&&!r[Jr("0x23")]){const t=n.getSuggestion(x);t.next&&t.next[Jr("0x4e")]&&(n[Jr("0x31")](t[Jr("0x45")]),e=!0)}}}return e})),t.plugins[Jr("0x42")](Jr("0x52"))&&n[Jr("0x1b")]("resizeImage",((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")][Jr("0x6f")]);r[Jr("0x59")](Jr("0xd"))!=s[Jr("0xd")]&&t[Jr("0x70")][Jr("0x32")]((()=>{n[Jr("0x4b")](r,{commandName:Jr("0x47"),commandParams:[s]})}))})),t.plugins[Jr("0x42")]("ImageTextAlternativeEditing")&&n.enableCommand(Jr("0x18"),((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x70")][Jr("0x35")][Jr("0x6f")]);(r[Jr("0x14")](Jr("0x5e"))?r[Jr("0x59")](Jr("0x5e")):"")!=s[Jr("0x29")]&&t[Jr("0x70")][Jr("0x32")]((()=>{n.markBlockFormat(r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x20")][Jr("0xe")]((t=>{if(a[Jr("0x3a")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x40")]==n)))return t.previous?{}:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(Jr("0x1c")==t[Jr("0x2a")]||Jr("0x50")==t[Jr("0x2a")]){const e=t[Jr("0x19")]();if(e&&e.is("element","caption"))return{type:"insertion"==t.type?Jr("0x25"):Jr("0x37"),element:e,quantity:1}}})),n[Jr("0x20")].registerDescriptionCallback((t=>Jr("0x27")==t.type&&Jr("0x73")==t[Jr("0x40")]?{type:Jr("0x71"),content:"Inline image to block image"}:Jr("0x27")==t[Jr("0x2a")]&&Jr("0x48")==t[Jr("0x40")]?{type:Jr("0x71"),content:Jr("0x33")}:void 0)),n[Jr("0x20")][Jr("0xe")]((t=>{const{data:e}=t;if(e){if(Jr("0x2b")==e[Jr("0x5c")]){const t=e[Jr("0x6a")][0][Jr("0x2f")];return n="side"===t?Yo(r,Jr("0x5b")):s[t]||t,{type:Jr("0x71"),content:Yo(r,Jr("0x74"),n)}}if(Jr("0x18")==e[Jr("0x5c")]){const t=e.commandParams[0][Jr("0x29")];return t?{type:"format",content:Yo(r,Jr("0x76"),'"'+t+'"')}:{type:Jr("0x71"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Jr("0x5c")]){const t=e.commandParams[0].width;return t?{type:Jr("0x71"),content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x63"))}}}var n}))}}const Zr=["model","selection","_suggestionFactory","discard","replaceImageSource","src","_descriptionFactory","data","plugins","editor","getSuggestionCallback","registerDescriptionCallback","get","getContainedElement","source","commandName","formatBlock","author","registerCustomCallback","accept","Users","commandParams","handleReplaceImageCommand","change","locale","handleSuggestionDescription","has","*Format:* replace image URL","afterInit","TrackChangesEditing","getAttribute"];var Yr,ti;Yr=Zr,ti=373,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1b")](){if(!this[ei("0x8")][ei("0x7")][ei("0x19")]("ImageEditing"))return;const t=this[ei("0x8")].plugins[ei("0xb")](ei("0x1c"));t.enableCommand(ei("0x3"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0x1")].registerCustomCallback(ei("0xf"),ei("0x3"),"accept",t[ei("0x1")][ei("0x9")](ei("0xf"),null,ei("0x2"))),t[ei("0x1")][ei("0x11")](ei("0xf"),ei("0x3"),"discard",t[ei("0x1")][ei("0x9")](ei("0xf"),null,ei("0x12"))),t[ei("0x5")][ei("0xa")]((t=>this[ei("0x18")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x8")][ei("0x7")][ei("0xb")](ei("0x1c")),o=this.editor.model.document[ei("0x0")].getSelectedElement();this.editor[ei("0x1e")][ei("0x16")]((()=>{let s=o[ei("0x1d")](ei("0x4"));const r=this[ei("0x8")][ei("0x7")][ei("0xb")](ei("0x13")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0xc")]();if("replaceImageSource"===t.subType&&e===o){t[ei("0x10")]!==r&&t[ei("0x2")](),s=t[ei("0x6")][ei("0x14")][0][ei("0xd")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x3"),commandParams:[{source:s}]},[],ei("0x3"))}))}[ei("0x18")](t){const{data:e}=t;if(e&&ei("0x3")===e[ei("0xe")]){const t=ei("0x1a");return{type:"format",content:Yo(this.editor[ei("0x17")],t)}}}}const oi=["commands","trackChanges","_trackChangesValueDuringImport","Users","get","track_changes","_trackChangesExecuted","lowest","_handleImportedData","execute","editor","forEach","importWord","TrackChangesEditing","high","collaboration_features","plugins","dataInsert","_setSuggestionData","value","enableCommand","listenTo"];var si,ri;si=oi,ri=210,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this[ii("0xc")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this.editor,e=t[ii("0xa")].get("importWord"),n=t[ii("0xa")][ii("0xe")](ii("0xb"));e&&(e.on(ii("0x13"),((t,[,e])=>{this[ii("0xc")]=n[ii("0x7")],e[ii("0x3")][ii("0xf")]=!this._trackChangesValueDuringImport}),{priority:ii("0x2")}),this[ii("0x9")](e,ii("0x5"),this[ii("0x12")].bind(this)),this.listenTo(e,ii("0x5"),(()=>{this[ii("0x10")]&&(n[ii("0x13")](),this[ii("0x10")]=!1)}),{priority:ii("0x11")}),t[ii("0x4")][ii("0xe")](ii("0x1"))[ii("0x8")](ii("0x0")))}[ii("0x12")](t,e){const{suggestions:n}=e,o=this[ii("0x14")].commands.get(ii("0xb")),s=o[ii("0x7")];this[ii("0xc")]!==s&&(o[ii("0x13")](),this[ii("0x10")]=!0),n&&n[ii("0x15")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x14")][ii("0x4")][ii("0xe")](ii("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x0")}}};this[ii("0x14")].plugins[ii("0xe")](ii("0x1"))[ii("0x6")](s)}))}}const xi=["schema","has","outdent","format","afterInit","getItems","markBlockFormat","getItemLabel","blockIndent","plugins","outdentBlock","editor","IndentBlock","_descriptionFactory","checkAttribute","*Indent:* %0","commandName","indentBlock","indent","document","get","enableCommand","model","from","filter","locale","IndentEditing","registerDescriptionCallback"];var ci,li;ci=xi,li=119,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return xi[t-=0]};class ui extends t.Plugin{[di("0x19")](){const t=this.editor,e=t[di("0x2")][di("0xd")]("TrackChangesEditing");t.plugins[di("0x16")](di("0x13"))&&(e[di("0xe")](di("0xb")),e[di("0xe")](di("0x17")));const n=t[di("0x12")];if(t[di("0x2")][di("0x16")](di("0x5"))){for(const n of["indentBlock",di("0x3")])e[di("0xe")](n,(()=>{const o=Array[di("0x10")](this[di("0x4")][di("0xf")][di("0xc")].selection.getSelectedBlocks())[di("0x11")]((t=>this[di("0x4")].model[di("0x15")][di("0x7")](t,di("0x1"))));t[di("0xf")].change((()=>{for(const t of o)e[di("0x1b")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xa")})}))}));e[di("0x6")][di("0x14")]((t=>{const{data:o}=t;if(!o)return;if(di("0xa")!=o.commandName&&di("0x3")!=o[di("0x9")])return;const s=t[di("0x1a")]()[0],r=e[di("0x6")][di("0x0")](s);return di("0xa")==o.commandName?{type:di("0x18"),content:Yo(n,di("0x8"),r)}:di("0x3")==o.commandName?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["get","init","input","plugins","editor","enableCommand"];gi=fi,mi=261,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 requires(){return[Vs.Input]}[hi("0x4")](){this[hi("0x1")][hi("0x0")][hi("0x3")]("TrackChangesEditing")[hi("0x2")](hi("0x5"))}}const bi=["getFirstPosition","registerDescriptionCallback","unlink","model","isCollapsed","getRanges","commandName","commandParams","_descriptionFactory","locale","markInlineFormat","selection","*Set link:* %0","link","LinkEditing","format","linkHref","plugins","afterInit","getAttribute","document","get","*Remove link*","enableCommand","getFirstRange","change","has","TrackChangesEditing"];var Ei,_i;Ei=bi,_i=323,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x3")](){const t=this.editor;if(!t[Ti("0x2")][Ti("0xb")](Ti("0x1b")))return;const e=t[Ti("0x2")][Ti("0x6")](Ti("0xc"));e[Ti("0x8")](Ti("0x1a"),((n,o)=>{const s=t[Ti("0x10")][Ti("0x5")][Ti("0x18")];let r=[];if(s[Ti("0x11")]){if(!s.hasAttribute(Ti("0x1")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x1"),s[Ti("0x4")](Ti("0x1")),t[Ti("0x10")]);r=[e]}}else r=Array.from(s[Ti("0x12")]());t[Ti("0x10")].change((()=>{for(const t of r)e[Ti("0x17")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x8")]("unlink",(()=>{const n=this.editor.model,o=n[Ti("0x5")][Ti("0x18")];n[Ti("0xa")]((()=>{let n=[];n=o[Ti("0x11")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),Ti("0x1"),o[Ti("0x4")](Ti("0x1")),t.model)]:ms(Ti("0x1"),o[Ti("0x9")](),t[Ti("0x10")]);for(const t of n)e[Ti("0x17")](t,{commandName:Ti("0xf"),commandParams:[]})}))})),e[Ti("0x15")][Ti("0xe")]((e=>{const{data:n}=e,o=t[Ti("0x16")];if(n){if(Ti("0x1a")==n[Ti("0x13")]){const t=n[Ti("0x14")][0];return{type:Ti("0x0"),content:Yo(o,Ti("0x19"),'"'+t+'"')}}return Ti("0xf")==n[Ti("0x13")]?{type:"format",content:Yo(o,Ti("0x7"))}:void 0}}))}}const yi=["*Outdent:* %0","*Check item*","editor","_descriptionFactory","numbered","TodoListEditing","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","ELEMENT_TODO_LIST","from","format","get","name","locale","selection","value","commandName","plugins","before","listItem","slice","listIndent","bulleted","registerDescriptionCallback","indentList","*Indent:* %0","schema","length","element","enableCommand","getAttribute","nextSibling","todo","outdentList","push","model","numberedList","afterInit","execute","ListEditing","_selectedElements","checkTodoList","todoListChecked","markBlockFormat","filter","registerElementLabel","commands","*Change to:* %0","blockName","document","ELEMENT_NUMBERED_LIST","commandParams","getSelectedBlocks","add","bulletedList","findIndex","isObject","previousSibling","change","todoList","createPositionAt"];var ki,Ai;ki=yi,Ai=197,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x17")](){const t=this[vi("0x31")],e=t[vi("0x3c")];if(!t.plugins.has(vi("0x19")))return;const n=t[vi("0x3")].get("TrackChangesEditing"),o=t[vi("0x3")].has(vi("0x34"));function s(e){return()=>{const o=t[vi("0x15")][vi("0x23")][vi("0x0")],s=t[vi("0x20")].get(e);if(s[vi("0x1")])return void t[vi("0x18")]("paragraph",{});const r=e[vi("0x6")](0,-4),i=function(t,e,n){let o=Array[vi("0x38")](t)[vi("0x1e")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x5"))&&!o[vi("0x2a")](e);var e,o}));o=o.filter((t=>!t.is(vi("0xe"),vi("0x5"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0xe"),vi("0x5"))?s.add(Si(t)):s.add(t);return Array[vi("0x38")](s)}(o[vi("0x26")](),r,t[vi("0x15")][vi("0xc")]);t[vi("0x15")][vi("0x2c")]((()=>{for(const t of i)n[vi("0x1d")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x1")]}],formatGroupId:vi("0x22")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x29")]((t=>"listItem"!=t[vi("0x3b")]));return n>-1&&(e=e[vi("0x6")](0,n)),e}(t.model[vi("0x23")][vi("0x0")][vi("0x26")]()),s=t[vi("0x15")].createRange(t[vi("0x15")][vi("0x2e")](o[0],vi("0x4")),t[vi("0x15")].createPositionAt(o[o[vi("0xd")]-1],"end"));t.model.change((()=>{n[vi("0x1d")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x7")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x11")];for(;t&&t.getAttribute(vi("0x7"))>n[vi("0x10")](vi("0x7"));)e[vi("0x27")](t),t=t[vi("0x11")]}return Array[vi("0x38")](e)}(o))}))}}n.enableCommand(vi("0x16"),s(vi("0x16"))),n[vi("0xf")](vi("0x28"),s("bulletedList")),o&&n[vi("0xf")]("todoList",s(vi("0x2d"))),n.enableCommand(vi("0xa"),r(vi("0xa"))),n.enableCommand(vi("0x13"),r(vi("0x13"))),o&&n[vi("0xf")](vi("0x1b"),(()=>{const e=t.commands[vi("0x3a")](vi("0x1b")),o=Array[vi("0x38")](e[vi("0x1a")]);o[vi("0x1e")]((t=>t[vi("0x10")](vi("0x1c"))!=e.value)),t[vi("0x15")][vi("0x2c")]((()=>{for(const t of o)n[vi("0x1d")](t,{commandName:vi("0x1b"),commandParams:[{forceValue:!e[vi("0x1")]}]})}))})),n[vi("0x32")][vi("0x1f")](vi("0x5"),(t=>Yo(e,vi("0x36"),t))),n[vi("0x32")][vi("0x9")]((t=>{const{data:n}=t;if(n){if(vi("0x16")==n[vi("0x2")]||vi("0x28")==n[vi("0x2")]||vi("0x2d")==n.commandName)switch(n[vi("0x2")].replace("List","")){case vi("0x8"):return o(Yo(e,vi("0x35")));case vi("0x33"):return o(Yo(e,vi("0x24")));case vi("0x12"):return o(Yo(e,vi("0x37")))}if(vi("0xa")==n[vi("0x2")])return{type:vi("0x39"),content:Yo(e,vi("0xb"),Yo(e,vi("0x36")))};if(vi("0x13")==n[vi("0x2")])return{type:vi("0x39"),content:Yo(e,vi("0x2f"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x1b")==n[vi("0x2")])return n[vi("0x25")][0].forceValue?{type:"format",content:Yo(e,vi("0x30"))}:{type:vi("0x39"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x39"),content:Yo(e,vi("0x21"),t)}}}))}}function Si(t){const e=t[vi("0x10")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2b")].is(vi("0xe"),vi("0x5"));){const o=t[vi("0x2b")].getAttribute(vi("0x7"));if(o==e)n=t[vi("0x2b")];else if(o<e)break;t=t[vi("0x2b")]}return n}function Ii(t){const e=[];if(t.is(vi("0xe"),"listItem")&&t[vi("0x10")](vi("0x7"))>0){let n=t.nextSibling;for(;n&&vi("0x5")==n.name&&n[vi("0x10")](vi("0x7"))==t.getAttribute(vi("0x7"));)e[vi("0x14")](n),n=n.nextSibling}return e}const Li=["createRange","handleListStartCommand","ListUtils","*Change to:* %0","getLastPosition","commandName","listStyle","toUpperCase","handleListReversedCommand","unshift","format","backward","listItem","get","_getSuggestionBlocksForListStyle","flat","map","selection","getSiblingNodes","plugins","_getTranslationKeyForListStyle","editor","getAttribute","_descriptionFactory","handleListStyleCommand","enableCommand","_LIST_","model","before","numbered","parent","listReversed","startIndex","*Format:* set order to reversed","change","length","styles","ListPropertiesEditing","createPositionAt","element","document","markMultiRangeBlockFormat","getFirstPosition","listType","reversed","getListTypeFromListStyleType","*Format:* set start index to %0","has","forward","registerDescriptionCallback","handleDescriptions","TrackChangesEditing","listStart","config","_getSuggestionBlocks","filter","from","list.properties","getSelectedBlocks","commandParams","bind"];var Ni,Mi;Ni=Li,Mi=281,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("0x2d")][wi("0x2b")][wi("0xa")](wi("0x0")))return;const t=this.editor[wi("0x10")].get(wi("0x14")),e=this[wi("0x2d")][wi("0x2b")].get(wi("0xe"));t[wi("0x3c")]&&e.enableCommand(wi("0x1e"),this[wi("0x30")][wi("0x17")](this)),t[wi("0x7")]&&e[wi("0x31")](wi("0x37"),this.handleListReversedCommand[wi("0x17")](this)),t[wi("0x38")]&&e.enableCommand(wi("0xf"),this[wi("0x19")][wi("0x17")](this)),e[wi("0x2f")][wi("0xc")](this[wi("0xd")][wi("0x17")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x2d")].plugins[wi("0x25")]("TrackChangesEditing"),o=this[wi("0x26")]();this.editor[wi("0x33")][wi("0x3a")]((()=>{n[wi("0x4")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wi("0x1e")})}))}[wi("0x20")](t,e={}){const n=this[wi("0x2d")].plugins[wi("0x25")](wi("0xe")),o=this._getSuggestionBlocks((t=>t.is(wi("0x2"),wi("0x24"))&&wi("0x35")===t[wi("0x2e")](wi("0x6"))));if(o[wi("0x3b")]<1)return;const s=o.map((t=>this[wi("0x2d")][wi("0x33")][wi("0x18")](this[wi("0x2d")][wi("0x33")].createPositionAt(t,wi("0x34")),this[wi("0x2d")][wi("0x33")].createPositionAt(t,0))));this.editor[wi("0x33")][wi("0x3a")]((()=>{n[wi("0x4")](s,{commandName:wi("0x37"),commandParams:[{reversed:e[wi("0x7")]}],formatGroupId:"listReversed"})}))}[wi("0x19")](t,e={}){const n=this[wi("0x2d")][wi("0x2b")].get(wi("0xe")),o=this[wi("0x11")]((t=>t.is(wi("0x2"),wi("0x24"))&&"numbered"===t.getAttribute("listType")));if(o[wi("0x3b")]<1)return;const s=o[wi("0x28")]((t=>this[wi("0x2d")][wi("0x33")][wi("0x18")](this[wi("0x2d")][wi("0x33")][wi("0x1")](t,wi("0x34")),this[wi("0x2d")][wi("0x33")].createPositionAt(t,0))));this.editor[wi("0x33")][wi("0x3a")]((()=>{n[wi("0x4")](s,{commandName:wi("0xf"),commandParams:[{startIndex:e[wi("0x38")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wi("0x2d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1d")]){case wi("0x1e"):o=wi("0x1b"),s={type:wi("0x22"),content:Yo(e,o,Yo(e,this[wi("0x2c")](n[wi("0x16")][0].type)))};break;case wi("0x37"):o=n.commandParams[0][wi("0x7")]?wi("0x39"):"*Format:* set order to regular",s={type:wi("0x22"),content:Yo(e,o)};break;case wi("0xf"):o=wi("0x9"),s={type:"format",content:Yo(e,o,n[wi("0x16")][0].startIndex)}}return s}[wi("0x26")](){var t,e,n,o;const s=this[wi("0x2d")][wi("0x2b")][wi("0x25")]("ListUtils");let r=Array[wi("0x13")](this[wi("0x2d")].model[wi("0x3")][wi("0x29")][wi("0x15")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x24")))&&r[wi("0x21")](...s[wi("0x2a")](this[wi("0x2d")].model[wi("0x3")][wi("0x29")][wi("0x5")](),wi("0x23"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element","listItem"))&&r.push(...s.getSiblingNodes(this[wi("0x2d")][wi("0x33")].document[wi("0x29")][wi("0x1c")](),wi("0xb"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x2d")][wi("0x33")][wi("0x3")][wi("0x29")][wi("0x5")]())||void 0===n?void 0:n[wi("0x36")])||void 0===o?void 0:o.is(wi("0x2"),wi("0x24")))&&(r=r.filter((t=>t.is(wi("0x2"),wi("0x24"))))),r}[wi("0x11")](t){const e=this[wi("0x2d")][wi("0x2b")][wi("0x25")](wi("0x1a"));let n=Array[wi("0x13")](this[wi("0x2d")][wi("0x33")][wi("0x3")][wi("0x29")][wi("0x15")]())[wi("0x12")](t).map((t=>{const n=this[wi("0x2d")][wi("0x33")].createPositionAt(t,0);return[...e.getSiblingNodes(n,wi("0x23")),...e[wi("0x2a")](n,wi("0xb"))]}))[wi("0x27")]();return n=[...new Set(n)],n}[wi("0x2c")](t){return"ELEMENT_"+this[wi("0x2d")][wi("0x2b")].get(wi("0x1a"))[wi("0x8")](t)[wi("0x1f")]()+wi("0x32")+t.toUpperCase().replace(/-/g,"_")}}const Pi=["showSuggestionHighlights","get","attribute:url:media","conversion","createEmptyElement","high","registerElementLabel","div","afterInit","downcastDispatcher","ELEMENT_MEDIA","stop","elementToElement","editor","mediaEmbed","MediaEmbedEditing","_descriptionFactory","enableCommand","data","media","TrackChangesEditing","plugins","dataDowncast"];var Fi,Di;Fi=Pi,Di=127,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Pi[t-=0]};class ji extends t.Plugin{[Bi("0x13")](){const t=this[Bi("0x1")];if(!t.plugins.has(Bi("0x3")))return;const e=t[Bi("0x9")][Bi("0xc")](Bi("0x8")),n=t.locale;e[Bi("0x5")](Bi("0x2")),e[Bi("0x4")][Bi("0x11")](Bi("0x7"),(t=>Yo(n,Bi("0x15"),t))),t[Bi("0xe")].for(Bi("0xa"))[Bi("0x0")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0xb")])return e[Bi("0xf")](Bi("0x12"))},converterPriority:Bi("0x10")}),t[Bi("0x6")][Bi("0x14")].on(Bi("0xd"),((t,e,n)=>{n.options[Bi("0xb")]&&t[Bi("0x16")]()}),{priority:Bi("0x10")})}}const Ui=["has","get","TrackChangesEditing","plugins","editor","mention","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=179,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{afterInit(){const t=this[Wi("0x0")];t[Wi("0x6")][Wi("0x3")](Wi("0x2"))&&t[Wi("0x6")][Wi("0x4")](Wi("0x5")).enableCommand(Wi("0x1"))}}const Vi=["PageBreakEditing","afterInit","get","plugins","editor","pageBreak","ELEMENT_PAGE_BREAK","enableCommand","locale","has","_descriptionFactory","TrackChangesEditing"];var Ki,$i;Ki=Vi,$i=395,function(t){for(;--t;)Ki.push(Ki.shift())}(++$i);const qi=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[qi("0x2")](){const t=this[qi("0x5")];if(!t[qi("0x4")][qi("0xa")](qi("0x1")))return;t[qi("0x4")][qi("0x3")](qi("0x0"))[qi("0x8")]("pageBreak");const e=t[qi("0x4")][qi("0x3")](qi("0x0")),n=t[qi("0x9")];e[qi("0xb")].registerElementLabel(qi("0x6"),(t=>Yo(n,qi("0x7"),t)))}}const Ji=["Paragraph","addClass","insertParagraph","from","checkChild","nodeAfter","ELEMENT_PARAGRAPH","isObject","getSelectedBlocks","bindElementToMarker","downcastDispatcher","TrackChangesEditing","model","name","span","_descriptionFactory","highest","options","writer","start","*Insert:* %0","addMarker:suggestion:insertion","markerName","change","plugins","paragraph","*Change to:* %0","getFirstRange","insert","afterInit","filter","getItemLabel","blockName","locale","editor","consumable","type","document","selection","editing","markerRange","$text","schema","enableCommand","isTouching","data","registerElementLabel","end","registerDescriptionCallback","activeMarkers","mapper","toViewPosition","get","createUIElement","ck-suggestion-marker-split","format","isLimit","insertion","has","commandName"];var Qi,Zi;Qi=Ji,Zi=345,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x2c")](){const t=this[Yi("0x31")];if(!t[Yi("0x27")][Yi("0xd")](Yi("0xf")))return;const e=t[Yi("0x30")],n=t[Yi("0x27")].get(Yi("0x1a"));n[Yi("0x1e")][Yi("0x1")](Yi("0x28"),(t=>Yo(e,Yi("0x15"),t))),n[Yi("0x3a")](Yi("0x28"),((e,o={})=>{const s=t[Yi("0x1b")][Yi("0x34")],r=o[Yi("0x35")]||s[Yi("0x35")],i=Array[Yi("0x12")](r[Yi("0x17")]())[Yi("0x2d")]((t=>{return e=t,(n=this[Yi("0x31")][Yi("0x1b")][Yi("0x39")])[Yi("0x13")](e.parent,"paragraph")&&!n[Yi("0x16")](e)&&"paragraph"!=e[Yi("0x1c")];var e,n}));t[Yi("0x1b")][Yi("0x26")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x2f")},fs(t))}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x28")==n[Yi("0xe")])return{type:Yi("0xa"),content:Yo(e,Yi("0x29"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x11")),t[Yi("0x36")].downcastDispatcher.on("addMarker:suggestion:insertion",ea(t),{priority:Yi("0x1f")}),t[Yi("0x0")][Yi("0x19")].on(Yi("0x24"),((e,n,o)=>{o[Yi("0x20")].showSuggestionHighlights&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x3")]((n=>{if(Yi("0xc")!==n[Yi("0x33")])return;const{start:s,end:r}=n[Yi("0x2a")]();if(!s[Yi("0x3b")](r)||!s.nodeAfter)return;const i=t[Yi("0x1b")].schema,a=s.nodeAfter;return i.isBlock(a)&&!i[Yi("0xb")](a)&&i.checkChild(a,"$text")?{type:Yi("0xc"),content:Yo(e,Yi("0x23"),o[Yi("0x2e")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x7")](Yi("0x1a")),i=o[Yi("0x37")][Yi("0x22")],a=o[Yi("0x37")][Yi("0x2")],x=t[Yi("0x1b")].schema;if(!i[Yi("0x3b")](a)||!i[Yi("0x14")])return;const c=i.nodeAfter;if(x.isBlock(c)&&!x[Yi("0xb")](c)&&x[Yi("0x13")](c,Yi("0x38"))){if(!s[Yi("0x32")].consume(o[Yi("0x37")],n[Yi("0x1c")]))return;const t=s.writer[Yi("0x8")](Yi("0x1d"),{class:Yi("0x9")}),i=s[Yi("0x5")][Yi("0x6")](a);e&&r[Yi("0x4")].includes(o.markerName)&&s.writer[Yi("0x10")]("ck-suggestion-marker--active",t),s[Yi("0x21")][Yi("0x2b")](i,t),s[Yi("0x5")][Yi("0x18")](t,o[Yi("0x25")])}}}const na=["getItems","plugins","TrackChangesEditing","change","RemoveFormatEditing","removeFormat","selection","isCollapsed","locale","getAttributes","commandName","getRanges","registerDescriptionCallback","editor","from","document","has","model"];var oa,sa;oa=na,sa=328,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{afterInit(){const t=this[ra("0x9")];if(!t[ra("0xf")][ra("0xc")](ra("0x0")))return;const e=t[ra("0xf")].get(ra("0x10"));e.enableCommand(ra("0x1"),(n=>{const o=t.model[ra("0xb")][ra("0x2")];o[ra("0x3")]?n():t.model[ra("0x11")]((()=>{const n=Array[ra("0xa")](o[ra("0x7")]());for(const o of n)for(const n of o[ra("0xe")]())aa(n,t[ra("0xd")].schema)&&e.markInlineFormat(t[ra("0xd")].createRangeOn(n),{commandName:ra("0x1"),commandParams:[]})}))})),e._descriptionFactory[ra("0x8")]((e=>{const{data:n}=e;if(n&&ra("0x1")==n[ra("0x6")])return{type:"format",content:Yo(t[ra("0x4")],"*Remove all formatting*")}}))}}function aa(t,e){for(const[n]of t[ra("0x5")]()){const t=e.getAttributeProperties(n);if(t&&t.isFormatting)return!0}return!1}const xa=["goToPreviousRestrictedEditingException","trackChanges","acceptSelectedSuggestions","enableCommand","RestrictedEditingModeEditing","acceptAllSuggestions","get","acceptSuggestion","editor","discardSuggestion","plugins","has","afterInit"];var ca,la;ca=xa,la=409,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return xa[t-=0]};class ua extends t.Plugin{[da("0x6")](){const t=this[da("0x2")];if(!t[da("0x4")][da("0x5")](da("0xb")))return;const e=t.plugins.get("TrackChangesEditing");e[da("0xa")](da("0x7")),e[da("0xa")]("goToNextRestrictedEditingException");const n=t[da("0x4")][da("0x0")]("RestrictedEditingModeEditing");n[da("0xa")](da("0x8")),n[da("0xa")](da("0x1")),n[da("0xa")](da("0x3")),n[da("0xa")](da("0xc")),n[da("0xa")]("discardAllSuggestions"),n.enableCommand(da("0x9")),n[da("0xa")]("discardSelectedSuggestions")}}const ga=["init","markerRange","includes","span","activeMarkers","model","split","registerElementLabel","toViewPosition","get","name","bindElementToMarker","editor","merge","plugins","enableCommand","createUIElement","test","high","deletion","createPositionBefore","addMarker:suggestion","ELEMENT_LINE_BREAK","writer","options","_descriptionFactory","consumable","locale","showSuggestionHighlights","downcastDispatcher","ck-suggestion-marker--active","requires","ck-suggestion-marker-","editing","markerName","shiftEnter","addMarker:suggestion:deletion","softBreak","insert"];var ma,fa;ma=ga,fa=360,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get[ha("0x16")](){return[nr.ShiftEnter]}[ha("0x1e")](){const t=this[ha("0x3")],e=t[ha("0x5")][ha("0x0")]("TrackChangesEditing");e[ha("0x6")](ha("0x1a")),t[ha("0x18")].downcastDispatcher.on("addMarker:suggestion:insertion",ba(t),{priority:ha("0x9")}),t[ha("0x18")][ha("0x14")].on(ha("0x1b"),ba(t),{priority:ha("0x9")}),t.data[ha("0x14")].on(ha("0xc"),((e,n,o)=>{o[ha("0xf")][ha("0x13")]&&ba(t,{showActiveMarker:!1})(e,n,o)})),e[ha("0x10")][ha("0x25")]("softBreak",(e=>Yo(t[ha("0x12")],ha("0xd"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0x5")][ha("0x0")]("TrackChangesEditing");if(!s[ha("0x11")][ha("0x8")](o[ha("0x1f")],n[ha("0x1")]))return;const i=t[ha("0x23")];for(const t of o.markerRange.getItems()){if(!t.is("element",ha("0x1c")))continue;const n=ha("0xa")==o[ha("0x19")][ha("0x24")](":")[1]?ha("0x4"):ha("0x24"),a=s.writer[ha("0x7")](ha("0x21"),{class:ha("0x17")+n}),x=s.mapper[ha("0x26")](i[ha("0xb")](t));e&&r[ha("0x22")][ha("0x20")](o[ha("0x19")])&&s[ha("0xe")].addClass(ha("0x15"),a),s[ha("0xe")][ha("0x1d")](x,a),s.mapper[ha("0x2")](a,o[ha("0x19")])}}}const Ea=["document","FORMAT_RESTRICTED_ENABLED","commandName","getRanges","TrackChangesEditing","from","FORMAT_RESTRICTED_DISABLED","value","registerDescriptionCallback","selection","forceValue","_descriptionFactory","get","plugins","markInlineFormat","restrictedEditingException","model","enableCommand","has","afterInit","commands","format","StandardEditingModeEditing"];var _a,Ta;_a=Ea,Ta=336,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x5")](){const t=this.editor,e=t[Ca("0x2")],n=t.locale;if(!t[Ca("0x16")][Ca("0x4")](Ca("0x8")))return;const o=t[Ca("0x16")][Ca("0x15")](Ca("0xd")),s=Ca("0x1"),r=t[Ca("0x6")].get(s);o[Ca("0x3")](s,((t,n={})=>{const i=e[Ca("0x9")][Ca("0x12")];if(i.isCollapsed)return void t(n);const a=void 0!==n.forceValue?n.forceValue:!r[Ca("0x10")];e.change((()=>{const t=Array[Ca("0xe")](i[Ca("0xc")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o[Ca("0x0")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0x14")][Ca("0x11")]((t=>{const{data:e}=t;if(e&&e[Ca("0xb")]==s)return e.commandParams[0][Ca("0x13")]?{type:Ca("0x7"),content:Yo(n,Ca("0xa"))}:{type:Ca("0x7"),content:Yo(n,Ca("0xf"))}}))}}const ka=["has","getDefinitionsForView","getSelectedBlocks","normalizeConfig","change","get","markBlockFormat","add","forceValue","model","plugins","getAttribute","enabledStyles","value","format","isBlock","classes","style","style:","commandName","includes","push","name","commandParams","getAncestors","styleName","every","find","afterInit","_getRangesWithClasses","TrackChangesEditing","block","DataSchema","inline","_getStyleDefinition","createRangeOn","config","getItems","markInlineFormat","StyleUtils","modelElements","from","*Format:* %0","getRanges","*Remove format:* %0"];var Aa,va;Aa=ka,va=165,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Sa extends t.Plugin{[Ra("0x2b")](){const t=this.editor;if(!t[Ra("0x19")][Ra("0xf")]("Style"))return;const e=t.commands[Ra("0x14")](Ra("0x20")),n=t[Ra("0x19")].get(Ra("0x0")),o=t.locale,s=t[Ra("0x19")][Ra("0x14")](Ra("0x2")),r=t[Ra("0x19")][Ra("0x14")](Ra("0x9"))[Ra("0x12")](s,t[Ra("0x6")][Ra("0x14")]("style.definitions"));n.enableCommand(Ra("0x20"),((o,{styleName:i})=>{const a=t[Ra("0x18")].document.selection,x=this[Ra("0x4")](i,r);if(!x)return;if(!e[Ra("0x1b")][Ra("0x23")](i))return;if(a.isCollapsed&&!x[Ra("0x1e")])return void o({styleName:i});const c=!e[Ra("0x1c")].includes(x[Ra("0x25")]);if(x[Ra("0x1e")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Ra("0x27")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Ra("0x25")])){n[Ra("0x16")](o);break}}return n}(a[Ra("0x11")](),x[Ra("0xa")]);t[Ra("0x18")][Ra("0x13")]((()=>{for(const t of e)n[Ra("0x15")](t,{commandName:Ra("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x21")+i})}))}else{let e=Array[Ra("0xb")](a[Ra("0xd")]());if(!c){const n=Array[Ra("0xb")](s[Ra("0x10")](x.element,!1))[0][Ra("0x18")],o=[];for(const s of e){const e=this[Ra("0x2c")](t[Ra("0x18")],s,x[Ra("0x1f")],n);o[Ra("0x24")](...e)}e=o}t[Ra("0x18")][Ra("0x13")]((()=>{for(const t of e)n[Ra("0x8")](t,{commandName:Ra("0x20"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ra("0x20")===e[Ra("0x22")])return e[Ra("0x26")][0][Ra("0x17")]?{type:Ra("0x1d"),content:Yo(o,Ra("0xc"),e[Ra("0x26")][0][Ra("0x28")].toLowerCase())}:{type:Ra("0x1d"),content:Yo(o,Ra("0xe"),e[Ra("0x26")][0][Ra("0x28")].toLowerCase())}}))}[Ra("0x4")](t,e){let n=e[Ra("0x1")][Ra("0x2a")]((e=>e[Ra("0x25")]===t));return n||(n=e[Ra("0x3")][Ra("0x2a")]((e=>e[Ra("0x25")]===t))),n}[Ra("0x2c")](t,e,n,o){const s=[];for(const r of e[Ra("0x7")]()){const e=r[Ra("0x1a")](o);e&&n[Ra("0x29")]((t=>e.classes[Ra("0x23")](t)))&&s.push(t[Ra("0x5")](r))}return s}}const Ia=["createTableWalker","suggestion","writer","markMultiRangeInsertion","isInContent","TrackChangesEditing","getChildren","above","$graveyard","enableCommand","tableColumn","root","getRowIndexes","filter","name","_setupColumnsRowsFixing","getSuggestion","isIntersectingWithRange","getFirstRange","editor","getSelectionAffectedTableCells","markMultiRangeDeletion","add","differ","_getCoordsForCells","end","every","first","max","getContainedElement","change","last","data","*Remove:* %0","createPositionAt","_acceptFormatSuggestionCallbackFactory","afterInit","_tablePostFixingSubtypes","addMarker:suggestion","rowspan","deletion","execute","join","map","tableCell","isArray","toViewElement","plugins","ELEMENT_TABLE_COLUMN","position","subType","commands","order","showSuggestionHighlights","selectTableColumn","_tableSuggestions","registerPostFixer","hasAttribute","getRanges","type","maxRow","insertTable","insertTableRowAbove","includes","ELEMENT_TABLE_ROW_WITH_TEXT","createRangeOn","from","oldRange","left","fromRange","_suggestionFactory","get","registerDescriptionCallback","substr","removeTableColumn","*Insert:* %0","element","enqueueChange","_splitMarkerName","change:data","getItems","ELEMENT_TABLE_WITH_TEXT","isEqual","discard","minColumn","MIN_SAFE_INTEGER","ELEMENT_TABLE","push","removeClass","document","getAttribute","insertTableRowBelow","insertion","minRow","_getSuggestionCoords","_descriptionFactory","classes","length","min","getCellLocation","addRange","isTouching","options","detach","removeTableRow","downcastDispatcher","findAncestor","ELEMENT_TABLE_COLUMN_WITH_TEXT","start","rootName","colspan","selectTableRow","model","getChangedMarkers","getChanges","$textProxy","tableRow","values","some","table","refresh","insertTableColumnLeft","ELEMENT_TABLE_ROW","registerCustomCallback","setSelection","toLowerCase","accept","TableUtils","insert","getColumnIndexes","item","nodeAfter","TableEditing","cell","MAX_SAFE_INTEGER"];var La,Na;La=Ia,Na=321,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return Ia[t-=0]};class wa extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Ma("0x41"),Ma("0x5e")],this._tableSuggestions=new Set}[Ma("0x78")](){const t=this.editor,e=t.model[Ma("0x26")].selection;if(!t[Ma("0x83")].has(Ma("0x51")))return;const n=t.locale,o=t[Ma("0x83")][Ma("0x14")](Ma("0x59")),s=t[Ma("0x83")].get(Ma("0x4c"));o[Ma("0x2c")].registerElementLabel("table",(t=>Yo(n,Ma("0x23"),t))),this[Ma("0x63")](),o[Ma("0x5d")](Ma("0xa")),o[Ma("0x5d")](Ma("0x3c")),o.enableCommand(Ma("0x3"));for(const n of[Ma("0xb"),Ma("0x28")]){const r=t.commands[Ma("0x14")](n);o[Ma("0x5d")](n,(n=>{t.model[Ma("0x72")]((t=>{n();const i=Ma("0x5b")===r[Ma("0x1")],a=s[Ma("0x68")](e),x=s.getRowIndexes(a),c=i?x.first-1:x[Ma("0x73")]+1,l=a[0][Ma("0x37")](Ma("0x44")),d=s[Ma("0x54")](l,{startRow:c,endRow:c}),u=Array[Ma("0xf")](d).map((e=>t[Ma("0xe")](e[Ma("0x52")])));o.markMultiRangeInsertion(u,Ma("0x41"))}))}))}for(const n of[Ma("0x46"),"insertTableColumnRight"]){const r=t[Ma("0x0")][Ma("0x14")](n);o[Ma("0x5d")](n,(n=>{t[Ma("0x3d")].change((t=>{n();const i=Ma("0x11")===r[Ma("0x1")],a=s.getSelectionAffectedTableCells(e),x=s[Ma("0x4e")](a),c=i?x[Ma("0x6f")]-1:x[Ma("0x73")]+1,l=a[0][Ma("0x37")](Ma("0x44")),d=s[Ma("0x54")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Ma("0xf")](d)[Ma("0x7f")]((e=>t[Ma("0xe")](e[Ma("0x52")])));o[Ma("0x57")](u,Ma("0x5e"))}))}))}for(const n of[Ma("0x35"),Ma("0x17")]){const r=n.substr(11),i=r[Ma("0x4a")](),a=i.substr(0,3)+"span",x="table"+r,c=Ma("0x2f")+r,l=Ma("0x70")+r;o[Ma("0x5d")](n,(()=>{t[Ma("0x3d")][Ma("0x72")]((t=>{const r=s[Ma("0x68")](e),d=r[0].findAncestor(Ma("0x44"));let u;if("removeTableRow"==n){const t=s[Ma("0x60")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s[Ma("0x4e")](r);u={startColumn:t[Ma("0x6f")],endColumn:t[Ma("0x73")],includeAllSlots:!0}}const g=s[Ma("0x54")](d,u),m=Array[Ma("0xf")](g)[Ma("0x7f")]((({cell:t})=>t)),f=Oa(m[Ma("0x61")]((t=>t[Ma("0x6")](a)))),h=Oa(m.filter((t=>!t.hasAttribute(a))))[Ma("0x7f")]((e=>t[Ma("0xe")](e))),p=o[Ma("0x69")](h,x);if(p&&(Ma("0x41")==p[Ma("0x86")]||"tableColumn"==p[Ma("0x86")])){const e=this[Ma("0x2b")](p);for(const n of f){const o=t[Ma("0xe")](n),r=s[Ma("0x30")](n),x=n[Ma("0x27")](a)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+x<=u&&p[Ma("0x31")](o)}}}))}))}function r(n){const o=Array[Ma("0xf")](e[Ma("0x7")]()).map((t=>i.LiveRange[Ma("0x12")](t)));t[Ma("0x3d")][Ma("0x72")]((e=>{const s=e.batch;n=n.filter((t=>Ma("0x5c")!=t[Ma("0x5f")].rootName)),e[Ma("0x49")](n),t[Ma("0x0")][Ma("0x14")](Ma("0x35"))[Ma("0x45")](),t[Ma("0x7d")](Ma("0x35"),{forceDefaultExecution:!0}),t.model[Ma("0x1a")]((()=>{t[Ma("0x3d")][Ma("0x1a")](s,(t=>{const e=o[Ma("0x61")]((t=>Ma("0x5c")!=t[Ma("0x5f")][Ma("0x3a")]));e.length>0&&t[Ma("0x49")](e);for(const t of o)t.detach()}))}))}))}function x(n){t.model[Ma("0x72")]((o=>{const s=Array[Ma("0xf")](e[Ma("0x7")]())[Ma("0x7f")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Ma("0x1d")]({shallow:!0}))r.push(e);for(const e of r)Ma("0x5c")!=e[Ma("0x5f")][Ma("0x3a")]&&(o[Ma("0x49")](o[Ma("0x76")](e,0)),t[Ma("0x0")].get(Ma("0x17"))[Ma("0x45")](),t[Ma("0x7d")](Ma("0x17"),{forceDefaultExecution:!0}));const a=s.filter((t=>"$graveyard"!=t[Ma("0x5f")][Ma("0x3a")]));a[Ma("0x2e")]>0&&o[Ma("0x49")](a);for(const t of s)t[Ma("0x34")]()}))}function c(t,e){return e[Ma("0x6e")]((e=>t[Ma("0x43")]((t=>t[Ma("0x6d")][Ma("0x1f")](e[Ma("0x39")])||e[Ma("0x6d")].isEqual(t[Ma("0x39")])))))}function l(t,e){return t[Ma("0x43")]((t=>e[Ma("0x43")]((e=>t[Ma("0x6d")][Ma("0x32")](e[Ma("0x39")])))))}t[Ma("0x74")][Ma("0x36")].on(Ma("0x7a"),((t,e,n)=>{if(!n[Ma("0x33")][Ma("0x2")])return;const o=e[Ma("0x4f")];if(!o)return;const s=n.mapper[Ma("0x82")](o);function r(t){return Array[Ma("0x81")](t)?t:[t]}s&&Ma("0x80")===o.name&&(0,a.setHighlightHandling)(s,n[Ma("0x56")],((t,e,n)=>n.addClass(r(e[Ma("0x2d")]),t)),((t,e,n)=>n[Ma("0x25")](r(e[Ma("0x2d")]),t)))}),{priority:"highest"}),o[Ma("0x2c")][Ma("0x15")]((t=>{if(Ma("0x29")!=t[Ma("0x8")]&&Ma("0x7c")!=t.type)return;const e=t[Ma("0x71")]();if(null!=e&&e.is(Ma("0x19"),Ma("0x44"))){if(Ma("0x29")==t[Ma("0x8")]){const e=t[Ma("0x1d")]()[Ma("0x61")]((t=>t.is(Ma("0x40"))))[Ma("0x7f")]((t=>t.data));if(e[Ma("0x2e")])return{type:"insertion",content:Yo(n,Ma("0x18"),Yo(n,Ma("0x1e"),'"'+e.join(" ")+'"'))}}if(Ma("0x7c")==t.type){const e=t[Ma("0x1d")]().filter((t=>t.is("$textProxy")))[Ma("0x7f")]((t=>t[Ma("0x74")]));if(e[Ma("0x2e")])return{type:Ma("0x7c"),content:Yo(n,Ma("0x75"),Yo(n,Ma("0x1e"),'"'+e[Ma("0x7e")](" ")+'"'))}}}})),o[Ma("0x2c")][Ma("0x15")]((t=>{if(Ma("0x41")==t[Ma("0x86")]){const e=t[Ma("0x1d")]()[Ma("0x61")]((t=>t.is(Ma("0x40"))))[Ma("0x7f")]((t=>t[Ma("0x74")])),o=this[Ma("0x2b")](t),s=o[Ma("0x9")]-o[Ma("0x2a")]+1;if(Ma("0x29")==t[Ma("0x8")])return e[Ma("0x2e")]?{type:Ma("0x29"),content:Yo(n,Ma("0x18"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Ma("0x29"),content:Yo(n,Ma("0x18"),Yo(n,Ma("0x47"),s))};if(Ma("0x7c")==t[Ma("0x8")])return e.length?{type:Ma("0x7c"),content:Yo(n,Ma("0x75"),Yo(n,Ma("0xd"),[s,'"'+e[Ma("0x7e")](" ")+'"']))}:{type:Ma("0x7c"),content:Yo(n,Ma("0x75"),Yo(n,Ma("0x47"),s))}}if(Ma("0x5e")==t.subType){const e=t[Ma("0x1d")]()[Ma("0x61")]((t=>t.is(Ma("0x40")))).map((t=>t.data)),o=this._getSuggestionCoords(t),s=o.maxColumn-o[Ma("0x21")]+1;if(Ma("0x29")==t[Ma("0x8")])return e.length?{type:Ma("0x29"),content:Yo(n,Ma("0x18"),Yo(n,Ma("0x38"),[s,'"'+e[Ma("0x7e")](" ")+'"']))}:{type:Ma("0x29"),content:Yo(n,Ma("0x18"),Yo(n,Ma("0x84"),s))};if(Ma("0x7c")==t[Ma("0x8")])return e[Ma("0x2e")]?{type:Ma("0x7c"),content:Yo(n,Ma("0x75"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Ma("0x7e")](" ")+'"']))}:{type:Ma("0x7c"),content:Yo(n,Ma("0x75"),Yo(n,Ma("0x84"),s))}}})),o[Ma("0x13")][Ma("0x48")](Ma("0x29"),"tableRow",Ma("0x20"),r),o[Ma("0x13")].registerCustomCallback(Ma("0x7c"),"tableRow","accept",r),o[Ma("0x13")][Ma("0x48")](Ma("0x29"),Ma("0x5e"),Ma("0x20"),x),o[Ma("0x13")].registerCustomCallback("deletion",Ma("0x5e"),Ma("0x4b"),x),o[Ma("0x13")].registerCustomCallback(Ma("0x29"),"tableColumn",Ma("0x7e"),c),o[Ma("0x13")][Ma("0x48")](Ma("0x7c"),Ma("0x5e"),Ma("0x7e"),c),o[Ma("0x13")][Ma("0x48")]("insertion","tableRow",Ma("0x7e"),l),o[Ma("0x13")].registerCustomCallback(Ma("0x7c"),Ma("0x41"),Ma("0x7e"),l)}[Ma("0x77")](){const t=this[Ma("0x67")],e=t[Ma("0x3d")][Ma("0x26")].selection;return(n,o)=>{t.model[Ma("0x72")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][Ma("0x6d")].nodeBefore;a&&a[0]&&!1===a[0].forceValue&&(x=n[0].start[Ma("0x50")]);const c=s.createRangeIn(x);if(Ma("0x5c")==c[Ma("0x5f")][Ma("0x3a")])return;const l=Array[Ma("0xf")](e[Ma("0x7")]()).map((t=>i.LiveRange[Ma("0x12")](t)));s.setSelection(c),t[Ma("0x0")].get(r)[Ma("0x45")](),a[Ma("0x24")]({forceDefaultExecution:!0}),t[Ma("0x7d")](r,...a);const d=l.filter((t=>"$graveyard"!=t[Ma("0x5f")][Ma("0x3a")]));d.length>0&&s[Ma("0x49")](d);for(const t of l)t[Ma("0x34")]()}))}}[Ma("0x6c")](t){const e=this[Ma("0x67")][Ma("0x83")][Ma("0x14")](Ma("0x4c"));let n=Number[Ma("0x53")],o=Number[Ma("0x22")],s=Number[Ma("0x53")],r=Number[Ma("0x22")];for(const i of t){if("$graveyard"==i[Ma("0x5f")][Ma("0x3a")])continue;const{row:t,column:a}=e.getCellLocation(i),x=i[Ma("0x6")](Ma("0x7b"))?i[Ma("0x27")](Ma("0x7b"))-1:0,c=i[Ma("0x6")](Ma("0x3b"))?i[Ma("0x27")](Ma("0x3b"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Ma("0x63")](){const t=this.editor,e=t.plugins[Ma("0x14")](Ma("0x59")),n=t[Ma("0x83")][Ma("0x14")]("TableUtils");t.model[Ma("0x26")].on(Ma("0x1c"),(()=>{const n=Array.from(t.model.document.differ[Ma("0x3e")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Ma("0x1b")](t);if(Ma("0x55")!=n)continue;if(null!=o[Ma("0x10")])continue;const i=e[Ma("0x64")](s);this[Ma("0x79")][Ma("0xc")](r)&&this[Ma("0x4")][Ma("0x6a")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Ma("0xe")](t),r=t[Ma("0x37")](Ma("0x44")),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Ma("0x86")],a=n.startsWith("tablePaste"),x=n[Ma("0x16")](a?10:5),c=x[Ma("0x4a")](),l=c.substr(0,3)+"span",d="min"+x,u=Ma("0x70")+x;if(!e[Ma("0x58")])continue;if(r!=e[Ma("0x66")]()[Ma("0x39")].findAncestor(Ma("0x44")))continue;if(e[Ma("0x65")](s))continue;const g=t[Ma("0x6")](l)?t[Ma("0x27")](l)-1:0,m=this[Ma("0x2b")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Ma("0x31")](s),o=!0)}return o};t.model[Ma("0x26")][Ma("0x5")]((e=>{let n=!1;for(const s of t[Ma("0x3d")].document[Ma("0x6b")][Ma("0x3f")]())if(Ma("0x4d")==s[Ma("0x8")])if(Ma("0x41")==s[Ma("0x62")])for(const t of s[Ma("0x85")].nodeAfter[Ma("0x5a")]())n=n||o(t,e);else Ma("0x80")==s[Ma("0x62")]&&(n=n||o(s[Ma("0x85")][Ma("0x50")],e));return n}))}[Ma("0x2b")](t){return this[Ma("0x6c")](t[Ma("0x7")]()[Ma("0x7f")]((t=>t.start.nodeAfter)))}}function Oa(t){return Array[Ma("0xf")](new Set(t)[Ma("0x42")]())}const Pa=["getSelectionAffectedTableCells","$graveyard","execute","fromRange","change","registerDescriptionCallback","direction","value","cell","TableUtils","markBlockFormat","requires","mergeTableCellLeft","forceDefaultExecution","findAncestor","add","table","selection","commandName","registerCustomCallback","tableCell","highest","author","_tablePostFixingSubtypes","getCellLocation","setSelection","accept","rootName","createRangeOn","model","enableCommand","_suggestionFactory","TableEditing","has","getAncestors","deletion","markMultiRangeBlockFormat","horizontally","getFirstPosition","containsRange","insertion","afterInit","root","mergeTableCells","isEnabled","push","editor","locale","type","length","find","getSuggestions","isInContent","splitTableCellHorizontally","mergeTableCellRight","mergeTableCellUp","trackChanges","_areSelectedCellsMergable","TrackChangesEditing","stop","document","_areMergableCells","element","_isForcedDefaultExecutionBlock","get","map","plugins","splitTableCellVertically","createTableWalker","from","size","formatBlock","refresh","getRanges","mergeTableCellDown","commands","*Split cell:* horizontally","format"];var Fa,Da;Fa=Pa,Da=254,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Pa[t-=0]};class ja extends t.Plugin{static get[Ba("0x45")](){return[wa]}[Ba("0x15")](){const t=this[Ba("0x1a")],e=t[Ba("0x9")][Ba("0x28")].selection,n=t[Ba("0x1b")];if(!t.plugins.has(Ba("0xc")))return;const o=t.plugins[Ba("0x2c")]("TrackChangesEditing"),s=t[Ba("0x2e")][Ba("0x2c")]("TableUtils"),r=t.plugins[Ba("0x2c")](wa);r[Ba("0x3")][Ba("0x19")](Ba("0x17")),o.enableCommand(Ba("0x17"),(()=>{const e=s[Ba("0x3a")](t[Ba("0x9")].document[Ba("0x4b")]);t[Ba("0x9")][Ba("0x3e")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Ba("0x37")].get(Ba("0x17")).on("execute",((e,n)=>{t[Ba("0x37")][Ba("0x2c")](Ba("0x24"))[Ba("0x41")]&&(n[Ba("0x1d")]>0&&n[n[Ba("0x1d")]-1]&&n[n[Ba("0x1d")]-1][Ba("0x47")]||o[Ba("0x2b")]||this._areSelectedCellsMergable()||e[Ba("0x27")]())}),{priority:Ba("0x1")});for(const e of[Ba("0x23"),"mergeTableCellRight",Ba("0x36"),Ba("0x46")]){const n=t[Ba("0x37")].get(e);o[Ba("0xa")](e,(()=>{const e=t[Ba("0x9")][Ba("0x28")][Ba("0x4b")][Ba("0x12")]()[Ba("0xe")]()[Ba("0x1e")]((t=>t.is("element",Ba("0x0")))),s=n[Ba("0x41")];t[Ba("0x9")][Ba("0x3e")]((()=>{o[Ba("0x10")]([e,s],{commandName:Ba("0x17"),commandParams:[]},[],Ba("0x17"))}))}))}for(const e of[Ba("0x2f"),Ba("0x21")]){const n=t.commands.get(e);o[Ba("0xa")](e,(()=>{const r=s[Ba("0x3a")](t[Ba("0x9")][Ba("0x28")][Ba("0x4b")])[0],i=r[Ba("0x48")](Ba("0x4a")),{column:a,row:x}=s[Ba("0x4")](r);let c=[];if(Ba("0x11")==n[Ba("0x40")]){const t=s[Ba("0x30")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array[Ba("0x31")](t).map((t=>t[Ba("0x42")]))}else{const t=s[Ba("0x30")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0x31")](t).map((t=>t[Ba("0x42")]))}t[Ba("0x9")].change((t=>{o[Ba("0x44")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Ba("0x3f")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Ba("0x4c")]?{type:Ba("0x39"),content:Yo(n,"*Merge cells*")}:void 0})),o._descriptionFactory[Ba("0x3f")]((t=>{const{data:e}=t;if(e)return Ba("0x2f")==e.commandName?{type:Ba("0x39"),content:Yo(n,"*Split cell:* vertically")}:Ba("0x21")==e.commandName?{type:Ba("0x39"),content:Yo(n,Ba("0x38"))}:void 0}));const a=r._acceptFormatSuggestionCallbackFactory();for(const t of[Ba("0x23"),Ba("0x22"),Ba("0x36"),Ba("0x46")])o[Ba("0xb")].registerCustomCallback(Ba("0x33"),t,Ba("0x6"),a);for(const t of[Ba("0x2f"),"splitTableCellHorizontally"])o[Ba("0xb")][Ba("0x4d")](Ba("0x33"),t,"accept",a);o[Ba("0xb")][Ba("0x4d")](Ba("0x33"),Ba("0x17"),"accept",(n=>{t.model[Ba("0x3e")]((o=>{const s=Array[Ba("0x31")](e[Ba("0x35")]())[Ba("0x2d")]((t=>i.LiveRange[Ba("0x3d")](t)));o[Ba("0x5")](n),t[Ba("0x37")][Ba("0x2c")]("mergeTableCells")[Ba("0x34")](),t[Ba("0x3c")](Ba("0x17"),{forceDefaultExecution:!0});const r=s.filter((t=>Ba("0x3b")!=t[Ba("0x16")][Ba("0x7")]));r.length>0&&o[Ba("0x5")](r);for(const t of s)t.detach()}))}));for(const e of[Ba("0x23"),Ba("0x36"),Ba("0x46"),Ba("0x22")]){const n=t[Ba("0x37")][Ba("0x2c")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model.document[Ba("0x4b")][Ba("0x12")]()[Ba("0xe")]()[Ba("0x1e")]((t=>t.is(Ba("0x2a"),"tableCell")));this._areMergableCells(n[Ba("0x41")],o)||(e.return=!1,e[Ba("0x27")]())}}),{priority:"low"})}}[Ba("0x25")](){const t=this[Ba("0x1a")][Ba("0x37")].get(Ba("0x17")),e=this.editor[Ba("0x2e")][Ba("0x2c")](Ba("0x43"));if(!t[Ba("0x18")])return!1;const n=e[Ba("0x3a")](this[Ba("0x1a")].model[Ba("0x28")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Ba("0x29")](t,e){const n=this[Ba("0x1a")].plugins[Ba("0x2c")](Ba("0x26")),o=this[Ba("0x1a")].model[Ba("0x8")](t),s=this[Ba("0x1a")][Ba("0x9")][Ba("0x8")](e),r=new Set,i=new Set;for(const t of n[Ba("0x1f")]())if((Ba("0x14")==t[Ba("0x1c")]||Ba("0xf")==t.type||"mergeTableCells"==t.subType)&&t[Ba("0x20")])for(const e of t.getRanges())e[Ba("0x13")](o,!0)&&r[Ba("0x49")](t[Ba("0x1c")]+":"+t.author.id),e.containsRange(s,!0)&&i.add(t[Ba("0x1c")]+":"+t[Ba("0x2")].id);if(r[Ba("0x32")]!=i[Ba("0x32")])return!1;for(const t of r)if(!i[Ba("0xd")](t))return!1;return!0}}const Ua=["accept","isBefore","createPositionBefore","TableUtils","afterInit","headingRows","data","plugins","writer","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","markBlockFormat","nodeBefore","addMarker:suggestion","editor","value","selection","bindElementToMarker","getSuggestion","getColumnIndexes","markerName","locale","formatBlock","unbindElementFromMarkerName","markerNameToElements","toViewElement","setTableRowHeader","enableCommand","registerDescriptionCallback","childCount","ck-suggestion-marker--active","getChild","highest","activeMarkers","_suggestionFactory","setTableColumnHeader","forceValue","consume","getRowIndexes","registerCustomCallback","change","ck-suggestion-marker-","removeMarker:suggestion","markerRange","commandName","commands","headingColumns","_descriptionFactory","_splitMarkerName","removeAttribute","showSuggestionHighlights","parent","FORMAT_REGULAR_COLUMN","editing","*Format:* %0","createRange","index","data-suggestion","FORMAT_REGULAR_ROW","end","get","commandParams","mapper","getAttribute","FORMAT_HEADER_COLUMN","getCellLocation","includes","TableEditing","document","createPositionAfter","removeClass","table","format","downcastDispatcher","addClass","name","cell","from","model","consumable","findAncestor","start","last","createTableWalker"];var Ga,Ha;Ga=Ua,Ha=431,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 requires(){return[wa]}[Wa("0x4d")](){const t=this[Wa("0x3")];if(!t[Wa("0x50")].has(Wa("0x38")))return;const e=t[Wa("0xa")],n=t[Wa("0x50")][Wa("0x31")]("TrackChangesEditing"),o=t[Wa("0x50")][Wa("0x31")](Wa("0x4c")),s=t[Wa("0x50")][Wa("0x31")](wa);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n[Wa("0x25")](r.markerName),c=n[Wa("0x7")](x);if(!c[Wa("0x4f")]||"setTableColumnHeader"!=c.data[Wa("0x21")])return;if(r.item)return void s.stop();if(!i[Wa("0x44")][Wa("0x1a")](r[Wa("0x20")],s[Wa("0x40")]))return;const l=r[Wa("0x20")][Wa("0x46")].nodeAfter,d=r[Wa("0x20")][Wa("0x30")][Wa("0x1")],u=l[Wa("0x28")][Wa("0x28")],{column:g}=o[Wa("0x36")](l),{column:m}=o[Wa("0x36")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wa("0x41")],c=i[Wa("0x33")][Wa("0xe")](s);i[Wa("0x51")][Wa("0x3f")](Wa("0x1e")+a,c),e&&i[Wa("0x51")].setAttribute(Wa("0x2e"),x,c),i[Wa("0x33")][Wa("0x6")](c,r[Wa("0x9")]),t&&(n[Wa("0x16")][Wa("0x37")](r[Wa("0x9")])?i[Wa("0x51")][Wa("0x3f")]("ck-suggestion-marker--active",c):i[Wa("0x51")].removeClass(Wa("0x13"),c))}}}}n.enableCommand("setTableRowHeader",((e,s)=>{const r=o[Wa("0x52")](t[Wa("0x43")].document[Wa("0x5")]),i=o[Wa("0x1b")](r),a=r[0][Wa("0x45")](Wa("0x3c")),x=a[Wa("0x34")](Wa("0x4e"))||0,c=s&&null!==s[Wa("0x19")]?s[Wa("0x19")]:!t.commands[Wa("0x31")]("setTableRowHeader").value,l=c?i[Wa("0x47")]:i.first,d=a[Wa("0x14")](l);let u;if(c){const e=a.getChild(x);if(d[Wa("0x2d")]<e.index)return;u=t.model[Wa("0x2c")](t[Wa("0x43")].createPositionBefore(e.getChild(0)),t[Wa("0x43")].createPositionAfter(d[Wa("0x14")](d.childCount-1)))}else{const e=a[Wa("0x14")](x-1);if(!e)return;u=t[Wa("0x43")].createRange(t[Wa("0x43")][Wa("0x4b")](d[Wa("0x14")](0)),t[Wa("0x43")][Wa("0x3a")](e[Wa("0x14")](e[Wa("0x12")]-1)))}t.model[Wa("0x1d")]((()=>{n[Wa("0x0")](u,{commandName:Wa("0xf"),commandParams:[{forceValue:c}]},[],Wa("0xf"))}))})),n[Wa("0x10")](Wa("0x18"),((e,o)=>{const s=t.plugins[Wa("0x31")](Wa("0x4c")),r=s[Wa("0x52")](t[Wa("0x43")][Wa("0x39")].selection),i=s[Wa("0x8")](r),a=r[0][Wa("0x45")](Wa("0x3c")),x=a[Wa("0x34")](Wa("0x23"))||0,c=o&&null!==o.forceValue?o[Wa("0x19")]:!t[Wa("0x22")][Wa("0x31")](Wa("0x18"))[Wa("0x4")];let l;const d=a[Wa("0x14")](0),u=c?i[Wa("0x47")]:i.first,g=s[Wa("0x48")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Wa("0x42")](g)[0][Wa("0x41")];if(c){const e=d[Wa("0x14")](x);if(m[Wa("0x4a")](e))return;l=t[Wa("0x43")][Wa("0x2c")](t.model.createPositionBefore(e),t[Wa("0x43")][Wa("0x3a")](m))}else{const e=d[Wa("0x14")](x-1);if(!e)return;l=t.model[Wa("0x2c")](t.model.createPositionBefore(m),t[Wa("0x43")][Wa("0x3a")](e))}t[Wa("0x43")].change((()=>{n[Wa("0x0")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Wa("0x18"))}))})),t[Wa("0x2a")][Wa("0x3e")].on(Wa("0x2"),r(),{priority:"highest"}),t[Wa("0x4f")][Wa("0x3e")].on(Wa("0x2"),((t,e,n)=>{n.options[Wa("0x27")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wa("0x15")}),t.editing[Wa("0x3e")].on(Wa("0x1f"),((t,e,o)=>{const{type:s,id:r}=n[Wa("0x25")](e[Wa("0x9")]),i=n.getSuggestion(r);if(!i[Wa("0x4f")]||Wa("0x18")!=i[Wa("0x4f")][Wa("0x21")])return;const a=o[Wa("0x33")][Wa("0xd")](e[Wa("0x9")]);if(a)for(const t of a)o[Wa("0x51")][Wa("0x3b")]("ck-suggestion-marker-"+s,t),o[Wa("0x51")][Wa("0x3b")](Wa("0x13"),t),o.writer[Wa("0x26")](Wa("0x2e"),t),o[Wa("0x33")][Wa("0xc")](t,e[Wa("0x9")])}),{priority:Wa("0x15")}),n[Wa("0x24")][Wa("0x11")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Wa("0x21")]){const t=n[Wa("0x32")][0][Wa("0x19")];return o(Yo(e,t?"FORMAT_HEADER_ROW":Wa("0x2f")))}if("setTableColumnHeader"==n.commandName){const t=n[Wa("0x32")][0][Wa("0x19")];return o(Yo(e,Wa(t?"0x35":"0x29")))}}function o(t){return{type:Wa("0x3d"),content:Yo(e,Wa("0x2b"),t)}}}));const i=s[Wa("0x53")]();n[Wa("0x17")][Wa("0x1c")](Wa("0xb"),"setTableRowHeader",Wa("0x49"),i),n[Wa("0x17")][Wa("0x1c")](Wa("0xb"),Wa("0x18"),Wa("0x49"),i)}}const Va=["reduce","tableCellBorderStyle","row","tablePasteRow","createTableWalker","filter","model","remove","getRange","first","oldRange","insertRows","differ","has","insertColumns","markMultiRangeInsertion","stop","document","tableCellBackgroundColor","fromEntries","move","setAttributes","removeMarker","ck-suggestion-marker--active","getSuggestions","isInContent","some","getColumns","isEmpty","removeMarkers","TableUtils","getItems","position","TrackChangesEditing","getRows","registerCustomCallback","markerName","endRow","endColumn","suggestionLoaded","_suggestionFactory","map","suggestion","hasSuggestion","set","ck-suggestion-marker-insertion","options","commands","tableCellPadding","includes","push","cells","requires","removeRows","Users","plugins","last","find","rowInsertionRanges","listenTo","*Replace table cells*","entries","author","_createdBatches","insert","suggestion:formatBlock:tablePasteCell","_tablePostFixingSubtypes","createRangeIn","getContainedElement","$graveyard","ck-suggestion-marker","value","columns","tableCellBorderColor","isEqual","markerAttributes","nodeAfter","tableCellHorizontalAlignment","subType","batch","suggestionUnloaded","tablePasteCell","markMultiRangeBlockFormat","createRangeOn","root","from","getChild","insertContent","tableCell","getColumnIndexes","cell","getAttributes","markMultiRangeDeletion","createRange","suggestion-td","_getCoordsForCells","clipboardOutput","end","tablePaste","_replaceTableSlotCell","conversion","rowInsertionIndexes","insertion","previousSibling","deletion","_splitMarkerName","_descriptionFactory","schema","fill","elementToElement","attributes","getChanges","for","forceDefaultExecution","tableCellBorderWidth","length","tablePasteChainId","high","editing","activeMarkers","discard","createElement","columnInsertionIndexes","registerDescriptionCallback","setAttribute","rows","getMarkers","paragraph","tableCellSuggestion","every","TableClipboard","newRange","getChildren","keys","change","tableCellVerticalAlignment","registerPostFixer","table","previous","unwrap","findAncestor","getChangedMarkers","register","low","tablePasteColumn","column","getRanges","containsRange","getAllAdjacentSuggestions","type","getRowIndexes","get","accept","add","getSuggestion","getSelectionAffectedTableCells","nextSibling","formatBlock","name","redo","getShiftedBy","editor","startsWith","getSuggestionCallback","element"];var Ka,$a;Ka=Va,$a=386,function(t){for(;--t;)Ka.push(Ka.shift())}(++$a);const qa=function(t,e){return Va[t-=0]},Xa=[qa("0x3a"),qa("0x11"),qa("0x6e"),qa("0x15"),qa("0x4f"),qa("0x7f"),qa("0x9d")],Ja=Object[qa("0x80")](Xa[qa("0x96")]((t=>[t,null])));class Qa extends t.Plugin{static get[qa("0xa1")](){return[wa]}afterInit(){const t=this[qa("0x69")];if(!t.plugins[qa("0x7a")]("TableClipboard"))return;const n=t[qa("0xa4")][qa("0x5f")](qa("0x8e")),o=t[qa("0xa4")][qa("0x5f")](qa("0x8b")),s=t.plugins.get(wa),r=t[qa("0xa4")].get(qa("0x4a"));s[qa("0xa")].push(qa("0x70"),qa("0x58")),t[qa("0x73")][qa("0x33")][qa("0x56")](qa("0x48"),{allowIn:"tableCell",allowContentOf:qa("0x20"),isLimit:!0}),t[qa("0x2c")][qa("0x35")]({model:qa("0x48"),view:qa("0x26")});let i=null;t.model.on(qa("0x1f"),((s,a)=>{const[x,c]=a,l=a[a.length-1];l&&l[qa("0x39")]||n._isForcedDefaultExecutionBlock||this[qa("0x69")][qa("0x9c")][qa("0x5f")]("trackChanges")[qa("0xf")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o[qa("0x63")](n[qa("0x7e")].selection);if(!i.length)return!1;const a=i[0][qa("0x54")](qa("0x51")),x=o[qa("0x5e")](i),c=o[qa("0x21")](i),l={startRow:x[qa("0x76")],endRow:x[qa("0x0")],startColumn:c.first,endColumn:c[qa("0x0")]};return 1==i[qa("0x3b")]&&(l[qa("0x92")]+=o[qa("0x8f")](r)-1,l[qa("0x93")]+=o[qa("0x88")](r)-1),Ya(a,l,o)}(x,c,t[qa("0x73")],o,r)&&(s[qa("0x7d")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qa("0x73")][qa("0x4e")]((()=>{t[qa("0x73")][qa("0x1f")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[qa("0x7c")](s,qa("0x70"),{tablePasteChainId:o}),r[qa("0x3b")]&&n[qa("0x7c")](r,qa("0x58"),{tablePasteChainId:o}),x[qa("0x3b")]&&n.markMultiRangeInsertion(x,qa("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[qa("0x3b")]&&n[qa("0x24")](c,qa("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[qa("0x1a")](l[qa("0x96")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],qa("0x19"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[qa("0x73")][qa("0x1b")](o),i=e[qa("0x1")]((t=>t[qa("0x75")]()[qa("0x12")](r)));i&&n.push([i[qa("0x66")],s])}n.length&&d[qa("0x44")](qa("0x13"),Object[qa("0x80")](n))}i=null})))}),{priority:e.priorities[qa("0x3d")]+10}),t.plugins.get(qa("0x4a")).on(qa("0x2b"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qa("0x7d")]();const r=n[qa("0x22")],a=o,x=Za(r),c=Za(a);t.return=r;let l=null,d=null;if(c||x)if(x&&!c){s[qa("0x74")](r[qa("0x1e")](0));for(const t of Array[qa("0x1d")](a[qa("0x4c")]()))s[qa("0x8")](t,r,qa("0x29"));const t=i[qa("0x2d")][qa("0x9e")](n[qa("0x6f")]),e=i[qa("0x42")][qa("0x9e")](n[qa("0x59")]);t||e||(l=s[qa("0xb")](r))}else c&&!x&&(d=s.createRangeIn(r));else{const t=s[qa("0x41")](qa("0x48")),e=s[qa("0x41")](qa("0x48"));s.wrap(s[qa("0xb")](r),e),s[qa("0x8")](t,r,0);for(const e of Array[qa("0x1d")](a[qa("0x4c")]()))s[qa("0x8")](e,t,qa("0x29"));l=s[qa("0x1b")](t),d=s[qa("0x1b")](e)}const u=Array.from(a[qa("0x23")]())[qa("0x72")]((([t])=>Xa.includes(t)));i[qa("0xa0")].push({element:r,attributes:u[qa("0x3b")]?Object[qa("0x80")](u):null}),l&&i.insertionRanges[qa("0x9f")](l),d&&i.deletionRanges.push(d)}),{priority:qa("0x3d")}),o.on(qa("0x7b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[qa("0x10")]||1;i.columnInsertionIndexes=new Array(x)[qa("0x34")](a)[qa("0x96")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:a,endColumn:a+x-1}))i.columnInsertionRanges[qa("0x9f")](t[qa("0x73")].createRangeOn(e))}),{priority:qa("0x57")}),o.on(qa("0x78"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[qa("0x45")]||1;i[qa("0x2d")]=new Array(x)[qa("0x34")](a)[qa("0x96")](((t,e)=>t+e));for(const{cell:e}of o[qa("0x71")](s,{startRow:a,endRow:a+x-1}))i[qa("0x2")].push(t[qa("0x73")][qa("0x1b")](e))}),{priority:"low"}),n[qa("0x32")][qa("0x43")]((e=>{if(e[qa("0x16")]&&e[qa("0x16")].startsWith(qa("0x2a")))return e[qa("0x52")]?{}:{type:qa("0x2e"),content:Yo(t.locale,qa("0x4"))}}));const a=()=>{};for(const t of[qa("0x2a"),"tablePasteColumn","tablePasteRow","tablePasteCell"])n[qa("0x95")][qa("0x90")](qa("0x2e"),t,"join",a),n[qa("0x95")][qa("0x90")](qa("0x30"),t,"join",a);n[qa("0x95")][qa("0x90")]("formatBlock",qa("0x19"),qa("0x40"),a),n[qa("0x95")][qa("0x90")](qa("0x65"),qa("0x19"),qa("0x60"),((e,n,o)=>{const s=e[qa("0x96")]((t=>t[qa("0xc")]()))[qa("0x72")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[qa("0xa0")])e&&r.set(t,e);else if(o&&o[qa("0x13")])for(const[e,n]of Object[qa("0x5")](o.markerAttributes)){const o=t[qa("0x73")].markers[qa("0x5f")](e),s=o?o[qa("0x75")]().getContainedElement():null;s&&r[qa("0x99")](s,n)}t[qa("0x73")][qa("0x4e")]((t=>{for(const[e,n]of r)t[qa("0x82")]({...Ja,...n},e)}))}));const x=(e,o)=>{n[qa("0x95")][qa("0x90")](e,qa("0x2a"),o,((s,r,i)=>{t[qa("0x73")][qa("0x4e")]((t=>{const a=[];for(const t of s){const e=t.start[qa("0x14")];e.is(qa("0x6c"),qa("0x48"))&&a[qa("0x9f")](e)}n[qa("0x95")][qa("0x6b")](e,null,o)(s,r,i);for(const e of a)qa("0xd")!=e[qa("0x1c")].rootName&&t[qa("0x53")](e)}))}))};x(qa("0x2e"),"accept"),x(qa("0x2e"),"discard"),x("deletion",qa("0x60")),x(qa("0x30"),qa("0x40")),n[qa("0x95")][qa("0x90")]("insertion",qa("0x70"),"discard",(t=>{const e=t[qa("0x96")]((t=>t.getContainedElement())),n=e[0][qa("0x54")](qa("0x51")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[qa("0xa2")](n,{at:r,rows:i-r+1})})),n[qa("0x95")][qa("0x90")](qa("0x2e"),qa("0x58"),qa("0x40"),(t=>{const e=t.map((t=>t[qa("0xc")]())),n=e[0][qa("0x54")](qa("0x51")),{minColumn:r,maxColumn:i}=s[qa("0x27")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qa("0x16")]||!e[qa("0x16")].startsWith("tablePaste"))return;const o=e[qa("0x36")][qa("0x3c")],s=n[qa("0x85")]()[qa("0x72")]((t=>t[qa("0x86")]&&t[qa("0x36")]&&t[qa("0x36")][qa("0x3c")]==o));s[qa("0x3b")]&&e[qa("0x5c")]()[qa("0x3b")]!=s[qa("0x3b")]&&s[qa("0x6d")](((t,e)=>(t.next=e,e[qa("0x52")]=t,e)))};function l(t,e=!0){const{id:o}=n[qa("0x31")](t[qa("0x91")]),s=[qa("0xe"),qa("0x9a")],r=n[qa("0x3f")][qa("0x9e")](t.markerName);return r&&s[qa("0x9f")](qa("0x84")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qa("0x94"),c,{priority:qa("0x3d")}),n.on(qa("0x18"),c,{priority:"high"}),t[qa("0x73")][qa("0x7e")][qa("0x50")]((()=>{let e=!1;const o=Array[qa("0x1d")](t.model[qa("0x7e")][qa("0x79")][qa("0x55")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[qa("0x31")](s);if(qa("0x97")!=o||qa("0x30")!=i||r[qa("0x77")])continue;if(!n[qa("0x98")](a))continue;const x=n[qa("0x62")](a)[qa("0x5a")](),c=t[qa("0xa4")][qa("0x5f")]("Users").me;for(const t of n[qa("0x85")]())if(t[qa("0x86")]&&t[qa("0x6")]==c&&"formatBlock"==t[qa("0x5d")]&&qa("0x19")==t[qa("0x16")]&&t[qa("0x5a")]()[qa("0x49")]((t=>x[qa("0x87")]((e=>e.containsRange(t,!0))))))for(const n of t[qa("0x5c")]())n[qa("0x86")]&&(n.discard(),e=!0)}return e})),t[qa("0x73")][qa("0x7e")].registerPostFixer((e=>{const o=t.commands[qa("0x5f")](qa("0x67"));if(!o||!o[qa("0x7")][qa("0x7a")](e[qa("0x17")]))return!1;let s=!1;const r=t[qa("0xa4")][qa("0x5f")]("Users").me,i=t.model[qa("0x7e")].differ[qa("0x37")](),a=Array[qa("0x1d")](t[qa("0x73")].document[qa("0x79")][qa("0x55")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qa("0x31")](t);return qa("0x97")==o&&qa("0x2a")==s&&i==r.id&&!e[qa("0x77")]}));for(const t of i){if(qa("0x8")!=t[qa("0x5d")]||"tableCellSuggestion"!=t.name||1!=t.length)continue;const n=e[qa("0x25")](t.position,t[qa("0x8d")][qa("0x68")](1));if(!a[qa("0x1")]((({data:t})=>t[qa("0x4b")][qa("0x12")](n))))for(const{name:t,data:o}of a)if(n[qa("0x5b")](o[qa("0x4b")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[qa("0x73")].document[qa("0x50")]((e=>{let o=!1;const s=t[qa("0xa4")][qa("0x5f")](qa("0xa3")).me,r=n[qa("0x85")]()[qa("0x72")]((t=>t.isInContent&&t[qa("0x6")]==s)),i=new Set,a=new Set;for(const t of r)if(qa("0x2a")==t[qa("0x16")])for(const e of t[qa("0x46")]()){const n=e[qa("0x75")]()[qa("0xc")]();if(n)if(n.is(qa("0x6c"),qa("0x48"))&&Za(n)){t[qa("0x83")](e[qa("0x66")]),i[qa("0x61")](n),o=!0;const s=n[qa("0x64")],r=n[qa("0x2f")],x=s&&s.is(qa("0x6c"),qa("0x48")),c=r&&r.is(qa("0x6c"),qa("0x48"));x&&!i.has(s)&&a.add(s),c&&!i.has(r)&&a[qa("0x61")](r)}else n.is(qa("0x6c"),qa("0x47"))&&n.isEmpty&&(t[qa("0x83")](e[qa("0x66")]),o=!0)}else if(qa("0x19")==t[qa("0x16")]){if(!t[qa("0x36")]||!t[qa("0x36")][qa("0x3c")])continue;const e=t[qa("0x36")].markerAttributes;if(e&&Object[qa("0x4d")](e).length)continue;const n=t[qa("0x36")][qa("0x3c")];let s=!0,i=!0;for(const e of r)if(e[qa("0x16")]&&e.subType[qa("0x6a")](qa("0x2a"))){if(!e[qa("0x36")][qa("0x3c")]){i=!1;break}if(e.id!=t.id&&e.attributes[qa("0x3c")]==n){s=!1;break}}i&&s&&(t[qa("0x8a")](),o=!0)}for(const t of i)e[qa("0x74")](t);for(const t of a)e[qa("0x53")](t);return o})),t[qa("0x2c")][qa("0x38")]("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t[qa("0x2c")][qa("0x38")]("dataDowncast").markerToHighlight({model:qa("0x9"),view:(t,e)=>e[qa("0x9b")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const d=t[qa("0x3e")].view;this[qa("0x3")](d[qa("0x7e")],qa("0x28"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content)[qa("0x8c")]())t.is("element",qa("0x26"))&&n[qa("0x9f")](t);d[qa("0x4e")]((t=>{for(const e of n)t[qa("0x81")](t[qa("0xb")](e),t.createPositionBefore(e)),t[qa("0x74")](e)}))}))}}function Za(t){if(t.isEmpty)return!0;const e=t[qa("0x1e")](0);return e.is("element",qa("0x47"))&&e[qa("0x89")]}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qa("0x71")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["columnWidths","getTableColumnsWidths","enableCommand","afterInit","commandParams","plugins","handleResizeTableWidthCommand","resizeTableWidth","handleSuggestionDescription","_suggestionFactory","locale","getSuggestionCallback","tableWidth","formatGroupId","registerCustomCallback","Users","resizeColumnWidths","subType","discard","author","editor","markBlockFormat","data","get","_descriptionFactory","TableColumnResizeEditing","format","has","change","accept","table","bind","model","document","formatBlock","resizeTable","TrackChangesEditing","selection"];var ex,nx;ex=tx,nx=187,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{[ox("0x6")](){if(!this[ox("0x17")][ox("0x8")][ox("0x1e")](ox("0x1c")))return;const t=this[ox("0x17")].plugins[ox("0x1a")](ox("0x1"));t.enableCommand(ox("0xa"),this[ox("0x9")][ox("0x22")](this)),t[ox("0x5")](ox("0x13"),this.handleResizeTableWidthCommand[ox("0x22")](this)),t[ox("0xc")][ox("0x11")]("formatBlock","resizeTable",ox("0x20"),t[ox("0xc")][ox("0xe")](ox("0x25"),null,ox("0x15"))),t[ox("0xc")][ox("0x11")](ox("0x25"),ox("0x0"),ox("0x15"),t[ox("0xc")].getSuggestionCallback(ox("0x25"),null,ox("0x20"))),t[ox("0x1b")].registerDescriptionCallback(this.handleSuggestionDescription[ox("0x22")](this))}[ox("0x9")](t,e){const n=this.editor[ox("0x8")].get(ox("0x1")),o=this[ox("0x17")][ox("0x8")].get("TableColumnResizeEditing"),s=e[ox("0x21")]||this[ox("0x17")].model[ox("0x24")][ox("0x2")].getSelectedElement();this.editor[ox("0x23")][ox("0x1f")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[ox("0x4")](r):null,a=s.getAttribute("tableWidth")||null;const x=e[ox("0xf")]||a,c=e.columnWidths||i,l=this[ox("0x17")][ox("0x8")].get(ox("0x12")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(ox("0x0")===t[ox("0x14")]&&e===s){t[ox("0x16")]!==l&&t[ox("0x15")]();const e=t[ox("0x19")][ox("0x7")];a=e[0][ox("0xf")],i=e[0][ox("0x3")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x18")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:ox("0x0")},[],ox("0x0"))}))}[ox("0xb")](t){const{data:e}=t;if(e&&ox("0x0")===e[ox("0x10")]){const t="*Format:* resize table";return{type:ox("0x1d"),content:Yo(this.editor[ox("0xd")],t)}}}}const rx=["TrackChangesEditing","Template","plugins","editor","has","insertTemplate","enableCommand"];var ix,ax;ix=rx,ax=120,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{afterInit(){const t=this[xx("0x2")];t.plugins[xx("0x3")](xx("0x0"))&&t[xx("0x1")].get(xx("0x6"))[xx("0x5")](xx("0x4"))}}const lx=["locale","plugins","enableCommand","insertTableOfContents","commands","TrackChangesEditing","registerElementLabel","afterInit","get"];var dx,ux;dx=lx,ux=181,function(t){for(;--t;)dx.push(dx.shift())}(++ux);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x6")](){const t=this.editor;if(!t[gx("0x3")][gx("0x7")](gx("0x2")))return;t[gx("0x0")][gx("0x7")](gx("0x4"))[gx("0x1")](gx("0x2"));const e=t[gx("0x0")][gx("0x7")](gx("0x4")),n=t[gx("0x8")];e._descriptionFactory[gx("0x5")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fx=["end","document","registerPostFixer","Title","suggestion","newRange","forward","TrackChangesEditing","title-content","registerElementLabel","plugins","locale","getNearestSelectionRange","editor","ELEMENT_TITLE","_splitMarkerName","schema","isCollapsed","getChangedMarkers","_descriptionFactory","model","from","get","differ","start","element","removeMarker","isEqual"];var hx,px;hx=fx,px=102,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{afterInit(){const t=this[bx("0x17")];if(!t[bx("0x14")].has(bx("0xd")))return;const e=t.plugins[bx("0x4")](bx("0x11"));e[bx("0x1")][bx("0x13")](bx("0x12"),(()=>Yo(t[bx("0x15")],bx("0x18")))),t[bx("0x2")][bx("0xb")][bx("0xc")]((n=>{let o=!1;const s=Array[bx("0x3")](t[bx("0x2")][bx("0xb")][bx("0x5")][bx("0x0")]());for(const{name:r,data:i}of s){const{group:s}=e[bx("0x19")](r);if(bx("0xe")!==s||!i[bx("0xf")])continue;const a=i.newRange,x=a[bx("0xa")].nodeBefore;if(!x||!x.is(bx("0x7"),bx("0x12")))continue;if(!a[bx("0x6")].isTouching(a[bx("0xa")]))continue;const c=t[bx("0x2")][bx("0x1a")][bx("0x16")](a[bx("0xa")],bx("0x10"));if(c&&c[bx("0x1b")]){const t=n.createRange(a[bx("0x6")],c.start);t[bx("0x9")](a)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[bx("0x8")](r),o=!0)}return o}))}}const _x=["TrackChangesEditing","editor","enableCommand","plugins","afterInit","get","UndoEditing","undo"];var Tx,Cx;Tx=_x,Cx=147,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x1")](){const t=this[yx("0x6")],e=t.plugins[yx("0x2")](yx("0x5"));t[yx("0x0")].has(yx("0x3"))&&(e[yx("0x7")](yx("0x4")),e[yx("0x7")]("redo"))}}const Ax=["TrackChangesEditing","has","get","plugins","toggleTableCaption","TableCaptionEditing","enableCommand","editor","afterInit"];var vx,Rx;vx=Ax,Rx=353,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Sx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get requires(){return[wa]}[Sx("0x6")](){const t=this[Sx("0x5")];t[Sx("0x1")][Sx("0x8")](Sx("0x3"))&&t.plugins[Sx("0x0")](Sx("0x7"))[Sx("0x4")](Sx("0x2"))}}const Lx=["getListTypeFromListStyleType","numbered","DocumentListPropertiesUtils","commandParams","_LIST_","enableCommand","handleListStartCommand","startIndex","replace","_descriptionFactory","list.properties","DocumentListUtils","commandName","bind","selection","document","registerDescriptionCallback","markMultiRangeBlockFormat","handleDescriptions","isFirstBlockOfListItem","handleListStyleCommand","type","listStyle","getAttribute","format","_getSuggestionBlocksForListStyle","getSelectedBlocks","locale","_getSuggestionBlocks","expandListBlocksToCompleteList","ELEMENT_","*Change to:* %0","model","isListItemBlock","from","push","plugins","TrackChangesEditing","*Format:* set order to regular","change","config","_getTranslationKeyForListStyle","reversed","handleListReversedCommand","has","listReversed","*Format:* set start index to %0","get","toUpperCase","editor","listStart","styles"];var Nx,Mx;Nx=Lx,Mx=257,function(t){for(;--t;)Nx.push(Nx.shift())}(++Mx);const wx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{afterInit(){if(!this[wx("0x0")].plugins[wx("0x2f")]("DocumentListPropertiesEditing"))return;const t=this[wx("0x0")][wx("0x2b")].get(wx("0xd")),e=this[wx("0x0")].plugins[wx("0x32")](wx("0x28"));t[wx("0x2")]&&e[wx("0x8")](wx("0x19"),this[wx("0x17")][wx("0x10")](this)),t.reversed&&e[wx("0x8")]("listReversed",this[wx("0x2e")][wx("0x10")](this)),t[wx("0xa")]&&e.enableCommand(wx("0x1"),this[wx("0x9")][wx("0x10")](this)),e[wx("0xc")][wx("0x13")](this[wx("0x15")][wx("0x10")](this))}[wx("0x17")](t,e={}){const n=this.editor[wx("0x27")][wx("0x32")]("TrackChangesEditing"),o=this[wx("0x1c")]();this[wx("0x0")][wx("0x23")][wx("0x2a")]((()=>{n[wx("0x14")](o,{commandName:wx("0x19"),commandParams:[{type:e[wx("0x18")]}],formatGroupId:wx("0x19")})}))}[wx("0x2e")](t,e={}){const n=this[wx("0x0")][wx("0x27")][wx("0x32")](wx("0x28")),o=this[wx("0x0")][wx("0x27")][wx("0x32")]("DocumentListUtils"),s=this[wx("0x1f")]((t=>o[wx("0x24")](t)&&wx("0x4")===t[wx("0x1a")]("listType")));null!==s&&this[wx("0x0")][wx("0x23")][wx("0x2a")]((()=>{n[wx("0x14")](s,{commandName:wx("0x30"),commandParams:[{reversed:e[wx("0x2d")]}],formatGroupId:"listReversed"})}))}[wx("0x9")](t,e={}){const n=this.editor[wx("0x27")].get("TrackChangesEditing"),o=this.editor.plugins[wx("0x32")](wx("0xe")),s=this[wx("0x1f")]((t=>o.isListItemBlock(t)&&wx("0x4")===t.getAttribute("listType")));null!==s&&this[wx("0x0")][wx("0x23")][wx("0x2a")]((()=>{n[wx("0x14")](s,{commandName:wx("0x1"),commandParams:[{startIndex:e[wx("0xa")]}],formatGroupId:wx("0x1")})}))}handleDescriptions(t){const e=this[wx("0x0")][wx("0x1e")],{data:n}=t;if(!n)return;let o,s;switch(n[wx("0xf")]){case wx("0x19"):o=wx("0x22"),s={type:wx("0x1b"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wx("0x18")])))};break;case wx("0x30"):o=n[wx("0x6")][0][wx("0x2d")]?"*Format:* set order to reversed":wx("0x29"),s={type:"format",content:Yo(e,o)};break;case wx("0x1"):o=wx("0x31"),s={type:wx("0x1b"),content:Yo(e,o,n[wx("0x6")][0][wx("0xa")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wx("0x0")][wx("0x27")][wx("0x32")](wx("0xe"));let e=Array[wx("0x25")](this.editor[wx("0x23")][wx("0x12")][wx("0x11")][wx("0x1d")]());return e[wx("0x26")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[wx("0x1f")](t){const e=this[wx("0x0")][wx("0x27")][wx("0x32")](wx("0xe"));let n=Array[wx("0x25")](this[wx("0x0")][wx("0x23")][wx("0x12")][wx("0x11")].getSelectedBlocks()).filter(t);if(!n.length)return null;n=e[wx("0x20")](n);const o=[];for(const t of n)e[wx("0x16")](t)&&o[wx("0x26")](t);return o}[wx("0x2c")](t){return wx("0x21")+this[wx("0x0")][wx("0x27")][wx("0x32")](wx("0x5"))[wx("0x3")](t).toUpperCase()+wx("0x7")+t[wx("0x33")]()[wx("0xb")](/-/g,"_")}}const Px=["model","get","document","TrackChangesEditing","formatBlock","tableCellBackgroundColor","TableUtils","plugins","getSuggestions","enableCommand","tableBackgroundColor","registerCustomCallback","getFirstPosition","accept","table","subType","start","tableCellProperties","tableCellHorizontalAlignment","handleDiscardAction","format","markBlockFormat","tableBorderWidth","join","change","tableCellPadding","editor","tableBorderColor","handleSuggestionDescription","tableBorderStyle","nodeAfter","tableCellBorderColor","_getSuggestion","has","tableAlignment","discard","TableCellPropertiesEditing","TablePropertiesEditing","tableCellBorderStyle","tableHeight","_descriptionFactory","*Format:* change table cell properties","setAttribute","selection","findAncestor","getContainedElement","enqueueChange","getSelectionAffectedTableCells","registerDescriptionCallback","_suggestionFactory","getAttribute","tableCellBorderWidth","tableProperties","locale","_handlePropertyChange"];var Fx,Dx;Fx=Px,Dx=187,function(t){for(;--t;)Fx.push(Fx.shift())}(++Dx);const Bx=function(t,e){return Px[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this.tableProperties=[Bx("0x5"),Bx("0x7"),Bx("0x0"),Bx("0xc"),"tableWidth",Bx("0x11"),Bx("0x2b")],this[Bx("0x32")]=[Bx("0x9"),Bx("0x10"),Bx("0x1d"),Bx("0x3"),"tableCellWidth","tableCellHeight",Bx("0x26"),Bx("0x33"),"tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}afterInit(){const t=this[Bx("0x4")].plugins[Bx("0x22")](Bx("0x24"));if(this[Bx("0x4")][Bx("0x28")][Bx("0xb")](Bx("0xf"))){for(const e of this[Bx("0x1e")])t[Bx("0x2a")](e,((t,n)=>{const o=this[Bx("0x4")][Bx("0x21")][Bx("0x23")][Bx("0x15")][Bx("0x2d")]()[Bx("0x16")](Bx("0x2f"));this._handlePropertyChange(e,[o],this[Bx("0x1e")],Bx("0x1e"),t,n)}));t[Bx("0x1b")][Bx("0x2c")](Bx("0x25"),"tableProperties",Bx("0x2e"),t[Bx("0x1b")].getSuggestionCallback("formatBlock",null,"discard")),t._suggestionFactory[Bx("0x2c")](Bx("0x25"),"tableProperties",Bx("0xd"),((t,e)=>this[Bx("0x34")](this.tableProperties,t,e))),t[Bx("0x1b")][Bx("0x2c")](Bx("0x25"),Bx("0x1e"),Bx("0x1"),(()=>!1))}if(this[Bx("0x4")].plugins[Bx("0xb")](Bx("0xe"))){for(const e of this.tableCellProperties)t[Bx("0x2a")](e,((t,n)=>{const o=this[Bx("0x4")][Bx("0x28")][Bx("0x22")](Bx("0x27"))[Bx("0x19")](this[Bx("0x4")].model.document[Bx("0x15")]);this[Bx("0x20")](e,o,this.tableCellProperties,Bx("0x32"),t,n)}));t._suggestionFactory[Bx("0x2c")](Bx("0x25"),"tableCellProperties",Bx("0x2e"),t[Bx("0x1b")].getSuggestionCallback(Bx("0x25"),null,Bx("0xd"))),t._suggestionFactory.registerCustomCallback(Bx("0x25"),Bx("0x32"),Bx("0xd"),((t,e)=>this[Bx("0x34")](this.tableCellProperties,t,e))),t[Bx("0x1b")][Bx("0x2c")](Bx("0x25"),Bx("0x32"),"join",(()=>!1))}t[Bx("0x12")][Bx("0x1a")]((t=>this[Bx("0x6")](t)))}[Bx("0x20")](t,e,n,o,s,r){const i=this[Bx("0x4")][Bx("0x28")].get("TrackChangesEditing");this[Bx("0x4")].model[Bx("0x18")](r.batch,(()=>{for(const t of e)if(this[Bx("0xa")](t,o))s(r);else{const e={};for(const o of n){const n=t[Bx("0x1c")](o);void 0!==n&&(e[o]=n)}s(r),i[Bx("0x36")](t,{commandParams:[e]},[],o)}}))}[Bx("0x34")](t,e,n){const o=e[0][Bx("0x31")][Bx("0x8")],s=n.commandParams[0];this.editor[Bx("0x21")][Bx("0x2")]((e=>{for(const n of t)void 0!==s[n]?e[Bx("0x14")](n,s[n],o):e.removeAttribute(n,o)}))}[Bx("0x6")](t){if(t.data)switch(t[Bx("0x30")]){case"tableProperties":return{type:Bx("0x35"),content:Yo(this[Bx("0x4")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:Bx("0x35"),content:Yo(this[Bx("0x4")][Bx("0x1f")],Bx("0x13"))}}}[Bx("0xa")](t,e){const n=this[Bx("0x4")][Bx("0x28")][Bx("0x22")]("TrackChangesEditing");for(const o of n[Bx("0x29")]({skipNotAttached:!0})){const n=o[Bx("0x17")]();if(o[Bx("0x30")]===e&&n===t)return o}return null}}const Ux=["_adapter","getFirstRange","pluginName","getRanges","getAllAdjacentSuggestions","stop","createElement","removeMarker","_trackFormatChanges","formatBlock:","insertion:join","_suggestions","suggestionUnloaded","_rangeIsInLocalUserInsertion","TrackChangesEditing","add","every","commentThread","originalSuggestionId","getDifference","hasSuggestion","previous","accept","formatBlock:join","getSuggestions","differ","markerName","config","writer","from","conversion","fromCharCode","split","_getSuggestionData","updateMarker","elementStart","markerReady","_customCallbacks","markers","PendingActions","values","suggestion","authorName","nodeAfter","for","_updateSuggestionData","getWalker","toViewElement","isObject","splice","activeMarkers","isIntersectingWithRange","root","track-changes-adapter-missing-getsuggestion","addSuggestionData","author","formatBlock:accept","creator","insert","locale","widget","formatBlock","formatInline:chain","insertion:discard","getFirstMarker","getMultiRangeId","deletion:discard","chain","createRange","addMarker:suggestion:formatBlock","change:_saved","_enabledCommands","showSuggestionHighlights","document","schema","getCustomProperty","addHighlight","trackChanges","isInContent","isRemovable","markerToHighlight","getIntersection","isBlock","next","lowest","accepted","_setSuggestionData","suggestionLoaded","setTo","bindElementToMarker","isLimit","_cutOutSuggestionMarker","Users","marker-count","isUndo","position","plugins","data","parent","some","mapper","get","nodeBefore","addComment","isAtEnd","element","formatInline:join","forward","trackChangesCommand","reconvertMarker","trackChanges.trackFormatChanges","markMultiRangeDeletion","registerPostFixer","_saved","init","highest","dataReady","enqueueChange","registerCustomCallback","isTouching","fire","ready","name","insertion:accept","isInsideObject","rootName","commandName","unbindElementFromMarkerName","formatBlock:discard","_getExternalAuthor","addCommentThread","adapter","return","_mergeNestedSuggestions","suggestionChanged","editing","markerToData","deletion:join","includes","rethrowUnexpectedError","containsRangeInObject","suggestion:","editor","markerNameToElements","discardSelectedSuggestions","createSelection","getSuggestion","removeAttribute","isAfter","batch","applyOperation","formatBlock:chain","deletion","_descriptionFactory","$graveyard","isDocumentOperation","_handleNewSuggestionMarker","addSuggestion","_model","markInsertion","enableReadOnlyMode","removed","discardSuggestion","splitPosition","join","execute","start","isSelectable","_commentsRepository","rejected","length","item","getCommentThread","attributes","buildSuggestion","external:","discardAllSuggestions","removeClass","deleteContent","set","removeMarker:suggestion:formatBlock","isNextTo","selection","data-suggestion","high","track-changes-suggestion-data-mismatch","removeMarkers","requires","getUser","low","isOwn","dataDowncast","_getAuthorFromId","_breakSuggestionMarker","editingDowncast","remove","change","map","insertContent","update:suggestion","elementToElement","addClass","setAttribute","deletion:","_registerDefaultCallbacks","addMarkerName","model","move","change:data","hasComments","_refreshSuggestionsChain","consumable","createRangeIn","size","markMultiRangeBlockFormat","insertion","multipleBlocks","getItems","always","oldRange","addUser","has","authoredAt","createPositionBefore","_splitMarkerName","_addSuggestionMarker","enableCommand","_checkSuggestionCorrectness","deletion:chain","ck-suggestion-marker","setSelection","getLastMatchingPosition","_joinWithAdjacentSuggestions","delete","_createSuggestion","track-changes-suggestion-not-found","change:activeMarkers","listenTo","@external","getSuggestionCallback","_isForcedDefaultExecutionBlock","subType","define","ck-suggestion-marker-","catch","default","_onDiscard","_suggestionState","skipNestingCheck","formatInline:discard","CommentsRepository","substr","ck-suggestion-marker-formatBlock","removeComment","end","_defaultCallbacks","acceptSelectedSuggestions","_editor","getChangedMarkers","after","acceptSuggestion","never","stopListening","formatInline:","options","sort","getNearestSelectionRange","type","newRange","isAtStart","addMarker:suggestion","formatInline","backward","insertion:chain","isBefore","_joinSuggestions","containsRange","insertion:","ck-suggestion-marker--active","_findSuggestions","_setSuggestionRange","moveTargetPosition","containerElement","acceptAllSuggestions","getAttribute","updateSuggestion","createdAt","containsPosition","formatGroupId","formatInline:accept","notReady","value","markBlockFormat","getAncestors","_addThreadToSuggestion","getShiftedBy","isEqual","_suggestionFactory","discard","collaboration.channelId","isCollapsed","filter","push","track-changes-user-not-found","createPositionAt","forceDefaultExecution","trackChanges.mergeNestedSuggestions","isMultiRange","addRange","consume","commands","range"];var Gx,Hx;Gx=Ux,Hx=241,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("0x102")](){return[Wx("0x9"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Js,er,Ox,ar,ur,br,yr,Lr,Fr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Oi,ji,zi,Xi,ta,ia,ua,pa,ya,Sa,wa,ja,za,Ix,Qa,sx,mx,jx,cx,Ex,kx]}static get[Wx("0x49")](){return Wx("0x55")}constructor(t){function e(t){return t[Wx("0x10c")]((t=>String[Wx("0x66")](t)))[Wx("0xeb")]("")}super(t),this[Wx("0xfa")](Wx("0x79"),[]),this.on(Wx("0x133"),((e,n,o,s)=>{this[Wx("0xe5")][Wx("0x10b")]((()=>{for(const e of[...s,...o])this[Wx("0xe5")][Wx("0x6d")][Wx("0x124")](e)&&t[Wx("0xce")][Wx("0xb4")](e)}))})),this[Wx("0xe0")]=new ss(this[Wx("0xd5")][Wx("0x115")][Wx("0x91")],this[Wx("0xd5")][Wx("0x82")]),this[Wx("0x47")]=null,this[Wx("0x38")]=new Vx(this[Wx("0xd5")]),this[Wx("0x52")]=new Map,this[Wx("0xef")]=t[Wx("0xa7")].get(Wx("0x9")),this._enabledCommands=new Set,this[Wx("0xe5")]=this[Wx("0xd5")][Wx("0x115")],this[Wx("0x6")]=new WeakMap,this[Wx("0x137")]=!1,t[Wx("0x62")].define("trackChanges.trackFormatChanges",Wx("0x4")),this[Wx("0x4f")]=t[Wx("0x62")].get(Wx("0xb5")),t[Wx("0x62")][Wx("0x1")]("trackChanges.mergeNestedSuggestions",!0),this[Wx("0xcc")]=t[Wx("0x62")][Wx("0xac")](Wx("0x41")),this[Wx("0xb3")]=new u(t,this[Wx("0x8e")]),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,48,52,52])}[Wx("0xb9")](){const t=this[Wx("0xd5")];t[Wx("0x65")].for(Wx("0x109"))[Wx("0x97")]({model:Wx("0x70"),view:t=>{const{id:e,type:n}=this[Wx("0x127")](t.markerName),o=[Wx("0x12c"),Wx("0x2")+n];let s=3e3;return this[Wx("0x79")][Wx("0xd1")](t[Wx("0x61")])&&(o[Wx("0x3d")](Wx("0x25")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wx("0x65")][Wx("0x73")](Wx("0x106")).add((e=>{e.on(Wx("0x1d"),((e,n,o)=>{if(!o[Wx("0x17")][Wx("0x8f")])return;const s=n.item;if(!s)return;const r=o[Wx("0xab")][Wx("0x76")](s);t[Wx("0x115")][Wx("0x91")][Wx("0x77")](s)&&r&&!r[Wx("0x92")](Wx("0x83"))&&r.is(Wx("0x29"))&&(0,a.toWidget)(r,o.writer)}),{priority:Wx("0xff")})})),t[Wx("0x65")].for("dataDowncast").markerToHighlight({model:Wx("0x70"),view:(t,e)=>{if(!e[Wx("0x17")][Wx("0x8f")])return null;const{type:n}=this[Wx("0x127")](t[Wx("0x61")]);return{classes:["ck-suggestion-marker",Wx("0x2")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Wx("0xf2")].is(Wx("0xfd")))return void s[Wx("0x11a")][Wx("0x44")](o.item,n[Wx("0xc1")]);const r=s[Wx("0xab")].toViewElement(o[Wx("0xf2")]);if(!o[Wx("0xf2")].is(Wx("0xb0"))||!t.model[Wx("0x91")].isBlock(o.item)||r.getCustomProperty(Wx("0x93")))return;const{id:i}=this[Wx("0x127")](o[Wx("0x61")]);s[Wx("0x63")][Wx("0x110")](["ck-suggestion-marker",Wx("0xb")],r),s[Wx("0x63")][Wx("0x111")](Wx("0xfe"),i,r),s[Wx("0xab")][Wx("0xa0")](r,o.markerName),e&&(this[Wx("0x79")][Wx("0xd1")](o[Wx("0x61")])?s[Wx("0x63")][Wx("0x110")](Wx("0x25"),r):s[Wx("0x63")][Wx("0xf8")](Wx("0x25"),r));for(const e of t[Wx("0x115")][Wx("0x11b")](o.item)[Wx("0x120")]())s.consumable.consume(e,n[Wx("0xc1")]);s[Wx("0x11a")][Wx("0x44")](o[Wx("0xf2")],n.name)};t[Wx("0x65")][Wx("0x73")](Wx("0x106"))[Wx("0x56")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[Wx("0x17")][Wx("0x8f")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wx("0xba")})})),t[Wx("0x65")].for(Wx("0x106"))[Wx("0xcf")]({model:Wx("0x70"),view:(t,e)=>e[Wx("0x17")][Wx("0x8f")]?null:{group:Wx("0x70"),name:t[Wx("0xa")](11)}}),t[Wx("0x65")].for("upcast")[Wx("0x10f")]({view:{name:Wx("0x70"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wx("0xd4")+t[Wx("0x2b")]("suggestion-type")+":"+t[Wx("0x2b")]("id");return t[Wx("0x2b")](Wx("0xa4"))&&(n+=":"+t[Wx("0x2b")]("marker-count")),e[Wx("0x4d")]("$marker",{"data-name":n})}}),t.conversion[Wx("0x73")]("upcast").dataToMarker({view:Wx("0x70")}),t[Wx("0x65")][Wx("0x73")](Wx("0x109"))[Wx("0x56")]((t=>{t.on(Wx("0x8c"),n(),{priority:Wx("0xff")})})),t.conversion[Wx("0x73")](Wx("0x109"))[Wx("0x56")]((t=>{t.on(Wx("0xfb"),((t,e,n)=>{const o=n.mapper[Wx("0xd6")](e.markerName);if(o)for(const t of o)t[Wx("0x92")](Wx("0x93"))||(n[Wx("0x63")].removeClass(["ck-suggestion-marker","ck-suggestion-marker-formatBlock",Wx("0x25")],t),n[Wx("0x63")][Wx("0xda")](Wx("0xfe"),t),n[Wx("0xab")][Wx("0xc6")](t,e[Wx("0x61")]))}),{priority:"high"})})),t.model[Wx("0x90")][Wx("0xb7")]((e=>{let n=!1;const o=Array.from(t.model.document[Wx("0x60")][Wx("0x11")]()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[Wx("0x127")](a);if(Wx("0x70")!==o)continue;const d=this._suggestions[Wx("0xac")](l);if(null!=x[Wx("0x1b")])if(Wx("0x1e")==c&&(n=n||qx(x[Wx("0x1b")],a,e,t[Wx("0x115")][Wx("0x91")])),x.newRange[Wx("0x3b")]||"$graveyard"==x[Wx("0x1b")][Wx("0x7b")].rootName||Wx("0x84")==c&&!Jx(x[Wx("0x1b")])||Wx("0xdf")==c&&($x(i=x[Wx("0x1b")])||(r=i)[Wx("0xed")].parent==r[Wx("0xd")][Wx("0xad")]&&r[Wx("0xed")].isAtEnd))e[Wx("0x4e")](a),n=!0;else{if(!d||!d[Wx("0x95")])continue;s[Wx("0x56")](d)}}var r,i;return s[Wx("0x11c")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t.model[Wx("0x90")].registerPostFixer((e=>{let n=!1;for(const o of t[Wx("0x115")][Wx("0x90")][Wx("0x60")].getChanges()){if(Wx("0x81")!=o.type)continue;const s=o[Wx("0xa6")].getShiftedBy(o[Wx("0xf1")]);if(s[Wx("0xaf")])for(const r of this._suggestions[Wx("0x6f")]()){if(r.isMultiRange||!r[Wx("0x95")])continue;if(Wx("0x84")!=r[Wx("0x1a")])continue;const i=r[Wx("0x48")]();if(i[Wx("0xed")][Wx("0xa9")]!=i.end.parent&&i[Wx("0xd")][Wx("0x37")](o[Wx("0xa6")])){const o=t.model.createRange(i[Wx("0xed")],s);e.updateMarker(r[Wx("0x87")](),{range:o}),n=!0}}}return n})),t[Wx("0x115")].markers.on(Wx("0x10e"),((t,e,n)=>{if(null==n){const{id:t}=this[Wx("0x127")](e[Wx("0xc1")]),n=this[Wx("0x52")][Wx("0xac")](t);n&&n[Wx("0x114")](e.name)}})),t.model[Wx("0x90")].on(Wx("0x117"),(()=>{const e=Array[Wx("0x64")](t.model[Wx("0x90")].differ.getChangedMarkers()).filter((t=>Wx("0x70")===this[Wx("0x127")](t.name).group));if(0===e[Wx("0xf1")])return;e.sort(((t,e)=>{const n=t.data[Wx("0x122")],o=e[Wx("0xa8")][Wx("0x122")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wx("0xed")][Wx("0x21")](o[Wx("0xed")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wx("0x127")](t);if(null===s[Wx("0x122")]){const e=this._handleNewSuggestionMarker(t);o[Wx("0x56")](e)}else{const t=this[Wx("0x52")][Wx("0xac")](e);null!==s[Wx("0x1b")]||t[Wx("0x95")]?(n.add(t.head),o[Wx("0x56")](t)):this._removeSuggestion(t)}}o[Wx("0x11c")]>0&&this[Wx("0x119")](o);for(const t of n)this[Wx("0xbf")](Wx("0xcd"),t)})),t[Wx("0x115")].on(Wx("0xdd"),((e,n)=>{const o=n[0];if(!this[Wx("0x52")][Wx("0x11c")])return;if(!o[Wx("0xe2")])return;if(o[Wx("0xdc")][Wx("0xa5")]||!o.batch.isLocal)return;let s,r;switch(o[Wx("0x1a")]){case"insert":s=t[Wx("0x115")][Wx("0x3f")](o[Wx("0xa6")]),r=s[Wx("0x36")](o.howMany);break;case Wx("0x67"):s=t.model[Wx("0x3f")](o[Wx("0xea")]),r=t.model.createPositionAt(o[Wx("0x28")]);break;case Wx("0x116"):s=t[Wx("0x115")][Wx("0x3f")](o.targetPosition),r=s[Wx("0x36")](o.howMany);break;default:return}const i=t[Wx("0x115")][Wx("0x8b")](s,r);t[Wx("0x115")][Wx("0x10b")]((()=>{for(const{suggestion:t,meta:e}of this[Wx("0x26")](i)){if(t.isMultiRange)continue;if("formatInline"==t[Wx("0x1a")])continue;const n=t.data&&t[Wx("0xa8")][Wx("0x11f")];(Wx("0x84")!=t.type||"split"==o[Wx("0x1a")]&&!n)&&(e[Wx("0xd3")]||"insertion"==t[Wx("0x1a")]&&e[Wx("0x105")]||t[Wx("0x48")]()[Wx("0x23")](i)&&this[Wx("0x108")](t,s,r))}}))}),{priority:Wx("0x9b")}),t[Wx("0x115")].on(Wx("0xf9"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wx("0x40")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand.value)return;if(o[Wx("0x3b")])return;const r=t.model.schema,{start:i,end:a}=o[Wx("0x48")](),x=i[Wx("0x72")]&&r.isLimit(i[Wx("0x72")])?null:r[Wx("0x19")](i,Wx("0xb2")),c=a.nodeBefore&&r[Wx("0xa1")](a[Wx("0xad")])?null:r.getNearestSelectionRange(a,"backward"),l=t[Wx("0x115")][Wx("0x8b")](x?x[Wx("0xed")]:i,c?c.end:a);t[Wx("0x115")][Wx("0x10b")]((e=>{this.markDeletion(l);const n=t[Wx("0x115")].schema[Wx("0x19")](l[Wx("0xed")]);o.is("documentSelection")?e[Wx("0x12d")](n):o[Wx("0x9f")](n)})),e[Wx("0x4c")]()}),{priority:e.priorities.normal+10}),t[Wx("0x115")].on(Wx("0x10d"),((e,n)=>{const o=n[n[Wx("0xf1")]-1];o&&o.forceDefaultExecution||this[Wx("0x137")]||this[Wx("0xb3")][Wx("0x32")]&&(t[Wx("0x115")][Wx("0x10b")]((()=>{let o=t[Wx("0x115")][Wx("0x10d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wx("0xcb")]=o.clone();const s=o[Wx("0xd")][Wx("0xad")],r=t[Wx("0x115")][Wx("0x91")];s&&r[Wx("0x99")](s)&&!r[Wx("0x77")](s)&&(o=t[Wx("0x115")][Wx("0x8b")](o[Wx("0xed")],t[Wx("0x115")].createPositionAt(s,Wx("0xd")))),this.markInsertion(o)})),e[Wx("0x4c")]())}),{priority:Wx("0xff")}),this[Wx("0xd5")][Wx("0x45")].add("trackChanges",this.trackChangesCommand),this[Wx("0x129")](Wx("0x94"));const o=new p(t,this[Wx("0x52")]);t[Wx("0x45")][Wx("0x56")](Wx("0x13"),o),this[Wx("0x129")]("acceptSuggestion");const s=new C(t,this._suggestions);t[Wx("0x45")][Wx("0x56")]("discardSuggestion",s),this[Wx("0x129")](Wx("0xe9")),t[Wx("0x45")][Wx("0x56")](Wx("0x2a"),new P(t,o,this[Wx("0x52")])),this.enableCommand(Wx("0x2a")),t.commands.add(Wx("0xf7"),new P(t,s,this._suggestions)),this[Wx("0x129")](Wx("0xf7")),t[Wx("0x45")].add(Wx("0xf"),new U(t,o,this[Wx("0x52")])),this.enableCommand("acceptSelectedSuggestions"),t[Wx("0x45")].add(Wx("0xd7"),new U(t,s,this._suggestions)),this.enableCommand(Wx("0xd7"));const r=t[Wx("0xa7")][Wx("0xac")]("CommentsRepository");this.listenTo(r,Wx("0xae"),((t,{threadId:e})=>{const n=this[Wx("0x52")][Wx("0xac")](e);n&&n[Wx("0x58")]&&1===n[Wx("0x58")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[Wx("0x134")](r,Wx("0xc"),((t,{threadId:e})=>{const n=this._suggestions[Wx("0xac")](e);n&&n[Wx("0x58")]&&!n.commentThread[Wx("0xf1")]&&this[Wx("0x74")](e,{hasComments:!1})}),{priority:Wx("0x104")})}set[Wx("0xca")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Wx("0x47")]=t}get[Wx("0xca")](){return this[Wx("0x47")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wx("0x52")].values())t&&!e[Wx("0x95")]||n[Wx("0x3d")](e);return e?n[Wx("0x10c")]((t=>t.toJSON())):n}[Wx("0xd9")](t){const n=this[Wx("0x52")][Wx("0xac")](t);if(!n)throw new e.CKEditorError(Wx("0x132"),this);return n}[Wx("0x5b")](t){return this[Wx("0x52")][Wx("0x124")](t)}[Wx("0x7d")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wx("0x1a")][Wx("0x67")](":"),i=this[Wx("0x52")][Wx("0xac")](n)||this[Wx("0x131")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Wx("0x12a")](i,s,r||null,e),i.createdAt=t[Wx("0x2d")],o&&o[Wx("0x135")]){const t=o[Wx("0x135")],e=this[Wx("0xc8")](t[Wx("0x71")]);i[Wx("0x125")]=t.createdAt,i[Wx("0x7e")]=e,i.isExternal=!0}else i[Wx("0x125")]=t[Wx("0x2d")];switch(t[Wx("0xa8")]&&(i[Wx("0xa8")]=t[Wx("0xa8")]),t[Wx("0xf4")]&&(i[Wx("0xf4")]=t[Wx("0xf4")]),this._adapter&&this[Wx("0x47")].addSuggestion||(i[Wx("0xb8")]=!0),this._suggestionState[Wx("0xac")](i)){case Wx("0x31"):this[Wx("0x6")][Wx("0xfa")](i,Wx("0xbb"));break;case Wx("0x6b"):i[Wx("0x95")]?(this[Wx("0x6")][Wx("0xfa")](i,Wx("0xc0")),this.fire(Wx("0x9e"),i)):this[Wx("0x6")].set(i,"removed")}return i}[Wx("0x13")](t){this[Wx("0x40")]((()=>{this[Wx("0xd5")][Wx("0x115")][Wx("0x10b")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Wx("0x5d")]()}))}))}[Wx("0xe9")](t){this[Wx("0x40")]((()=>{this[Wx("0xd5")][Wx("0x115")][Wx("0x10b")]((()=>{for(const e of t[Wx("0x4b")]())e[Wx("0x39")]()}))}))}[Wx("0x129")](t,n){const o=this.editor[Wx("0x45")][Wx("0xac")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands.add(o),n&&o.on("execute",((t,e)=>{this[Wx("0xb3")][Wx("0x32")]&&(this[Wx("0x137")]||e[Wx("0xf1")]>0&&e[e.length-1]&&e[e[Wx("0xf1")]-1][Wx("0x40")]||(n(((...t)=>o[Wx("0xec")](...t,{forceDefaultExecution:!0})),...e),t[Wx("0x4c")]()))}),{priority:Wx("0xff")})}[Wx("0x40")](t){let n,o;const s=this[Wx("0x137")];this[Wx("0x137")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Wx("0xd2")](o,this),n}[Wx("0xe6")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[Wx("0xa7")].get(Wx("0xa3")).me;for(const{suggestion:e,meta:o}of this[Wx("0x26")](t,"insertion"))if(o.isOwn){if(!o[Wx("0xfc")]){if(!this._mergeNestedSuggestions&&o.containsRangeInObject)continue;return e}if(n==e.subType){const n=e.getFirstRange();return n[Wx("0xed")][Wx("0x37")](t[Wx("0xd")])?this[Wx("0x27")](e,this._model[Wx("0x8b")](t[Wx("0xed")],n.end)):this[Wx("0x27")](e,this[Wx("0xe5")].createRange(n[Wx("0xed")],t[Wx("0xd")])),e}}const r=(0,e.uid)(),i=s.id,a=n?Wx("0x24")+n:Wx("0x11e"),x=this[Wx("0x9d")]({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[Wx("0x128")](a,r,i,t),x}markMultiRangeInsertion(t,n="multi",o={}){const s=this[Wx("0xd5")][Wx("0xa7")][Wx("0xac")](Wx("0xa3")).me,r=this._suggestionFactory.getSuggestionCallback(Wx("0x11e"),n,Wx("0xeb"));for(const e of this[Wx("0x5f")]())if(e[Wx("0x7e")].id==s.id&&Wx("0x11e")==e[Wx("0x1a")]&&e[Wx("0x0")]==n&&(r(e[Wx("0x4a")](),t)||r(t,e[Wx("0x4a")]()))){for(const n of t)e[Wx("0x43")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[Wx("0x26")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n[Wx("0x4a")]())for(const n of t)if(!o[Wx("0x23")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x=Wx("0x24")+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[Wx("0x128")](x,i,a,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||Xx(n),t.isCollapsed)return null;if("never"===this[Wx("0x4f")]){const e=this[Wx("0x38")].getSuggestionCallback("formatInline",o,Wx("0x5d"));return this[Wx("0x40")]((()=>e([t],n,s))),null}const r=this[Wx("0xd5")][Wx("0xa7")][Wx("0xac")]("Users").me,i=[];if(Wx("0x121")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Wx("0x26")](t,Wx("0x11e")))n[Wx("0x105")]&&!n[Wx("0xc3")]&&i[Wx("0x3d")](...e[Wx("0x4a")]());const a=function(t,e){const n=[];for(const o of e){const e=t[Wx("0x98")](o);e&&n.push(e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wx("0xf1")];){const o=n[e][Wx("0x5a")](t);n[Wx("0x78")](e,1,...o),e+=o.length}}return n}(t,i);a.length&&this._model.change((()=>{for(const t of a){const e=this[Wx("0x38")][Wx("0x136")]("formatInline",o,Wx("0x5d"));this[Wx("0x40")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[Wx("0xed")],x=t[Wx("0xd")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wx("0x1e"))){if(!n[Wx("0x105")])continue;if(e.subType!=o)continue;const s=e[Wx("0x48")]();if(s.containsRange(t,!0))return null;a=a[Wx("0x21")](s[Wx("0xed")])?a:s[Wx("0xed")],x=x[Wx("0xdb")](s[Wx("0xd")])?x:s[Wx("0xd")],i?s[Wx("0xed")][Wx("0x21")](i[Wx("0x48")]()[Wx("0xed")])?(i.removeMarkers(),i=e):e[Wx("0x101")]():i=e}const c=this[Wx("0xe5")][Wx("0x8b")](a,x);if(i)this[Wx("0x27")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Wx("0x9d")]({id:t,type:Wx("0x16")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Wx("0x16")+o,t,i,c)}}return null}[Wx("0x33")](t,n,o=[],s=null,r={}){n[Wx("0x2f")]||(n[Wx("0x2f")]=n[Wx("0xc5")]),n.multipleBlocks=t.is(Wx("0x46")),s=s||Xx(n);const i=o[Wx("0x10c")]((t=>Qx(t,this[Wx("0xe5")]))),a=t.is(Wx("0x46"))?t:Qx(t,this[Wx("0xe5")]);if(Wx("0x14")===this[Wx("0x4f")]){const t=this[Wx("0x38")][Wx("0x136")](Wx("0x84"),s,Wx("0x5d"));return this[Wx("0x40")]((()=>t([a],n,r))),null}i[Wx("0x3d")](a);let x=!0;for(const t of i)if(!this[Wx("0x54")](t)){x=!1;break}if(x&&Wx("0x121")!==this[Wx("0x4f")]){const t=this[Wx("0x38")][Wx("0x136")](Wx("0x84"),s,Wx("0x5d"));return this[Wx("0x40")]((()=>t([a],n,r))),null}let c=null,l=a[Wx("0xed")],d=a.end;for(const{suggestion:t,meta:e}of this[Wx("0x26")](a,Wx("0x84"))){if(!e[Wx("0x105")]||e[Wx("0xfc")]||e[Wx("0xd3")]||e[Wx("0xc3")])continue;if(t[Wx("0xa8")][Wx("0x2f")]!=n[Wx("0x2f")])continue;const o=t.getFirstRange();if(t[Wx("0x0")]==s){if(o[Wx("0x23")](a,!0))return null;l=l.isBefore(o[Wx("0xed")])?l:o[Wx("0xed")],d=d[Wx("0xdb")](o[Wx("0xd")])?d:o[Wx("0xd")],c?o[Wx("0xed")].isBefore(c[Wx("0x48")]().start)?(c[Wx("0x101")](),c=t):t[Wx("0x101")]():c=t}else{const e=a[Wx("0x98")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[Wx("0xd5")][Wx("0xa7")].get("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[Wx("0xe5")][Wx("0x8b")](l,d)),c;{const t=this[Wx("0x9d")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wx("0x128")](Wx("0x50")+s,g,m,this._model[Wx("0x8b")](l,d)),t}}[Wx("0x11d")](t,n,o=[],s=null,r={}){n[Wx("0x2f")]||(n[Wx("0x2f")]=n[Wx("0xc5")]);const i=t[0];n[Wx("0x11f")]=i.is(Wx("0x46")),s=s||Xx(n);const a=o.map((t=>Qx(t,this._model))),x=i.is(Wx("0x46"))?t:t[Wx("0x10c")]((t=>Qx(t,this[Wx("0xe5")])));if(Wx("0x14")===this[Wx("0x4f")]){const t=this[Wx("0x38")][Wx("0x136")]("formatBlock",s,Wx("0x5d"));return this.forceDefaultExecution((()=>t(x,n,r))),null}a[Wx("0x3d")](...x);let c=!0;for(const t of a)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&Wx("0x121")!==this[Wx("0x4f")]){const t=this[Wx("0x38")].getSuggestionCallback(Wx("0x84"),s,Wx("0x5d"));return this[Wx("0x40")]((()=>t(x,n,r))),null}const l=this[Wx("0xd5")][Wx("0xa7")][Wx("0xac")](Wx("0xa3")).me;for(const t of this[Wx("0x5f")]()){if(t.author.id!=l.id)continue;if(Wx("0x84")!=t.type||t.data.formatGroupId!=n[Wx("0x2f")])continue;const e=t[Wx("0x0")]==s;for(let n=0;n<x[Wx("0xf1")];n++){const o=x[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[Wx("0x37")](r)){e?(x[Wx("0x78")](n,1),n--):t[Wx("0x4e")](s[Wx("0xc1")]);break}}}}if(0==x[Wx("0xf1")])return null;const d=this[Wx("0x38")][Wx("0x136")](Wx("0x84"),s,Wx("0xeb"));for(const t of this[Wx("0x5f")]())if(t[Wx("0x7e")].id==l.id&&"formatBlock"==t[Wx("0x1a")]&&t[Wx("0xa8")].formatGroupId==n[Wx("0x2f")]&&t.subType==s&&(d(t[Wx("0x4a")](),x)||d(x,t[Wx("0x4a")]()))){for(const e of x)t[Wx("0x43")](e);return t}const u=(0,e.uid)(),g=l.id,m=Wx("0x50")+s,f=this[Wx("0x9d")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this._addSuggestionMarker(m,u,g,t,Zo.getMultiRangeId());return f}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[Wx("0xa7")][Wx("0xac")](Wx("0xa3")).me,r=new i.LiveRange(t.start,t[Wx("0xd")]);for(const{suggestion:t,meta:e}of this[Wx("0x26")](r,Wx("0x11e")))if(e[Wx("0x105")]&&!e.isNextTo)if(t[Wx("0x42")]){const e=t.getRanges()[Wx("0x3c")]((t=>"$graveyard"!=t[Wx("0x7b")][Wx("0xc4")]));if(e.every((t=>r[Wx("0x23")](t,!0)))&&t[Wx("0x39")](),e.some((t=>t[Wx("0x23")](r,!0)))){const t=this[Wx("0x38")][Wx("0x136")](Wx("0xdf"),n,Wx("0x5d"));return this[Wx("0x40")]((()=>t([r],null,o))),null}}else{const e=r[Wx("0x98")](t[Wx("0x48")]());null!==e&&t[Wx("0x5")]([e],null,o)}if(r.detach(),r[Wx("0x3b")]||Wx("0xe1")==r[Wx("0x7b")].rootName)return null;let a=null,x=r[Wx("0xed")],c=r[Wx("0xd")];for(const{suggestion:t,meta:e}of this[Wx("0x26")](r,"deletion"))if(e[Wx("0x105")])if(t.isMultiRange&&this[Wx("0xcc")]){let e=!0;for(const n of t[Wx("0x4a")]()){if(n[Wx("0x23")](r,!0))return t;r[Wx("0x23")](n)||(e=!1)}e&&t.discard()}else{const n=t.getFirstRange();if(n[Wx("0x23")](r,!0)){if(!this[Wx("0xcc")]&&e[Wx("0xd3")])continue;return t}x=x[Wx("0x21")](n[Wx("0xed")])?x:n[Wx("0xed")],c=c[Wx("0xdb")](n[Wx("0xd")])?c:n[Wx("0xd")],a?n[Wx("0xed")][Wx("0x21")](a.getFirstRange()[Wx("0xed")])?(a.removeMarkers(),a=t):t.removeMarkers():a=t}if(a)return this[Wx("0x27")](a,this[Wx("0xe5")][Wx("0x8b")](x,c)),a;{const t=(0,e.uid)(),r=this[Wx("0xe5")][Wx("0x8b")](x,c),i=s.id,a=n?Wx("0x112")+n:Wx("0xdf"),l=this[Wx("0x9d")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(a,t,i,r),l}}[Wx("0xb6")](t,n="multi",o={}){const s=this[Wx("0xd5")][Wx("0xa7")][Wx("0xac")](Wx("0xa3")).me,r=t[Wx("0x10c")]((t=>new i.LiveRange(t[Wx("0xed")],t[Wx("0xd")]))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wx("0x26")](t,Wx("0x11e")))n[Wx("0x105")]&&!n[Wx("0xfc")]&&a[Wx("0x56")](e);for(const e of a)if(e.isMultiRange){const s=e[Wx("0x4a")]();if((!e[Wx("0xf4")]||!e[Wx("0xf4")].skipNestingCheck)&&s.every((t=>r[Wx("0xaa")]((e=>e.containsRange(t,!0)))))&&e.discard(),r[Wx("0x57")]((t=>s[Wx("0xaa")]((e=>e.containsRange(t,!0)))))){const e=this[Wx("0x38")][Wx("0x136")](Wx("0xdf"),n,Wx("0x5d"));return this[Wx("0x40")]((()=>e(t,null,o))),null}}else{const t=e[Wx("0x48")]();if(r.some((e=>e[Wx("0x23")](t,!0)))&&e[Wx("0x39")](),r[Wx("0x57")]((e=>t[Wx("0x23")](e,!0)))){const t=this[Wx("0x38")][Wx("0x136")](Wx("0xdf"),n,"accept");return this[Wx("0x40")]((()=>t(r,null,o))),null}}const x=this[Wx("0x38")].getSuggestionCallback(Wx("0xdf"),n,Wx("0xeb"));let c=null;for(const t of this[Wx("0x5f")]())if(t[Wx("0x7e")].id==s.id&&t[Wx("0x95")]&&Wx("0xdf")==t.type&&t[Wx("0x0")]==n&&(x(t.getRanges(),r)||x(r,t[Wx("0x4a")]())))if(c){if(t[Wx("0x58")]&&t[Wx("0x58")][Wx("0xf1")])continue;for(const e of t[Wx("0x4a")]())c[Wx("0x7a")](e)||c[Wx("0x43")](e);t[Wx("0x101")]()}else{c=t;for(const e of r)t[Wx("0x7a")](e)||t[Wx("0x43")](e)}if(c)return c;a.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[Wx("0x26")](t,"deletion"))n[Wx("0x105")]&&a.add(e);for(const t of a){const e=t[Wx("0x4a")]();if((!o||!o[Wx("0x7")])&&r[Wx("0x57")]((t=>e[Wx("0xaa")]((e=>e[Wx("0x23")](t,!0))))))return t;(!t[Wx("0xf4")]||!t[Wx("0xf4")].skipNestingCheck)&&e[Wx("0x57")]((t=>r[Wx("0xaa")]((e=>e.containsRange(t,!0)))))&&t[Wx("0x39")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Wx("0x3b")]||Wx("0xe1")==t.root[Wx("0xc4")]||this[Wx("0x128")](u,l,d,t,Zo[Wx("0x88")]());return g}[Wx("0x27")](t,e){const n=t[Wx("0x87")]();this[Wx("0xe5")][Wx("0x10b")]((t=>{t[Wx("0x69")](n,{range:e})}))}[Wx("0x35")](t){const e=t.id,n=this[Wx("0xd5")][Wx("0x62")][Wx("0xac")](Wx("0x3a"));this[Wx("0xef")].hasCommentThread(e)||this[Wx("0xef")][Wx("0xc9")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wx("0xef")][Wx("0xf3")](e);o.unbind(Wx("0x96")),o[Wx("0x96")]=!1,t[Wx("0x58")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[Wx("0x1a")]!=n||t[Wx("0x0")]!=o||t.creator.id!=s)throw this[Wx("0xd5")][Wx("0xe7")](Wx("0x100")),new e.CKEditorError(Wx("0x100"),this)}[Wx("0xa2")](t,n){const o=t.getFirstRange();if(n[Wx("0x37")](o))t[Wx("0x101")]();else if(o[Wx("0x23")](n)){const s=this[Wx("0xe5")][Wx("0x3f")](n[Wx("0xed")][Wx("0xad")],Wx("0xd"));this[Wx("0x27")](t,this._model.createRange(o.start,s));const r=(0,e.uid)(),i=t[Wx("0x80")].id,a=t.type+":"+t[Wx("0x0")];this[Wx("0x9d")]({id:r,type:a,createdAt:new Date,authorId:i,data:t[Wx("0xa8")],attributes:t[Wx("0xf4")]});const x=this[Wx("0xe5")][Wx("0x3f")](n[Wx("0xd")][Wx("0xa9")],Wx("0x12")),c=this._model[Wx("0x8b")](x,o[Wx("0xd")]);this._addSuggestionMarker(a,r,i,c)}else if(o[Wx("0x2e")](n[Wx("0xed")])){const e=this[Wx("0xe5")][Wx("0x3f")](n[Wx("0xed")].nodeBefore,"end");this[Wx("0x27")](t,this[Wx("0xe5")][Wx("0x8b")](o[Wx("0xed")],e))}else{const e=this[Wx("0xe5")].createPositionAt(n[Wx("0xd")].parent,Wx("0x12"));this[Wx("0x27")](t,this[Wx("0xe5")][Wx("0x8b")](e,o[Wx("0xd")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wx("0x11e"))){if(!n.isOwn)continue;const o=e[Wx("0x4a")]();for(const e of o)if(!t.getDifference(e)[Wx("0xf1")])return!0}return!1}[Wx("0x107")](t){const n=this[Wx("0xd5")][Wx("0xa7")].get(Wx("0xa3"))[Wx("0x103")](t);if(!n)throw new e.CKEditorError(Wx("0x3e"),this);return n}[Wx("0xc8")](t){const e=this[Wx("0xd5")].plugins[Wx("0xac")](Wx("0xa3")),n=(0,r.hashObject)(Wx("0xf6")+t);return e[Wx("0x103")](n)||e[Wx("0x123")]({id:n,name:t})}[Wx("0x131")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Wx("0x38")][Wx("0xf5")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Wx("0x134")](i,"accept",(()=>{this[Wx("0x74")](n,{state:Wx("0x9c")})}),{priority:Wx("0xff")}),this[Wx("0x134")](i,Wx("0x39"),(()=>{this[Wx("0x74")](n,{state:Wx("0xf0")})}),{priority:Wx("0xff")}),this[Wx("0x52")].set(n,i),this[Wx("0x6")].set(i,"notReady"),i}[Wx("0x127")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[Wx("0xf1")]>=5?e[2]:null,id:e[Wx("0xf1")]<5?e[2]:e[3],authorId:e[Wx("0xf1")]<5?e[3]:e[4],markerCount:6==e[Wx("0xf1")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[Wx("0xed")],i=s.end;this._setSuggestionRange(t,this._model[Wx("0x8b")](r,n));const a=(0,e.uid)(),x=t[Wx("0x80")].id,c=t[Wx("0x1a")]+(t.subType?":"+t[Wx("0x0")]:"");this._setSuggestionData({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[Wx("0xf4")],data:t[Wx("0xa8")]}),Wx("0x84")==t[Wx("0x1a")]&&(o=this[Wx("0xe5")][Wx("0x126")](o[Wx("0xa9")])),this[Wx("0x128")](c,a,x,this._model.createRange(o,i))}[Wx("0x26")](t,e=null){const n=[],o=this[Wx("0xe5")].schema,s=this[Wx("0xd5")][Wx("0xa7")][Wx("0xac")](Wx("0xa3")).me;for(const r of this[Wx("0x5f")]())if(r[Wx("0x95")]&&(!e||r.type==e))for(const e of r[Wx("0x4a")]()){const i=t[Wx("0xed")][Wx("0x37")](e[Wx("0xd")])||t[Wx("0xd")][Wx("0x37")](e[Wx("0xed")]);if(i||t[Wx("0x98")](e)){const a=t[Wx("0x23")](e)&&Kx(o,e.start,t),x=e.containsRange(t)&&Kx(o,t[Wx("0xed")],e);n[Wx("0x3d")]({suggestion:r,meta:{isOwn:s==r[Wx("0x7e")],isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[Wx("0x128")](t,e,n,o,s){this[Wx("0xe5")].change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[Wx("0x5c")],n=t[Wx("0x9a")];t[Wx("0x5c")]=null,null!=e&&(e[Wx("0x9a")]=null),t[Wx("0x9a")]=null,null!=n&&(n[Wx("0x5c")]=null),Wx("0xc0")==this[Wx("0x6")][Wx("0xac")](t)&&(this._suggestionState[Wx("0xfa")](t,Wx("0xe8")),this.fire(Wx("0x53"),t,e,n))}[Wx("0x9d")](t){const n=t.id,o=this[Wx("0x7d")](t);if(this[Wx("0x47")]&&this[Wx("0x47")].addSuggestion){const s=this[Wx("0xd5")][Wx("0xa7")].get(Wx("0x6e")),r=o.hasComments,i=o[Wx("0x0")]?o[Wx("0x1a")]+":"+o[Wx("0x0")]:o[Wx("0x1a")],a=this[Wx("0xd5")][Wx("0x82")],x=s[Wx("0x56")](Yo(a,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[Wx("0xa8")]||null,originalSuggestionId:t[Wx("0x59")]||null,attributes:o.attributes};this[Wx("0x47")][Wx("0xe4")](c).then((t=>{o[Wx("0xb8")]=!0,s.remove(x),t&&t[Wx("0x2d")]&&(this[Wx("0x52")].get(n)[Wx("0x2d")]=t[Wx("0x2d")])}))[Wx("0x3")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Wx("0xd5")][Wx("0x115")][Wx("0xbc")]({isUndoable:!1},(()=>{o.discard()})),o[Wx("0x15")](),this._suggestions[Wx("0x130")](o.id),this[Wx("0x6")][Wx("0x130")](o),t}))}return o}[Wx("0x74")](t,e){const n=this[Wx("0xd5")].plugins[Wx("0xac")](Wx("0x6e")),o=this[Wx("0xd9")](t);if(this[Wx("0x47")]&&this[Wx("0x47")][Wx("0x2c")])if(o[Wx("0xb8")]){const o=n.add(Yo(this[Wx("0xd5")][Wx("0x82")],"PENDING_ACTION_SUGGESTION"));this[Wx("0x47")].updateSuggestion(t,e).then((()=>{n[Wx("0x10a")](o)}))}else o.on(Wx("0x8d"),(()=>{this[Wx("0x74")](t,e)}))}[Wx("0x68")](t){if(!this[Wx("0x47")]||!this[Wx("0x47")][Wx("0xd9")])throw new e.CKEditorError(Wx("0x7c"),this);return this._adapter[Wx("0xd9")](t)}[Wx("0xe3")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wx("0x127")](t),r=this._suggestions.get(e)||this[Wx("0x131")](n,o,e,s,{});switch(this[Wx("0x12a")](r,n,o,s),this[Wx("0x6")][Wx("0xac")](r)){case Wx("0x31"):this[Wx("0x68")](e).then((t=>{let n=Promise.resolve();t[Wx("0x118")]&&(n=this[Wx("0xef")].fetchCommentThread({channelId:this[Wx("0xd5")][Wx("0x62")][Wx("0xac")](Wx("0x3a")),threadId:e})),n.then((()=>{this[Wx("0x7d")](t)[Wx("0xb8")]=!0}))})),this[Wx("0x6")].set(r,Wx("0x6b"));break;case Wx("0xe8"):this[Wx("0x74")](e,{state:"open"});case Wx("0xbb"):this[Wx("0x6")][Wx("0xfa")](r,Wx("0xc0")),this[Wx("0xbf")](Wx("0x9e"),r);break;case Wx("0xc0"):this[Wx("0xbf")]("suggestionChanged",r)}return r[Wx("0x114")](t),r}[Wx("0x119")](t){const e=Array[Wx("0x64")](t).filter((t=>!t[Wx("0x42")])),n=this[Wx("0x5f")]({skipNotAttached:!0})[Wx("0x3c")]((t=>!t[Wx("0x42")])),o=n[Wx("0x3c")]((e=>!t.has(e))),s=new Map(n[Wx("0x10c")]((t=>[t,this[Wx("0x38")][Wx("0x136")](t[Wx("0x1a")],t.subType,Wx("0x8a"))]))),r=new Map(n[Wx("0x10c")]((t=>[t,t[Wx("0x48")]()]))),i=new Set,a=new Set;for(let t=0;t<e.length;t++)x(e[t],e,t+1);for(let t=0;t<e.length;t++)x(e[t],o,0);for(let t=0;t<e[Wx("0xf1")];t++){const n=e[t];!a.has(n)&&n[Wx("0x5c")]&&(n.previous[Wx("0x9a")]===n&&(n[Wx("0x5c")].next=null),n[Wx("0x5c")]=null),!i.has(n)&&n[Wx("0x9a")]&&(n[Wx("0x9a")][Wx("0x5c")]===n&&(n[Wx("0x9a")].previous=null),n[Wx("0x9a")]=null)}function x(t,e,n){for(let o=n;o<e[Wx("0xf1")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Wx("0x5c")]=n[0],i[Wx("0x56")](n[0]),a[Wx("0x56")](n[1]))}}function c(t,e){if(t.author.id!==e[Wx("0x7e")].id)return null;const n=s[Wx("0xac")](t)(t,e,r[Wx("0xac")](t),r[Wx("0xac")](e));return n&&s[Wx("0xac")](e)(t,e,r.get(t),r.get(e))?n[1].commentThread&&n[1].commentThread.length?null:n:null}}[Wx("0x12f")](t){const e=Array[Wx("0x64")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wx("0x3c")]((e=>!t[Wx("0x124")](e))),s=new Map(e[Wx("0x10c")]((t=>[t,this._suggestionFactory[Wx("0x136")](t.type,t.subType,Wx("0xeb"))]))),r=new Map(n[Wx("0x10c")]((t=>[t,t[Wx("0x4a")]()])));for(let t=0;t<e[Wx("0xf1")];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[Wx("0xf1")];i++){const o=n[i];if(o[Wx("0x1a")]!==e[Wx("0x1a")]||o.author.id!==e[Wx("0x7e")].id||o[Wx("0x0")]!==e[Wx("0x0")])continue;const a=s[Wx("0xac")](e),x=r[Wx("0xac")](e),c=r[Wx("0xac")](o),l=e[Wx("0x58")]&&e[Wx("0x58")].length,d=o[Wx("0x58")]&&o[Wx("0x58")][Wx("0xf1")];if(!l&&a(c,x))return t[Wx("0x22")](o,e),r[Wx("0x130")](e),!0;if(!d&&a(x,c))return t[Wx("0x22")](e,o),r[Wx("0x130")](o),!0}return!1}}[Wx("0x22")](t,e){if(t[Wx("0x42")])for(const n of e[Wx("0x4a")]())t[Wx("0x43")](n);else{const n=e[Wx("0x48")]()[Wx("0xd")];this[Wx("0x27")](t,this[Wx("0xe5")][Wx("0x8b")](t[Wx("0x48")]()[Wx("0xed")],n))}e[Wx("0x101")]()}}class Vx{constructor(t){this[Wx("0x10")]=t,this._model=t[Wx("0x115")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[Wx("0x113")]()}[Wx("0xf5")](t,e,n,o,s,r){return new Zo(this[Wx("0xe5")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wx("0x136")](t,e,"accept")(...n),onDiscard:(...n)=>this[Wx("0x136")](t,e,"discard")(...n)})}[Wx("0xbd")](t,e,n,o){const s=t+":"+e+":"+n;this[Wx("0x6c")][Wx("0xfa")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Wx("0x6c")].get(o)||this._defaultCallbacks.get(t+":"+n)}[Wx("0x113")](){const t=()=>{},e=t=>{t[Wx("0x18")](((t,e)=>t[Wx("0xed")][Wx("0x21")](e[Wx("0xed")])?1:-1)),this[Wx("0xe5")][Wx("0x10b")]((e=>{for(const n of t){let t;t=n.end[Wx("0xaf")]&&n.end[Wx("0xa9")]==n.start[Wx("0x72")]?e.createSelection(n[Wx("0xed")][Wx("0x72")],"on"):e[Wx("0xd8")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wx("0xe5")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wx("0x10c")]((t=>($x(t)&&(t=this[Wx("0xe5")][Wx("0x8b")](t[Wx("0xd")])),t)))[Wx("0x3c")]((t=>Wx("0xe1")!==t.root[Wx("0xc4")]));if(r[Wx("0xf1")]<1)return;const a=Array[Wx("0x64")](this[Wx("0xe5")].document.selection[Wx("0x4a")]())[Wx("0x10c")]((t=>i.LiveRange.fromRange(t)));n[Wx("0x12d")](r);for(const t of this[Wx("0x10")][Wx("0x45")][Wx("0x45")]())t.refresh();s[Wx("0x3d")]({forceDefaultExecution:!0}),this[Wx("0x10")].execute(o,...s);const x=a[Wx("0x3c")]((t=>"$graveyard"!=t[Wx("0x7b")][Wx("0xc4")]));x[Wx("0xf1")]>0&&n[Wx("0x12d")](x);for(const t of a)t.detach()}))},o=(t,e)=>1==t[Wx("0xf1")]&&1==e[Wx("0xf1")]&&t[0][Wx("0xd")][Wx("0x37")](e[0].start),s=(t,e,n,o)=>Zx(t,e,n,o,this[Wx("0xe5")])?[t,e]:Zx(e,t,o,n,this[Wx("0xe5")])?[e,t]:null;this[Wx("0xe")][Wx("0xfa")](Wx("0xc2"),t),this[Wx("0xe")][Wx("0xfa")](Wx("0x86"),e),this[Wx("0xe")][Wx("0xfa")](Wx("0x51"),o),this[Wx("0xe")][Wx("0xfa")](Wx("0x20"),s),this[Wx("0xe")][Wx("0xfa")]("deletion:accept",e),this[Wx("0xe")][Wx("0xfa")](Wx("0x89"),t),this[Wx("0xe")][Wx("0xfa")](Wx("0xd0"),o),this[Wx("0xe")][Wx("0xfa")](Wx("0x12b"),s),this[Wx("0xe")][Wx("0xfa")](Wx("0x30"),n),this[Wx("0xe")].set(Wx("0x8"),t),this._defaultCallbacks[Wx("0xfa")](Wx("0xb1"),o),this[Wx("0xe")][Wx("0xfa")](Wx("0x85"),t),this[Wx("0xe")][Wx("0xfa")](Wx("0x7f"),n),this[Wx("0xe")].set(Wx("0xc7"),t),this[Wx("0xe")][Wx("0xfa")](Wx("0x5e"),o),this[Wx("0xe")].set(Wx("0xde"),t)}}function Kx(t,e,n){for(const o of e[Wx("0xa9")][Wx("0x34")]({includeSelf:!0,parentFirst:!0})){if(o[Wx("0x7b")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Wx("0x77")](o)||t.isLimit(o))return!0}return!1}function $x(t){return t[Wx("0xd")][Wx("0xa9")]==t[Wx("0xed")][Wx("0x72")]&&t[Wx("0xd")][Wx("0x1c")]}function qx(t,e,n,o){const s=t=>!t[Wx("0xf2")].is("$textProxy")&&!o[Wx("0x77")](t[Wx("0xf2")]),r=t[Wx("0xed")][Wx("0x12e")](s),i=t[Wx("0xd")].getLastMatchingPosition(s,{direction:Wx("0x1f")});return!(t.start[Wx("0x37")](r)&&t[Wx("0xd")][Wx("0x37")](i)||(r[Wx("0x21")](i)?n[Wx("0x69")](e,{range:n.createRange(r,i)}):n[Wx("0x4e")](e),0))}function Xx(t){return(0,r.hashObject)(t)}function Jx(t){const e=t.start[Wx("0x72")];return e&&e.is(Wx("0xb0"))}function Qx(t,e){const n=e[Wx("0x91")][Wx("0x77")](t)||e[Wx("0x91")][Wx("0xee")](t);return e[Wx("0x8b")](e[Wx("0x3f")](t,"before"),n?e.createPositionAfter(t):e[Wx("0x3f")](t,Wx("0xd")))}function Zx(t,e,n,o,s){if(n[Wx("0xd")][Wx("0x37")](o.start))return!0;if(t.type!=e[Wx("0x1a")])return!1;if(!n.end[Wx("0xbe")](o.start))return!1;const r=s[Wx("0x8b")](n.end,o[Wx("0xed")])[Wx("0x75")]();for(const t of r)if([Wx("0x6a"),"elementEnd"][Wx("0xd1")](t[Wx("0x1a")])&&s.schema[Wx("0xa1")](t[Wx("0xf2")]))return!1;return!0}const Yx=["bind","_acceptCommand","commentThreadController","locale","isEnabled","add","_removePendingAction","canEditAt","discardSuggestion","remove","getRanges","unbind","_setPendingAction","listenTo","model","acceptSuggestion","get","plugins","destroy","view","change:isDirty","_editor","canDiscard","commands","execute","_pendingAction","_discardCommand","canAccept"];var tc,ec;tc=Yx,ec=291,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x3")]=e,this[nc("0x8")]=n,this[nc("0x13")]=o,this[nc("0xa")]=t,this._acceptCommand=t[nc("0xc")][nc("0x5")](nc("0x4")),this[nc("0xf")]=t.commands[nc("0x5")]("discardSuggestion"),this.view[nc("0x11")](nc("0x15")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0x8")].bind(nc("0x10")).to(this[nc("0x12")],nc("0x15"),(t=>t&&this[nc("0xa")][nc("0x3")].canEditAt(e[nc("0x1b")]()))),this[nc("0x8")][nc("0x11")](nc("0xb")).to(this[nc("0xf")],nc("0x15"),(t=>t&&this[nc("0xa")][nc("0x3")][nc("0x18")](e[nc("0x1b")]()))),this._pendingAction=null,n.isDirty&&this[nc("0x1")](),this.listenTo(n,nc("0x4"),(()=>this[nc("0x4")]())),this[nc("0x2")](n,nc("0x19"),(()=>this[nc("0x19")]())),this.listenTo(n,nc("0x9"),(()=>{n.isDirty?this[nc("0x1")]():this[nc("0x17")]()}))}[nc("0x4")](){this[nc("0x12")][nc("0xd")](this.model.id)}discardSuggestion(){this._discardCommand[nc("0xd")](this[nc("0x3")].id)}[nc("0x7")](){this[nc("0x8")][nc("0x0")](nc("0x15")),this[nc("0x8")][nc("0x0")]("canAccept"),this[nc("0x8")][nc("0x0")](nc("0xb")),this.stopListening(),this[nc("0x13")][nc("0x7")](),this[nc("0xe")]&&this._removePendingAction()}[nc("0x1")](){const t=Yo(this[nc("0xa")][nc("0x14")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this[nc("0xa")].plugins[nc("0x5")]("PendingActions")[nc("0x16")](t)}[nc("0x17")](){null!==this[nc("0xe")]&&this[nc("0xa")][nc("0x6")].get("PendingActions")[nc("0x1a")](this[nc("0xe")]),this[nc("0xe")]=null}}const sc=["bind","length","disabledSubmit","setData","_localUser","delegate","CommentView","_model","_createCommentViews","updateComment","hasDirtyComment","commentInputView","commentThreadInputView","cancel","fire","canDiscard","disableComments","set","isEnabled","_createCommentThreadInputView","commentThread","destroy","isReadOnly","showInput","isDirty","focus","canAccept","addComment","isActive","removeComment","locale","authoredAt","_config","commentsListView"];var rc,ic;rc=sc,ic=265,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const ac=function(t,e){return sc[t-=0]};class xc extends s.View{constructor(t,e,n,o){super(t),this[ac("0x6")]=null,this[ac("0x13")]=null,this[ac("0x18")](ac("0x1"),!1),this[ac("0x18")](ac("0x4"),e[ac("0x4")]),this[ac("0x7")](ac("0x4")).to(e),this[ac("0x18")]("descriptionParts",[]),this[ac("0x18")]("isDirty",!1),this[ac("0x18")](ac("0x19"),!1),this[ac("0x18")](ac("0x21"),!1),this[ac("0x18")](ac("0x16"),!1),this[ac("0xe")]=e,this._localUser=n,this._config=o,o[ac("0x17")]?this[ac("0x18")](ac("0x8"),1):this[ac("0xf")]()}focus(){this.element[ac("0x20")]()}destroy(){this[ac("0x6")]&&this[ac("0x6")][ac("0x1c")](),this[ac("0x13")]&&this[ac("0x13")][ac("0x1c")](),super[ac("0x1c")]()}[ac("0xf")](){const{CommentsListView:t}=this[ac("0x5")];this[ac("0x6")]=new t(this[ac("0x3")],this._model.commentThread,Object.assign({CommentView:this._config[ac("0xd")]},this._config)),this[ac("0x6")][ac("0xc")](ac("0x2")).to(this),this.commentsListView[ac("0xc")](ac("0x10")).to(this),this[ac("0x6")][ac("0x7")]("isActive").to(this),this[ac("0x18")](ac("0x8"),this.commentsListView.length+1),this.bind(ac("0x8")).to(this.commentsListView,ac("0x8"),(t=>t+1)),this[ac("0x13")]=this[ac("0x1a")](),this.on(ac("0x2"),(()=>this[ac("0x20")]())),this.bind(ac("0x1f")).to(this.commentsListView,ac("0x11"),this.commentThreadInputView.commentInputView,"value",((t,e)=>t||!!e))}[ac("0x1a")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[ac("0xb")],this[ac("0x5")].editorConfig),n=e[ac("0x12")];return e[ac("0x7")](ac("0x1e")).to(this,"isActive",this._model.commentThread,ac("0x1d"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[ac("0x15")](ac("0x0"),e),n.editor[ac("0xa")]("")})),n.on(ac("0x14"),(()=>this[ac("0x20")]())),n[ac("0x7")](ac("0x9")).to(this[ac("0xe")][ac("0x1b")],ac("0x1d")),e}}const cc=["value","importWord","commentThreadInputView","span","EXTERNAL_SUGGESTION","disableComments","children","Accept suggestion","createElement","ck-annotation__info-name","execute","ck-suggestion-","color","isExternal","Discard suggestion","acceptButton","name","commentThread","isEnabled","getTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-comment__info-time","ck-suggestion__user","userView","render","set",".ck-annotation__content-wrapper","ck-suggestion-wrapper","ck-suggestion__info-name","extendTemplate","change:description","descriptionParts","_createButton","innerText","ck-suggestion__main","</p>","element","time","_descriptionElement","source","commentsListView",'"></span>',"@external","ck-suggestion--accept",'<span class="ck-suggestion-color" style="background-color: ',"content","check","ck-annotation__info","<p>","authoredAt","ck-suggestion--discard","fire","ck-suggestion","</span>","discardButton","bind","querySelector","formatDateTime","ck-annotation__main",'<span class="ck-suggestion-type">',"div","join","ck-annotation__actions","ck-annotation__user","ck-suggestion__info","acceptSuggestion","_config","author","getExternalSuggestionNote","innerHTML","locale","canAccept","type","_model","ck-annotation__info-time","isActive","push","canDiscard","discardSuggestion","ck-suggestion-wrapper--active","creator",'" title="',"attributes","description"];var lc,dc;lc=cc,dc=297,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends xc{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x40")](uc("0x1b"),""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0][uc("0x1b")]:"")),this.bind(uc("0x26")).to(this,uc("0x46"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=uc("0x3")+mc(e[uc("0x0")],e[uc("0x33")])+uc("0x4a");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x4d")]=null,this[uc("0x36")]=this[uc("0x47")](Yo(e,uc("0x2e")),t.icons[uc("0x1")],uc("0x52"),uc("0x14"),"sw"),this[uc("0x36")][uc("0xa")](uc("0x39")).to(this,uc("0x1a")),this[uc("0x9")]=this[uc("0x47")](Yo(e,uc("0x35")),t.icons.cancel,uc("0x5"),uc("0x21"),"sw"),this[uc("0x9")][uc("0xa")]("isEnabled").to(this,uc("0x20")),this.userView=new r.UserView(e,this[uc("0x1c")][uc("0x16")],this.getUserViewNotificationText()),this[uc("0x3e")][uc("0x44")]({attributes:{class:[uc("0x3d"),uc("0x12")]}}),this.setTemplate(this[uc("0x3a")]())}[uc("0x3a")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[uc("0x13"),uc("0x2")]},children:[{tag:uc("0x2a"),children:[{text:this[uc("0x3e")].name}],attributes:{class:[uc("0x43"),uc("0x30")]}},{tag:uc("0x4c"),attributes:{datetime:t.to(uc("0x4")),class:[uc("0x3c"),uc("0x1d")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x15")][uc("0xc")](t)))}]}]},{tag:uc("0xf"),attributes:{class:["ck-suggestion__actions",uc("0x11")]},children:[this[uc("0x36")],this.discardButton]},{tag:uc("0xf"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model.isExternal&&e[uc("0x1f")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[uc("0x42"),t.if(uc("0x1e"),uc("0x22")),t.to(uc("0x1b"),(t=>uc("0x32")+t)),this[uc("0x15")][uc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x1c")].id,"data-thread-id":this._model[uc("0x38")].id,"data-author-id":this[uc("0x1c")][uc("0x16")].id,tabindex:-1},children:[{tag:uc("0xf"),attributes:{class:[uc("0x7"),"ck-annotation"]},children:[this[uc("0x3e")],{tag:uc("0xf"),attributes:{class:[uc("0x49"),uc("0xd")]},children:e}]}]};return this.commentsListView&&this[uc("0x29")]&&n[uc("0x2d")][uc("0x1f")](this[uc("0x4f")],this[uc("0x29")]),n}[uc("0x3f")](){super[uc("0x3f")](),this[uc("0x4d")]=this[uc("0x4b")][uc("0xb")](uc("0x41")),this[uc("0x4d")][uc("0x18")]=this[uc("0x26")],this.on(uc("0x45"),((t,e,n)=>{this[uc("0x4d")][uc("0x18")]=n}))}[uc("0x47")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x19")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x44")]({attributes:{class:n}}),i.on(uc("0x31"),(()=>{this[uc("0x6")](o,this[uc("0x1c")].id)})),i}[uc("0x17")](){return uc("0x28")===this[uc("0x1c")].attributes[uc("0x51")][uc("0x4e")]?Yo(this[uc("0x19")],uc("0x3b")):Yo(this.locale,uc("0x2b"))}getUserViewNotificationText(){return this[uc("0x1c")][uc("0x34")]?uc("0x28")===this[uc("0x1c")][uc("0x25")]["@external"].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x1c")][uc("0x23")][uc("0x37")]):Yo(this[uc("0x19")],"EXTERNAL_AVATAR",this[uc("0x1c")][uc("0x23")].name):null}}function mc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?uc("0xe")+fc(t)+uc("0x8"):fc(t)))[uc("0x10")](""),e&&(n+=uc("0x53")+e[uc("0x27")]+uc("0x24")+e.title+uc("0x50")),n}function fc(t){const e=document[uc("0x2f")](uc("0x2a"));return e[uc("0x48")]=t,e.innerHTML}const hc=["stopListening","discardButton","isEnabled","comments.maxCommentsWhenCollapsed","config","previous","push","_updateController","getFirstRange","getAllAdjacentSuggestions","comments","length","_disableComments","CommentView","delete","set","button","execute","suggestionLoaded","hasSuggestion","commands","commandName","size","EditorAnnotations","init","get","model","remove","trackChanges","actionView","isInContent","plugins","getDescriptions","addSourceCollector","registerAnnotation","createCommentThreadController","discardAllSuggestions","createAnnotationView","isMultiRange","acceptAllSuggestions","reduce","_descriptionFactory","TrackChangesEditing","mainView","_destroyController","_refreshActiveMarkers","isDirty","editing","suggestionUnloaded","_handleControllerBuffer","unbind","type","listenTo","filter","some","lowest","Accept all selected suggestions","CommentsRepository","Annotations","locale","view","editor","value","pluginName","bind","requires","head","_suggestionToController","_viewToController","switchbutton","getSuggestion","change:activeAnnotations","commentThread","arrowView","toMany","descriptionParts","comments.maxCommentCharsWhenCollapsed","trackChanges.disableComments","change:previous","_handleSuggestionControllerDelayed","add","_createUIButton","has","map","addComment","getJoined","_annotationViews","focus","Accept all suggestions","clear","TrackChangesUI","buttonView","refreshSelectedViews","_initializeController","from","suggestion-","source","isOn","values","comments.maxThreadTotalWeight","destroy","innerView","componentFactory","discardSelectedSuggestions","getMarkerNames","define"];var pc,bc;pc=hc,bc=486,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[Ec("0x3")](){return[zx,r.Users,Ec("0x65"),Ec("0x66"),Ec("0x43")]}static get[Ec("0x1")](){return Ec("0x1c")}constructor(t){super(t),this[Ec("0x5")]=new Map,this[Ec("0x6")]=new Map,this[Ec("0x18")]=new Map,this[Ec("0x5d")]=new Map;const e=this[Ec("0x69")].config;e[Ec("0x2b")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x2b")]("trackChanges.disableComments",!1),this[Ec("0x38")]=e[Ec("0x45")](Ec("0xf"))}[Ec("0x11")](t,e){0===this._handleControllerBuffer[Ec("0x42")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x5d")]){const n=this._suggestionToController[Ec("0x14")](t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[Ec("0x69")][Ec("0x4b")][Ec("0x45")](Ec("0x43"))[Ec("0x1e")](),this[Ec("0x59")](),this[Ec("0x5d")][Ec("0x1b")]()}),10),this[Ec("0x5d")][Ec("0x3b")](t,e)}[Ec("0x44")](){const t=this[Ec("0x69")],e=t[Ec("0x4b")][Ec("0x45")](Ec("0x56")),n=t[Ec("0x4b")].get(Ec("0x66")),o=t.plugins.get(Ec("0x43")),s=t[Ec("0x4b")][Ec("0x45")]("CommentsRepository");t.ui[Ec("0x28")][Ec("0x12")](Ec("0x48"),(t=>this._createUIButton(t))),o[Ec("0x4d")]((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x5")])){const o=e[Ec("0x35")](),s=[];for(const t of o){if(!t[Ec("0x4a")])continue;if(t[Ec("0x52")]){s.push(...t.getRanges());continue}const e=t[Ec("0x34")]();if(s[Ec("0x37")]>0){const t=s[0][Ec("0x17")](e);if(t){s[0]=t;continue}}s[Ec("0x32")](e)}t[Ec("0x32")]([n.view,s])}return t})),this[Ec("0x60")](e,Ec("0x3e"),((t,e)=>{this[Ec("0x60")](e,Ec("0x10"),((t,n,o,s)=>{e.isInContent&&(null==o?(this._updateController(s[Ec("0x4")]),this[Ec("0x11")](e,!1)):(this[Ec("0x33")](o[Ec("0x4")]),this[Ec("0x11")](e,!0)))})),null===e[Ec("0x31")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x33")](e.head)})),this[Ec("0x60")](e,Ec("0x5c"),((t,e,n)=>{this[Ec("0x2c")](e,"change:previous"),this._handleControllerBuffer[Ec("0x3a")](e);const o=n?n[Ec("0x4")]:e,s=this[Ec("0x5")][Ec("0x45")](o);null!==n&&this[Ec("0x33")](o),null===n&&s&&this[Ec("0x58")](e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Ec("0x33")](e)})),this[Ec("0x60")](n,Ec("0x9"),(()=>{this[Ec("0x59")]()})),this[Ec("0x60")](s,Ec("0x16"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x3f")](n))return;const s=e[Ec("0x8")](n);this._suggestionToController[Ec("0x45")](s)[Ec("0x68")][Ec("0x19")]()}),{priority:Ec("0x63")})}[Ec("0x59")](){const t=this[Ec("0x69")][Ec("0x4b")][Ec("0x45")](Ec("0x66")),e=this[Ec("0x69")][Ec("0x4b")][Ec("0x45")](Ec("0x56")),n=Array[Ec("0x20")](t.activeAnnotations,(t=>t[Ec("0x27")]))[Ec("0x61")]((t=>this[Ec("0x6")].has(t))),o=[];for(const t of n){const e=this[Ec("0x6")].get(t)[Ec("0x46")].getAllAdjacentSuggestions();o[Ec("0x32")](...e[Ec("0x54")](((t,e)=>[...t,...e[Ec("0x2a")]()]),[]))}e.activeMarkers=o}[Ec("0x13")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x69")][Ec("0x40")][Ec("0x45")](Ec("0x48")),r=Yo(t,"Track changes");n[Ec("0x1d")].set({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.buttonView.bind(Ec("0x23")).to(o,Ec("0x0")),n.buttonView.on(Ec("0x3d"),(()=>{o[Ec("0x3d")](),this[Ec("0x69")][Ec("0x5b")].view[Ec("0x19")]()}));const i=new e.Collection,a=[{type:Ec("0x7"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1a")),commandName:Ec("0x53")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x64")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x50")}},{type:Ec("0x3c"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:Ec("0x29")}}];for(const t of a){let e={type:"separator"};if(t[Ec("0x46")]){const n=new s.Model(t[Ec("0x46")]),o=this.editor.commands[Ec("0x45")](n[Ec("0x41")]);n[Ec("0x2")](Ec("0x23"),Ec("0x2e")).to(o,"value",Ec("0x2e")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const x=a[Ec("0x61")]((t=>null!=t[Ec("0x46")]))[Ec("0x15")]((t=>this[Ec("0x69")][Ec("0x40")][Ec("0x45")](t[Ec("0x46")][Ec("0x41")]))),c=n[Ec("0x1d")];return c[Ec("0x49")].unbind(Ec("0x2e")),c[Ec("0xb")][Ec("0x5e")]("isEnabled"),c.actionView[Ec("0x2")](Ec("0x2e")).to(o,"isEnabled"),c.arrowView[Ec("0x2")](Ec("0x2e"))[Ec("0xc")](x,"isEnabled",((...t)=>t[Ec("0x62")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x69")][Ec("0x3d")](t[Ec("0x22")][Ec("0x41")]),this[Ec("0x69")][Ec("0x5b")].view[Ec("0x19")]()})),n}[Ec("0x1f")](t){const e=this[Ec("0x69")],n=e[Ec("0x30")],o=e.plugins[Ec("0x45")]("Annotations"),s=e[Ec("0x4b")][Ec("0x45")](Ec("0x65")),i=e[Ec("0x4b")].get(Ec("0x43")),a=e[Ec("0x4b")][Ec("0x45")](r.Users).me,x=n[Ec("0x45")](Ec("0x48")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x4b")][Ec("0x45")]("CommentsUI");let d,u;this._annotationViews[Ec("0x14")](t.id)?(u=this._annotationViews[Ec("0x45")](t.id),d=u[Ec("0x57")]):(d=new x(e.locale,t,a,{disableComments:this[Ec("0x38")],editorConfig:n[Ec("0x45")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x45")](Ec("0x2f")),maxThreadTotalWeight:n.get(Ec("0x25")),maxCommentCharsWhenCollapsed:n[Ec("0x45")](Ec("0xe")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x45")](Ec("0x67"))),CommentView:n[Ec("0x45")](Ec("0x36"))[Ec("0x39")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Ec("0x3d"),(()=>{e[Ec("0x5b")][Ec("0x68")].focus()})),d[Ec("0x2d")].on(Ec("0x3d"),(()=>{e[Ec("0x5b")][Ec("0x68")][Ec("0x19")]()})),u=o[Ec("0x51")](this.editor.locale,d),u.bind(Ec("0x5a")).to(d,Ec("0x5a")),u[Ec("0x2")](Ec("0x37")).to(d),u[Ec("0x2")](Ec("0x5f")).to(d,"type",(t=>"suggestion-"+t)),this[Ec("0x18")][Ec("0x3b")](t.id,u));const g=s[Ec("0x4f")](t[Ec("0xa")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x4a")]));d[Ec("0xd")]=e.plugins[Ec("0x45")]("TrackChangesEditing")[Ec("0x55")].getDescriptions(f),this[Ec("0x5")][Ec("0x3b")](t,m),this[Ec("0x6")][Ec("0x3b")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x35")]()[Ec("0x61")]((t=>t[Ec("0x4a")]));for(const t of o)n[Ec("0x32")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x5b")],n)},type:()=>Ec("0x21")+m[Ec("0x68")].type});o[Ec("0x12")](h),i[Ec("0x4e")](h)}[Ec("0x58")](t){const e=this.editor[Ec("0x4b")].get(Ec("0x66")),n=this[Ec("0x5")].get(t),o=n[Ec("0x68")],s=e.getByInnerView(o);s&&e[Ec("0x47")](s),this[Ec("0x5")][Ec("0x3a")](t),this[Ec("0x6")][Ec("0x3a")](o),n[Ec("0x26")]()}_updateController(t){if(!t[Ec("0x4a")]||!this._suggestionToController[Ec("0x14")](t))return;const e=this[Ec("0x69")][Ec("0x4b")].get("TrackChangesEditing"),n=this[Ec("0x5")][Ec("0x45")](t),o=t[Ec("0x35")]();n[Ec("0x68")][Ec("0xd")]=e[Ec("0x55")][Ec("0x4c")](o)}[Ec("0x26")](){for(const t of this[Ec("0x5")].keys())this[Ec("0x58")](t);for(const t of this[Ec("0x18")][Ec("0x24")]())t[Ec("0x57")].destroy();super.destroy()}}var Tc,Cc,yc=["Comments","adapter","getSuggestion","plugins","TrackChanges","get","editor","addSuggestion","addSuggestionData","requires","getSuggestions"];Tc=yc,Cc=156,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("0x7")](){return[zx,_c,kc("0x9")]}static get pluginName(){return kc("0x2")}set adapter(t){this.editor[kc("0x1")][kc("0x3")](zx)[kc("0xa")]=t}get adapter(){return this[kc("0x4")][kc("0x1")][kc("0x3")](zx).adapter}[kc("0x5")](t){return this.editor[kc("0x1")].get(zx)[kc("0x6")](t)}[kc("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")][kc("0x1")][kc("0x3")](zx)[kc("0x8")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x4")][kc("0x1")].get(zx)[kc("0x0")](t)}}const vc=["name","Users","TrackChangesEditing","context","create","getDataWithDiscardedSuggestions","constructor","div","string","init","TrackChangesData","TrackChangesDataGetter","extraPlugins","createElement","requires","names","getDataWithAcceptedSuggestions","acceptAllSuggestions","includes","addUser","data","RevisionTracker","users","map","get","appendChild","getSuggestions","execute","builtinPlugins","end","track-changes-data-invalid-editor-creator","set","WordCount","plugins","initialData","config","model","from","result","pluginName","addSuggestionData","getRootNames","editorCreator","destroy","editor","discardAllSuggestions","concat","Autosave","WebSocketGateway","has","every","_adapter","Pagination","trackChangesData","push","useAnonymousUser","getUser","toolbar","createDocumentFragment","function","DocumentOutline"];var Rc,Sc;Rc=vc,Sc=263,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0xf"),Ic("0x2d"),Ic("0x26")],Nc=[Ic("0x1d"),Ic("0x2"),Ic("0x1c"),Ic("0xd"),Ic("0x21"),Ic("0x29")];class Mc extends t.Plugin{static get[Ic("0x38")](){return[zx]}static get[Ic("0x14")](){return Ic("0x34")}[Ic("0x33")](){const t=this.editor;if(t[Ic("0x10")].define("trackChangesData.editorCreator",(e=>t.constructor[Ic("0x2e")]("",e))),Ic("0x28")!=typeof t[Ic("0x10")][Ic("0x5")](Ic("0x22"))[Ic("0x17")])throw new e.CKEditorError(Ic("0xb"))}[Ic("0x3a")](t){return Oc(this.editor,!0,t)}[Ic("0x2f")](t){return Oc(this[Ic("0x19")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x14")](){return Ic("0x35")}constructor(t){super(t),this[Ic("0x13")]=Ic("0xa")}init(){this[Ic("0x19")].plugins[Ic("0x5")]("CommentsRepository").adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0xe")][Ic("0x5")](Ic("0x2c"))[Ic("0x20")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t[Ic("0x10")][Ic("0x39")]())Lc[Ic("0x3c")](n)||(e[n]=t[Ic("0x10")][Ic("0x5")](n));const n=t[Ic("0x30")][Ic("0x9")]||[],o=e[Ic("0x36")]||[];delete e.extraPlugins;const s=n[Ic("0x1b")](e[Ic("0xe")]).concat(o)[Ic("0x4")]((t=>Ic("0x32")==typeof t?n.find((e=>e.pluginName==t)):t)),r=Array[Ic("0x12")](new Set(s)),i=new Map;return e.plugins=r.filter((t=>Pc(t,i))),e[Ic("0xe")][Ic("0x23")](wc),e[Ic("0xe")][Ic("0x23")](zx),e}(t),s=document[Ic("0x27")](),r=t[Ic("0x10")].get("trackChangesData")[Ic("0x17")],i=await r(o,(()=>function(t){const e=document[Ic("0x37")](Ic("0x31"));return t[Ic("0x6")](e),e}(s)));!function(t,e){const n=t[Ic("0x11")].document[Ic("0x16")]().reduce(((e,n)=>(e[n]=t[Ic("0x1")][Ic("0x5")]({rootName:n}),e)),{}),o=t[Ic("0xe")][Ic("0x5")](Ic("0x2b"))[Ic("0x3")][Ic("0x4")]((t=>({id:t.id,name:t[Ic("0x2a")]}))),s=t.plugins[Ic("0x5")]("TrackChangesEditing")[Ic("0x7")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x5")](Ic("0x2b")),i=e.plugins.get(Ic("0x2c"));for(const t of o)r[Ic("0x25")](t.id)||r[Ic("0x0")](t);r.me||r[Ic("0x24")]();for(const t of s)i[Ic("0x15")](t);e[Ic("0x1")][Ic("0xc")](n)}(t,i),i[Ic("0x8")](Ic(e?"0x3b":"0x1a"));const a=i[Ic("0x1")][Ic("0x5")](n);return await i[Ic("0x18")](),a}function Pc(t,e){const n="function"==typeof t?t[Ic("0x14")]||t[Ic("0x2a")]:t;if(e[Ic("0x1e")](n))return e[Ic("0x5")](n);if(e[Ic("0xc")](n,!0),n&&Nc.includes(n))return e[Ic("0xc")](n,!1),!1;if(!t.requires)return e[Ic("0xc")](n,!0),!0;const o=t[Ic("0x38")][Ic("0x1f")]((t=>Pc(t,e)));return e[Ic("0xc")](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 r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.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:()=>wc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["value","_disableUnsupportedCommands","execute","_enabledCommands","_enableCommands","affectsData","clearForceDisabled","editor","commands","TrackChangesCommand","isEnabled","_isEnabledBasedOnSelection"];var c,l;c=a,l=356,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("0x7")]=e,this.value=!1,this.refresh(),this[d("0x3")]=!1}refresh(){this[d("0x2")]=!0}[d("0x6")](){this.value=!this.value,this[d("0x4")]?this[d("0x5")]():this._enableCommands()}[d("0x5")](){for(const t of this[d("0xb")][d("0x0")][d("0x0")]())t[d("0x9")]&&!this._enabledCommands.has(t)&&t.forceDisabled("TrackChangesCommand")}[d("0x8")](){for(const t of this[d("0xb")][d("0x0")][d("0x0")]())t.affectsData&&!this[d("0x7")].has(t)&&t[d("0xa")](d("0x1"))}}const g=["getRanges","_isEnabledBasedOnSelection","isEnabled","execute","plugins","editor","get","TrackChangesEditing","acceptSuggestion","_suggestions","model","canEditAt","refresh"];var m,f;m=g,f=327,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("0xa")](),this[h("0xc")]=!1}[h("0xa")](){this[h("0x0")]=!0}[h("0x1")](t){const n=this[h("0x7")][h("0x4")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0xb")]();this[h("0x3")][h("0x8")][h("0x9")](o)&&this[h("0x3")][h("0x2")][h("0x4")](h("0x5"))[h("0x6")](n)}}const b=["discardSuggestion","refresh","get","_isEnabledBasedOnSelection","model","isEnabled","_suggestions","editor","getRanges","canEditAt","TrackChangesEditing","plugins"];var E,_;E=b,_=249,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("0x9")]=e,this[T("0x4")](),this[T("0x6")]=!1}[T("0x4")](){this[T("0x8")]=!0}execute(t){const n=this._suggestions[T("0x5")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xb")]();this[T("0xa")][T("0x7")][T("0x0")](o)&&this.editor[T("0x2")][T("0x5")](T("0x1"))[T("0x3")](n)}}const y=["createPositionBefore","getRanges","schema","isIntersecting","push","splice","sort","deletion","isInContent","next"," [color ","isArray","start","value","length","content","join","createPositionAfter","isCollapsed","from","isTouching","getRange","execute","type","isMultiRange","createPositionAt","end"];var k,A;k=y,A=166,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x2")](((t,e)=>v("0x3")==t.type&&v("0x3")!=e[v("0x13")]?-1:v("0x3")!=t[v("0x13")]&&v("0x3")==e[v("0x13")]?1:0))}function S(t,e){let n,o=0;const r=[],s=e[v("0x19")];for(;o<t[v("0xa")];){const i=t[o],x=t[o+1];n||(n=e[v("0x17")](i)),I(e,i,x)||(r[v("0x0")](e.createRange(n,s.isObject(i)?e[v("0xd")](i):e[v("0x15")](i,v("0x16")))),n=null),o++}return r}function I(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),r=t[v("0x17")](n);return o[v("0x10")](r)}function L(t,e,n){for(;n[v("0xa")];){const o=n[v("0x1")](0,100);t.change((()=>{for(const t of o)t[v("0x4")]&&e[v("0x12")](t.id)}))}}const N=["_suggestions","editor","canEditAt","refresh","some","getRanges","values","from","model","_command","_isEnabledBasedOnSelection","execute","isEnabled"];var w,M;w=N,M=258,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xb")]=e,this[O("0x2")]=n,this[O("0x5")](),this[O("0xc")]=!1}[O("0x5")](){const t=Array[O("0x9")](this[O("0x2")][O("0x8")]())[O("0x6")]((t=>t.isInContent));this[O("0x1")]=this[O("0xb")][O("0x1")]&&t}[O("0x0")](){const t=R(Array[O("0x9")](this[O("0x2")][O("0x8")]()));for(const e of t){const t=e[O("0x7")]();if(!this.editor[O("0xa")][O("0x4")](t))return}L(this[O("0x3")][O("0xa")],this[O("0xb")],t)}}const P=["_isEnabledBasedOnSelection","getRanges","selection","size","_command","canEditAt","editor","refresh","model","_suggestions","document","_selectedSuggestions"];var D,B;D=P,B=295,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("0x2")]=n,this[j("0x4")]=new Set,this[j("0x0")](),this[j("0x5")]=!1}[j("0x0")](){const t=this.editor[j("0x1")][j("0x3")][j("0x7")],e=Array.from(this[j("0x2")].values());this._selectedSuggestions=function(t,e){const n=Array[v("0xf")](t[v("0x18")]()),o=new Set;for(const r of e)if(r[v("0x4")])for(const e of n)for(const n of r.getMarkers()){const s=n[v("0x11")]();(e[v("0x1a")](s)||t[v("0xe")]&&!r[v("0x14")]&&r[v("0x5")]&&s[v("0x16")][v("0x10")](e[v("0x8")]))&&o.add(r)}return o}(t,e),this.isEnabled=this[j("0x9")].isEnabled&&!!this[j("0x4")][j("0x8")]}execute(){const t=R(Array.from(this[j("0x4")]));for(const e of t){const t=e[j("0x6")]();if(!this[j("0xb")][j("0x1")][j("0xa")](t))return}L(this[j("0xb")][j("0x1")],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 V=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 z=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(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=z,$.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 rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.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 r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=rt?rt.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 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 wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,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 Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=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=zt,$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 re=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 se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(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 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 we=function(t,e){var n=ge(t),o=!n&&ue(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};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)?we(t):Be(t)};const Ge=function(t,e){return t&&se(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 Ve=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&&Ve.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&se(e,ze(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,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};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 rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,ze,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 wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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=rt?rt.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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var zn=Se&&Se.isMap;const Kn=zn?ke(zn):Wn;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,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,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=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!s){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[u])return s?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(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=d?void 0:(l?c?un:dn:c?ze:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,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)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.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,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.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:so(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 r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(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,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};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=rt?rt.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,r,s,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||!s(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,r,s,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){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:Mo.call(e,l)))return!1}var d=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.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,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):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 s.delete(t),s.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(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 s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):wo(t,e,a,n,o,r,s);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 s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};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 Vo=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,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const zo=function(t,e){return e.length<2?t:Vo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["size","creator","_onAccept","addRange","onDiscard","from","addMarkerName","length","suggestion:","data","_onDiscard","_model","_saved","add","_onAttributesChange","createdAt","onAttributesChange","set","end","change","isExternal","next","commentThread","getMarkerNames","toJSON","getRanges","getMarkers","type","attributes","previous","setAttribute","removeMarker","author","@external","onAccept","nodeAfter","push","removeMarkers","delete","isIntersectingWithRange","discard","_markerNames","authoredAt","decorate","hasComments","addMarker","getFirstMarker","clear","head","getFirstRange","getItems","isMultiRange","markers","start","nodeBefore","accept","subType"];var $o,Jo;$o=Xo,Jo=294,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.type=e[Qo("0x12")],this[Qo("0x2f")]=e[Qo("0x2f")]||null,this[Qo("0x17")]=e[Qo("0x17")],this.creator=e.creator||e.author,this[Qo("0xb")]=Boolean(e.attributes&&e[Qo("0x13")][Qo("0x18")]),this[Qo("0x0")]=null,this[Qo("0x2")]=t,this[Qo("0x32")]=e[Qo("0x19")],this[Qo("0x1")]=e[Qo("0x34")],this._onAttributesChange=e[Qo("0x7")],this[Qo("0x20")]=new Set,this[Qo("0x6")]=null,this[Qo("0x8")](Qo("0x21"),null),this[Qo("0x8")](Qo("0x13"),e[Qo("0x13")]||{}),this[Qo("0x8")]("previous",null),this[Qo("0x8")](Qo("0xc"),null),this.set(Qo("0xd"),null),this[Qo("0x8")](Qo("0x3"),!1),this[Qo("0x22")]("accept"),this[Qo("0x22")](Qo("0x1f"))}get head(){let t=this;for(;t[Qo("0x14")];)t=t[Qo("0x14")];return t}get[Qo("0x23")](){return!!this[Qo("0xd")]&&this[Qo("0xd")].length>0}get[Qo("0x2a")](){return 0!=this[Qo("0x20")][Qo("0x30")]&&6==Array[Qo("0x35")](this[Qo("0x20")])[0].split(":")[Qo("0x37")]}get isInContent(){return null!==this[Qo("0x25")]()}[Qo("0x36")](t){this[Qo("0x20")][Qo("0x4")](t)}getMarkerNames(){return Array[Qo("0x35")](this[Qo("0x20")])}[Qo("0x11")](){return this[Qo("0xe")]().map((t=>this._model[Qo("0x2b")].get(t))).filter((t=>t))}getFirstMarker(){return this[Qo("0x11")]()[0]||null}[Qo("0x1c")](){this[Qo("0x2")][Qo("0xa")]((t=>{for(const e of this.getMarkers())t[Qo("0x16")](e)})),this[Qo("0x20")][Qo("0x26")]()}[Qo("0x16")](t){this[Qo("0x2")][Qo("0xa")]((e=>{e[Qo("0x16")](t)})),this[Qo("0x20")][Qo("0x1d")](t)}[Qo("0x33")](t){const e=Qo("0x38")+this[Qo("0x12")]+":"+this[Qo("0x2f")]+":"+this.id+":"+this[Qo("0x31")].id+":"+Zo.getMultiRangeId();this[Qo("0x36")](e),this._model[Qo("0xa")]((n=>{n[Qo("0x24")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x1e")](t){for(const e of this[Qo("0x10")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x10")](){return this[Qo("0x11")]().map((t=>t.getRange()))}[Qo("0x29")](){return this[Qo("0x10")]().reduce(((t,e)=>[...t,...e[Qo("0x29")]()]),[])}[Qo("0x28")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x10")]();if(1!=t[Qo("0x37")])return null;const e=t[0],n=e[Qo("0x2c")][Qo("0x1a")],o=e[Qo("0x9")][Qo("0x2d")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2e")](){this._onAccept(this[Qo("0x10")](),this[Qo("0x0")],this.attributes),this[Qo("0x1c")]()}[Qo("0x1f")](){this[Qo("0x1")](this[Qo("0x10")](),this[Qo("0x0")],this[Qo("0x13")]),this[Qo("0x1c")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x27")];for(;e;)t[Qo("0x1b")](e),e=e[Qo("0xc")];return t}[Qo("0x15")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x13")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this[Qo("0x13")]);qo(e,t),Go(e,this[Qo("0x13")])||(this.attributes=e,this[Qo("0x5")](this[Qo("0x13")]))}[Qo("0xf")](){return{id:this.id,type:this[Qo("0x2f")]?this[Qo("0x12")]+":"+this.subType:this.type,authorId:this[Qo("0x31")].id,createdAt:this[Qo("0x6")],hasComments:this.hasComments,data:this[Qo("0x0")],attributes:this[Qo("0x13")]}}static getMultiRangeId(){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 tr=["getWalker","isEqual","$textProxy","type","element","_customCallbacks","set","length","item","*Insert:* %0","_itemLabelsCallbacks","_itemLabels","$text","softBreak","Container","pop","indexOf","elementEnd","EmptyContainer","match","removeEmptyContainer","quantity","getItemLabel","*Split:* %0","nextSibling","_locale","isEmpty","removeContainer","deletion","*Remove:* %0","_resolveDescriptionItems","previousSibling","registerElementLabel","remove","replace","addObject","isInContent","_schema","Object","label","push","add","getFirstRange","*Merge:* %0","data","isObject","start","matchingCallback","addContainer","_addDescriptionItems","$1 $2","name","REPLACE_TEXT","text","insertion"];var er,nr;er=tr,nr=408,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x25")]=[],this[or("0x2b")]=new Map,this[or("0x2a")]=[],this[or("0xe")]=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[or("0x27")];n++){const o=t[n];if(!o[or("0xd")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){or("0x23")in n&&e[or("0x11")](n),r=!0;break}}if(!r){this[or("0x1a")](e,o);const r=t[n+1];if(r&&!o[or("0x13")]().end[or("0x21")](r.getFirstRange()[or("0x17")])){const t=e[e[or("0x27")]-1],n=or("0x1f")==o[or("0x23")]?"add":or("0xa");t&&"text"==t.type&&(t[n]+="\n")}}}return this[or("0x7")](e)}registerDescriptionCallback(t){this[or("0x25")].push(t)}[or("0x9")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x2a")],{matchingCallback:t,label:n,priority:o}):this[or("0x2b")][or("0x26")](t,n)}[or("0x36")](t,e=1){let n;for(const e of this[or("0x2a")])if(e[or("0x18")](t)){n=e[or("0x10")];break}return n||(n=this[or("0x2b")].get(t[or("0x1c")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x1c")]}[or("0x1a")](t,e){const n=e[or("0x13")]()[or("0x20")](),o=or("0x1f")==e.type?or("0x12"):or("0xa");for(const e of n){const r=e[or("0x28")],s=t[t.length-1];if(r.is(or("0x22")))s&&s.type[or("0x30")](or("0x2e"))>-1&&t[or("0x2f")](),s&&"text"==s.type?s[o]+=r.data:t[or("0x11")]({type:or("0x1e"),add:"add"==o?r.data:"",remove:"remove"==o?r[or("0x15")]:""});else if(this[or("0xe")][or("0x16")](r)){const i=r;if(s&&s[or("0x23")][or("0x30")](or("0x2e"))>-1&&t[or("0x2f")](),or("0x31")==e.type)continue;s&&s.type==o+or("0xf")&&s[or("0x24")].name==i[or("0x1c")]?s.quantity++:t[or("0x11")]({type:o+or("0xf"),element:i,quantity:1}),n.skip((t=>!(or("0x31")==t.type&&t[or("0x28")]==r)))}else if(this[or("0xe")].checkChild(r,or("0x2c"))||r.is(or("0x24"),or("0x2d"))){const n=r;if("add"==o&&"elementStart"==e[or("0x23")]||or("0xa")==o&&or("0x31")==e[or("0x23")])continue;if(s&&-1==s.type[or("0x30")](or("0x2e"))){or("0x1e")==s[or("0x23")]&&(s[o]+="\n");continue}let i;if(i=or("0x12")==o?n[or("0x1")]&&!this[or("0xe")].isObject(n[or("0x1")])?n.nextSibling:null:n.previousSibling&&!this[or("0xe")][or("0x16")](n[or("0x8")])?n[or("0x8")]:null,n[or("0x3")]||i&&i[or("0x3")]){const e=i&&i[or("0x3")]?i:n;s&&s[or("0x23")]==o+"EmptyContainer"&&s.element[or("0x1c")]==e.name?s[or("0x35")]++:t[or("0x11")]({type:o+or("0x32"),element:e,quantity:1})}else t[or("0x11")]({type:o+"Container",element:n})}}}[or("0x7")](t){const e=this[or("0x2")],n=[];for(const o of t){switch(o.type){case"text":if(o.add=o[or("0x12")].replace(/(\S)\u000A+(\S)/g,or("0x1b"))[or("0xb")](/\u000A/g,""),o[or("0xa")]=o[or("0xa")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[or("0xb")](/\u000A/g,""),""!=o[or("0x12")]&&""!=o[or("0xa")]){n[or("0x11")]({type:or("0xb"),content:Yo(e,or("0x1d"),['"'+o[or("0xa")]+'"','"'+o[or("0x12")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[or("0x11")]({type:or("0x1f"),content:Yo(e,or("0x29"),Yo(e,"ELEMENT_SPACE",o[or("0x12")][or("0x27")]))});continue}if(null!=o.remove[or("0x33")](/^ +$/)){n[or("0x11")]({type:"deletion",content:Yo(e,or("0x6"),Yo(e,"ELEMENT_SPACE",o[or("0xa")][or("0x27")]))});continue}if(""!=o[or("0x12")]){n.push({type:or("0x1f"),content:Yo(e,or("0x29"),'"'+o[or("0x12")]+'"')});continue}n[or("0x11")]({type:or("0x5"),content:Yo(e,or("0x6"),'"'+o.remove+'"')});continue;case"addEmptyContainer":case or("0xc"):n[or("0x11")]({type:"insertion",content:Yo(e,or("0x29"),this[or("0x36")](o.element,o.quantity))});continue;case or("0x34"):case"removeObject":n[or("0x11")]({type:or("0x5"),content:Yo(e,or("0x6"),this[or("0x36")](o[or("0x24")],o[or("0x35")]))});continue;case or("0x19"):n[or("0x11")]({type:"insertion",content:Yo(e,or("0x0"),this[or("0x36")](o[or("0x24")],o[or("0x35")]))});continue;case or("0x4"):n.push({type:or("0x5"),content:Yo(e,or("0x14"),this[or("0x36")](o.element,o[or("0x35")]))});continue}n[or("0x11")](o)}return n}}const sr=["locale","enableCommand","document","get","justify","has","*Format:* %0","center","model","alignment","ltr","commandParams","value","markBlockFormat","right","editor","left","change","afterInit","checkAttribute","getSelectedBlocks","filter","schema"];var ir,xr;ir=sr,xr=392,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x11")](){const t=this.editor,e=t.locale;if(!t.plugins[ar("0x4")]("AlignmentEditing"))return;const n=t.plugins[ar("0x2")]("TrackChangesEditing");n[ar("0x0")](ar("0x8"),((e,o={})=>{let r=o[ar("0xb")];o[ar("0xb")]||(r=ar("0x9")===t[ar("0x16")].contentLanguageDirection?"left":ar("0xd"));const s=Array.from(this[ar("0xe")][ar("0x7")][ar("0x1")].selection[ar("0x13")]())[ar("0x14")]((t=>function(t,e,n){const o=t.getAttribute(ar("0x8"))||null;return e[ar("0x12")](t,"alignment")&&n!=o}(t,this.editor[ar("0x7")][ar("0x15")],r)));t[ar("0x7")][ar("0x10")]((()=>{for(const t of s)n[ar("0xc")](t,{commandName:ar("0x8"),commandParams:[{value:r}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ar("0x8")==n.commandName){const t=n[ar("0xa")][0][ar("0xb")];return{type:"format",content:Yo(e,ar("0x5"),function(t){switch(t){case ar("0xf"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case ar("0xd"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case ar("0x6"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case ar("0x3"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const lr=["createUIElement","element","addClass","push","activeMarkers","schema","insert","mapper","writer","listItem","isAtEnd","ck-suggestion-marker--active","get","isBlock","elementEnd","previousPosition","test","getAttribute","type","includes","isLimit","markerName","isContent","getCustomProperty","span","ck-suggestion-marker-","createRangeOn","start","item","TrackChangesEditing","nextSibling"];var dr,ur;dr=lr,ur=159,function(t){for(;--t;)dr.push(dr.shift())}(++ur);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e.getItems())r.hasAttribute(t)&&o.push(n[gr("0x16")](r));return o}function fr(t){const e=[];if(t.is(gr("0x1c"),gr("0x5"))){let n=t.nextSibling;for(;n&&n.is(gr("0x1c"),gr("0x5"))&&n[gr("0xd")]("listIndent")>0;)e[gr("0x1e")](n),n=n[gr("0x1a")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gr("0x8")](gr("0x19"));return(r,s,i)=>{if(!i.consumable[gr("0xc")](s.markerRange,r.name))return;const x=s.markerRange.getWalker(),a=s.markerRange[gr("0x17")],c=t.model[gr("0x1")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gr("0x18")];u=u||c[gr("0x12")](e);const n=i[gr("0x3")].toViewElement(e);if(n&&n[gr("0x13")]("addHighlight"))return;gr("0xa")==t[gr("0xe")]&&c[gr("0x9")](e)&&!c[gr("0x10")](e)&&(e[gr("0x1a")]||a[gr("0x6")]?l&&l.parent==e||(l=e,m(t[gr("0xb")]),g=!0):d=d||t[gr("0xb")])}function m(t){const r=i[gr("0x4")][gr("0x1b")](gr("0x14"),{class:gr("0x15")+e}),x=i[gr("0x3")].toViewPosition(t);n&&o[gr("0x0")][gr("0xf")](s.markerName)&&i.writer[gr("0x1d")](gr("0x7"),r),i[gr("0x4")][gr("0x2")](x,r),i[gr("0x3")].bindElementToMarker(r,s[gr("0x11")])}u||g||!d||m(d)}}const pr=["editor","StrikethroughEditing","TrackChangesEditing","getRanges","FORMAT_CODE","*Remove format:* %0","plugins","FORMAT_SUPERSCRIPT","get","ItalicEditing","commandName","isCollapsed","afterInit","SuperscriptEditing","underline","CodeEditing","BoldEditing","SubscriptEditing","format","commands","model","forceValue","_descriptionFactory","code","FORMAT_UNDERLINE","document","change","FORMAT_SUBSCRIPT","FORMAT_BOLD","has","registerDescriptionCallback","UnderlineEditing","strikethrough","toLowerCase"];var br,Er;br=pr,Er=124,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=[_r("0x1c"),_r("0x15"),_r("0x9"),_r("0x1b"),_r("0xd"),_r("0x1d"),_r("0x19")];class Cr extends t.Plugin{[_r("0x18")](){const t=this[_r("0xc")],e=t[_r("0x20")],n=t[_r("0x12")][_r("0x14")](_r("0xe")),o=t.locale;for(const o of Tr){if(!t[_r("0x12")][_r("0x7")](o))continue;const r=o.slice(0,-7)[_r("0xb")](),s=t[_r("0x1f")][_r("0x14")](r);n.enableCommand(r,((t,o={})=>{const i=e[_r("0x3")].selection;if(i[_r("0x17")])return void t(o);const x=void 0!==o[_r("0x21")]?o[_r("0x21")]:!s.value;e[_r("0x4")]((()=>{const t=Array.from(i[_r("0xf")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x0")][_r("0x8")]((n=>{const{data:r}=n;if(r&&r[_r("0x16")]===t)return r.commandParams[0].forceValue?{type:_r("0x1e"),content:Yo(o,"*Format:* %0",e)}:{type:_r("0x1e"),content:Yo(o,_r("0x11"),e)}}))}r("bold",Yo(o,_r("0x6"))),r("italic",Yo(o,"FORMAT_ITALIC")),r(_r("0x1a"),Yo(o,_r("0x2"))),r(_r("0x1"),Yo(o,_r("0x10"))),r(_r("0xa"),Yo(o,"FORMAT_STRIKETHROUGH")),r("subscript",Yo(o,_r("0x5"))),r("superscript",Yo(o,_r("0x13")))}}const yr=["change","getSelectedBlocks","forceValue","$root","markBlockFormat","commandParams","value","enableCommand","filter","schema","locale","TrackChangesEditing","get","blockQuote","commandName","*Format:* %0","model","commands","name","checkChild","BlockQuoteEditing","_descriptionFactory","has","registerDescriptionCallback","document","editor","from","format","parent","plugins","ELEMENT_BLOCK_QUOTE"];var kr,Ar;kr=yr,Ar=199,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{afterInit(){const t=this[vr("0xc")],e=t[vr("0x1c")];if(!t[vr("0x10")][vr("0x9")](vr("0x7")))return;const n=t.plugins.get(vr("0x1d")),o=this.editor[vr("0x4")][vr("0x1e")](vr("0x0"));n[vr("0x19")]("blockQuote",((e,r={})=>{const s=this[vr("0xc")].model[vr("0xb")].selection,i=r&&void 0!==r[vr("0x14")]?r[vr("0x14")]:!o[vr("0x18")];let x=[];if(i){const e=Array[vr("0xd")](s[vr("0x13")]())[vr("0x1a")]((t=>Sr(t)||function(t,e){const n=e[vr("0x6")](t.parent,"blockQuote"),o=e[vr("0x6")]([vr("0x15"),vr("0x0")],t);return n&&o}(t,this[vr("0xc")][vr("0x3")][vr("0x1b")])));x=S(e,t[vr("0x3")])}else{const e=Array[vr("0xd")](s[vr("0x13")]()).filter((t=>Sr(t)));x=S(e,t[vr("0x3")])}t.model[vr("0x12")]((()=>{for(const t of x)n[vr("0x16")](t,{commandName:vr("0x0"),commandParams:[{forceValue:i}]})}))})),n[vr("0x8")][vr("0xa")]((t=>{const{data:n}=t;if(n&&vr("0x0")==n[vr("0x1")]){const t=Yo(e,vr("0x11"));return n[vr("0x17")][0].forceValue?{type:vr("0xe"),content:Yo(e,vr("0x2"),t)}:{type:vr("0xe"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Sr(t){return vr("0x0")==t[vr("0xf")][vr("0x5")]}const Ir=["ckbox","plugins","editor","afterInit","enableCommand","commands"];var Lr,Nr;Lr=Ir,Nr=157,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const wr=function(t,e){return Ir[t-=0]};class Mr extends t.Plugin{[wr("0x2")](){const t=this[wr("0x1")];t[wr("0x4")].get(wr("0x5"))&&t[wr("0x0")].get("TrackChangesEditing")[wr("0x3")](wr("0x5"))}}const Or=["ELEMENT_CODE_BLOCK","config","registerDescriptionCallback","format","locale","_descriptionFactory","languages","CodeBlock","get","TrackChangesEditing","commandName","formatBlock","plugins","document","*Remove format:* %0","commands","label","parent","registerElementLabel","forceValue","isLimit","getSelectedBlocks","model","blockName","*Format:* %0","find","commandParams","language","from","markBlockFormat","codeBlock","value","schema","checkChild","filter","enableCommand"];var Fr,Pr;Fr=Or,Pr=465,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{afterInit(){const t=this.editor;if(!t[Dr("0xf")].has(Dr("0xa")))return;const e=t[Dr("0xf")].get(Dr("0xc")),n=t[Dr("0x7")],o=t[Dr("0x4")][Dr("0xb")](Dr("0x21"))[Dr("0x9")],r=t[Dr("0x12")].get(Dr("0x21"));e[Dr("0x2")]("indentCodeBlock"),e[Dr("0x2")]("outdentCodeBlock"),e[Dr("0x2")](Dr("0x21"),((n,s={})=>{const i=t[Dr("0x19")],x=t[Dr("0x19")][Dr("0x10")].selection,a=s&&void 0!==s[Dr("0x16")]?s.forceValue:!r[Dr("0x22")];let c;s.language||(s[Dr("0x1e")]=o[0][Dr("0x1e")]),c=a?Array[Dr("0x1f")](x[Dr("0x18")]())[Dr("0x1")]((t=>{return jr(t)||(e=t,n=i[Dr("0x23")],!e.is("rootElement")&&!n[Dr("0x17")](e)&&n[Dr("0x0")](e[Dr("0x14")],Dr("0x21")));var e,n})):Array[Dr("0x1f")](x[Dr("0x18")]())[Dr("0x1")]((t=>jr(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Dr("0x20")](t,{commandName:Dr("0x21"),commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x1a")})}))})),e[Dr("0x8")][Dr("0x15")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Dr("0x8")][Dr("0x5")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0xe")==r&&s&&Dr("0x21")==s[Dr("0xd")]){const t=s.commandParams[0][Dr("0x1e")],r=e(o[Dr("0x1c")]((e=>e[Dr("0x1e")]===t))[Dr("0x13")]);return s[Dr("0x1d")][0][Dr("0x16")]?{type:"format",content:Yo(n,Dr("0x1b"),Yo(n,Dr("0x3"),1)+" ("+r+")")}:{type:Dr("0x6"),content:Yo(n,Dr("0x11"),Yo(n,Dr("0x3"),1))}}}))}}function jr(t){return Dr("0x21")==t.name}const Ur=["editor","get","afterInit","has","addCommentThread","CommentsEditing","enableCommand","plugins"];var Gr,Hr;Gr=Ur,Hr=254,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Vr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{[Vr("0x4")](){const t=this[Vr("0x2")];t[Vr("0x1")][Vr("0x5")](Vr("0x7"))&&t[Vr("0x1")][Vr("0x3")]("TrackChangesEditing")[Vr("0x0")](Vr("0x6"))}}var zr=n(181);const Kr=["mapper","merge","buffer","unbindElementFromMarkerName","bind","uiElement","lock","markerName","model","createRange","batch","getFirstRange","forward","enqueueChange","createSelection","unit","detach","rootName","editing","high","start","unlock","options","showSuggestionHighlights","TrackChangesEditing","delete","commands","data","deleteForward","selection","get","document","editor","isCollapsed","end","downcastDispatcher","init","addMarker:suggestion:deletion","plugins","setSelection","enableCommand"];var qr,Xr;qr=Kr,Xr=309,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Jr extends t.Plugin{static get requires(){return[zr.Delete]}[$r("0xe")](){const t=this[$r("0xa")],e=t[$r("0x10")][$r("0x8")]($r("0x2"));e[$r("0x12")]($r("0x3"));const n=t[$r("0x4")][$r("0x8")]($r("0x6"));e[$r("0x12")]($r("0x6"),((e,o={})=>{const r=t[$r("0x1b")][$r("0x21")](t[$r("0x1b")][$r("0x9")][$r("0x7")]);r[$r("0xb")]&&t[$r("0x1b")].modifySelection(r,{direction:$r("0x1f"),unit:o[$r("0x22")]});const s=r[$r("0x1e")](),x=i.LiveRange.fromRange(s);let a;e(o),a="$graveyard"==x.root[$r("0x24")]?t[$r("0x1b")][$r("0x1c")](s[$r("0x27")]):t[$r("0x1b")][$r("0x1c")](x[$r("0x27")],x[$r("0xc")]),x[$r("0x23")](),t[$r("0x1b")][$r("0x20")](n[$r("0x15")][$r("0x1d")],(t=>{n[$r("0x15")][$r("0x19")](),t[$r("0x11")](t[$r("0x1c")](a.end)),n[$r("0x15")][$r("0x28")]()}))})),t.editing[$r("0xd")].on($r("0xf"),hr(t,$r("0x14")),{priority:"high"}),t[$r("0x5")][$r("0xd")].on($r("0xf"),((e,n,o)=>{o[$r("0x0")][$r("0x1")]&&hr(t,$r("0x14"),{showActiveMarker:!1})[$r("0x17")](this)(e,n,o)}),{priority:"high"}),t[$r("0x25")][$r("0xd")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$r("0x13")].markerNameToElements(e[$r("0x1a")]);if(o)for(const t of o)t.is($r("0x18"))&&(n[$r("0x13")][$r("0x16")](t,e[$r("0x1a")]),n.writer.remove(t))}),{priority:$r("0x26")})}}const Qr=["listItemId","commands","before","findIndex","format","splitListItemBefore","_descriptionFactory","parent","registerCustomCallback","end","mergeListItemBackward","next","execute","bulletedList","listIndent","listType","commandParams","locale","DocumentListEditing","indentList","*Merge:* %0","isFirstBlockOfListItem","schema","afterInit","_suggestionFactory","documentList","isObject","editor","nodeAfter","ELEMENT_NUMBERED_LIST","nextSibling","setSelection","createPositionAt","commandName","enableCommand","*Change to:* %0","numberedList","from","getSelectedBlocks","markMultiRangeBlockFormat","*Format:* remove from %0","length","forceValue","getAttribute","getFirstRange","after","ELEMENT_","DocumentListUtils","mergeListItemForward","map","selection","slice","detach","splitListItemAfter","hasAttribute","plugins","expandListBlocksToCompleteList","markBlockFormat","get","accept","push","model","ELEMENT_BULLETED_LIST","registerDescriptionCallback","createRange","change","ELEMENT_LIST_ITEM","*Format:* insert into %0","add","*Indent:* %0","registerElementLabel","formatBlock","start","outdentList","previousSibling","document","value"];var Zr,Yr;Zr=Qr,Yr=458,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Qr[t-=0]};class es extends t.Plugin{[ts("0x1b")](){const t=this[ts("0x1f")];if(!t[ts("0x3b")].has(ts("0x16")))return;const e=t[ts("0x15")],n=t[ts("0x3b")][ts("0x3e")]("TrackChangesEditing"),o=t[ts("0x3b")].get(ts("0x33"));function r(e){return()=>{const r=t.commands[ts("0x3e")](e);let s=Array[ts("0x29")](t[ts("0x41")].document.selection[ts("0x2a")]());if(a(e)){s=o[ts("0x3c")](s);const t=[];for(const e of s)o[ts("0x19")](e)&&t.push(e);s=t}t[ts("0x41")].change((()=>{n[ts("0x2b")](s,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:ts("0x13")},[],"documentList")}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x29")](t);const n=e[ts("0x7")]((t=>!t[ts("0x3a")](ts("0x4"))));return n>-1&&(e=e[ts("0x37")](0,n)),e}(t[ts("0x41")][ts("0x2")].selection[ts("0x2a")]()),r=o[o[ts("0x2d")]-1],s=t.model[ts("0x1a")][ts("0x1e")](r)?ts("0x31"):ts("0xd"),i=t[ts("0x41")][ts("0x44")](t[ts("0x41")][ts("0x24")](o[0],ts("0x6")),t[ts("0x41")][ts("0x24")](r,s));t.model[ts("0x45")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(ts("0x12"))>n[ts("0x2f")]("listIndent");)e[ts("0x48")](t),t=t.nextSibling}return Array[ts("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[ts("0x41")][ts("0x2")][ts("0x36")][ts("0x2a")]()[ts("0xf")]()[ts("0x3")],r=t.model[ts("0x24")](o,ts("0x6")),s=t[ts("0x41")][ts("0x24")](o,0),i=t.model.createRange(r,s);t[ts("0x41")].change((()=>{n[ts("0x3d")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x13")})}))}}function a(e){const n=t[ts("0x5")][ts("0x3e")]("bulletedList")[ts("0x3")],o=t[ts("0x5")][ts("0x3e")](ts("0x28"))[ts("0x3")];return"numberedList"===e?n:o}n.enableCommand(ts("0x28"),r(ts("0x28"))),n.enableCommand("bulletedList",r(ts("0x11"))),n[ts("0x26")](ts("0x17"),s(ts("0x17"))),n[ts("0x26")]("outdentList",s("outdentList")),n[ts("0x26")](ts("0x39"),x(ts("0x39"))),n[ts("0x26")]("splitListItemBefore",x(ts("0x9"))),n[ts("0xa")][ts("0x4a")]((function(e){const n=!t[ts("0x41")][ts("0x1a")][ts("0x1e")](e),o=e[ts("0x1")],r=e[ts("0x22")],s=e.getAttribute(ts("0x4")),i=!o||o[ts("0x2f")](ts("0x4"))!==s,x=!r||r.getAttribute(ts("0x4"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,ts("0x46"),t))),n[ts("0xa")][ts("0x43")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n.commandName){case ts("0x11"):s=n[ts("0x14")][0][ts("0x2e")],i=a(n.commandName),o=s?"*Format:* insert into %0":ts("0x2c"),i&&(o=ts("0x27")),r={type:ts("0x8"),content:Yo(e,o,Yo(e,ts("0x42")))};break;case ts("0x28"):s=n[ts("0x14")][0][ts("0x2e")],i=a(n.commandName),o=ts(s?"0x47":"0x2c"),i&&(o="*Change to:* %0"),r={type:ts("0x8"),content:Yo(e,o,Yo(e,ts("0x21")))};break;case"indentList":o=ts("0x49"),r={type:"format",content:Yo(e,o,Yo(e,ts("0x46")))};break;case ts("0x0"):o=function(t){const e=t[ts("0x30")]();let n=e.start[ts("0x20")];for(;n&&e.containsItem(n);){if(n[ts("0x2f")](ts("0x12"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[ts("0x30")]().start[ts("0x20")];return ts("0x32")+e[ts("0x2f")](ts("0x13")).toUpperCase()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,ts("0x46"))),r={type:"format",content:o};break;case ts("0xe"):case ts("0x34"):!1===n.multipleBlocks&&(o=ts("0x18"),r={type:"deletion",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return r})),n[ts("0x1c")][ts("0xc")](ts("0x4b"),ts("0x1d"),ts("0x3f"),(function(e,n){const o=[];for(let n of e)n[ts("0x4c")][ts("0x20")]===n.end[ts("0xb")]&&(n=t[ts("0x41")][ts("0x44")](t.model[ts("0x24")](n[ts("0x4c")].nodeAfter,0))),o[ts("0x40")](n);t[ts("0x41")][ts("0x45")]((e=>{const r=t[ts("0x41")][ts("0x2")][ts("0x36")],s=Array[ts("0x29")](r.getRanges())[ts("0x35")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[ts("0x5")].get(n[ts("0x25")]).refresh(),n[ts("0x14")][ts("0x40")]({forceDefaultExecution:!0}),t[ts("0x10")](n[ts("0x25")],...n.commandParams),e[ts("0x23")](s);for(const t of s)t[ts("0x38")]()}))}))}}var ns=n(331);const os=["mapper","downcastDispatcher","bind","detach","addMarker:suggestion:insertion","editing","editor","data","createPositionAt","createRange","change","ck-suggestion-marker-split","afterExecute","remove","fire","markInsertion","writer","unbindElementFromMarkerName","parent","get","enterBlock","setSelection","end","model","markerName","options","TrackChangesEditing","nextSibling","enableCommand","init","requires","removeMarker:suggestion:insertion","high","enter","commands"];var rs,ss;rs=os,ss=371,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get[is("0x9")](){return[ns.Enter]}[is("0x8")](){const t=this[is("0x14")],e=t.plugins.get(is("0x5")),n=t[is("0xd")][is("0x21")](is("0xc"));e[is("0x7")](is("0xc"),(()=>{t[is("0x2")][is("0x18")]((o=>{const r=t[is("0x2")].document.selection,s=r.getFirstPosition(),x=i.LiveRange.fromRange(r.getFirstRange());if(n[is("0x22")](o)){const n=t.model[is("0x16")](s[is("0x20")][is("0x6")],0),r=o[is("0x17")](s,n);e[is("0x1d")](r)}else o[is("0x0")](o[is("0x17")](x[is("0x1")]));x[is("0x11")](),n[is("0x1c")](is("0x1a"),{writer:o})}))})),t[is("0x13")].downcastDispatcher.on("addMarker:suggestion:insertion",hr(t,"split"),{priority:is("0xb")}),t.editing[is("0xf")].on(is("0xa"),((t,e,n)=>{const o=n[is("0xe")].markerNameToElements(e[is("0x3")]);if(o)for(const t of o)t.hasClass(is("0x19"))&&(n.mapper[is("0x1f")](t,e[is("0x3")]),n[is("0x1e")][is("0x1b")](t))}),{priority:is("0xb")}),t[is("0x15")][is("0xf")].on(is("0x12"),((e,n,o)=>{o[is("0x4")].showSuggestionHighlights&&hr(t,"split",{showActiveMarker:!1})[is("0x10")](this)(e,n,o)}),{priority:is("0xb")})}}const as=["FindAndReplaceEditing","start","getIntersection","FindAndReplaceUtils","plugins","string","getRange","handleFindCommand","suggestion:deletion","has","TrackChangesEditing","editor","bind","createPositionAt","enableCommand","markers","findNext","model","_isInDeletionRange","replace","afterInit","item","replaceAll","get","createRange","find","getMarkersGroup"];var cs,ls;cs=as,ls=261,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{[ds("0x2")](){if(!this[ds("0x14")].plugins[ds("0x12")](ds("0x9")))return;const t=this.editor.plugins[ds("0x5")](ds("0x13"));t[ds("0x17")](ds("0x7"),this[ds("0x10")][ds("0x15")](this)),t.enableCommand(ds("0x19")),t[ds("0x17")]("findPrevious"),t[ds("0x17")](ds("0x1")),t.enableCommand(ds("0x4"))}[ds("0x10")](t,e,n={}){const o=this[ds("0x14")][ds("0xd")][ds("0x5")](ds("0xc"));void 0!==n&&t((t=>(ds("0xe")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ds("0x0")](e,t[ds("0x3")])))),n)}_isInDeletionRange(t,e){const n=this[ds("0x14")][ds("0x1a")][ds("0x6")](this.editor[ds("0x1a")][ds("0x16")](e,t[ds("0xa")]),this.editor[ds("0x1a")][ds("0x16")](e,t.end));for(const t of this[ds("0x14")][ds("0x1a")][ds("0x18")][ds("0x8")](ds("0x11")))if(null!==n[ds("0xb")](t[ds("0xf")]()))return!0;return!1}}const gs=["find","get","_descriptionFactory","FontColorEditing","format","commandName","*Reset font size*","*Reset font color*","selection","*Set font color:* %0","fontColor","getRanges","has","_enableCommand","TrackChangesEditing","*Set font background color:* %0","isCollapsed","normalizeSizeOptions","locale","config","fontColor.colors","value","fontSize","FontSize","trim","fontFamily","FontFamilyEditing","change","model","markInlineFormat","label","FontBackgroundColorEditing","plugins","*Set font family:* %0","fontBackgroundColor","*Reset font background color*","registerDescriptionCallback","commandParams","editor","fontBackgroundColor.colors","fontSize.options","afterInit","toLowerCase"];var ms,fs;ms=gs,fs=117,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},ps=[{pluginName:"FontSizeEditing",commandName:hs("0x22")},{pluginName:hs("0x26"),commandName:"fontFamily"},{pluginName:hs("0xf"),commandName:hs("0x16")},{pluginName:hs("0x0"),commandName:hs("0x3")}];class bs extends t.Plugin{[hs("0xa")](){const t=this[hs("0x7")][hs("0x1e")];for(const{pluginName:t,commandName:e}of ps)this[hs("0x7")].plugins[hs("0x18")](t)&&this[hs("0x19")](e);this[hs("0x7")][hs("0x1")][hs("0xd")](hs("0x1a"))[hs("0xe")][hs("0x5")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0x22")==o.commandName){const e=o[hs("0x6")][0][hs("0x21")];if(e){const o=n(this[hs("0x7")][hs("0x1")][hs("0xd")](hs("0x23"))[hs("0x1d")](this[hs("0x7")][hs("0x1f")][hs("0xd")](hs("0x9"))).find((t=>t[hs("0x28")]==e)).title).toLowerCase();return{type:hs("0x10"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hs("0x10"),content:Yo(t,hs("0x12"))}}if(hs("0x25")==o[hs("0x11")]){const e=o.commandParams[0][hs("0x21")];return e?{type:hs("0x10"),content:Yo(t,hs("0x2"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hs("0x16")==o.commandName){const e=o.commandParams[0].value;if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x7")][hs("0x1f")].get(hs("0x20")))[hs("0xc")]((t=>t[hs("0x28")]==e));let s=e,i="";return o&&(s=o[hs("0x2a")],i=n(s)[hs("0xb")]()),{type:hs("0x10"),content:Yo(t,hs("0x15"),i)[hs("0x24")](),color:{value:e,title:i||s}}}return{type:hs("0x10"),content:Yo(t,hs("0x13"))}}if("fontBackgroundColor"==o[hs("0x11")]){const e=o[hs("0x6")][0][hs("0x21")];if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x7")].config[hs("0xd")](hs("0x8")))[hs("0xc")]((t=>t[hs("0x28")]==e));let s=e,i="";return o&&(s=o[hs("0x2a")],i=n(s).toLowerCase()),{type:"format",content:Yo(t,hs("0x1b"),i)[hs("0x24")](),color:{value:e,title:i||s}}}return{type:hs("0x10"),content:Yo(t,hs("0x4"))}}}}))}[hs("0x19")](t){const e=this.editor;e[hs("0x1")][hs("0xd")](hs("0x1a")).enableCommand(t,((n,o={})=>{const r=e[hs("0x28")].document[hs("0x14")],s=o[hs("0x21")];r[hs("0x1c")]?n(o):e.model[hs("0x27")]((()=>{const n=Array.from(r[hs("0x17")]());for(const o of n){const n=s?[o]:mr(t,o,e[hs("0x28")]);for(const o of n)e[hs("0x1")][hs("0xd")](hs("0x1a"))[hs("0x29")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["enableCommand","model","length","selection","registerDescriptionCallback","getSelectedBlocks","from","word","getFirstPosition","fontSize","pasteFormat","isCollapsed","_descriptionFactory","getItems","getRanges","get","TrackChangesEditing","copyFormat","FontSize","getLastPosition","join","entries","document","afterInit","split","commandParams","keys","find","isBlock","schema","slice","commandName","createRange","fontColor","format","forward","label","plugins","config","getAttributeProperties","toLowerCase","backward","fontSize.options","fontBackgroundColor","change","isFormatting","editor","push","locale","commands","modifySelection","getAttributes"];var _s,Ts;_s=Es,Ts=183,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{[Cs("0x30")](){const t=this[Cs("0x13")],n=t[Cs("0x1a")],o=n[Cs("0x2f")][Cs("0x1c")],r=t.plugins[Cs("0x28")](Cs("0x29")),s=t.locale,i=t.commands.get("copyFormat"),x=t[Cs("0x16")][Cs("0x28")]("pasteFormat");i&&x&&(r[Cs("0x19")](Cs("0x23"),((t,s={})=>{const i=s;n[Cs("0x11")]((()=>{const t=Array[Cs("0x1f")](o[Cs("0x27")]()),s=o[Cs("0x24")]?[ks(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cs("0x18")]()){const t=e[Cs("0xc")](n);t&&t[Cs("0x12")]&&(yield n)}}(t,n));for(const e of t[Cs("0x27")]())for(const t of e[Cs("0x26")]())!n[Cs("0x1")](t)&&o(t)&&(yield t);for(const e of t[Cs("0x1e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cs("0x2")]))||0!==Object[Cs("0x33")](i)[Cs("0x1b")])for(const t of s)r.markInlineFormat(t,{commandName:Cs("0x23"),commandParams:[i]})}))})),r[Cs("0x25")][Cs("0x1d")]((e=>{const{data:n}=e;if(n&&Cs("0x23")===n[Cs("0x4")]){const e=[],o=n[Cs("0x32")][0];for(const[n,r]of Object[Cs("0x2e")](o))e[Cs("0x14")](As(t,n,r));return e[Cs("0x1b")]?{type:Cs("0x7"),content:Yo(s,"*Set format to:* %0",e[Cs("0x2d")](", "))}:{type:"format",content:Yo(s,"*Remove all formatting*")}}})),t[Cs("0xa")].get(Cs("0x29"))[Cs("0x19")](Cs("0x2a")))}}function ks(t,e){const n=t.createSelection(e);t[Cs("0x17")](n,{unit:Cs("0x20"),direction:Cs("0xe")});const o=n[Cs("0x21")]();t[Cs("0x17")](n,{unit:Cs("0x20"),direction:Cs("0x8")});const r=n[Cs("0x2c")]();return t[Cs("0x5")](o,r)}function As(t,e,n){const o=t[Cs("0x15")].t,s=e[Cs("0x31")](/(?=[A-Z])/).join(" "),i=o(s.charAt(0).toUpperCase()+s[Cs("0x3")](1))[Cs("0xd")]();if("boolean"==typeof n)return i;if(Cs("0x6")===e||Cs("0x10")===e){const e=(0,r.normalizeColorOptions)(t.config[Cs("0x28")]("fontColor.colors")).find((t=>t[Cs("0x1a")]==n));return i+" ("+(e?o(e[Cs("0x9")]).toLowerCase():n)+")"}if(Cs("0x22")===e&&isNaN(parseFloat(n))){const e=t[Cs("0xa")][Cs("0x28")](Cs("0x2b")).normalizeSizeOptions(t[Cs("0xb")][Cs("0x28")](Cs("0xf")))[Cs("0x0")]((t=>t[Cs("0x1a")]==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const vs=["blockName","title","*Change to:* %0","find","formatBlock","change","plugins","TrackChangesEditing","ELEMENT_HEADING_CUSTOM","format","ELEMENT_HEADING","checkChild","name","model","schema","heading","document","has","registerDescriptionCallback","markBlockFormat","enableCommand","match","editor","parent","commandParams","get","heading.options","_descriptionFactory","value","from","selection","isObject"];var Rs,Ss;Rs=vs,Ss=432,function(t){for(;--t;)Rs.push(Rs.shift())}(++Ss);const Is=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{afterInit(){const t=this[Is("0x6")],e=t.locale,n=t.config[Is("0x9")](Is("0xa"));if(!t[Is("0x16")][Is("0x1")]("HeadingEditing"))return;const o=t[Is("0x16")].get(Is("0x17"));o[Is("0x4")](Is("0x1f"),((e,n)=>{const r=n[Is("0xc")],s=Array[Is("0xd")](this.editor[Is("0x1d")][Is("0x0")][Is("0xe")].getSelectedBlocks()).filter((t=>{return e=t,n=r,(o=this[Is("0x6")][Is("0x1d")][Is("0x1e")])[Is("0x1b")](e[Is("0x7")],n)&&!o[Is("0xf")](e)&&e[Is("0x1c")]!=n;var e,n,o}));t.model[Is("0x15")]((()=>{for(const t of s)o[Is("0x3")](t,{commandName:Is("0x1f"),commandParams:[n],formatGroupId:Is("0x10")},fr(t))}))}));for(const t of n)"paragraph"!=t[Is("0x1d")]&&o[Is("0xb")].registerElementLabel(t[Is("0x1d")],(e=>{const n=Ns(t.model);return null!==n?r(e,n):s(e,t[Is("0x11")])}));function r(t,n){return Yo(e,Is("0x1a"),[t,n])}function s(t,n){return Yo(e,Is("0x18"),[t,n])}o[Is("0xb")][Is("0x2")]((t=>{const{type:o,data:i}=t;if(Is("0x14")==o&&i&&Is("0x1f")==i.commandName){const t=i[Is("0x8")][0].value,o=Ns(t);if(null!==o)return{type:Is("0x19"),content:Yo(e,Is("0x12"),r(1,o))};const x=n[Is("0x13")]((e=>e[Is("0x1d")]===t))[Is("0x11")];return{type:Is("0x19"),content:Yo(e,Is("0x12"),s(1,x))}}}))}}function Ns(t){const e=t[Is("0x5")](/^heading(\d+)$/);return e?e[1]:null}const ws=["commandName","color","plugins","editor","getLastMatchingPosition","format","isCollapsed","toLowerCase","highlight.options","commandParams","document","selection","TrackChangesEditing","has","push","FORMAT_HIGHLIGHT","getAttribute","title","*Set highlight:* %0","model","getFirstPosition","find","getRanges","_descriptionFactory","afterInit","get","value","item","config","highlight","change","locale","registerDescriptionCallback"];var Ms,Os;Ms=ws,Os=357,function(t){for(;--t;)Ms.push(Ms.shift())}(++Os);const Fs=function(t,e){return ws[t-=0]};class Ps extends t.Plugin{[Fs("0x1e")](){const t=this[Fs("0x9")];if(!t[Fs("0x8")][Fs("0x13")]("HighlightEditing"))return;const e=t.plugins[Fs("0x1f")](Fs("0x12"));e.enableCommand(Fs("0x2"),((n,o={})=>{const r=t[Fs("0x19")][Fs("0x10")][Fs("0x11")],s=r[Fs("0x16")](Fs("0x2"));let i=o[Fs("0x20")],x=[];if(r[Fs("0xc")]){const e=r[Fs("0x1a")]();if(!r.hasAttribute(Fs("0x2")))return void n(o);{const n=t=>t[Fs("0x0")].getAttribute(Fs("0x2"))===s,o=e[Fs("0xa")](n,{direction:"backward"}),r=e[Fs("0xa")](n);x=[t[Fs("0x19")].createRange(o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x1c")]())i?x[Fs("0x14")](e):x[Fs("0x14")](...mr(Fs("0x2"),e,t[Fs("0x19")]));t[Fs("0x19")][Fs("0x3")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fs("0x2"),commandParams:[{value:i}]})}))}));const n=t[Fs("0x4")];e[Fs("0x1d")][Fs("0x5")]((e=>{const{type:o,data:r}=e;if("formatInline"==o&&r&&Fs("0x2")==r[Fs("0x6")]){const e=n.t,o=r[Fs("0xf")][0][Fs("0x20")];if(o){const r=t[Fs("0x1")].get(Fs("0xe"))[Fs("0x1b")]((t=>t[Fs("0x19")]==o)),s=e(r[Fs("0x17")])[Fs("0xd")]();return{type:Fs("0xb"),content:Yo(n,Fs("0x18"),s),color:{value:r[Fs("0x7")],title:r[Fs("0x17")]}}}return{type:Fs("0xb"),content:Yo(n,"*Remove highlight*",Yo(n,Fs("0x15")))}}}))}}const Ds=["createEmptyElement","HorizontalLineEditing","createPositionAt","for","horizontalLine","locale","addClass","editor","afterInit","conversion","dataDowncast","_descriptionFactory","get","ELEMENT_HORIZONTAL_LINE","plugins","elementToStructure","TrackChangesEditing","high","has","createContainerElement","enableCommand","insert","ck-horizontal-line"];var Bs,js;Bs=Ds,js=498,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{[Us("0x10")](){const t=this[Us("0xf")];if(!t[Us("0x16")][Us("0x3")](Us("0x9")))return;t[Us("0x16")][Us("0x14")]("TrackChangesEditing")[Us("0x5")](Us("0xc"));const e=t[Us("0x16")][Us("0x14")](Us("0x1")),n=t[Us("0xd")];e[Us("0x13")].registerElementLabel("horizontalLine",(t=>Yo(n,Us("0x15"),t))),t[Us("0x11")][Us("0xb")](Us("0x12"))[Us("0x0")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Us("0x4")]("div"),r=e[Us("0x8")]("hr");return e[Us("0xe")](Us("0x7"),o),e[Us("0x6")](e[Us("0xa")](o,0),r),o},converterPriority:Us("0x2")})}}const Hs=["editing","document","model","registerElementLabel","locale","enableCommand","getSelectedElement","rawHtmlApi","afterInit","ELEMENT_HTML_EMBED","commandName","view","TrackChangesEditing","plugins","selection","change","value","HtmlEmbed","registerDescriptionCallback","editor","_descriptionFactory","htmlEmbed","getAttribute","*Change %0 content*","get","rawHtml","getCustomProperty","format","has","element"];var Vs,Ws;Vs=Hs,Ws=460,function(t){for(;--t;)Vs.push(Vs.shift())}(++Ws);const zs=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[zs("0x1c")](){const t=this[zs("0x9")];if(!t[zs("0x3")][zs("0x12")](zs("0x7")))return;const e=t.plugins.get(zs("0x2")),n=t[zs("0x18")],o=t[zs("0x14")][zs("0x1")][zs("0x15")][zs("0x4")];e[zs("0xa")][zs("0x17")](zs("0xf"),(t=>Yo(n,zs("0x1d"),t))),t[zs("0x3")][zs("0xe")](zs("0x2"))[zs("0x19")](zs("0xb"),((n,r)=>{const s=t[zs("0x16")],i=s.document[zs("0x4")];s[zs("0x5")]((()=>{const t=function(t){const e=t[zs("0x1a")]();return e&&e.is(zs("0x13"),zs("0xf"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t[zs("0xc")](zs("0x6"))||"";void 0!==r&&r!==s&&(e.markBlockFormat(t,{commandName:zs("0xb"),commandParams:[r]}),o[zs("0x1a")]()[zs("0x10")](zs("0x1b")).cancel())}))})),e[zs("0xa")][zs("0x8")]((t=>{const{data:e}=t;if(e&&zs("0xb")==e[zs("0x0")]){const t=Yo(n,zs("0x1d"));return{type:zs("0x11"),content:Yo(n,zs("0xd"),t)}}}))}}const qs=["toLowerCase","toNext","markInlineFormat","getFirstRange","getContainedElement","ImageUtils","toPrevious","formatBlock","change","Block image to inline image","getSuggestion","element","findIndex","registerDescriptionCallback","getAttribute","ImageUploadEditing","isOwn","getCaptionFromImageModelElement","commandParams","alt","ImageInlineEditing","subType","isInContent","_splitMarkerName","registerElementLabel","isIntersecting","schema","length","convertInlineImageToBlock","plugins","newRange","discardSuggestion","commandReversedParams","getSuggestionCallback","backward","editor","format","isBefore","filter","detach","model","isInlineImage","ImageBlockEditing","join","commands","*Remove image text alternative*","ImageResize","discard","insertImage","refresh","nodeBefore","title","value","forward","head","imageTypeInline","imageInline","afterInit","_findSuggestions","ImageEditing","uploadImage","insertion","imageTextAlternative","*Reset image width*","selection","ImageCaptionEditing","*Set image text alternative:* %0","ImageStyleEditing","name","author","ImageTextAlternativeEditing","nodeAfter","find","end","imageTypeBlock","imageStylePreApply","has","createRange","caption","ELEMENT_CAPTION","ImageCaptionUtils","markInsertion","isBlockImage","from","hasAttribute","type","imageCaption","ELEMENT_IMAGE","chain","markBlockFormat","getClosestSelectedImageElement","registerPostFixer","forEach","locale","start","suggestion","previous","side","_suggestionFactory","_descriptionFactory","deletion","removeObject","get","imageStylePostApply","document","imageStyle","convertBlockImageToInline","registerCustomCallback","newValue","resizeImage","getNearestSelectionRange","createRangeOn","commandName","FORMAT_SIDE_IMAGE","isCollapsed","formatInline","fromPosition","width","isEqual","markDeletion","imageBlock","next","Users","enableCommand","ELEMENT_INLINE_IMAGE","accept"];var Xs,$s;Xs=qs,$s=171,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Js=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Js("0xc")](){const t=this[Js("0x74")];if(!t[Js("0x6e")].has(Js("0xe")))return;const n=t.plugins[Js("0x39")]("TrackChangesEditing"),o=t.plugins[Js("0x39")](Js("0x56")),r={},s=t[Js("0x30")];if(n[Js("0x4e")](Js("0x3")),n[Js("0x36")][Js("0x69")](Js("0x4b"),(t=>Yo(s,Js("0x2a"),t))),n._descriptionFactory[Js("0x69")](Js("0xb"),(t=>Yo(s,Js("0x4f"),t))),n[Js("0x36")][Js("0x69")](Js("0x21"),(()=>Yo(s,Js("0x22")))),t[Js("0x6e")][Js("0x1f")](Js("0x60"))&&n.enableCommand(Js("0xf")),t[Js("0x6e")][Js("0x1f")](Js("0x7b"))&&t[Js("0x6e")][Js("0x1f")](Js("0x65"))&&(n[Js("0x4e")](Js("0xa"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model[Js("0x3b")][Js("0x13")]);t[Js("0x79")][Js("0x59")]((()=>{n[Js("0x2c")](s,{commandName:Js("0xa"),commandParams:[r]},[],Js("0x3d"))}))})),n.enableCommand(Js("0x1d"),((e,r)=>{t[Js("0x79")].change((s=>{let x=o[Js("0x2d")](t[Js("0x79")].document[Js("0x13")]),a=s.createRangeOn(x);const c=i.LivePosition[Js("0x47")](a[Js("0x31")],Js("0x57")),l=i.LivePosition[Js("0x47")](a.end,Js("0x52"));n.forceDefaultExecution((()=>e(r))),x=o[Js("0x2d")](t[Js("0x79")][Js("0x3b")][Js("0x13")]),a=s[Js("0x42")](x);const d=s[Js("0x20")](c,l);c[Js("0x78")](),l[Js("0x78")](),n.markBlockFormat(x,{commandName:Js("0xa"),commandParams:[]},[],Js("0x6d")),d[Js("0x31")][Js("0x76")](a.start)&&n.markInsertion(s[Js("0x20")](d.start,a[Js("0x31")]),"convertInlineImageToBlock"),a.end.isBefore(d[Js("0x1c")])&&n[Js("0x24")](s[Js("0x20")](a[Js("0x1c")],d[Js("0x1c")]),Js("0x6d"))}))})),n[Js("0x35")][Js("0x3e")](Js("0x58"),Js("0x6d"),Js("0x7c"),(()=>{})),n[Js("0x35")].registerCustomCallback(Js("0x58"),Js("0x6d"),"accept",(()=>{})),n[Js("0x35")][Js("0x3e")](Js("0x58"),Js("0x6d"),Js("0x2"),n[Js("0x35")][Js("0x72")]("formatBlock","",Js("0x50"))),n._suggestionFactory.registerCustomCallback(Js("0x10"),"convertInlineImageToBlock",Js("0x7c"),(()=>{})),n[Js("0x35")][Js("0x3e")](Js("0x10"),Js("0x6d"),Js("0x2"),(([e])=>{const o=n[Js("0x35")][Js("0x72")](Js("0x10"),"","discard");let r=e[Js("0x31")],s=e[Js("0x1c")];const i=t[Js("0x79")].schema[Js("0x41")](r,Js("0x73")),x=t[Js("0x79")][Js("0x6b")][Js("0x41")](s,Js("0x8"));i[Js("0x45")]&&(r=i[Js("0x31")]),x[Js("0x45")]&&(s=x.end),o([t[Js("0x79")][Js("0x20")](r,s)])})),n[Js("0x35")].registerCustomCallback(Js("0x58"),"convertInlineImageToBlock","chain",c),n[Js("0x35")][Js("0x3e")](Js("0x10"),"convertInlineImageToBlock",Js("0x2b"),c)),t[Js("0x6e")].has(Js("0x14"))&&(n[Js("0x4e")]("toggleImageCaption",((e,r)=>{const s=t[Js("0x6e")][Js("0x39")](Js("0x23"));let i=o[Js("0x2d")](t[Js("0x79")][Js("0x3b")][Js("0x13")]),x=s[Js("0x62")](i);t[Js("0x79")][Js("0x59")]((()=>{if(x)return void n[Js("0x4a")](t[Js("0x79")].createRangeOn(x));const a=o[Js("0x25")](i);e(r),i=o.getClosestSelectedImageElement(t[Js("0x79")][Js("0x3b")][Js("0x13")]),x=s.getCaptionFromImageModelElement(i),n[Js("0x24")](t[Js("0x79")][Js("0x42")](x),a?null:"imageCaption")}))})),n[Js("0x35")][Js("0x3e")](Js("0x10"),Js("0x29"),Js("0x2b"),c)),t[Js("0x6e")][Js("0x1f")](Js("0x16"))){n[Js("0x4e")]("imageStyle",((r,s)=>{const i=t[Js("0x6e")][Js("0x39")](Js("0x4d")).me,x=t[Js("0x7d")][Js("0x39")](Js("0x3c"));let a=o[Js("0x2d")](t[Js("0x79")].document[Js("0x13")]),c=t[Js("0x79")][Js("0x42")](a),l=x[Js("0x7")];if(l==s[Js("0x7")])return;const d={commandName:Js("0x3c"),commandParams:[s],formatGroupId:(0,e.uid)()};t.model[Js("0x59")]((()=>{if(n.getSuggestions().filter((t=>t[Js("0x67")]&&i==t[Js("0x18")]&&(Js("0x58")==t[Js("0x28")]||Js("0x46")==t[Js("0x28")])&&(Js("0x1e")==t[Js("0x66")]||Js("0x3a")==t[Js("0x66")])&&t[Js("0x54")]()[Js("0x49")](c)))[Js("0x2f")]((t=>n[Js("0x70")](t[Js("0x9")]))),a=o[Js("0x2d")](t[Js("0x79")][Js("0x3b")].selection),c=t[Js("0x79")].createRangeOn(a),x[Js("0x4")](),t.commands.get(Js("0xa"))[Js("0x4")](),t[Js("0x7d")][Js("0x39")](Js("0x1d"))[Js("0x4")](),l=x.value,l!=s.value)return o[Js("0x7a")](a)&&x.shouldConvertImageType(s[Js("0x7")],a)?(r(s),a=o[Js("0x2d")](t.model[Js("0x3b")][Js("0x13")]),void n[Js("0x2c")](a,{...d,commandReversedParams:[{value:l||null}]},[],Js("0x1e"))):void(o[Js("0x25")](a)?n.markBlockFormat(a,d,[],Js("0x3a")):n[Js("0x53")](c,d,"imageStylePostApply"))}))}));for(const e of t[Js("0x6e")][Js("0x39")](Js("0x16")).normalizedStyles)r[e[Js("0x17")]]=e[Js("0x6")][Js("0x51")]();n[Js("0x35")].registerCustomCallback(Js("0x58"),Js("0x1e"),Js("0x7c"),(()=>{})),n[Js("0x35")][Js("0x3e")](Js("0x58"),Js("0x3a"),Js("0x7c"),(()=>{})),n[Js("0x35")][Js("0x3e")](Js("0x46"),Js("0x3a"),Js("0x7c"),(()=>{})),n[Js("0x35")].registerCustomCallback("formatBlock",Js("0x1e"),Js("0x50"),(()=>{})),n[Js("0x35")][Js("0x3e")](Js("0x58"),Js("0x1e"),Js("0x2"),((t,e)=>{n[Js("0x35")].getSuggestionCallback(Js("0x58"),"","accept")(t,{commandName:e[Js("0x43")],commandParams:e[Js("0x71")]})})),n[Js("0x35")].registerCustomCallback(Js("0x58"),Js("0x1e"),Js("0x2b"),c)}const x=[{type:Js("0x58"),subType:"imageStylePreApply"},{type:Js("0x10"),subType:Js("0x29")},{type:"formatBlock",subType:Js("0x6d")},{type:Js("0x10"),subType:Js("0x6d")}];function a(t,e){const r=x.findIndex((({type:e,subType:n})=>t[Js("0x28")]==e&&t.subType==n)),s=x[Js("0x5d")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(r<0||s<0)return!1;const i=t.getFirstRange(),a=e[Js("0x54")]();if((0==r||1==r)&&2==s&&i[Js("0x6a")](a))return!0;if(2==r&&3==s){const t=n[Js("0xd")](i,Js("0x10"))[Js("0x77")]((({suggestion:t,meta:e})=>e[Js("0x61")]&&Js("0x6d")==t.subType));if(t.length>1&&a[Js("0x1c")].isEqual(i[Js("0x31")]))return!0;if(1==t[Js("0x6c")]&&(i.start[Js("0x49")](a[Js("0x1c")])||i[Js("0x1c")].isEqual(a[Js("0x31")])))return!0}if(3==r&&3==s&&i[Js("0x31")][Js("0x76")](a[Js("0x31")])){const t=i[Js("0x1c")][Js("0x1a")],e=a.start[Js("0x5")];return o[Js("0x25")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Js("0x3b")][Js("0x2e")]((()=>{let e=!1;const r=Array[Js("0x26")](t[Js("0x79")][Js("0x3b")].differ.getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Js("0x68")](t);if(Js("0x32")==r&&n.hasSuggestion(a)){if("formatBlock"==i&&(Js("0x1e")==x||"imageStylePostApply"==x)){const t=n[Js("0x5b")](a);if(s[Js("0x6f")]){const r=t[Js("0x54")]()[Js("0x55")]();if(o[Js("0x25")](r))continue;n.discardSuggestion(t),e=!0}}if(Js("0x10")==i&&Js("0x29")==x&&!s.newRange){const t=n[Js("0x5b")](a);t[Js("0x4c")]&&t[Js("0x4c")].isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Js("0x6e")][Js("0x1f")](Js("0x1"))&&n[Js("0x4e")](Js("0x40"),((e,r)=>{const s=o[Js("0x2d")](t[Js("0x79")].document[Js("0x13")]);s[Js("0x5f")]("width")!=r[Js("0x48")]&&t.model[Js("0x59")]((()=>{n[Js("0x2c")](s,{commandName:Js("0x40"),commandParams:[r]})}))})),t.plugins[Js("0x1f")](Js("0x19"))&&n[Js("0x4e")](Js("0x11"),((e,r)=>{const s=o[Js("0x2d")](t[Js("0x79")].document[Js("0x13")]);(s[Js("0x27")](Js("0x64"))?s[Js("0x5f")]("alt"):"")!=r[Js("0x3f")]&&t.model[Js("0x59")]((()=>{n[Js("0x2c")](s,{commandName:Js("0x11"),commandParams:[r]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Js("0x1b")]((({type:e,subType:n})=>t[Js("0x28")]==e&&t[Js("0x66")]==n)))return t[Js("0x33")]?{}:void 0})),n._descriptionFactory[Js("0x5e")]((t=>{if(Js("0x10")==t.type||Js("0x37")==t[Js("0x28")]){const e=t[Js("0x55")]();if(e&&e.is(Js("0x5c"),"caption"))return{type:Js("0x10")==t[Js("0x28")]?"addObject":Js("0x38"),element:e,quantity:1}}})),n._descriptionFactory[Js("0x5e")]((t=>Js("0x58")==t.type&&Js("0x6d")==t[Js("0x66")]?{type:Js("0x75"),content:"Inline image to block image"}:Js("0x58")==t[Js("0x28")]&&"convertBlockImageToInline"==t.subType?{type:Js("0x75"),content:Js("0x5a")}:void 0)),n[Js("0x36")][Js("0x5e")]((t=>{const{data:e}=t;if(e){if(Js("0x3c")==e[Js("0x43")]){const t=e[Js("0x63")][0].value;return n=Js("0x34")===t?Yo(s,Js("0x44")):r[t]||t,{type:Js("0x75"),content:Yo(s,"*Format:* %0",n)}}if(Js("0x11")==e[Js("0x43")]){const t=e[Js("0x63")][0].newValue;return t?{type:"format",content:Yo(s,Js("0x15"),'"'+t+'"')}:{type:Js("0x75"),content:Yo(s,Js("0x0"))}}if(Js("0x40")==e[Js("0x43")]){const t=e[Js("0x63")][0][Js("0x48")];return t?{type:Js("0x75"),content:Yo(s,"*Set image width:* %0",t)}:{type:"format",content:Yo(s,Js("0x12"))}}}var n}))}}const Zs=["locale","afterInit","getAttribute","editor","model","handleSuggestionDescription","*Format:* replace image URL","getSuggestionCallback","TrackChangesEditing","handleReplaceImageCommand","_suggestionFactory","has","get","replaceImageSource","getContainedElement","commandName","plugins","getSuggestions","selection","data","registerDescriptionCallback","_descriptionFactory","registerCustomCallback","markBlockFormat","source","discard","src","ImageEditing"];var Ys,ti;Ys=Zs,ti=480,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{[ei("0x19")](){if(!this.editor[ei("0xc")][ei("0x7")](ei("0x17")))return;const t=this[ei("0x1b")][ei("0xc")][ei("0x8")](ei("0x4"));t.enableCommand("replaceImageSource",((t,e)=>this[ei("0x5")](t,e))),t[ei("0x6")][ei("0x12")]("formatBlock",ei("0x9"),"accept",t[ei("0x6")][ei("0x3")]("formatBlock",null,ei("0x15"))),t._suggestionFactory[ei("0x12")]("formatBlock","replaceImageSource",ei("0x15"),t[ei("0x6")][ei("0x3")]("formatBlock",null,"accept")),t[ei("0x11")][ei("0x10")]((t=>this[ei("0x1")](t)))}[ei("0x5")](t,e){const n=this.editor.plugins.get(ei("0x4")),o=this[ei("0x1b")].model.document[ei("0xe")].getSelectedElement();this[ei("0x1b")][ei("0x0")].change((()=>{let r=o[ei("0x1a")](ei("0x16"));const s=this[ei("0x1b")][ei("0xc")].get("Users").me;for(const t of n[ei("0xd")]({skipNotAttached:!0})){const e=t[ei("0xa")]();if(ei("0x9")===t.subType&&e===o){t.author!==s&&t[ei("0x15")](),r=t[ei("0xf")].commandParams[0][ei("0x14")];break}}t(e),n[ei("0x13")](o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],ei("0x9"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0x9")===e[ei("0xb")]){const t=ei("0x2");return{type:"format",content:Yo(this[ei("0x1b")][ei("0x18")],t)}}}}const oi=["afterInit","_handleImportedData","importWord","collaboration_features","_trackChangesValueDuringImport","high","trackChanges","dataInsert","TrackChangesEditing","forEach","plugins","_trackChangesExecuted","_setSuggestionData","get","Users","track_changes","commands","execute","bind","listenTo","value","editor","enableCommand"];var ri,si;ri=oi,si=401,function(t){for(;--t;)ri.push(ri.shift())}(++si);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x1")]=!1}[ii("0xd")](){const t=this[ii("0xb")],e=t[ii("0x6")].get("importWord"),n=t[ii("0x6")][ii("0x3")]("trackChanges");e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0x11")]=n[ii("0xa")],e[ii("0x10")][ii("0x5")]=!this[ii("0x11")]}),{priority:ii("0x12")}),this[ii("0x9")](e,ii("0x14"),this[ii("0xe")][ii("0x8")](this)),this[ii("0x9")](e,"dataInsert",(()=>{this[ii("0x1")]&&(n[ii("0x7")](),this[ii("0x1")]=!1)}),{priority:"lowest"}),t[ii("0x0")][ii("0x3")]("TrackChangesEditing")[ii("0xc")](ii("0xf")))}[ii("0xe")](t,e){const{suggestions:n}=e,o=this[ii("0xb")][ii("0x6")][ii("0x3")](ii("0x13")),r=o.value;this._trackChangesValueDuringImport!==r&&(o[ii("0x7")](),this[ii("0x1")]=!0),n&&n[ii("0x16")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor[ii("0x0")].get(ii("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this[ii("0xb")][ii("0x0")].get(ii("0x15"))[ii("0x2")](r)}))}}const ai=["registerDescriptionCallback","TrackChangesEditing","commandName","get","markBlockFormat","model","getSelectedBlocks","outdent","IndentEditing","blockIndent","editor","format","document","enableCommand","schema","afterInit","IndentBlock","checkAttribute","indentBlock","getItems","from","plugins","*Outdent:* %0","indent","has","selection","outdentBlock"];var ci,li;ci=ai,li=172,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x5")](){const t=this[di("0x0")],e=t[di("0xb")][di("0x14")](di("0x12"));t[di("0xb")][di("0xe")](di("0x19"))&&(e[di("0x3")](di("0xd")),e[di("0x3")](di("0x18")));const n=t.locale;if(t[di("0xb")][di("0xe")](di("0x6"))){for(const n of["indentBlock",di("0x10")])e[di("0x3")](n,(()=>{const o=Array[di("0xa")](this[di("0x0")].model[di("0x2")][di("0xf")][di("0x17")]()).filter((t=>this[di("0x0")][di("0x16")][di("0x4")][di("0x7")](t,di("0x1a"))));t[di("0x16")].change((()=>{for(const t of o)e[di("0x15")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x8")})}))}));e._descriptionFactory[di("0x11")]((t=>{const{data:o}=t;if(!o)return;if(di("0x8")!=o[di("0x13")]&&"outdentBlock"!=o.commandName)return;const r=t[di("0x9")]()[0],s=e._descriptionFactory.getItemLabel(r);return di("0x8")==o[di("0x13")]?{type:di("0x1"),content:Yo(n,"*Indent:* %0",s)}:di("0x10")==o[di("0x13")]?{type:di("0x1"),content:Yo(n,di("0xc"),s)}:void 0}))}}}var gi,mi,fi=["requires","get","init","enableCommand","TrackChangesEditing"];gi=fi,mi=191,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("0x4")](){return[zr.Input]}[hi("0x1")](){this.editor.plugins[hi("0x0")](hi("0x3"))[hi("0x2")]("input")}}const bi=["*Set link:* %0","getAttribute","unlink","format","document","linkHref","markInlineFormat","link","_descriptionFactory","editor","model","getRanges","change","isCollapsed","locale","from","get","commandName","enableCommand","selection","plugins","*Remove link*","TrackChangesEditing","registerDescriptionCallback","getFirstPosition"];var Ei,_i;Ei=bi,_i=257,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[Ti("0x2")];if(!t[Ti("0xd")].has("LinkEditing"))return;const e=t[Ti("0xd")][Ti("0x9")](Ti("0xf"));e[Ti("0xb")](Ti("0x0"),((n,o)=>{const r=t[Ti("0x3")][Ti("0x16")][Ti("0xc")];let s=[];if(r[Ti("0x6")]){if(!r.hasAttribute("linkHref"))return void n(o);{const e=(0,zr.findAttributeRange)(r[Ti("0x11")](),Ti("0x17"),r[Ti("0x13")]("linkHref"),t[Ti("0x3")]);s=[e]}}else s=Array[Ti("0x8")](r[Ti("0x4")]());t[Ti("0x3")][Ti("0x5")]((()=>{for(const t of s)e.markInlineFormat(t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e[Ti("0xb")](Ti("0x14"),(()=>{const n=this[Ti("0x2")].model,o=n[Ti("0x16")].selection;n[Ti("0x5")]((()=>{let n=[];n=o.isCollapsed?[(0,zr.findAttributeRange)(o.getFirstPosition(),Ti("0x17"),o[Ti("0x13")](Ti("0x17")),t[Ti("0x3")])]:mr(Ti("0x17"),o.getFirstRange(),t.model);for(const t of n)e[Ti("0x18")](t,{commandName:Ti("0x14"),commandParams:[]})}))})),e[Ti("0x1")][Ti("0x10")]((e=>{const{data:n}=e,o=t[Ti("0x7")];if(n){if(Ti("0x0")==n.commandName){const t=n.commandParams[0];return{type:"format",content:Yo(o,Ti("0x12"),'"'+t+'"')}}return Ti("0x14")==n[Ti("0xa")]?{type:Ti("0x15"),content:Yo(o,Ti("0xe"))}:void 0}}))}}const yi=["ELEMENT_BULLETED_LIST","commands","filter","*Change to:* %0","get","getAttribute","findIndex","add","model","execute","ELEMENT_TODO_LIST","registerElementLabel","TodoListEditing","commandParams","locale","nextSibling","from","paragraph","name","bulletedList","selection","indentList","push","ListEditing","slice","blockName","length","commandName","element","listIndent","value","outdentList","todoList","_descriptionFactory","ELEMENT_NUMBERED_LIST","afterInit","change","previousSibling","*Indent:* %0","before","getSelectedBlocks","registerDescriptionCallback","todo","schema","ELEMENT_LIST_ITEM","plugins","listType","end","checkTodoList","enableCommand","_selectedElements","markBlockFormat","has","createPositionAt","TrackChangesEditing","document","format","forceValue","listItem","createRange","numberedList"];var ki,Ai;ki=yi,Ai=199,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x13")](){const t=this.editor,e=t[vi("0x3b")];if(!t.plugins[vi("0x24")](vi("0x7")))return;const n=t.plugins[vi("0x31")](vi("0x26")),o=t[vi("0x1d")][vi("0x24")](vi("0x39"));function r(e){return()=>{const o=t[vi("0x35")][vi("0x27")][vi("0x4")],r=t.commands[vi("0x31")](e);if(r[vi("0xe")])return void t[vi("0x36")](vi("0x1"),{});const s=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x0")](t)[vi("0x2f")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x2a"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(vi("0xc"),"listItem")||t[vi("0x32")](vi("0x1e"))!=e));const r=new Set;for(const t of o)t.is(vi("0xc"),vi("0x2a"))?r.add(Si(t)):r.add(t);return Array.from(r)}(o.getSelectedBlocks(),s,t[vi("0x35")][vi("0x1b")]);t[vi("0x35")][vi("0x14")]((()=>{for(const t of i)n[vi("0x23")](t,{commandName:e,commandParams:[{forceValue:!r[vi("0xe")]}],formatGroupId:vi("0x9")},Ii(t))}))}}function s(e){return()=>{const o=function(t){let e=Array[vi("0x0")](t);const n=e[vi("0x33")]((t=>vi("0x2a")!=t[vi("0x2")]));return n>-1&&(e=e[vi("0x8")](0,n)),e}(t[vi("0x35")][vi("0x27")][vi("0x4")][vi("0x18")]()),r=t.model[vi("0x2b")](t[vi("0x35")][vi("0x25")](o[0],vi("0x17")),t.model[vi("0x25")](o[o[vi("0xa")]-1],vi("0x1f")));t[vi("0x35")][vi("0x14")]((()=>{n[vi("0x23")](r,{commandName:e,commandParams:[],formatGroupId:vi("0xd")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3c")];for(;t&&t[vi("0x32")]("listIndent")>n[vi("0x32")](vi("0xd"));)e[vi("0x34")](t),t=t[vi("0x3c")]}return Array.from(e)}(o))}))}}n[vi("0x21")]("numberedList",r(vi("0x2c"))),n.enableCommand(vi("0x3"),r(vi("0x3"))),o&&n.enableCommand(vi("0x10"),r(vi("0x10"))),n[vi("0x21")](vi("0x5"),s(vi("0x5"))),n[vi("0x21")](vi("0xf"),s(vi("0xf"))),o&&n[vi("0x21")]("checkTodoList",(()=>{const e=t[vi("0x2e")][vi("0x31")](vi("0x20")),o=Array[vi("0x0")](e[vi("0x22")]);o.filter((t=>t[vi("0x32")]("todoListChecked")!=e.value)),t[vi("0x35")].change((()=>{for(const t of o)n[vi("0x23")](t,{commandName:vi("0x20"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x11")][vi("0x38")](vi("0x2a"),(t=>Yo(e,vi("0x1c"),t))),n[vi("0x11")][vi("0x19")]((t=>{const{data:n}=t;if(n){if(vi("0x2c")==n[vi("0xb")]||vi("0x3")==n.commandName||vi("0x10")==n[vi("0xb")])switch(n.commandName.replace("List","")){case"bulleted":return o(Yo(e,vi("0x2d")));case"numbered":return o(Yo(e,vi("0x12")));case vi("0x1a"):return o(Yo(e,vi("0x37")))}if(vi("0x5")==n[vi("0xb")])return{type:vi("0x28"),content:Yo(e,vi("0x16"),Yo(e,vi("0x1c")))};if(vi("0xf")==n.commandName)return{type:vi("0x28"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1c")))};if("checkTodoList"==n[vi("0xb")])return n[vi("0x3a")][0][vi("0x29")]?{type:vi("0x28"),content:Yo(e,"*Check item*")}:{type:vi("0x28"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x28"),content:Yo(e,vi("0x30"),t)}}}))}}function Si(t){const e=t[vi("0x32")](vi("0xd"));if(0==e)return t;let n=t;for(;t[vi("0x15")]&&t.previousSibling.is(vi("0xc"),vi("0x2a"));){const o=t.previousSibling[vi("0x32")]("listIndent");if(o==e)n=t[vi("0x15")];else if(o<e)break;t=t[vi("0x15")]}return n}function Ii(t){const e=[];if(t.is(vi("0xc"),vi("0x2a"))&&t[vi("0x32")]("listIndent")>0){let n=t[vi("0x3c")];for(;n&&"listItem"==n[vi("0x2")]&&n.getAttribute("listIndent")==t[vi("0x32")](vi("0xd"));)e[vi("0x6")](n),n=n[vi("0x3c")]}return e}const Li=["_getSuggestionBlocks","from","_getTranslationKeyForListStyle","registerDescriptionCallback","commandName","length","ELEMENT_","has","map","document","listStyle","*Format:* set order to reversed","type","_descriptionFactory","*Change to:* %0","getFirstPosition","parent","listReversed","commandParams","reversed","listItem","handleListReversedCommand","getListTypeFromListStyleType","startIndex","backward","before","afterInit","getSiblingNodes","selection","handleListStyleCommand","_getSuggestionBlocksForListStyle","listStart","toUpperCase","listType","flat","change","list.properties","plugins","element","ListPropertiesEditing","getLastPosition","numbered","replace","createRange","bind","handleListStartCommand","*Format:* set order to regular","ListUtils","editor","*Format:* set start index to %0","getSelectedBlocks","get","markMultiRangeBlockFormat","config","createPositionAt","model","filter","TrackChangesEditing","getAttribute","format","enableCommand","forward","locale","handleDescriptions","push"];var Ni,wi;Ni=Li,wi=142,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0xe")](){if(!this.editor[Mi("0x19")][Mi("0x3c")](Mi("0x1b")))return;const t=this.editor[Mi("0x29")][Mi("0x27")](Mi("0x18")),e=this[Mi("0x24")][Mi("0x19")][Mi("0x27")](Mi("0x2d"));t.styles&&e.enableCommand(Mi("0x3f"),this[Mi("0x11")].bind(this)),t[Mi("0x7")]&&e[Mi("0x30")](Mi("0x5"),this.handleListReversedCommand[Mi("0x20")](this)),t[Mi("0xb")]&&e[Mi("0x30")](Mi("0x13"),this[Mi("0x21")][Mi("0x20")](this)),e[Mi("0x1")][Mi("0x38")](this[Mi("0x33")][Mi("0x20")](this))}[Mi("0x11")](t,e={}){const n=this.editor[Mi("0x19")].get(Mi("0x2d")),o=this[Mi("0x12")]();this[Mi("0x24")][Mi("0x2b")][Mi("0x17")]((()=>{n[Mi("0x28")](o,{commandName:Mi("0x3f"),commandParams:[{type:e[Mi("0x0")]}],formatGroupId:"listStyle"})}))}[Mi("0x9")](t,e={}){const n=this.editor[Mi("0x19")].get(Mi("0x2d")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1a"),Mi("0x8"))&&Mi("0x1d")===t.getAttribute(Mi("0x15"))));if(o[Mi("0x3a")]<1)return;const r=o[Mi("0x3d")]((t=>this[Mi("0x24")].model[Mi("0x1f")](this[Mi("0x24")][Mi("0x2b")][Mi("0x2a")](t,Mi("0xd")),this.editor.model[Mi("0x2a")](t,0))));this[Mi("0x24")][Mi("0x2b")][Mi("0x17")]((()=>{n[Mi("0x28")](r,{commandName:Mi("0x5"),commandParams:[{reversed:e.reversed}],formatGroupId:Mi("0x5")})}))}[Mi("0x21")](t,e={}){const n=this[Mi("0x24")][Mi("0x19")][Mi("0x27")](Mi("0x2d")),o=this[Mi("0x35")]((t=>t.is(Mi("0x1a"),Mi("0x8"))&&Mi("0x1d")===t[Mi("0x2e")]("listType")));if(o[Mi("0x3a")]<1)return;const r=o[Mi("0x3d")]((t=>this[Mi("0x24")][Mi("0x2b")].createRange(this[Mi("0x24")][Mi("0x2b")].createPositionAt(t,Mi("0xd")),this[Mi("0x24")][Mi("0x2b")][Mi("0x2a")](t,0))));this[Mi("0x24")][Mi("0x2b")][Mi("0x17")]((()=>{n[Mi("0x28")](r,{commandName:Mi("0x13"),commandParams:[{startIndex:e[Mi("0xb")]}],formatGroupId:Mi("0x13")})}))}[Mi("0x33")](t){const e=this[Mi("0x24")][Mi("0x32")],{data:n}=t;if(!n)return;let o,r;switch(n[Mi("0x39")]){case Mi("0x3f"):o=Mi("0x2"),r={type:Mi("0x2f"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Mi("0x6")][0][Mi("0x0")])))};break;case Mi("0x5"):o=n[Mi("0x6")][0].reversed?Mi("0x40"):Mi("0x22"),r={type:Mi("0x2f"),content:Yo(e,o)};break;case Mi("0x13"):o=Mi("0x25"),r={type:Mi("0x2f"),content:Yo(e,o,n[Mi("0x6")][0].startIndex)}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Mi("0x24")].plugins[Mi("0x27")](Mi("0x23"));let s=Array[Mi("0x36")](this[Mi("0x24")][Mi("0x2b")][Mi("0x3e")][Mi("0x10")][Mi("0x26")]());return(null===(t=s[0])||void 0===t?void 0:t.is(Mi("0x1a"),"listItem"))&&s.unshift(...r.getSiblingNodes(this[Mi("0x24")][Mi("0x2b")][Mi("0x3e")].selection[Mi("0x3")](),Mi("0xc"))),(null===(e=s[s[Mi("0x3a")]-1])||void 0===e?void 0:e.is(Mi("0x1a"),"listItem"))&&s[Mi("0x34")](...r.getSiblingNodes(this[Mi("0x24")][Mi("0x2b")][Mi("0x3e")].selection[Mi("0x1c")](),"forward")),s=[...new Set(s)],(null===(o=null===(n=this[Mi("0x24")][Mi("0x2b")].document.selection[Mi("0x3")]())||void 0===n?void 0:n[Mi("0x4")])||void 0===o?void 0:o.is(Mi("0x1a"),Mi("0x8")))&&(s=s[Mi("0x2c")]((t=>t.is(Mi("0x1a"),Mi("0x8"))))),s}[Mi("0x35")](t){const e=this[Mi("0x24")][Mi("0x19")].get(Mi("0x23"));let n=Array[Mi("0x36")](this.editor.model.document[Mi("0x10")].getSelectedBlocks())[Mi("0x2c")](t)[Mi("0x3d")]((t=>{const n=this[Mi("0x24")][Mi("0x2b")][Mi("0x2a")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[Mi("0xf")](n,Mi("0x31"))]}))[Mi("0x16")]();return n=[...new Set(n)],n}[Mi("0x37")](t){return Mi("0x3b")+this[Mi("0x24")].plugins.get(Mi("0x23"))[Mi("0xa")](t).toUpperCase()+"_LIST_"+t[Mi("0x14")]()[Mi("0x1e")](/-/g,"_")}}const Fi=["downcastDispatcher","plugins","editor","TrackChangesEditing","registerElementLabel","_descriptionFactory","ELEMENT_MEDIA","options","afterInit","attribute:url:media","MediaEmbedEditing","showSuggestionHighlights","conversion","enableCommand","for","high"];var Pi,Di;Pi=Fi,Di=177,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x7")](){const t=this[Bi("0x1")];if(!t[Bi("0x0")].has(Bi("0x9")))return;const e=t[Bi("0x0")].get(Bi("0x2")),n=t.locale;e[Bi("0xc")]("mediaEmbed"),e[Bi("0x4")][Bi("0x3")]("media",(t=>Yo(n,Bi("0x5"),t))),t[Bi("0xb")][Bi("0xd")]("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement("div")},converterPriority:Bi("0xe")}),t.data[Bi("0xf")].on(Bi("0x8"),((t,e,n)=>{n[Bi("0x6")][Bi("0xa")]&&t.stop()}),{priority:Bi("0xe")})}}const Ui=["plugins","get","afterInit","editor","MentionEditing","has","TrackChangesEditing","mention"];var Gi,Hi;Gi=Ui,Hi=226,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Vi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[Vi("0x0")](){const t=this[Vi("0x1")];t[Vi("0x6")][Vi("0x3")](Vi("0x2"))&&t.plugins[Vi("0x7")](Vi("0x4")).enableCommand(Vi("0x5"))}}const zi=["has","locale","get","TrackChangesEditing","ELEMENT_PAGE_BREAK","enableCommand","editor","pageBreak","plugins","_descriptionFactory","afterInit"];var Ki,qi;Ki=zi,qi=201,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x3")];if(!t.plugins[Xi("0x8")]("PageBreakEditing"))return;t[Xi("0x5")][Xi("0xa")](Xi("0x0"))[Xi("0x2")](Xi("0x4"));const e=t.plugins[Xi("0xa")]("TrackChangesEditing"),n=t[Xi("0x9")];e[Xi("0x6")].registerElementLabel(Xi("0x4"),(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["get","markerName","showSuggestionHighlights","filter","getSelectedBlocks","nodeAfter","createUIElement","options","editor","blockName","registerDescriptionCallback","parent","toViewPosition","change","isBlock","activeMarkers","isLimit","Paragraph","format","enableCommand","model","$text","ck-suggestion-marker--active","afterInit","consume","*Change to:* %0","addClass","commandName","_descriptionFactory","ck-suggestion-marker-split","checkChild","has","getItemLabel","writer","markerRange","*Insert:* %0","markBlockFormat","getFirstRange","TrackChangesEditing","document","downcastDispatcher","end","locale","insertParagraph","isTouching","name","includes","registerElementLabel","data","selection","paragraph","highest","type","plugins","schema","editing"];var Qi,Zi;Qi=Ji,Zi=444,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1b")](){const t=this[Yi("0xc")];if(!t[Yi("0x1")][Yi("0x23")](Yi("0x15")))return;const e=t[Yi("0x2e")],n=t[Yi("0x1")].get(Yi("0x2a"));n[Yi("0x20")][Yi("0x33")](Yi("0x36"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x17")](Yi("0x36"),((e,o={})=>{const r=t[Yi("0x18")][Yi("0x2b")],s=o[Yi("0x35")]||r[Yi("0x35")],i=Array.from(s[Yi("0x8")]())[Yi("0x7")]((t=>{return e=t,(n=this[Yi("0xc")][Yi("0x18")][Yi("0x2")])[Yi("0x22")](e[Yi("0xf")],"paragraph")&&!n.isObject(e)&&Yi("0x36")!=e.name;var e,n}));t[Yi("0x18")][Yi("0x11")]((()=>{for(const t of i)n[Yi("0x28")](t,{commandName:Yi("0x36"),commandParams:[],formatGroupId:Yi("0xd")},fr(t))}))})),n[Yi("0x20")][Yi("0xe")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x1f")])return{type:Yi("0x16"),content:Yo(e,Yi("0x1d"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x2f")),t[Yi("0x3")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x37")}),t[Yi("0x34")][Yi("0x2c")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0xb")][Yi("0x6")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x20")];o[Yi("0xe")]((n=>{if("insertion"!==n[Yi("0x0")])return;const{start:r,end:s}=n[Yi("0x29")]();if(!r[Yi("0x30")](s)||!r[Yi("0x9")])return;const i=t[Yi("0x18")][Yi("0x2")],x=r.nodeAfter;return i[Yi("0x12")](x)&&!i[Yi("0x14")](x)&&i[Yi("0x22")](x,Yi("0x19"))?{type:"insertion",content:Yo(e,Yi("0x27"),o[Yi("0x24")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x1")][Yi("0x4")]("TrackChangesEditing"),i=o[Yi("0x26")].start,x=o[Yi("0x26")][Yi("0x2d")],a=t[Yi("0x18")][Yi("0x2")];if(!i[Yi("0x30")](x)||!i[Yi("0x9")])return;const c=i[Yi("0x9")];if(a.isBlock(c)&&!a.isLimit(c)&&a[Yi("0x22")](c,"$text")){if(!r.consumable[Yi("0x1c")](o.markerRange,n[Yi("0x31")]))return;const t=r[Yi("0x25")][Yi("0xa")]("span",{class:Yi("0x21")}),i=r.mapper[Yi("0x10")](x);e&&s[Yi("0x13")][Yi("0x32")](o[Yi("0x5")])&&r[Yi("0x25")][Yi("0x1e")](Yi("0x1a"),t),r.writer.insert(i,t),r.mapper.bindElementToMarker(t,o[Yi("0x5")])}}}const nx=["commandName","TrackChangesEditing","from","document","registerDescriptionCallback","RemoveFormatEditing","markInlineFormat","*Remove all formatting*","removeFormat","afterInit","get","getAttributeProperties","editor","enableCommand","getItems","getAttributes","plugins","model","selection"];var ox,rx;ox=nx,rx=283,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[sx("0xb")](){const t=this[sx("0xe")];if(!t[sx("0x12")].has(sx("0x7")))return;const e=t[sx("0x12")][sx("0xc")](sx("0x3"));e[sx("0xf")](sx("0xa"),(n=>{const o=t.model[sx("0x5")][sx("0x1")];o.isCollapsed?n():t[sx("0x0")].change((()=>{const n=Array[sx("0x4")](o.getRanges());for(const o of n)for(const n of o[sx("0x10")]())xx(n,t[sx("0x0")].schema)&&e[sx("0x8")](t[sx("0x0")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory[sx("0x6")]((e=>{const{data:n}=e;if(n&&sx("0xa")==n[sx("0x2")])return{type:"format",content:Yo(t.locale,sx("0x9"))}}))}}function xx(t,e){for(const[n]of t[sx("0x11")]()){const t=e[sx("0xd")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["TrackChangesEditing","discardAllSuggestions","get","has","goToNextRestrictedEditingException","discardSuggestion","RestrictedEditingModeEditing","enableCommand","acceptAllSuggestions","discardSelectedSuggestions","plugins","afterInit"];var cx,lx;cx=ax,lx=209,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.plugins[dx("0xa")](dx("0x1")))return;const e=t[dx("0x5")][dx("0x9")](dx("0x7"));e[dx("0x2")]("goToPreviousRestrictedEditingException"),e[dx("0x2")](dx("0xb"));const n=t[dx("0x5")][dx("0x9")](dx("0x1"));n.enableCommand("trackChanges"),n[dx("0x2")]("acceptSuggestion"),n[dx("0x2")](dx("0x0")),n[dx("0x2")](dx("0x3")),n.enableCommand(dx("0x8")),n[dx("0x2")]("acceptSelectedSuggestions"),n.enableCommand(dx("0x4"))}}const gx=["locale","high","name","mapper","activeMarkers","deletion","merge","writer","split","addMarker:suggestion","options","shiftEnter","bindElementToMarker","_descriptionFactory","init","model","markerRange","TrackChangesEditing","requires","createUIElement","addMarker:suggestion:deletion","element","consumable","createPositionBefore","plugins","includes","ELEMENT_LINE_BREAK","ck-suggestion-marker-","editing","markerName","editor","data","enableCommand","downcastDispatcher"];var mx,fx;mx=gx,fx=223,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("0x21")](){return[ns.ShiftEnter]}[hx("0x1d")](){const t=this[hx("0xb")],e=t[hx("0x5")].get(hx("0x20"));e[hx("0xd")](hx("0x1a")),t[hx("0x9")].downcastDispatcher.on("addMarker:suggestion:insertion",bx(t),{priority:"high"}),t[hx("0x9")][hx("0xe")].on(hx("0x1"),bx(t),{priority:hx("0x10")}),t[hx("0xc")][hx("0xe")].on(hx("0x18"),((e,n,o)=>{o[hx("0x19")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x1c")].registerElementLabel("softBreak",(e=>Yo(t[hx("0xf")],hx("0x7"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins.get(hx("0x20"));if(!r[hx("0x3")].test(o.markerRange,n[hx("0x11")]))return;const i=t[hx("0x1e")];for(const t of o[hx("0x1f")].getItems()){if(!t.is(hx("0x2"),"softBreak"))continue;const n=hx("0x14")==o[hx("0xa")][hx("0x17")](":")[1]?hx("0x15"):hx("0x17"),x=r[hx("0x16")][hx("0x0")]("span",{class:hx("0x8")+n}),a=r[hx("0x12")].toViewPosition(i[hx("0x4")](t));e&&s[hx("0x13")][hx("0x6")](o[hx("0xa")])&&r[hx("0x16")].addClass("ck-suggestion-marker--active",x),r[hx("0x16")].insert(a,x),r.mapper[hx("0x1b")](x,o[hx("0xa")])}}}const Ex=["commandParams","editor","plugins","registerDescriptionCallback","restrictedEditingException","commands","markInlineFormat","has","TrackChangesEditing","forceValue","get","from","value","document","StandardEditingModeEditing","selection","model","_descriptionFactory","format","getRanges","enableCommand","isCollapsed","FORMAT_RESTRICTED_DISABLED","commandName","FORMAT_RESTRICTED_ENABLED","locale","afterInit"];var _x,Tx;_x=Ex,Tx=496,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("0x12")],e=t[Cx("0x6")],n=t[Cx("0xf")];if(!t[Cx("0x13")][Cx("0x18")](Cx("0x4")))return;const o=t[Cx("0x13")][Cx("0x0")](Cx("0x19")),r=Cx("0x15"),s=t[Cx("0x16")].get(r);o[Cx("0xa")](r,((t,n={})=>{const i=e[Cx("0x3")][Cx("0x5")];if(i[Cx("0xb")])return void t(n);const x=void 0!==n.forceValue?n[Cx("0x1a")]:!s[Cx("0x2")];e.change((()=>{const t=Array[Cx("0x1")](i[Cx("0x9")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[Cx("0x17")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x7")][Cx("0x14")]((t=>{const{data:e}=t;if(e&&e[Cx("0xd")]==r)return e[Cx("0x11")][0][Cx("0x1a")]?{type:Cx("0x8"),content:Yo(n,Cx("0xe"))}:{type:"format",content:Yo(n,Cx("0xc"))}}))}}const kx=["isCollapsed","createRangeOn","document","StyleUtils","markInlineFormat","style","getAttribute","commandParams","includes","element","plugins","get","format","_descriptionFactory","enableCommand","Style","commands","afterInit","getItems","inline","editor","TrackChangesEditing","getAncestors","every","styleName","commandName","change","normalizeConfig","toLowerCase","getDefinitionsForView","has","config","name","*Format:* %0","_getStyleDefinition","DataSchema","enabledStyles","block","from","find","style:","value","model","registerDescriptionCallback","markBlockFormat","style.definitions","forceValue","classes","push","isBlock","_getRangesWithClasses","add"];var Ax,vx;Ax=kx,vx=297,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x20")](){const t=this[Rx("0x23")];if(!t[Rx("0x19")][Rx("0x2d")](Rx("0x1e")))return;const e=t[Rx("0x1f")][Rx("0x1a")](Rx("0x14")),n=t[Rx("0x19")][Rx("0x1a")](Rx("0x24")),o=t.locale,r=t[Rx("0x19")][Rx("0x1a")](Rx("0x32")),s=t[Rx("0x19")][Rx("0x1a")](Rx("0x12"))[Rx("0x2a")](r,t[Rx("0x2e")].get(Rx("0x8")));n[Rx("0x1d")]("style",((o,{styleName:i})=>{const x=t[Rx("0x5")][Rx("0x11")].selection,a=this[Rx("0x31")](i,s);if(!a)return;if(!e[Rx("0x33")][Rx("0x17")](i))return;if(x[Rx("0xf")]&&!a[Rx("0xc")])return void o({styleName:i});const c=!e[Rx("0x4")][Rx("0x17")](a[Rx("0x2f")]);if(a[Rx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x25")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x17")](o.name)){n[Rx("0xe")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0x5")].change((()=>{for(const t of e)n[Rx("0x7")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x3")+i})}))}else{let e=Array[Rx("0x1")](x.getRanges());if(!c){const n=Array.from(r[Rx("0x2c")](a[Rx("0x18")],!1))[0][Rx("0x5")],o=[];for(const r of e){const e=this[Rx("0xd")](t[Rx("0x5")],r,a.classes,n);o[Rx("0xb")](...e)}e=o}t[Rx("0x5")][Rx("0x29")]((()=>{for(const t of e)n[Rx("0x13")](t,{commandName:Rx("0x14"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1c")][Rx("0x6")]((t=>{const{data:e}=t;if(e&&Rx("0x14")===e[Rx("0x28")])return e[Rx("0x16")][0][Rx("0x9")]?{type:Rx("0x1b"),content:Yo(o,Rx("0x30"),e[Rx("0x16")][0][Rx("0x27")].toLowerCase())}:{type:Rx("0x1b"),content:Yo(o,"*Remove format:* %0",e[Rx("0x16")][0][Rx("0x27")][Rx("0x2b")]())}}))}[Rx("0x31")](t,e){let n=e[Rx("0x0")][Rx("0x2")]((e=>e[Rx("0x2f")]===t));return n||(n=e[Rx("0x22")][Rx("0x2")]((e=>e.name===t))),n}[Rx("0xd")](t,e,n,o){const r=[];for(const s of e[Rx("0x21")]()){const e=s[Rx("0x15")](o);e&&n[Rx("0x26")]((t=>e[Rx("0xa")][Rx("0x17")](t)))&&r[Rx("0xb")](t[Rx("0x10")](s))}return r}}const Ix=["getContainedElement","registerPostFixer","filter","detach","maxRow","some","markMultiRangeInsertion","isArray","removeClass","isEqual","getItems","change","addRange","end","tableCell","getCellLocation","push","_tablePostFixingSubtypes","isTouching","first","minColumn","highest","markMultiRangeDeletion","batch","tablePaste","$textProxy","hasAttribute","createRangeOn","selection","element","from","options","getSuggestion","ELEMENT_TABLE_WITH_TEXT","last","discard","ELEMENT_TABLE_ROW_WITH_TEXT","position","MIN_SAFE_INTEGER","insertTableColumnRight","start","document","nodeBefore","enqueueChange","item","tableRow","getSelectionAffectedTableCells","accept","cell","toLowerCase","createTableWalker","insertTableRowBelow","subType","getRanges","rootName","createRangeIn","isIntersectingWithRange","_descriptionFactory","downcastDispatcher","*Insert:* %0","change:data","above","insertTable","editor","locale","findAncestor","fromRange","name","insertion","forceValue","getChanges","*Remove:* %0","map","enableCommand","ELEMENT_TABLE_ROW","getColumnIndexes","selectTableColumn","insertTableRowAbove","root","addClass","$graveyard","includes","substr","TableUtils","_suggestionFactory","_tableSuggestions","refresh","min","deletion","classes","tableColumn","table","colspan","_getCoordsForCells","ELEMENT_TABLE_COLUMN_WITH_TEXT","setSelection","commands","values","getFirstRange","ELEMENT_TABLE","nodeAfter","oldRange","model","getChangedMarkers","low","_setupColumnsRowsFixing","span","left","type","MAX_SAFE_INTEGER","get","join","registerCustomCallback","rowspan","TableEditing","_getSuggestionCoords","insertTableColumnLeft","add","data","_splitMarkerName","insert","differ","ELEMENT_TABLE_COLUMN","TrackChangesEditing","length","mapper","execute","plugins","removeTableRow","order","getAttribute","registerDescriptionCallback","getRowIndexes","minRow","removeTableColumn","max","writer"];var Lx,Nx;Lx=Ix,Nx=359,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x45")]=[wx("0x61"),wx("0x5")],this[wx("0x0")]=new Set}afterInit(){const t=this.editor,e=t.model[wx("0x5d")].selection;if(!t[wx("0x2a")].has(wx("0x1d")))return;const n=t[wx("0x74")],o=t[wx("0x2a")][wx("0x19")](wx("0x26")),r=t[wx("0x2a")][wx("0x19")]("TableUtils");o[wx("0x6d")].registerElementLabel(wx("0x6"),(t=>Yo(n,wx("0xe"),t))),this[wx("0x14")](),o[wx("0x7d")](wx("0x72")),o[wx("0x7d")]("selectTableRow"),o[wx("0x7d")](wx("0x80"));for(const n of[wx("0x81"),wx("0x67")]){const s=t[wx("0xb")][wx("0x19")](n);o[wx("0x7d")](n,(n=>{t.model.change((t=>{n();const i=wx("0x71")===s[wx("0x2c")],x=r[wx("0x62")](e),a=r.getRowIndexes(x),c=i?a[wx("0x47")]-1:a[wx("0x56")]+1,l=x[0][wx("0x75")](wx("0x6")),d=r.createTableWalker(l,{startRow:c,endRow:c}),u=Array[wx("0x52")](d)[wx("0x7c")]((e=>t[wx("0x4f")](e[wx("0x64")])));o[wx("0x3a")](u,wx("0x61"))}))}))}for(const n of[wx("0x1f"),wx("0x5b")]){const s=t[wx("0xb")][wx("0x19")](n);o[wx("0x7d")](n,(n=>{t[wx("0x11")][wx("0x3f")]((t=>{n();const i=wx("0x16")===s[wx("0x2c")],x=r.getSelectionAffectedTableCells(e),a=r.getColumnIndexes(x),c=i?a[wx("0x47")]-1:a.last+1,l=x[0][wx("0x75")](wx("0x6")),d=r[wx("0x66")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x52")](d)[wx("0x7c")]((e=>t[wx("0x4f")](e[wx("0x64")])));o[wx("0x3a")](u,"tableColumn")}))}))}for(const n of["removeTableRow","removeTableColumn"]){const s=n[wx("0x86")](11),i=s.toLowerCase(),x=i[wx("0x86")](0,3)+wx("0x15"),a="table"+s,c=wx("0x2")+s,l=wx("0x32")+s;o[wx("0x7d")](n,(()=>{t.model[wx("0x3f")]((t=>{const s=r[wx("0x62")](e),d=s[0][wx("0x75")](wx("0x6"));let u;if(wx("0x2b")==n){const t=r[wx("0x2f")](s);u={startRow:t[wx("0x47")],endRow:t[wx("0x56")],includeAllSlots:!0}}else{const t=r[wx("0x7f")](s);u={startColumn:t[wx("0x47")],endColumn:t[wx("0x56")],includeAllSlots:!0}}const g=r.createTableWalker(d,u),m=Array[wx("0x52")](g).map((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t[wx("0x4e")](x)))).map((e=>t[wx("0x4f")](e))),p=o[wx("0x4a")](h,a);if(p&&(wx("0x61")==p.subType||"tableColumn"==p[wx("0x68")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[wx("0x4f")](n),s=r[wx("0x43")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&p[wx("0x40")](o)}}}))}))}function s(n){const o=Array[wx("0x52")](e[wx("0x69")]())[wx("0x7c")]((t=>i.LiveRange.fromRange(t)));t[wx("0x11")].change((e=>{const r=e[wx("0x4b")];n=n[wx("0x36")]((t=>wx("0x84")!=t[wx("0x82")].rootName)),e[wx("0xa")](n),t[wx("0xb")][wx("0x19")]("removeTableRow")[wx("0x1")](),t[wx("0x29")](wx("0x2b"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t.model[wx("0x5f")](r,(t=>{const e=o.filter((t=>wx("0x84")!=t[wx("0x82")].rootName));e[wx("0x27")]>0&&t[wx("0xa")](e);for(const t of o)t[wx("0x37")]()}))}))}))}function a(n){t[wx("0x11")].change((o=>{const r=Array.from(e[wx("0x69")]()).map((t=>i.LiveRange[wx("0x76")](t))),s=[];for(const t of n)for(const e of t[wx("0x3e")]({shallow:!0}))s[wx("0x44")](e);for(const e of s)wx("0x84")!=e[wx("0x82")].rootName&&(o.setSelection(o.createPositionAt(e,0)),t[wx("0xb")].get(wx("0x31")).refresh(),t[wx("0x29")](wx("0x31"),{forceDefaultExecution:!0}));const x=r[wx("0x36")]((t=>"$graveyard"!=t.root[wx("0x6a")]));x[wx("0x27")]>0&&o[wx("0xa")](x);for(const t of r)t.detach()}))}function c(t,e){return e.every((e=>t.some((t=>t[wx("0x41")][wx("0x3d")](e[wx("0x5c")])||e.end.isEqual(t[wx("0x5c")])))))}function l(t,e){return t[wx("0x39")]((t=>e[wx("0x39")]((e=>t[wx("0x41")][wx("0x46")](e[wx("0x5c")])))))}t.data[wx("0x6e")].on("addMarker:suggestion",((t,e,n)=>{if(!n[wx("0x53")].showSuggestionHighlights)return;const o=e[wx("0x60")];if(!o)return;const r=n[wx("0x28")].toViewElement(o);function s(t){return Array[wx("0x3b")](t)?t:[t]}r&&wx("0x42")===o[wx("0x77")]&&(0,x.setHighlightHandling)(r,n[wx("0x33")],((t,e,n)=>n[wx("0x83")](s(e.classes),t)),((t,e,n)=>n[wx("0x3c")](s(e[wx("0x4")]),t)))}),{priority:wx("0x49")}),o[wx("0x6d")][wx("0x2e")]((t=>{if(wx("0x78")!=t[wx("0x17")]&&"deletion"!=t.type)return;const e=t[wx("0x34")]();if(null!=e&&e.is(wx("0x51"),wx("0x6"))){if(wx("0x78")==t[wx("0x17")]){const e=t[wx("0x3e")]()[wx("0x36")]((t=>t.is(wx("0x4d"))))[wx("0x7c")]((t=>t[wx("0x21")]));if(e[wx("0x27")])return{type:wx("0x78"),content:Yo(n,wx("0x6f"),Yo(n,wx("0x55"),'"'+e[wx("0x1a")](" ")+'"'))}}if("deletion"==t[wx("0x17")]){const e=t.getItems()[wx("0x36")]((t=>t.is("$textProxy")))[wx("0x7c")]((t=>t[wx("0x21")]));if(e[wx("0x27")])return{type:wx("0x3"),content:Yo(n,wx("0x7b"),Yo(n,wx("0x55"),'"'+e.join(" ")+'"'))}}}})),o[wx("0x6d")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[wx("0x36")]((t=>t.is(wx("0x4d"))))[wx("0x7c")]((t=>t[wx("0x21")])),o=this[wx("0x1e")](t),r=o[wx("0x38")]-o[wx("0x30")]+1;if(wx("0x78")==t[wx("0x17")])return e[wx("0x27")]?{type:wx("0x78"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x58"),[r,'"'+e.join(" ")+'"']))}:{type:wx("0x78"),content:Yo(n,wx("0x6f"),Yo(n,"ELEMENT_TABLE_ROW",r))};if("deletion"==t[wx("0x17")])return e[wx("0x27")]?{type:wx("0x3"),content:Yo(n,wx("0x7b"),Yo(n,wx("0x58"),[r,'"'+e[wx("0x1a")](" ")+'"']))}:{type:wx("0x3"),content:Yo(n,wx("0x7b"),Yo(n,wx("0x7e"),r))}}if(wx("0x5")==t.subType){const e=t[wx("0x3e")]()[wx("0x36")]((t=>t.is("$textProxy")))[wx("0x7c")]((t=>t[wx("0x21")])),o=this[wx("0x1e")](t),r=o.maxColumn-o[wx("0x48")]+1;if("insertion"==t[wx("0x17")])return e[wx("0x27")]?{type:"insertion",content:Yo(n,wx("0x6f"),Yo(n,wx("0x9"),[r,'"'+e[wx("0x1a")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x6f"),Yo(n,wx("0x25"),r))};if(wx("0x3")==t.type)return e[wx("0x27")]?{type:wx("0x3"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x9"),[r,'"'+e[wx("0x1a")](" ")+'"']))}:{type:wx("0x3"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x25"),r))}}})),o[wx("0x88")][wx("0x1b")](wx("0x78"),wx("0x61"),wx("0x57"),s),o[wx("0x88")].registerCustomCallback(wx("0x3"),"tableRow",wx("0x63"),s),o._suggestionFactory[wx("0x1b")](wx("0x78"),wx("0x5"),wx("0x57"),a),o[wx("0x88")][wx("0x1b")](wx("0x3"),wx("0x5"),wx("0x63"),a),o[wx("0x88")][wx("0x1b")](wx("0x78"),wx("0x5"),wx("0x1a"),c),o[wx("0x88")][wx("0x1b")]("deletion",wx("0x5"),"join",c),o[wx("0x88")].registerCustomCallback(wx("0x78"),wx("0x61"),wx("0x1a"),l),o[wx("0x88")][wx("0x1b")](wx("0x3"),wx("0x61"),wx("0x1a"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[wx("0x73")],e=t.model.document[wx("0x50")];return(n,o)=>{t[wx("0x11")][wx("0x3f")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][wx("0x41")][wx("0x5e")];x&&x[0]&&!1===x[0][wx("0x79")]&&(a=n[0].start.nodeAfter);const c=r[wx("0x6b")](a);if(wx("0x84")==c[wx("0x82")].rootName)return;const l=Array[wx("0x52")](e[wx("0x69")]())[wx("0x7c")]((t=>i.LiveRange.fromRange(t)));r[wx("0xa")](c),t.commands[wx("0x19")](s)[wx("0x1")](),x[wx("0x44")]({forceDefaultExecution:!0}),t[wx("0x29")](s,...x);const d=l[wx("0x36")]((t=>wx("0x84")!=t[wx("0x82")][wx("0x6a")]));d[wx("0x27")]>0&&r[wx("0xa")](d);for(const t of l)t[wx("0x37")]()}))}}[wx("0x8")](t){const e=this[wx("0x73")][wx("0x2a")][wx("0x19")](wx("0x87"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,r=Number[wx("0x18")],s=Number[wx("0x5a")];for(const i of t){if(wx("0x84")==i.root[wx("0x6a")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x4e")]("rowspan")?i[wx("0x2d")](wx("0x1c"))-1:0,c=i.hasAttribute("colspan")?i[wx("0x2d")](wx("0x7"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[wx("0x14")](){const t=this[wx("0x73")],e=t[wx("0x2a")].get(wx("0x26")),n=t[wx("0x2a")][wx("0x19")]("TableUtils");t[wx("0x11")][wx("0x5d")].on(wx("0x70"),(()=>{const n=Array[wx("0x52")](t.model[wx("0x5d")][wx("0x24")][wx("0x12")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[wx("0x22")](t);if("suggestion"!=n)continue;if(null!=o[wx("0x10")])continue;const i=e[wx("0x54")](r);this._tablePostFixingSubtypes[wx("0x85")](s)&&this[wx("0x0")][wx("0x20")](i)}}),{priority:wx("0x13")});const o=(t,e)=>{let o=!1;const r=e[wx("0x4f")](t),s=t[wx("0x75")](wx("0x6")),i=n[wx("0x43")](t);for(const e of this[wx("0x0")]){const n=e[wx("0x68")],x=n.startsWith(wx("0x4c")),a=n[wx("0x86")](x?10:5),c=a[wx("0x65")](),l=c.substr(0,3)+wx("0x15"),d=wx("0x2")+a,u=wx("0x32")+a;if(!e.isInContent)continue;if(s!=e[wx("0xd")]()[wx("0x5c")][wx("0x75")](wx("0x6")))continue;if(e[wx("0x6c")](r))continue;const g=t[wx("0x4e")](l)?t[wx("0x2d")](l)-1:0,m=this[wx("0x1e")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x40")](r),o=!0)}return o};t[wx("0x11")][wx("0x5d")][wx("0x35")]((e=>{let n=!1;for(const r of t[wx("0x11")].document[wx("0x24")][wx("0x7a")]())if(wx("0x23")==r[wx("0x17")])if(wx("0x61")==r[wx("0x77")])for(const t of r[wx("0x59")][wx("0xf")].getChildren())n=n||o(t,e);else wx("0x42")==r.name&&(n=n||o(r[wx("0x59")].nodeAfter,e));return n}))}[wx("0x1e")](t){return this._getCoordsForCells(t[wx("0x69")]()[wx("0x7c")]((t=>t[wx("0x5c")].nodeAfter)))}}function Ox(t){return Array[wx("0x52")](new Set(t)[wx("0xc")]())}const Fx=["trackChanges","fromRange","mergeTableCellUp","get","document","return","value","editor","execute","createRangeOn","_areSelectedCellsMergable","commandName","_areMergableCells","from","has","forceDefaultExecution","mergeTableCellRight","accept","mergeTableCells","setSelection","cell","model","containsRange","stop","add","refresh","type","direction","element","mergeTableCellDown","change","registerDescriptionCallback","*Split cell:* vertically","_acceptFormatSuggestionCallbackFactory","isInContent","TrackChangesEditing","findAncestor","getFirstPosition","set:isEnabled","registerCustomCallback","getSelectionAffectedTableCells","low","getAncestors","enableCommand","splitTableCellVertically","author","_tablePostFixingSubtypes","format","find","TableEditing","detach","TableUtils","plugins","size","locale","root","horizontally","deletion","_suggestionFactory","formatBlock","selection","markMultiRangeBlockFormat","_isForcedDefaultExecutionBlock","createTableWalker","getRanges","length","*Merge cells*","mergeTableCellLeft","getCellLocation","commands","map","subType","splitTableCellHorizontally","filter"];var Px,Dx;Px=Fx,Dx=186,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 requires(){return[Mx]}afterInit(){const t=this[Bx("0x2b")],e=t.model[Bx("0x28")][Bx("0x16")],n=t[Bx("0x10")];if(!t[Bx("0xe")][Bx("0x32")](Bx("0xb")))return;const o=t[Bx("0xe")][Bx("0x27")](Bx("0x47")),r=t[Bx("0xe")][Bx("0x27")](Bx("0xd")),s=t[Bx("0xe")][Bx("0x27")](Mx);s[Bx("0x8")].push(Bx("0x36")),o.enableCommand(Bx("0x36"),(()=>{const e=r.getSelectionAffectedTableCells(t[Bx("0x39")][Bx("0x28")][Bx("0x16")]);t.model[Bx("0x42")]((()=>{o[Bx("0x17")](e,{commandName:Bx("0x36"),commandParams:[]},[],Bx("0x36"))}))})),t.commands.get(Bx("0x36")).on(Bx("0x2c"),((e,n)=>{t[Bx("0x1f")][Bx("0x27")](Bx("0x24"))[Bx("0x2a")]&&(n[Bx("0x1b")]>0&&n[n[Bx("0x1b")]-1]&&n[n[Bx("0x1b")]-1][Bx("0x33")]||o[Bx("0x18")]||this[Bx("0x2e")]()||e[Bx("0x3b")]())}),{priority:"highest"});for(const e of[Bx("0x26"),Bx("0x34"),Bx("0x41"),"mergeTableCellLeft"]){const n=t[Bx("0x1f")][Bx("0x27")](e);o[Bx("0x5")](e,(()=>{const e=t[Bx("0x39")][Bx("0x28")][Bx("0x16")][Bx("0x49")]()[Bx("0x4")]()[Bx("0xa")]((t=>t.is(Bx("0x40"),"tableCell"))),r=n[Bx("0x2a")];t[Bx("0x39")][Bx("0x42")]((()=>{o.markMultiRangeBlockFormat([e,r],{commandName:Bx("0x36"),commandParams:[]},[],Bx("0x36"))}))}))}for(const e of[Bx("0x6"),Bx("0x22")]){const n=t[Bx("0x1f")][Bx("0x27")](e);o[Bx("0x5")](e,(()=>{const s=r[Bx("0x2")](t[Bx("0x39")].document[Bx("0x16")])[0],i=s[Bx("0x48")]("table"),{column:x,row:a}=r[Bx("0x1e")](s);let c=[];if(Bx("0x12")==n[Bx("0x3f")]){const t=r.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x31")](t)[Bx("0x20")]((t=>t[Bx("0x38")]))}else{const t=r[Bx("0x19")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x31")](t)[Bx("0x20")]((t=>t[Bx("0x38")]))}t[Bx("0x39")][Bx("0x42")]((t=>{o.markBlockFormat(t[Bx("0x2d")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x43")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e.commandName?{type:"format",content:Yo(n,Bx("0x1c"))}:void 0})),o._descriptionFactory[Bx("0x43")]((t=>{const{data:e}=t;if(e)return Bx("0x6")==e[Bx("0x2f")]?{type:Bx("0x9"),content:Yo(n,Bx("0x44"))}:Bx("0x22")==e[Bx("0x2f")]?{type:Bx("0x9"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=s[Bx("0x45")]();for(const t of[Bx("0x26"),"mergeTableCellRight",Bx("0x41"),"mergeTableCellLeft"])o[Bx("0x14")][Bx("0x1")](Bx("0x15"),t,Bx("0x35"),x);for(const t of[Bx("0x6"),Bx("0x22")])o[Bx("0x14")].registerCustomCallback(Bx("0x15"),t,"accept",x);o[Bx("0x14")][Bx("0x1")](Bx("0x15"),Bx("0x36"),Bx("0x35"),(n=>{t[Bx("0x39")][Bx("0x42")]((o=>{const r=Array[Bx("0x31")](e[Bx("0x1a")]()).map((t=>i.LiveRange[Bx("0x25")](t)));o.setSelection(n),t[Bx("0x1f")][Bx("0x27")](Bx("0x36"))[Bx("0x3d")](),t[Bx("0x2c")](Bx("0x36"),{forceDefaultExecution:!0});const s=r[Bx("0x23")]((t=>"$graveyard"!=t[Bx("0x11")].rootName));s[Bx("0x1b")]>0&&o[Bx("0x37")](s);for(const t of r)t[Bx("0xc")]()}))}));for(const e of[Bx("0x26"),Bx("0x41"),Bx("0x1d"),Bx("0x34")]){const n=t.commands.get(e);n.on(Bx("0x0"),((e,o,r)=>{if(r){const o=t.model.document[Bx("0x16")][Bx("0x49")]().getAncestors()[Bx("0xa")]((t=>t.is(Bx("0x40"),"tableCell")));this._areMergableCells(n[Bx("0x2a")],o)||(e[Bx("0x29")]=!1,e[Bx("0x3b")]())}}),{priority:Bx("0x3")})}}[Bx("0x2e")](){const t=this[Bx("0x2b")][Bx("0x1f")][Bx("0x27")](Bx("0x36")),e=this[Bx("0x2b")].plugins.get(Bx("0xd"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this.editor[Bx("0x39")][Bx("0x28")][Bx("0x16")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x30")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x2b")][Bx("0xe")][Bx("0x27")](Bx("0x47")),o=this.editor[Bx("0x39")][Bx("0x2d")](t),r=this[Bx("0x2b")][Bx("0x39")][Bx("0x2d")](e),s=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[Bx("0x3e")]||Bx("0x13")==t[Bx("0x3e")]||"mergeTableCells"==t[Bx("0x21")])&&t[Bx("0x46")])for(const e of t[Bx("0x1a")]())e[Bx("0x3a")](o,!0)&&s.add(t[Bx("0x3e")]+":"+t[Bx("0x7")].id),e[Bx("0x3a")](r,!0)&&i[Bx("0x3c")](t.type+":"+t[Bx("0x7")].id);if(s[Bx("0xf")]!=i[Bx("0xf")])return!1;for(const t of s)if(!i[Bx("0x32")](t))return!1;return!0}}const Ux=["TableUtils","setTableColumnHeader","getSuggestion","afterInit","has","mapper","editing","isBefore","addClass","ck-suggestion-marker-","commands","start","includes","data-suggestion","getSelectionAffectedTableCells","commandParams","markBlockFormat","commandName","removeClass","registerCustomCallback","registerDescriptionCallback","FORMAT_REGULAR_COLUMN","value","headingColumns","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","end","getChild","cell","createRange","parent","accept","createPositionBefore","bindElementToMarker","unbindElementFromMarkerName","highest","FORMAT_HEADER_ROW","downcastDispatcher","toViewElement","findAncestor","FORMAT_HEADER_COLUMN","enableCommand","data","createTableWalker","stop","document","getColumnIndexes","consumable","table","plugins","setTableRowHeader","item","childCount","addMarker:suggestion","_descriptionFactory","formatBlock","ck-suggestion-marker--active","markerName","getAttribute","options","showSuggestionHighlights","getRowIndexes","change","_splitMarkerName","selection","markerRange","TrackChangesEditing","markerNameToElements","nodeBefore","getCellLocation","first","TableEditing","nodeAfter","createPositionAfter","get","forceValue","writer","model","index","setAttribute","removeMarker:suggestion","activeMarkers"];var Gx,Hx;Gx=Ux,Hx=170,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[Mx]}[Vx("0x4f")](){const t=this.editor;if(!t[Vx("0x2b")][Vx("0x50")](Vx("0x41")))return;const e=t.locale,n=t[Vx("0x2b")][Vx("0x44")](Vx("0x3c")),o=t[Vx("0x2b")][Vx("0x44")](Vx("0x4c")),r=t[Vx("0x2b")].get(Mx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[Vx("0x39")](s[Vx("0x33")]),c=n[Vx("0x4e")](a);if(!c.data||Vx("0x4d")!=c[Vx("0x24")].commandName)return;if(s[Vx("0x2d")])return void r[Vx("0x26")]();if(!i[Vx("0x29")].consume(s[Vx("0x3b")],r.name))return;const l=s[Vx("0x3b")][Vx("0x5")][Vx("0x42")],d=s[Vx("0x3b")][Vx("0x14")][Vx("0x3e")],u=l[Vx("0x18")][Vx("0x18")],{column:g}=o[Vx("0x3f")](l),{column:m}=o[Vx("0x3f")](d);for(let r=g;r<=m;r++){const c=o[Vx("0x25")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[Vx("0x16")],c=i.mapper[Vx("0x20")](r);i[Vx("0x46")][Vx("0x2")](Vx("0x3")+x,c),e&&i[Vx("0x46")][Vx("0x49")](Vx("0x7"),a,c),i[Vx("0x51")][Vx("0x1b")](c,s[Vx("0x33")]),t&&(n[Vx("0x4b")][Vx("0x6")](s[Vx("0x33")])?i[Vx("0x46")][Vx("0x2")](Vx("0x32"),c):i[Vx("0x46")][Vx("0xc")]("ck-suggestion-marker--active",c))}}}}n[Vx("0x23")]("setTableRowHeader",((e,r)=>{const s=o[Vx("0x8")](t[Vx("0x47")][Vx("0x27")].selection),i=o[Vx("0x37")](s),x=s[0].findAncestor(Vx("0x2a")),a=x[Vx("0x34")]("headingRows")||0,c=r&&null!==r.forceValue?r.forceValue:!t.commands[Vx("0x44")](Vx("0x2c"))[Vx("0x10")],l=c?i.last:i[Vx("0x40")],d=x[Vx("0x15")](l);let u;if(c){const e=x[Vx("0x15")](a);if(d[Vx("0x48")]<e[Vx("0x48")])return;u=t[Vx("0x47")].createRange(t.model[Vx("0x1a")](e[Vx("0x15")](0)),t.model.createPositionAfter(d.getChild(d[Vx("0x2e")]-1)))}else{const e=x[Vx("0x15")](a-1);if(!e)return;u=t.model[Vx("0x17")](t[Vx("0x47")].createPositionBefore(d[Vx("0x15")](0)),t[Vx("0x47")][Vx("0x43")](e[Vx("0x15")](e[Vx("0x2e")]-1)))}t[Vx("0x47")][Vx("0x38")]((()=>{n[Vx("0xa")](u,{commandName:Vx("0x2c"),commandParams:[{forceValue:c}]},[],Vx("0x2c"))}))})),n[Vx("0x23")](Vx("0x4d"),((e,o)=>{const r=t[Vx("0x2b")][Vx("0x44")](Vx("0x4c")),s=r[Vx("0x8")](t[Vx("0x47")][Vx("0x27")][Vx("0x3a")]),i=r[Vx("0x28")](s),x=s[0][Vx("0x21")](Vx("0x2a")),a=x[Vx("0x34")](Vx("0x11"))||0,c=o&&null!==o[Vx("0x45")]?o.forceValue:!t[Vx("0x4")].get("setTableColumnHeader").value;let l;const d=x.getChild(0),u=c?i.last:i[Vx("0x40")],g=r.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][Vx("0x16")];if(c){const e=d[Vx("0x15")](a);if(m[Vx("0x1")](e))return;l=t[Vx("0x47")][Vx("0x17")](t[Vx("0x47")][Vx("0x1a")](e),t[Vx("0x47")][Vx("0x43")](m))}else{const e=d[Vx("0x15")](a-1);if(!e)return;l=t[Vx("0x47")][Vx("0x17")](t.model[Vx("0x1a")](m),t[Vx("0x47")][Vx("0x43")](e))}t[Vx("0x47")][Vx("0x38")]((()=>{n.markBlockFormat(l,{commandName:Vx("0x4d"),commandParams:[{forceValue:c}]},[],Vx("0x4d"))}))})),t[Vx("0x0")].downcastDispatcher.on("addMarker:suggestion",s(),{priority:"highest"}),t.data[Vx("0x1f")].on(Vx("0x2f"),((t,e,n)=>{n[Vx("0x35")][Vx("0x36")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[Vx("0x0")].downcastDispatcher.on(Vx("0x4a"),((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e[Vx("0x33")]),i=n[Vx("0x4e")](s);if(!i[Vx("0x24")]||"setTableColumnHeader"!=i[Vx("0x24")].commandName)return;const x=o[Vx("0x51")][Vx("0x3d")](e.markerName);if(x)for(const t of x)o.writer[Vx("0xc")](Vx("0x3")+r,t),o[Vx("0x46")][Vx("0xc")](Vx("0x32"),t),o[Vx("0x46")].removeAttribute(Vx("0x7"),t),o[Vx("0x51")][Vx("0x1c")](t,e.markerName)}),{priority:Vx("0x1d")}),n[Vx("0x30")][Vx("0xe")]((t=>{const{data:n}=t;if(n){if(Vx("0x2c")==n[Vx("0xb")]){const t=n[Vx("0x9")][0].forceValue;return o(Yo(e,t?Vx("0x1e"):"FORMAT_REGULAR_ROW"))}if(Vx("0x4d")==n[Vx("0xb")]){const t=n.commandParams[0].forceValue;return o(Yo(e,Vx(t?"0x22":"0xf")))}}function o(t){return{type:"format",content:Yo(e,"*Format:* %0",t)}}}));const i=r[Vx("0x13")]();n._suggestionFactory[Vx("0xd")](Vx("0x31"),Vx("0x2c"),Vx("0x19"),i),n[Vx("0x12")].registerCustomCallback(Vx("0x31"),"setTableColumnHeader",Vx("0x19"),i)}}const zx=["redo","schema","elementToElement","options","updateMarker","editor","removeRows","get","row","suggestionLoaded","ck-suggestion-marker--active","tableCellBorderColor","markers","registerCustomCallback","last","isEqual","tableCellBackgroundColor","tableCellSuggestion","table","set","getAttributes","batch","tablePasteColumn","markMultiRangeBlockFormat","insertColumns","getRows","$graveyard","getMarkers","find","insertContent","conversion","move","_tablePostFixingSubtypes","root","unwrap","getContainedElement","oldRange","tablePasteRow","afterInit","createTableWalker","rows","documentSelection","name","tablePasteChainId","from","deletion","registerPostFixer","getShiftedBy","low","*Replace table cells*","columns","tableCellPadding","rowInsertionRanges","createElement","createPositionBefore","editing","end","locale","setAttributes","tableCellBorderStyle","columnInsertionIndexes","commands","hasSuggestion","fromEntries","wrap","start","content","suggestion","length","markerToHighlight","forceDefaultExecution","change","for","position","filter","attributes","rowInsertionIndexes","accept","registerDescriptionCallback","_replaceTableSlotCell","suggestion:formatBlock:tablePasteCell","element","getItems","_isForcedDefaultExecutionBlock","suggestion-td","removeMarkers","suggestionUnloaded","getColumns","markerAttributes","findAncestor","join","previousSibling","isEmpty","add","listenTo","formatBlock","document","keys","high","selection","trackChanges","tableCellVerticalAlignment","type","subType","register","getRange","return","next","tableCellHorizontalAlignment","getRowIndexes","columnInsertionRanges","tablePasteCell","createRangeIn","_createdBatches","requires","stop","endColumn","containsRange","every","getChild","fill","markMultiRangeDeletion","deletionRanges","insertionRanges","reduce","showSuggestionHighlights","differ","remove","getAllAdjacentSuggestions","getSuggestion","ck-suggestion-marker","includes","_suggestionFactory","newRange","tableCell","nextSibling","getRanges","map","clipboardOutput","insertion","TableUtils","getChildren","ck-suggestion-marker-insertion","plugins","markerName","push","_splitMarkerName","getSuggestions","cell","author","startsWith","getChangedMarkers","Users","_getCoordsForCells","createRangeOn","has","model","TableClipboard","column","dataDowncast","discard","value","rootName","view","tablePaste","previous","isInContent","paragraph","cells"];var Kx,qx;Kx=zx,qx=290,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return zx[t-=0]},$x=["tableCellBorderWidth",Xx("0x3b"),Xx("0x6b"),Xx("0x9c"),Xx("0x95"),Xx("0x40"),Xx("0x63")],Jx=Object[Xx("0x6f")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0xa2")](){return[Mx]}[Xx("0x56")](){const t=this[Xx("0x35")];if(!t[Xx("0x16")].has(Xx("0x24")))return;const n=t[Xx("0x16")][Xx("0x37")]("TrackChangesEditing"),o=t[Xx("0x16")].get(Xx("0x13")),r=t.plugins[Xx("0x37")](Mx),s=t[Xx("0x16")][Xx("0x37")]("TableClipboard");r[Xx("0x50")][Xx("0x18")]("tablePasteRow",Xx("0x46")),t[Xx("0x23")][Xx("0x31")][Xx("0x98")](Xx("0x41"),{allowIn:Xx("0xd"),allowContentOf:Xx("0xd"),isLimit:!0}),t[Xx("0x4e")][Xx("0x32")]({model:Xx("0x41"),view:"suggestion-td"});let i=null;t[Xx("0x23")].on(Xx("0x4d"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0x74")]-1];l&&l[Xx("0x76")]||n[Xx("0x83")]||this[Xx("0x35")].commands[Xx("0x37")](Xx("0x94"))[Xx("0x28")]&&function(t,e,n,o,r){if(e&&!e.is(Xx("0x59")))return!1;const s=r.getTableIfOnlyTableInContent(t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x90")][Xx("0x93")]);if(!i.length)return!1;const x=i[0][Xx("0x89")](Xx("0x42")),a=o[Xx("0x9d")](i),c=o.getColumnIndexes(i),l={startRow:a.first,endRow:a[Xx("0x3e")],startColumn:c.first,endColumn:c.last};return 1==i.length&&(l.endRow+=o[Xx("0x49")](s)-1,l[Xx("0xa4")]+=o[Xx("0x87")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0x23")],o,s)&&(r[Xx("0xa3")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x23")][Xx("0x77")]((()=>{t[Xx("0x23")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x74")]&&n.markMultiRangeInsertion(r,Xx("0x55"),{tablePasteChainId:o}),s.length&&n.markMultiRangeInsertion(s,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x74")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x74")]&&n[Xx("0x0")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x47")](l[Xx("0x10")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x9f"),{tablePasteChainId:o});if(d){const e=d[Xx("0x4b")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Xx("0x23")][Xx("0x21")](o),i=e.find((t=>t[Xx("0x99")]()[Xx("0x3f")](s)));i&&n[Xx("0x18")]([i.name,r])}n[Xx("0x74")]&&d.setAttribute(Xx("0x88"),Object[Xx("0x6f")](n))}i=null})))}),{priority:e.priorities[Xx("0x92")]+10}),t[Xx("0x16")].get(Xx("0x24")).on(Xx("0x7f"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n[Xx("0x1b")],x=o,a=Zx(s),c=Zx(x);t[Xx("0x9a")]=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x6")](s[Xx("0xa7")](0));for(const t of Array[Xx("0x5c")](x.getChildren()))r.insert(t,s,Xx("0x68"));const t=i[Xx("0x7c")].includes(n[Xx("0x38")]),e=i[Xx("0x6c")].includes(n[Xx("0x25")]);t||e||(l=r[Xx("0xa0")](s))}else c&&!a&&(d=r[Xx("0xa0")](s));else{const t=r[Xx("0x65")](Xx("0x41")),e=r[Xx("0x65")](Xx("0x41"));r[Xx("0x70")](r[Xx("0xa0")](s),e),r.insert(t,s,0);for(const e of Array[Xx("0x5c")](x[Xx("0x14")]()))r.insert(e,t,Xx("0x68"));l=r[Xx("0x21")](t),d=r.createRangeOn(e)}const u=Array[Xx("0x5c")](x[Xx("0x44")]()).filter((([t])=>$x[Xx("0xa")](t)));i[Xx("0x2f")][Xx("0x18")]({element:s,attributes:u[Xx("0x74")]?Object[Xx("0x6f")](u):null}),l&&i[Xx("0x2")][Xx("0x18")](l),d&&i[Xx("0x1")].push(d)}),{priority:"high"}),o.on(Xx("0x48"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x62")]||1;i[Xx("0x6c")]=new Array(a)[Xx("0xa8")](x)[Xx("0x10")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))i[Xx("0x9e")].push(t.model.createRangeOn(e))}),{priority:Xx("0x60")}),o.on("insertRows",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x58")]||1;i[Xx("0x7c")]=new Array(a)[Xx("0xa8")](x)[Xx("0x10")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i[Xx("0x64")][Xx("0x18")](t.model[Xx("0x21")](e))}),{priority:"low"}),n._descriptionFactory[Xx("0x7e")]((e=>{if(e[Xx("0x97")]&&e[Xx("0x97")].startsWith(Xx("0x2b")))return e[Xx("0x2c")]?{}:{type:Xx("0x12"),content:Yo(t[Xx("0x69")],Xx("0x61"))}}));const x=()=>{};for(const t of[Xx("0x2b"),Xx("0x46"),Xx("0x55"),Xx("0x9f")])n._suggestionFactory[Xx("0x3d")]("insertion",t,"join",x),n[Xx("0xb")][Xx("0x3d")](Xx("0x5d"),t,Xx("0x8a"),x);n[Xx("0xb")][Xx("0x3d")]("formatBlock",Xx("0x9f"),"discard",x),n[Xx("0xb")][Xx("0x3d")]("formatBlock",Xx("0x9f"),"accept",((e,n,o)=>{const r=e[Xx("0x10")]((t=>t.getContainedElement()))[Xx("0x7a")]((t=>t)),s=new Map(r[Xx("0x10")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x2f")])e&&s[Xx("0x43")](t,e);else if(o&&o[Xx("0x88")])for(const[e,n]of Object.entries(o.markerAttributes)){const o=t.model[Xx("0x3c")].get(e),r=o?o.getRange()[Xx("0x53")]():null;r&&s[Xx("0x43")](r,n)}t[Xx("0x23")].change((t=>{for(const[e,n]of s)t[Xx("0x6a")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x3d")](e,Xx("0x2b"),o,((r,s,i)=>{t[Xx("0x23")][Xx("0x77")]((t=>{const x=[];for(const t of r){const e=t[Xx("0x71")].nodeAfter;e.is("element","tableCellSuggestion")&&x[Xx("0x18")](e)}n[Xx("0xb")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of x)Xx("0x4a")!=e[Xx("0x51")][Xx("0x29")]&&t.unwrap(e)}))}))};a(Xx("0x12"),Xx("0x7d")),a(Xx("0x12"),Xx("0x27")),a(Xx("0x5d"),Xx("0x7d")),a(Xx("0x5d"),"discard"),n[Xx("0xb")][Xx("0x3d")]("insertion",Xx("0x55"),Xx("0x27"),(t=>{const e=t[Xx("0x10")]((t=>t[Xx("0x53")]())),n=e[0][Xx("0x89")]("table"),{minRow:s,maxRow:i}=r._getCoordsForCells(e);o[Xx("0x36")](n,{at:s,rows:i-s+1})})),n._suggestionFactory.registerCustomCallback(Xx("0x12"),Xx("0x46"),Xx("0x27"),(t=>{const e=t[Xx("0x10")]((t=>t[Xx("0x53")]())),n=e[0][Xx("0x89")](Xx("0x42")),{minColumn:s,maxColumn:i}=r[Xx("0x20")](e);o.removeColumns(n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x97")]||!e.subType[Xx("0x1d")](Xx("0x2b")))return;const o=e.attributes[Xx("0x5b")],r=n[Xx("0x1a")]()[Xx("0x7a")]((t=>t[Xx("0x2d")]&&t[Xx("0x7b")]&&t.attributes[Xx("0x5b")]==o));r[Xx("0x74")]&&e[Xx("0x7")]()[Xx("0x74")]!=r[Xx("0x74")]&&r[Xx("0x3")](((t,e)=>(t[Xx("0x9b")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x19")](t[Xx("0x17")]),r=[Xx("0x9"),Xx("0x15")],s=n.activeMarkers[Xx("0xa")](t[Xx("0x17")]);return s&&r.push(Xx("0x3a")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Xx("0x39"),c,{priority:Xx("0x92")}),n.on(Xx("0x86"),c,{priority:Xx("0x92")}),t[Xx("0x23")][Xx("0x90")][Xx("0x5e")]((()=>{let e=!1;const o=Array[Xx("0x5c")](t.model[Xx("0x90")][Xx("0x5")][Xx("0x1e")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n._splitMarkerName(r);if(Xx("0x73")!=o||Xx("0x5d")!=i||s[Xx("0x54")])continue;if(!n[Xx("0x6e")](x))continue;const a=n[Xx("0x8")](x).getRanges(),c=t[Xx("0x16")][Xx("0x37")](Xx("0x1f")).me;for(const t of n[Xx("0x1a")]())if(t[Xx("0x2d")]&&t[Xx("0x1c")]==c&&Xx("0x8f")==t.type&&Xx("0x9f")==t[Xx("0x97")]&&t[Xx("0xf")]()[Xx("0xa6")]((t=>a.some((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x7")]())n[Xx("0x2d")]&&(n[Xx("0x27")](),e=!0)}return e})),t[Xx("0x23")][Xx("0x90")][Xx("0x5e")]((e=>{const o=t[Xx("0x6d")][Xx("0x37")](Xx("0x30"));if(!o||!o[Xx("0xa1")][Xx("0x22")](e[Xx("0x45")]))return!1;let r=!1;const s=t[Xx("0x16")].get(Xx("0x1f")).me,i=t[Xx("0x23")].document.differ.getChanges(),x=Array[Xx("0x5c")](t[Xx("0x23")][Xx("0x90")][Xx("0x5")][Xx("0x1e")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x19")](t);return Xx("0x73")==o&&"tablePaste"==r&&i==s.id&&!e[Xx("0x54")]}));for(const t of i){if("insert"!=t[Xx("0x96")]||Xx("0x41")!=t[Xx("0x5a")]||1!=t[Xx("0x74")])continue;const n=e.createRange(t[Xx("0x79")],t[Xx("0x79")][Xx("0x5f")](1));if(!x[Xx("0x4c")]((({data:t})=>t.newRange[Xx("0x3f")](n))))for(const{name:t,data:o}of x)if(n[Xx("0xa5")](o[Xx("0xc")])){e[Xx("0x34")](t,{range:n}),r=!0;break}}return r})),t[Xx("0x23")].document[Xx("0x5e")]((e=>{let o=!1;const r=t[Xx("0x16")][Xx("0x37")](Xx("0x1f")).me,s=n[Xx("0x1a")]()[Xx("0x7a")]((t=>t[Xx("0x2d")]&&t[Xx("0x1c")]==r)),i=new Set,x=new Set;for(const t of s)if(Xx("0x2b")==t[Xx("0x97")])for(const e of t[Xx("0x4b")]()){const n=e[Xx("0x99")]()[Xx("0x53")]();if(n)if(n.is(Xx("0x81"),Xx("0x41"))&&Zx(n)){t.removeMarker(e.name),i[Xx("0x8d")](n),o=!0;const r=n[Xx("0xe")],s=n[Xx("0x8b")],a=r&&r.is("element",Xx("0x41")),c=s&&s.is(Xx("0x81"),"tableCellSuggestion");a&&!i[Xx("0x22")](r)&&x[Xx("0x8d")](r),c&&!i.has(s)&&x[Xx("0x8d")](s)}else n.is(Xx("0x81"),Xx("0x2e"))&&n[Xx("0x8c")]&&(t.removeMarker(e.name),o=!0)}else if(Xx("0x9f")==t[Xx("0x97")]){if(!t.attributes||!t[Xx("0x7b")][Xx("0x5b")])continue;const e=t.attributes.markerAttributes;if(e&&Object[Xx("0x91")](e)[Xx("0x74")])continue;const n=t.attributes[Xx("0x5b")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x97")]&&e.subType[Xx("0x1d")](Xx("0x2b"))){if(!e[Xx("0x7b")][Xx("0x5b")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x5b")]==n){r=!1;break}}i&&r&&(t[Xx("0x85")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x52")](t);return o})),t[Xx("0x4e")].for("editingDowncast").markerToHighlight({model:Xx("0x80"),view:(t,e)=>l(t),converterPriority:Xx("0x92")}),t[Xx("0x4e")][Xx("0x78")](Xx("0x26"))[Xx("0x75")]({model:Xx("0x80"),view:(t,e)=>e[Xx("0x33")][Xx("0x4")]?l(t,!1):null,converterPriority:Xx("0x92")});const d=t[Xx("0x67")][Xx("0x2a")];this[Xx("0x8e")](d[Xx("0x90")],Xx("0x11"),((t,e)=>{const n=[];for(const t of d[Xx("0xa0")](e[Xx("0x72")])[Xx("0x82")]())t.is(Xx("0x81"),Xx("0x84"))&&n.push(t);d[Xx("0x77")]((t=>{for(const e of n)t[Xx("0x4f")](t[Xx("0xa0")](e),t[Xx("0x66")](e)),t[Xx("0x6")](e)}))}))}}function Zx(t){if(t[Xx("0x8c")])return!0;const e=t[Xx("0xa7")](0);return e.is(Xx("0x81"),Xx("0x2e"))&&e[Xx("0x8c")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x57")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["table","get","Users","TableColumnResizeEditing","formatBlock","handleSuggestionDescription","formatGroupId","tableWidth","resizeTableWidth","discard","selection","commandParams","enableCommand","accept","_descriptionFactory","TrackChangesEditing","getColumnGroupElement","author","bind","data","registerDescriptionCallback","handleResizeTableWidthCommand","resizeColumnWidths","editor","columnWidths","getSuggestionCallback","document","*Format:* resize table","model","_suggestionFactory","registerCustomCallback","resizeTable","change","getSuggestions","plugins"];var ea,na;ea=ta,na=269,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{afterInit(){if(!this[oa("0x22")][oa("0xa")].has("TableColumnResizeEditing"))return;const t=this[oa("0x22")][oa("0xa")][oa("0xc")]("TrackChangesEditing");t[oa("0x17")](oa("0x13"),this[oa("0x20")].bind(this)),t[oa("0x17")](oa("0x21"),this.handleResizeTableWidthCommand[oa("0x1d")](this)),t[oa("0x5")][oa("0x6")]("formatBlock","resizeTable","accept",t[oa("0x5")][oa("0x1")](oa("0xf"),null,oa("0x14"))),t[oa("0x5")][oa("0x6")](oa("0xf"),oa("0x7"),oa("0x14"),t[oa("0x5")].getSuggestionCallback(oa("0xf"),null,oa("0x18"))),t[oa("0x19")][oa("0x1f")](this[oa("0x10")][oa("0x1d")](this))}[oa("0x20")](t,e){const n=this.editor[oa("0xa")].get(oa("0x1a")),o=this.editor[oa("0xa")][oa("0xc")](oa("0xe")),r=e[oa("0xb")]||this[oa("0x22")][oa("0x4")][oa("0x2")][oa("0x15")].getSelectedElement();this[oa("0x22")][oa("0x4")][oa("0x8")]((()=>{const s=o[oa("0x1b")](r);let i=s?o.getTableColumnsWidths(s):null,x=r.getAttribute("tableWidth")||null;const a=e[oa("0x12")]||x,c=e[oa("0x0")]||i,l=this.editor[oa("0xa")][oa("0xc")](oa("0xd")).me;for(const t of n[oa("0x9")]()){const e=t.getContainedElement();if("resizeTable"===t.subType&&e===r){t[oa("0x1c")]!==l&&t.discard();const e=t[oa("0x1e")][oa("0x16")];x=e[0][oa("0x12")],i=e[0][oa("0x0")];break}}t({table:r,tableWidth:a,columnWidths:c}),n.markBlockFormat(r,{commandName:oa("0x13"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x7")},[],oa("0x7"))}))}[oa("0x10")](t){const{data:e}=t;if(e&&oa("0x7")===e[oa("0x11")]){const t=oa("0x3");return{type:"format",content:Yo(this[oa("0x22")].locale,t)}}}}const sa=["TrackChangesEditing","get","has","afterInit","plugins","insertTemplate","enableCommand","Template"];var ia,xa;ia=sa,xa=327,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this.editor;t[aa("0x5")][aa("0x3")](aa("0x0"))&&t[aa("0x5")][aa("0x2")](aa("0x1"))[aa("0x7")](aa("0x6"))}}const la=["get","plugins","_descriptionFactory","tableOfContents","TrackChangesEditing","insertTableOfContents","commands","registerElementLabel","afterInit","editor","ELEMENT_TABLE_OF_CONTENTS","locale"];var da,ua;da=la,ua=494,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("0x7")];if(!t[ga("0x4")][ga("0xa")](ga("0x3")))return;t[ga("0xb")][ga("0xa")]("TrackChangesEditing").enableCommand(ga("0x3"));const e=t[ga("0xb")].get(ga("0x2")),n=t[ga("0x9")];e[ga("0x0")][ga("0x5")](ga("0x1"),(t=>Yo(n,ga("0x8"),t)))}}const fa=["has","getChangedMarkers","_descriptionFactory","updateMarker","afterInit","registerPostFixer","schema","newRange","forward","isTouching","end","start","isEqual","nodeBefore","plugins","createRange","editor","element","isCollapsed","TrackChangesEditing","title-content","removeMarker","from","ELEMENT_TITLE","model","document","Title","differ","locale"];var ha,pa;ha=fa,pa=224,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xc")](){const t=this[ba("0x18")];if(!t.plugins[ba("0x8")](ba("0x5")))return;const e=t[ba("0x16")].get(ba("0x1b"));e[ba("0xa")].registerElementLabel(ba("0x1c"),(()=>Yo(t[ba("0x7")],ba("0x2")))),t[ba("0x3")][ba("0x4")][ba("0xd")]((n=>{let o=!1;const r=Array[ba("0x1")](t[ba("0x3")][ba("0x4")][ba("0x6")][ba("0x9")]());for(const{name:s,data:i}of r){const{group:r}=e._splitMarkerName(s);if("suggestion"!==r||!i[ba("0xf")])continue;const x=i.newRange,a=x.end[ba("0x15")];if(!a||!a.is(ba("0x19"),ba("0x1c")))continue;if(!x[ba("0x13")][ba("0x11")](x[ba("0x12")]))continue;const c=t[ba("0x3")][ba("0xe")].getNearestSelectionRange(x[ba("0x12")],ba("0x10"));if(c&&c[ba("0x1a")]){const t=n[ba("0x17")](x[ba("0x13")],c.start);t[ba("0x14")](x)||(n[ba("0xb")](s,{range:t}),o=!0)}o||(n[ba("0x0")](s),o=!0)}return o}))}}const _a=["undo","has","UndoEditing","TrackChangesEditing","afterInit","enableCommand","plugins","get"];var Ta,Ca;Ta=_a,Ca=459,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1")](){const t=this.editor,e=t.plugins[ya("0x4")](ya("0x0"));t[ya("0x3")][ya("0x6")](ya("0x7"))&&(e[ya("0x2")](ya("0x5")),e[ya("0x2")]("redo"))}}const Aa=["get","TableCaptionEditing","afterInit","has","plugins","requires","toggleTableCaption"];var va,Ra;va=Aa,Ra=213,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("0x2")](){return[Mx]}[Sa("0x6")](){const t=this.editor;t[Sa("0x1")][Sa("0x0")](Sa("0x5"))&&t.plugins[Sa("0x4")]("TrackChangesEditing").enableCommand(Sa("0x3"))}}const La=["_getTranslationKeyForListStyle","listReversed","bind","editor","config","getSelectedBlocks","*Format:* set order to reversed","from","list.properties","registerDescriptionCallback","model","enableCommand","handleListStyleCommand","styles","commandParams","DocumentListPropertiesEditing","handleListReversedCommand","TrackChangesEditing","plugins","_getSuggestionBlocks","*Change to:* %0","isFirstBlockOfListItem","startIndex","locale","push","afterInit","handleDescriptions","DocumentListUtils","DocumentListPropertiesUtils","markMultiRangeBlockFormat","*Format:* set start index to %0","listStyle","_LIST_","isListItemBlock","_getSuggestionBlocksForListStyle","change","numbered","length","listType","getAttribute","format","reversed","expandListBlocksToCompleteList","type","selection","replace","get","listStart","filter","_descriptionFactory","toUpperCase","document","handleListStartCommand"];var Na,wa;Na=La,wa=266,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x18")](){if(!this[Ma("0x2")][Ma("0x11")].has(Ma("0xe")))return;const t=this[Ma("0x2")][Ma("0x3")][Ma("0x2d")](Ma("0x7")),e=this.editor[Ma("0x11")].get(Ma("0x10"));t[Ma("0xc")]&&e[Ma("0xa")](Ma("0x1e"),this[Ma("0xb")][Ma("0x1")](this)),t[Ma("0x28")]&&e[Ma("0xa")]("listReversed",this[Ma("0xf")][Ma("0x1")](this)),t[Ma("0x15")]&&e[Ma("0xa")](Ma("0x2e"),this.handleListStartCommand[Ma("0x1")](this)),e[Ma("0x30")][Ma("0x8")](this[Ma("0x19")][Ma("0x1")](this))}handleListStyleCommand(t,e={}){const n=this[Ma("0x2")][Ma("0x11")][Ma("0x2d")](Ma("0x10")),o=this[Ma("0x21")]();this[Ma("0x2")][Ma("0x9")][Ma("0x22")]((()=>{n[Ma("0x1c")](o,{commandName:Ma("0x1e"),commandParams:[{type:e[Ma("0x2a")]}],formatGroupId:"listStyle"})}))}[Ma("0xf")](t,e={}){const n=this[Ma("0x2")][Ma("0x11")][Ma("0x2d")](Ma("0x10")),o=this[Ma("0x2")][Ma("0x11")][Ma("0x2d")](Ma("0x1a")),r=this._getSuggestionBlocks((t=>o[Ma("0x20")](t)&&Ma("0x23")===t[Ma("0x26")](Ma("0x25"))));null!==r&&this.editor.model[Ma("0x22")]((()=>{n[Ma("0x1c")](r,{commandName:Ma("0x0"),commandParams:[{reversed:e[Ma("0x28")]}],formatGroupId:Ma("0x0")})}))}[Ma("0x33")](t,e={}){const n=this[Ma("0x2")][Ma("0x11")][Ma("0x2d")](Ma("0x10")),o=this.editor.plugins[Ma("0x2d")](Ma("0x1a")),r=this._getSuggestionBlocks((t=>o[Ma("0x20")](t)&&Ma("0x23")===t[Ma("0x26")](Ma("0x25"))));null!==r&&this[Ma("0x2")][Ma("0x9")][Ma("0x22")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ma("0x2e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[Ma("0x19")](t){const e=this.editor[Ma("0x16")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case Ma("0x1e"):o=Ma("0x13"),r={type:Ma("0x27"),content:Yo(e,o,Yo(e,this[Ma("0x34")](n[Ma("0xd")][0].type)))};break;case"listReversed":o=n[Ma("0xd")][0][Ma("0x28")]?Ma("0x5"):"*Format:* set order to regular",r={type:Ma("0x27"),content:Yo(e,o)};break;case Ma("0x2e"):o=Ma("0x1d"),r={type:Ma("0x27"),content:Yo(e,o,n[Ma("0xd")][0][Ma("0x15")])}}return r}_getSuggestionBlocksForListStyle(){const t=this[Ma("0x2")][Ma("0x11")].get(Ma("0x1a"));let e=Array[Ma("0x6")](this[Ma("0x2")][Ma("0x9")][Ma("0x32")][Ma("0x2b")][Ma("0x4")]());return e[Ma("0x17")](...t[Ma("0x29")](e)),e=[...new Set(e)],e}[Ma("0x12")](t){const e=this.editor[Ma("0x11")][Ma("0x2d")](Ma("0x1a"));let n=Array[Ma("0x6")](this[Ma("0x2")][Ma("0x9")][Ma("0x32")][Ma("0x2b")][Ma("0x4")]())[Ma("0x2f")](t);if(!n[Ma("0x24")])return null;n=e[Ma("0x29")](n);const o=[];for(const t of n)e[Ma("0x14")](t)&&o.push(t);return o}[Ma("0x34")](t){return"ELEMENT_"+this[Ma("0x2")].plugins[Ma("0x2d")](Ma("0x1b")).getListTypeFromListStyleType(t)[Ma("0x31")]()+Ma("0x1f")+t[Ma("0x31")]()[Ma("0x2c")](/-/g,"_")}}const Fa=["setAttribute","locale","join","tableCellProperties","tableCellWidth","get","format","tableAlignment","tableBorderColor","tableWidth","commandParams","getSuggestionCallback","TrackChangesEditing","getSelectionAffectedTableCells","selection","change","discard","tableCellHorizontalAlignment","tableCellBackgroundColor","accept","pluginName","TableCellPropertiesEditing","getContainedElement","tableCellHeight","*Format:* change table properties","registerCustomCallback","afterInit","enableCommand","*Format:* change table cell properties","editor","nodeAfter","tableCellVerticalAlignment","_descriptionFactory","subType","plugins","has","tableBorderWidth","model","_handlePropertyChange","data","TrackChangesTableProperties","findAncestor","tableHeight","batch","table","_suggestionFactory","start","formatBlock","removeAttribute","enqueueChange","tableProperties","document","getSuggestions","handleSuggestionDescription","handleDiscardAction","TablePropertiesEditing","getAttribute","markBlockFormat"];var Pa,Da;Pa=Fa,Da=462,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.tableProperties=[Ba("0xa"),"tableBorderStyle",Ba("0x26"),Ba("0x9"),Ba("0xb"),Ba("0x2c"),"tableBackgroundColor"],this[Ba("0x5")]=["tableCellBorderColor","tableCellBorderStyle","tableCellBorderWidth","tableCellPadding",Ba("0x6"),Ba("0x19"),Ba("0x14"),Ba("0x13"),Ba("0x21")]}static get[Ba("0x16")](){return Ba("0x2a")}[Ba("0x1c")](){const t=this[Ba("0x1f")][Ba("0x24")][Ba("0x7")]("TrackChangesEditing");if(this[Ba("0x1f")][Ba("0x24")][Ba("0x25")](Ba("0x39"))){for(const e of this[Ba("0x34")])t[Ba("0x1d")](e,((t,n)=>{const o=this.editor[Ba("0x27")][Ba("0x35")][Ba("0x10")].getFirstPosition()[Ba("0x2b")](Ba("0x2e"));this[Ba("0x28")](e,[o],this[Ba("0x34")],Ba("0x34"),t,n)}));t[Ba("0x2f")][Ba("0x1b")](Ba("0x31"),"tableProperties",Ba("0x15"),t[Ba("0x2f")][Ba("0xd")]("formatBlock",null,Ba("0x12"))),t[Ba("0x2f")].registerCustomCallback(Ba("0x31"),Ba("0x34"),"discard",((t,e)=>this[Ba("0x38")](this[Ba("0x34")],t,e))),t[Ba("0x2f")][Ba("0x1b")](Ba("0x31"),Ba("0x34"),Ba("0x4"),(()=>!1))}if(this[Ba("0x1f")].plugins[Ba("0x25")](Ba("0x17"))){for(const e of this.tableCellProperties)t[Ba("0x1d")](e,((t,n)=>{const o=this[Ba("0x1f")][Ba("0x24")].get("TableUtils")[Ba("0xf")](this.editor[Ba("0x27")][Ba("0x35")][Ba("0x10")]);this._handlePropertyChange(e,o,this[Ba("0x5")],Ba("0x5"),t,n)}));t._suggestionFactory[Ba("0x1b")]("formatBlock","tableCellProperties",Ba("0x15"),t[Ba("0x2f")][Ba("0xd")](Ba("0x31"),null,"discard")),t[Ba("0x2f")][Ba("0x1b")](Ba("0x31"),"tableCellProperties","discard",((t,e)=>this[Ba("0x38")](this.tableCellProperties,t,e))),t._suggestionFactory.registerCustomCallback(Ba("0x31"),Ba("0x5"),"join",(()=>!1))}t[Ba("0x22")].registerDescriptionCallback((t=>this[Ba("0x37")](t)))}[Ba("0x28")](t,e,n,o,r,s){const i=this[Ba("0x1f")][Ba("0x24")].get("TrackChangesEditing");this[Ba("0x1f")][Ba("0x27")][Ba("0x33")](s[Ba("0x2d")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(s);else{const e={};for(const o of n){const n=t[Ba("0x0")](o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x1")](t,{commandParams:[e]},[],o)}}))}[Ba("0x38")](t,e,n){const o=e[0][Ba("0x30")][Ba("0x20")],r=n[Ba("0xc")][0];this[Ba("0x1f")].model[Ba("0x11")]((e=>{for(const n of t)void 0!==r[n]?e[Ba("0x2")](n,r[n],o):e[Ba("0x32")](n,o)}))}[Ba("0x37")](t){if(t[Ba("0x29")])switch(t.subType){case Ba("0x34"):return{type:"format",content:Yo(this[Ba("0x1f")][Ba("0x3")],Ba("0x1a"))};case"tableCellProperties":return{type:Ba("0x8"),content:Yo(this.editor[Ba("0x3")],Ba("0x1e"))}}}_getSuggestion(t,e){const n=this[Ba("0x1f")][Ba("0x24")].get(Ba("0xe"));for(const o of n[Ba("0x36")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0x23")]===e&&n===t)return o}return null}}const Ua=["setTo","getDifference","low","skipNestingCheck","_suggestions","accepted","markBlockFormat","_registerDefaultCallbacks","_addSuggestionMarker","head","addMarker:suggestion","init","removeMarker","requires","$textProxy","updateSuggestion","containsPosition","insertion","_findSuggestions","editingDowncast","getShiftedBy","acceptAllSuggestions","isIntersectingWithRange","subType","isInsideObject","_customCallbacks","lowest","differ","move","bindElementToMarker","add","getSuggestionCallback","_suggestionFactory","nodeBefore","_joinSuggestions","dataDowncast","registerPostFixer","insertContent","getItems","addHighlight","insertion:chain","batch","isAtEnd","markDeletion","forceDefaultExecution","config","targetPosition","highest","removeMarkers","discard","isUndo","discardSuggestion","parent","range","_updateSuggestionData","element","isBefore","insertion:","activeMarkers","high","backward","newRange","upcast","$marker","suggestionChanged","always","value","dataToMarker","registerCustomCallback","split","plugins","isAtStart","after","commands","deleteContent","addUser","_suggestionState","pluginName","ck-suggestion-marker--active","Users","conversion","values","commentThread","markerToData","createPositionAt","rejected","getSuggestion","splice","_adapter","name","elementToElement","getAttribute","getIntersection","update:suggestion","getRanges","type","formatInline:","consume","from","markMultiRangeBlockFormat","track-changes-adapter-missing-getsuggestion","showSuggestionHighlights","external:","fetchCommentThread","suggestion","clear","hasComments","_splitMarkerName","change:_saved","authorName","markMultiRangeDeletion","end","adapter","fire","push","getFirstRange","_enabledCommands","creator","isAfter","size","commandName","getChangedMarkers","never","addClass","isInContent","sort","default","insertion:join","formatInline:accept","then","refresh","isCollapsed","markerToHighlight","moveTargetPosition","deletion:chain","insert","data","_setSuggestionData","consumable","author","createSelection","setAttribute","TrackChangesEditing","_checkSuggestionCorrectness","_refreshSuggestionsChain","markers","documentSelection","formatInline:join","return","multi","formatBlock","_defaultCallbacks","includes","isMultiRange","PendingActions","getCustomProperty","elementStart","map","formatBlock:join","splitPosition","addSuggestionData","document","filter","_isForcedDefaultExecutionBlock","removeComment","suggestionLoaded","stop","addMarker:suggestion:formatBlock","previous","markMultiRangeInsertion","get","markerReady","createRangeIn","removeAttribute","formatInline:discard","isOwn","createPositionBefore","has","for","enableCommand","addCommentThread","reconvertMarker","join","root","getMarkers","start","discardAllSuggestions","delete","multipleBlocks","editing","writer","ready","deletion:","_onDiscard","group","CommentsRepository","getNearestSelectionRange","trackChanges.trackFormatChanges","getMultiRangeId","isTouching","formatInline:chain","suggestion:","isNextTo","getWalker","getCommentThread","item","containsItem","listenTo","_cutOutSuggestionMarker","editor","formatBlock:discard","_mergeNestedSuggestions","createdAt","fromRange","_breakSuggestionMarker","_rangeIsInLocalUserInsertion","_handleNewSuggestionMarker","acceptSelectedSuggestions","_setSuggestionRange","isObject","execute","ck-suggestion-marker","trackChangesCommand","accept","_commentsRepository","data-suggestion","isRemovable","getSuggestions","nodeAfter","formatBlock:","track-changes-suggestion-data-mismatch","_getSuggestionData","next","markInsertion","_getAuthorFromId","createElement","PENDING_ACTION_SUGGESTION","buildSuggestion","every","remove","_editor","locale","position","notReady","before","trackChanges.mergeNestedSuggestions","setSelection","dataReady","authoredAt","getUser","hasCommentThread","_model","@external","detach","formatInline","forward","isBlock","applyOperation","formatBlock:accept","containsRange","unbindElementFromMarkerName","containsRangeInObject","_createSuggestion","getRange","createPositionAfter","_getExternalAuthor","enableReadOnlyMode","formatBlock:chain","catch","isEqual","deletion","length","track-changes-suggestion-not-found","_removeSuggestion","unbind","widget","marker-count","collaboration.channelId","resolve","removed","addRange","set","attributes","rootName","change","addMarkerName","createRange","updateMarker","containerElement","track-changes-adapter-already-set","isSelectable","rethrowUnexpectedError","mapper","change:data","isLimit","schema","_saved","$graveyard","toJSON","oldRange","selection","acceptSuggestion","getLastMatchingPosition","addComment","ck-suggestion-marker-formatBlock","markerName","_trackFormatChanges","some","getAncestors","track-changes-command-not-found","model","clone","options","ck-suggestion-marker-","addSuggestion","getAllAdjacentSuggestions","formatGroupId","discardSelectedSuggestions","markInlineFormat","suggestion-type","change:activeMarkers","define","removeMarker:suggestion:formatBlock"];var Ga,Ha;Ga=Ua,Ha=429,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Va=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[Va("0xe6")](){return[Va("0x59"),s.Users,t.PendingActions,cr,Cr,Rr,Mr,Br,Wr,Jr,es,Oa,xs,us,bs,ys,Ls,Ps,Gs,Ks,Qs,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,ra,ma,ja,ca,Ea,ka]}static get[Va("0x126")](){return Va("0x24")}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t)))[Va("0x4c")]("")}super(t),this.set(Va("0x113"),[]),this.on(Va("0xd6"),((e,n,o,r)=>{this._model[Va("0xb2")]((()=>{for(const e of[...r,...o])this._model[Va("0x27")].has(e)&&t[Va("0x53")][Va("0x4b")](e)}))})),this._descriptionFactory=new rr(this[Va("0x67")][Va("0xcc")][Va("0xbd")],this[Va("0x67")][Va("0x87")]),this[Va("0x131")]=null,this._suggestionFactory=new za(this.editor),this._suggestions=new Map,this[Va("0x76")]=t[Va("0x11f")][Va("0x40")](Va("0x59")),this[Va("0xa")]=new Set,this[Va("0x91")]=this[Va("0x67")][Va("0xcc")],this._suggestionState=new WeakMap,this[Va("0x39")]=!1,t[Va("0x106")][Va("0xd7")](Va("0x5b"),Va("0x14")),this[Va("0xc8")]=t[Va("0x106")][Va("0x40")](Va("0x5b")),t.config.define(Va("0x8b"),!0),this[Va("0x69")]=t[Va("0x106")][Va("0x40")](Va("0x8b")),this[Va("0x74")]=new u(t,this[Va("0xa")]),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,54])}[Va("0xe4")](){const t=this.editor;t[Va("0x129")][Va("0x48")](Va("0xec"))[Va("0x1a")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Va("0x1")](t[Va("0xc7")]),o=[Va("0x73"),"ck-suggestion-marker-"+n];let r=3e3;return this[Va("0x113")][Va("0x2e")](t[Va("0xc7")])&&(o.push(Va("0x127")),r=3010),"deletion"==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t.conversion[Va("0x48")](Va("0xfc"))[Va("0xf7")]((e=>{e.on(Va("0xe3"),((e,n,o)=>{if(!o.options[Va("0x13e")])return;const r=n[Va("0x63")];if(!r)return;const s=o[Va("0xba")].toViewElement(r);t[Va("0xcc")].schema[Va("0x71")](r)&&s&&!s[Va("0x31")](Va("0xa9"))&&s.is(Va("0xb6"))&&(0,x.toWidget)(s,o.writer)}),{priority:Va("0x114")})})),t[Va("0x129")][Va("0x48")](Va("0xfc"))[Va("0x1a")]({model:Va("0x141"),view:(t,e)=>{if(!e[Va("0xce")][Va("0x13e")])return null;const{type:n}=this[Va("0x1")](t[Va("0xc7")]);return{classes:["ck-suggestion-marker",Va("0xcf")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o.item)return;if(o[Va("0x63")].is(Va("0xc2")))return void r[Va("0x20")][Va("0x13a")](o[Va("0x63")],n[Va("0x132")]);const s=r[Va("0xba")].toViewElement(o[Va("0x63")]);if(!o[Va("0x63")].is(Va("0x110"))||!t.model.schema[Va("0x96")](o.item)||s[Va("0x31")](Va("0x100")))return;const{id:i}=this[Va("0x1")](o[Va("0xc7")]);r[Va("0x54")][Va("0x11")](["ck-suggestion-marker",Va("0xc6")],s),r[Va("0x54")][Va("0x23")](Va("0x77"),i,s),r.mapper[Va("0xf6")](s,o.markerName),e&&(this[Va("0x113")][Va("0x2e")](o[Va("0xc7")])?r.writer.addClass(Va("0x127"),s):r[Va("0x54")].removeClass(Va("0x127"),s));for(const e of t[Va("0xcc")][Va("0x42")](o.item)[Va("0xff")]())r[Va("0x20")].consume(e,n.name);r.consumable.consume(o[Va("0x63")],n[Va("0x132")])};t[Va("0x129")][Va("0x48")](Va("0xfc"))[Va("0xf7")]((t=>{t.on(Va("0x3d"),((t,e,o)=>{o.options[Va("0x13e")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Va("0x108")})})),t.conversion[Va("0x48")]("dataDowncast")[Va("0x12c")]({model:Va("0x141"),view:(t,e)=>e[Va("0xce")][Va("0x13e")]?null:{group:"suggestion",name:t.substr(11)}}),t[Va("0x129")][Va("0x48")](Va("0x117"))[Va("0x133")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Va("0x5f")+t.getAttribute(Va("0xd5"))+":"+t.getAttribute("id");return t.getAttribute(Va("0xaa"))&&(n+=":"+t[Va("0x134")]("marker-count")),e[Va("0x81")](Va("0x118"),{"data-name":n})}}),t[Va("0x129")][Va("0x48")]("upcast")[Va("0x11c")]({view:Va("0x141")}),t[Va("0x129")][Va("0x48")](Va("0xec")).add((t=>{t.on(Va("0x3d"),n(),{priority:Va("0x114")})})),t[Va("0x129")][Va("0x48")](Va("0xec"))[Va("0xf7")]((t=>{t.on(Va("0xd8"),((t,e,n)=>{const o=n[Va("0xba")].markerNameToElements(e[Va("0xc7")]);if(o)for(const t of o)t[Va("0x31")](Va("0x100"))||(n[Va("0x54")].removeClass([Va("0x73"),"ck-suggestion-marker-formatBlock",Va("0x127")],t),n[Va("0x54")][Va("0x43")](Va("0x77"),t),n.mapper[Va("0x9a")](t,e[Va("0xc7")]))}),{priority:"high"})})),t[Va("0xcc")][Va("0x37")][Va("0xfd")]((e=>{let n=!1;const o=Array.from(t[Va("0xcc")][Va("0x37")][Va("0xf4")][Va("0xf")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Va("0x1")](x);if(Va("0x141")!==o)continue;const d=this[Va("0xdd")].get(l);if(null!=a.newRange)if("formatInline"==c&&(n=n||Xa(a[Va("0x116")],x,e,t[Va("0xcc")][Va("0xbd")])),a[Va("0x116")][Va("0x19")]||Va("0xbf")==a[Va("0x116")][Va("0x4d")][Va("0xb1")]||Va("0x2c")==c&&!Ja(a[Va("0x116")])||"deletion"==c&&(qa(i=a[Va("0x116")])||(s=i)[Va("0x4f")][Va("0x10d")]==s[Va("0x5")][Va("0xfa")]&&s[Va("0x4f")][Va("0x103")]))e[Va("0xe5")](x),n=!0;else{if(!d||!d[Va("0x12")])continue;r[Va("0xf7")](d)}}var s,i;return r[Va("0xd")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),t[Va("0xcc")][Va("0x37")].registerPostFixer((e=>{let n=!1;for(const o of t[Va("0xcc")][Va("0x37")][Va("0xf4")].getChanges()){if(Va("0x1d")!=o[Va("0x138")])continue;const r=o[Va("0x88")].getShiftedBy(o[Va("0xa5")]);if(r[Va("0x103")])for(const s of this._suggestions[Va("0x12a")]()){if(s[Va("0x2f")]||!s[Va("0x12")])continue;if(Va("0x2c")!=s.type)continue;const i=s[Va("0x9")]();if(i.start[Va("0x10d")]!=i.end.parent&&i[Va("0x5")].isEqual(o.position)){const o=t[Va("0xcc")].createRange(i[Va("0x4f")],r);e[Va("0xb5")](s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Va("0xcc")][Va("0x27")].on(Va("0x136"),((t,e,n)=>{if(null==n){const{id:t}=this[Va("0x1")](e[Va("0x132")]),n=this[Va("0xdd")][Va("0x40")](t);n&&n[Va("0xb3")](e[Va("0x132")])}})),t[Va("0xcc")].document.on(Va("0xbb"),(()=>{const e=Array.from(t.model[Va("0x37")][Va("0xf4")].getChangedMarkers())[Va("0x38")]((t=>Va("0x141")===this[Va("0x1")](t[Va("0x132")])[Va("0x58")]));if(0===e[Va("0xa5")])return;e[Va("0x13")](((t,e)=>{const n=t[Va("0x1e")].oldRange,o=e[Va("0x1e")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Va("0x4f")][Va("0x111")](o[Va("0x4f")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this._splitMarkerName(t);if(null===r[Va("0xc1")]){const e=this._handleNewSuggestionMarker(t);o[Va("0xf7")](e)}else{const t=this[Va("0xdd")][Va("0x40")](e);null!==r[Va("0x116")]||t[Va("0x12")]?(n[Va("0xf7")](t[Va("0xe2")]),o.add(t)):this[Va("0xa7")](t)}}o[Va("0xd")]>0&&this[Va("0x26")](o);for(const t of n)this[Va("0x7")](Va("0x119"),t)})),t[Va("0xcc")].on(Va("0x97"),((e,n)=>{const o=n[0];if(!this._suggestions[Va("0xd")])return;if(!o.isDocumentOperation)return;if(o.batch[Va("0x10b")]||!o[Va("0x102")].isLocal)return;let r,s;switch(o[Va("0x138")]){case"insert":r=t[Va("0xcc")][Va("0x12d")](o[Va("0x88")]),s=r[Va("0xed")](o.howMany);break;case"split":r=t[Va("0xcc")][Va("0x12d")](o[Va("0x35")]),s=t.model[Va("0x12d")](o[Va("0x1b")]);break;case Va("0xf5"):r=t[Va("0xcc")][Va("0x12d")](o[Va("0x107")]),s=r.getShiftedBy(o.howMany);break;default:return}const i=t[Va("0xcc")][Va("0xb4")](r,s);t[Va("0xcc")].change((()=>{for(const{suggestion:t,meta:e}of this[Va("0xeb")](i)){if(t[Va("0x2f")])continue;if("formatInline"==t[Va("0x138")])continue;const n=t[Va("0x1e")]&&t.data[Va("0x52")];(Va("0x2c")!=t.type||Va("0x11e")==o.type&&!n)&&(e.containsRangeInObject||Va("0xea")==t[Va("0x138")]&&e[Va("0x45")]||t[Va("0x9")]()[Va("0x99")](i)&&this[Va("0x6c")](t,r,s))}}))}),{priority:Va("0xf3")}),t[Va("0xcc")].on(Va("0x123"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Va("0x74")][Va("0x11b")])return;if(o.isCollapsed)return;const s=t[Va("0xcc")].schema,{start:i,end:x}=o[Va("0x9")](),a=i[Va("0x7a")]&&s[Va("0xbc")](i.nodeAfter)?null:s[Va("0x5a")](i,Va("0x95")),c=x[Va("0xfa")]&&s[Va("0xbc")](x[Va("0xfa")])?null:s[Va("0x5a")](x,Va("0x115")),l=t[Va("0xcc")].createRange(a?a[Va("0x4f")]:i,c?c.end:x);t[Va("0xcc")][Va("0xb2")]((e=>{this.markDeletion(l);const n=t[Va("0xcc")][Va("0xbd")][Va("0x5a")](l.start);o.is(Va("0x28"))?e[Va("0x8c")](n):o[Va("0xd9")](n)})),e.stop()}),{priority:e.priorities.normal+10}),t[Va("0xcc")].on(Va("0xfe"),((e,n)=>{const o=n[n[Va("0xa5")]-1];o&&o.forceDefaultExecution||this[Va("0x39")]||this[Va("0x74")][Va("0x11b")]&&(t.model[Va("0xb2")]((()=>{let o=t[Va("0xcc")][Va("0xfe")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Va("0x2a")]=o[Va("0xcd")]();const r=o[Va("0x5")].nodeBefore,s=t[Va("0xcc")][Va("0xbd")];r&&s[Va("0x96")](r)&&!s[Va("0x71")](r)&&(o=t.model[Va("0xb4")](o[Va("0x4f")],t[Va("0xcc")][Va("0x12d")](r,Va("0x5")))),this[Va("0x7f")](o)})),e[Va("0x3c")]())}),{priority:Va("0x114")}),this[Va("0x67")][Va("0x122")].add("trackChanges",this[Va("0x74")]),this[Va("0x49")]("trackChanges");const o=new p(t,this[Va("0xdd")]);t.commands[Va("0xf7")](Va("0xc3"),o),this.enableCommand(Va("0xc3"));const r=new C(t,this[Va("0xdd")]);t.commands[Va("0xf7")](Va("0x10c"),r),this.enableCommand(Va("0x10c")),t.commands.add(Va("0xee"),new F(t,o,this[Va("0xdd")])),this.enableCommand(Va("0xee")),t[Va("0x122")][Va("0xf7")](Va("0x50"),new F(t,r,this[Va("0xdd")])),this.enableCommand(Va("0x50")),t[Va("0x122")][Va("0xf7")](Va("0x6f"),new U(t,o,this._suggestions)),this.enableCommand("acceptSelectedSuggestions"),t[Va("0x122")][Va("0xf7")](Va("0xd3"),new U(t,r,this._suggestions)),this[Va("0x49")]("discardSelectedSuggestions");const s=t[Va("0x11f")].get("CommentsRepository");this[Va("0x65")](s,Va("0xc5"),((t,{threadId:e})=>{const n=this[Va("0xdd")][Va("0x40")](e);n&&n[Va("0x12b")]&&1===n[Va("0x12b")][Va("0xa5")]&&this[Va("0x10f")](e,{hasComments:!0})}),{priority:Va("0xdb")}),this.listenTo(s,Va("0x3a"),((t,{threadId:e})=>{const n=this[Va("0xdd")][Va("0x40")](e);n&&n.commentThread&&!n[Va("0x12b")].length&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:Va("0xdb")})}set adapter(t){if(this[Va("0x131")])throw new e.CKEditorError(Va("0xb7"),this);this[Va("0x131")]=t}get[Va("0x6")](){return this[Va("0x131")]}[Va("0x79")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Va("0xdd")][Va("0x12a")]())t&&!e[Va("0x12")]||n.push(e);return e?n[Va("0x33")]((t=>t[Va("0xc0")]())):n}[Va("0x12f")](t){const n=this._suggestions[Va("0x40")](t);if(!n)throw new e.CKEditorError(Va("0xa6"),this);return n}hasSuggestion(t){return this._suggestions[Va("0x47")](t)}[Va("0x36")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t.type.split(":"),i=this[Va("0xdd")][Va("0x40")](n)||this[Va("0x9c")](r,s,n,e,o);if(this._addThreadToSuggestion(i),this[Va("0x25")](i,r,s||null,e),i[Va("0x6a")]=t[Va("0x6a")],o&&o[Va("0x92")]){const t=o[Va("0x92")],e=this[Va("0x9f")](t[Va("0x3")]);i[Va("0x8e")]=t[Va("0x6a")],i[Va("0x21")]=e,i.isExternal=!0}else i[Va("0x8e")]=t[Va("0x6a")];switch(t[Va("0x1e")]&&(i[Va("0x1e")]=t[Va("0x1e")]),t.attributes&&(i[Va("0xb0")]=t[Va("0xb0")]),this[Va("0x131")]&&this[Va("0x131")].addSuggestion||(i[Va("0xbe")]=!0),this[Va("0x125")][Va("0x40")](i)){case Va("0x89"):this[Va("0x125")].set(i,Va("0x8d"));break;case Va("0x41"):i[Va("0x12")]?(this[Va("0x125")][Va("0xaf")](i,Va("0x55")),this.fire(Va("0x3b"),i)):this[Va("0x125")][Va("0xaf")](i,Va("0xad"))}return i}[Va("0xc3")](t){this[Va("0x105")]((()=>{this[Va("0x67")][Va("0xcc")][Va("0xb2")]((()=>{for(const e of t[Va("0xd1")]())e[Va("0x75")]()}))}))}[Va("0x10c")](t){this[Va("0x105")]((()=>{this[Va("0x67")][Va("0xcc")].change((()=>{for(const e of t[Va("0xd1")]())e.discard()}))}))}enableCommand(t,n){const o=this[Va("0x67")][Va("0x122")][Va("0x40")](t);if(!o)throw new e.CKEditorError(Va("0xcb"),this,{commandName:t});this[Va("0xa")].add(o),n&&o.on(Va("0x72"),((t,e)=>{this[Va("0x74")][Va("0x11b")]&&(this[Va("0x39")]||e[Va("0xa5")]>0&&e[e[Va("0xa5")]-1]&&e[e[Va("0xa5")]-1][Va("0x105")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Va("0x3c")]()))}),{priority:Va("0x114")})}[Va("0x105")](t){let n,o;const r=this._isForcedDefaultExecutionBlock;this[Va("0x39")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Va("0xb9")](o,this),n}[Va("0x7f")](t,n=null,o={}){if(t[Va("0x19")])return null;const r=this[Va("0x67")][Va("0x11f")][Va("0x40")](Va("0x128")).me;for(const{suggestion:e,meta:o}of this[Va("0xeb")](t,Va("0xea")))if(o.isOwn){if(!o[Va("0x60")]){if(!this[Va("0x69")]&&o.containsRangeInObject)continue;return e}if(n==e[Va("0xf0")]){const n=e[Va("0x9")]();return n[Va("0x4f")].isEqual(t[Va("0x5")])?this._setSuggestionRange(e,this[Va("0x91")][Va("0xb4")](t[Va("0x4f")],n[Va("0x5")])):this[Va("0x70")](e,this[Va("0x91")][Va("0xb4")](n[Va("0x4f")],t[Va("0x5")])),e}}const s=(0,e.uid)(),i=r.id,x=n?Va("0x112")+n:Va("0xea"),a=this[Va("0x1f")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Va("0xe1")](x,s,i,t),a}[Va("0x3f")](t,n=Va("0x2b"),o={}){const r=this[Va("0x67")].plugins.get(Va("0x128")).me,s=this[Va("0xf9")][Va("0xf8")](Va("0xea"),n,Va("0x4c"));for(const e of this.getSuggestions())if(e.author.id==r.id&&Va("0xea")==e[Va("0x138")]&&e[Va("0xf0")]==n&&(s(e.getRanges(),t)||s(t,e[Va("0x137")]()))){for(const n of t)e[Va("0xae")](n);return e}if(this[Va("0x69")])for(const e of t)for(const{suggestion:n,meta:o}of this[Va("0xeb")](e,Va("0xea"))){if(!o.isOwn)continue;let e=!0;for(const o of n[Va("0x137")]())for(const n of t)if(!o[Va("0x99")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this[Va("0x1f")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Va("0xe1")](a,i,x,e,Zo[Va("0x5c")]());return c}[Va("0xd4")](t,n,o=null,r={}){if(o=o||$a(n),t[Va("0x19")])return null;if(Va("0x10")===this._trackFormatChanges){const e=this._suggestionFactory[Va("0xf8")](Va("0x94"),o,Va("0x75"));return this[Va("0x105")]((()=>e([t],n,r))),null}const s=this[Va("0x67")][Va("0x11f")][Va("0x40")]("Users").me,i=[];if(Va("0x11a")!==this[Va("0xc8")])for(const{suggestion:e,meta:n}of this[Va("0xeb")](t,Va("0xea")))n.isOwn&&!n[Va("0xf1")]&&i.push(...e[Va("0x137")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Va("0x135")](o);e&&n[Va("0x8")](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][Va("0xda")](t);n[Va("0x130")](e,1,...o),e+=o[Va("0xa5")]}}return n}(t,i);x[Va("0xa5")]&&this._model[Va("0xb2")]((()=>{for(const t of x){const e=this._suggestionFactory[Va("0xf8")]("formatInline",o,"accept");this[Va("0x105")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[Va("0x4f")],a=t.end;for(const{suggestion:e,meta:n}of this[Va("0xeb")](t,Va("0x94"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const r=e.getFirstRange();if(r[Va("0x99")](t,!0))return null;x=x[Va("0x111")](r.start)?x:r[Va("0x4f")],a=a[Va("0xc")](r[Va("0x5")])?a:r[Va("0x5")],i?r[Va("0x4f")].isBefore(i.getFirstRange().start)?(i[Va("0x109")](),i=e):e.removeMarkers():i=e}const c=this[Va("0x91")][Va("0xb4")](x,a);if(i)this[Va("0x70")](i,c);else{const t=(0,e.uid)(),i=s.id;this[Va("0x1f")]({id:t,type:Va("0x139")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this._addSuggestionMarker("formatInline:"+o,t,i,c)}}return null}[Va("0xdf")](t,n,o=[],r=null,s={}){n[Va("0xd2")]||(n[Va("0xd2")]=n[Va("0xe")]),n[Va("0x52")]=t.is(Va("0x10e")),r=r||$a(n);const i=o[Va("0x33")]((t=>Qa(t,this[Va("0x91")]))),x=t.is(Va("0x10e"))?t:Qa(t,this[Va("0x91")]);if(Va("0x10")===this[Va("0xc8")]){const t=this[Va("0xf9")][Va("0xf8")](Va("0x2c"),r,"accept");return this[Va("0x105")]((()=>t([x],n,s))),null}i[Va("0x8")](x);let a=!0;for(const t of i)if(!this[Va("0x6d")](t)){a=!1;break}if(a&&Va("0x11a")!==this[Va("0xc8")]){const t=this[Va("0xf9")][Va("0xf8")](Va("0x2c"),r,Va("0x75"));return this[Va("0x105")]((()=>t([x],n,s))),null}let c=null,l=x[Va("0x4f")],d=x.end;for(const{suggestion:t,meta:e}of this[Va("0xeb")](x,Va("0x2c"))){if(!e.isOwn||e[Va("0x60")]||e[Va("0x9b")]||e[Va("0xf1")])continue;if(t[Va("0x1e")].formatGroupId!=n.formatGroupId)continue;const o=t[Va("0x9")]();if(t[Va("0xf0")]==r){if(o[Va("0x99")](x,!0))return null;l=l.isBefore(o[Va("0x4f")])?l:o[Va("0x4f")],d=d.isAfter(o[Va("0x5")])?d:o[Va("0x5")],c?o[Va("0x4f")][Va("0x111")](c[Va("0x9")]()[Va("0x4f")])?(c[Va("0x109")](),c=t):t[Va("0x109")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor[Va("0x11f")][Va("0x40")](Va("0x128")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[Va("0x91")].createRange(l,d)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this._addSuggestionMarker("formatBlock:"+r,g,m,this._model[Va("0xb4")](l,d)),t}}[Va("0x13c")](t,n,o=[],r=null,s={}){n[Va("0xd2")]||(n.formatGroupId=n[Va("0xe")]);const i=t[0];n[Va("0x52")]=i.is("range"),r=r||$a(n);const x=o[Va("0x33")]((t=>Qa(t,this[Va("0x91")]))),a=i.is(Va("0x10e"))?t:t[Va("0x33")]((t=>Qa(t,this[Va("0x91")])));if(Va("0x10")===this[Va("0xc8")]){const t=this[Va("0xf9")][Va("0xf8")](Va("0x2c"),r,"accept");return this.forceDefaultExecution((()=>t(a,n,s))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&Va("0x11a")!==this._trackFormatChanges){const t=this[Va("0xf9")][Va("0xf8")](Va("0x2c"),r,Va("0x75"));return this[Va("0x105")]((()=>t(a,n,s))),null}const l=this[Va("0x67")][Va("0x11f")][Va("0x40")](Va("0x128")).me;for(const t of this[Va("0x79")]()){if(t[Va("0x21")].id!=l.id)continue;if(Va("0x2c")!=t.type||t.data[Va("0xd2")]!=n[Va("0xd2")])continue;const e=t[Va("0xf0")]==r;for(let n=0;n<a[Va("0xa5")];n++){const o=a[n];for(const r of t[Va("0x4e")]()){const s=r[Va("0x9d")]();if(o[Va("0xa3")](s)){e?(a[Va("0x130")](n,1),n--):t[Va("0xe5")](r[Va("0x132")]);break}}}}if(0==a[Va("0xa5")])return null;const d=this[Va("0xf9")][Va("0xf8")](Va("0x2c"),r,Va("0x4c"));for(const t of this[Va("0x79")]())if(t[Va("0x21")].id==l.id&&Va("0x2c")==t[Va("0x138")]&&t[Va("0x1e")][Va("0xd2")]==n[Va("0xd2")]&&t.subType==r&&(d(t[Va("0x137")](),a)||d(a,t[Va("0x137")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=Va("0x7b")+r,f=this[Va("0x1f")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[Va("0xe1")](m,u,g,t,Zo[Va("0x5c")]());return f}[Va("0x104")](t,n=null,o={}){if(t[Va("0x19")])return null;const r=this.editor[Va("0x11f")][Va("0x40")](Va("0x128")).me,s=new i.LiveRange(t.start,t[Va("0x5")]);for(const{suggestion:t,meta:e}of this[Va("0xeb")](s,Va("0xea")))if(e[Va("0x45")]&&!e.isNextTo)if(t[Va("0x2f")]){const e=t[Va("0x137")]().filter((t=>Va("0xbf")!=t[Va("0x4d")][Va("0xb1")]));if(e[Va("0x84")]((t=>s[Va("0x99")](t,!0)))&&t.discard(),e.some((t=>t[Va("0x99")](s,!0)))){const t=this[Va("0xf9")][Va("0xf8")]("deletion",n,Va("0x75"));return this[Va("0x105")]((()=>t([s],null,o))),null}}else{const e=s.getIntersection(t.getFirstRange());null!==e&&t[Va("0x57")]([e],null,o)}if(s[Va("0x93")](),s.isCollapsed||Va("0xbf")==s.root[Va("0xb1")])return null;let x=null,a=s[Va("0x4f")],c=s.end;for(const{suggestion:t,meta:e}of this[Va("0xeb")](s,Va("0xa4")))if(e.isOwn)if(t[Va("0x2f")]&&this[Va("0x69")]){let e=!0;for(const n of t[Va("0x137")]()){if(n[Va("0x99")](s,!0))return t;s.containsRange(n)||(e=!1)}e&&t[Va("0x10a")]()}else{const n=t.getFirstRange();if(n[Va("0x99")](s,!0)){if(!this[Va("0x69")]&&e[Va("0x9b")])continue;return t}a=a[Va("0x111")](n[Va("0x4f")])?a:n[Va("0x4f")],c=c[Va("0xc")](n[Va("0x5")])?c:n[Va("0x5")],x?n[Va("0x4f")].isBefore(x.getFirstRange()[Va("0x4f")])?(x[Va("0x109")](),x=t):t[Va("0x109")]():x=t}if(x)return this[Va("0x70")](x,this._model[Va("0xb4")](a,c)),x;{const t=(0,e.uid)(),s=this._model[Va("0xb4")](a,c),i=r.id,x=n?Va("0x56")+n:Va("0xa4"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Va("0xe1")](x,t,i,s),l}}[Va("0x4")](t,n=Va("0x2b"),o={}){const r=this[Va("0x67")][Va("0x11f")].get("Users").me,s=t[Va("0x33")]((t=>new i.LiveRange(t.start,t[Va("0x5")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[Va("0xeb")](t,Va("0xea")))n[Va("0x45")]&&!n.isNextTo&&x[Va("0xf7")](e);for(const e of x)if(e[Va("0x2f")]){const r=e.getRanges();if((!e[Va("0xb0")]||!e.attributes[Va("0xdc")])&&r[Va("0x84")]((t=>s.some((e=>e[Va("0x99")](t,!0)))))&&e[Va("0x10a")](),s[Va("0x84")]((t=>r[Va("0xc9")]((e=>e[Va("0x99")](t,!0)))))){const e=this[Va("0xf9")][Va("0xf8")]("deletion",n,"accept");return this[Va("0x105")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(s[Va("0xc9")]((e=>e[Va("0x99")](t,!0)))&&e[Va("0x10a")](),s[Va("0x84")]((e=>t[Va("0x99")](e,!0)))){const t=this[Va("0xf9")].getSuggestionCallback(Va("0xa4"),n,"accept");return this[Va("0x105")]((()=>t(s,null,o))),null}}const a=this[Va("0xf9")][Va("0xf8")](Va("0xa4"),n,Va("0x4c"));let c=null;for(const t of this.getSuggestions())if(t[Va("0x21")].id==r.id&&t[Va("0x12")]&&"deletion"==t[Va("0x138")]&&t[Va("0xf0")]==n&&(a(t[Va("0x137")](),s)||a(s,t[Va("0x137")]())))if(c){if(t[Va("0x12b")]&&t[Va("0x12b")][Va("0xa5")])continue;for(const e of t.getRanges())c[Va("0xef")](e)||c[Va("0xae")](e);t.removeMarkers()}else{c=t;for(const e of s)t[Va("0xef")](e)||t[Va("0xae")](e)}if(c)return c;x[Va("0x142")]();for(const t of s)for(const{suggestion:e,meta:n}of this[Va("0xeb")](t,Va("0xa4")))n[Va("0x45")]&&x.add(e);for(const t of x){const e=t[Va("0x137")]();if((!o||!o[Va("0xdc")])&&s[Va("0x84")]((t=>e[Va("0xc9")]((e=>e[Va("0x99")](t,!0))))))return t;(!t[Va("0xb0")]||!t[Va("0xb0")][Va("0xdc")])&&e[Va("0x84")]((t=>s.some((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=r.id,u=Va("0x56")+n,g=this[Va("0x1f")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t[Va("0x93")](),t[Va("0x19")]||Va("0xbf")==t.root.rootName||this[Va("0xe1")](u,l,d,t,Zo[Va("0x5c")]());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[Va("0x91")][Va("0xb2")]((t=>{t[Va("0xb5")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[Va("0x106")][Va("0x40")](Va("0xab"));this._commentsRepository[Va("0x90")](e)||this[Va("0x76")][Va("0x4a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Va("0x76")][Va("0x62")](e);o[Va("0xa8")](Va("0x78")),o[Va("0x78")]=!1,t[Va("0x12b")]=o}[Va("0x25")](t,n,o,r){if(t[Va("0x138")]!=n||t[Va("0xf0")]!=o||t.creator.id!=r)throw this.editor[Va("0xa0")](Va("0x7c")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Va("0x66")](t,n){const o=t[Va("0x9")]();if(n[Va("0xa3")](o))t[Va("0x109")]();else if(o[Va("0x99")](n)){const r=this[Va("0x91")][Va("0x12d")](n[Va("0x4f")].nodeBefore,Va("0x5"));this[Va("0x70")](t,this._model[Va("0xb4")](o.start,r));const s=(0,e.uid)(),i=t[Va("0xb")].id,x=t[Va("0x138")]+":"+t[Va("0xf0")];this._setSuggestionData({id:s,type:x,createdAt:new Date,authorId:i,data:t[Va("0x1e")],attributes:t.attributes});const a=this[Va("0x91")][Va("0x12d")](n.end[Va("0x10d")],Va("0x121")),c=this[Va("0x91")].createRange(a,o[Va("0x5")]);this._addSuggestionMarker(x,s,i,c)}else if(o[Va("0xe9")](n[Va("0x4f")])){const e=this[Va("0x91")][Va("0x12d")](n.start[Va("0xfa")],Va("0x5"));this[Va("0x70")](t,this[Va("0x91")][Va("0xb4")](o.start,e))}else{const e=this[Va("0x91")][Va("0x12d")](n[Va("0x5")][Va("0x10d")],Va("0x121"));this[Va("0x70")](t,this[Va("0x91")].createRange(e,o.end))}}[Va("0x6d")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Va("0xea"))){if(!n[Va("0x45")])continue;const o=e[Va("0x137")]();for(const e of o)if(!t.getDifference(e)[Va("0xa5")])return!0}return!1}[Va("0x80")](t){const n=this[Va("0x67")][Va("0x11f")].get(Va("0x128"))[Va("0x8f")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Va("0x9f")](t){const e=this.editor[Va("0x11f")][Va("0x40")]("Users"),n=(0,s.hashObject)(Va("0x13f")+t);return e.getUser(n)||e[Va("0x124")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const s=this[Va("0x80")](o),i=this[Va("0xf9")][Va("0x83")](t,e,n,s,r,(t=>this[Va("0x10f")](n,{attributes:t})));return this[Va("0x65")](i,Va("0x75"),(()=>{this._updateSuggestionData(n,{state:Va("0xde")})}),{priority:Va("0x114")}),this[Va("0x65")](i,Va("0x10a"),(()=>{this[Va("0x10f")](n,{state:Va("0x12e")})}),{priority:"high"}),this[Va("0xdd")][Va("0xaf")](n,i),this[Va("0x125")][Va("0xaf")](i,"notReady"),i}[Va("0x1")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[Va("0xa5")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Va("0x6c")](t,n,o){const r=t.getFirstRange(),s=r[Va("0x4f")],i=r.end;this[Va("0x70")](t,this[Va("0x91")].createRange(s,n));const x=(0,e.uid)(),a=t[Va("0xb")].id,c=t.type+(t[Va("0xf0")]?":"+t[Va("0xf0")]:"");this[Va("0x1f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[Va("0x1e")]}),Va("0x2c")==t[Va("0x138")]&&(o=this._model[Va("0x46")](o[Va("0x10d")])),this._addSuggestionMarker(c,x,a,this[Va("0x91")][Va("0xb4")](o,i))}[Va("0xeb")](t,e=null){const n=[],o=this._model[Va("0xbd")],r=this.editor[Va("0x11f")][Va("0x40")](Va("0x128")).me;for(const s of this[Va("0x79")]())if(s[Va("0x12")]&&(!e||s[Va("0x138")]==e))for(const e of s[Va("0x137")]()){const i=t[Va("0x4f")].isEqual(e[Va("0x5")])||t[Va("0x5")][Va("0xa3")](e.start);if(i||t.getIntersection(e)){const x=t[Va("0x99")](e)&&Ka(o,e[Va("0x4f")],t),a=e.containsRange(t)&&Ka(o,t[Va("0x4f")],e);n[Va("0x8")]({suggestion:s,meta:{isOwn:r==s[Va("0x21")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,r){this._model[Va("0xb2")]((s=>{let i="suggestion:"+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[Va("0xa7")](t){const e=t.previous,n=t[Va("0x7e")];t[Va("0x3e")]=null,null!=e&&(e[Va("0x7e")]=null),t[Va("0x7e")]=null,null!=n&&(n[Va("0x3e")]=null),"ready"==this[Va("0x125")][Va("0x40")](t)&&(this[Va("0x125")][Va("0xaf")](t,"removed"),this[Va("0x7")]("suggestionUnloaded",t,e,n))}[Va("0x1f")](t){const n=t.id,o=this[Va("0x36")](t);if(this[Va("0x131")]&&this[Va("0x131")].addSuggestion){const r=this.editor.plugins.get(Va("0x30")),s=o.hasComments,i=o[Va("0xf0")]?o[Va("0x138")]+":"+o[Va("0xf0")]:o[Va("0x138")],x=this[Va("0x67")].locale,a=r[Va("0xf7")](Yo(x,Va("0x82"))),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Va("0xb0")]};this[Va("0x131")][Va("0xd0")](c)[Va("0x17")]((t=>{o._saved=!0,r[Va("0x85")](a),t&&t.createdAt&&(this[Va("0xdd")][Va("0x40")](n).createdAt=t.createdAt)}))[Va("0xa2")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Va("0x67")][Va("0xcc")].enqueueChange({isUndoable:!1},(()=>{o[Va("0x10a")]()})),o.stopListening(),this[Va("0xdd")].delete(o.id),this._suggestionState[Va("0x51")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Va("0x11f")][Va("0x40")](Va("0x30")),o=this[Va("0x12f")](t);if(this[Va("0x131")]&&this[Va("0x131")][Va("0xe8")])if(o[Va("0xbe")]){const o=n.add(Yo(this.editor.locale,Va("0x82")));this[Va("0x131")][Va("0xe8")](t,e)[Va("0x17")]((()=>{n[Va("0x85")](o)}))}else o.on(Va("0x2"),(()=>{this[Va("0x10f")](t,e)}))}[Va("0x7d")](t){if(!this[Va("0x131")]||!this[Va("0x131")][Va("0x12f")])throw new e.CKEditorError(Va("0x13d"),this);return this[Va("0x131")][Va("0x12f")](t)}[Va("0x6e")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[Va("0xdd")][Va("0x40")](e)||this[Va("0x9c")](n,o,e,r,{});switch(this[Va("0x25")](s,n,o,r),this[Va("0x125")].get(s)){case Va("0x89"):this[Va("0x7d")](e)[Va("0x17")]((t=>{let n=Promise[Va("0xac")]();t[Va("0x0")]&&(n=this[Va("0x76")][Va("0x140")]({channelId:this[Va("0x67")][Va("0x106")].get(Va("0xab")),threadId:e})),n.then((()=>{this[Va("0x36")](t)[Va("0xbe")]=!0}))})),this[Va("0x125")].set(s,Va("0x41"));break;case Va("0xad"):this[Va("0x10f")](e,{state:"open"});case"dataReady":this._suggestionState[Va("0xaf")](s,Va("0x55")),this.fire(Va("0x3b"),s);break;case"ready":this[Va("0x7")](Va("0x119"),s)}return s[Va("0xb3")](t),s}_refreshSuggestionsChain(t){const e=Array[Va("0x13b")](t)[Va("0x38")]((t=>!t[Va("0x2f")])),n=this[Va("0x79")]({skipNotAttached:!0}).filter((t=>!t[Va("0x2f")])),o=n[Va("0x38")]((e=>!t[Va("0x47")](e))),r=new Map(n[Va("0x33")]((t=>[t,this[Va("0xf9")].getSuggestionCallback(t[Va("0x138")],t.subType,"chain")]))),s=new Map(n[Va("0x33")]((t=>[t,t[Va("0x9")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Va("0xa5")];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[Va("0xa5")];t++){const n=e[t];!x[Va("0x47")](n)&&n[Va("0x3e")]&&(n[Va("0x3e")][Va("0x7e")]===n&&(n[Va("0x3e")][Va("0x7e")]=null),n[Va("0x3e")]=null),!i[Va("0x47")](n)&&n[Va("0x7e")]&&(n[Va("0x7e")][Va("0x3e")]===n&&(n.next[Va("0x3e")]=null),n[Va("0x7e")]=null)}function a(t,e,n){for(let o=n;o<e[Va("0xa5")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Va("0x3e")]=n[0],i.add(n[0]),x[Va("0xf7")](n[1]))}}function c(t,e){if(t.author.id!==e[Va("0x21")].id)return null;const n=r[Va("0x40")](t)(t,e,s[Va("0x40")](t),s[Va("0x40")](e));return n&&r[Va("0x40")](e)(t,e,s[Va("0x40")](t),s.get(e))?n[1].commentThread&&n[1][Va("0x12b")].length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[Va("0x79")]({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),r=new Map(e[Va("0x33")]((t=>[t,this[Va("0xf9")][Va("0xf8")](t[Va("0x138")],t[Va("0xf0")],Va("0x4c"))]))),s=new Map(n[Va("0x33")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Va("0xa5")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Va("0xa5")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Va("0xa5")];i++){const o=n[i];if(o[Va("0x138")]!==e.type||o[Va("0x21")].id!==e[Va("0x21")].id||o[Va("0xf0")]!==e.subType)continue;const x=r.get(e),a=s.get(e),c=s.get(o),l=e.commentThread&&e[Va("0x12b")][Va("0xa5")],d=o.commentThread&&o[Va("0x12b")].length;if(!l&&x(c,a))return t[Va("0xfb")](o,e),s[Va("0x51")](e),!0;if(!d&&x(a,c))return t[Va("0xfb")](e,o),s[Va("0x51")](o),!0}return!1}}[Va("0xfb")](t,e){if(t[Va("0x2f")])for(const n of e[Va("0x137")]())t[Va("0xae")](n);else{const n=e.getFirstRange().end;this[Va("0x70")](t,this[Va("0x91")][Va("0xb4")](t[Va("0x9")]()[Va("0x4f")],n))}e[Va("0x109")]()}}class za{constructor(t){this[Va("0x86")]=t,this[Va("0x91")]=t[Va("0xcc")],this[Va("0xf2")]=new Map,this[Va("0x2d")]=new Map,this._registerDefaultCallbacks()}[Va("0x83")](t,e,n,o,r,s){return new Zo(this[Va("0x91")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[Va("0xf8")](t,e,Va("0x75"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Va("0x10a"))(...n)})}[Va("0x11d")](t,e,n,o){const r=t+":"+e+":"+n;this[Va("0xf2")][Va("0xaf")](r,o)}[Va("0xf8")](t,e,n){const o=t+":"+e+":"+n;return this[Va("0xf2")][Va("0x40")](o)||this._defaultCallbacks[Va("0x40")](t+":"+n)}[Va("0xe0")](){const t=()=>{},e=t=>{t[Va("0x13")](((t,e)=>t[Va("0x4f")][Va("0x111")](e[Va("0x4f")])?1:-1)),this[Va("0x91")][Va("0xb2")]((e=>{for(const n of t){let t;t=n[Va("0x5")][Va("0x103")]&&n[Va("0x5")][Va("0x10d")]==n[Va("0x4f")][Va("0x7a")]?e[Va("0x22")](n[Va("0x4f")][Va("0x7a")],"on"):e[Va("0x22")](n),this[Va("0x91")][Va("0x123")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Va("0xb2")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[Va("0x33")]((t=>(qa(t)&&(t=this[Va("0x91")].createRange(t.end)),t))).filter((t=>"$graveyard"!==t.root[Va("0xb1")]));if(s[Va("0xa5")]<1)return;const x=Array.from(this._model[Va("0x37")][Va("0xc2")][Va("0x137")]())[Va("0x33")]((t=>i.LiveRange[Va("0x6b")](t)));n[Va("0x8c")](s);for(const t of this[Va("0x86")][Va("0x122")][Va("0x122")]())t[Va("0x18")]();r.push({forceDefaultExecution:!0}),this[Va("0x86")][Va("0x72")](o,...r);const a=x[Va("0x38")]((t=>"$graveyard"!=t[Va("0x4d")].rootName));a.length>0&&n[Va("0x8c")](a);for(const t of x)t[Va("0x93")]()}))},o=(t,e)=>1==t[Va("0xa5")]&&1==e[Va("0xa5")]&&t[0][Va("0x5")].isEqual(e[0][Va("0x4f")]),r=(t,e,n,o)=>Za(t,e,n,o,this[Va("0x91")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[Va("0x2d")].set("insertion:accept",t),this[Va("0x2d")][Va("0xaf")]("insertion:discard",e),this[Va("0x2d")][Va("0xaf")](Va("0x15"),o),this._defaultCallbacks.set(Va("0x101"),r),this[Va("0x2d")][Va("0xaf")]("deletion:accept",e),this._defaultCallbacks[Va("0xaf")]("deletion:discard",t),this[Va("0x2d")].set("deletion:join",o),this[Va("0x2d")][Va("0xaf")](Va("0x1c"),r),this._defaultCallbacks.set(Va("0x16"),n),this._defaultCallbacks.set(Va("0x44"),t),this[Va("0x2d")].set(Va("0x29"),o),this[Va("0x2d")][Va("0xaf")](Va("0x5e"),t),this[Va("0x2d")][Va("0xaf")](Va("0x98"),n),this._defaultCallbacks[Va("0xaf")](Va("0x68"),t),this[Va("0x2d")].set(Va("0x34"),o),this[Va("0x2d")][Va("0xaf")](Va("0xa1"),t)}}function Ka(t,e,n){for(const o of e.parent[Va("0xca")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Va("0x64")](o))return!1;if(t[Va("0x71")](o)||t[Va("0xbc")](o))return!0}return!1}function qa(t){return t[Va("0x5")][Va("0x10d")]==t[Va("0x4f")][Va("0x7a")]&&t.end[Va("0x120")]}function Xa(t,e,n,o){const r=t=>!t[Va("0x63")].is(Va("0xe7"))&&!o[Va("0x71")](t[Va("0x63")]),s=t[Va("0x4f")][Va("0xc4")](r),i=t[Va("0x5")].getLastMatchingPosition(r,{direction:Va("0x115")});return!(t.start[Va("0xa3")](s)&&t[Va("0x5")].isEqual(i)||(s[Va("0x111")](i)?n[Va("0xb5")](e,{range:n[Va("0xb4")](s,i)}):n[Va("0xe5")](e),0))}function $a(t){return(0,s.hashObject)(t)}function Ja(t){const e=t[Va("0x4f")][Va("0x7a")];return e&&e.is(Va("0x110"))}function Qa(t,e){const n=e.schema[Va("0x71")](t)||e.schema[Va("0xb8")](t);return e.createRange(e[Va("0x12d")](t,Va("0x8a")),n?e[Va("0x9e")](t):e.createPositionAt(t,Va("0x5")))}function Za(t,e,n,o,r){if(n.end[Va("0xa3")](o[Va("0x4f")]))return!0;if(t[Va("0x138")]!=e[Va("0x138")])return!1;if(!n[Va("0x5")][Va("0x5d")](o[Va("0x4f")]))return!1;const s=r.createRange(n[Va("0x5")],o[Va("0x4f")])[Va("0x61")]();for(const t of s)if([Va("0x32"),"elementEnd"][Va("0x2e")](t[Va("0x138")])&&r.schema[Va("0xbc")](t.item))return!1;return!0}const Ya=["commands","acceptSuggestion","_pendingAction","getRanges","isDirty","execute","PENDING_ACTION_SUGGESTION","bind","PendingActions","get","canDiscard","view","canEditAt","commentThreadController","listenTo","remove","add","destroy","discardSuggestion","unbind","model","isEnabled","_setPendingAction","_discardCommand","_editor","change:isDirty","canAccept","locale","_removePendingAction","plugins","_acceptCommand"];var tc,ec;tc=Ya,ec=475,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("0xa")]=e,this[nc("0x1")]=n,this.commentThreadController=o,this[nc("0xe")]=t,this[nc("0x14")]=t[nc("0x15")][nc("0x1e")](nc("0x16")),this[nc("0xd")]=t[nc("0x15")][nc("0x1e")](nc("0x8")),this[nc("0x1")][nc("0x1c")](nc("0xb")).to(this[nc("0x14")],this._discardCommand,((t,e)=>t||e)),this[nc("0x1")][nc("0x1c")](nc("0x10")).to(this[nc("0x14")],nc("0xb"),(t=>t&&this[nc("0xe")][nc("0xa")][nc("0x2")](e[nc("0x18")]()))),this[nc("0x1")].bind(nc("0x0")).to(this[nc("0xd")],"isEnabled",(t=>t&&this._editor[nc("0xa")][nc("0x2")](e.getRanges()))),this[nc("0x17")]=null,n[nc("0x19")]&&this[nc("0xc")](),this.listenTo(n,nc("0x16"),(()=>this[nc("0x16")]())),this[nc("0x4")](n,"discardSuggestion",(()=>this[nc("0x8")]())),this[nc("0x4")](n,nc("0xf"),(()=>{n.isDirty?this[nc("0xc")]():this[nc("0x12")]()}))}[nc("0x16")](){this[nc("0x14")][nc("0x1a")](this[nc("0xa")].id)}[nc("0x8")](){this._discardCommand[nc("0x1a")](this[nc("0xa")].id)}[nc("0x7")](){this[nc("0x1")][nc("0x9")]("isEnabled"),this.view[nc("0x9")]("canAccept"),this[nc("0x1")][nc("0x9")]("canDiscard"),this.stopListening(),this[nc("0x3")][nc("0x7")](),this[nc("0x17")]&&this[nc("0x12")]()}[nc("0xc")](){const t=Yo(this[nc("0xe")][nc("0x11")],nc("0x1b"));this[nc("0x17")]=this[nc("0xe")][nc("0x13")][nc("0x1e")](nc("0x1d"))[nc("0x6")](t)}[nc("0x12")](){null!==this[nc("0x17")]&&this._editor[nc("0x13")][nc("0x1e")](nc("0x1d"))[nc("0x5")](this._pendingAction),this[nc("0x17")]=null}}const rc=["isReadOnly","delegate","commentInputView","addComment","commentThread","hasDirtyComment","isDirty","submit","commentThreadInputView","value","destroy","canDiscard","_localUser","element","authoredAt","isActive","editor","canAccept","removeComment","set","_config","bind","setData","length","_model","disabledSubmit","_createCommentViews","focus","_createCommentThreadInputView","commentsListView","editorConfig","locale","fire","assign","isEnabled","CommentView"];var sc,ic;sc=rc,ic=303,function(t){for(;--t;)sc.push(sc.shift())}(++ic);const xc=function(t,e){return rc[t-=0]};class ac extends r.View{constructor(t,e,n,o){super(t),this[xc("0xe")]=null,this[xc("0x1d")]=null,this[xc("0x4")](xc("0x0"),!1),this[xc("0x4")]("authoredAt",e[xc("0x23")]),this[xc("0x6")](xc("0x23")).to(e),this[xc("0x4")]("descriptionParts",[]),this[xc("0x4")](xc("0x1b"),!1),this.set(xc("0x13"),!1),this[xc("0x4")](xc("0x2"),!1),this.set(xc("0x20"),!1),this[xc("0x9")]=e,this._localUser=n,this[xc("0x5")]=o,o.disableComments?this.set(xc("0x8"),1):this._createCommentViews()}focus(){this[xc("0x22")][xc("0xc")]()}[xc("0x1f")](){this.commentsListView&&this[xc("0xe")][xc("0x1f")](),this.commentThreadInputView&&this[xc("0x1d")][xc("0x1f")](),super[xc("0x1f")]()}[xc("0xb")](){const{CommentsListView:t}=this[xc("0x5")];this[xc("0xe")]=new t(this[xc("0x10")],this[xc("0x9")].commentThread,Object[xc("0x12")]({CommentView:this[xc("0x5")][xc("0x14")]},this[xc("0x5")])),this[xc("0xe")][xc("0x16")](xc("0x3")).to(this),this[xc("0xe")][xc("0x16")]("updateComment").to(this),this[xc("0xe")].bind(xc("0x0")).to(this),this.set(xc("0x8"),this[xc("0xe")][xc("0x8")]+1),this[xc("0x6")](xc("0x8")).to(this.commentsListView,xc("0x8"),(t=>t+1)),this[xc("0x1d")]=this[xc("0xd")](),this.on(xc("0x3"),(()=>this[xc("0xc")]())),this.bind(xc("0x1b")).to(this.commentsListView,xc("0x1a"),this[xc("0x1d")][xc("0x17")],"value",((t,e)=>t||!!e))}[xc("0xd")](){const{CommentThreadInputView:t}=this[xc("0x5")],e=new t(this.locale,this[xc("0x21")],this[xc("0x5")][xc("0xf")]),n=e.commentInputView;return e.bind("showInput").to(this,"isActive",this[xc("0x9")][xc("0x19")],xc("0x15"),n,xc("0x1e"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1c"),((t,e)=>{this[xc("0x11")](xc("0x18"),e),n[xc("0x1")][xc("0x7")]("")})),n.on("cancel",(()=>this[xc("0xc")]())),n[xc("0x6")](xc("0xa")).to(this[xc("0x9")][xc("0x19")],xc("0x15")),e}}const cc=["createElement",".ck-annotation__content-wrapper","children","commentsListView","creator","ck-annotation__info-time","importWord","name","authoredAt","innerHTML","ck-suggestion__main","acceptButton","ck-suggestion__actions","getUserViewNotificationText","ck-suggestion--disabled-comments","_descriptionElement","discardButton","execute","isEnabled","author","ck-comment__info-time",'<span class="ck-suggestion-color" style="background-color: ',"source","@external","getTemplate","locale","type","push","ck-suggestion-","ck-annotation__content-wrapper","setTemplate","bind","element","ck-comment__external","EXTERNAL_SUGGESTION","map","querySelector","_model","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-annotation__user","render","_createButton","userView","acceptSuggestion","</span>","div","extendTemplate","attributes","value","discardSuggestion","ck-suggestion__user","fire","ck-suggestion-wrapper","canAccept","ck-annotation__info","span","change:description","ck-annotation__info-name","cancel","disableComments","ck-suggestion--accept","ck-annotation__main","ck-suggestion","ck-suggestion--discard","canDiscard","Discard suggestion","set",'"></span>',"commentThreadInputView","getExternalSuggestionNote","isExternal","ck-annotation__actions","isActive","title","formatDateTime","descriptionParts","description","innerText","color","_config","ck-suggestion-wrapper--active"];var lc,dc;lc=cc,dc=208,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,r){super(e,n,o,r),this[uc("0x14")](uc("0x3d"),""),this.bind(uc("0x3d")).to(this,uc("0x1d"),(t=>t&&t[0]?t[0][uc("0x3d")]:"")),this.bind("description").to(this,uc("0x1d"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e[uc("0x20")])+"</p>";return e?n:(0,s.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[uc("0x2e")]=this[uc("0x4c")](Yo(e,"Accept suggestion"),t.icons.check,uc("0xe"),uc("0x4e"),"sw"),this[uc("0x2e")][uc("0x42")](uc("0x35")).to(this,uc("0x7")),this[uc("0x33")]=this[uc("0x4c")](Yo(e,uc("0x13")),t.icons[uc("0xc")],uc("0x11"),uc("0x3"),"sw"),this[uc("0x33")][uc("0x42")](uc("0x35")).to(this,uc("0x12")),this[uc("0x4d")]=new s.UserView(e,this[uc("0x48")][uc("0x36")],this.getUserViewNotificationText()),this.userView.extendTemplate({attributes:{class:[uc("0x4"),uc("0x4a")]}}),this[uc("0x41")](this.getTemplate())}[uc("0x3b")](){const t=this.bindTemplate,e=[{tag:uc("0x50"),attributes:{class:["ck-suggestion__info",uc("0x8")]},children:[{tag:uc("0x9"),children:[{text:this[uc("0x4d")][uc("0x2a")]}],attributes:{class:["ck-suggestion__info-name",uc("0xb")]}},{tag:"time",attributes:{datetime:t.to(uc("0x2b")),class:[uc("0x37"),uc("0x28")]},children:[{text:t.to(uc("0x2b"),(t=>this[uc("0x21")][uc("0x1c")](t)))}]}]},{tag:uc("0x50"),attributes:{class:[uc("0x2f"),uc("0x19")]},children:[this[uc("0x2e")],this.discardButton]},{tag:"div",attributes:{class:[uc("0x40")]}}];this[uc("0x48")][uc("0x18")]&&e.push({tag:uc("0x50"),attributes:{class:[uc("0x44")]},children:[{text:this[uc("0x17")]()}]});const n={tag:uc("0x50"),attributes:{class:[uc("0x6"),t.if(uc("0x1a"),uc("0x22")),t.to(uc("0x3d"),(t=>uc("0x3f")+t)),this[uc("0x21")][uc("0xd")]&&uc("0x31")],"data-suggestion-id":this[uc("0x48")].id,"data-thread-id":this._model.commentThread.id,"data-author-id":this._model[uc("0x36")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x10"),"ck-annotation"]},children:[this[uc("0x4d")],{tag:uc("0x50"),attributes:{class:[uc("0x2d"),uc("0xf")]},children:e}]}]};return this[uc("0x26")]&&this.commentThreadInputView&&n[uc("0x25")][uc("0x3e")](this[uc("0x26")],this[uc("0x16")]),n}[uc("0x4b")](){super[uc("0x4b")](),this._descriptionElement=this[uc("0x43")][uc("0x47")](uc("0x24")),this[uc("0x32")][uc("0x2c")]=this[uc("0x1e")],this.on(uc("0xa"),((t,e,n)=>{this._descriptionElement[uc("0x2c")]=n}))}[uc("0x4c")](t,e,n,o,s){const i=new r.ButtonView(this[uc("0x3c")]);return i[uc("0x14")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[uc("0x0")]({attributes:{class:n}}),i.on(uc("0x34"),(()=>{this[uc("0x5")](o,this[uc("0x48")].id)})),i}[uc("0x17")](){return uc("0x29")===this[uc("0x48")][uc("0x1")][uc("0x3a")][uc("0x39")]?Yo(this[uc("0x3c")],uc("0x49")):Yo(this[uc("0x3c")],uc("0x45"))}[uc("0x30")](){return this._model.isExternal?uc("0x29")===this._model[uc("0x1")][uc("0x3a")][uc("0x39")]?Yo(this[uc("0x3c")],"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x48")][uc("0x27")][uc("0x2a")]):Yo(this[uc("0x3c")],"EXTERNAL_AVATAR",this[uc("0x48")][uc("0x27")][uc("0x2a")]):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x46")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x4f"):fc(t))).join(""),e&&(n+=uc("0x38")+e[uc("0x2")]+'" title="'+e[uc("0x1b")]+uc("0x15")),n}function fc(t){const e=document[uc("0x23")](uc("0x9"));return e[uc("0x1f")]=t,e[uc("0x2c")]}const hc=["set","comments","comments.maxCommentsWhenCollapsed","suggestionChanged","getJoined","plugins","some","suggestion-","length","execute","SuggestionThreadView","_updateController","buttonView","isInContent","add","getMarkerNames","acceptAllSuggestions","Accept all selected suggestions","activeMarkers","Discard all selected suggestions","focus","createAnnotationView","comments.maxThreadTotalWeight","bind","config","delete","activeAnnotations","trackChanges.SuggestionThreadView","TrackChangesEditing","value","editing","Annotations","values","unbind","Track changes","getSuggestion","Accept all suggestions","_annotationViews","isOn","comments.maxCommentCharsWhenCollapsed","_disableComments","_initializeController","pluginName","reduce","actionView","commands","getRanges","createCommentThreadController","acceptButton","CommentsRepository","comments.editorConfig","descriptionParts","registerAnnotation","get","separator","push","init","previous","lowest","hasSuggestion","createAnnotation","commentThread","suggestionLoaded","stopListening","refreshSelectedViews","commandName","map","has","listenTo","_suggestionToController","model","view","trackChanges.disableComments","_descriptionFactory","_handleSuggestionControllerDelayed","_createUIButton","size","editor","mainView","isEnabled","addComment","getDescriptions","destroy","_viewToController","locale","change:activeAnnotations","head","EditorAnnotations","innerView","getFirstRange","addSourceCollector","_destroyController","type","from","_refreshActiveMarkers","acceptSelectedSuggestions","getByInnerView","source","getAllAdjacentSuggestions","define","componentFactory","discardSelectedSuggestions","requires","trackChanges","_handleControllerBuffer","button"];var pc,bc;pc=hc,bc=384,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[Ec("0x24")](){return[Wa,s.Users,"CommentsRepository",Ec("0x47"),Ec("0x15")]}static get[Ec("0x52")](){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x3")]=new Map,this[Ec("0x11")]=new Map,this[Ec("0x4d")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0xb")][Ec("0x40")];e[Ec("0x21")](Ec("0x43"),gc),e[Ec("0x21")](Ec("0x6"),!1),this[Ec("0x50")]=e.get(Ec("0x6"))}[Ec("0x8")](t,e){0===this[Ec("0x26")][Ec("0xa")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x26")]){const n=this[Ec("0x3")][Ec("0x1")](t);n||e?n&&e&&this[Ec("0x19")](t):this._initializeController(t)}this.editor.plugins[Ec("0x5d")](Ec("0x15"))[Ec("0x68")](),this._refreshActiveMarkers(),this[Ec("0x26")].clear()}),10),this[Ec("0x26")][Ec("0x28")](t,e)}[Ec("0x60")](){const t=this.editor,e=t[Ec("0x2d")].get("TrackChangesEditing"),n=t[Ec("0x2d")][Ec("0x5d")](Ec("0x47")),o=t[Ec("0x2d")][Ec("0x5d")]("EditorAnnotations"),r=t[Ec("0x2d")][Ec("0x5d")](Ec("0x59"));t.ui[Ec("0x22")][Ec("0x36")](Ec("0x25"),(t=>this[Ec("0x9")](t))),o[Ec("0x18")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x1b")](this[Ec("0x3")])){const o=e[Ec("0x20")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t.isMultiRange){r.push(...t[Ec("0x56")]());continue}const e=t[Ec("0x17")]();if(r.length>0){const t=r[0][Ec("0x2c")](e);if(t){r[0]=t;continue}}r.push(e)}t[Ec("0x5f")]([n.view,r])}return t})),this[Ec("0x2")](e,Ec("0x66"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,r)=>{e[Ec("0x35")]&&(null==o?(this[Ec("0x33")](r[Ec("0x14")]),this[Ec("0x8")](e,!1)):(this[Ec("0x33")](o[Ec("0x14")]),this[Ec("0x8")](e,!0)))})),null===e[Ec("0x61")]?this[Ec("0x8")](e,!1):this._updateController(e[Ec("0x14")])})),this[Ec("0x2")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x67")](e,"change:previous"),this[Ec("0x26")][Ec("0x41")](e);const o=n?n.head:e,r=this._suggestionToController[Ec("0x5d")](o);null!==n&&this._updateController(o),null===n&&r&&this._destroyController(e)})),this[Ec("0x2")](e,Ec("0x2b"),((t,e)=>{this[Ec("0x33")](e)})),this[Ec("0x2")](n,Ec("0x13"),(()=>{this[Ec("0x1c")]()})),this[Ec("0x2")](r,Ec("0xe"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x63")](n))return;const r=e[Ec("0x4b")](n);this[Ec("0x3")][Ec("0x5d")](r).view[Ec("0x3c")]()}),{priority:Ec("0x62")})}[Ec("0x1c")](){const t=this[Ec("0xb")][Ec("0x2d")].get(Ec("0x47")),e=this[Ec("0xb")][Ec("0x2d")][Ec("0x5d")](Ec("0x44")),n=Array[Ec("0x1b")](t[Ec("0x42")],(t=>t[Ec("0x16")])).filter((t=>this[Ec("0x11")][Ec("0x1")](t))),o=[];for(const t of n){const e=this[Ec("0x11")][Ec("0x5d")](t)[Ec("0x4")][Ec("0x20")]();o[Ec("0x5f")](...e[Ec("0x53")](((t,e)=>[...t,...e[Ec("0x37")]()]),[]))}e[Ec("0x3a")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ec("0xb")][Ec("0x55")][Ec("0x5d")]("trackChanges"),s=Yo(t,Ec("0x4a"));n.buttonView[Ec("0x28")]({tooltip:s,label:s,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.buttonView[Ec("0x3f")](Ec("0x4e")).to(o,Ec("0x45")),n[Ec("0x34")].on(Ec("0x31"),(()=>{o[Ec("0x31")](),this.editor[Ec("0x46")][Ec("0x5")][Ec("0x3c")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:s,commandName:Ec("0x25")}},{type:Ec("0x5e")},{type:Ec("0x27"),model:{withText:!0,label:Yo(t,Ec("0x4c")),commandName:Ec("0x38")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x39")),commandName:Ec("0x1d")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x27"),model:{withText:!0,label:Yo(t,Ec("0x3b")),commandName:Ec("0x23")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x4")]){const n=new r.Model(t.model),o=this.editor[Ec("0x55")].get(n.commandName);n[Ec("0x3f")](Ec("0x4e"),Ec("0xd")).to(o,Ec("0x45"),Ec("0xd")),e={type:t[Ec("0x1a")],model:n}}i.add(e)}(0,r.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x4")]))[Ec("0x0")]((t=>this[Ec("0xb")].commands.get(t[Ec("0x4")][Ec("0x69")]))),c=n[Ec("0x34")];return c[Ec("0x54")][Ec("0x49")](Ec("0xd")),c.arrowView[Ec("0x49")](Ec("0xd")),c[Ec("0x54")][Ec("0x3f")]("isEnabled").to(o,Ec("0xd")),c.arrowView[Ec("0x3f")]("isEnabled").toMany(a,Ec("0xd"),((...t)=>t[Ec("0x2e")]((t=>t)))),n.on(Ec("0x31"),(t=>{this[Ec("0xb")][Ec("0x31")](t[Ec("0x1f")].commandName),this[Ec("0xb")][Ec("0x46")][Ec("0x5")][Ec("0x3c")]()})),n}[Ec("0x51")](t){const e=this[Ec("0xb")],n=e[Ec("0x40")],o=e[Ec("0x2d")][Ec("0x5d")](Ec("0x47")),r=e[Ec("0x2d")][Ec("0x5d")]("CommentsRepository"),i=e.plugins[Ec("0x5d")](Ec("0x15")),x=e[Ec("0x2d")][Ec("0x5d")](s.Users).me,a=n[Ec("0x5d")](Ec("0x25"))[Ec("0x32")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x2d")][Ec("0x5d")]("CommentsUI");let d,u;this[Ec("0x4d")].has(t.id)?(u=this[Ec("0x4d")].get(t.id),d=u[Ec("0xc")]):(d=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x5d")](Ec("0x5a")),maxCommentsWhenCollapsed:n.get(Ec("0x2a")),maxThreadTotalWeight:n.get(Ec("0x3e")),maxCommentCharsWhenCollapsed:n[Ec("0x5d")](Ec("0x4f")),formatDateTime:(0,s.getDateTimeFormatter)(n[Ec("0x5d")]("locale")),CommentView:n[Ec("0x5d")](Ec("0x29")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x58")].on(Ec("0x31"),(()=>{e[Ec("0x46")][Ec("0x5")][Ec("0x3c")]()})),d.discardButton.on(Ec("0x31"),(()=>{e[Ec("0x46")][Ec("0x5")][Ec("0x3c")]()})),u=o[Ec("0x3d")](this[Ec("0xb")][Ec("0x12")],d),u[Ec("0x3f")]("isDirty").to(d,"isDirty"),u[Ec("0x3f")](Ec("0x30")).to(d),u[Ec("0x3f")](Ec("0x1a")).to(d,Ec("0x1a"),(t=>Ec("0x2f")+t)),this._annotationViews[Ec("0x28")](t.id,u));const g=r[Ec("0x57")](t[Ec("0x65")],d),m=new oc(e,t,d,g),f=t[Ec("0x20")]().filter((t=>t[Ec("0x35")]));d[Ec("0x5b")]=e.plugins.get(Ec("0x44"))[Ec("0x7")][Ec("0xf")](f),this[Ec("0x3")].set(t,m),this._viewToController[Ec("0x28")](d,m);const h=o[Ec("0x64")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x35")]));for(const t of o)n.push(...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e[Ec("0x46")],n)},type:()=>"suggestion-"+m[Ec("0x5")].type});o[Ec("0x36")](h),i[Ec("0x5c")](h)}_destroyController(t){const e=this[Ec("0xb")][Ec("0x2d")][Ec("0x5d")](Ec("0x47")),n=this[Ec("0x3")].get(t),o=n[Ec("0x5")],r=e[Ec("0x1e")](o);r&&e.remove(r),this[Ec("0x3")][Ec("0x41")](t),this[Ec("0x11")][Ec("0x41")](o),n[Ec("0x10")]()}[Ec("0x33")](t){if(!t.isInContent||!this._suggestionToController[Ec("0x1")](t))return;const e=this[Ec("0xb")][Ec("0x2d")][Ec("0x5d")](Ec("0x44")),n=this[Ec("0x3")].get(t),o=t[Ec("0x20")]();n[Ec("0x5")].descriptionParts=e[Ec("0x7")][Ec("0xf")](o)}[Ec("0x10")](){for(const t of this[Ec("0x3")].keys())this[Ec("0x19")](t);for(const t of this[Ec("0x4d")][Ec("0x48")]())t[Ec("0xc")][Ec("0x10")]();super[Ec("0x10")]()}}var Tc,Cc,yc=["pluginName","getSuggestion","plugins","requires","addSuggestion","getSuggestions","get","TrackChanges","adapter","editor"];Tc=yc,Cc=280,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("0x3")](){return[Wa,_c,"Comments"]}static get[kc("0x0")](){return kc("0x7")}set[kc("0x8")](t){this[kc("0x9")][kc("0x2")].get(Wa)[kc("0x8")]=t}get[kc("0x8")](){return this[kc("0x9")][kc("0x2")][kc("0x6")](Wa)[kc("0x8")]}[kc("0x4")](t){return this[kc("0x9")][kc("0x2")][kc("0x6")](Wa).addSuggestionData(t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x2")][kc("0x6")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this[kc("0x9")][kc("0x2")][kc("0x6")](Wa)[kc("0x1")](t)}}const vc=["cloudServices","init","plugins","document","WordCount","editor","get","pluginName","tokenUrl","concat","push","requires","Users","config","builtinPlugins","useAnonymousUser","RevisionTracker","editorCreator","createDocumentFragment","function","appendChild","getUser","context","track-changes-data-invalid-editor-creator","define","getDataWithAcceptedSuggestions","from","toolbar","includes","WebSocketGateway","trackChangesData.editorCreator","extraPlugins","execute","set","TrackChangesEditing","getSuggestions","string","data","addUser","initialData","TrackChangesDataGetter","discardAllSuggestions","CommentsRepository","_context","getDataWithDiscardedSuggestions","has","DocumentOutline","acceptAllSuggestions","end","constructor","getRootNames","every","name","create","Pagination","addSuggestionData","_adapter","trackChangesData"];var Rc,Sc;Rc=vc,Sc=416,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1d"),Ic("0xc"),Ic("0x11")],Nc=[Ic("0x13"),Ic("0x6"),"Autosave",Ic("0x34"),Ic("0x2c"),Ic("0x24")];class wc extends t.Plugin{static get[Ic("0x1")](){return[Wa]}static get[Ic("0x37")](){return"TrackChangesData"}[Ic("0x31")](){const t=this[Ic("0x35")];if(t.config[Ic("0xe")](Ic("0x14"),(e=>t[Ic("0x27")][Ic("0x2b")]("",e))),"function"!=typeof t.config[Ic("0x36")](Ic("0x2f"))[Ic("0x7")])throw new e.CKEditorError(Ic("0xd"))}[Ic("0xf")](t){return Oc(this[Ic("0x35")],!0,t)}[Ic("0x22")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get pluginName(){return Ic("0x1e")}constructor(t){super(t),this.result=Ic("0x26")}[Ic("0x31")](){this[Ic("0x35")][Ic("0x32")][Ic("0x36")](Ic("0x20"))[Ic("0x2e")]={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("0x35")][Ic("0x32")][Ic("0x36")](Ic("0x18"))[Ic("0x2e")]=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t.config.names())Lc[Ic("0x12")](n)||(e[n]=t[Ic("0x3")].get(n));e[Ic("0x30")]&&e[Ic("0x30")][Ic("0x38")]&&delete e[Ic("0x30")][Ic("0x38")];const n=t[Ic("0x27")][Ic("0x4")]||[],o=e[Ic("0x15")]||[];delete e.extraPlugins;const r=t[Ic("0x21")][Ic("0x3")][Ic("0x36")](Ic("0x32"))||[],s=n[Ic("0x39")](e.plugins)[Ic("0x39")](o)[Ic("0x39")](r).map((t=>Ic("0x1a")==typeof t?n.find((e=>e.pluginName==t)):t)),i=Array[Ic("0x10")](new Set(s)),x=new Map;return e[Ic("0x32")]=i.filter((t=>Fc(t,x))),e.plugins[Ic("0x0")](Wa),e.plugins.push(Mc),e}(t),r=document[Ic("0x8")](),s=t[Ic("0x3")][Ic("0x36")](Ic("0x2f")).editorCreator,i=await s(o,(()=>function(t){const e=document.createElement("div");return t[Ic("0xa")](e),e}(r)));!function(t,e){const n=t.model[Ic("0x33")][Ic("0x28")]().reduce(((e,n)=>(e[n]=t[Ic("0x1b")][Ic("0x36")]({rootName:n}),e)),{}),o=t[Ic("0x32")].get("Users").users.map((t=>({id:t.id,name:t[Ic("0x2a")]}))),r=t[Ic("0x32")].get(Ic("0x18"))[Ic("0x19")]({skipNotAttached:!0,toJSON:!0}),s=e.plugins[Ic("0x36")](Ic("0x2")),i=e.plugins[Ic("0x36")]("TrackChangesEditing");for(const t of o)s[Ic("0xb")](t.id)||s[Ic("0x1c")](t);s.me||s[Ic("0x5")]();for(const t of r)i[Ic("0x2d")](t);e[Ic("0x1b")][Ic("0x17")](n)}(t,i),i[Ic("0x16")](Ic(e?"0x25":"0x1f"));const x=i[Ic("0x1b")][Ic("0x36")](n);return await i.destroy(),x}function Fc(t,e){const n=Ic("0x9")==typeof t?t[Ic("0x37")]||t[Ic("0x2a")]:t;if(e[Ic("0x23")](n))return e[Ic("0x36")](n);if(e[Ic("0x17")](n,!0),n&&Nc[Ic("0x12")](n))return e[Ic("0x17")](n,!1),!1;if(!t[Ic("0x1")])return e[Ic("0x17")](n,!0),!0;const o=t[Ic("0x1")][Ic("0x29")]((t=>Fc(t,e)));return e[Ic("0x17")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();