@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231027.0 → 0.0.0-nightly-20231028.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 (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  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.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. 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:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","forceDisabled","commands","_enableCommands","value","clearForceDisabled","_disableUnsupportedCommands","_enabledCommands","TrackChangesCommand","has","refresh","isEnabled","editor","execute","affectsData"];var c,l;c=a,l=195,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._enabledCommands=e,this[d("0x4")]=!1,this[d("0xa")](),this[d("0x0")]=!1}[d("0xa")](){this[d("0xb")]=!0}[d("0xd")](){this[d("0x4")]=!this[d("0x4")],this[d("0x4")]?this[d("0x6")]():this[d("0x3")]()}[d("0x6")](){for(const t of this[d("0xc")][d("0x2")][d("0x2")]())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x1")](d("0x8"))}[d("0x3")](){for(const t of this[d("0xc")][d("0x2")].commands())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x5")](d("0x8"))}}const g=["_isEnabledBasedOnSelection","model","acceptSuggestion","_suggestions","get","refresh","isEnabled","execute","getRanges","TrackChangesEditing","plugins","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=223,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("0x3")](),this[h("0xb")]=!1}refresh(){this[h("0x4")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x6")]();this[h("0x9")][h("0xc")].canEditAt(o)&&this[h("0x9")][h("0x8")][h("0x2")](h("0x7"))[h("0x0")](n)}}const b=["track-changes-discard-suggestion-not-found","plugins","canEditAt","_suggestions","get","editor","getRanges","refresh","isEnabled"];var E,_;E=b,_=369,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("0x3")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x7")](){this[T("0x8")]=!0}execute(t){const n=this[T("0x3")][T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x6")]();this[T("0x5")].model[T("0x2")](o)&&this[T("0x5")][T("0x1")][T("0x4")]("TrackChangesEditing").discardSuggestion(n)}}const y=["push","content","change","sort","color","createPositionBefore","createPositionAfter","schema","map","deletion","type","isIntersecting","replace","createPositionAt","isArray","splice","isInContent","length","start","end","join","getRanges","isObject","execute","next","isMultiRange","value","isCollapsed","from"];var k,A;k=y,A=137,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>v("0x11")==t.type&&v("0x11")!=e[v("0x12")]?-1:v("0x11")!=t.type&&v("0x11")==e[v("0x12")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xf")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s[v("0x8")](e.createRange(n,r[v("0x1")](i)?e[v("0xe")](i):e[v("0x15")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xe")](e),s=t[v("0xd")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x19")];){const o=n[v("0x17")](0,100);t[v("0xa")]((()=>{for(const t of o)t.isInContent&&e[v("0x2")](t.id)}))}}const N=["model","_suggestions","_command","values","some","isInContent","_isEnabledBasedOnSelection","canEditAt","isEnabled","from","refresh","editor"];var w,M;w=N,M=490,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("0x4")]=e,this[O("0x3")]=n,this[O("0x0")](),this[O("0x8")]=!1}[O("0x0")](){const t=Array[O("0xb")](this._suggestions[O("0x5")]())[O("0x6")]((t=>t[O("0x7")]));this[O("0xa")]=this[O("0x4")][O("0xa")]&&t}execute(){const t=R(Array[O("0xb")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x2")][O("0x9")](t))return}L(this[O("0x1")][O("0x2")],this[O("0x4")],t)}}const P=["document","canEditAt","refresh","editor","isEnabled","selection","_selectedSuggestions","getRanges","_isEnabledBasedOnSelection","model","from","_command","_suggestions"];var D,B;D=P,B=225,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._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0xc")][j("0x5")][j("0x9")][j("0x1")],e=Array[j("0x6")](this[j("0x8")].values());this[j("0x2")]=function(t,e){const n=Array[v("0x7")](t[v("0x0")]()),o=new Set;for(const s of e)if(s[v("0x18")])for(const e of n)for(const n of s[v("0x0")]())(e[v("0x13")](n)||t[v("0x6")]&&!s[v("0x4")]&&s[v("0x3")]&&n[v("0x1b")].isTouching(e[v("0x1a")]))&&o.add(s);return o}(t,e),this[j("0x0")]=this[j("0x7")][j("0x0")]&&!!this[j("0x2")].size}execute(){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0x3")]();if(!this[j("0xc")][j("0x5")][j("0xa")](t))return}L(this[j("0xc")][j("0x5")],this[j("0x7")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const 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 zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const 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),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var 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&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const 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=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?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 zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):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,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const 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 wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po: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 r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onAttributesChange","reduce","set","next","attributes","isExternal","end","setAttribute","from","getFirstMarker","getMarkers","isIntersectingWithRange","removeMarkers","addMarkerName","_isDataLoaded","getFirstRange","isMultiRange","suggestion:","previous","_onDiscard","getRanges","isInContent","@external","nodeAfter","accept","onAttributesChange","_markerNames","clear","head","creator","removeAttribute","split","type","onDiscard","nodeBefore","getMarkerNames","markers","decorate","subType","get","createdAt","data","push","addMarker","getItems","_onAccept","_model","change","getMultiRangeId","filter","getRange","map","discard","authoredAt","removeMarker","getAllAdjacentSuggestions","commentThread","substr","add","author","length","toJSON"];var $o,Jo;$o=Xo,Jo=358,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[Qo("0x1c")]=!1,this.id=e.id,this[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x34")]=e[Qo("0x34")]||null,this[Qo("0xb")]=e.author,this.creator=e[Qo("0x2b")]||e.author,this[Qo("0x13")]=Boolean(e[Qo("0x12")]&&e[Qo("0x12")][Qo("0x24")]),this[Qo("0x37")]=null,this[Qo("0x3c")]=t,this[Qo("0x3b")]=e.onAccept,this[Qo("0x21")]=e[Qo("0x2f")],this._onAttributesChange=e[Qo("0x27")],this[Qo("0x28")]=new Set,this[Qo("0x36")]=null,this[Qo("0x10")](Qo("0x5"),null),this.set(Qo("0x12"),e[Qo("0x12")]||{}),this.set(Qo("0x20"),null),this[Qo("0x10")]("next",null),this[Qo("0x10")](Qo("0x8"),null),this[Qo("0x10")]("_saved",!1),this[Qo("0x33")]("accept"),this.decorate(Qo("0x4"))}get[Qo("0x2a")](){let t=this;for(;t[Qo("0x20")];)t=t.previous;return t}get hasComments(){return!!this[Qo("0x8")]&&this.commentThread[Qo("0xc")]>0}get[Qo("0x1e")](){return 0!=this._markerNames.size&&6==Array[Qo("0x16")](this[Qo("0x28")])[0][Qo("0x2d")](":").length}get[Qo("0x23")](){return null!==this[Qo("0x17")]()}[Qo("0x1b")](t){this[Qo("0x28")][Qo("0xa")](t)}getMarkerNames(){return Array[Qo("0x16")](this._markerNames)}[Qo("0x18")](){return this[Qo("0x31")]()[Qo("0x3")]((t=>this[Qo("0x3c")][Qo("0x32")][Qo("0x35")](t)))[Qo("0x1")]((t=>t))}[Qo("0x17")](){return this[Qo("0x18")]()[0]||null}[Qo("0x1a")](){this._model[Qo("0x3d")]((t=>{for(const e of this[Qo("0x18")]())t[Qo("0x6")](e)})),this[Qo("0x28")][Qo("0x29")]()}removeMarker(t){this._model[Qo("0x3d")]((e=>{e[Qo("0x6")](t)})),this[Qo("0x28")].delete(t)}addRange(t){const e=Qo("0x1f")+this[Qo("0x2e")]+":"+this.subType+":"+this.id+":"+this[Qo("0x2b")].id+":"+Zo[Qo("0x0")]();this[Qo("0x1b")](e),this[Qo("0x3c")][Qo("0x3d")]((n=>{n[Qo("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x19")](t){for(const e of this[Qo("0x22")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x22")](){return this[Qo("0x18")]()[Qo("0x3")]((t=>t.getRange()))}[Qo("0x3a")](){return this[Qo("0x22")]()[Qo("0xf")](((t,e)=>[...t,...e[Qo("0x3a")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x17")]())||void 0===t?void 0:t[Qo("0x2")]())||null}getContainedElement(){const t=this[Qo("0x22")]();if(1!=t.length)return null;const e=t[0],n=e.start[Qo("0x25")],o=e[Qo("0x14")][Qo("0x30")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x26")](){this[Qo("0x3b")](this[Qo("0x22")](),this[Qo("0x37")],this[Qo("0x12")]),this[Qo("0x1a")]()}[Qo("0x4")](){this[Qo("0x21")](this.getRanges(),this[Qo("0x37")],this[Qo("0x12")]),this.removeMarkers()}[Qo("0x7")](){const t=[];let e=this[Qo("0x2a")];for(;e;)t[Qo("0x38")](e),e=e[Qo("0x11")];return t}[Qo("0x15")](t,e){const n=eo(this[Qo("0x12")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x12")]=n,this[Qo("0xe")](n))}[Qo("0x2c")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x12")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x12")]))}[Qo("0xd")](){return{id:this.id,type:this[Qo("0x34")]?this[Qo("0x2e")]+":"+this[Qo("0x34")]:this.type,authorId:this[Qo("0x2b")].id,createdAt:this[Qo("0x36")],hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x12")]}}static[Qo("0x0")](){return(0,e.uid)()[Qo("0x9")](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=["get","getDescriptions","isEqual","_itemLabelsCallbacks","previousSibling","elementEnd","removeObject","function","Container","_schema","*Split:* %0","label","normal","element","softBreak","matchingCallback","REPLACE_TEXT","push","length","text","addEmptyContainer","addContainer","isEmpty","quantity","isInContent","EmptyContainer","nextSibling","registerDescriptionCallback","_addDescriptionItems","removeContainer","type","_itemLabels","skip","addObject","data","*Insert:* %0","$textProxy","add","remove","match","ELEMENT_SPACE","_locale","isObject","deletion","Object","replace","elementStart","*Remove:* %0","_resolveDescriptionItems","end","getFirstRange","pop","insertion","getItemLabel","indexOf","$1 $2","name","*Merge:* %0","set"];var es,ns;es=ts,ns=151,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("0x1d")]=[],this[os("0x23")]=t,this._locale=e}[os("0x1b")](t){const e=[];for(let n=0;n<t[os("0x2c")];n++){const o=t[n];if(!o[os("0x32")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x38")in n&&e[os("0x2b")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x10")][os("0x1c")](s[os("0x11")]().start)){const t=e[e[os("0x2c")]-1],n=os("0x13")==o.type?os("0x4"):os("0x5");t&&"text"==t[os("0x38")]&&(t[n]+="\n")}}}return this[os("0xf")](e)}[os("0x35")](t){this._customCallbacks[os("0x2b")](t)}registerElementLabel(t,n,o=e.priorities[os("0x26")]){os("0x21")==typeof t?(0,e.insertToPriorityArray)(this[os("0x1d")],{matchingCallback:t,label:n,priority:o}):this[os("0x39")][os("0x19")](t,n)}[os("0x14")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x29")](t)){n=e[os("0x25")];break}return n||(n=this[os("0x39")][os("0x1a")](t.name)),n?n(e):1!==e?e+" "+t[os("0x17")]+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x11")]().getWalker(),o="insertion"==e.type?os("0x4"):os("0x5");for(const e of n){const s=e.item,r=t[t.length-1];if(s.is(os("0x3")))r&&r.type[os("0x15")](os("0x22"))>-1&&t.pop(),r&&os("0x2d")==r.type?r[o]+=s[os("0x1")]:t[os("0x2b")]({type:os("0x2d"),add:os("0x4")==o?s[os("0x1")]:"",remove:"remove"==o?s[os("0x1")]:""});else if(this[os("0x23")].isObject(s)){const i=s;if(r&&r[os("0x38")][os("0x15")](os("0x22"))>-1&&t[os("0x12")](),os("0x1f")==e[os("0x38")])continue;r&&r[os("0x38")]==o+os("0xb")&&r[os("0x27")].name==i[os("0x17")]?r[os("0x31")]++:t.push({type:o+os("0xb"),element:i,quantity:1}),n[os("0x3a")]((t=>!("elementEnd"==t.type&&t.item==s)))}else if(this[os("0x23")].checkChild(s,"$text")||s.is(os("0x27"),os("0x28"))){const n=s;if("add"==o&&os("0xd")==e.type||"remove"==o&&"elementEnd"==e[os("0x38")])continue;if(r&&-1==r[os("0x38")].indexOf(os("0x22"))){os("0x2d")==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0x4")==o?n[os("0x34")]&&!this._schema.isObject(n[os("0x34")])?n[os("0x34")]:null:n.previousSibling&&!this[os("0x23")][os("0x9")](n[os("0x1e")])?n[os("0x1e")]:null,n[os("0x30")]||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x33")&&r[os("0x27")].name==e[os("0x17")]?r[os("0x31")]++:t[os("0x2b")]({type:o+os("0x33"),element:e,quantity:1})}else t[os("0x2b")]({type:o+os("0x22"),element:n})}}}[os("0xf")](t){const e=this[os("0x8")],n=[];for(const o of t){switch(o[os("0x38")]){case os("0x2d"):if(o[os("0x4")]=o[os("0x4")].replace(/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),o[os("0x5")]=o[os("0x5")][os("0xc")](/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),""!=o[os("0x4")]&&""!=o.remove){n.push({type:os("0xc"),content:Yo(e,os("0x2a"),['"'+o[os("0x5")]+'"','"'+o[os("0x4")]+'"'])});continue}if(null!=o[os("0x4")][os("0x6")](/^ +$/)){n[os("0x2b")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x7"),o[os("0x4")][os("0x2c")]))});continue}if(null!=o.remove[os("0x6")](/^ +$/)){n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),Yo(e,os("0x7"),o.remove[os("0x2c")]))});continue}if(""!=o[os("0x4")]){n.push({type:os("0x13"),content:Yo(e,os("0x2"),'"'+o[os("0x4")]+'"')});continue}n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),'"'+o[os("0x5")]+'"')});continue;case os("0x2e"):case os("0x0"):n[os("0x2b")]({type:"insertion",content:Yo(e,os("0x2"),this.getItemLabel(o[os("0x27")],o[os("0x31")]))});continue;case"removeEmptyContainer":case os("0x20"):n.push({type:os("0xa"),content:Yo(e,os("0xe"),this.getItemLabel(o.element,o[os("0x31")]))});continue;case os("0x2f"):n[os("0x2b")]({type:os("0x13"),content:Yo(e,os("0x24"),this[os("0x14")](o.element,o.quantity))});continue;case os("0x37"):n[os("0x2b")]({type:"deletion",content:Yo(e,os("0x18"),this[os("0x14")](o[os("0x27")],o[os("0x31")]))});continue}n[os("0x2b")](o)}return n}}const rs=["TrackChangesEditing","showAIAssistant","commands","enableCommand","plugins"];var is,xs;is=rs,xs=446,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x3")].get(as("0x4"));t[as("0x1")].get(as("0x0"))&&e[as("0x2")](as("0x0"))}}const ls=["checkAttribute","getAttribute","afterInit","center","alignment","schema","model","locale","enableCommand","FORMAT_ALIGN_TO_CENTER","*Format:* %0","getSelectedBlocks","format","get","right","left","value","from","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","filter","selection","markBlockFormat","TrackChangesEditing","ltr","editor","plugins","has","document","change","commandName","justify","FORMAT_ALIGN_TO_LEFT"];var ds,us;ds=ls,us=438,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x1a")](){const t=this[gs("0x10")],e=t.locale;if(!t[gs("0x11")][gs("0x12")](gs("0xa")))return;const n=t[gs("0x11")][gs("0x4")](gs("0xe"));n[gs("0x20")]("alignment",((e,o={})=>{let s=o[gs("0x7")];o[gs("0x7")]||(s=gs("0xf")===t[gs("0x1f")].contentLanguageDirection?"left":"right");const r=Array[gs("0x8")](this[gs("0x10")].model[gs("0x13")][gs("0xc")][gs("0x2")]())[gs("0xb")]((t=>function(t,e,n){const o=t[gs("0x19")](gs("0x1c"))||null;return e[gs("0x18")](t,gs("0x1c"))&&n!=o}(t,this.editor[gs("0x1e")][gs("0x1d")],s)));t.model[gs("0x14")]((()=>{for(const t of r)n[gs("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&gs("0x1c")==n[gs("0x15")]){const t=n.commandParams[0][gs("0x7")];return{type:gs("0x3"),content:Yo(e,gs("0x1"),function(t){switch(t){case gs("0x6"):return Yo(e,gs("0x17"));case gs("0x5"):return Yo(e,gs("0x9"));case gs("0x1b"):return Yo(e,gs("0x0"));case gs("0x16"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["getCustomProperty","ck-suggestion-marker-","createUIElement","isLimit","writer","item","insert","type","start","plugins","includes","listIndent","consumable","getWalker","get","nextSibling","TrackChangesEditing","name","getItems","element","addHighlight","activeMarkers","test","model","toViewPosition","mapper","isContent","schema","previousPosition","addClass","createRangeOn","markerName","getAttribute","push","markerRange","toViewElement","isBlock","listItem"];var hs,ps;hs=fs,ps=500,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0xc")]())s.hasAttribute(t)&&o[bs("0x1b")](n[bs("0x18")](s));return o}function _s(t){const e=[];if(t.is(bs("0xd"),"listItem")){let n=t[bs("0x9")];for(;n&&n.is(bs("0xd"),bs("0x1f"))&&n[bs("0x1a")](bs("0x5"))>0;)e.push(n),n=n.nextSibling}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x3")][bs("0x8")](bs("0xa"));return(s,r,i)=>{if(!i[bs("0x6")][bs("0x10")](r[bs("0x1c")],s[bs("0xb")]))return;const x=r[bs("0x1c")][bs("0x7")](),a=r[bs("0x1c")][bs("0x2")],c=t[bs("0x11")][bs("0x15")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x25")];u=u||c[bs("0x14")](e);const n=i.mapper[bs("0x1d")](e);if(n&&n[bs("0x20")](bs("0xe")))return;"elementEnd"==t[bs("0x1")]&&c[bs("0x1e")](e)&&!c[bs("0x23")](e)&&(e[bs("0x9")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[bs("0x16")]),g=!0):d=d||t[bs("0x16")])}function m(t){const s=i[bs("0x24")][bs("0x22")]("span",{class:bs("0x21")+e}),x=i.mapper[bs("0x12")](t);n&&o[bs("0xf")][bs("0x4")](r[bs("0x19")])&&i[bs("0x24")][bs("0x17")]("ck-suggestion-marker--active",s),i[bs("0x24")][bs("0x0")](x,s),i[bs("0x13")].bindElementToMarker(s,r[bs("0x19")])}u||g||!d||m(d)}}const Cs=["TrackChangesEditing","commandParams","format","commands","get","slice","FORMAT_ITALIC","markInlineFormat","StrikethroughEditing","code","value","FORMAT_SUPERSCRIPT","editor","plugins","subscript","toLowerCase","*Format:* %0","CodeEditing","from","change","strikethrough","UnderlineEditing","registerDescriptionCallback","SubscriptEditing","_descriptionFactory","afterInit","bold","enableCommand","ItalicEditing","BoldEditing","getRanges","italic","superscript","selection","forceValue","*Remove format:* %0","document","locale","underline","has","SuperscriptEditing","FORMAT_CODE","FORMAT_SUBSCRIPT"];var ys,ks;ys=Cs,ks=281,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x6"),As("0x5"),As("0x29"),As("0x25"),As("0x1c"),As("0x0"),As("0x11")];class Rs extends t.Plugin{[As("0x2")](){const t=this[As("0x20")],e=t.model,n=t.plugins[As("0x18")](As("0x14")),o=t[As("0xe")];for(const o of vs){if(!t[As("0x21")][As("0x10")](o))continue;const s=o[As("0x19")](0,-7)[As("0x23")](),r=t[As("0x17")][As("0x18")](s);n[As("0x4")](s,((t,o={})=>{const i=e[As("0xd")][As("0xa")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0xb")]?o[As("0xb")]:!r[As("0x1e")];e[As("0x27")]((()=>{const t=Array[As("0x26")](i[As("0x7")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1")][As("0x2a")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x15")][0].forceValue?{type:As("0x16"),content:Yo(o,As("0x24"),e)}:{type:As("0x16"),content:Yo(o,As("0xc"),e)}}))}s(As("0x3"),Yo(o,"FORMAT_BOLD")),s(As("0x8"),Yo(o,As("0x1a"))),s(As("0xf"),Yo(o,"FORMAT_UNDERLINE")),s(As("0x1d"),Yo(o,As("0x12"))),s(As("0x28"),Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x22"),Yo(o,As("0x13"))),s(As("0x9"),Yo(o,As("0x1f")))}}const Ss=["name","blockQuote","_descriptionFactory","*Format:* %0","enableCommand","plugins","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","$root","format","document","BlockQuoteEditing","schema","filter","commandName","from","TrackChangesEditing","commandParams","locale","getSelectedBlocks","registerDescriptionCallback","parent","afterInit","selection","editor","value","change","get","model","forceValue"];var Is,Ls;Is=Ss,Ls=237,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x19")](){const t=this[Ns("0x1b")],e=t[Ns("0x15")];if(!t[Ns("0x8")].has(Ns("0xe")))return;const n=t[Ns("0x8")][Ns("0x0")](Ns("0x13")),o=this[Ns("0x1b")].commands.get("blockQuote");n[Ns("0x7")]("blockQuote",((e,s={})=>{const r=this.editor.model[Ns("0xd")][Ns("0x1a")],i=s&&void 0!==s.forceValue?s[Ns("0x2")]:!o[Ns("0x1c")];let x=[];if(i){const e=Array[Ns("0x12")](r.getSelectedBlocks())[Ns("0x10")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t.parent,Ns("0x4")),o=e.checkChild([Ns("0xb"),Ns("0x4")],t);return n&&o}(t,this[Ns("0x1b")][Ns("0x1")][Ns("0xf")])));x=S(e,t[Ns("0x1")])}else{const e=Array[Ns("0x12")](r[Ns("0x16")]())[Ns("0x10")]((t=>Ms(t)));x=S(e,t[Ns("0x1")])}t[Ns("0x1")][Ns("0x1d")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x4"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x5")][Ns("0x17")]((t=>{const{data:n}=t;if(n&&Ns("0x4")==n[Ns("0x11")]){const t=Yo(e,Ns("0xa"));return n[Ns("0x14")][0][Ns("0x2")]?{type:"format",content:Yo(e,Ns("0x6"),t)}:{type:Ns("0xc"),content:Yo(e,Ns("0x9"),t)}}}))}}function Ms(t){return Ns("0x4")==t[Ns("0x18")][Ns("0x3")]}const Os=["commands","enableCommand","afterInit","editor","TrackChangesEditing","ckbox","plugins"];var Fs,Ps;Fs=Os,Ps=169,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x2")];t[Ds("0x6")].get("ckbox")&&t[Ds("0x5")].get(Ds("0x3"))[Ds("0x0")](Ds("0x4"))}}const js=["CodeBlock","registerElementLabel","schema","indentCodeBlock","*Remove format:* %0","name","registerDescriptionCallback","_descriptionFactory","rootElement","languages","has","model","from","forceValue","document","locale","config","isLimit","ELEMENT_CODE_BLOCK","editor","format","getSelectedBlocks","checkChild","language","commandParams","filter","commands","TrackChangesEditing","afterInit","enableCommand","codeBlock","plugins","*Format:* %0","label","outdentCodeBlock","get"];var Us,Gs;Us=js,Gs=361,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x1b")](){const t=this[Hs("0x12")];if(!t[Hs("0x1e")][Hs("0x9")](Hs("0x23")))return;const e=t[Hs("0x1e")][Hs("0x22")](Hs("0x1a")),n=t[Hs("0xe")],o=t[Hs("0xf")][Hs("0x22")]("codeBlock")[Hs("0x8")],s=t[Hs("0x19")][Hs("0x22")]("codeBlock");e[Hs("0x1c")](Hs("0x2")),e[Hs("0x1c")](Hs("0x21")),e[Hs("0x1c")](Hs("0x1d"),((n,r={})=>{const i=t[Hs("0xa")],x=t[Hs("0xa")][Hs("0xd")].selection,a=r&&void 0!==r[Hs("0xc")]?r[Hs("0xc")]:!s.value;let c;r[Hs("0x16")]||(r[Hs("0x16")]=o[0].language),c=a?Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x1")],!e.is(Hs("0x7"))&&!n[Hs("0x10")](e)&&n[Hs("0x15")](e.parent,Hs("0x1d")));var e,n})):Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>Ws(t)));const l=S(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Hs("0x1d"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Hs("0x0")]("codeBlock",(t=>Yo(n,Hs("0x11"),t))),e[Hs("0x6")][Hs("0x5")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x1d")==r.commandName){const t=r[Hs("0x17")][0][Hs("0x16")],s=e(o.find((e=>e[Hs("0x16")]===t))[Hs("0x20")]);return r[Hs("0x17")][0][Hs("0xc")]?{type:Hs("0x13"),content:Yo(n,Hs("0x1f"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x3"),Yo(n,Hs("0x11"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x4")]}const Vs=["has","get","editor","plugins","addCommentThread","afterInit","CommentsEditing","TrackChangesEditing"];var Ks,qs;Ks=Vs,qs=235,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x2")](){const t=this[Xs("0x7")];t[Xs("0x0")][Xs("0x5")](Xs("0x3"))&&t[Xs("0x0")][Xs("0x6")](Xs("0x4")).enableCommand(Xs("0x1"))}}var Js=n(181);const Qs=["enqueueChange","end","isCollapsed","createRange","mapper","data","requires","detach","enableCommand","high","unbindElementFromMarkerName","selection","root","merge","commands","fromRange","setSelection","unit","lock","start","markerNameToElements","remove","downcastDispatcher","forward","unlock","addMarker:suggestion:deletion","TrackChangesEditing","editor","deleteForward","buffer","bind","model","options","$graveyard","editing","writer","modifySelection","rootName","delete","showSuggestionHighlights","batch","getFirstRange","get","plugins","uiElement"];var Zs,Ys;Zs=Qs,Ys=302,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x13")](){return[Js.Delete]}init(){const t=this[tr("0x28")],e=t[tr("0xb")][tr("0xa")](tr("0x27"));e[tr("0x15")](tr("0x6"));const n=t[tr("0x1b")][tr("0xa")](tr("0x29"));e[tr("0x15")](tr("0x29"),((e,o={})=>{const s=t[tr("0x2c")].createSelection(t.model.document[tr("0x18")]);s[tr("0xf")]&&t[tr("0x2c")][tr("0x4")](s,{direction:tr("0x24"),unit:o[tr("0x1e")]});const r=s[tr("0x9")](),x=i.LiveRange[tr("0x1c")](r);let a;e(o),a=tr("0x1")==x[tr("0x19")][tr("0x5")]?t[tr("0x2c")][tr("0x10")](r.start):t.model[tr("0x10")](x[tr("0x20")],x[tr("0xe")]),x[tr("0x14")](),t[tr("0x2c")][tr("0xd")](n[tr("0x2a")][tr("0x8")],(t=>{n[tr("0x2a")][tr("0x1f")](),t[tr("0x1d")](t[tr("0x10")](a[tr("0xe")])),n[tr("0x2a")][tr("0x25")]()}))})),t[tr("0x2")][tr("0x23")].on(tr("0x26"),Ts(t,tr("0x1a")),{priority:tr("0x16")}),t[tr("0x12")].downcastDispatcher.on(tr("0x26"),((e,n,o)=>{o[tr("0x0")][tr("0x7")]&&Ts(t,"merge",{showActiveMarker:!1})[tr("0x2b")](this)(e,n,o)}),{priority:tr("0x16")}),t[tr("0x2")][tr("0x23")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[tr("0x11")][tr("0x21")](e.markerName);if(o)for(const t of o)t.is(tr("0xc"))&&(n.mapper[tr("0x17")](t,e.markerName),n[tr("0x3")][tr("0x22")](t))}),{priority:tr("0x16")})}}const nr=["getRanges","change","start","nextSibling","setSelection","schema","paragraph","execute","mergeListItemForward","multipleBlocks","commands","*Format:* insert into %0","push","config","has","markMultiRangeBlockFormat","toUpperCase","end","*Change to:* %0","model","list.multiBlock","outdentList","selection","numberedList","deletion","_LIST","getAttribute","accept","indentList","enableCommand","add","format","getSelectedBlocks","ELEMENT_LIST_ITEM","get","commandName","*Format:* remove from %0","fromRange","slice","listItemId","length","plugins","listIndent","after","documentList","value","bulletedList","registerDescriptionCallback","map","refresh","locale","before","ELEMENT_BULLETED_LIST","createRange","document","parent","from","listType","commandParams","isFirstBlockOfListItem","registerCustomCallback","forceValue","markBlockFormat","ELEMENT_NUMBERED_LIST","DocumentListEditing","createPositionAt","nodeAfter","expandListBlocksToCompleteList","afterInit","isObject","ELEMENT_","splitListItemBefore","formatBlock","*Outdent:* %0","getFirstRange","registerElementLabel","_descriptionFactory","containsItem","DocumentListUtils","splitListItemAfter"];var or,sr;or=nr,sr=377,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0xb")](){const t=this.editor;if(!t[rr("0x40")][rr("0x25")](rr("0x7")))return;const e=t[rr("0x49")],n=t[rr("0x40")][rr("0x39")]("TrackChangesEditing"),o=t[rr("0x40")][rr("0x39")](rr("0x15"));function s(e){return()=>{const s=t[rr("0x21")][rr("0x39")](e);if(s.value&&!t[rr("0x24")][rr("0x39")](rr("0x2b")))return void t.execute(rr("0x1d"),{});let r=Array.from(t[rr("0x2a")][rr("0x4d")].selection[rr("0x37")]());if(a(e)){r=o[rr("0xa")](r);const t=[];for(const e of r)o[rr("0x2")](e)&&t[rr("0x23")](e);r=t}t.model[rr("0x18")]((()=>{n[rr("0x26")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x44")]}],formatGroupId:rr("0x0")},[],rr("0x43"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x4f")](t);const n=e.findIndex((t=>!t.hasAttribute(rr("0x3e"))));return n>-1&&(e=e[rr("0x3d")](0,n)),e}(t.model[rr("0x4d")][rr("0x2d")].getSelectedBlocks()),s=o[o[rr("0x3f")]-1],r=t.model[rr("0x1c")][rr("0xc")](s)?rr("0x42"):rr("0x28"),i=t[rr("0x2a")][rr("0x4c")](t[rr("0x2a")][rr("0x8")](o[0],"before"),t[rr("0x2a")].createPositionAt(s,r));t[rr("0x2a")].change((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x1a")];for(;t&&t[rr("0x31")]("listIndent")>n.getAttribute("listIndent");)e[rr("0x35")](t),t=t.nextSibling}return Array[rr("0x4f")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x2a")][rr("0x4d")][rr("0x2d")][rr("0x37")]().next().value,s=t[rr("0x2a")][rr("0x8")](o,rr("0x4a")),r=t[rr("0x2a")][rr("0x8")](o,0),i=t[rr("0x2a")][rr("0x4c")](s,r);t[rr("0x2a")][rr("0x18")]((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")})}))}}function a(e){const n=t.commands[rr("0x39")]("bulletedList")[rr("0x44")],o=t.commands[rr("0x39")](rr("0x2e"))[rr("0x44")];return rr("0x2e")===e?n:o}n.enableCommand(rr("0x2e"),s(rr("0x2e"))),n.enableCommand(rr("0x45"),s(rr("0x45"))),n[rr("0x34")](rr("0x33"),r(rr("0x33"))),n[rr("0x34")](rr("0x2c"),r("outdentList")),n[rr("0x34")](rr("0x16"),x(rr("0x16"))),n.enableCommand("splitListItemBefore",x(rr("0xe"))),n[rr("0x13")][rr("0x12")]((function(e){const n=!t[rr("0x2a")].schema[rr("0xc")](e),o=e.previousSibling,s=e[rr("0x1a")],r=e.getAttribute("listItemId"),i=!o||o[rr("0x31")](rr("0x3e"))!==r,x=!s||s[rr("0x31")](rr("0x3e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[rr("0x13")][rr("0x46")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x3a")]){case"bulletedList":i=o[rr("0x1")][0].forceValue,x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s=rr("0x29")),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x4b")))};break;case rr("0x2e"):i=o[rr("0x1")][0][rr("0x4")],x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s="*Change to:* %0"),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x6")))};break;case"indentList":s="*Indent:* %0",r={type:"format",content:Yo(e,s,Yo(e,rr("0x38")))};break;case"outdentList":s=function(t){const e=t[rr("0x11")]();let n=e[rr("0x19")][rr("0x9")];for(;n&&e[rr("0x14")](n);){if(n.getAttribute(rr("0x41"))>0)return!1;n=n[rr("0x1a")]}return!0}(n)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[rr("0x11")]()[rr("0x19")].nodeAfter;return rr("0xd")+e[rr("0x31")](rr("0x0"))[rr("0x27")]()+rr("0x30")}(n))):Yo(e,rr("0x10"),Yo(e,rr("0x38"))),r={type:rr("0x36"),content:s};break;case"mergeListItemBackward":case rr("0x1f"):!1===o[rr("0x20")]&&(s="*Merge:* %0",r={type:rr("0x2f"),content:Yo(e,s,Yo(e,rr("0x38")))})}return r})),n._suggestionFactory[rr("0x3")](rr("0xf"),rr("0x43"),rr("0x32"),(function(e,n){const o=[];for(let n of e)n[rr("0x19")][rr("0x9")]===n.end[rr("0x4e")]&&(n=t.model[rr("0x4c")](t[rr("0x2a")].createPositionAt(n.start.nodeAfter,0))),o[rr("0x23")](n);t.model[rr("0x18")]((e=>{const s=t[rr("0x2a")][rr("0x4d")][rr("0x2d")],r=Array.from(s[rr("0x17")]())[rr("0x47")]((t=>i.LiveRange[rr("0x3c")](t)));e[rr("0x1b")](o),t[rr("0x21")][rr("0x39")](n[rr("0x3a")])[rr("0x48")](),n[rr("0x1")][rr("0x23")]({forceDefaultExecution:!0}),t[rr("0x1e")](n[rr("0x3a")],...n[rr("0x1")]),e[rr("0x1b")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["enableCommand","options","parent","getFirstRange","markInsertion","markerName","get","enter","addMarker:suggestion:insertion","mapper","fromRange","getFirstPosition","setSelection","init","TrackChangesEditing","ck-suggestion-marker-split","editor","remove","split","detach","downcastDispatcher","removeMarker:suggestion:insertion","hasClass","document","high","writer","createRange","editing","plugins","showSuggestionHighlights","fire","commands","afterExecute","data","model","createPositionAt","requires","selection","change"];var cr,lr;cr=ar,lr=430,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x23")](){return[xr.Enter]}[dr("0xc")](){const t=this[dr("0xf")],e=t[dr("0x1b")][dr("0x5")](dr("0xd")),n=t[dr("0x1e")][dr("0x5")](dr("0x6"));e[dr("0x26")](dr("0x6"),(()=>{t[dr("0x21")][dr("0x25")]((o=>{const s=t.model[dr("0x16")][dr("0x24")],r=s[dr("0xa")](),x=i.LiveRange[dr("0x9")](s[dr("0x2")]());if(n.enterBlock(o)){const n=t[dr("0x21")][dr("0x22")](r[dr("0x1")].nextSibling,0),s=o[dr("0x19")](r,n);e[dr("0x3")](s)}else o[dr("0xb")](o.createRange(x.end));x[dr("0x12")](),n[dr("0x1d")](dr("0x1f"),{writer:o})}))})),t[dr("0x1a")][dr("0x13")].on(dr("0x7"),Ts(t,dr("0x11")),{priority:dr("0x17")}),t[dr("0x1a")][dr("0x13")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0x8")].markerNameToElements(e[dr("0x4")]);if(o)for(const t of o)t[dr("0x15")](dr("0xe"))&&(n.mapper.unbindElementFromMarkerName(t,e[dr("0x4")]),n[dr("0x18")][dr("0x10")](t))}),{priority:"high"}),t[dr("0x20")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[dr("0x0")][dr("0x1c")]&&Ts(t,dr("0x11"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x17")})}}const gr=["filter","getIntersection","handleFindCommand","get","findByTextCallback","createRange","FindAndReplaceUtils","has","enableCommand","model","markers","replaceAll","afterInit","editor","suggestion:deletion","bind","getRange","start","TrackChangesEditing","findNext","getMarkersGroup","end","string","plugins","findPrevious","FindAndReplaceEditing","_isInDeletionRange"];var mr,fr;mr=gr,fr=245,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xa")](){if(!this.editor[hr("0x15")][hr("0x5")](hr("0x17")))return;const t=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x10"));t[hr("0x6")]("find",this.handleFindCommand[hr("0xd")](this)),t[hr("0x6")](hr("0x11")),t[hr("0x6")](hr("0x16")),t[hr("0x6")]("replace"),t[hr("0x6")](hr("0x9"))}[hr("0x0")](t,e,n={}){const o=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x4"));if(void 0!==n)return t((t=>(hr("0x14")==typeof e?o[hr("0x2")](e,n):e)(t)[hr("0x19")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[hr("0x18")](t,e){const n=this[hr("0xb")].model[hr("0x3")](this[hr("0xb")][hr("0x7")].createPositionAt(e,t[hr("0xf")]),this[hr("0xb")].model.createPositionAt(e,t[hr("0x13")]));for(const t of this[hr("0xb")][hr("0x7")][hr("0x8")][hr("0x12")](hr("0xc")))if(null!==n[hr("0x1a")](t[hr("0xe")]()))return!0;return!1}}const br=["FontFamilyEditing","afterInit","get","getRanges","_enableCommand","*Set font family:* %0","document","change","fontBackgroundColor","value","trim","toLowerCase","*Reset font color*","fontSize","FontColorEditing","isCollapsed","has","locale","commandName","fontColor.colors","*Set font background color:* %0","_descriptionFactory","from","*Set font color:* %0","fontBackgroundColor.colors","TrackChangesEditing","plugins","*Reset font family*","find","label","format","enableCommand","*Set font size:* %0","FontSize","*Reset font size*","fontColor","model","commandParams","editor","config"];var Er,_r;Er=br,_r=189,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:"FontSizeEditing",commandName:Tr("0x18")},{pluginName:Tr("0xb"),commandName:"fontFamily"},{pluginName:Tr("0x19"),commandName:Tr("0x6")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x13")}];class yr extends t.Plugin{[Tr("0xc")](){const t=this[Tr("0x9")][Tr("0x1c")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x9")].plugins[Tr("0x1b")](t)&&this[Tr("0xf")](e);this[Tr("0x9")][Tr("0x25")][Tr("0xd")](Tr("0x24"))[Tr("0x20")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x18")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0].value;if(e){const o=n(this[Tr("0x9")].plugins[Tr("0xd")](Tr("0x4")).normalizeSizeOptions(this[Tr("0x9")].config[Tr("0xd")]("fontSize.options"))[Tr("0x27")]((t=>t[Tr("0x7")]==e)).title)[Tr("0x16")]();return{type:Tr("0x1"),content:Yo(t,Tr("0x3"),o)}}return{type:Tr("0x1"),content:Yo(t,Tr("0x5"))}}if("fontFamily"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];return e?{type:Tr("0x1"),content:Yo(t,Tr("0x10"),e)}:{type:Tr("0x1"),content:Yo(t,Tr("0x26"))}}if(Tr("0x6")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x9")][Tr("0xa")].get(Tr("0x1e")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r).toLowerCase()),{type:Tr("0x1"),content:Yo(t,Tr("0x22"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,Tr("0x17"))}}if("fontBackgroundColor"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[Tr("0xa")].get(Tr("0x23")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r)[Tr("0x16")]()),{type:Tr("0x1"),content:Yo(t,Tr("0x1f"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,"*Reset font background color*")}}}}))}[Tr("0xf")](t){const e=this.editor;e[Tr("0x25")].get("TrackChangesEditing")[Tr("0x2")](t,((n,o={})=>{const s=e[Tr("0x7")][Tr("0x11")].selection,r=o[Tr("0x14")];s[Tr("0x1a")]?n(o):e[Tr("0x7")][Tr("0x12")]((()=>{const n=Array[Tr("0x21")](s[Tr("0xe")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x7")]);for(const o of n)e[Tr("0x25")].get(Tr("0x24")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["*Remove all formatting*","getLastPosition","commandParams","fontBackgroundColor","getSelectedBlocks","slice","find","enableCommand","backward","change","from","plugins","registerDescriptionCallback","word","fontColor.colors","format","title","getFirstPosition","normalizeSizeOptions","document","commands","length","editor","schema","markInlineFormat","fontColor","selection","toLowerCase","getRanges","FontSize","copyFormat","modifySelection","config","pasteFormat","boolean","fontSize","afterInit","_descriptionFactory","commandName","entries","get","isFormatting","join","createSelection","toUpperCase","model","locale","getAttributeProperties","forward","getItems","*Set format to:* %0"];var Ar,vr;Ar=kr,vr=318,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x18")](){const t=this[Rr("0xa")],n=t[Rr("0x21")],o=n[Rr("0x7")][Rr("0xe")],s=t.plugins.get("TrackChangesEditing"),r=t[Rr("0x22")],i=t[Rr("0x8")][Rr("0x1c")](Rr("0x12")),x=t[Rr("0x8")][Rr("0x1c")](Rr("0x15"));i&&x&&(s[Rr("0x2e")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x30")]((()=>{const t=Array[Rr("0x31")](o[Rr("0x10")]()),r=o.isCollapsed?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Rr("0x23")](n);t&&t[Rr("0x1d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x10")]())for(const t of e[Rr("0x25")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Rr("0x2b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0xb")]))||0!==Object.keys(i)[Rr("0x9")])for(const t of r)s[Rr("0xc")](t,{commandName:Rr("0x15"),commandParams:[i]})}))})),s[Rr("0x19")][Rr("0x0")]((e=>{const{data:n}=e;if(n&&Rr("0x15")===n[Rr("0x1a")]){const e=[],o=n[Rr("0x29")][0];for(const[n,s]of Object[Rr("0x1b")](o))e.push(Lr(t,n,s));return e.length?{type:"format",content:Yo(r,Rr("0x26"),e.join(", "))}:{type:Rr("0x3"),content:Yo(r,Rr("0x27"))}}})),t[Rr("0x32")][Rr("0x1c")]("TrackChangesEditing")[Rr("0x2e")](Rr("0x12")))}}function Ir(t,e){const n=t[Rr("0x1f")](e);t[Rr("0x13")](n,{unit:"word",direction:Rr("0x2f")});const o=n[Rr("0x5")]();t.modifySelection(n,{unit:Rr("0x1"),direction:Rr("0x24")});const s=n[Rr("0x28")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t[Rr("0x22")].t,r=e.split(/(?=[A-Z])/)[Rr("0x1e")](" "),i=o(r.charAt(0)[Rr("0x20")]()+r[Rr("0x2c")](1)).toLowerCase();if(Rr("0x16")==typeof n)return i;if(Rr("0xd")===e||Rr("0x2a")===e){const e=(0,s.normalizeColorOptions)(t.config[Rr("0x1c")](Rr("0x2"))).find((t=>t[Rr("0x21")]==n));return i+" ("+(e?o(e.label)[Rr("0xf")]():n)+")"}if(Rr("0x17")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x32")][Rr("0x1c")](Rr("0x11"))[Rr("0x6")](t[Rr("0x14")][Rr("0x1c")]("fontSize.options"))[Rr("0x2d")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x4")])[Rr("0xf")]():n)+")"}return i+" ("+n+")"}const Nr=["isObject","getSelectedBlocks","heading","markBlockFormat","formatBlock","checkChild","model","get","HeadingEditing","ELEMENT_HEADING_CUSTOM","*Change to:* %0","filter","title","commandParams","enableCommand","paragraph","name","has","plugins","match","heading.options","format","blockName","editor","ELEMENT_HEADING","_descriptionFactory","registerDescriptionCallback","selection","value","find","document","parent","schema"];var wr,Mr;wr=Nr,Mr=373,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0xd")],e=t.locale,n=t.config[Or("0x1e")](Or("0xa"));if(!t[Or("0x8")][Or("0x7")](Or("0x1f")))return;const o=t.plugins[Or("0x1e")]("TrackChangesEditing");o[Or("0x4")](Or("0x19"),((e,n)=>{const s=n[Or("0x12")],r=Array.from(this[Or("0xd")].model[Or("0x14")][Or("0x11")][Or("0x18")]())[Or("0x1")]((t=>{return e=t,n=s,(o=this.editor[Or("0x1d")][Or("0x16")])[Or("0x1c")](e[Or("0x15")],n)&&!o[Or("0x17")](e)&&e[Or("0x6")]!=n;var e,n,o}));t[Or("0x1d")].change((()=>{for(const t of r)o[Or("0x1a")](t,{commandName:Or("0x19"),commandParams:[n],formatGroupId:Or("0xc")},_s(t))}))}));for(const t of n)Or("0x5")!=t[Or("0x1d")]&&o[Or("0xf")].registerElementLabel(t[Or("0x1d")],(e=>{const n=Pr(t[Or("0x1d")]);return null!==n?s(e,n):r(e,t[Or("0x2")])}));function s(t,n){return Yo(e,Or("0xe"),[t,n])}function r(t,n){return Yo(e,Or("0x20"),[t,n])}o[Or("0xf")][Or("0x10")]((t=>{const{type:o,data:i}=t;if(Or("0x1b")==o&&i&&Or("0x19")==i.commandName){const t=i[Or("0x3")][0][Or("0x12")],o=Pr(t);if(null!==o)return{type:Or("0xb"),content:Yo(e,Or("0x0"),s(1,o))};const x=n[Or("0x13")]((e=>e[Or("0x1d")]===t))[Or("0x2")];return{type:Or("0xb"),content:Yo(e,Or("0x0"),r(1,x))}}}))}}function Pr(t){const e=t[Or("0x9")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["backward","registerDescriptionCallback","editor","*Remove highlight*","createRange","config","selection","highlight","item","plugins","format","value","_descriptionFactory","TrackChangesEditing","getAttribute","markInlineFormat","model","*Set highlight:* %0","commandName","find","push","getLastMatchingPosition","FORMAT_HIGHLIGHT","isCollapsed","color","afterInit","has","toLowerCase","title"];var Br,jr;Br=Dr,jr=239,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x12")](){const t=this[Ur("0x18")];if(!t[Ur("0x2")][Ur("0x13")]("HighlightEditing"))return;const e=t[Ur("0x2")].get(Ur("0x6"));e.enableCommand(Ur("0x0"),((n,o={})=>{const s=t[Ur("0x9")].document[Ur("0x1c")],r=s[Ur("0x7")](Ur("0x0"));let i=o.value,x=[];if(s[Ur("0x10")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0x0")))return void n(o);{const n=t=>t[Ur("0x1")][Ur("0x7")]("highlight")===r,o=e[Ur("0xe")](n,{direction:Ur("0x16")}),s=e[Ur("0xe")](n);x=[t[Ur("0x9")][Ur("0x1a")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0xd")](e):x[Ur("0xd")](...Es(Ur("0x0"),e,t[Ur("0x9")]));t[Ur("0x9")].change((()=>{for(const t of x)e[Ur("0x8")](t,{commandName:Ur("0x0"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x5")][Ur("0x17")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ur("0x0")==s[Ur("0xb")]){const e=n.t,o=s.commandParams[0][Ur("0x4")];if(o){const s=t[Ur("0x1b")].get("highlight.options")[Ur("0xc")]((t=>t[Ur("0x9")]==o)),r=e(s[Ur("0x15")])[Ur("0x14")]();return{type:Ur("0x3"),content:Yo(n,Ur("0xa"),r),color:{value:s[Ur("0x11")],title:s[Ur("0x15")]}}}return{type:Ur("0x3"),content:Yo(n,Ur("0x19"),Yo(n,Ur("0xf")))}}}))}}const Hr=["ELEMENT_HORIZONTAL_LINE","dataDowncast","_descriptionFactory","for","high","has","afterInit","createContainerElement","horizontalLine","elementToStructure","showSuggestionHighlights","conversion","get","div","plugins","TrackChangesEditing","editor","registerElementLabel","HorizontalLineEditing"];var zr,Wr;zr=Hr,Wr=290,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1")](){const t=this[Vr("0xb")];if(!t.plugins[Vr("0x0")](Vr("0xd")))return;t[Vr("0x9")][Vr("0x7")]("TrackChangesEditing").enableCommand(Vr("0x3"));const e=t[Vr("0x9")][Vr("0x7")](Vr("0xa")),n=t.locale;e[Vr("0x10")][Vr("0xc")](Vr("0x3"),(t=>Yo(n,Vr("0xe"),t))),t[Vr("0x6")][Vr("0x11")](Vr("0xf"))[Vr("0x4")]({model:Vr("0x3"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x5")])return null;const o=e[Vr("0x2")](Vr("0x8")),s=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Vr("0x12")})}}const qr=["change","TrackChangesEditing","htmlEmbed","getSelectedElement","has","model","cancel","value","enableCommand","ELEMENT_HTML_EMBED","editing","registerElementLabel","markBlockFormat","view","rawHtml","locale","*Change %0 content*","getAttribute","commandName","getCustomProperty","rawHtmlApi","get","plugins","_descriptionFactory","document","element"];var Xr,$r;Xr=qr,$r=256,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jr("0x0")][Jr("0x8")]("HtmlEmbed"))return;const e=t.plugins[Jr("0x19")](Jr("0x5")),n=t[Jr("0x13")],o=t[Jr("0xe")][Jr("0x11")][Jr("0x2")].selection;e[Jr("0x1")][Jr("0xf")](Jr("0x12"),(t=>Yo(n,Jr("0xd"),t))),t.plugins[Jr("0x19")](Jr("0x5"))[Jr("0xc")](Jr("0x6"),((n,s)=>{const r=t[Jr("0x9")],i=r[Jr("0x2")].selection;r[Jr("0x4")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x3"),Jr("0x12"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Jr("0x15")](Jr("0xb"))||"";void 0!==s&&s!==r&&(e[Jr("0x10")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Jr("0x7")]()[Jr("0x17")](Jr("0x18"))[Jr("0xa")]())}))})),e[Jr("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Jr("0x6")==e[Jr("0x16")]){const t=Yo(n,Jr("0xd"));return{type:"format",content:Yo(n,Jr("0x14"),t)}}}))}}const Zr=["getContainedElement","accept","fromPosition","imageTypeInline","commandName","schema","formatInline","isCollapsed","registerDescriptionCallback","*Set image text alternative:* %0","hasAttribute","nodeAfter","shouldConvertImageType","side","markInsertion","length","has","ImageResize","imageTypeBlock","imageStyle","value","getClosestSelectedImageElement","join","ImageEditing","alt","next","insertion","ImageTextAlternativeEditing","*Format:* %0","filter","createRangeOn","suggestion","toNext","detach","registerElementLabel","model","getCaptionFromImageModelElement","caption","backward","selection","*Remove image text alternative*","_suggestionFactory","getAttribute","imageStylePreApply","imageInline","commandReversedParams","ELEMENT_INLINE_IMAGE","getSuggestionCallback","toggleImageCaption","format","findIndex","editor","uploadImage","_splitMarkerName","ELEMENT_IMAGE","commandParams","ImageUploadEditing","type","document","ImageInlineEditing","discardSuggestion","subType","getChangedMarkers","enableCommand","change","author","_findSuggestions","hasSuggestion","convertInlineImageToBlock","convertBlockImageToInline","toLowerCase","imageStylePostApply","createRange","markBlockFormat","_descriptionFactory","refresh","ImageBlockEditing","newRange","getNearestSelectionRange","width","normalizedStyles","*Set image width:* %0","ImageStyleEditing","start","isBefore","forceDefaultExecution","get","ELEMENT_CAPTION","plugins","isBlockImage","find","*Reset image width*","previous","ImageCaptionUtils","afterInit","head","isOwn","commands","isEqual","formatBlock","imageCaption","markInlineFormat","element","getFirstRange","Users","imageTextAlternative","isInContent","registerPostFixer","insertImage","end","discard","name","setImageNaturalSizeAttributes","FORMAT_SIDE_IMAGE","chain","resizeImage","newValue","forward","imageBlock","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1e")](){const t=this[ei("0x6b")];if(!t[ei("0x18")][ei("0x48")](ei("0x4f")))return;const n=t[ei("0x18")].get("TrackChangesEditing"),o=t[ei("0x18")].get("ImageUtils"),s={},r=t.locale;if(n[ei("0x77")](ei("0x2c")),n._descriptionFactory[ei("0x5a")](ei("0x36"),(t=>Yo(r,ei("0x6e"),t))),n[ei("0xa")][ei("0x5a")](ei("0x64"),(t=>Yo(r,ei("0x66"),t))),n[ei("0xa")][ei("0x5a")](ei("0x5d"),(()=>Yo(r,ei("0x17")))),t[ei("0x18")][ei("0x48")](ei("0x70"))&&n[ei("0x77")](ei("0x6c")),t[ei("0x18")][ei("0x48")](ei("0xc"))&&t[ei("0x18")][ei("0x48")](ei("0x73"))&&(n[ei("0x77")](ei("0x3b"),((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:ei("0x3b"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x77")](ei("0x4a"),((e,s)=>{t[ei("0x5b")][ei("0x0")]((r=>{let x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),a=r[ei("0x56")](x);const c=i.LivePosition.fromPosition(a[ei("0x13")],"toPrevious"),l=i.LivePosition[ei("0x3a")](a[ei("0x2d")],ei("0x58"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),a=r[ei("0x56")](x);const d=r.createRange(c,l);c[ei("0x59")](),l.detach(),n[ei("0x9")](x,{commandName:ei("0x3b"),commandParams:[s]},[],ei("0x4")),d[ei("0x13")].isBefore(a.start)&&n[ei("0x46")](r[ei("0x8")](d.start,a.start),ei("0x4")),a[ei("0x2d")][ei("0x14")](d.end)&&n.markInsertion(r[ei("0x8")](a[ei("0x2d")],d.end),ei("0x4"))}))})),n[ei("0x61")][ei("0x37")](ei("0x23"),"convertInlineImageToBlock",ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x39"),(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x23"),ei("0x4"),"discard",n[ei("0x61")].getSuggestionCallback(ei("0x23"),"",ei("0x39"))),n[ei("0x61")][ei("0x37")](ei("0x52"),ei("0x4"),ei("0x4e"),(()=>!1)),n._suggestionFactory[ei("0x37")](ei("0x52"),ei("0x4"),ei("0x2e"),(([e])=>{const o=n._suggestionFactory[ei("0x67")](ei("0x52"),"",ei("0x2e"));let s=e[ei("0x13")],r=e[ei("0x2d")];const i=t.model.schema.getNearestSelectionRange(s,ei("0x5e")),x=t.model[ei("0x3d")][ei("0xe")](r,ei("0x35"));i.isCollapsed&&(s=i[ei("0x13")]),x[ei("0x3f")]&&(r=x[ei("0x2d")]),o([t[ei("0x5b")][ei("0x8")](s,r)])})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x32"),c),n[ei("0x61")][ei("0x37")]("insertion",ei("0x4"),"chain",c)),t[ei("0x18")][ei("0x48")]("ImageCaptionEditing")&&(n[ei("0x77")](ei("0x68"),((e,s)=>{const r=t.plugins[ei("0x16")](ei("0x1d"));let i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),x=r[ei("0x5c")](i);t.model[ei("0x0")]((()=>{if(x)return void n.markDeletion(t.model[ei("0x56")](x));const a=o[ei("0x19")](i);e(s),i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),x=r[ei("0x5c")](i),n[ei("0x46")](t[ei("0x5b")].createRangeOn(x),a?null:ei("0x24"))}))})),n[ei("0x61")].registerCustomCallback(ei("0x52"),ei("0x24"),ei("0x32"),c)),t[ei("0x18")][ei("0x48")](ei("0x12"))){n[ei("0x77")]("imageStyle",((s,r)=>{const i=t[ei("0x18")].get(ei("0x28")).me,x=t.commands[ei("0x16")]("imageStyle");let a=o.getClosestSelectedImageElement(t[ei("0x5b")][ei("0x72")][ei("0x5f")]),c=t[ei("0x5b")][ei("0x56")](a),l=x[ei("0x4c")];if(l==r[ei("0x4c")])return;const d={commandName:ei("0x4b"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x0")]((()=>{if(n.getSuggestions().filter((t=>t.isInContent&&i==t[ei("0x1")]&&(ei("0x23")==t[ei("0x71")]||ei("0x3e")==t[ei("0x71")])&&(ei("0x63")==t.subType||"imageStylePostApply"==t[ei("0x75")])&&t[ei("0x27")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[ei("0x1f")]))),a=o.getClosestSelectedImageElement(t.model.document[ei("0x5f")]),c=t.model[ei("0x56")](a),x[ei("0xb")](),t[ei("0x21")][ei("0x16")]("imageTypeInline").refresh(),t[ei("0x21")][ei("0x16")]("imageTypeBlock")[ei("0xb")](),l=x[ei("0x4c")],l!=r[ei("0x4c")])return o.isInlineImage(a)&&x[ei("0x44")](r[ei("0x4c")],a)?(s({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model[ei("0x72")].selection),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0x19")](a)?n.markBlockFormat(a,d,[],ei("0x7")):n[ei("0x25")](c,d,"imageStylePostApply"))}))}));for(const e of t[ei("0x18")][ei("0x16")](ei("0x12"))[ei("0x10")])s[e[ei("0x2f")]]=e.title[ei("0x6")]();n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x4e"),(()=>!1)),n[ei("0x61")].registerCustomCallback(ei("0x23"),ei("0x7"),ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x3e"),ei("0x7"),"join",(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),"accept",(([t])=>{o[ei("0x30")](t[ei("0x38")]())})),n._suggestionFactory[ei("0x37")](ei("0x23"),"imageStylePreApply","discard",((t,e)=>{n._suggestionFactory[ei("0x67")](ei("0x23"),"",ei("0x39"))(t,{commandName:e[ei("0x3c")],commandParams:e[ei("0x65")]})})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x32"),c)}const x=[{type:ei("0x23"),subType:"imageStylePreApply"},{type:"insertion",subType:ei("0x24")},{type:ei("0x23"),subType:ei("0x4")},{type:"insertion",subType:ei("0x4")}];function a(t,e){const s=x[ei("0x6a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t[ei("0x75")]==n)),r=x.findIndex((({type:t,subType:n})=>e[ei("0x71")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x27")](),a=e[ei("0x27")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x2")](i,"insertion")[ei("0x55")]((({suggestion:t,meta:e})=>e[ei("0x20")]&&ei("0x4")==t[ei("0x75")]));if(t[ei("0x47")]>1&&a[ei("0x2d")].isEqual(i.start))return!0;if(1==t[ei("0x47")]&&(i.start[ei("0x22")](a.end)||i[ei("0x2d")][ei("0x22")](a.start)))return!0}if(3==s&&3==r&&i[ei("0x13")][ei("0x14")](a[ei("0x13")])){const t=i[ei("0x2d")][ei("0x43")],e=a[ei("0x13")].nodeBefore;return o[ei("0x19")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x5b")].document[ei("0x2b")]((()=>{let e=!1;const s=Array.from(t[ei("0x5b")][ei("0x72")].differ[ei("0x76")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x6d")](t);if(ei("0x57")==s&&n[ei("0x3")](a)){if(ei("0x23")==i&&(ei("0x63")==x||ei("0x7")==x)){const t=n.getSuggestion(a);if(r[ei("0xd")]){const s=t[ei("0x27")]().getContainedElement();if(o[ei("0x19")](s))continue;n[ei("0x74")](t),e=!0}}if(ei("0x52")==i&&"imageCaption"==x&&!r[ei("0xd")]){const t=n.getSuggestion(a);t[ei("0x51")]&&t[ei("0x51")][ei("0x2a")]&&(n[ei("0x74")](t[ei("0x51")]),e=!0)}}}return e})),t[ei("0x18")][ei("0x48")](ei("0x49"))&&n[ei("0x77")]("resizeImage",((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);r[ei("0x62")]("resizedWidth")!=s[ei("0xf")]&&t[ei("0x5b")].change((()=>{n[ei("0x9")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x48")](ei("0x53"))&&n[ei("0x77")](ei("0x29"),((e,s)=>{const r=o[ei("0x4d")](t.model[ei("0x72")].selection);(r[ei("0x42")](ei("0x50"))?r.getAttribute("alt"):"")!=s[ei("0x34")]&&t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[ei("0xa")][ei("0x40")]((t=>{if(x[ei("0x1a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t.subType==n)))return t[ei("0x1c")]?{}:void 0})),n[ei("0xa")][ei("0x40")]((t=>{if("insertion"==t[ei("0x71")]||"deletion"==t[ei("0x71")]){const e=t[ei("0x38")]();if(e&&e.is(ei("0x26"),ei("0x5d")))return{type:"insertion"==t[ei("0x71")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[ei("0x40")]((t=>ei("0x23")==t[ei("0x71")]&&"convertInlineImageToBlock"==t.subType?{type:"format",content:"Inline image to block image"}:ei("0x23")==t.type&&ei("0x5")==t.subType?{type:ei("0x69"),content:"Block image to inline image"}:void 0)),n[ei("0xa")][ei("0x40")]((t=>{const{data:e}=t;if(e){if(ei("0x4b")==e[ei("0x3c")]){const t=e[ei("0x6f")][0].value;return n=ei("0x45")===t?Yo(r,ei("0x31")):s[t]||t,{type:"format",content:Yo(r,ei("0x54"),n)}}if(ei("0x29")==e[ei("0x3c")]){const t=e.commandParams[0].newValue;return t?{type:ei("0x69"),content:Yo(r,ei("0x41"),'"'+t+'"')}:{type:ei("0x69"),content:Yo(r,ei("0x60"))}}if(ei("0x33")==e[ei("0x3c")]){const t=e.commandParams[0][ei("0xf")];return t?{type:"format",content:Yo(r,ei("0x11"),t)}:{type:ei("0x69"),content:Yo(r,ei("0x1b"))}}}var n}))}}const oi=["document","ImageEditing","registerCustomCallback","commandName","locale","get","author","model","replaceImageSource","editor","format","subType","discard","handleReplaceImageCommand","commandParams","formatBlock","src","plugins","registerDescriptionCallback","TrackChangesEditing","accept","getSuggestions","selection","getSuggestionCallback","getContainedElement","enableCommand","has","markBlockFormat","_descriptionFactory","getAttribute","_suggestionFactory","handleSuggestionDescription","change"];var si,ri;si=oi,ri=295,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this[ii("0xb")][ii("0x13")][ii("0x1c")](ii("0x3")))return;const t=this.editor[ii("0x13")][ii("0x7")](ii("0x15"));t[ii("0x1b")](ii("0xa"),((t,e)=>this[ii("0xf")](t,e))),t._suggestionFactory.registerCustomCallback("formatBlock","replaceImageSource",ii("0x16"),t[ii("0x20")].getSuggestionCallback(ii("0x11"),null,ii("0xe"))),t._suggestionFactory[ii("0x4")]("formatBlock",ii("0xa"),ii("0xe"),t[ii("0x20")][ii("0x19")](ii("0x11"),null,ii("0x16"))),t[ii("0x1e")][ii("0x14")]((t=>this.handleSuggestionDescription(t)))}[ii("0xf")](t,e){const n=this[ii("0xb")].plugins[ii("0x7")](ii("0x15")),o=this[ii("0xb")][ii("0x9")][ii("0x2")][ii("0x18")].getSelectedElement();this[ii("0xb")][ii("0x9")][ii("0x1")]((()=>{let s=o[ii("0x1f")](ii("0x12"));const r=this[ii("0xb")][ii("0x13")][ii("0x7")]("Users").me;for(const t of n[ii("0x17")]({skipNotAttached:!0})){const e=t[ii("0x1a")]();if(ii("0xa")===t[ii("0xd")]&&e===o){t[ii("0x8")]!==r&&t[ii("0xe")](),s=t.data[ii("0x10")][0].source;break}}t(e),n[ii("0x1d")](o,{commandName:ii("0xa"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0x0")](t){const{data:e}=t;if(e&&ii("0xa")===e[ii("0x5")]){const t="*Format:* replace image URL";return{type:ii("0xc"),content:Yo(this[ii("0xb")][ii("0x6")],t)}}}}const ai=["TrackChangesEditing","dataInsert","_trackChangesValueDuringImport","high","plugins","get","value","trackChanges","Users","commands","listenTo","_handleImportedData","forEach","_setSuggestionData","enableCommand","editor","bind","_trackChangesExecuted","importWord","lowest","execute","track_changes"];var ci,li;ci=ai,li=388,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[di("0x3")]=!1}afterInit(){const t=this[di("0x1")],e=t.commands[di("0xd")](di("0x4")),n=t[di("0x11")][di("0xd")](di("0xf"));e&&(e.on(di("0x6"),((t,[,e])=>{this[di("0xa")]=n.value,e.collaboration_features[di("0x7")]=!this[di("0xa")]}),{priority:di("0xb")}),this.listenTo(e,di("0x9"),this._handleImportedData[di("0x2")](this)),this[di("0x12")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this[di("0x3")]=!1)}),{priority:di("0x5")}),t[di("0xc")][di("0xd")](di("0x8"))[di("0x0")](di("0x4")))}[di("0x13")](t,e){const{suggestions:n}=e,o=this[di("0x1")][di("0x11")].get(di("0xf")),s=o[di("0xe")];this[di("0xa")]!==s&&(o[di("0x6")](),this[di("0x3")]=!0),n&&n[di("0x14")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0x1")].plugins[di("0xd")](di("0x10")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[di("0x1")][di("0xc")][di("0xd")](di("0x8"))[di("0x15")](s)}))}}const gi=["indent","afterInit","enableCommand","commandName","model","from","getSelectedBlocks","_descriptionFactory","*Outdent:* %0","markBlockFormat","indentBlock","*Indent:* %0","document","format","registerDescriptionCallback","locale","get","editor","plugins","getItems","outdentBlock","has","getItemLabel","change","checkAttribute","filter","IndentEditing"];var mi,fi;mi=gi,fi=330,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x16")](){const t=this.editor,e=t.plugins[hi("0xa")]("TrackChangesEditing");t[hi("0xc")][hi("0xf")](hi("0x14"))&&(e[hi("0x17")](hi("0x15")),e.enableCommand("outdent"));const n=t[hi("0x9")];if(t[hi("0xc")][hi("0xf")]("IndentBlock")){for(const n of[hi("0x4"),hi("0xe")])e.enableCommand(n,(()=>{const o=Array[hi("0x1a")](this[hi("0xb")][hi("0x19")][hi("0x6")].selection[hi("0x0")]())[hi("0x13")]((t=>this[hi("0xb")][hi("0x19")].schema[hi("0x12")](t,"blockIndent")));t[hi("0x19")][hi("0x11")]((()=>{for(const t of o)e[hi("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x4")})}))}));e._descriptionFactory[hi("0x8")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x4")!=o[hi("0x18")]&&hi("0xe")!=o[hi("0x18")])return;const s=t[hi("0xd")]()[0],r=e[hi("0x1")][hi("0x10")](s);return hi("0x4")==o[hi("0x18")]?{type:hi("0x7"),content:Yo(n,hi("0x5"),r)}:hi("0xe")==o.commandName?{type:hi("0x7"),content:Yo(n,hi("0x2"),r)}:void 0}))}}}var bi,Ei,_i=["TrackChangesEditing","plugins","input","init","get","requires"];bi=_i,Ei=464,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x3")](){return[Js.Input]}[Ti("0x1")](){this.editor[Ti("0x5")][Ti("0x2")](Ti("0x4")).enableCommand(Ti("0x0"))}}const yi=["getRanges","enableCommand","link","commandName","locale","format","plugins","document","markInlineFormat","isCollapsed","get","*Set link:* %0","getAttribute","TrackChangesEditing","change","selection","commandParams","from","getFirstPosition","_descriptionFactory","unlink","linkHref","model","editor","LinkEditing"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this.editor;if(!t[vi("0x0")].has(vi("0x12")))return;const e=t[vi("0x0")][vi("0x4")](vi("0x7"));e[vi("0x14")]("link",((n,o)=>{const s=t.model.document[vi("0x9")];let r=[];if(s[vi("0x3")]){if(!s.hasAttribute(vi("0xf")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0xf"),s.getAttribute(vi("0xf")),t[vi("0x10")]);r=[e]}}else r=Array[vi("0xb")](s[vi("0x13")]());t[vi("0x10")][vi("0x8")]((()=>{for(const t of r)e[vi("0x2")](t,{commandName:"link",commandParams:[o]})}))})),e.enableCommand(vi("0xe"),(()=>{const n=this[vi("0x11")][vi("0x10")],o=n[vi("0x1")].selection;n[vi("0x8")]((()=>{let n=[];n=o.isCollapsed?[(0,Js.findAttributeRange)(o[vi("0xc")](),vi("0xf"),o[vi("0x6")]("linkHref"),t[vi("0x10")])]:Es(vi("0xf"),o.getFirstRange(),t[vi("0x10")]);for(const t of n)e[vi("0x2")](t,{commandName:vi("0xe"),commandParams:[]})}))})),e[vi("0xd")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[vi("0x17")];if(n){if(vi("0x15")==n[vi("0x16")]){const t=n[vi("0xa")][0];return{type:vi("0x18"),content:Yo(o,vi("0x5"),'"'+t+'"')}}return vi("0xe")==n[vi("0x16")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const Si=["name","numberedList","before","todoList","previousSibling","add","slice","isObject","listIndent","ELEMENT_NUMBERED_LIST","TrackChangesEditing","document","filter","change","indentList","end","ELEMENT_TODO_LIST","commandName","value","selection","getSelectedBlocks","has","plugins","listType","replace","checkTodoList","enableCommand","bulletedList","ELEMENT_LIST_ITEM","checkChild","parent","*Check item*","nextSibling","element","bulleted","model","editor","format","List","get","_selectedElements","_descriptionFactory","push","TodoListEditing","afterInit","length","todoListChecked","findIndex","forceValue","paragraph","outdentList","from","commands","registerElementLabel","createRange","ListEditing","commandParams","numbered","*Indent:* %0","execute","registerDescriptionCallback","createPositionAt","*Outdent:* %0","getAttribute","listItem","markBlockFormat","*Change to:* %0"];var Ii,Li;Ii=Si,Li=428,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{[Ni("0x12")](){const t=this[Ni("0xa")],e=t.locale;if(!t[Ni("0x3f")][Ni("0x3e")](Ni("0x1d")))return;const n=t[Ni("0x3f")][Ni("0xd")](Ni("0x33")),o=t[Ni("0x3f")][Ni("0x3e")](Ni("0x11"));function s(e){return()=>{const o=t[Ni("0x9")][Ni("0x34")][Ni("0x3c")],s=t[Ni("0x1a")][Ni("0xd")](e);if(s[Ni("0x3b")])return void t[Ni("0x21")](Ni("0x17"),{});const r=e[Ni("0x2f")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ni("0x3")](e[Ni("0x4")],Ni("0x26"))&&!o[Ni("0x30")](e);var e,o}));o=o.filter((t=>!t.is("element","listItem")||t.getAttribute(Ni("0x40"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x7"),Ni("0x26"))?s[Ni("0x2e")](Mi(t)):s[Ni("0x2e")](t);return Array[Ni("0x19")](s)}(o[Ni("0x3d")](),r,t[Ni("0x9")].schema);t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x19")](t);const n=e[Ni("0x15")]((t=>"listItem"!=t[Ni("0x29")]));return n>-1&&(e=e[Ni("0x2f")](0,n)),e}(t[Ni("0x9")].document[Ni("0x3c")][Ni("0x3d")]()),s=t[Ni("0x9")][Ni("0x1c")](t[Ni("0x9")][Ni("0x23")](o[0],Ni("0x2b")),t.model[Ni("0x23")](o[o[Ni("0x13")]-1],Ni("0x38")));t[Ni("0x9")][Ni("0x36")]((()=>{n[Ni("0x27")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x31")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x6")];for(;t&&t.getAttribute(Ni("0x31"))>n[Ni("0x25")](Ni("0x31"));)e[Ni("0x2e")](t),t=t[Ni("0x6")]}return Array.from(e)}(o))}))}}n.enableCommand("numberedList",s(Ni("0x2a"))),n[Ni("0x0")]("bulletedList",s(Ni("0x1"))),o&&n[Ni("0x0")]("todoList",s(Ni("0x2c"))),n[Ni("0x0")](Ni("0x37"),r(Ni("0x37"))),n.enableCommand(Ni("0x18"),r("outdentList")),o&&n.enableCommand(Ni("0x42"),(()=>{const e=t.commands[Ni("0xd")](Ni("0x42")),o=Array[Ni("0x19")](e[Ni("0xe")]);o[Ni("0x35")]((t=>t[Ni("0x25")](Ni("0x14"))!=e.value)),t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of o)n[Ni("0x27")](t,{commandName:Ni("0x42"),commandParams:[{forceValue:!e[Ni("0x3b")]}]})}))})),n._descriptionFactory[Ni("0x1b")](Ni("0x26"),(t=>Yo(e,Ni("0x2"),t))),n[Ni("0xf")][Ni("0x22")]((t=>{const{data:n}=t;if(n){if(Ni("0x2a")==n[Ni("0x3a")]||Ni("0x1")==n[Ni("0x3a")]||Ni("0x2c")==n.commandName)switch(n[Ni("0x3a")][Ni("0x41")](Ni("0xc"),"")){case Ni("0x8"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x1f"):return o(Yo(e,Ni("0x32")));case"todo":return o(Yo(e,Ni("0x39")))}if("indentList"==n[Ni("0x3a")])return{type:"format",content:Yo(e,Ni("0x20"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x18")==n[Ni("0x3a")])return{type:Ni("0xb"),content:Yo(e,Ni("0x24"),Yo(e,Ni("0x2")))};if("checkTodoList"==n[Ni("0x3a")])return n[Ni("0x1e")][0][Ni("0x16")]?{type:"format",content:Yo(e,Ni("0x5"))}:{type:Ni("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:Ni("0xb"),content:Yo(e,Ni("0x28"),t)}}}))}}function Mi(t){const e=t[Ni("0x25")](Ni("0x31"));if(0==e)return t;let n=t;for(;t[Ni("0x2d")]&&t.previousSibling.is(Ni("0x7"),"listItem");){const o=t[Ni("0x2d")][Ni("0x25")](Ni("0x31"));if(o==e)n=t[Ni("0x2d")];else if(o<e)break;t=t[Ni("0x2d")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x7"),Ni("0x26"))&&t[Ni("0x25")](Ni("0x31"))>0){let n=t[Ni("0x6")];for(;n&&"listItem"==n[Ni("0x29")]&&n.getAttribute(Ni("0x31"))==t.getAttribute("listIndent");)e[Ni("0x10")](n),n=n.nextSibling}return e}const Fi=["listReversed","push","commandParams","handleListReversedCommand","getLastPosition","length","markMultiRangeBlockFormat","toUpperCase","reversed","numbered","getAttribute","document","forward","startIndex","list.properties","format","createRange","createPositionAt","has","listStart","commandName","element","*Change to:* %0","backward","selection","model","_descriptionFactory","filter","handleDescriptions","map","getSiblingNodes","editor","_getSuggestionBlocksForListStyle","_LIST_","registerDescriptionCallback","handleListStartCommand","getSelectedBlocks","replace","change","listStyle","config","handleListStyleCommand","from","*Format:* set order to reversed","bind","plugins","TrackChangesEditing","type","before","listType","flat","*Format:* set start index to %0","get","_getTranslationKeyForListStyle","ListUtils","listItem","getFirstPosition","_getSuggestionBlocks"];var Pi,Di;Pi=Fi,Di=166,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this[Bi("0x27")][Bi("0x35")][Bi("0x1a")]("ListPropertiesEditing"))return;const t=this[Bi("0x27")][Bi("0x30")][Bi("0x2")](Bi("0x16")),e=this[Bi("0x27")][Bi("0x35")].get("TrackChangesEditing");t.styles&&e.enableCommand(Bi("0x2f"),this[Bi("0x31")][Bi("0x34")](this)),t[Bi("0x10")]&&e.enableCommand(Bi("0x8"),this.handleListReversedCommand[Bi("0x34")](this)),t.startIndex&&e.enableCommand(Bi("0x1b"),this[Bi("0x2b")][Bi("0x34")](this)),e[Bi("0x22")][Bi("0x2a")](this.handleDescriptions[Bi("0x34")](this))}[Bi("0x31")](t,e={}){const n=this.editor[Bi("0x35")][Bi("0x2")](Bi("0x36")),o=this[Bi("0x28")]();this.editor.model[Bi("0x2e")]((()=>{n[Bi("0xe")](o,{commandName:"listStyle",commandParams:[{type:e[Bi("0x37")]}],formatGroupId:Bi("0x2f")})}))}[Bi("0xb")](t,e={}){const n=this[Bi("0x27")][Bi("0x35")][Bi("0x2")]("TrackChangesEditing"),o=this[Bi("0x7")]((t=>t.is("element",Bi("0x5"))&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o.length<1)return;const s=o.map((t=>this.editor[Bi("0x21")][Bi("0x18")](this.editor[Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")].model[Bi("0x19")](t,0))));this[Bi("0x27")].model[Bi("0x2e")]((()=>{n[Bi("0xe")](s,{commandName:Bi("0x8"),commandParams:[{reversed:e.reversed}],formatGroupId:Bi("0x8")})}))}[Bi("0x2b")](t,e={}){const n=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x36")),o=this[Bi("0x7")]((t=>t.is(Bi("0x1d"),"listItem")&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o[Bi("0xd")]<1)return;const s=o[Bi("0x25")]((t=>this[Bi("0x27")][Bi("0x21")][Bi("0x18")](this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0))));this.editor[Bi("0x21")][Bi("0x2e")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x15")]}],formatGroupId:Bi("0x1b")})}))}[Bi("0x24")](t){const e=this[Bi("0x27")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x1c")]){case Bi("0x2f"):o=Bi("0x1e"),s={type:Bi("0x17"),content:Yo(e,o,Yo(e,this[Bi("0x3")](n[Bi("0xa")][0].type)))};break;case Bi("0x8"):o=n[Bi("0xa")][0].reversed?Bi("0x33"):"*Format:* set order to regular",s={type:Bi("0x17"),content:Yo(e,o)};break;case"listStart":o=Bi("0x1"),s={type:Bi("0x17"),content:Yo(e,o,n[Bi("0xa")][0][Bi("0x15")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let r=Array[Bi("0x32")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")].document[Bi("0x20")].getFirstPosition(),Bi("0x1f"))),(null===(e=r[r[Bi("0xd")]-1])||void 0===e?void 0:e.is(Bi("0x1d"),Bi("0x5")))&&r[Bi("0x9")](...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0xc")](),Bi("0x14"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x6")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Bi("0x1d"),"listItem"))&&(r=r[Bi("0x23")]((t=>t.is(Bi("0x1d"),Bi("0x5"))))),r}_getSuggestionBlocks(t){const e=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let n=Array[Bi("0x32")](this[Bi("0x27")].model[Bi("0x13")][Bi("0x20")].getSelectedBlocks()).filter(t)[Bi("0x25")]((t=>{const n=this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0);return[...e.getSiblingNodes(n,Bi("0x1f")),...e[Bi("0x26")](n,"forward")]}))[Bi("0x0")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Bi("0x27")][Bi("0x35")][Bi("0x2")](Bi("0x4")).getListTypeFromListStyleType(t).toUpperCase()+Bi("0x29")+t[Bi("0xf")]()[Bi("0x2d")](/-/g,"_")}}const Ui=["data","high","locale","_descriptionFactory","stop","plugins","mediaEmbed","showSuggestionHighlights","afterInit","TrackChangesEditing","get","ELEMENT_MEDIA","downcastDispatcher","for","options","conversion","media","MediaEmbedEditing","has","div","editor","dataDowncast","attribute:url:media"];var Gi,Hi;Gi=Ui,Hi=167,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this[zi("0xe")];if(!t[zi("0x16")][zi("0xc")](zi("0xb")))return;const e=t[zi("0x16")][zi("0x4")](zi("0x3")),n=t[zi("0x13")];e.enableCommand(zi("0x0")),e[zi("0x14")].registerElementLabel(zi("0xa"),(t=>Yo(n,zi("0x5"),t))),t[zi("0x9")][zi("0x7")](zi("0xf")).elementToElement({model:zi("0xa"),view:(t,{writer:e,options:n})=>{if(n[zi("0x1")])return e.createEmptyElement(zi("0xd"))},converterPriority:zi("0x12")}),t[zi("0x11")][zi("0x6")].on(zi("0x10"),((t,e,n)=>{n[zi("0x8")][zi("0x1")]&&t[zi("0x15")]()}),{priority:"high"})}}const Vi=["editor","has","enableCommand","TrackChangesEditing","afterInit","plugins","mention"];var Ki,qi;Ki=Vi,qi=174,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x5")](){const t=this[Xi("0x1")];t.plugins[Xi("0x2")]("MentionEditing")&&t[Xi("0x6")].get(Xi("0x4"))[Xi("0x3")](Xi("0x0"))}}const Ji=["ELEMENT_PAGE_BREAK","_descriptionFactory","afterInit","PageBreakEditing","locale","enableCommand","plugins","TrackChangesEditing","get","pageBreak","registerElementLabel"];var Qi,Zi;Qi=Ji,Zi=315,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x6")](){const t=this.editor;if(!t[Yi("0xa")].has(Yi("0x7")))return;t[Yi("0xa")].get(Yi("0x0"))[Yi("0x9")](Yi("0x2"));const e=t.plugins[Yi("0x1")](Yi("0x0")),n=t[Yi("0x8")];e[Yi("0x5")][Yi("0x3")](Yi("0x2"),(t=>Yo(n,Yi("0x4"),t)))}}const ex=["data","isLimit","model","isBlock","addClass","ELEMENT_PARAGRAPH","format","insertion","getFirstRange","name","enableCommand","commandName","downcastDispatcher","parent","$text","checkChild","start","locale","registerDescriptionCallback","change","TrackChangesEditing","ck-suggestion-marker-split","mapper","end","blockName","selection","*Insert:* %0","showSuggestionHighlights","options","Paragraph","*Change to:* %0","writer","span","markerRange","afterInit","markerName","registerElementLabel","paragraph","plugins","insertParagraph","bindElementToMarker","schema","isTouching","document","get","addMarker:suggestion:insertion","_descriptionFactory","editor","nodeAfter","toViewPosition","activeMarkers","includes","getSelectedBlocks","markBlockFormat","highest"];var nx,ox;nx=ex,ox=347,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x11")](){const t=this[sx("0x1e")];if(!t[sx("0x15")].has(sx("0xc")))return;const e=t[sx("0x0")],n=t[sx("0x15")][sx("0x1b")]("TrackChangesEditing");n._descriptionFactory[sx("0x13")](sx("0x14"),(t=>Yo(e,sx("0x2b"),t))),n.enableCommand(sx("0x14"),((e,o={})=>{const s=t[sx("0x28")][sx("0x1a")],r=o[sx("0x8")]||s[sx("0x8")],i=Array.from(r[sx("0x23")]()).filter((t=>{return e=t,(n=this.editor[sx("0x28")].schema)[sx("0x35")](e[sx("0x33")],sx("0x14"))&&!n.isObject(e)&&sx("0x14")!=e[sx("0x2f")];var e,n}));t[sx("0x28")][sx("0x2")]((()=>{for(const t of i)n[sx("0x24")](t,{commandName:sx("0x14"),commandParams:[],formatGroupId:sx("0x7")},_s(t))}))})),n[sx("0x1d")][sx("0x1")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x31")])return{type:sx("0x2c"),content:Yo(e,sx("0xd"),Yo(e,sx("0x2b")))}})),n[sx("0x30")](sx("0x16")),t.editing[sx("0x32")].on(sx("0x1c"),ix(t),{priority:sx("0x25")}),t[sx("0x26")][sx("0x32")].on(sx("0x1c"),((e,n,o)=>{o[sx("0xb")][sx("0xa")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x25")});const o=n[sx("0x1d")];o[sx("0x1")]((n=>{if(sx("0x2d")!==n.type)return;const{start:s,end:r}=n[sx("0x2e")]();if(!s[sx("0x19")](r)||!s[sx("0x1f")])return;const i=t[sx("0x28")][sx("0x18")],x=s[sx("0x1f")];return i[sx("0x29")](x)&&!i[sx("0x27")](x)&&i[sx("0x35")](x,sx("0x34"))?{type:sx("0x2d"),content:Yo(e,sx("0x9"),o.getItemLabel(x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x15")][sx("0x1b")](sx("0x3")),i=o[sx("0x10")][sx("0x36")],x=o[sx("0x10")][sx("0x6")],a=t[sx("0x28")][sx("0x18")];if(!i[sx("0x19")](x)||!i[sx("0x1f")])return;const c=i[sx("0x1f")];if(a[sx("0x29")](c)&&!a[sx("0x27")](c)&&a[sx("0x35")](c,"$text")){if(!s.consumable.consume(o.markerRange,n.name))return;const t=s[sx("0xe")].createUIElement(sx("0xf"),{class:sx("0x4")}),i=s.mapper[sx("0x20")](x);e&&r[sx("0x21")][sx("0x22")](o[sx("0x12")])&&s[sx("0xe")][sx("0x2a")]("ck-suggestion-marker--active",t),s.writer.insert(i,t),s[sx("0x5")][sx("0x17")](t,o[sx("0x12")])}}}const xx=["RemoveFormatEditing","getRanges","markInlineFormat","locale","afterInit","removeFormat","change","model","isCollapsed","document","from","_descriptionFactory","isFormatting","get","createRangeOn","getAttributes","commandName","has","registerDescriptionCallback","getAttributeProperties","format"];var ax,cx;ax=xx,cx=301,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x12")](){const t=this.editor;if(!t.plugins[lx("0xa")](lx("0xe")))return;const e=t.plugins[lx("0x6")]("TrackChangesEditing");e.enableCommand(lx("0x13"),(n=>{const o=t[lx("0x0")][lx("0x2")].selection;o[lx("0x1")]?n():t[lx("0x0")][lx("0x14")]((()=>{const n=Array[lx("0x3")](o[lx("0xf")]());for(const o of n)for(const n of o.getItems())ux(n,t[lx("0x0")].schema)&&e[lx("0x10")](t[lx("0x0")][lx("0x7")](n),{commandName:lx("0x13"),commandParams:[]})}))})),e[lx("0x4")][lx("0xb")]((e=>{const{data:n}=e;if(n&&lx("0x13")==n[lx("0x9")])return{type:lx("0xd"),content:Yo(t[lx("0x11")],"*Remove all formatting*")}}))}}function ux(t,e){for(const[n]of t[lx("0x8")]()){const t=e[lx("0xc")](n);if(t&&t[lx("0x5")])return!0}return!1}const gx=["discardSuggestion","enableCommand","plugins","afterInit","RestrictedEditingModeEditing","editor","acceptAllSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","acceptSelectedSuggestions","TrackChangesEditing","get"];var mx,fx;mx=gx,fx=297,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x6")](){const t=this[hx("0x8")];if(!t[hx("0x5")].has(hx("0x7")))return;const e=t.plugins[hx("0x2")](hx("0x1"));e[hx("0x4")]("goToPreviousRestrictedEditingException"),e[hx("0x4")](hx("0xa"));const n=t.plugins[hx("0x2")](hx("0x7"));n[hx("0x4")]("trackChanges"),n[hx("0x4")]("acceptSuggestion"),n.enableCommand(hx("0x3")),n.enableCommand(hx("0x9")),n.enableCommand(hx("0xb")),n.enableCommand(hx("0x0")),n[hx("0x4")]("discardSelectedSuggestions")}}const bx=["test","markerRange","registerElementLabel","writer","editor","locale","_descriptionFactory","createPositionBefore","markerName","editing","showSuggestionHighlights","data","createUIElement","init","shiftEnter","model","includes","addMarker:suggestion:deletion","deletion","merge","addMarker:suggestion:insertion","getItems","TrackChangesEditing","plugins","softBreak","high","insert","ck-suggestion-marker-","get","span","element","toViewPosition","addMarker:suggestion","addClass","mapper","split"];var Ex,_x;Ex=bx,_x=310,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get requires(){return[xr.ShiftEnter]}[Tx("0x1b")](){const t=this[Tx("0x12")],e=t[Tx("0x1")][Tx("0x6")](Tx("0x0"));e.enableCommand(Tx("0x1c")),t.editing.downcastDispatcher.on(Tx("0x22"),yx(t),{priority:Tx("0x3")}),t[Tx("0x17")].downcastDispatcher.on(Tx("0x1f"),yx(t),{priority:Tx("0x3")}),t[Tx("0x19")].downcastDispatcher.on(Tx("0xa"),((e,n,o)=>{o.options[Tx("0x18")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x14")][Tx("0x10")](Tx("0x2"),(e=>Yo(t[Tx("0x13")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0x6")](Tx("0x0"));if(!s.consumable[Tx("0xe")](o[Tx("0xf")],n.name))return;const i=t[Tx("0x1d")];for(const t of o[Tx("0xf")][Tx("0x23")]()){if(!t.is(Tx("0x8"),Tx("0x2")))continue;const n=Tx("0x20")==o.markerName.split(":")[1]?Tx("0x21"):Tx("0xd"),x=s[Tx("0x11")][Tx("0x1a")](Tx("0x7"),{class:Tx("0x5")+n}),a=s[Tx("0xc")][Tx("0x9")](i[Tx("0x15")](t));e&&r.activeMarkers[Tx("0x1e")](o.markerName)&&s[Tx("0x11")][Tx("0xb")]("ck-suggestion-marker--active",x),s[Tx("0x11")][Tx("0x4")](a,x),s[Tx("0xc")].bindElementToMarker(x,o[Tx("0x16")])}}}const kx=["document","afterInit","from","enableCommand","registerDescriptionCallback","value","commandName","restrictedEditingException","selection","TrackChangesEditing","forceValue","FORMAT_RESTRICTED_DISABLED","plugins","commandParams","markInlineFormat","has","StandardEditingModeEditing","commands","_descriptionFactory","isCollapsed","FORMAT_RESTRICTED_ENABLED","editor","format"];var Ax,vx;Ax=kx,vx=177,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x8")](){const t=this[Rx("0x5")],e=t.model,n=t.locale;if(!t[Rx("0x13")][Rx("0x16")](Rx("0x0")))return;const o=t[Rx("0x13")].get(Rx("0x10")),s=Rx("0xe"),r=t[Rx("0x1")].get(s);o[Rx("0xa")](s,((t,n={})=>{const i=e[Rx("0x7")][Rx("0xf")];if(i[Rx("0x3")])return void t(n);const x=void 0!==n[Rx("0x11")]?n[Rx("0x11")]:!r[Rx("0xc")];e.change((()=>{const t=Array[Rx("0x9")](i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x15")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x2")][Rx("0xb")]((t=>{const{data:e}=t;if(e&&e[Rx("0xd")]==s)return e[Rx("0x14")][0][Rx("0x11")]?{type:Rx("0x6"),content:Yo(n,Rx("0x4"))}:{type:Rx("0x6"),content:Yo(n,Rx("0x12"))}}))}}const Ix=["add","editor","toLowerCase","modelElements","element","normalizeConfig","get","isCollapsed","styleName","plugins","includes","find","_descriptionFactory","commandName","every","commands","DataSchema","model","isBlock","createRangeOn","getAttribute","*Remove format:* %0","document","inline","forceValue","getRanges","markBlockFormat","getItems","push","commandParams","change","TrackChangesEditing","has","format","enableCommand","afterInit","value","_getStyleDefinition","config","_getRangesWithClasses","from","style","block","name","Style","markInlineFormat"];var Lx,Nx;Lx=Ix,Nx=328,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x1d")](){const t=this[wx("0x29")];if(!t[wx("0x3")][wx("0x1a")](wx("0x26")))return;const e=t[wx("0x9")][wx("0x0")](wx("0x23")),n=t[wx("0x3")][wx("0x0")](wx("0x19")),o=t.locale,s=t[wx("0x3")].get(wx("0xa")),r=t[wx("0x3")].get("StyleUtils")[wx("0x2d")](s,t[wx("0x20")][wx("0x0")]("style.definitions"));n[wx("0x1c")](wx("0x23"),((o,{styleName:i})=>{const x=t.model[wx("0x10")].selection,a=this[wx("0x1f")](i,r);if(!a)return;if(!e.enabledStyles[wx("0x4")](i))return;if(x[wx("0x1")]&&!a[wx("0xc")])return void o({styleName:i});const c=!e[wx("0x1e")][wx("0x4")](a[wx("0x25")]);if(a[wx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x25")])){n[wx("0x28")](o);break}}return n}(x.getSelectedBlocks(),a[wx("0x2b")]);t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x14")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[wx("0x13")]());if(!c){const n=Array[wx("0x22")](s.getDefinitionsForView(a[wx("0x2c")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x21")](t.model,s,a.classes,n);o[wx("0x16")](...e)}e=o}t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x27")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wx("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x23")===e[wx("0x7")])return e.commandParams[0][wx("0x12")]?{type:"format",content:Yo(o,"*Format:* %0",e[wx("0x17")][0][wx("0x2")][wx("0x2a")]())}:{type:wx("0x1b"),content:Yo(o,wx("0xf"),e[wx("0x17")][0][wx("0x2")].toLowerCase())}}))}[wx("0x1f")](t,e){let n=e[wx("0x24")][wx("0x5")]((e=>e[wx("0x25")]===t));return n||(n=e[wx("0x11")].find((e=>e[wx("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x15")]()){const e=r[wx("0xe")](o);e&&n[wx("0x8")]((t=>e.classes[wx("0x4")](t)))&&s[wx("0x16")](t[wx("0xd")](r))}return s}}const Ox=["createRangeIn","isInContent","name","push","removeTableRow","isEqual","getRanges","createRangeOn","options","createPositionAt","ELEMENT_TABLE_ROW_WITH_TEXT","discard","substr","refresh","locale","selectTableRow","span","TableEditing","nodeBefore","getChildren","markMultiRangeInsertion","includes","minRow","_tableSuggestions","isIntersectingWithRange","model","getSelectionAffectedTableCells","order","isArray","editor","batch","filter","change:data","above","tablePaste","getFirstRange","nodeAfter","hasAttribute","registerCustomCallback","end","colspan","insertion","values","data","change","getCellLocation","insert","showSuggestionHighlights","last","document","detach","insertTableColumnRight","startsWith","registerElementLabel","MAX_SAFE_INTEGER","tableRow","element","selection","addMarker:suggestion","add","enableCommand","setSelection","maxColumn","_getCoordsForCells","root","enqueueChange","fromRange","ELEMENT_TABLE_ROW","rowspan","length","*Insert:* %0","_descriptionFactory","position","createTableWalker","$graveyard","accept","tableColumn","_suggestionFactory","left","_tablePostFixingSubtypes","rootName","max","getRowIndexes","toLowerCase","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","ELEMENT_TABLE_WITH_TEXT","from","TrackChangesEditing","insertTableRowAbove","classes","map","get","addClass","some","removeClass","_acceptFormatSuggestionCallbackFactory","tableCell","removeTableColumn","getAttribute","getChangedMarkers","item","type","getItems","isTouching","*Remove:* %0","addRange","table","highest","deletion","forceValue","cell","findAncestor","min","_setupColumnsRowsFixing","subType","join","getSuggestion","downcastDispatcher","has","$textProxy","registerPostFixer","ELEMENT_TABLE_COLUMN","insertTable","MIN_SAFE_INTEGER","oldRange","commands","insertTableColumnLeft","TableUtils","writer","_getSuggestionCoords","plugins","start","first","maxRow"];var Fx,Px;Fx=Ox,Px=263,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x56")]=[Dx("0x3e"),Dx("0x53")],this._tableSuggestions=new Set}afterInit(){const t=this[Dx("0x24")],e=t.model[Dx("0x38")][Dx("0x40")];if(!t.plugins[Dx("0x7e")](Dx("0x18")))return;const n=t[Dx("0x15")],o=t.plugins[Dx("0x63")](Dx("0x5f")),s=t[Dx("0x3")][Dx("0x63")]("TableUtils");o[Dx("0x4e")][Dx("0x3c")](Dx("0x72"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Dx("0x43")](Dx("0x82")),o[Dx("0x43")](Dx("0x16")),o.enableCommand("selectTableColumn");for(const n of[Dx("0x60"),"insertTableRowBelow"]){const r=t[Dx("0x85")][Dx("0x63")](n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x28")===r.order,x=s[Dx("0x21")](e),a=s.getRowIndexes(x),c=i?a.first-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:c,endRow:c}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x3e"))}))}))}for(const n of[Dx("0x86"),Dx("0x3a")]){const r=t[Dx("0x85")].get(n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x55")===r[Dx("0x22")],x=s[Dx("0x21")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x5")]-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x53"))}))}))}for(const n of["removeTableRow",Dx("0x69")]){const r=n.substr(11),i=r[Dx("0x5a")](),x=i[Dx("0x13")](0,3)+Dx("0x17"),a=Dx("0x72")+r,c=Dx("0x78")+r,l=Dx("0x58")+r;o[Dx("0x43")](n,(()=>{t.model[Dx("0x33")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Dx("0x77")](Dx("0x72"));let u;if("removeTableRow"==n){const t=s[Dx("0x59")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x5")],endColumn:t[Dx("0x37")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array.from(g)[Dx("0x62")]((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2c")](x)))),h=jx(m[Dx("0x26")]((t=>!t.hasAttribute(x))))[Dx("0x62")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x3e")==p[Dx("0x7a")]||Dx("0x53")==p[Dx("0x7a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x34")](n),a=n[Dx("0x6a")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x71")](o)}}}))}))}function r(n){const o=Array[Dx("0x5e")](e[Dx("0xd")]()).map((t=>i.LiveRange.fromRange(t)));t[Dx("0x20")][Dx("0x33")]((e=>{const s=e[Dx("0x25")];n=n[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")])),e[Dx("0x44")](n),t[Dx("0x85")][Dx("0x63")](Dx("0xb")).refresh(),t[Dx("0x5c")](Dx("0xb"),{forceDefaultExecution:!0}),t[Dx("0x20")][Dx("0x48")]((()=>{t[Dx("0x20")][Dx("0x48")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));e[Dx("0x4c")]>0&&t[Dx("0x44")](e);for(const t of o)t[Dx("0x39")]()}))}))}))}function a(n){t.model[Dx("0x33")]((o=>{const s=Array[Dx("0x5e")](e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t))),r=[];for(const t of n)for(const e of t[Dx("0x6e")]({shallow:!0}))r.push(e);for(const e of r)Dx("0x51")!=e.root.rootName&&(o.setSelection(o[Dx("0x10")](e,0)),t[Dx("0x85")][Dx("0x63")](Dx("0x69"))[Dx("0x14")](),t[Dx("0x5c")](Dx("0x69"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));x[Dx("0x4c")]>0&&o[Dx("0x44")](x);for(const t of s)t[Dx("0x39")]()}))}function c(t,e){return e.every((e=>t[Dx("0x65")]((t=>t[Dx("0x2e")][Dx("0xc")](e[Dx("0x4")])||e.end[Dx("0xc")](t[Dx("0x4")])))))}function l(t,e){return t[Dx("0x65")]((t=>e[Dx("0x65")]((e=>t[Dx("0x2e")][Dx("0x6f")](e[Dx("0x4")])))))}t[Dx("0x32")][Dx("0x7d")].on(Dx("0x41"),((t,e,n)=>{if(!n[Dx("0xf")][Dx("0x36")])return;const o=e[Dx("0x6c")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Dx("0x23")](t)?t:[t]}s&&"tableCell"===o[Dx("0x9")]&&(0,x.setHighlightHandling)(s,n[Dx("0x1")],((t,e,n)=>n[Dx("0x64")](r(e[Dx("0x61")]),t)),((t,e,n)=>n[Dx("0x66")](r(e[Dx("0x61")]),t)))}),{priority:Dx("0x73")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Dx("0x30")!=t[Dx("0x6d")]&&Dx("0x74")!=t[Dx("0x6d")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x3f"),Dx("0x72"))){if(Dx("0x30")==t.type){const e=t.getItems()[Dx("0x26")]((t=>t.is("$textProxy"))).map((t=>t[Dx("0x32")]));if(e[Dx("0x4c")])return{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x7b")](" ")+'"'))}}if("deletion"==t.type){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")]));if(e.length)return{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5d"),'"'+e[Dx("0x7b")](" ")+'"'))}}}})),o[Dx("0x4e")].registerDescriptionCallback((t=>{if(Dx("0x3e")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x6")]-o[Dx("0x1d")]+1;if("insertion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x4a"),s))};if("deletion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:"deletion",content:Yo(n,Dx("0x70"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x4a"),s))}}if(Dx("0x53")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x45")]-o.minColumn+1;if(Dx("0x30")==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x81"),s))};if("deletion"==t.type)return e[Dx("0x4c")]?{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5b"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x81"),s))}}})),o[Dx("0x54")][Dx("0x2d")](Dx("0x30"),Dx("0x3e"),Dx("0x12"),r),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),"tableRow","accept",r),o[Dx("0x54")][Dx("0x2d")]("insertion",Dx("0x53"),"discard",a),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x53"),Dx("0x52"),a),o._suggestionFactory[Dx("0x2d")](Dx("0x30"),Dx("0x53"),Dx("0x7b"),c),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),Dx("0x53"),"join",c),o[Dx("0x54")].registerCustomCallback(Dx("0x30"),"tableRow",Dx("0x7b"),l),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x3e"),"join",l)}[Dx("0x67")](){const t=this.editor,e=t[Dx("0x20")][Dx("0x38")].selection;return(n,o)=>{t[Dx("0x20")][Dx("0x33")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x2e")][Dx("0x19")];x&&x[0]&&!1===x[0][Dx("0x75")]&&(a=n[0].start[Dx("0x2b")]);const c=s[Dx("0x7")](a);if("$graveyard"==c.root[Dx("0x57")])return;const l=Array.from(e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t)));s[Dx("0x44")](c),t[Dx("0x85")].get(r).refresh(),x[Dx("0xa")]({forceDefaultExecution:!0}),t[Dx("0x5c")](r,...x);const d=l[Dx("0x26")]((t=>Dx("0x51")!=t.root[Dx("0x57")]));d[Dx("0x4c")]>0&&s[Dx("0x44")](d);for(const t of l)t[Dx("0x39")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x24")][Dx("0x3")].get(Dx("0x0"));let n=Number[Dx("0x3d")],o=Number[Dx("0x83")],s=Number[Dx("0x3d")],r=Number[Dx("0x83")];for(const i of t){if(Dx("0x51")==i.root[Dx("0x57")])continue;const{row:t,column:x}=e[Dx("0x34")](i),a=i[Dx("0x2c")](Dx("0x4b"))?i[Dx("0x6a")](Dx("0x4b"))-1:0,c=i.hasAttribute("colspan")?i[Dx("0x6a")](Dx("0x2f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Dx("0x79")](){const t=this[Dx("0x24")],e=t.plugins[Dx("0x63")](Dx("0x5f")),n=t[Dx("0x3")].get(Dx("0x0"));t[Dx("0x20")][Dx("0x38")].on(Dx("0x27"),(()=>{const n=Array[Dx("0x5e")](t[Dx("0x20")][Dx("0x38")].differ[Dx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x84")])continue;const i=e[Dx("0x7c")](s);this._tablePostFixingSubtypes[Dx("0x1c")](r)&&this[Dx("0x1e")][Dx("0x42")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Dx("0x77")](Dx("0x72")),i=n[Dx("0x34")](t);for(const e of this[Dx("0x1e")]){const n=e[Dx("0x7a")],x=n[Dx("0x3b")](Dx("0x29")),a=n[Dx("0x13")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x13")](0,3)+Dx("0x17"),d=Dx("0x78")+a,u=Dx("0x58")+a;if(!e[Dx("0x8")])continue;if(r!=e[Dx("0x2a")]()[Dx("0x4")][Dx("0x77")](Dx("0x72")))continue;if(e[Dx("0x1f")](s))continue;const g=t[Dx("0x2c")](l)?t[Dx("0x6a")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x71")](s),o=!0)}return o};t[Dx("0x20")][Dx("0x38")][Dx("0x80")]((e=>{let n=!1;for(const s of t.model[Dx("0x38")].differ.getChanges())if(Dx("0x35")==s.type)if("tableRow"==s[Dx("0x9")])for(const t of s.position[Dx("0x2b")][Dx("0x1a")]())n=n||o(t,e);else Dx("0x68")==s[Dx("0x9")]&&(n=n||o(s[Dx("0x4f")][Dx("0x2b")],e));return n}))}[Dx("0x2")](t){return this[Dx("0x46")](t[Dx("0xd")]()[Dx("0x62")]((t=>t.start[Dx("0x2b")])))}}function jx(t){return Array[Dx("0x5e")](new Set(t)[Dx("0x31")]())}const Ux=["type","mergeTableCellRight","deletion","set:isEnabled","return","TrackChangesEditing","plugins","afterInit","document","element","findAncestor","from","createRangeOn","stop","TableUtils","execute","locale","accept","root","length","_descriptionFactory","splitTableCellVertically","mergeTableCellDown","markBlockFormat","format","getRanges","push","has","tableCell","registerDescriptionCallback","map","TableEditing","forceDefaultExecution","_areSelectedCellsMergable","enableCommand","change","requires","horizontally","formatBlock","_suggestionFactory","direction","value","author","getCellLocation","setSelection","get","refresh","highest","trackChanges","_isForcedDefaultExecutionBlock","*Merge cells*","registerCustomCallback","model","filter","commandName","_areMergableCells","low","editor","getFirstPosition","splitTableCellHorizontally","mergeTableCells","getSelectionAffectedTableCells","rootName","find","selection","createTableWalker","mergeTableCellLeft","commands","detach","subType","add","$graveyard","mergeTableCellUp","containsRange"];var Gx,Hx;Gx=Ux,Hx=215,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x2b")](){return[Bx]}[zx("0xe")](){const t=this[zx("0x40")],e=t[zx("0x3b")].document[zx("0x47")],n=t[zx("0x17")];if(!t[zx("0xd")][zx("0x22")](zx("0x26")))return;const o=t.plugins[zx("0x34")](zx("0xc")),s=t[zx("0xd")][zx("0x34")](zx("0x15")),r=t.plugins[zx("0x34")](Bx);r._tablePostFixingSubtypes[zx("0x21")](zx("0x43")),o[zx("0x29")](zx("0x43"),(()=>{const e=s[zx("0x44")](t[zx("0x3b")][zx("0xf")].selection);t[zx("0x3b")][zx("0x2a")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:zx("0x43"),commandParams:[]},[],"mergeTableCells")}))})),t[zx("0x0")][zx("0x34")](zx("0x43")).on(zx("0x16"),((e,n)=>{t[zx("0x0")][zx("0x34")](zx("0x37"))[zx("0x30")]&&(n.length>0&&n[n.length-1]&&n[n[zx("0x1a")]-1][zx("0x27")]||o[zx("0x38")]||this[zx("0x28")]()||e[zx("0x14")]())}),{priority:zx("0x36")});for(const e of[zx("0x5"),"mergeTableCellRight","mergeTableCellDown",zx("0x49")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[zx("0x3b")][zx("0xf")][zx("0x47")].getFirstPosition().getAncestors().find((t=>t.is(zx("0x10"),zx("0x23")))),s=n[zx("0x30")];t[zx("0x3b")].change((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x43"))}))}))}for(const e of[zx("0x1c"),zx("0x42")]){const n=t[zx("0x0")][zx("0x34")](e);o.enableCommand(e,(()=>{const r=s[zx("0x44")](t.model[zx("0xf")][zx("0x47")])[0],i=r[zx("0x11")]("table"),{column:x,row:a}=s[zx("0x32")](r);let c=[];if(zx("0x2c")==n[zx("0x2f")]){const t=s[zx("0x48")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}else{const t=s[zx("0x48")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}t[zx("0x3b")][zx("0x2a")]((t=>{o[zx("0x1e")](t[zx("0x13")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,zx("0x39"))}:void 0})),o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return zx("0x1c")==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,"*Split cell:* vertically")}:zx("0x42")==e[zx("0x3d")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0x5"),zx("0x8"),zx("0x1d"),zx("0x49")])o[zx("0x2e")][zx("0x3a")]("formatBlock",t,zx("0x18"),x);for(const t of[zx("0x1c"),"splitTableCellHorizontally"])o[zx("0x2e")][zx("0x3a")](zx("0x2d"),t,"accept",x);o[zx("0x2e")][zx("0x3a")](zx("0x2d"),zx("0x43"),zx("0x18"),(n=>{t[zx("0x3b")].change((o=>{const s=Array[zx("0x12")](e.getRanges())[zx("0x25")]((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t.commands[zx("0x34")](zx("0x43"))[zx("0x35")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x3c")]((t=>zx("0x4")!=t[zx("0x19")][zx("0x45")]));r[zx("0x1a")]>0&&o[zx("0x33")](r);for(const t of s)t[zx("0x1")]()}))}));for(const e of[zx("0x5"),zx("0x1d"),zx("0x49"),"mergeTableCellRight"]){const n=t.commands[zx("0x34")](e);n.on(zx("0xa"),((e,o,s)=>{if(s){const o=t[zx("0x3b")][zx("0xf")][zx("0x47")][zx("0x41")]().getAncestors()[zx("0x46")]((t=>t.is("element",zx("0x23"))));this[zx("0x3e")](n[zx("0x30")],o)||(e[zx("0xb")]=!1,e[zx("0x14")]())}}),{priority:zx("0x3f")})}}_areSelectedCellsMergable(){const t=this.editor[zx("0x0")][zx("0x34")](zx("0x43")),e=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0x15"));if(!t.isEnabled)return!1;const n=e[zx("0x44")](this[zx("0x40")][zx("0x3b")].document[zx("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x3e")](t,e))return!1;return!0}[zx("0x3e")](t,e){const n=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0xc")),o=this.editor[zx("0x3b")][zx("0x13")](t),s=this[zx("0x40")][zx("0x3b")][zx("0x13")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[zx("0x7")]||zx("0x9")==t[zx("0x7")]||zx("0x43")==t[zx("0x2")])&&t.isInContent)for(const e of t[zx("0x20")]())e[zx("0x6")](o,!0)&&r[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id),e[zx("0x6")](s,!0)&&i[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["headingColumns","_splitMarkerName","includes","addClass","last","selection","markBlockFormat","removeAttribute","cell","model","document","registerDescriptionCallback","getSelectionAffectedTableCells","setTableRowHeader","editing","data","editor","plugins","data-suggestion","showSuggestionHighlights","enableCommand","createTableWalker","getChild","mapper","childCount","table","TrackChangesEditing","getRowIndexes","index","consume","ck-suggestion-marker--active","setTableColumnHeader","*Format:* %0","getAttribute","createRange","from","setAttribute","FORMAT_HEADER_ROW","value","isBefore","accept","options","getSuggestion","first","consumable","FORMAT_HEADER_COLUMN","highest","markerName","commands","get","change","writer","stop","createPositionAfter","formatBlock","activeMarkers","TableEditing","markerRange","TableUtils","findAncestor","commandParams","afterInit","forceValue","removeClass","downcastDispatcher","_suggestionFactory","registerCustomCallback","getCellLocation","FORMAT_REGULAR_ROW","FORMAT_REGULAR_COLUMN","name","unbindElementFromMarkerName","createPositionBefore","addMarker:suggestion","parent","nodeBefore","commandName","format"];var Kx,qx;Kx=Vx,qx=262,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get requires(){return[Bx]}[Xx("0x21")](){const t=this[Xx("0x42")];if(!t[Xx("0x43")].has(Xx("0x1c")))return;const e=t.locale,n=t[Xx("0x43")][Xx("0x15")](Xx("0x4c")),o=t.plugins.get(Xx("0x1e")),s=t[Xx("0x43")][Xx("0x15")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x33")](r[Xx("0x13")]),c=n[Xx("0xe")](a);if(!c[Xx("0x41")]||Xx("0x3")!=c[Xx("0x41")][Xx("0x30")])return;if(r.item)return void s[Xx("0x18")]();if(!i[Xx("0x10")][Xx("0x1")](r[Xx("0x1d")],s[Xx("0x2a")]))return;const l=r[Xx("0x1d")].start.nodeAfter,d=r[Xx("0x1d")].end[Xx("0x2f")],u=l.parent[Xx("0x2e")],{column:g}=o.getCellLocation(l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o[Xx("0x47")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[Xx("0x49")].toViewElement(s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i[Xx("0x17")][Xx("0x8")]("data-suggestion",a,c),i[Xx("0x49")].bindElementToMarker(c,r.markerName),t&&(n[Xx("0x1b")][Xx("0x34")](r[Xx("0x13")])?i[Xx("0x17")][Xx("0x35")](Xx("0x2"),c):i[Xx("0x17")][Xx("0x23")](Xx("0x2"),c))}}}}n[Xx("0x46")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x3e")](t[Xx("0x3b")][Xx("0x3c")].selection),i=o[Xx("0x4d")](r),x=r[0].findAncestor(Xx("0x4b")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[Xx("0x22")]?s.forceValue:!t[Xx("0x14")][Xx("0x15")]("setTableRowHeader")[Xx("0xa")],l=c?i[Xx("0x36")]:i[Xx("0xf")],d=x.getChild(l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x0")]<e[Xx("0x0")])return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e[Xx("0x48")](0)),t[Xx("0x3b")].createPositionAfter(d[Xx("0x48")](d[Xx("0x4a")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](d[Xx("0x48")](0)),t.model[Xx("0x19")](e[Xx("0x48")](e[Xx("0x4a")]-1)))}t.model[Xx("0x16")]((()=>{n[Xx("0x38")](u,{commandName:Xx("0x3f"),commandParams:[{forceValue:c}]},[],Xx("0x3f"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[Xx("0x43")].get(Xx("0x1e")),r=s[Xx("0x3e")](t.model[Xx("0x3c")][Xx("0x37")]),i=s.getColumnIndexes(r),x=r[0][Xx("0x1f")]("table"),a=x[Xx("0x5")](Xx("0x32"))||0,c=o&&null!==o[Xx("0x22")]?o[Xx("0x22")]:!t[Xx("0x14")][Xx("0x15")](Xx("0x3"))[Xx("0xa")];let l;const d=x.getChild(0),u=c?i[Xx("0x36")]:i[Xx("0xf")],g=s[Xx("0x47")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x7")](g)[0][Xx("0x3a")];if(c){const e=d[Xx("0x48")](a);if(m[Xx("0xb")](e))return;l=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e),t.model[Xx("0x19")](m))}else{const e=d[Xx("0x48")](a-1);if(!e)return;l=t[Xx("0x3b")][Xx("0x6")](t.model[Xx("0x2c")](m),t[Xx("0x3b")].createPositionAfter(e))}t[Xx("0x3b")][Xx("0x16")]((()=>{n[Xx("0x38")](l,{commandName:Xx("0x3"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing[Xx("0x24")].on(Xx("0x2d"),r(),{priority:Xx("0x12")}),t[Xx("0x41")][Xx("0x24")].on("addMarker:suggestion",((t,e,n)=>{n[Xx("0xd")][Xx("0x45")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x12")}),t[Xx("0x40")][Xx("0x24")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Xx("0x33")](e[Xx("0x13")]),i=n[Xx("0xe")](r);if(!i[Xx("0x41")]||Xx("0x3")!=i[Xx("0x41")][Xx("0x30")])return;const x=o[Xx("0x49")].markerNameToElements(e[Xx("0x13")]);if(x)for(const t of x)o[Xx("0x17")][Xx("0x23")]("ck-suggestion-marker-"+s,t),o[Xx("0x17")][Xx("0x23")](Xx("0x2"),t),o[Xx("0x17")][Xx("0x39")](Xx("0x44"),t),o[Xx("0x49")][Xx("0x2b")](t,e[Xx("0x13")])}),{priority:Xx("0x12")}),n._descriptionFactory[Xx("0x3d")]((t=>{const{data:n}=t;if(n){if(Xx("0x3f")==n.commandName){const t=n[Xx("0x20")][0][Xx("0x22")];return o(Yo(e,Xx(t?"0x9":"0x28")))}if("setTableColumnHeader"==n[Xx("0x30")]){const t=n[Xx("0x20")][0].forceValue;return o(Yo(e,Xx(t?"0x11":"0x29")))}}function o(t){return{type:Xx("0x31"),content:Yo(e,Xx("0x4"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x25")][Xx("0x26")]("formatBlock",Xx("0x3f"),Xx("0xc"),i),n[Xx("0x25")][Xx("0x26")](Xx("0x1a"),"setTableColumnHeader","accept",i)}}const Jx=["isInContent","Users","getColumnIndexes","_getCoordsForCells","table","next","low","markerToHighlight","removeMarkers","add","some","subType","getRanges","insertion","getAllAdjacentSuggestions","getShiftedBy","tableCellBorderStyle","_splitMarkerName","editor","getAttributes","createTableWalker","findAncestor","view","columnInsertionRanges","tablePasteCell","keys","suggestionLoaded","containsRange","registerPostFixer","$graveyard","getTableIfOnlyTableInContent","conversion","suggestionUnloaded","getSelectionAffectedTableCells","newRange","activeMarkers","tableCellSuggestion","rootName","move","set","suggestion","getSuggestionCallback","options","createRangeOn","removeMarker","model","value","last","position","map","change","entries","isEqual","elementToElement","markMultiRangeInsertion","selection","tablePasteRow","batch","cell","getRange","registerCustomCallback","first","_isForcedDefaultExecutionBlock","nodeAfter","commands","ck-suggestion-marker-insertion","paragraph","insertionRanges","removeRows","get","_replaceTableSlotCell","deletion","find","fromEntries","editingDowncast","fill","getRows","formatBlock","TableClipboard","forceDefaultExecution","oldRange","getChildren","tablePaste","listenTo","length","content","insertRows","endColumn","setAttribute","suggestion:formatBlock:tablePasteCell","insertContent","ck-suggestion-marker--active","markerName","hasSuggestion","markerAttributes","reduce","getSuggestion","endRow","tableCellHorizontalAlignment","setAttributes","tableCellPadding","column","remove","getSuggestions","insert","start","getChild","updateMarker","ck-suggestion-marker","discard","tableCellBackgroundColor","getChanges","getColumns","high","dataDowncast","cells","removeColumns","root","author","unwrap","_suggestionFactory","element","for","columns","showSuggestionHighlights","isEmpty","differ","getMarkers","documentSelection","tablePasteColumn","createRangeIn","has","wrap","insertColumns","registerDescriptionCallback","schema","afterInit","rowInsertionRanges","_createdBatches","name","createPositionBefore","rows","columnInsertionIndexes","from","push","register","*Replace table cells*","tablePasteChainId","return","previous","startsWith","join","editing","tableCell","_descriptionFactory","getChangedMarkers","end","suggestion-td","plugins","document","every","getContainedElement","tableCellBorderColor","rowInsertionIndexes","attributes","markers","includes","type","TableUtils","filter"];var Qx,Zx;Qx=Jx,Zx=183,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=["tableCellBorderWidth",Yx("0x95"),Yx("0x3"),Yx("0x55"),"tableCellVerticalAlignment",Yx("0x61"),Yx("0x57")],ea=Object.fromEntries(ta[Yx("0x24")]((t=>[t,null])));class na extends t.Plugin{static get requires(){return[Bx]}[Yx("0x7b")](){const t=this[Yx("0x5")];if(!t[Yx("0x91")][Yx("0x76")](Yx("0x41")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[Yx("0x91")][Yx("0x38")](Yx("0x9b")),s=t[Yx("0x91")].get(Bx),r=t[Yx("0x91")][Yx("0x38")](Yx("0x41"));s._tablePostFixingSubtypes.push("tablePasteRow",Yx("0x74")),t[Yx("0x20")][Yx("0x7a")][Yx("0x84")](Yx("0x17"),{allowIn:Yx("0x8c"),allowContentOf:Yx("0x8c"),isLimit:!0}),t[Yx("0x12")][Yx("0x28")]({model:Yx("0x17"),view:Yx("0x90")});let i=null;t[Yx("0x20")].on(Yx("0x4d"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x47")]-1];l&&l[Yx("0x42")]||n[Yx("0x31")]||this[Yx("0x5")].commands[Yx("0x38")]("trackChanges")[Yx("0x21")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x73")))return!1;const r=s[Yx("0x11")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x14")](n[Yx("0x92")][Yx("0x2a")]);if(!i[Yx("0x47")])return!1;const x=i[0][Yx("0x8")](Yx("0xa1")),a=o.getRowIndexes(i),c=o[Yx("0x9f")](i),l={startRow:a[Yx("0x30")],endRow:a.last,startColumn:c[Yx("0x30")],endColumn:c[Yx("0x22")]};return 1==i[Yx("0x47")]&&(l[Yx("0x54")]+=o[Yx("0x3f")](r)-1,l[Yx("0x4a")]+=o[Yx("0x63")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x20")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Yx("0x25")]((()=>{t[Yx("0x20")][Yx("0x4d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Yx("0x47")]&&n[Yx("0x29")](s,Yx("0x2b"),{tablePasteChainId:o}),r.length&&n[Yx("0x29")](r,Yx("0x74"),{tablePasteChainId:o}),a[Yx("0x47")]&&n[Yx("0x29")](a,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x47")]&&n.markMultiRangeDeletion(c,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Yx("0x24")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0xb"),{tablePasteChainId:o});if(d){const e=d[Yx("0x72")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x1e")](o),i=e[Yx("0x3b")]((t=>t[Yx("0x2e")]()[Yx("0x27")](r)));i&&n[Yx("0x83")]([i[Yx("0x7e")],s])}n[Yx("0x47")]&&d[Yx("0x4b")](Yx("0x51"),Object[Yx("0x3c")](n))}i=null})))}),{priority:e.priorities[Yx("0x64")]+10}),t.plugins[Yx("0x38")](Yx("0x41")).on(Yx("0x39"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Yx("0x2d")],x=o,a=oa(r),c=oa(x);t[Yx("0x87")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Yx("0x5d")](0));for(const t of Array[Yx("0x82")](x[Yx("0x44")]()))s[Yx("0x5b")](t,r,Yx("0x8f"));const t=i.rowInsertionIndexes.includes(n.row),e=i[Yx("0x81")][Yx("0x99")](n[Yx("0x58")]);t||e||(l=s[Yx("0x75")](r))}else c&&!a&&(d=s[Yx("0x75")](r));else{const t=s.createElement(Yx("0x17")),e=s.createElement("tableCellSuggestion");s[Yx("0x77")](s.createRangeIn(r),e),s[Yx("0x5b")](t,r,0);for(const e of Array.from(x[Yx("0x44")]()))s.insert(e,t,Yx("0x8f"));l=s[Yx("0x1e")](t),d=s[Yx("0x1e")](e)}const u=Array[Yx("0x82")](x[Yx("0x6")]())[Yx("0x9c")]((([t])=>ta[Yx("0x99")](t)));i[Yx("0x66")][Yx("0x83")]({element:r,attributes:u[Yx("0x47")]?Object.fromEntries(u):null}),l&&i[Yx("0x36")][Yx("0x83")](l),d&&i.deletionRanges[Yx("0x83")](d)}),{priority:Yx("0x64")}),o.on(Yx("0x78"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x6e")]||1;i[Yx("0x81")]=new Array(a)[Yx("0x3e")](x)[Yx("0x24")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0xa")].push(t.model[Yx("0x1e")](e))}),{priority:"low"}),o.on(Yx("0x49"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x80")]||1;i[Yx("0x96")]=new Array(a)[Yx("0x3e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x7c")][Yx("0x83")](t.model[Yx("0x1e")](e))}),{priority:Yx("0xa3")}),n[Yx("0x8d")][Yx("0x79")]((e=>{if(e[Yx("0xa8")]&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45")))return e[Yx("0x88")]?{}:{type:Yx("0x0"),content:Yo(t.locale,Yx("0x85"))}}));const x=()=>!1;for(const t of[Yx("0x45"),Yx("0x74"),"tablePasteRow",Yx("0xb")])n[Yx("0x6b")][Yx("0x2f")]("insertion",t,Yx("0x8a"),x),n._suggestionFactory[Yx("0x2f")](Yx("0x3a"),t,Yx("0x8a"),x),n[Yx("0x6b")][Yx("0x2f")](Yx("0x40"),t,"join",x);n._suggestionFactory.registerCustomCallback(Yx("0x40"),Yx("0xb"),Yx("0x60"),x),n._suggestionFactory.registerCustomCallback(Yx("0x40"),"tablePasteCell","accept",((e,n,o)=>{const s=e[Yx("0x24")]((t=>t.getContainedElement()))[Yx("0x9c")]((t=>t)),r=new Map(s[Yx("0x24")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x66")])e&&r[Yx("0x1a")](t,e);else if(o&&o[Yx("0x51")])for(const[e,n]of Object[Yx("0x26")](o[Yx("0x51")])){const o=t.model[Yx("0x98")][Yx("0x38")](e),s=o?o[Yx("0x2e")]().getContainedElement():null;s&&r.set(s,n)}t[Yx("0x20")][Yx("0x25")]((t=>{for(const[e,n]of r)t[Yx("0x56")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Yx("0x2f")](e,Yx("0x45"),o,((s,r,i)=>{t[Yx("0x20")][Yx("0x25")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x5c")][Yx("0x32")];e.is("element",Yx("0x17"))&&x[Yx("0x83")](e)}n[Yx("0x6b")][Yx("0x1c")](e,null,o)(s,r,i);for(const e of x)Yx("0x10")!=e[Yx("0x68")][Yx("0x18")]&&t[Yx("0x6a")](e)}))}))};a("insertion","accept"),a(Yx("0x0"),"discard"),a(Yx("0x3a"),"accept"),a(Yx("0x3a"),Yx("0x60")),n[Yx("0x6b")].registerCustomCallback(Yx("0x0"),Yx("0x2b"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Yx("0x37")](n,{at:r,rows:i-r+1})})),n[Yx("0x6b")][Yx("0x2f")]("insertion",Yx("0x74"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minColumn:r,maxColumn:i}=s[Yx("0xa0")](e);o[Yx("0x67")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0xa8")]||!e.subType[Yx("0x89")](Yx("0x45")))return;const o=e[Yx("0x97")][Yx("0x86")],s=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t.isInContent&&t[Yx("0x97")]&&t.attributes[Yx("0x86")]==o));s[Yx("0x47")]&&e[Yx("0x1")]().length!=s[Yx("0x47")]&&s[Yx("0x52")](((t,e)=>(t[Yx("0xa2")]=e,e[Yx("0x88")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x4")](t[Yx("0x4f")]),s=[Yx("0x5f"),Yx("0x34")],r=n[Yx("0x16")].includes(t[Yx("0x4f")]);return r&&s[Yx("0x83")](Yx("0x4e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0xd"),c,{priority:Yx("0x64")}),n.on(Yx("0x13"),c,{priority:Yx("0x64")}),t[Yx("0x20")][Yx("0x92")].registerPostFixer((()=>{let e=!1;const o=Array[Yx("0x82")](t.model[Yx("0x92")][Yx("0x71")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x4")](s);if(Yx("0x1b")!=o||Yx("0x3a")!=i||r[Yx("0x43")])continue;if(!n[Yx("0x50")](x))continue;const a=n[Yx("0x53")](x)[Yx("0xa9")](),c=t[Yx("0x91")][Yx("0x38")](Yx("0x9e")).me;for(const t of n[Yx("0x5a")]())if(t[Yx("0x9d")]&&t[Yx("0x69")]==c&&Yx("0x40")==t[Yx("0x9a")]&&Yx("0xb")==t[Yx("0xa8")]&&t.getRanges()[Yx("0x93")]((t=>a[Yx("0xa7")]((e=>e[Yx("0xe")](t,!0))))))for(const n of t[Yx("0x1")]())n[Yx("0x9d")]&&(n[Yx("0x60")](),e=!0)}return e})),t.model[Yx("0x92")][Yx("0xf")]((e=>{const o=t[Yx("0x33")][Yx("0x38")]("redo");if(!o||!o[Yx("0x7d")][Yx("0x76")](e[Yx("0x2c")]))return!1;let s=!1;const r=t.plugins[Yx("0x38")](Yx("0x9e")).me,i=t.model.document.differ[Yx("0x62")](),x=Array.from(t[Yx("0x20")][Yx("0x92")].differ[Yx("0x8e")]())[Yx("0x9c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x4")](t);return Yx("0x1b")==o&&Yx("0x45")==s&&i==r.id&&!e[Yx("0x43")]}));for(const t of i){if("insert"!=t.type||Yx("0x17")!=t[Yx("0x7e")]||1!=t[Yx("0x47")])continue;const n=e.createRange(t.position,t[Yx("0x23")][Yx("0x2")](1));if(!x[Yx("0x3b")]((({data:t})=>t[Yx("0x15")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Yx("0xe")](o[Yx("0x15")])){e[Yx("0x5e")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x20")][Yx("0x92")][Yx("0xf")]((e=>{let o=!1;const s=t[Yx("0x91")].get(Yx("0x9e")).me,r=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t[Yx("0x9d")]&&t[Yx("0x69")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x45")==t[Yx("0xa8")])for(const e of t.getMarkers()){const n=e[Yx("0x2e")]()[Yx("0x94")]();if(n)if(n.is("element",Yx("0x17"))&&oa(n)){t[Yx("0x1f")](e[Yx("0x7e")]),i[Yx("0xa6")](n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is("element",Yx("0x17")),c=r&&r.is(Yx("0x6c"),Yx("0x17"));a&&!i.has(s)&&x[Yx("0xa6")](s),c&&!i[Yx("0x76")](r)&&x.add(r)}else n.is(Yx("0x6c"),Yx("0x35"))&&n[Yx("0x70")]&&(t[Yx("0x1f")](e.name),o=!0)}else if(Yx("0xb")==t[Yx("0xa8")]){if(!t[Yx("0x97")]||!t[Yx("0x97")][Yx("0x86")])continue;const e=t[Yx("0x97")][Yx("0x51")];if(e&&Object[Yx("0xc")](e)[Yx("0x47")])continue;const n=t[Yx("0x97")][Yx("0x86")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45"))){if(!e[Yx("0x97")][Yx("0x86")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x97")][Yx("0x86")]==n){s=!1;break}}i&&s&&(t[Yx("0xa5")](),o=!0)}for(const t of i)e[Yx("0x59")](t);for(const t of x)e[Yx("0x6a")](t);return o})),t.conversion[Yx("0x6d")](Yx("0x3d"))[Yx("0xa4")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Yx("0x64")}),t[Yx("0x12")][Yx("0x6d")](Yx("0x65"))[Yx("0xa4")]({model:Yx("0x4c"),view:(t,e)=>e[Yx("0x1d")][Yx("0x6f")]?l(t,!1):null,converterPriority:Yx("0x64")});const d=t[Yx("0x8b")][Yx("0x9")];this[Yx("0x46")](d[Yx("0x92")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x75")](e[Yx("0x48")]).getItems())t.is("element",Yx("0x90"))&&n.push(t);d[Yx("0x25")]((t=>{for(const e of n)t[Yx("0x19")](t[Yx("0x75")](e),t[Yx("0x7f")](e)),t[Yx("0x59")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t[Yx("0x5d")](0);return e.is(Yx("0x6c"),Yx("0x35"))&&e[Yx("0x70")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["resizeColumnWidths","_suggestionFactory","commandParams","format","subType","formatBlock","registerDescriptionCallback","editor","resizeTable","selection","enableCommand","tableWidth","formatGroupId","getSuggestionCallback","plugins","getContainedElement","handleSuggestionDescription","bind","data","*Format:* resize table","Users","document","change","handleResizeTableWidthCommand","model","author","table","get","markBlockFormat","TrackChangesEditing","accept","getSelectedElement","discard","registerCustomCallback","TableColumnResizeEditing","columnWidths"];var ia,xa;ia=ra,xa=210,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){if(!this[aa("0xd")].plugins.has(aa("0x4")))return;const t=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x23"));t[aa("0x10")]("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x17")](this)),t.enableCommand(aa("0x6"),this[aa("0x1d")].bind(this)),t[aa("0x7")][aa("0x3")](aa("0xb"),aa("0xe"),aa("0x0"),t._suggestionFactory[aa("0x13")]("formatBlock",null,aa("0x2"))),t[aa("0x7")].registerCustomCallback(aa("0xb"),aa("0xe"),"discard",t[aa("0x7")][aa("0x13")](aa("0xb"),null,aa("0x0"))),t._descriptionFactory[aa("0xc")](this[aa("0x16")][aa("0x17")](this))}[aa("0x1d")](t,e){const n=this.editor.plugins.get(aa("0x23")),o=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x4")),s=e[aa("0x20")]||this[aa("0xd")].model[aa("0x1b")][aa("0xf")][aa("0x1")]();this[aa("0xd")][aa("0x1e")][aa("0x1c")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s.getAttribute("tableWidth")||null;const a=e.tableWidth||x,c=e[aa("0x5")]||i,l=this[aa("0xd")].plugins[aa("0x21")](aa("0x1a")).me;for(const t of n.getSuggestions()){const e=t[aa("0x15")]();if("resizeTable"===t[aa("0xa")]&&e===s){t[aa("0x1f")]!==l&&t.discard();const e=t[aa("0x18")][aa("0x8")];x=e[0][aa("0x11")],i=e[0][aa("0x5")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x22")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],aa("0xe"))}))}[aa("0x16")](t){const{data:e}=t;if(e&&"resizeTable"===e[aa("0x12")]){const t=aa("0x19");return{type:aa("0x9"),content:Yo(this[aa("0xd")].locale,t)}}}}const la=["insertTemplate","enableCommand","afterInit","Template","plugins"];var da,ua;da=la,ua=128,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this.editor;t.plugins.has(ga("0x0"))&&t[ga("0x1")].get("TrackChangesEditing")[ga("0x3")](ga("0x2"))}}const fa=["ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","registerElementLabel","get","locale","tableOfContents","editor","_descriptionFactory","plugins","TrackChangesEditing","afterInit","enableCommand","commands"];var ha,pa;ha=fa,pa=410,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x3")](){const t=this[ba("0xc")];if(!t[ba("0x5")][ba("0x9")](ba("0x7")))return;t[ba("0x1")].get(ba("0x2"))[ba("0x4")](ba("0x7"));const e=t[ba("0x1")][ba("0x9")](ba("0x2")),n=t[ba("0xa")];e[ba("0x0")][ba("0x8")](ba("0xb"),(t=>Yo(n,ba("0x6"),t)))}}const _a=["createRange","_splitMarkerName","_descriptionFactory","model","ELEMENT_TITLE","isTouching","afterInit","editor","locale","getNearestSelectionRange","updateMarker","forward","differ","isEqual","start","get","title-content","removeMarker","schema","suggestion","Title","getChangedMarkers","newRange","has","document","nodeBefore","isCollapsed","from","registerElementLabel","plugins","end"];var Ta,Ca;Ta=_a,Ca=383,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1a")](){const t=this[ya("0x1b")];if(!t[ya("0x12")][ya("0xc")](ya("0x9")))return;const e=t[ya("0x12")][ya("0x4")]("TrackChangesEditing");e[ya("0x16")][ya("0x11")]("title-content",(()=>Yo(t[ya("0x1c")],ya("0x18")))),t[ya("0x17")][ya("0xd")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x10")](t[ya("0x17")][ya("0xd")][ya("0x1")][ya("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x15")](r);if(ya("0x8")!==s||!i.newRange)continue;const x=i[ya("0xb")],a=x[ya("0x13")][ya("0xe")];if(!a||!a.is("element",ya("0x5")))continue;if(!x.start[ya("0x19")](x[ya("0x13")]))continue;const c=t[ya("0x17")][ya("0x7")][ya("0x1d")](x[ya("0x13")],ya("0x0"));if(c&&c[ya("0xf")]){const t=n[ya("0x14")](x[ya("0x3")],c.start);t[ya("0x2")](x)||(n[ya("0x1e")](r,{range:t}),o=!0)}o||(n[ya("0x6")](r),o=!0)}return o}))}}const Aa=["has","editor","UndoEditing","enableCommand","TrackChangesEditing","undo","get","redo","plugins"];var va,Ra;va=Aa,Ra=222,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Sa("0x4")],e=t[Sa("0x2")][Sa("0x0")](Sa("0x7"));t.plugins[Sa("0x3")](Sa("0x5"))&&(e.enableCommand(Sa("0x8")),e[Sa("0x6")](Sa("0x1")))}}const La=["TrackChangesEditing","requires","has","toggleTableCaption","afterInit","editor"];var Na,wa;Na=La,wa=310,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x3")](){return[Bx]}[Ma("0x0")](){const t=this[Ma("0x1")];t.plugins[Ma("0x4")]("TableCaptionEditing")&&t.plugins.get(Ma("0x2")).enableCommand(Ma("0x5"))}}const Fa=["TrackChangesEditing","config","toUpperCase","selection","_getTranslationKeyForListStyle","listStart","ELEMENT_","getAttribute","expandListBlocksToCompleteList","get","format","listType","afterInit","handleListReversedCommand","from","numbered","handleDescriptions","getListTypeFromListStyleType","_getSuggestionBlocksForListStyle","DocumentListPropertiesEditing","startIndex","DocumentListPropertiesUtils","enableCommand","locale","model","plugins","*Change to:* %0","bind","DocumentListUtils","editor","commandName","isFirstBlockOfListItem","registerDescriptionCallback","markMultiRangeBlockFormat","getSelectedBlocks","commandParams","*Format:* set order to regular","push","isListItemBlock","reversed","listReversed","change","has","type","filter","handleListStartCommand"];var Pa,Da;Pa=Fa,Da=272,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x10")](){if(!this[Ba("0x21")][Ba("0x1d")][Ba("0x0")](Ba("0x17")))return;const t=this[Ba("0x21")][Ba("0x5")][Ba("0xd")]("list.properties"),e=this.editor[Ba("0x1d")][Ba("0xd")]("TrackChangesEditing");t.styles&&e[Ba("0x1a")]("listStyle",this.handleListStyleCommand.bind(this)),t[Ba("0x2b")]&&e[Ba("0x1a")](Ba("0x2c"),this[Ba("0x11")][Ba("0x1f")](this)),t[Ba("0x18")]&&e[Ba("0x1a")]("listStart",this[Ba("0x3")][Ba("0x1f")](this)),e._descriptionFactory[Ba("0x24")](this.handleDescriptions[Ba("0x1f")](this))}handleListStyleCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x16")]();this[Ba("0x21")].model[Ba("0x2d")]((()=>{n[Ba("0x25")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x1")]}],formatGroupId:"listStyle"})}))}[Ba("0x11")](t,e={}){const n=this.editor[Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")][Ba("0x1d")].get(Ba("0x20")),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&"numbered"===t[Ba("0xb")]("listType")));null!==s&&this[Ba("0x21")][Ba("0x1c")][Ba("0x2d")]((()=>{n[Ba("0x25")](s,{commandName:Ba("0x2c"),commandParams:[{reversed:e[Ba("0x2b")]}],formatGroupId:Ba("0x2c")})}))}handleListStartCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")].plugins[Ba("0xd")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&Ba("0x13")===t[Ba("0xb")](Ba("0xf"))));null!==s&&this.editor[Ba("0x1c")].change((()=>{n[Ba("0x25")](s,{commandName:Ba("0x9"),commandParams:[{startIndex:e[Ba("0x18")]}],formatGroupId:Ba("0x9")})}))}[Ba("0x14")](t){const e=this[Ba("0x21")][Ba("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x22")]){case"listStyle":o=Ba("0x1e"),s={type:Ba("0xe"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case Ba("0x2c"):o=n[Ba("0x27")][0][Ba("0x2b")]?"*Format:* set order to reversed":Ba("0x28"),s={type:Ba("0xe"),content:Yo(e,o)};break;case Ba("0x9"):o="*Format:* set start index to %0",s={type:Ba("0xe"),content:Yo(e,o,n[Ba("0x27")][0].startIndex)}}return s}[Ba("0x16")](){const t=this.editor[Ba("0x1d")].get("DocumentListUtils");let e=Array[Ba("0x12")](this[Ba("0x21")][Ba("0x1c")].document[Ba("0x7")][Ba("0x26")]());return e[Ba("0x29")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x20"));let n=Array.from(this[Ba("0x21")].model.document.selection[Ba("0x26")]())[Ba("0x2")](t);if(!n.length)return null;n=e[Ba("0xc")](n);const o=[];for(const t of n)e[Ba("0x23")](t)&&o[Ba("0x29")](t);return o}[Ba("0x8")](t){return Ba("0xa")+this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x19"))[Ba("0x15")](t).toUpperCase()+"_LIST_"+t[Ba("0x6")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","TableCellPropertiesEditing","plugins","join","TrackChangesTableProperties","*Format:* change table cell properties","subType","formatBlock","handleSuggestionDescription","editor","getSelectionAffectedTableCells","_getSuggestion","_handlePropertyChange","getContainedElement","TablePropertiesEditing","_suggestionFactory","TrackChangesEditing","tableCellBackgroundColor","registerDescriptionCallback","tableCellHeight","tableBorderStyle","change","pluginName","getAttribute","tableHeight","*Format:* change table properties","handleDiscardAction","getSuggestionCallback","removeAttribute","nodeAfter","getFirstPosition","get","table","tableCellBorderColor","enableCommand","tableCellPadding","has","findAncestor","document","data","markBlockFormat","model","tableCellProperties","accept","tableWidth","tableBorderWidth","format","afterInit","selection","tableCellHorizontalAlignment","tableCellWidth","getSuggestions","locale","tableProperties","discard","TableUtils"];var Ga,Ha;Ga=Ua,Ha=327,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x6")]=["tableBorderColor",za("0x1d"),za("0x36"),"tableAlignment",za("0x35"),za("0x21"),"tableBackgroundColor"],this.tableCellProperties=[za("0x2a"),"tableCellBorderStyle","tableCellBorderWidth",za("0x2c"),za("0x3"),za("0x1c"),za("0x1a"),za("0x2"),"tableCellVerticalAlignment"]}static get[za("0x1f")](){return za("0xd")}[za("0x0")](){const t=this[za("0x12")].plugins[za("0x28")]("TrackChangesEditing");if(this[za("0x12")][za("0xb")][za("0x2d")](za("0x17"))){for(const e of this.tableProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0x32")].document[za("0x1")][za("0x27")]()[za("0x2e")](za("0x29"));this[za("0x15")](e,[o],this.tableProperties,za("0x6"),t,n)}));t[za("0x18")].registerCustomCallback(za("0x10"),za("0x6"),za("0x34"),t[za("0x18")][za("0x24")]("formatBlock",null,"discard")),t[za("0x18")][za("0x9")](za("0x10"),za("0x6"),"discard",((t,e)=>this[za("0x23")](this[za("0x6")],t,e))),t._suggestionFactory[za("0x9")](za("0x10"),"tableProperties",za("0xc"),(()=>!1))}if(this[za("0x12")][za("0xb")][za("0x2d")](za("0xa"))){for(const e of this.tableCellProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0xb")].get(za("0x8"))[za("0x13")](this[za("0x12")][za("0x32")][za("0x2f")][za("0x1")]);this._handlePropertyChange(e,o,this[za("0x33")],za("0x33"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",za("0x33"),"accept",t[za("0x18")].getSuggestionCallback(za("0x10"),null,za("0x7"))),t._suggestionFactory[za("0x9")](za("0x10"),za("0x33"),za("0x7"),((t,e)=>this[za("0x23")](this[za("0x33")],t,e))),t[za("0x18")][za("0x9")](za("0x10"),za("0x33"),za("0xc"),(()=>!1))}t._descriptionFactory[za("0x1b")]((t=>this.handleSuggestionDescription(t)))}[za("0x15")](t,e,n,o,s,r){const i=this[za("0x12")][za("0xb")][za("0x28")]("TrackChangesEditing");this.editor.model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[za("0x14")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x20")](o);void 0!==n&&(e[o]=n)}s(r),i[za("0x31")](t,{commandParams:[e]},[],o)}}))}[za("0x23")](t,e,n){const o=e[0].start[za("0x26")],s=n.commandParams[0];this[za("0x12")][za("0x32")][za("0x1e")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x25")](n,o)}))}[za("0x11")](t){if(t[za("0x30")])switch(t[za("0xf")]){case za("0x6"):return{type:za("0x37"),content:Yo(this[za("0x12")].locale,za("0x22"))};case"tableCellProperties":return{type:"format",content:Yo(this.editor[za("0x5")],za("0xe"))}}}[za("0x14")](t,e){const n=this[za("0x12")].plugins[za("0x28")](za("0x19"));for(const o of n[za("0x4")]({skipNotAttached:!0})){const n=o[za("0x16")]();if(o[za("0xf")]===e&&n===t)return o}return null}}const Va=["formatBlock:chain","length","ck-suggestion-marker","range","_createSuggestion","createSelection","markInlineFormat","addRange","always","isCollapsed","markerToData","lowest","buildSuggestion","some","requires","insertion","model","trackChanges.mergeNestedSuggestions","substr","rootName","item","formatInline:accept","high","mapper","parent","isMultiRange","editingDowncast","containsItem","trackChanges","CommentsRepository","size","element","isBefore","detach","consume","formatInline:chain","$marker","ready","deletion:accept","return","listenTo","getMultiRangeId","hasComments","execute","deletion:chain","addSuggestionData","containsRange","_splitMarkerName","toJSON","registerPostFixer","getFirstMarker","fromCharCode","getItems","getAttribute","filter","_setSuggestionRange","push","activeMarkers","ck-suggestion-marker-","_adapter","getUser","_suggestions","originalSuggestionId","suggestionLoaded","collaboration.channelId","head","stopListening","commentThread","rejected","removeMarker","isAtEnd","elementToElement","adapter","init","formatBlock:","oldRange","markMultiRangeInsertion","map","editing","highest","previous","_enabledCommands","_customCallbacks","markerNameToElements","markDeletion","multi","value","add","getAllAdjacentSuggestions","_defaultCallbacks","_addThreadToSuggestion","isLimit","consumable","suggestionChanged","setTo","low","$textProxy","acceptAllSuggestions","deletion:join","dataDowncast","clear","getCustomProperty","_breakSuggestionMarker","unbindElementFromMarkerName","update:suggestion","assign","@external","insert","includes","removeComment","writer","removeMarkers","type","addUser","accepted","Users","acceptSuggestion","getRanges","getFirstRange","suggestion","_registerDefaultCallbacks","PENDING_ACTION_SUGGESTION","commands","addMarkerName","locale","isIntersectingWithRange","isDocumentOperation","trackChanges.trackFormatChanges","before","deletion","_setSuggestionData","track-changes-adapter-already-set","deleteContent","author","markBlockFormat","name","getDifference","discardSelectedSuggestions","enableReadOnlyMode","showSuggestionHighlights","_saved","backward","_onDiscard","_model","getIntersection","createRangeIn","_isDataLoaded","skipNestingCheck","markerName","insertion:discard","track-changes-suggestion-data-mismatch","updateMarker","_updateSuggestionData","toViewElement","removeMarker:suggestion:formatBlock","values","keys","normal","getAncestors","marker-count","then","selection","fire","trackChangesCommand","suggestionUnloaded","subType","end","get","_getAuthorFromId","isInContent","hasSuggestion","removed","_joinSuggestions","addMarker:suggestion:formatBlock","_suggestionState","removeClass","nodeAfter","isArray","setSelection","formatInline:","splice","_rangeIsInLocalUserInsertion","getMarkers","authorName","containerElement","isOwn","notReady","after","creator","conversion","getSuggestionCallback","stop","data","addClass","_refreshSuggestionsChain","open","isUndo","forward","getSuggestion","root","from","isRemovable","isInsideObject","insertion:chain","define","_findSuggestions","getCommentThread","suggestion-type","PendingActions","splitPosition","isNextTo","isObject","_cutOutSuggestionMarker","suggestion:","options","getChanges","updateSuggestion","deletion:discard","getSuggestions","nodeBefore","upcast","containsRangeInObject","elementEnd","accept","has","next","getShiftedBy","_removeSuggestion","ck-suggestion-marker-formatBlock","insertion:accept","batch","delete","insertContent","addMarker","createPositionAt","discardSuggestion","insertion:","markMultiRangeBlockFormat","schema","createElement","split","isAfter","clone","multipleBlocks","formatBlock:accept","attributes","config","change","elementStart","_trackFormatChanges","for","track-changes-adapter-missing-getsuggestion","_getSuggestionData","markers","start","$graveyard","formatBlock:discard","sort","_editor","default","formatBlock","_suggestionFactory","markerToHighlight","position","refresh","editor","_addSuggestionMarker","getChangedMarkers","createPositionBefore","chain","differ","_checkSuggestionCorrectness","formatGroupId","howMany","ck-suggestion-marker--active","set","remove","enableCommand","_getExternalAuthor","containsPosition","fetchCommentThread","getRange","acceptSelectedSuggestions","addSuggestion","getNearestSelectionRange","unbind","data-suggestion","discardAllSuggestions","isBlock","bindElementToMarker","every","move","formatInline:join","tablePasteChainId","track-changes-command-not-found","markerReady","isAtStart","discard","newRange","formatInline","addCommentThread","_isForcedDefaultExecutionBlock","applyOperation","track-changes-suggestion-not-found","createRange","external:","forceDefaultExecution","createdAt","isSelectable","dataReady","isEqual","plugins","document","deletion:","hasCommentThread","markInsertion","resolve","_commentsRepository","_mergeNestedSuggestions","join","_joinWithAdjacentSuggestions"];var Ka,qa;Ka=Va,qa=407,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xf9")](){return[Xa("0x108"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x138")]((t=>String[Xa("0x11e")](t)))[Xa("0xe9")]("")}super(t),this[Xa("0xbd")](Xa("0x124"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Xa("0x39")][Xa("0xa1")]((()=>{for(const e of[...s,...o])this[Xa("0x39")][Xa("0xa7")].has(e)&&t[Xa("0x139")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[Xa("0xb3")].model.schema,this.editor.locale),this[Xa("0x126")]=null,this[Xa("0xaf")]=new Ja(this[Xa("0xb3")]),this[Xa("0x128")]=new Map,this[Xa("0xe7")]=t[Xa("0xe1")][Xa("0x51")](Xa("0x108")),this[Xa("0x13c")]=new Set,this[Xa("0x39")]=this[Xa("0xb3")][Xa("0xfb")],this[Xa("0x58")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xa0")][Xa("0x76")](Xa("0x29"),Xa("0xad")),this[Xa("0xa3")]=t[Xa("0xa0")][Xa("0x51")](Xa("0x29")),t[Xa("0xa0")][Xa("0x76")](Xa("0xfc"),!0),this._mergeNestedSuggestions=t[Xa("0xa0")][Xa("0x51")](Xa("0xfc")),this[Xa("0x4d")]=new u(t,this[Xa("0x13c")]),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,50,48,53,52])}[Xa("0x134")](){const t=this.editor;t[Xa("0x67")][Xa("0xa4")](Xa("0x105"))[Xa("0xb0")]({model:Xa("0x21"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0x3e")]),o=[Xa("0xed"),Xa("0x125")+n];let s=3e3;return this[Xa("0x124")][Xa("0x16")](t[Xa("0x3e")])&&(o[Xa("0x123")](Xa("0xbc")),s=3010),Xa("0x2b")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x67")][Xa("0xa4")](Xa("0xd"))[Xa("0x1")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[Xa("0xff")];if(!s)return;const r=o.mapper[Xa("0x43")](s);t[Xa("0xfb")][Xa("0x98")][Xa("0x7d")](s)&&r&&!r.getCustomProperty("widget")&&r.is(Xa("0x62"))&&(0,x.toWidget)(r,o[Xa("0x18")])}),{priority:Xa("0x101")})})),t.conversion[Xa("0xa4")]("dataDowncast").markerToHighlight({model:Xa("0x21"),view:(t,e)=>{if(!e[Xa("0x80")][Xa("0x35")])return null;const{type:n}=this[Xa("0x11a")](t[Xa("0x3e")]);return{classes:[Xa("0xed"),Xa("0x125")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0xff")])return;if(o[Xa("0xff")].is(Xa("0x4b")))return void s[Xa("0x6")].consume(o.item,n[Xa("0x31")]);const r=s[Xa("0x102")][Xa("0x43")](o[Xa("0xff")]);if(!o[Xa("0xff")].is(Xa("0x10a"))||!t[Xa("0xfb")][Xa("0x98")][Xa("0xca")](o[Xa("0xff")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[Xa("0x11a")](o[Xa("0x3e")]);s[Xa("0x18")].addClass([Xa("0xed"),Xa("0x8e")],r),s[Xa("0x18")].setAttribute(Xa("0xc8"),i,r),s[Xa("0x102")][Xa("0xcb")](r,o.markerName),e&&(this[Xa("0x124")][Xa("0x16")](o[Xa("0x3e")])?s[Xa("0x18")][Xa("0x6b")](Xa("0xbc"),r):s[Xa("0x18")][Xa("0x59")]("ck-suggestion-marker--active",r));for(const e of t.model[Xa("0x3b")](o.item)[Xa("0x11f")]())s[Xa("0x6")][Xa("0x10d")](e,n.name);s[Xa("0x6")].consume(o[Xa("0xff")],n[Xa("0x31")])};t[Xa("0x67")].for(Xa("0xd"))[Xa("0x1")]((t=>{t.on(Xa("0x57"),((t,e,o)=>{o.options[Xa("0x35")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x13a")})})),t[Xa("0x67")][Xa("0xa4")]("dataDowncast")[Xa("0xf5")]({model:Xa("0x21"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:"suggestion",name:t[Xa("0xfd")](11)}}),t[Xa("0x67")].for(Xa("0x86"))[Xa("0x132")]({view:{name:Xa("0x21"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x7f")+t.getAttribute(Xa("0x79"))+":"+t[Xa("0x120")]("id");return t[Xa("0x120")](Xa("0x49"))&&(n+=":"+t[Xa("0x120")](Xa("0x49"))),e[Xa("0x99")](Xa("0x10f"),{"data-name":n})}}),t[Xa("0x67")][Xa("0xa4")](Xa("0x86")).dataToMarker({view:Xa("0x21")}),t[Xa("0x67")][Xa("0xa4")](Xa("0x105")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),t.conversion[Xa("0xa4")](Xa("0x105"))[Xa("0x1")]((t=>{t.on(Xa("0x44"),((t,e,n)=>{const o=n[Xa("0x102")][Xa("0x13e")](e.markerName);if(o)for(const t of o)t[Xa("0xf")]("addHighlight")||(n[Xa("0x18")][Xa("0x59")]([Xa("0xed"),"ck-suggestion-marker-formatBlock",Xa("0xbc")],t),n[Xa("0x18")].removeAttribute(Xa("0xc8"),t),n[Xa("0x102")][Xa("0x11")](t,e[Xa("0x3e")]))}),{priority:Xa("0x101")})})),t.model[Xa("0xe2")][Xa("0x11c")]((e=>{let n=!1;const o=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x11a")](x);if(Xa("0x21")!==o)continue;const d=this._suggestions[Xa("0x51")](l);if(null!=a[Xa("0xd4")])if(Xa("0xd5")==c&&(n=n||Ya(a.newRange,x,e,t.model.schema)),a.newRange[Xa("0xf4")]||Xa("0xa9")==a.newRange[Xa("0x71")][Xa("0xfe")]||Xa("0xae")==c&&!ec(a.newRange)||Xa("0x2b")==c&&(Za(i=a.newRange)||(r=i)[Xa("0xa8")][Xa("0x103")]==r.end[Xa("0x85")]&&r[Xa("0xa8")][Xa("0x131")]))e[Xa("0x130")](x),n=!0;else{if(!d||!d[Xa("0x53")])continue;s[Xa("0x1")](d)}}var r,i;return s[Xa("0x109")]>0&&(n=!!this[Xa("0xea")](s)||n),n})),t[Xa("0xfb")][Xa("0xe2")].registerPostFixer((e=>{let n=!1;for(const o of t.model.document.differ[Xa("0x81")]()){if(Xa("0x15")!=o[Xa("0x1a")])continue;const s=o[Xa("0xb1")][Xa("0x8c")](o[Xa("0xec")]);if(s.isAtEnd)for(const r of this._suggestions[Xa("0x45")]()){if(r[Xa("0x104")]||!r[Xa("0x53")])continue;if("formatBlock"!=r.type)continue;const i=r[Xa("0x20")]();if(i[Xa("0xa8")][Xa("0x103")]!=i.end[Xa("0x103")]&&i[Xa("0x50")].isEqual(o.position)){const o=t[Xa("0xfb")].createRange(i[Xa("0xa8")],s);e[Xa("0x41")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0xfb")][Xa("0xa7")].on(Xa("0x12"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x11a")](e[Xa("0x31")]),n=this._suggestions[Xa("0x51")](t);n&&n[Xa("0x25")](e.name)}})),t[Xa("0xfb")][Xa("0xe2")].on("change:data",(()=>{const e=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")][Xa("0xb5")]()).filter((t=>"suggestion"===this[Xa("0x11a")](t[Xa("0x31")]).group));if(0===e[Xa("0xec")])return;e[Xa("0xab")](((t,e)=>{const n=t[Xa("0x6a")][Xa("0x136")],o=e[Xa("0x6a")][Xa("0x136")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xa8")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x11a")](t);if(null===s[Xa("0x136")]){const e=this._handleNewSuggestionMarker(t);o[Xa("0x1")](e)}else{const t=this._suggestions[Xa("0x51")](e);null!==s[Xa("0xd4")]||t[Xa("0x53")]?(n[Xa("0x1")](t[Xa("0x12c")]),o.add(t)):this[Xa("0x8d")](t)}}o[Xa("0x109")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xa("0x4c")](Xa("0x7"),t)})),t[Xa("0xfb")].on(Xa("0xd8"),((e,n)=>{const o=n[0];if(!this[Xa("0x128")][Xa("0x109")])return;if(!o[Xa("0x28")])return;if(o[Xa("0x90")][Xa("0x6e")]||!o.batch.isLocal)return;let s,r;switch(o.type){case Xa("0x15"):s=t[Xa("0xfb")][Xa("0x94")](o[Xa("0xb1")]),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;case Xa("0x9a"):s=t[Xa("0xfb")].createPositionAt(o[Xa("0x7b")]),r=t[Xa("0xfb")][Xa("0x94")](o.moveTargetPosition);break;case Xa("0xcd"):s=t[Xa("0xfb")][Xa("0x94")](o.targetPosition),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;default:return}const i=t[Xa("0xfb")][Xa("0xda")](s,r);t[Xa("0xfb")][Xa("0xa1")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Xa("0x104")])continue;if(Xa("0xd5")==t[Xa("0x1a")])continue;const n=t[Xa("0x6a")]&&t[Xa("0x6a")][Xa("0x9d")];(Xa("0xae")!=t[Xa("0x1a")]||Xa("0x9a")==o[Xa("0x1a")]&&!n)&&(e.containsRangeInObject||Xa("0xfa")==t[Xa("0x1a")]&&e.isOwn||t.getFirstRange()[Xa("0x119")](i)&&this[Xa("0x10")](t,s,r))}}))}),{priority:Xa("0xf6")}),t[Xa("0xfb")].on(Xa("0x2e"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xdc")])return;if(this[Xa("0xd7")])return;if(!this[Xa("0x4d")][Xa("0x0")])return;if(o[Xa("0xf4")])return;const r=t.model[Xa("0x98")],{start:i,end:x}=o.getFirstRange(),a=i[Xa("0x5a")]&&r[Xa("0x5")](i.nodeAfter)?null:r[Xa("0xc6")](i,Xa("0x6f")),c=x.nodeBefore&&r[Xa("0x5")](x[Xa("0x85")])?null:r[Xa("0xc6")](x,Xa("0x37")),l=t[Xa("0xfb")][Xa("0xda")](a?a[Xa("0xa8")]:i,c?c[Xa("0x50")]:x);t[Xa("0xfb")][Xa("0xa1")]((e=>{this[Xa("0x13f")](l);const n=t[Xa("0xfb")].schema.getNearestSelectionRange(l[Xa("0xa8")]);o.is("documentSelection")?e[Xa("0x5c")](n):o[Xa("0x8")](n)})),e.stop()}),{priority:e.priorities[Xa("0x47")]+10}),t.model.on(Xa("0x92"),((e,n)=>{const o=n[n[Xa("0xec")]-1];o&&o[Xa("0xdc")]||this[Xa("0xd7")]||this[Xa("0x4d")][Xa("0x0")]&&(t[Xa("0xfb")][Xa("0xa1")]((()=>{let o=t.model[Xa("0x92")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x112")]=o[Xa("0x9c")]();const s=o[Xa("0x50")][Xa("0x85")],r=t[Xa("0xfb")][Xa("0x98")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t[Xa("0xfb")][Xa("0xda")](o[Xa("0xa8")],t[Xa("0xfb")][Xa("0x94")](s,Xa("0x50")))),this[Xa("0xe5")](o)})),e[Xa("0x69")]())}),{priority:"high"}),this[Xa("0xb3")][Xa("0x24")][Xa("0x1")](Xa("0x107"),this[Xa("0x4d")]),this[Xa("0xbf")](Xa("0x107"));const o=new p(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x1e"),o),this.enableCommand("acceptSuggestion");const s=new C(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x95"),s),this[Xa("0xbf")](Xa("0x95")),t[Xa("0x24")][Xa("0x1")](Xa("0xb"),new F(t,o,this[Xa("0x128")])),this[Xa("0xbf")]("acceptAllSuggestions"),t.commands[Xa("0x1")](Xa("0xc9"),new F(t,s,this._suggestions)),this[Xa("0xbf")](Xa("0xc9")),t[Xa("0x24")][Xa("0x1")](Xa("0xc4"),new U(t,o,this[Xa("0x128")])),this[Xa("0xbf")](Xa("0xc4")),t[Xa("0x24")][Xa("0x1")](Xa("0x33"),new U(t,s,this[Xa("0x128")])),this.enableCommand(Xa("0x33"));const r=t[Xa("0xe1")][Xa("0x51")](Xa("0x108"));this[Xa("0x113")](r,"addComment",((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&1===n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!0})}),{priority:Xa("0x9")}),this[Xa("0x113")](r,Xa("0x17"),((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&!n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!1})}),{priority:Xa("0x9")})}set[Xa("0x133")](t){if(this[Xa("0x126")])throw new e.CKEditorError(Xa("0x2d"),this);this[Xa("0x126")]=t}get[Xa("0x133")](){return this[Xa("0x126")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x128")][Xa("0x45")]())t&&!e[Xa("0x53")]||n[Xa("0x123")](e);return e?n[Xa("0x138")]((t=>t[Xa("0x11b")]())):n}[Xa("0x70")](t){const n=this[Xa("0x128")].get(t);if(!n)throw new e.CKEditorError(Xa("0xd9"),this);return n}[Xa("0x54")](t){return this._suggestions[Xa("0x8a")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x1a")][Xa("0x9a")](":"),i=this[Xa("0x128")][Xa("0x51")](n)||this[Xa("0xef")](s,r,n,e,o);if(this[Xa("0x4")](i),this[Xa("0xb9")](i,s,r||null,e),i[Xa("0xdd")]=t[Xa("0xdd")],i[Xa("0x3c")]=!0,o&&o["@external"]){const t=o[Xa("0x14")],e=this[Xa("0xc0")](t[Xa("0x61")]);i.authoredAt=t[Xa("0xdd")],i[Xa("0x2f")]=e,i.isExternal=!0}else i.authoredAt=t[Xa("0xdd")];switch(t[Xa("0x6a")]&&(i[Xa("0x6a")]=t[Xa("0x6a")]),t[Xa("0x9f")]&&(i[Xa("0x9f")]=t[Xa("0x9f")]),this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]||(i[Xa("0x36")]=!0),this[Xa("0x58")][Xa("0x51")](i)){case Xa("0x64"):this[Xa("0x58")][Xa("0xbd")](i,Xa("0xdf"));break;case Xa("0xd1"):i[Xa("0x53")]?(this[Xa("0x6c")](new Set([i])),this[Xa("0xea")](new Set([i])),this[Xa("0x58")].set(i,"ready"),this[Xa("0x4c")](Xa("0x12a"),i)):this[Xa("0x58")][Xa("0xbd")](i,"removed")}return i}[Xa("0x1e")](t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")].change((()=>{for(const e of t[Xa("0x2")]())e[Xa("0x89")]()}))}))}discardSuggestion(t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")][Xa("0xa1")]((()=>{for(const e of t[Xa("0x2")]())e.discard()}))}))}enableCommand(t,n){const o=this.editor.commands[Xa("0x51")](t);if(!o)throw new e.CKEditorError(Xa("0xd0"),this,{commandName:t});this._enabledCommands[Xa("0x1")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x4d")].value&&(this._isForcedDefaultExecutionBlock||e[Xa("0xec")]>0&&e[e[Xa("0xec")]-1]&&e[e[Xa("0xec")]-1][Xa("0xdc")]||(t.return=n(((...t)=>o[Xa("0x116")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x69")]()))}),{priority:Xa("0x101")})}[Xa("0xdc")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xd7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xe5")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor.plugins[Xa("0x51")](Xa("0x1d")).me;for(const{suggestion:e,meta:s}of this[Xa("0x77")](t,Xa("0xfa")))if(s[Xa("0x63")]){if(!s[Xa("0x7c")]){if(s[Xa("0x87")]){if(!this[Xa("0xe8")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0xa8")],t[Xa("0x50")]);break}if(n==e[Xa("0x4f")]&&rc(e,o)){const n=e[Xa("0x20")]();return n[Xa("0xa8")][Xa("0xe0")](t[Xa("0x50")])?this._setSuggestionRange(e,this._model[Xa("0xda")](t.start,n.end)):this._setSuggestionRange(e,this._model[Xa("0xda")](n[Xa("0xa8")],t[Xa("0x50")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x96")+n:Xa("0xfa"),a=this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,r,i,t),a}[Xa("0x137")](t,n=Xa("0x140"),o={}){const s=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=this[Xa("0xaf")].getSuggestionCallback("insertion",n,Xa("0xe9"));for(const e of this[Xa("0x84")]())if(e[Xa("0x2f")].id==s.id&&Xa("0xfa")==e[Xa("0x1a")]&&e[Xa("0x4f")]==n&&rc(e,o)&&(r(e[Xa("0x1f")](),t)||r(t,e[Xa("0x1f")]()))){for(const n of t)e[Xa("0xf2")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n.isOwn)continue;if(!this[Xa("0xe8")]&&n[Xa("0x87")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x119")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x96")+n,c=this[Xa("0x2c")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xb4")](a,i,x,e,Zo.getMultiRangeId());return c}[Xa("0xf1")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xf4")])return null;if("never"===this._trackFormatChanges){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,Xa("0x89"));return this[Xa("0xdc")]((()=>e([t],n,s))),null}const r=this.editor[Xa("0xe1")].get("Users").me,i=[];if(Xa("0xf3")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xfa")))n.isOwn&&!n[Xa("0x74")]&&i[Xa("0x123")](...e[Xa("0x1f")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x123")](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][Xa("0x32")](t);n[Xa("0x5e")](e,1,...o),e+=o[Xa("0xec")]}}return n}(t,i);x[Xa("0xec")]&&this[Xa("0x39")][Xa("0xa1")]((()=>{for(const t of x){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,"accept");this[Xa("0xdc")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xa8")],a=t[Xa("0x50")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[Xa("0x63")])continue;if(e[Xa("0x4f")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x20")]();if(r[Xa("0x119")](t,!0))return null;x=x[Xa("0x10b")](r.start)?x:r[Xa("0xa8")],a=a.isAfter(r.end)?a:r[Xa("0x50")],i?r[Xa("0xa8")][Xa("0x10b")](i.getFirstRange().start)?(i[Xa("0x19")](),i=e):e.removeMarkers():i=e}const c=this[Xa("0x39")][Xa("0xda")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x2c")]({id:t,type:Xa("0x5d")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xb4")](Xa("0x5d")+o,t,i,c)}}return null}[Xa("0x30")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName),n[Xa("0x9d")]=t.is(Xa("0xee")),s=s||tc(n);const i=o.map((t=>nc(t,this[Xa("0x39")]))),x=t.is(Xa("0xee"))?t:nc(t,this[Xa("0x39")]);if("never"===this[Xa("0xa3")]){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}i[Xa("0x123")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xa8")],d=x[Xa("0x50")];for(const{suggestion:t,meta:e}of this[Xa("0x77")](x,Xa("0xae"))){if(!e[Xa("0x63")])continue;if(e.isNextTo||e[Xa("0x87")]||e[Xa("0x74")])continue;if(t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const o=t[Xa("0x20")]();if(t[Xa("0x4f")]==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x10b")](o.start)?l:o[Xa("0xa8")],d=d.isAfter(o.end)?d:o[Xa("0x50")],c?o[Xa("0xa8")][Xa("0x10b")](c[Xa("0x20")]()[Xa("0xa8")])?(c[Xa("0x19")](),c=t):t[Xa("0x19")]():c=t}else{const e=x[Xa("0x3a")](o);this[Xa("0x7e")](t,e)}}const u=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x122")](c,this._model[Xa("0xda")](l,d)),c;{const t=this[Xa("0x2c")]({id:g,type:Xa("0x135")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0xb4")](Xa("0x135")+s,g,m,this[Xa("0x39")][Xa("0xda")](l,d)),t}}[Xa("0x97")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName);const i=t[0];n[Xa("0x9d")]=i.is("range"),s=s||tc(n);const x=o[Xa("0x138")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x138")]((t=>nc(t,this._model)));if("never"===this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Xa("0x5f")](t)){c=!1;break}if(c&&"always"!==this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")]("formatBlock",s,Xa("0x89"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;for(const t of this[Xa("0x84")]()){if(t[Xa("0x2f")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x1a")]||t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const e=t[Xa("0x4f")]==s;for(let n=0;n<a[Xa("0xec")];n++){const o=a[n];for(const s of t[Xa("0x60")]()){const r=s[Xa("0xc3")]();if(o[Xa("0xe0")](r)){e?(a.splice(n,1),n--):t.removeMarker(s[Xa("0x31")]);break}}}}if(0==a[Xa("0xec")])return null;const d=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"join");for(const t of this[Xa("0x84")]())if(t[Xa("0x2f")].id==l.id&&"formatBlock"==t[Xa("0x1a")]&&t.data[Xa("0xba")]==n[Xa("0xba")]&&t.subType==s&&rc(t,r)&&(d(t.getRanges(),a)||d(a,t[Xa("0x1f")]()))){for(const e of a)t[Xa("0xf2")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x135")+s,f=this[Xa("0x2c")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0xb4")](m,u,g,t,Zo[Xa("0x114")]());return f}[Xa("0x13f")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,"insertion"))if(e[Xa("0x63")]&&!e[Xa("0x7c")])if(t[Xa("0x104")]){const e=t[Xa("0x1f")]()[Xa("0x121")]((t=>"$graveyard"!=t[Xa("0x71")][Xa("0xfe")]));if(e[Xa("0xcc")]((t=>r[Xa("0x119")](t,!0)))&&t[Xa("0xd3")](),e.some((t=>t[Xa("0x119")](r,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,Xa("0x89"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x3a")](t[Xa("0x20")]());null!==e&&t[Xa("0x38")]([e],null,o)}if(r[Xa("0x10c")](),r[Xa("0xf4")]||"$graveyard"==r.root[Xa("0xfe")])return null;let x=null,a=r[Xa("0xa8")],c=r[Xa("0x50")];const l=this[Xa("0x77")](r,Xa("0x2b"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x39")][Xa("0xda")](a,c);if(e[Xa("0x63")]&&(this[Xa("0xe8")]||!e[Xa("0x87")]&&!e[Xa("0x74")]))if(t[Xa("0x104")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x1f")]()){if(o[Xa("0x119")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0xd3")]()}else{const e=t[Xa("0x20")]();if(e[Xa("0x119")](n,!0))return t;if(!rc(t,o)){n[Xa("0x119")](e)?t.removeMarkers():e[Xa("0xc1")](a)?a=e[Xa("0x50")]:e[Xa("0xc1")](c)&&(c=e[Xa("0xa8")]);continue}a=a[Xa("0x10b")](e[Xa("0xa8")])?a:e.start,c=c[Xa("0x9b")](e[Xa("0x50")])?c:e.end,o=Object[Xa("0x13")]({},t[Xa("0x9f")]),x?e[Xa("0xa8")][Xa("0x10b")](x.getFirstRange()[Xa("0xa8")])?(x[Xa("0x19")](),x=t):t[Xa("0x19")]():x=t}}if(x)return this[Xa("0x122")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x39")].createRange(a,c),i=s.id,x=n?Xa("0xe3")+n:Xa("0x2b"),l=this[Xa("0x2c")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=t.map((t=>new i.LiveRange(t[Xa("0xa8")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0xfa")))e[Xa("0x63")]&&!e[Xa("0x7c")]&&x[Xa("0x1")](t);for(const e of x)if(e[Xa("0x104")]){const s=e[Xa("0x1f")]();if((!e[Xa("0x9f")]||!e[Xa("0x9f")][Xa("0x3d")])&&s[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&e[Xa("0xd3")](),r.every((t=>s[Xa("0xf8")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[Xa("0x68")](Xa("0x2b"),n,Xa("0x89"));return this[Xa("0xdc")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x20")]();if(r.some((e=>e.containsRange(t,!0)))&&e[Xa("0xd3")](),r.every((e=>t[Xa("0x119")](e,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"accept");return this[Xa("0xdc")]((()=>t(r,null,o))),null}}const a=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[Xa("0x2f")].id==s.id&&t[Xa("0x53")]&&Xa("0x2b")==t[Xa("0x1a")]&&t[Xa("0x4f")]==n&&rc(t,o)&&(a(t[Xa("0x1f")](),r)||a(r,t[Xa("0x1f")]())))if(c){if(t[Xa("0x12e")]&&t[Xa("0x12e")][Xa("0xec")])continue;for(const e of t[Xa("0x1f")]())c[Xa("0x27")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0x27")](e)||t[Xa("0xf2")](e)}if(c)return c;x[Xa("0xe")]();for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0x2b")))e.isOwn&&(this._mergeNestedSuggestions||!e[Xa("0x87")]&&!e[Xa("0x74")])&&rc(t,o)&&x[Xa("0x1")](t);for(const t of x){const e=t[Xa("0x1f")]();if((!o||!o[Xa("0x3d")])&&r[Xa("0xcc")]((t=>e.some((e=>e[Xa("0x119")](t,!0))))))return t;(!t[Xa("0x9f")]||!t[Xa("0x9f")][Xa("0x3d")])&&e[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&t[Xa("0xd3")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0xe3")+n,g=this[Xa("0x2c")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0x10c")](),t[Xa("0xf4")]||"$graveyard"==t[Xa("0x71")][Xa("0xfe")]||this[Xa("0xb4")](u,l,d,t,Zo[Xa("0x114")]());return g}[Xa("0x122")](t,e){const n=t[Xa("0x11d")]();this[Xa("0x39")][Xa("0xa1")]((t=>{t[Xa("0x41")](n,{range:e})}))}[Xa("0x4")](t){const e=t.id,n=this[Xa("0xb3")].config[Xa("0x51")](Xa("0x12b"));this[Xa("0xe7")][Xa("0xe4")](e)||this._commentsRepository[Xa("0xd6")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xe7")][Xa("0x78")](e);o[Xa("0xc7")](Xa("0x73")),o[Xa("0x73")]=!1,t.commentThread=o}[Xa("0xb9")](t,n,o,s){if(t[Xa("0x1a")]!=n||t[Xa("0x4f")]!=o||t[Xa("0x66")].id!=s)throw this[Xa("0xb3")][Xa("0x34")](Xa("0x40")),new e.CKEditorError(Xa("0x40"),this)}[Xa("0x7e")](t,n){const o=t[Xa("0x20")]();if(n[Xa("0xe0")](o))t[Xa("0x19")]();else if(o[Xa("0x119")](n)){const s=this[Xa("0x39")][Xa("0x94")](n[Xa("0xa8")].nodeBefore,Xa("0x50"));this[Xa("0x122")](t,this[Xa("0x39")].createRange(o.start,s));const r=(0,e.uid)(),i=t[Xa("0x66")].id,x=t[Xa("0x1a")]+":"+t[Xa("0x4f")];this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x39")].createPositionAt(n[Xa("0x50")][Xa("0x103")],"after"),c=this[Xa("0x39")][Xa("0xda")](a,o[Xa("0x50")]);this[Xa("0xb4")](x,r,i,c)}else if(o.containsPosition(n.start)){const e=this[Xa("0x39")].createPositionAt(n[Xa("0xa8")][Xa("0x85")],"end");this[Xa("0x122")](t,this[Xa("0x39")][Xa("0xda")](o.start,e))}else{const e=this._model.createPositionAt(n[Xa("0x50")][Xa("0x103")],Xa("0x65"));this._setSuggestionRange(t,this[Xa("0x39")][Xa("0xda")](e,o.end))}}[Xa("0x5f")](t){for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n[Xa("0x63")])continue;const o=e[Xa("0x1f")]();for(const e of o)if(!t[Xa("0x32")](e).length)return!0}return!1}[Xa("0x52")](t){const n=this[Xa("0xb3")].plugins[Xa("0x51")]("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xc0")](t){const e=this[Xa("0xb3")].plugins[Xa("0x51")](Xa("0x1d")),n=(0,r.hashObject)(Xa("0xdb")+t);return e[Xa("0x127")](n)||e[Xa("0x1b")]({id:n,name:t})}[Xa("0xef")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Xa("0xaf")][Xa("0xf7")](t,e,n,r,s,(t=>this[Xa("0x42")](n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[Xa("0x42")](n,{state:Xa("0x1c")})}),{priority:"high"}),this[Xa("0x113")](i,Xa("0xd3"),(()=>{this[Xa("0x42")](n,{state:Xa("0x12f")})}),{priority:Xa("0x101")}),this[Xa("0x128")][Xa("0xbd")](n,i),this[Xa("0x58")][Xa("0xbd")](i,Xa("0x64")),i}[Xa("0x11a")](t){const e=t[Xa("0x9a")](":");return{group:e[0],type:e[1],subType:e[Xa("0xec")]>=5?e[2]:null,id:e[Xa("0xec")]<5?e[2]:e[3],authorId:e[Xa("0xec")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xa("0x10")](t,n,o){const s=t[Xa("0x20")](),r=s[Xa("0xa8")],i=s[Xa("0x50")];this[Xa("0x122")](t,this[Xa("0x39")].createRange(r,n));const x=(0,e.uid)(),a=t[Xa("0x66")].id,c=t[Xa("0x1a")]+(t.subType?":"+t[Xa("0x4f")]:"");this[Xa("0x2c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x9f")],data:t.data}),"formatBlock"==t.type&&(o=this[Xa("0x39")][Xa("0xb6")](o.parent)),this[Xa("0xb4")](c,x,a,this._model[Xa("0xda")](o,i))}[Xa("0x77")](t,e=null){const n=[],o=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;Array[Xa("0x5b")](t)||(t=[t]);for(const s of this[Xa("0x84")]()){if(!s[Xa("0x53")])continue;if(e&&s[Xa("0x1a")]!=e)continue;let r=!1;for(const e of s[Xa("0x1f")]()){for(const i of t){const t=i[Xa("0xa8")][Xa("0xe0")](e[Xa("0x50")])||i[Xa("0x50")][Xa("0xe0")](e.start);if(t||i[Xa("0x3a")](e)){const x=i[Xa("0x119")](e)&&Qa(this[Xa("0x39")][Xa("0x98")],e[Xa("0xa8")],i),a=e[Xa("0x119")](i)&&Qa(this._model[Xa("0x98")],i[Xa("0xa8")],e);n[Xa("0x123")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x39")].change((r=>{let i=Xa("0x7f")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x93")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x8d")](t){const e=t[Xa("0x13b")],n=t.next;t[Xa("0x13b")]=null,null!=e&&(e[Xa("0x8b")]=null),t.next=null,null!=n&&(n.previous=null),Xa("0x110")==this._suggestionState.get(t)&&(this[Xa("0x58")][Xa("0xbd")](t,Xa("0x55")),this.fire(Xa("0x4e"),t,e,n))}[Xa("0x2c")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]){const s=this[Xa("0xb3")][Xa("0xe1")].get(Xa("0x7a")),r=o[Xa("0x115")],i=o[Xa("0x4f")]?o[Xa("0x1a")]+":"+o.subType:o[Xa("0x1a")],x=this[Xa("0xb3")][Xa("0x26")],a=s[Xa("0x1")](Yo(x,Xa("0x23"))),c={id:n,type:i,hasComments:r,data:t[Xa("0x6a")]||null,originalSuggestionId:t[Xa("0x129")]||null,attributes:o[Xa("0x9f")]};this[Xa("0x126")][Xa("0xc5")](c)[Xa("0x4a")]((t=>{o[Xa("0x36")]=!0,s[Xa("0xbe")](a),t&&t[Xa("0xdd")]&&(this._suggestions[Xa("0x51")](n)[Xa("0xdd")]=t[Xa("0xdd")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0xb3")].model.enqueueChange({isUndoable:!1},(()=>{o[Xa("0xd3")]()})),o[Xa("0x12d")](),this[Xa("0x128")][Xa("0x91")](o.id),this[Xa("0x58")].delete(o),t}))}return o}[Xa("0x42")](t,e){const n=this.editor[Xa("0xe1")][Xa("0x51")]("PendingActions"),o=this[Xa("0x70")](t);if(this[Xa("0x126")]&&this[Xa("0x126")].updateSuggestion)if(o[Xa("0x36")]){const o=n.add(Yo(this.editor[Xa("0x26")],Xa("0x23")));this._adapter[Xa("0x82")](t,e).then((()=>{n[Xa("0xbe")](o)}))}else o.on("change:_saved",(()=>{this[Xa("0x42")](t,e)}))}[Xa("0xa6")](t){if(!this._adapter||!this[Xa("0x126")][Xa("0x70")])throw new e.CKEditorError(Xa("0xa5"),this);return this[Xa("0x126")][Xa("0x70")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x11a")](t),r=this[Xa("0x128")][Xa("0x51")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState.get(r)){case"notReady":this[Xa("0xa6")](e)[Xa("0x4a")]((t=>{let n=Promise[Xa("0xe6")]();t.hasComments&&(n=this[Xa("0xe7")][Xa("0xc2")]({channelId:this.editor[Xa("0xa0")][Xa("0x51")](Xa("0x12b")),threadId:e})),n[Xa("0x4a")]((()=>{this[Xa("0x118")](t)[Xa("0x36")]=!0}))})),this[Xa("0x58")][Xa("0xbd")](r,Xa("0xd1"));break;case Xa("0x55"):this._updateSuggestionData(e,{state:Xa("0x6d")});case Xa("0xdf"):this[Xa("0x58")][Xa("0xbd")](r,Xa("0x110")),this[Xa("0x4c")](Xa("0x12a"),r);break;case Xa("0x110"):this.fire("suggestionChanged",r)}return r.addMarkerName(t),r}[Xa("0x6c")](t){const e=Array[Xa("0x72")](t)[Xa("0x121")]((t=>!t[Xa("0x104")])),n=this.getSuggestions({skipNotAttached:!0})[Xa("0x121")]((t=>!t.isMultiRange)),o=n.filter((e=>!t.has(e))),s=new Map(n.map((t=>[t,this[Xa("0xaf")][Xa("0x68")](t[Xa("0x1a")],t[Xa("0x4f")],Xa("0xb7"))]))),r=new Map(n.map((t=>[t,t[Xa("0x20")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0xec")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xec")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xec")];t++){const n=e[t];!x[Xa("0x8a")](n)&&n.previous&&(n[Xa("0x13b")][Xa("0x8b")]===n&&(n[Xa("0x13b")][Xa("0x8b")]=null),n[Xa("0x13b")]=null),!i[Xa("0x8a")](n)&&n[Xa("0x8b")]&&(n[Xa("0x8b")][Xa("0x13b")]===n&&(n[Xa("0x8b")].previous=null),n[Xa("0x8b")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xec")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0x8b")]=n[1],n[1][Xa("0x13b")]=n[0],i.add(n[0]),x[Xa("0x1")](n[1]))}}function c(t,e){if(t[Xa("0x2f")].id!==e.author.id)return null;const n=s[Xa("0x51")](t)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e));return n&&s[Xa("0x51")](e)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e))?n[1][Xa("0x12e")]&&n[1][Xa("0x12e")][Xa("0xec")]?null:n:null}}[Xa("0xea")](t){const e=Array[Xa("0x72")](t),n=this[Xa("0x84")]({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x8a")](e))),s=new Map(e[Xa("0x138")]((t=>[t,this[Xa("0xaf")][Xa("0x68")](t.type,t[Xa("0x4f")],Xa("0xe9"))]))),r=new Map(n[Xa("0x138")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Xa("0xec")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xec")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xa("0xec")];i++){const o=n[i];if(o[Xa("0x1a")]!==e[Xa("0x1a")]||o[Xa("0x2f")].id!==e[Xa("0x2f")].id||o[Xa("0x4f")]!==e[Xa("0x4f")])continue;if(!sc(e,o))continue;const x=s[Xa("0x51")](e),a=r.get(e),c=r.get(o),l=e[Xa("0x12e")]&&e.commentThread[Xa("0xec")],d=o.commentThread&&o[Xa("0x12e")][Xa("0xec")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Xa("0x91")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[Xa("0x91")](o),!0}return!1}}[Xa("0x56")](t,e){if(t.isMultiRange)for(const n of e[Xa("0x1f")]())t[Xa("0xf2")](n);else{const n=e[Xa("0x20")]().end;this[Xa("0x122")](t,this[Xa("0x39")].createRange(t[Xa("0x20")]()[Xa("0xa8")],n))}e.removeMarkers()}}class Ja{constructor(t){this[Xa("0xac")]=t,this[Xa("0x39")]=t[Xa("0xfb")],this[Xa("0x13d")]=new Map,this._defaultCallbacks=new Map,this[Xa("0x22")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Xa("0x39")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x68")](t,e,"accept")(...n),onDiscard:(...n)=>this[Xa("0x68")](t,e,Xa("0xd3"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x13d")][Xa("0xbd")](s,o)}[Xa("0x68")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x13d")].get(o)||this[Xa("0x3")].get(t+":"+n)}[Xa("0x22")](){const t=()=>!1,e=t=>{t[Xa("0xab")](((t,e)=>t[Xa("0xa8")].isBefore(e[Xa("0xa8")])?1:-1)),this[Xa("0x39")][Xa("0xa1")]((e=>{for(const n of t){let t;t=n[Xa("0x50")][Xa("0x131")]&&n[Xa("0x50")].parent==n[Xa("0xa8")].nodeAfter?e[Xa("0xf0")](n[Xa("0xa8")][Xa("0x5a")],"on"):e[Xa("0xf0")](n),this[Xa("0x39")][Xa("0x2e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x39")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Za(t)&&(t=this[Xa("0x39")][Xa("0xda")](t[Xa("0x50")])),t)))[Xa("0x121")]((t=>Xa("0xa9")!==t.root[Xa("0xfe")]));if(r[Xa("0xec")]<1)return;const x=Array[Xa("0x72")](this[Xa("0x39")].document[Xa("0x4b")][Xa("0x1f")]()).map((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this._editor[Xa("0x24")][Xa("0x24")]())t[Xa("0xb2")]();s.push({forceDefaultExecution:!0}),this[Xa("0xac")][Xa("0x116")](o,...s);const a=x[Xa("0x121")]((t=>Xa("0xa9")!=t.root[Xa("0xfe")]));a[Xa("0xec")]>0&&n[Xa("0x5c")](a);for(const t of x)t[Xa("0x10c")]()}))},o=(t,e)=>1==t[Xa("0xec")]&&1==e.length&&t[0][Xa("0x50")][Xa("0xe0")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x39")])?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this[Xa("0x3")][Xa("0xbd")](Xa("0x8f"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0x3f"),e),this[Xa("0x3")][Xa("0xbd")]("insertion:join",o),this[Xa("0x3")].set(Xa("0x75"),s),this[Xa("0x3")][Xa("0xbd")](Xa("0x111"),e),this[Xa("0x3")][Xa("0xbd")](Xa("0x83"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0xc"),o),this[Xa("0x3")].set(Xa("0x117"),s),this._defaultCallbacks.set(Xa("0x100"),n),this[Xa("0x3")][Xa("0xbd")]("formatInline:discard",t),this._defaultCallbacks.set(Xa("0xce"),o),this[Xa("0x3")][Xa("0xbd")](Xa("0x10e"),t),this[Xa("0x3")].set(Xa("0x9e"),n),this[Xa("0x3")][Xa("0xbd")](Xa("0xaa"),t),this._defaultCallbacks[Xa("0xbd")]("formatBlock:join",o),this[Xa("0x3")][Xa("0xbd")](Xa("0xeb"),t)}}function Qa(t,e,n){for(const o of e.parent[Xa("0x48")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x71")]==o)return!1;if(!n[Xa("0x106")](o))return!1;if(t[Xa("0x7d")](o)||t[Xa("0x5")](o))return!0}return!1}function Za(t){return t[Xa("0x50")][Xa("0x103")]==t[Xa("0xa8")][Xa("0x5a")]&&t[Xa("0x50")][Xa("0xd2")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0xff")].is(Xa("0xa"))&&!o[Xa("0x7d")](t[Xa("0xff")]),r=t.start.getLastMatchingPosition(s),i=t[Xa("0x50")].getLastMatchingPosition(s,{direction:Xa("0x37")});return!(t[Xa("0xa8")][Xa("0xe0")](r)&&t[Xa("0x50")][Xa("0xe0")](i)||(r[Xa("0x10b")](i)?n[Xa("0x41")](e,{range:n.createRange(r,i)}):n[Xa("0x130")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xa("0x5a")];return e&&e.is(Xa("0x10a"))}function nc(t,e){const n=e[Xa("0x98")][Xa("0x7d")](t)||e[Xa("0x98")][Xa("0xde")](t);return e[Xa("0xda")](e[Xa("0x94")](t,Xa("0x2a")),n?e.createPositionAfter(t):e[Xa("0x94")](t,Xa("0x50")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x50")].isEqual(o[Xa("0xa8")]))return!0;if(t.type!=e.type)return!1;if(!n[Xa("0x50")].isTouching(o.start))return!1;const r=s.createRange(n[Xa("0x50")],o[Xa("0xa8")]).getWalker();for(const t of r)if([Xa("0xa2"),Xa("0x88")][Xa("0x16")](t[Xa("0x1a")])&&s[Xa("0x98")].isLimit(t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x3c")]||!e._isDataLoaded)&&Go(t[Xa("0x9f")],e[Xa("0x9f")])}function rc(t,e){const n=ic(t[Xa("0x9f")]),o=ic(e);if(!t[Xa("0x3c")])return!1;for(const t of Object[Xa("0x46")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x13")]({},t);return delete e[Xa("0x3d")],delete e[Xa("0xcf")],e}const xc=["PENDING_ACTION_SUGGESTION","change:isDirty","canAccept","listenTo","unbind","isDirty","commands","execute","_pendingAction","view","_setPendingAction","bind","PendingActions","getRanges","canDiscard","_removePendingAction","add","isEnabled","stopListening","plugins","commentThreadController","canEditAt","discardSuggestion","_acceptCommand","get","model","_editor","_discardCommand","acceptSuggestion"];var ac,cc;ac=xc,cc=493,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[lc("0x14")]=o,this._editor=t,this[lc("0x17")]=t[lc("0x6")][lc("0x18")](lc("0x1c")),this._discardCommand=t.commands[lc("0x18")]("discardSuggestion"),this[lc("0x9")][lc("0xb")](lc("0x11")).to(this[lc("0x17")],this[lc("0x1b")],((t,e)=>t||e)),this[lc("0x9")][lc("0xb")]("canAccept").to(this[lc("0x17")],lc("0x11"),(t=>t&&this._editor.model[lc("0x15")](e[lc("0xd")]()))),this[lc("0x9")][lc("0xb")]("canDiscard").to(this[lc("0x1b")],"isEnabled",(t=>t&&this._editor.model[lc("0x15")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xa")](),this[lc("0x3")](n,lc("0x1c"),(()=>this[lc("0x1c")]())),this.listenTo(n,lc("0x16"),(()=>this.discardSuggestion())),this[lc("0x3")](n,lc("0x1"),(()=>{n[lc("0x5")]?this._setPendingAction():this._removePendingAction()}))}[lc("0x1c")](){this[lc("0x17")][lc("0x7")](this[lc("0x19")].id)}[lc("0x16")](){this[lc("0x1b")][lc("0x7")](this[lc("0x19")].id)}destroy(){this.view.unbind("isEnabled"),this[lc("0x9")].unbind(lc("0x2")),this[lc("0x9")][lc("0x4")](lc("0xe")),this[lc("0x12")](),this[lc("0x14")].destroy(),this[lc("0x8")]&&this[lc("0xf")]()}[lc("0xa")](){const t=Yo(this[lc("0x1a")].locale,lc("0x0"));this[lc("0x8")]=this[lc("0x1a")][lc("0x13")][lc("0x18")](lc("0xc"))[lc("0x10")](t)}[lc("0xf")](){null!==this._pendingAction&&this[lc("0x1a")].plugins[lc("0x18")]("PendingActions").remove(this[lc("0x8")]),this[lc("0x8")]=null}}const uc=["bind","assign","_createCommentThreadInputView","_model","showInput","_config","canDiscard","locale","disabledSubmit","_localUser","submit","removeComment","disableComments","descriptionParts","isReadOnly","set","commentsListView","CommentView","addComment","commentThreadInputView","isDirty","length","commentThread","hasDirtyComment","_createCommentViews","isActive","editorConfig","destroy","delegate","commentInputView","value","cancel","focus"];var gc,mc;gc=uc,mc=320,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x1a")]=null,this.commentThreadInputView=null,this[fc("0x19")](fc("0x2"),!1),this.set("authoredAt",e.authoredAt),this.bind("authoredAt").to(e),this[fc("0x19")](fc("0x17"),[]),this.set("isDirty",!1),this[fc("0x19")]("isEnabled",!1),this[fc("0x19")]("canAccept",!1),this[fc("0x19")](fc("0x10"),!1),this[fc("0xd")]=e,this[fc("0x13")]=n,this[fc("0xf")]=o,o[fc("0x16")]?this[fc("0x19")](fc("0x1f"),1):this[fc("0x1")]()}[fc("0x9")](){this.element[fc("0x9")]()}[fc("0x4")](){this[fc("0x1a")]&&this[fc("0x1a")][fc("0x4")](),this[fc("0x1d")]&&this[fc("0x1d")][fc("0x4")](),super[fc("0x4")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0xf")];this[fc("0x1a")]=new t(this[fc("0x11")],this._model[fc("0x20")],Object[fc("0xb")]({CommentView:this[fc("0xf")][fc("0x1b")]},this._config)),this.commentsListView[fc("0x5")]("removeComment").to(this),this.commentsListView.delegate("updateComment").to(this),this[fc("0x1a")][fc("0xa")](fc("0x2")).to(this),this.set("length",this.commentsListView[fc("0x1f")]+1),this[fc("0xa")]("length").to(this[fc("0x1a")],fc("0x1f"),(t=>t+1)),this[fc("0x1d")]=this[fc("0xc")](),this.on(fc("0x15"),(()=>this[fc("0x9")]())),this[fc("0xa")](fc("0x1e")).to(this[fc("0x1a")],fc("0x0"),this.commentThreadInputView[fc("0x6")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[fc("0x13")],this[fc("0xf")][fc("0x3")]),n=e[fc("0x6")];return e[fc("0xa")](fc("0xe")).to(this,fc("0x2"),this[fc("0xd")][fc("0x20")],fc("0x18"),n,fc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x14"),((t,e)=>{this.fire(fc("0x1c"),e),n.editor.setData("")})),n.on(fc("0x8"),(()=>this.focus())),n[fc("0xa")](fc("0x12")).to(this._model[fc("0x20")],fc("0x18")),e}}const pc=["ck-comment__info-time","EXTERNAL_SUGGESTION","</span>","discardButton","@external","ck-suggestion__main","isEnabled",'<span class="ck-suggestion-type">',"ck-suggestion__actions","userView","disableComments","description","commentsListView","render","getTemplate","join","canAccept","bind","commentThreadInputView","attributes","author","createElement","ck-suggestion","ck-suggestion__info","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"div","time","_config","source","innerText","importWord","discardSuggestion","ck-annotation__info","creator","authoredAt","isExternal",".ck-annotation__content-wrapper","ck-suggestion__user","acceptSuggestion","title","ck-comment__external","type","push","querySelector","ck-annotation__main","canDiscard","ck-suggestion--discard","getUserViewNotificationText","ck-annotation","span","name","map","ck-annotation__info-time","<p>","descriptionParts","element",'" title="',"locale","split","setTemplate",'"></span>',"Discard suggestion","ck-suggestion__info-name","change:description","isActive","content","innerHTML","editorReady","Accept suggestion","acceptButton","ck-suggestion--disabled-comments","delegate","EXTERNAL_AVATAR","formatDateTime","value","editorDestroyed","ck-annotation__content-wrapper","check","_descriptionElement","extendTemplate","_model"];var bc,Ec;bc=pc,Ec=214,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this.set("type",""),this.bind(_c("0x4a")).to(this,_c("0x5"),(t=>t&&t[0]?t[0][_c("0x4a")]:"")),this[_c("0x31")](_c("0x2b")).to(this,_c("0x5"),this,_c("0xf"),((t,e)=>{let n="";for(const e of t)n+=_c("0x4")+Cc(e[_c("0x10")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x1d")]=null,this.acceptButton=this[_c("0x38")](Yo(e,_c("0x13")),t.icons[_c("0x1c")],"ck-suggestion--accept",_c("0x47"),"sw"),this.acceptButton[_c("0x31")](_c("0x26")).to(this,_c("0x30")),this[_c("0x23")]=this[_c("0x38")](Yo(e,_c("0xc")),t.icons.cancel,_c("0x4f"),_c("0x40"),"sw"),this[_c("0x23")][_c("0x31")](_c("0x26")).to(this,_c("0x4e")),this[_c("0x29")]=new r.UserView(e,this[_c("0x1f")].author,this[_c("0x50")]()),this[_c("0x29")][_c("0x1e")]({attributes:{class:[_c("0x46"),"ck-annotation__user"]}}),this[_c("0xa")](this[_c("0x2e")]())}[_c("0x2e")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[_c("0x37"),_c("0x41")]},children:[{tag:_c("0x0"),children:[{text:this[_c("0x29")][_c("0x1")]}],attributes:{class:[_c("0xd"),"ck-annotation__info-name"]}},{tag:_c("0x3b"),attributes:{datetime:t.to(_c("0x43")),class:[_c("0x20"),_c("0x3")]},children:[{text:t.to(_c("0x43"),(t=>this[_c("0x3c")][_c("0x18")](t)))}]}]},{tag:_c("0x3a"),attributes:{class:[_c("0x28"),"ck-annotation__actions"]},children:[this[_c("0x14")],this.discardButton]},{tag:_c("0x3a"),attributes:{class:[_c("0x1b")]}}];this._model[_c("0x44")]&&e[_c("0x4b")]({tag:"div",attributes:{class:[_c("0x49")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x3a"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0xf"),"ck-suggestion-wrapper--active"),t.to(_c("0x4a"),(t=>"ck-suggestion-"+t)),this._config[_c("0x2a")]&&_c("0x15")],"data-suggestion-id":this[_c("0x1f")].id,"data-thread-id":this[_c("0x1f")].commentThread.id,"data-author-id":this._model[_c("0x34")].id,tabindex:-1},children:[{tag:_c("0x3a"),attributes:{class:[_c("0x36"),_c("0x51")]},children:[this.userView,{tag:"div",attributes:{class:[_c("0x25"),_c("0x4d")]},children:e}]}]};return this[_c("0x2c")]&&this.commentThreadInputView&&(n.children[_c("0x4b")](this[_c("0x2c")],this[_c("0x32")]),this[_c("0x2c")].delegate(_c("0x12")).to(this),this[_c("0x2c")][_c("0x16")](_c("0x1a")).to(this),this.commentThreadInputView.delegate(_c("0x12")).to(this),this[_c("0x32")].delegate(_c("0x1a")).to(this)),n}[_c("0x2d")](){super[_c("0x2d")](),this[_c("0x1d")]=this[_c("0x6")][_c("0x4c")](_c("0x45")),this[_c("0x1d")][_c("0x11")]=this[_c("0x2b")],this.on(_c("0xe"),((t,e,n)=>{this._descriptionElement[_c("0x11")]=n}))}[_c("0x38")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x8")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[_c("0x1f")].id)})),i}getExternalSuggestionNote(){return _c("0x3f")===this[_c("0x1f")][_c("0x33")][_c("0x24")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0x8")],_c("0x21"))}[_c("0x50")](){return this[_c("0x1f")][_c("0x44")]?_c("0x3f")===this[_c("0x1f")].attributes[_c("0x24")][_c("0x3d")]?Yo(this[_c("0x8")],"EXTERNAL_IMPORT_WORD_AVATAR",this[_c("0x1f")][_c("0x42")].name):Yo(this[_c("0x8")],_c("0x17"),this[_c("0x1f")][_c("0x42")][_c("0x1")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x9")]("*")[_c("0x2")](((t,e)=>e%2!=0?_c("0x27")+yc(t)+_c("0x22"):yc(t)))[_c("0x2f")](""),e&&(n+=_c("0x39")+e[_c("0x19")]+_c("0x7")+e[_c("0x48")]+_c("0xb")),n}function yc(t){const e=document[_c("0x35")]("span");return e[_c("0x3e")]=t,e[_c("0x11")]}const kc=["trackChanges","get","CommentsUI","getDescriptions","commandName","getMarkerNames","change:activeAnnotations","acceptSelectedSuggestions","reduce","getRanges","focus","Track changes","_disableComments","trackChanges.SuggestionThreadView","commentThread","isDirty","createCommentThreadController","push","pluginName","suggestion-","addComment","bind","descriptionParts","comments.maxThreadTotalWeight","execute","innerView","isEnabled","unbind","clear","activeMarkers","button","previous","SuggestionThreadView","length","from","arrowView","Discard all suggestions","suggestionChanged","getMarkers","getAllAdjacentSuggestions","locale","switchbutton","comments","comments.maxCommentCharsWhenCollapsed","refreshSelectedViews","createAnnotationView","createAnnotation","suggestionLoaded","commands","_destroyController","getSuggestion","_initializeController","delete","lowest","init","_handleControllerBuffer","_createUIButton","acceptAllSuggestions","map","define","change:previous","editing","keys","_viewToController","set","getJoined","_descriptionFactory","type","remove","_handleSuggestionControllerDelayed","filter","model","plugins","add","EditorAnnotations","mainView","_updateController","_unbindEditors","CommentView","editor","TrackChangesUI","hasSuggestion","isOn","Accept all selected suggestions","_suggestionToController","toMany","listenTo","_annotationViews","values","componentFactory","getFirstRange","trackChanges.disableComments","_refreshActiveMarkers","Annotations","getByInnerView","Accept all suggestions","buttonView","destroy","Discard all selected suggestions","isInContent","view","TrackChangesEditing","CommentsRepository","has","discardButton","head","acceptButton","actionView"];var Ac,vc;Ac=kc,vc=148,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get requires(){return[$a,r.Users,Rc("0x3e"),"Annotations",Rc("0x22")]}static get[Rc("0x56")](){return Rc("0x28")}constructor(t){super(t),this[Rc("0x2c")]=new Map,this[Rc("0x17")]=new Map,this[Rc("0x2f")]=new Map,this[Rc("0xf")]=new Map;const e=this[Rc("0x27")].config;e[Rc("0x13")](Rc("0x51"),Tc),e[Rc("0x13")](Rc("0x33"),!1),this[Rc("0x50")]=e[Rc("0x45")](Rc("0x33"))}[Rc("0x1d")](t,e){0===this[Rc("0xf")].size&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x2c")][Rc("0x3f")](t);n||e?n&&e&&this[Rc("0x9")](t):this[Rc("0xb")](t)}this.editor[Rc("0x20")][Rc("0x45")](Rc("0x22"))[Rc("0x4")](),this[Rc("0x34")](),this._handleControllerBuffer[Rc("0x60")]()}),10),this[Rc("0xf")].set(t,e)}[Rc("0xe")](){const t=this[Rc("0x27")],e=t[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=t[Rc("0x20")][Rc("0x45")]("Annotations"),o=t[Rc("0x20")][Rc("0x45")]("EditorAnnotations"),s=t[Rc("0x20")][Rc("0x45")](Rc("0x3e"));t.ui[Rc("0x31")][Rc("0x21")]("trackChanges",(t=>this[Rc("0x10")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Rc("0x66")](this[Rc("0x2c")])){const o=e[Rc("0x6b")](),s=[];for(const t of o){if(!t[Rc("0x3b")])continue;if(t.isMultiRange){s.push(...t[Rc("0x4d")]());continue}const e=t[Rc("0x32")]();if(s[Rc("0x65")]>0){const t=s[0][Rc("0x19")](e);if(t){s[0]=t;continue}}s[Rc("0x55")](e)}t[Rc("0x55")]([n.view,s])}return t})),this[Rc("0x2e")](e,Rc("0x7"),((t,e)=>{this[Rc("0x2e")](e,Rc("0x14"),((t,n,o,s)=>{e[Rc("0x3b")]&&(null==o?(this[Rc("0x24")](s.head),this[Rc("0x1d")](e,!1)):(this[Rc("0x24")](o[Rc("0x41")]),this[Rc("0x1d")](e,!0)))})),null===e[Rc("0x63")]?this[Rc("0x1d")](e,!1):this[Rc("0x24")](e[Rc("0x41")])})),this[Rc("0x2e")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Rc("0x14")),this[Rc("0xf")][Rc("0xc")](e);const o=n?n[Rc("0x41")]:e,s=this._suggestionToController.get(o);null!==n&&this[Rc("0x24")](o),null===n&&s&&this[Rc("0x9")](e)})),this[Rc("0x2e")](e,Rc("0x69"),((t,e)=>{this[Rc("0x24")](e)})),this.listenTo(n,Rc("0x4a"),(()=>{this[Rc("0x34")]()})),this[Rc("0x2e")](s,Rc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x29")](n))return;const s=e[Rc("0xa")](n);this[Rc("0x2c")][Rc("0x45")](s)[Rc("0x3c")][Rc("0x4e")]()}),{priority:Rc("0xd")})}[Rc("0x34")](){const t=this[Rc("0x27")][Rc("0x20")][Rc("0x45")]("Annotations"),e=this.editor[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=Array.from(t.activeAnnotations,(t=>t[Rc("0x5d")])).filter((t=>this[Rc("0x17")][Rc("0x3f")](t))),o=[];for(const t of n){const e=this[Rc("0x17")][Rc("0x45")](t)[Rc("0x1f")].getAllAdjacentSuggestions();o[Rc("0x55")](...e[Rc("0x4c")](((t,e)=>[...t,...e[Rc("0x49")]()]),[]))}e[Rc("0x61")]=o}[Rc("0x10")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x27")][Rc("0x8")].get(Rc("0x44")),r=Yo(t,Rc("0x4f"));n[Rc("0x38")].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-2023, 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[Rc("0x38")][Rc("0x59")](Rc("0x2a")).to(o,"value"),n.buttonView.on(Rc("0x5c"),(()=>{o[Rc("0x5c")](),this.editor[Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()}));const i=new e.Collection,x=[{type:Rc("0x1"),model:{withText:!0,label:r,commandName:Rc("0x44")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:Rc("0x11")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0x4b")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x68")),commandName:"discardAllSuggestions"}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x3a")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x1f")]){const n=new s.Model(t[Rc("0x1f")]),o=this[Rc("0x27")].commands[Rc("0x45")](n[Rc("0x48")]);n.bind(Rc("0x2a"),Rc("0x5e")).to(o,"value",Rc("0x5e")),e={type:t[Rc("0x1b")],model:n}}i[Rc("0x21")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x1e")]((t=>null!=t.model))[Rc("0x12")]((t=>this[Rc("0x27")][Rc("0x8")][Rc("0x45")](t.model[Rc("0x48")]))),c=n[Rc("0x38")];return c[Rc("0x43")][Rc("0x5f")](Rc("0x5e")),c[Rc("0x67")].unbind(Rc("0x5e")),c[Rc("0x43")][Rc("0x59")]("isEnabled").to(o,"isEnabled"),c[Rc("0x67")][Rc("0x59")](Rc("0x5e"))[Rc("0x2d")](a,Rc("0x5e"),((...t)=>t.some((t=>t)))),n.on(Rc("0x5c"),(t=>{this.editor[Rc("0x5c")](t.source[Rc("0x48")]),this[Rc("0x27")][Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()})),n}[Rc("0xb")](t){const e=this[Rc("0x27")],n=e.config,o=e[Rc("0x20")][Rc("0x45")](Rc("0x35")),s=e[Rc("0x20")].get(Rc("0x3e")),i=e.plugins.get(Rc("0x22")),x=e[Rc("0x20")][Rc("0x45")](r.Users).me,a=n[Rc("0x45")](Rc("0x44"))[Rc("0x64")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x20")][Rc("0x45")](Rc("0x46"));let d,u;this[Rc("0x2f")][Rc("0x3f")](t.id)?(u=this[Rc("0x2f")][Rc("0x45")](t.id),d=u[Rc("0x23")]):(d=new a(e[Rc("0x0")],t,x,{disableComments:this[Rc("0x50")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x45")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x45")](Rc("0x5b")),maxCommentCharsWhenCollapsed:n.get(Rc("0x3")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Rc("0x0"))),CommentView:n.get(Rc("0x2"))[Rc("0x26")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x42")].on(Rc("0x5c"),(()=>{e[Rc("0x15")].view[Rc("0x4e")]()})),d[Rc("0x40")].on(Rc("0x5c"),(()=>{e.editing[Rc("0x3c")][Rc("0x4e")]()})),u=o[Rc("0x5")](this[Rc("0x27")][Rc("0x0")],d),u.bind(Rc("0x53")).to(d,Rc("0x53")),u[Rc("0x59")](Rc("0x65")).to(d),u.bind(Rc("0x1b")).to(d,"type",(t=>Rc("0x57")+t)),this[Rc("0x2f")][Rc("0x18")](t.id,u));const g=s[Rc("0x54")](t[Rc("0x52")],d),m=new dc(e,t,d,g),f=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t[Rc("0x3b")]));d[Rc("0x5a")]=e.plugins.get(Rc("0x3d"))._descriptionFactory[Rc("0x47")](f),this[Rc("0x2c")].set(t,m),this[Rc("0x17")].set(d,m);const h=o[Rc("0x6")]({view:u,target:()=>{const n=[],o=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t.isInContent));for(const t of o)n.push(...t[Rc("0x6a")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Rc("0x57")+m[Rc("0x3c")][Rc("0x1b")]});s._bindAnnotationToEditors(d,h),o[Rc("0x21")](h),i.registerAnnotation(h)}[Rc("0x9")](t){const e=this.editor.plugins[Rc("0x45")](Rc("0x3e")),n=this.editor.plugins[Rc("0x45")](Rc("0x35")),o=this._suggestionToController[Rc("0x45")](t),s=o[Rc("0x3c")],r=n[Rc("0x36")](s);e[Rc("0x25")](s),r&&n[Rc("0x1c")](r),this[Rc("0x2c")].delete(t),this[Rc("0x17")][Rc("0xc")](s),o[Rc("0x39")]()}[Rc("0x24")](t){if(!t[Rc("0x3b")]||!this[Rc("0x2c")][Rc("0x3f")](t))return;const e=this.editor[Rc("0x20")][Rc("0x45")]("TrackChangesEditing"),n=this[Rc("0x2c")].get(t),o=t.getAllAdjacentSuggestions();n[Rc("0x3c")][Rc("0x5a")]=e[Rc("0x1a")][Rc("0x47")](o)}[Rc("0x39")](){for(const t of this[Rc("0x2c")][Rc("0x16")]())this[Rc("0x9")](t);for(const t of this[Rc("0x2f")][Rc("0x30")]())t[Rc("0x23")].destroy();super[Rc("0x39")]()}}var Ic,Lc,Nc=["getSuggestion","pluginName","plugins","get","TrackChanges","adapter","getSuggestions","Comments","editor"];Ic=Nc,Lc=156,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Sc,wc("0x4")]}static get[wc("0x7")](){return wc("0x1")}set adapter(t){this[wc("0x5")][wc("0x8")].get($a)[wc("0x2")]=t}get adapter(){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x2")]}addSuggestion(t){return this[wc("0x5")][wc("0x8")][wc("0x0")]($a).addSuggestionData(t)}[wc("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x3")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x5")].plugins[wc("0x0")]($a)[wc("0x6")](t)}}const Oc=["addUser","rootsAttributes","name","getSuggestions","document","getDataWithDiscardedSuggestions","getRootsAttributes","requires","editorCreator","getDataWithAcceptedSuggestions","plugins","config","getFullData","set","_adapter","destroy","define","execute","constructor","editor","get","function","createDocumentFragment","Pagination","result","end","createElement","users","TrackChangesEditing","Users","pluginName","useAnonymousUser","init","discardAllSuggestions","getUser","create","trackChangesData","TrackChangesDataGetter","map","div","model","data"];var Fc,Pc;Fc=Oc,Pc=128,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x15")];class jc extends t.Plugin{static get[Dc("0x5")](){return[$a]}static get[Dc("0x1c")](){return"TrackChangesData"}init(){const t=this[Dc("0x11")];if(t[Dc("0x9")][Dc("0xe")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x10")][Dc("0x21")](n,e)})),Dc("0x13")!=typeof t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x7")](t){return Hc(this[Dc("0x11")],!0,t)}[Dc("0x3")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x23")}constructor(t){super(t),this[Dc("0x16")]=Dc("0x17")}[Dc("0x1e")](){this[Dc("0x11")][Dc("0x8")][Dc("0x12")]("CommentsRepository")[Dc("0xc")]={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[Dc("0x11")][Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0xc")]=null}}function Gc(t){return void 0!==t[Dc("0x4")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o.plugins.push($a,Uc),o[Dc("0x29")]=Gc(t)?t[Dc("0x4")]():void 0;const s=document[Dc("0x14")](),i=t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")],x=await i(o,(()=>function(t){const e=document[Dc("0x18")](Dc("0x25"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((e,n)=>(e[n]=t[Dc("0x27")][Dc("0x12")]({rootName:n}),e)),{}),o=t[Dc("0x8")][Dc("0x12")](Dc("0x1b"))[Dc("0x19")][Dc("0x24")]((t=>({id:t.id,name:t[Dc("0x0")]}))),s=t[Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0x1")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x8")][Dc("0x12")](Dc("0x1b")),i=e[Dc("0x8")][Dc("0x12")](Dc("0x1a"));for(const t of o)r[Dc("0x20")](t.id)||r[Dc("0x28")](t);r.me||r[Dc("0x1d")]();for(const t of s)i.addSuggestionData(t);e[Dc("0x27")][Dc("0xb")](n)}(t,x),x[Dc("0xf")](e?"acceptAllSuggestions":Dc("0x1f"));const a=Gc(x)?x[Dc("0xa")](n):x.data[Dc("0x12")](n);return await x[Dc("0xd")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["clearForceDisabled","has","isEnabled","forceDisabled","value","_enableCommands","editor","execute","_disableUnsupportedCommands","TrackChangesCommand","_enabledCommands","commands","affectsData","refresh"];var c,l;c=a,l=129,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this[u("0xa")](),this._isEnabledBasedOnSelection=!1}[u("0xa")](){this[u("0xd")]=!0}[u("0x4")](){this.value=!this.value,this[u("0x1")]?this[u("0x5")]():this[u("0x2")]()}[u("0x5")](){for(const t of this[u("0x3")][u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x7")][u("0xc")](t)&&t[u("0x0")](u("0x6"))}[u("0x2")](){for(const t of this.editor[u("0x8")][u("0x8")]())t[u("0x9")]&&!this[u("0x7")].has(t)&&t[u("0xb")](u("0x6"))}}const g=["_suggestions","model","refresh","acceptSuggestion","get","_isEnabledBasedOnSelection","TrackChangesEditing","canEditAt","editor","execute","isEnabled","getRanges"];var f,m;f=g,m=351,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0xb")](),this[h("0x2")]=!1}[h("0xb")](){this[h("0x7")]=!0}[h("0x6")](t){const n=this[h("0x9")][h("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0x5")][h("0xa")][h("0x4")](o)&&this[h("0x5")].plugins.get(h("0x3"))[h("0x0")](n)}}const b=["getRanges","track-changes-discard-suggestion-not-found","canEditAt","_suggestions","editor","get","refresh","plugins","_isEnabledBasedOnSelection","discardSuggestion"];var E,_;E=b,_=388,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("0x5")]=e,this[T("0x8")](),this[T("0x0")]=!1}[T("0x8")](){this.isEnabled=!0}execute(t){const n=this[T("0x5")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x2")]();this[T("0x6")].model[T("0x4")](o)&&this[T("0x6")][T("0x9")].get("TrackChangesEditing")[T("0x1")](n)}}const y=["end","map","execute","isCollapsed","getRanges","content","add","length","isIntersecting","change","createPositionAt","isTouching","createPositionAfter","isMultiRange","createPositionBefore","next","type","splice","schema","isInContent","start","deletion","isArray","createRange","color","sort","isObject"];var k,A;k=y,A=471,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xd")](((t,e)=>"deletion"==t[v("0x4")]&&"deletion"!=e[v("0x4")]?-1:v("0x9")!=t[v("0x4")]&&v("0x9")==e[v("0x4")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0x16")];){const i=t[o],x=t[o+1];n||(n=e[v("0x2")](i)),S(e,i,x)||(s.push(e[v("0xb")](n,r[v("0xe")](i)?e[v("0x0")](i):e[v("0x19")](i,v("0xf")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x0")](e),s=t[v("0x2")](n);return o[v("0x1a")](s)}function L(t,e,n){for(;n[v("0x16")];){const o=n[v("0x5")](0,100);t[v("0x18")]((()=>{for(const t of o)t[v("0x7")]&&e[v("0x11")](t.id)}))}}const N=["from","execute","isEnabled","getRanges","isInContent","_suggestions","_command","some","canEditAt","values","editor","refresh"];var w,M;w=N,M=299,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("0x7")]=e,this._suggestions=n,this[O("0x0")](),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x1")](this[O("0x6")][O("0xa")]())[O("0x8")]((t=>t[O("0x5")]));this[O("0x3")]=this[O("0x7")][O("0x3")]&&t}[O("0x2")](){const t=R(Array[O("0x1")](this[O("0x6")].values()));for(const e of t){const t=e[O("0x4")]();if(!this[O("0xb")].model[O("0x9")](t))return}L(this[O("0xb")].model,this._command,t)}}const P=["_suggestions","refresh","isEnabled","values","selection","from","document","execute","editor","_selectedSuggestions","_command","size","model"];var D,B;D=P,B=124,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("0x3")]=e,this[j("0x6")]=n,this[j("0x2")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0x1")][j("0x5")][j("0xc")][j("0xa")],e=Array[j("0xb")](this[j("0x6")][j("0x9")]());this[j("0x2")]=function(t,e){const n=Array.from(t[v("0x13")]()),o=new Set;for(const s of e)if(s[v("0x7")])for(const e of n)for(const n of s.getRanges())(e[v("0x17")](n)||t[v("0x12")]&&!s[v("0x1")]&&s[v("0x3")]&&n[v("0xf")][v("0x1a")](e[v("0x8")]))&&o[v("0x15")](s);return o}(t,e),this.isEnabled=this[j("0x3")][j("0x8")]&&!!this[j("0x2")][j("0x4")]}[j("0x0")](){const t=R(Array[j("0xb")](this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this.editor[j("0x5")].canEditAt(t))return}L(this[j("0x1")][j("0x5")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const 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 Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var 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)&&!mt(t)};const Ue=function(t){return je(t)?we(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(!ft(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)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const fn=Lt(ot,"Promise");const mn=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(fn),An=Tt(mn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?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(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var f=i.get(e);if(f)return f;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var m=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(m||e,(function(s,r){m&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(f===t||s(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!s(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=i?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||s(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Yt),s(m,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["toJSON","getRanges","_onAttributesChange","split","length","isIntersecting","addMarkerName","accept","removeMarker","@external","isInContent","getMultiRangeId","next","onAccept","substr","getAllAdjacentSuggestions","attributes","type","authoredAt","getFirstRange","previous","_saved","head","addMarker","push","creator","markers","_model","author","nodeBefore","reduce","suggestion:","decorate","delete","data","getFirstMarker","getMarkers","subType","start","getRange","discard","onAttributesChange","isIntersectingWithRange","_onAccept","commentThread","_markerNames","addRange","onDiscard","hasComments","_onDiscard","filter","getMarkerNames","createdAt","get","getItems","change","_isDataLoaded","set","from","removeMarkers","clear","map"];var $o,Jo;$o=Xo,Jo=118,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[Qo("0x0")]=!1,this.id=e.id,this[Qo("0x17")]=e[Qo("0x17")],this[Qo("0x2b")]=e[Qo("0x2b")]||null,this[Qo("0x22")]=e[Qo("0x22")],this.creator=e[Qo("0x1f")]||e[Qo("0x22")],this.isExternal=Boolean(e[Qo("0x16")]&&e[Qo("0x16")][Qo("0xf")]),this[Qo("0x28")]=null,this[Qo("0x21")]=t,this[Qo("0x31")]=e[Qo("0x13")],this[Qo("0x37")]=e[Qo("0x35")],this[Qo("0x8")]=e[Qo("0x2f")],this[Qo("0x33")]=new Set,this[Qo("0x3a")]=null,this[Qo("0x1")](Qo("0x18"),null),this[Qo("0x1")](Qo("0x16"),e[Qo("0x16")]||{}),this[Qo("0x1")](Qo("0x1a"),null),this[Qo("0x1")]("next",null),this[Qo("0x1")](Qo("0x32"),null),this[Qo("0x1")](Qo("0x1b"),!1),this[Qo("0x26")](Qo("0xd")),this[Qo("0x26")](Qo("0x2e"))}get[Qo("0x1c")](){let t=this;for(;t[Qo("0x1a")];)t=t[Qo("0x1a")];return t}get hasComments(){return!!this[Qo("0x32")]&&this[Qo("0x32")][Qo("0xa")]>0}get isMultiRange(){return 0!=this._markerNames.size&&6==Array[Qo("0x2")](this[Qo("0x33")])[0][Qo("0x9")](":")[Qo("0xa")]}get[Qo("0x10")](){return null!==this[Qo("0x29")]()}[Qo("0xc")](t){this._markerNames.add(t)}[Qo("0x39")](){return Array[Qo("0x2")](this[Qo("0x33")])}[Qo("0x2a")](){return this.getMarkerNames()[Qo("0x5")]((t=>this[Qo("0x21")][Qo("0x20")][Qo("0x3b")](t)))[Qo("0x38")]((t=>t))}[Qo("0x29")](){return this[Qo("0x2a")]()[0]||null}[Qo("0x3")](){this[Qo("0x21")][Qo("0x3d")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this._markerNames[Qo("0x4")]()}removeMarker(t){this[Qo("0x21")][Qo("0x3d")]((e=>{e[Qo("0xe")](t)})),this._markerNames[Qo("0x27")](t)}[Qo("0x34")](t){const e=Qo("0x25")+this[Qo("0x17")]+":"+this[Qo("0x2b")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x11")]();this[Qo("0xc")](e),this._model[Qo("0x3d")]((n=>{n[Qo("0x1d")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x30")](t){for(const e of this.getRanges())if(e[Qo("0xb")](t))return!0;return!1}[Qo("0x7")](){return this[Qo("0x2a")]()[Qo("0x5")]((t=>t[Qo("0x2d")]()))}[Qo("0x3c")](){return this[Qo("0x7")]()[Qo("0x24")](((t,e)=>[...t,...e[Qo("0x3c")]()]),[])}[Qo("0x19")](){var t;return(null===(t=this[Qo("0x29")]())||void 0===t?void 0:t[Qo("0x2d")]())||null}getContainedElement(){const t=this[Qo("0x7")]();if(1!=t[Qo("0xa")])return null;const e=t[0],n=e[Qo("0x2c")].nodeAfter,o=e.end[Qo("0x23")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x31")](this[Qo("0x7")](),this.data,this[Qo("0x16")]),this[Qo("0x3")]()}[Qo("0x2e")](){this._onDiscard(this[Qo("0x7")](),this.data,this[Qo("0x16")]),this[Qo("0x3")]()}[Qo("0x15")](){const t=[];let e=this[Qo("0x1c")];for(;e;)t[Qo("0x1e")](e),e=e[Qo("0x12")];return t}setAttribute(t,e){const n=eo(this[Qo("0x16")]);_o(n,t,e),Go(n,this[Qo("0x16")])||(this[Qo("0x16")]=n,this[Qo("0x8")](n))}removeAttribute(t){const e=eo(this[Qo("0x16")]);qo(e,t),Go(e,this[Qo("0x16")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x16")]))}[Qo("0x6")](){return{id:this.id,type:this[Qo("0x2b")]?this[Qo("0x17")]+":"+this[Qo("0x2b")]:this[Qo("0x17")],authorId:this.creator.id,createdAt:this[Qo("0x3a")],hasComments:this[Qo("0x36")],data:this[Qo("0x28")],attributes:this.attributes}}static[Qo("0x11")](){return(0,e.uid)()[Qo("0x14")](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=["add","_customCallbacks","removeEmptyContainer","start","elementEnd","isInContent","deletion","$1 $2","_resolveDescriptionItems","pop","softBreak","_addDescriptionItems","_schema","label","Object","removeContainer","isEmpty","replace","push","text","end","getItemLabel","ELEMENT_SPACE","length","element","_itemLabels","EmptyContainer","type","addEmptyContainer","registerDescriptionCallback","getDescriptions","insertion","match","quantity","previousSibling","function","getWalker","$text","item","*Remove:* %0","getFirstRange","normal","checkChild","*Insert:* %0","data","*Split:* %0","indexOf","_locale","remove","nextSibling","get","isEqual","_itemLabelsCallbacks","isObject","Container","REPLACE_TEXT","addObject","registerElementLabel","name","elementStart"];var es,ns;es=ts,ns=417,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x4")]=[],this[os("0x1c")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this[os("0x32")]=e}[os("0x21")](t){const e=[];for(let n=0;n<t[os("0x1a")];n++){const o=t[n];if(!o[os("0x8")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x1e")in n&&e[os("0x15")](n),s=!0;break}}if(!s){this[os("0xe")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x17")][os("0x36")](s[os("0x2b")]()[os("0x6")])){const t=e[e[os("0x1a")]-1],n=os("0x22")==o[os("0x1e")]?os("0x3"):os("0x33");t&&os("0x16")==t[os("0x1e")]&&(t[n]+="\n")}}}return this[os("0xb")](e)}[os("0x20")](t){this[os("0x4")].push(t)}[os("0x0")](t,n,o=e.priorities[os("0x2c")]){os("0x26")==typeof t?(0,e.insertToPriorityArray)(this[os("0x37")],{matchingCallback:t,label:n,priority:o}):this[os("0x1c")].set(t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x10")];break}return n||(n=this[os("0x1c")][os("0x35")](t[os("0x1")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x1")]}[os("0xe")](t,e){const n=e[os("0x2b")]()[os("0x27")](),o=os("0x22")==e[os("0x1e")]?"add":os("0x33");for(const e of n){const s=e[os("0x29")],r=t[t[os("0x1a")]-1];if(s.is("$textProxy"))r&&r[os("0x1e")][os("0x31")]("Container")>-1&&t[os("0xc")](),r&&"text"==r[os("0x1e")]?r[o]+=s[os("0x2f")]:t[os("0x15")]({type:os("0x16"),add:os("0x3")==o?s.data:"",remove:os("0x33")==o?s[os("0x2f")]:""});else if(this[os("0xf")].isObject(s)){const i=s;if(r&&r[os("0x1e")][os("0x31")](os("0x39"))>-1&&t.pop(),os("0x7")==e[os("0x1e")])continue;r&&r.type==o+os("0x11")&&r.element[os("0x1")]==i.name?r.quantity++:t.push({type:o+os("0x11"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[os("0x1e")]&&t.item==s)))}else if(this[os("0xf")][os("0x2d")](s,os("0x28"))||s.is(os("0x1b"),os("0xd"))){const n=s;if(os("0x3")==o&&os("0x2")==e[os("0x1e")]||"remove"==o&&"elementEnd"==e.type)continue;if(r&&-1==r.type[os("0x31")](os("0x39"))){os("0x16")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x3")==o?n[os("0x34")]&&!this[os("0xf")][os("0x38")](n.nextSibling)?n.nextSibling:null:n[os("0x25")]&&!this[os("0xf")][os("0x38")](n[os("0x25")])?n[os("0x25")]:null,n.isEmpty||i&&i[os("0x13")]){const e=i&&i[os("0x13")]?i:n;r&&r[os("0x1e")]==o+os("0x1d")&&r[os("0x1b")][os("0x1")]==e[os("0x1")]?r.quantity++:t[os("0x15")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x15")]({type:o+os("0x39"),element:n})}}}[os("0xb")](t){const e=this[os("0x32")],n=[];for(const o of t){switch(o[os("0x1e")]){case"text":if(o[os("0x3")]=o[os("0x3")][os("0x14")](/(\S)\u000A+(\S)/g,os("0xa"))[os("0x14")](/\u000A/g,""),o[os("0x33")]=o[os("0x33")][os("0x14")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x14")](/\u000A/g,""),""!=o.add&&""!=o[os("0x33")]){n.push({type:os("0x14"),content:Yo(e,os("0x3a"),['"'+o[os("0x33")]+'"','"'+o[os("0x3")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x15")]({type:"insertion",content:Yo(e,os("0x2e"),Yo(e,os("0x19"),o[os("0x3")][os("0x1a")]))});continue}if(null!=o[os("0x33")][os("0x23")](/^ +$/)){n.push({type:os("0x9"),content:Yo(e,os("0x2a"),Yo(e,os("0x19"),o[os("0x33")][os("0x1a")]))});continue}if(""!=o[os("0x3")]){n[os("0x15")]({type:os("0x22"),content:Yo(e,os("0x2e"),'"'+o[os("0x3")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x2a"),'"'+o[os("0x33")]+'"')});continue;case os("0x1f"):case os("0x3b"):n[os("0x15")]({type:os("0x22"),content:Yo(e,"*Insert:* %0",this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue;case os("0x5"):case"removeObject":n[os("0x15")]({type:os("0x9"),content:Yo(e,os("0x2a"),this[os("0x18")](o[os("0x1b")],o.quantity))});continue;case"addContainer":n[os("0x15")]({type:os("0x22"),content:Yo(e,os("0x30"),this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue;case os("0x12"):n[os("0x15")]({type:os("0x9"),content:Yo(e,"*Merge:* %0",this[os("0x18")](o[os("0x1b")],o[os("0x24")]))});continue}n[os("0x15")](o)}return n}}const rs=["editor","get","showAIAssistant","plugins","commands"];var is,xs;is=rs,xs=241,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x4")],e=t[as("0x2")][as("0x0")]("TrackChangesEditing");t[as("0x3")][as("0x0")](as("0x1"))&&e.enableCommand(as("0x1"))}}const ls=["AlignmentEditing","value","format","FORMAT_ALIGN_TO_RIGHT","commandName","checkAttribute","FORMAT_ALIGN_TO_CENTER","alignment","center","plugins","editor","registerDescriptionCallback","locale","*Format:* %0","afterInit","model","left","ltr","_descriptionFactory","getAttribute","getSelectedBlocks","selection","FORMAT_ALIGN_TO_LEFT","FORMAT_JUSTIFY_TEXT","markBlockFormat","from","TrackChangesEditing","document","contentLanguageDirection","commandParams","has","change","schema","enableCommand"];var us,ds;us=ls,ds=438,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x12")](){const t=this[gs("0xe")],e=t[gs("0x10")];if(!t.plugins[gs("0x0")](gs("0x4")))return;const n=t[gs("0xd")].get(gs("0x1e"));n[gs("0x3")](gs("0xb"),((e,o={})=>{let s=o.value;o[gs("0x5")]||(s=gs("0x15")===t.locale[gs("0x20")]?gs("0x14"):"right");const r=Array[gs("0x1d")](this[gs("0xe")][gs("0x13")][gs("0x1f")][gs("0x19")][gs("0x18")]()).filter((t=>function(t,e,n){const o=t[gs("0x17")]("alignment")||null;return e[gs("0x9")](t,gs("0xb"))&&n!=o}(t,this.editor[gs("0x13")][gs("0x2")],s)));t[gs("0x13")][gs("0x1")]((()=>{for(const t of r)n[gs("0x1c")](t,{commandName:gs("0xb"),commandParams:[{value:s}]})}))})),n[gs("0x16")][gs("0xf")]((t=>{const{data:n}=t;if(n&&gs("0xb")==n[gs("0x8")]){const t=n[gs("0x21")][0].value;return{type:gs("0x6"),content:Yo(e,gs("0x11"),function(t){switch(t){case"left":return Yo(e,gs("0x1a"));case"right":return Yo(e,gs("0x7"));case gs("0xc"):return Yo(e,gs("0xa"));case"justify":return Yo(e,gs("0x1b"))}}(t))}}}))}}const ms=["hasAttribute","listItem","name","writer","element","get","type","nextSibling","consumable","test","schema","addHighlight","push","elementEnd","markerRange","mapper","getAttribute","model","listIndent","ck-suggestion-marker-","addClass","item","activeMarkers","previousPosition","parent","isContent","createUIElement","start","markerName","createRangeOn","isLimit","getCustomProperty"];var hs,ps;hs=ms,ps=173,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};function Es(t,e,n){const o=[];for(const s of e.getItems())s[bs("0x13")](t)&&o.push(n[bs("0x10")](s));return o}function _s(t){const e=[];if(t.is(bs("0x17"),bs("0x14"))){let n=t[bs("0x1a")];for(;n&&n.is(bs("0x17"),bs("0x14"))&&n[bs("0x3")](bs("0x5"))>0;)e[bs("0x1f")](n),n=n[bs("0x1a")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[bs("0x18")]("TrackChangesEditing");return(s,r,i)=>{if(!i[bs("0x1b")][bs("0x1c")](r[bs("0x1")],s[bs("0x15")]))return;const x=r.markerRange.getWalker(),a=r.markerRange[bs("0xe")],c=t[bs("0x4")][bs("0x1d")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[bs("0x8")];d=d||c[bs("0xc")](e);const n=i[bs("0x2")].toViewElement(e);if(n&&n[bs("0x12")](bs("0x1e")))return;bs("0x0")==t[bs("0x19")]&&c.isBlock(e)&&!c[bs("0x11")](e)&&(e.nextSibling||a.isAtEnd?l&&l[bs("0xb")]==e||(l=e,f(t[bs("0xa")]),g=!0):u=u||t[bs("0xa")])}function f(t){const s=i.writer[bs("0xd")]("span",{class:bs("0x6")+e}),x=i[bs("0x2")].toViewPosition(t);n&&o[bs("0x9")].includes(r[bs("0xf")])&&i[bs("0x16")][bs("0x7")]("ck-suggestion-marker--active",s),i[bs("0x16")].insert(x,s),i[bs("0x2")].bindElementToMarker(s,r.markerName)}d||g||!u||f(u)}}const Cs=["markInlineFormat","toLowerCase","editor","SuperscriptEditing","commandName","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","FORMAT_CODE","subscript","SubscriptEditing","strikethrough","registerDescriptionCallback","isCollapsed","plugins","model","forceValue","UnderlineEditing","FORMAT_ITALIC","FORMAT_UNDERLINE","TrackChangesEditing","*Remove format:* %0","bold","FORMAT_SUPERSCRIPT","underline","ItalicEditing","getRanges","from","commands","FORMAT_BOLD","value","italic","enableCommand","_descriptionFactory","*Format:* %0","locale","format","document","CodeEditing","get","change"];var ys,ks;ys=Cs,ks=391,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=["BoldEditing",As("0x21"),As("0x19"),As("0x6"),"StrikethroughEditing",As("0x12"),As("0xc")];class Rs extends t.Plugin{afterInit(){const t=this[As("0xb")],e=t[As("0x17")],n=t[As("0x16")][As("0x7")](As("0x1c")),o=t[As("0x3")];for(const o of vs){if(!t[As("0x16")].has(o))continue;const s=o.slice(0,-7)[As("0xa")](),r=t[As("0x24")][As("0x7")](s);n[As("0x0")](s,((t,o={})=>{const i=e[As("0x5")].selection;if(i[As("0x15")])return void t(o);const x=void 0!==o.forceValue?o[As("0x18")]:!r[As("0x26")];e[As("0x8")]((()=>{const t=Array[As("0x23")](i[As("0x22")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1")][As("0x14")]((n=>{const{data:s}=n;if(s&&s[As("0xd")]===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,As("0x2"),e)}:{type:As("0x4"),content:Yo(o,As("0x1d"),e)}}))}s(As("0x1e"),Yo(o,As("0x25"))),s(As("0x27"),Yo(o,As("0x1a"))),s(As("0x20"),Yo(o,As("0x1b"))),s("code",Yo(o,As("0x10"))),s(As("0x13"),Yo(o,As("0xf"))),s(As("0x11"),Yo(o,As("0xe"))),s("superscript",Yo(o,As("0x1f")))}}const Is=["plugins","$root","forceValue","schema","ELEMENT_BLOCK_QUOTE","_descriptionFactory","get","enableCommand","filter","commandName","checkChild","getSelectedBlocks","blockQuote","from","parent","change","editor","*Format:* %0","selection","commands","has","markBlockFormat","model","format","value"];var Ss,Ls;Ss=Is,Ls=387,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ns("0x4")],e=t.locale;if(!t[Ns("0xd")][Ns("0x8")]("BlockQuoteEditing"))return;const n=t[Ns("0xd")].get("TrackChangesEditing"),o=this.editor[Ns("0x7")][Ns("0x13")](Ns("0x0"));n[Ns("0x14")]("blockQuote",((e,s={})=>{const r=this[Ns("0x4")][Ns("0xa")].document[Ns("0x6")],i=s&&void 0!==s[Ns("0xf")]?s.forceValue:!o[Ns("0xc")];let x=[];if(i){const e=Array[Ns("0x1")](r.getSelectedBlocks())[Ns("0x15")]((t=>Ms(t)||function(t,e){const n=e[Ns("0x17")](t[Ns("0x2")],"blockQuote"),o=e.checkChild([Ns("0xe"),Ns("0x0")],t);return n&&o}(t,this[Ns("0x4")][Ns("0xa")][Ns("0x10")])));x=I(e,t[Ns("0xa")])}else{const e=Array[Ns("0x1")](r[Ns("0x18")]())[Ns("0x15")]((t=>Ms(t)));x=I(e,t[Ns("0xa")])}t.model[Ns("0x3")]((()=>{for(const t of x)n[Ns("0x9")](t,{commandName:Ns("0x0"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x12")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ns("0x0")==n[Ns("0x16")]){const t=Yo(e,Ns("0x11"));return n.commandParams[0].forceValue?{type:Ns("0xb"),content:Yo(e,Ns("0x5"),t)}:{type:Ns("0xb"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ms(t){return Ns("0x0")==t[Ns("0x2")].name}const Os=["plugins","get","enableCommand","afterInit","commands","TrackChangesEditing","editor","ckbox"];var Fs,Ps;Fs=Os,Ps=355,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x0")](){const t=this[Ds("0x3")];t[Ds("0x1")][Ds("0x6")](Ds("0x4"))&&t[Ds("0x5")][Ds("0x6")](Ds("0x2"))[Ds("0x7")](Ds("0x4"))}}const js=["language","format","value","checkChild","ELEMENT_CODE_BLOCK","outdentCodeBlock","commandName","schema","afterInit","name","has","enableCommand","CodeBlock","filter","rootElement","from","label","*Format:* %0","*Remove format:* %0","plugins","model","forceValue","document","get","TrackChangesEditing","selection","formatBlock","markBlockFormat","config","isLimit","blockName","codeBlock","locale","_descriptionFactory","getSelectedBlocks","change","commandParams"];var Us,Gs;Us=js,Gs=280,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x18")](){const t=this.editor;if(!t[Hs("0x23")][Hs("0x1a")](Hs("0x1c")))return;const e=t[Hs("0x23")][Hs("0x2")](Hs("0x3")),n=t[Hs("0xb")],o=t[Hs("0x7")].get(Hs("0xa")).languages,s=t.commands[Hs("0x2")](Hs("0xa"));e[Hs("0x1b")]("indentCodeBlock"),e.enableCommand(Hs("0x15")),e[Hs("0x1b")]("codeBlock",((n,r={})=>{const i=t[Hs("0x24")],x=t.model[Hs("0x1")][Hs("0x4")],a=r&&void 0!==r.forceValue?r[Hs("0x0")]:!s[Hs("0x12")];let c;r[Hs("0x10")]||(r[Hs("0x10")]=o[0][Hs("0x10")]),c=a?Array[Hs("0x1f")](x[Hs("0xd")]())[Hs("0x1d")]((t=>{return zs(t)||(e=t,n=i[Hs("0x17")],!e.is(Hs("0x1e"))&&!n[Hs("0x8")](e)&&n[Hs("0x13")](e.parent,"codeBlock"));var e,n})):Array.from(x[Hs("0xd")]())[Hs("0x1d")]((t=>zs(t)));const l=I(c,i);i[Hs("0xe")]((()=>{for(const t of l)e[Hs("0x6")](t,{commandName:Hs("0xa"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x9")})}))})),e[Hs("0xc")].registerElementLabel(Hs("0xa"),(t=>Yo(n,Hs("0x14"),t))),e[Hs("0xc")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Hs("0x5")==s&&r&&Hs("0xa")==r[Hs("0x16")]){const t=r[Hs("0xf")][0].language,s=e(o.find((e=>e[Hs("0x10")]===t))[Hs("0x20")]);return r[Hs("0xf")][0][Hs("0x0")]?{type:Hs("0x11"),content:Yo(n,Hs("0x21"),Yo(n,Hs("0x14"),1)+" ("+s+")")}:{type:Hs("0x11"),content:Yo(n,Hs("0x22"),Yo(n,Hs("0x14"),1))}}}))}}function zs(t){return Hs("0xa")==t[Hs("0x19")]}const Vs=["editor","plugins","has","TrackChangesEditing","CommentsEditing","enableCommand"];var Ks,qs;Ks=Vs,qs=193,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x5")];t[Xs("0x0")][Xs("0x1")](Xs("0x3"))&&t[Xs("0x0")].get(Xs("0x2"))[Xs("0x4")]("addCommentThread")}}var Js=n(181);const Qs=["unbindElementFromMarkerName","lock","plugins","data","model","mapper","enqueueChange","unlock","getFirstRange","editing","detach","end","batch","uiElement","forward","remove","deleteForward","options","commands","selection","markerNameToElements","get","writer","addMarker:suggestion:deletion","removeMarker:suggestion:deletion","isCollapsed","TrackChangesEditing","document","downcastDispatcher","setSelection","fromRange","init","start","$graveyard","buffer","markerName","modifySelection","high","root","delete","createRange","unit","showSuggestionHighlights","createSelection","merge"];var Zs,Ys;Zs=Qs,Ys=203,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get requires(){return[Js.Delete]}[tr("0x8")](){const t=this.editor,e=t[tr("0x18")][tr("0x2b")](tr("0x3"));e.enableCommand(tr("0x10"));const n=t[tr("0x28")][tr("0x2b")](tr("0x26"));e.enableCommand(tr("0x26"),((e,o={})=>{const s=t[tr("0x1a")][tr("0x14")](t[tr("0x1a")][tr("0x4")][tr("0x29")]);s[tr("0x2")]&&t.model[tr("0xd")](s,{direction:tr("0x24"),unit:o[tr("0x12")]});const r=s[tr("0x1e")](),x=i.LiveRange[tr("0x7")](r);let a;e(o),a=tr("0xa")==x[tr("0xf")].rootName?t[tr("0x1a")].createRange(r.start):t[tr("0x1a")][tr("0x11")](x[tr("0x9")],x[tr("0x21")]),x[tr("0x20")](),t[tr("0x1a")][tr("0x1c")](n[tr("0xb")][tr("0x22")],(t=>{n[tr("0xb")][tr("0x17")](),t[tr("0x6")](t[tr("0x11")](a[tr("0x21")])),n.buffer[tr("0x1d")]()}))})),t[tr("0x1f")].downcastDispatcher.on(tr("0x0"),Ts(t,tr("0x15")),{priority:tr("0xe")}),t[tr("0x19")][tr("0x5")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[tr("0x27")][tr("0x13")]&&Ts(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:tr("0xe")}),t.editing[tr("0x5")].on(tr("0x1"),((t,e,n)=>{const o=n[tr("0x1b")][tr("0x2a")](e[tr("0xc")]);if(o)for(const t of o)t.is(tr("0x23"))&&(n[tr("0x1b")][tr("0x16")](t,e[tr("0xc")]),n[tr("0x2c")][tr("0x25")](t))}),{priority:tr("0xe")})}}const nr=["numberedList","length","nodeAfter","listType","*Format:* insert into %0","ELEMENT_LIST_ITEM","_LIST","document","deletion","refresh","hasAttribute","_suggestionFactory","previousSibling","commandParams","documentList","containsItem","locale","detach","createRange","listItemId","TrackChangesEditing","isObject","enableCommand","setSelection","add","forceValue","DocumentListUtils","editor","commands","after","splitListItemAfter","model","change","parent","has","*Indent:* %0","outdentList","getAttribute","*Change to:* %0","slice","nextSibling","start","mergeListItemForward","multipleBlocks","registerCustomCallback","ELEMENT_NUMBERED_LIST","registerDescriptionCallback","markBlockFormat","push","selection","splitListItemBefore","*Merge:* %0","markMultiRangeBlockFormat","from","*Format:* remove from %0","before","bulletedList","listIndent","formatBlock","afterInit","createPositionAt","schema","getFirstRange","value","paragraph","execute","get","getSelectedBlocks","toUpperCase","format","plugins","_descriptionFactory","list.multiBlock","isFirstBlockOfListItem","ELEMENT_BULLETED_LIST","fromRange","expandListBlocksToCompleteList","config","indentList","next","map","registerElementLabel","end","commandName"];var or,sr;or=nr,sr=296,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0xf")](){const t=this[rr("0x43")];if(!t[rr("0x1a")][rr("0x4a")]("DocumentListEditing"))return;const e=t[rr("0x38")],n=t[rr("0x1a")].get(rr("0x3c")),o=t.plugins[rr("0x16")](rr("0x42"));function s(e){return()=>{const s=t[rr("0x44")][rr("0x16")](e);if(s[rr("0x13")]&&!t[rr("0x21")][rr("0x16")](rr("0x1c")))return void t[rr("0x15")](rr("0x14"),{});let r=Array[rr("0x9")](t[rr("0x47")][rr("0x2f")][rr("0x5")][rr("0x17")]());if(a(e)){r=o[rr("0x20")](r);const t=[];for(const e of r)o[rr("0x1d")](e)&&t[rr("0x4")](e);r=t}t.model[rr("0x48")]((()=>{n[rr("0x8")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:rr("0x2b")},[],rr("0x36"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x9")](t);const n=e.findIndex((t=>!t[rr("0x32")](rr("0x3b"))));return n>-1&&(e=e[rr("0x4f")](0,n)),e}(t[rr("0x47")][rr("0x2f")][rr("0x5")][rr("0x17")]()),s=o[o[rr("0x29")]-1],r=t[rr("0x47")][rr("0x11")].isObject(s)?rr("0x45"):rr("0x26"),i=t.model.createRange(t[rr("0x47")][rr("0x10")](o[0],rr("0xb")),t[rr("0x47")][rr("0x10")](s,r));t[rr("0x47")][rr("0x48")]((()=>{n[rr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2b")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[rr("0x4d")]("listIndent")>n[rr("0x4d")](rr("0xd"));)e[rr("0x40")](t),t=t.nextSibling}return Array[rr("0x9")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x47")].document.selection[rr("0x17")]()[rr("0x23")]().value,s=t[rr("0x47")][rr("0x10")](o,"before"),r=t[rr("0x47")][rr("0x10")](o,0),i=t[rr("0x47")][rr("0x3a")](s,r);t.model[rr("0x48")]((()=>{n[rr("0x3")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2b")})}))}}function a(e){const n=t[rr("0x44")].get(rr("0xc"))[rr("0x13")],o=t[rr("0x44")].get(rr("0x28"))[rr("0x13")];return"numberedList"===e?n:o}n[rr("0x3e")](rr("0x28"),s(rr("0x28"))),n.enableCommand(rr("0xc"),s("bulletedList")),n.enableCommand(rr("0x22"),r(rr("0x22"))),n[rr("0x3e")](rr("0x4c"),r("outdentList")),n[rr("0x3e")](rr("0x46"),x("splitListItemAfter")),n[rr("0x3e")](rr("0x6"),x(rr("0x6"))),n[rr("0x1b")][rr("0x25")]((function(e){const n=!t[rr("0x47")][rr("0x11")][rr("0x3d")](e),o=e[rr("0x34")],s=e[rr("0x50")],r=e[rr("0x4d")]("listItemId"),i=!o||o[rr("0x4d")](rr("0x3b"))!==r,x=!s||s[rr("0x4d")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x2d"),t))),n[rr("0x1b")][rr("0x2")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x27")]){case rr("0xc"):i=o[rr("0x35")][0][rr("0x41")],x=a(o[rr("0x27")]),s=rr(i?"0x2c":"0xa"),!x&&t[rr("0x21")][rr("0x16")]("list.multiBlock")||(s=rr("0x4e")),r={type:"format",content:Yo(e,s,Yo(e,rr("0x1e")))};break;case rr("0x28"):i=o.commandParams[0][rr("0x41")],x=a(o[rr("0x27")]),s=i?rr("0x2c"):"*Format:* remove from %0",!x&&t.config.get(rr("0x1c"))||(s=rr("0x4e")),r={type:rr("0x19"),content:Yo(e,s,Yo(e,rr("0x1")))};break;case rr("0x22"):s=rr("0x4b"),r={type:rr("0x19"),content:Yo(e,s,Yo(e,rr("0x2d")))};break;case rr("0x4c"):s=function(t){const e=t[rr("0x12")]();let n=e[rr("0x51")][rr("0x2a")];for(;n&&e[rr("0x37")](n);){if(n[rr("0x4d")](rr("0xd"))>0)return!1;n=n[rr("0x50")]}return!0}(n)?Yo(e,rr("0xa"),Yo(e,"ELEMENT_"+n[rr("0x12")]().start[rr("0x2a")].getAttribute(rr("0x2b"))[rr("0x18")]()+rr("0x2e"))):Yo(e,"*Outdent:* %0",Yo(e,rr("0x2d"))),r={type:rr("0x19"),content:s};break;case"mergeListItemBackward":case rr("0x52"):!1===o[rr("0x53")]&&(s=rr("0x7"),r={type:rr("0x30"),content:Yo(e,s,Yo(e,rr("0x2d")))})}return r})),n[rr("0x33")][rr("0x0")](rr("0xe"),rr("0x36"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x51")][rr("0x2a")]===n[rr("0x26")][rr("0x49")]&&(n=t.model[rr("0x3a")](t[rr("0x47")].createPositionAt(n[rr("0x51")].nodeAfter,0))),o[rr("0x4")](n);t[rr("0x47")][rr("0x48")]((e=>{const s=t[rr("0x47")].document[rr("0x5")],r=Array[rr("0x9")](s.getRanges())[rr("0x24")]((t=>i.LiveRange[rr("0x1f")](t)));e[rr("0x3f")](o),t[rr("0x44")][rr("0x16")](n[rr("0x27")])[rr("0x31")](),n[rr("0x35")].push({forceDefaultExecution:!0}),t[rr("0x15")](n.commandName,...n.commandParams),e[rr("0x3f")](r);for(const t of r)t[rr("0x39")]()}))}))}}var xr=n(331);const ar=["end","fromRange","mapper","enableCommand","document","bind","unbindElementFromMarkerName","showSuggestionHighlights","plugins","downcastDispatcher","TrackChangesEditing","enter","getFirstPosition","editor","ck-suggestion-marker-split","split","editing","change","get","addMarker:suggestion:insertion","requires","data","setSelection","getFirstRange","init","hasClass","commands","markerNameToElements","remove","writer","parent","options","high","model","markerName","createRange"];var cr,lr;cr=ar,lr=308,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{static get[ur("0x0")](){return[xr.Enter]}[ur("0x4")](){const t=this[ur("0x1d")],e=t[ur("0x18")][ur("0x22")](ur("0x1a")),n=t[ur("0x6")][ur("0x22")](ur("0x1b"));e[ur("0x13")](ur("0x1b"),(()=>{t.model[ur("0x21")]((o=>{const s=t.model[ur("0x14")].selection,r=s[ur("0x1c")](),x=i.LiveRange[ur("0x11")](s[ur("0x3")]());if(n.enterBlock(o)){const n=t[ur("0xd")].createPositionAt(r[ur("0xa")].nextSibling,0),s=o[ur("0xf")](r,n);e.markInsertion(s)}else o[ur("0x2")](o.createRange(x[ur("0x10")]));x.detach(),n.fire("afterExecute",{writer:o})}))})),t.editing[ur("0x19")].on(ur("0x23"),Ts(t,ur("0x1f")),{priority:"high"}),t[ur("0x20")][ur("0x19")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ur("0x12")][ur("0x7")](e[ur("0xe")]);if(o)for(const t of o)t[ur("0x5")](ur("0x1e"))&&(n[ur("0x12")][ur("0x16")](t,e.markerName),n[ur("0x9")][ur("0x8")](t))}),{priority:ur("0xc")}),t[ur("0x1")][ur("0x19")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ur("0xb")][ur("0x17")]&&Ts(t,ur("0x1f"),{showActiveMarker:!1})[ur("0x15")](this)(e,n,o)}),{priority:ur("0xc")})}}const gr=["FindAndReplaceUtils","start","afterInit","createPositionAt","model","getIntersection","get","bind","findByTextCallback","item","FindAndReplaceEditing","replaceAll","has","handleFindCommand","TrackChangesEditing","end","find","editor","markers","string","plugins","suggestion:deletion","enableCommand","replace"];var fr,mr;fr=gr,mr=395,function(t){for(;--t;)fr.push(fr.shift())}(++mr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xf")](){if(!this.editor[hr("0x9")][hr("0x1")](hr("0x17")))return;const t=this[hr("0x6")][hr("0x9")].get(hr("0x3"));t[hr("0xb")](hr("0x5"),this[hr("0x2")][hr("0x14")](this)),t[hr("0xb")]("findNext"),t[hr("0xb")]("findPrevious"),t.enableCommand(hr("0xc")),t[hr("0xb")](hr("0x0"))}[hr("0x2")](t,e,n={}){const o=this.editor[hr("0x9")][hr("0x13")](hr("0xd"));if(void 0!==n)return t((t=>(hr("0x8")==typeof e?o[hr("0x15")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t[hr("0x16")])))),n)}_isInDeletionRange(t,e){const n=this.editor[hr("0x11")].createRange(this[hr("0x6")][hr("0x11")].createPositionAt(e,t[hr("0xe")]),this[hr("0x6")].model[hr("0x10")](e,t[hr("0x4")]));for(const t of this[hr("0x6")].model[hr("0x7")].getMarkersGroup(hr("0xa")))if(null!==n[hr("0x12")](t.getRange()))return!0;return!1}}const br=["FontColorEditing","fontFamily","commandName","*Reset font background color*","*Reset font family*","document","editor","change","selection","fontBackgroundColor","trim","fontBackgroundColor.colors","_enableCommand","FontSizeEditing","fontColor.colors","locale","commandParams","*Set font size:* %0","find","*Set font color:* %0","TrackChangesEditing","fontColor","has","get","fontSize","toLowerCase","*Set font family:* %0","afterInit","model","normalizeSizeOptions","registerDescriptionCallback","isCollapsed","title","config","enableCommand","value","plugins","*Set font background color:* %0","label","*Reset font size*","format","from","_descriptionFactory"];var Er,_r;Er=br,_r=190,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x26"),commandName:Tr("0x6")},{pluginName:"FontFamilyEditing",commandName:Tr("0x1a")},{pluginName:Tr("0x19"),commandName:Tr("0x3")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class yr extends t.Plugin{[Tr("0x9")](){const t=this[Tr("0x1f")][Tr("0x28")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x1f")][Tr("0x12")][Tr("0x4")](t)&&this[Tr("0x25")](e);this.editor[Tr("0x12")][Tr("0x5")]("TrackChangesEditing")[Tr("0x18")][Tr("0xc")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x6")==o[Tr("0x1b")]){const e=o[Tr("0x29")][0][Tr("0x11")];if(e){const o=n(this[Tr("0x1f")][Tr("0x12")][Tr("0x5")]("FontSize")[Tr("0xb")](this.editor[Tr("0xf")][Tr("0x5")]("fontSize.options")).find((t=>t[Tr("0xa")]==e))[Tr("0xe")]).toLowerCase();return{type:Tr("0x16"),content:Yo(t,Tr("0x2a"),o)}}return{type:Tr("0x16"),content:Yo(t,Tr("0x15"))}}if(Tr("0x1a")==o[Tr("0x1b")]){const e=o[Tr("0x29")][0].value;return e?{type:"format",content:Yo(t,Tr("0x8"),e)}:{type:Tr("0x16"),content:Yo(t,Tr("0x1d"))}}if("fontColor"==o[Tr("0x1b")]){const e=o[Tr("0x29")][0][Tr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x1f")].config.get(Tr("0x27")))[Tr("0x0")]((t=>t[Tr("0xa")]==e));let r=e,i="";return o&&(r=o[Tr("0x14")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,Tr("0x1"),i)[Tr("0x23")](),color:{value:e,title:i||r}}}return{type:Tr("0x16"),content:Yo(t,"*Reset font color*")}}if(Tr("0x22")==o.commandName){const e=o.commandParams[0][Tr("0x11")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x1f")][Tr("0xf")][Tr("0x5")](Tr("0x24"))).find((t=>t[Tr("0xa")]==e));let r=e,i="";return o&&(r=o[Tr("0x14")],i=n(r)[Tr("0x7")]()),{type:Tr("0x16"),content:Yo(t,Tr("0x13"),i)[Tr("0x23")](),color:{value:e,title:i||r}}}return{type:Tr("0x16"),content:Yo(t,Tr("0x1c"))}}}}))}[Tr("0x25")](t){const e=this[Tr("0x1f")];e[Tr("0x12")][Tr("0x5")](Tr("0x2"))[Tr("0x10")](t,((n,o={})=>{const s=e[Tr("0xa")][Tr("0x1e")][Tr("0x21")],r=o[Tr("0x11")];s[Tr("0xd")]?n(o):e[Tr("0xa")][Tr("0x20")]((()=>{const n=Array[Tr("0x17")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0xa")]);for(const o of n)e.plugins[Tr("0x5")](Tr("0x2")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["entries","fontSize","fontColor.colors","registerDescriptionCallback","selection","charAt","get","afterInit","boolean","config","toUpperCase","_descriptionFactory","join","FontSize","modifySelection","plugins","find","isCollapsed","split","title","copyFormat","document","markInlineFormat","label","fontSize.options","isFormatting","pasteFormat","keys","toLowerCase","commandParams","getSelectedBlocks","forward","TrackChangesEditing","getLastPosition","format","*Remove all formatting*","word","createSelection","enableCommand","getAttributes","model","slice","*Set format to:* %0","length","backward","getFirstPosition"];var Ar,vr;Ar=kr,vr=341,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x22")](){const t=this.editor,n=t[Rr("0x15")],o=n[Rr("0x2")][Rr("0x1f")],s=t[Rr("0x2a")][Rr("0x21")](Rr("0xd")),r=t.locale,i=t.commands[Rr("0x21")](Rr("0x1")),x=t.commands[Rr("0x21")](Rr("0x7"));i&&x&&(s[Rr("0x13")](Rr("0x7"),((t,r={})=>{const i=r;n.change((()=>{const t=Array.from(o.getRanges()),r=o[Rr("0x2c")]?[Sr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x14")]()){const t=e.getAttributeProperties(n);t&&t[Rr("0x6")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e.getItems())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Rr("0xb")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x8")](i)[Rr("0x18")])for(const t of r)s[Rr("0x3")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Rr("0x26")][Rr("0x1e")]((e=>{const{data:n}=e;if(n&&Rr("0x7")===n.commandName){const e=[],o=n[Rr("0xa")][0];for(const[n,s]of Object[Rr("0x1b")](o))e.push(Lr(t,n,s));return e[Rr("0x18")]?{type:Rr("0xf"),content:Yo(r,Rr("0x17"),e[Rr("0x27")](", "))}:{type:Rr("0xf"),content:Yo(r,Rr("0x10"))}}})),t.plugins[Rr("0x21")](Rr("0xd"))[Rr("0x13")]("copyFormat"))}}function Sr(t,e){const n=t[Rr("0x12")](e);t.modifySelection(n,{unit:Rr("0x11"),direction:Rr("0x19")});const o=n[Rr("0x1a")]();t[Rr("0x29")](n,{unit:Rr("0x11"),direction:Rr("0xc")});const s=n[Rr("0xe")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t.locale.t,r=e[Rr("0x2d")](/(?=[A-Z])/)[Rr("0x27")](" "),i=o(r[Rr("0x20")](0)[Rr("0x25")]()+r[Rr("0x16")](1)).toLowerCase();if(Rr("0x23")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t.config.get(Rr("0x1d")))[Rr("0x2b")]((t=>t[Rr("0x15")]==n));return i+" ("+(e?o(e[Rr("0x4")]).toLowerCase():n)+")"}if(Rr("0x1c")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x2a")][Rr("0x21")](Rr("0x28")).normalizeSizeOptions(t[Rr("0x24")][Rr("0x21")](Rr("0x5")))[Rr("0x2b")]((t=>t[Rr("0x15")]==n));return i+" ("+(e?o(e[Rr("0x0")])[Rr("0x9")]():n)+")"}return i+" ("+n+")"}const Nr=["commandParams","value","parent","model","heading.options","filter","find","ELEMENT_HEADING_CUSTOM","TrackChangesEditing","schema","_descriptionFactory","ELEMENT_HEADING","plugins","formatBlock","match","HeadingEditing","name","getSelectedBlocks","from","isObject","has","checkChild","title","heading","paragraph","registerDescriptionCallback","selection","registerElementLabel","get","blockName","editor","markBlockFormat","format","commandName","locale"];var wr,Mr;wr=Nr,Mr=239,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0x1")],e=t[Or("0x5")],n=t.config[Or("0x22")](Or("0xa"));if(!t[Or("0x12")][Or("0x1a")](Or("0x15")))return;const o=t.plugins.get(Or("0xe"));o.enableCommand("heading",((e,n)=>{const s=n[Or("0x7")],r=Array[Or("0x18")](this[Or("0x1")][Or("0x9")].document[Or("0x20")][Or("0x17")]())[Or("0xb")]((t=>{return e=t,n=s,(o=this[Or("0x1")][Or("0x9")][Or("0xf")])[Or("0x1b")](e[Or("0x8")],n)&&!o[Or("0x19")](e)&&e[Or("0x16")]!=n;var e,n,o}));t[Or("0x9")].change((()=>{for(const t of r)o[Or("0x2")](t,{commandName:"heading",commandParams:[n],formatGroupId:Or("0x0")},_s(t))}))}));for(const t of n)Or("0x1e")!=t[Or("0x9")]&&o[Or("0x10")][Or("0x21")](t[Or("0x9")],(e=>{const n=Pr(t[Or("0x9")]);return null!==n?s(e,n):r(e,t[Or("0x1c")])}));function s(t,n){return Yo(e,Or("0x11"),[t,n])}function r(t,n){return Yo(e,Or("0xd"),[t,n])}o[Or("0x10")][Or("0x1f")]((t=>{const{type:o,data:i}=t;if(Or("0x13")==o&&i&&Or("0x1d")==i[Or("0x4")]){const t=i[Or("0x6")][0][Or("0x7")],o=Pr(t);if(null!==o)return{type:Or("0x3"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Or("0xc")]((e=>e[Or("0x9")]===t)).title;return{type:Or("0x3"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x14")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["find","getRanges","config","_descriptionFactory","TrackChangesEditing","getAttribute","model","selection","commandParams","markInlineFormat","registerDescriptionCallback","*Set highlight:* %0","document","formatInline","plugins","change","highlight","*Remove highlight*","backward","value","isCollapsed","commandName","getFirstPosition","editor","afterInit","format","HighlightEditing","hasAttribute","locale","createRange","has","get","title","push"];var Br,jr;Br=Dr,jr=151,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x9")](){const t=this[Ur("0x8")];if(!t[Ur("0x21")][Ur("0xf")](Ur("0xb")))return;const e=t.plugins[Ur("0x10")](Ur("0x17"));e.enableCommand(Ur("0x1"),((n,o={})=>{const s=t[Ur("0x19")][Ur("0x1f")][Ur("0x1a")],r=s[Ur("0x18")](Ur("0x1"));let i=o.value,x=[];if(s[Ur("0x5")]){const e=s[Ur("0x7")]();if(!s[Ur("0xc")]("highlight"))return void n(o);{const n=t=>t.item.getAttribute("highlight")===r,o=e.getLastMatchingPosition(n,{direction:Ur("0x3")}),s=e.getLastMatchingPosition(n);x=[t[Ur("0x19")][Ur("0xe")](o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0x14")]())i?x.push(e):x[Ur("0x12")](...Es(Ur("0x1"),e,t[Ur("0x19")]));t[Ur("0x19")][Ur("0x0")]((()=>{for(const t of x)e[Ur("0x1c")](t,{commandName:Ur("0x1"),commandParams:[{value:i}]})}))}));const n=t[Ur("0xd")];e[Ur("0x16")][Ur("0x1d")]((e=>{const{type:o,data:s}=e;if(Ur("0x20")==o&&s&&Ur("0x1")==s[Ur("0x6")]){const e=n.t,o=s[Ur("0x1b")][0][Ur("0x4")];if(o){const s=t[Ur("0x15")].get("highlight.options")[Ur("0x13")]((t=>t[Ur("0x19")]==o)),r=e(s[Ur("0x11")]).toLowerCase();return{type:"format",content:Yo(n,Ur("0x1e"),r),color:{value:s.color,title:s[Ur("0x11")]}}}return{type:Ur("0xa"),content:Yo(n,Ur("0x2"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Hr=["createEmptyElement","ck-horizontal-line","showSuggestionHighlights","TrackChangesEditing","conversion","div","editor","locale","createPositionAt","horizontalLine","registerElementLabel","_descriptionFactory","get","plugins","for","enableCommand","HorizontalLineEditing","afterInit","insert","addClass","elementToStructure","has"];var Wr,zr;Wr=Hr,zr=200,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xf")](){const t=this[Vr("0x4")];if(!t.plugins[Vr("0x13")](Vr("0xe")))return;t[Vr("0xb")][Vr("0xa")](Vr("0x1"))[Vr("0xd")](Vr("0x7"));const e=t[Vr("0xb")][Vr("0xa")]("TrackChangesEditing"),n=t[Vr("0x5")];e[Vr("0x9")][Vr("0x8")](Vr("0x7"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vr("0x2")][Vr("0xc")]("dataDowncast")[Vr("0x12")]({model:Vr("0x7"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x0")])return null;const o=e.createContainerElement(Vr("0x3")),s=e[Vr("0x14")]("hr");return e[Vr("0x11")](Vr("0x15"),o),e[Vr("0x10")](e[Vr("0x6")](o,0),s),o},converterPriority:"high"})}}const qr=["markBlockFormat","htmlEmbed","getCustomProperty","view","document","getSelectedElement","ELEMENT_HTML_EMBED","get","*Change %0 content*","editing","afterInit","value","enableCommand","change","selection","TrackChangesEditing","getAttribute","plugins","registerElementLabel","has","commandName","registerDescriptionCallback","rawHtmlApi","cancel","model","editor","rawHtml"];var Xr,$r;Xr=qr,$r=470,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x1a")](){const t=this[Jr("0xe")];if(!t.plugins[Jr("0x8")]("HtmlEmbed"))return;const e=t[Jr("0x6")][Jr("0x17")](Jr("0x4")),n=t.locale,o=t[Jr("0x19")][Jr("0x13")][Jr("0x14")][Jr("0x3")];e._descriptionFactory[Jr("0x7")]("rawHtml",(t=>Yo(n,Jr("0x16"),t))),t[Jr("0x6")][Jr("0x17")]("TrackChangesEditing")[Jr("0x1")](Jr("0x11"),((n,s)=>{const r=t[Jr("0xd")],i=r[Jr("0x14")][Jr("0x3")];r[Jr("0x2")]((()=>{const t=function(t){const e=t[Jr("0x15")]();return e&&e.is("element",Jr("0xf"))?t[Jr("0x15")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x5")](Jr("0x0"))||"";void 0!==s&&s!==r&&(e[Jr("0x10")](t,{commandName:Jr("0x11"),commandParams:[s]}),o[Jr("0x15")]()[Jr("0x12")](Jr("0xb"))[Jr("0xc")]())}))})),e._descriptionFactory[Jr("0xa")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Jr("0x9")]){const t=Yo(n,Jr("0x16"));return{type:"format",content:Yo(n,Jr("0x18"),t)}}}))}}const Zr=["registerPostFixer","editor","imageTypeBlock","toggleImageCaption","toPrevious","ImageStyleEditing","refresh","element","schema","nodeBefore","registerCustomCallback","isInContent","markBlockFormat","imageStylePreApply","getFirstRange","isEqual","document","_splitMarkerName","selection","toNext","chain","formatBlock","formatInline","getContainedElement","newRange","removeObject","getNearestSelectionRange","next","suggestion","imageStyle","caption","isOwn","ImageTextAlternativeEditing","accept","normalizedStyles","hasAttribute","Inline image to block image","Users","side","ImageResize","insertImage","isBlockImage","*Format:* %0","commandName","imageCaption","join","getAttribute","newValue","registerElementLabel","registerDescriptionCallback","ELEMENT_INLINE_IMAGE","commandParams","format","_descriptionFactory","has","forEach","commandReversedParams","ELEMENT_IMAGE","deletion","afterInit","*Set image text alternative:* %0","getSuggestions","imageTypeInline","imageStylePostApply","author","forward","*Reset image width*","isBefore","markDeletion","fromPosition","markInlineFormat","getClosestSelectedImageElement","start","addObject","ImageBlockEditing","toLowerCase","insertion","from","end","createRange","createRangeOn","alt","convertBlockImageToInline","hasSuggestion","forceDefaultExecution","backward","discardSuggestion","model","subType","markInsertion","locale","setImageNaturalSizeAttributes","resizedWidth","length","discard","detach","resizeImage","head","imageBlock","ImageInlineEditing","shouldConvertImageType","plugins","imageTextAlternative","getChangedMarkers","filter","commands","enableCommand","ImageCaptionEditing","findIndex","_suggestionFactory","type","change","find","nodeAfter","width","getSuggestion","get","value","ImageUtils","convertInlineImageToBlock","_findSuggestions"];var Yr,ti;Yr=Zr,ti=416,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x6")](){const t=this[ei("0x45")];if(!t[ei("0x30")][ei("0x1")]("ImageEditing"))return;const n=t.plugins[ei("0x3f")]("TrackChangesEditing"),o=t[ei("0x30")][ei("0x3f")](ei("0x41")),s={},r=t[ei("0x25")];if(n.enableCommand(ei("0x6c")),n[ei("0x0")][ei("0x74")](ei("0x2d"),(t=>Yo(r,ei("0x4"),t))),n[ei("0x0")][ei("0x74")]("imageInline",(t=>Yo(r,ei("0x76"),t))),n[ei("0x0")][ei("0x74")]("caption",(()=>Yo(r,"ELEMENT_CAPTION"))),t.plugins[ei("0x1")]("ImageUploadEditing")&&n.enableCommand("uploadImage"),t.plugins[ei("0x1")](ei("0x15"))&&t[ei("0x30")][ei("0x1")](ei("0x2e"))&&(n[ei("0x35")]("imageTypeInline",((e,s)=>{const r=o[ei("0x12")](t.model.document[ei("0x56")]);t[ei("0x22")].change((()=>{n.markBlockFormat(r,{commandName:ei("0x9"),commandParams:[s]},[],ei("0x1d"))}))})),n[ei("0x35")](ei("0x46"),((e,s)=>{t[ei("0x22")][ei("0x3a")]((r=>{let x=o[ei("0x12")](t[ei("0x22")][ei("0x54")].selection),a=r[ei("0x1b")](x);const c=i.LivePosition[ei("0x10")](a[ei("0x13")],ei("0x48")),l=i.LivePosition.fromPosition(a[ei("0x19")],ei("0x57"));n[ei("0x1f")]((()=>e(s))),x=o[ei("0x12")](t[ei("0x22")][ei("0x54")][ei("0x56")]),a=r[ei("0x1b")](x);const u=r.createRange(c,l);c.detach(),l[ei("0x2a")](),n[ei("0x50")](x,{commandName:ei("0x9"),commandParams:[s]},[],ei("0x42")),u[ei("0x13")].isBefore(a[ei("0x13")])&&n[ei("0x24")](r[ei("0x1a")](u[ei("0x13")],a.start),ei("0x42")),a[ei("0x19")][ei("0xe")](u[ei("0x19")])&&n[ei("0x24")](r[ei("0x1a")](a.end,u[ei("0x19")]),ei("0x42"))}))})),n._suggestionFactory[ei("0x4e")](ei("0x59"),ei("0x42"),ei("0x71"),(()=>!1)),n[ei("0x38")].registerCustomCallback("formatBlock",ei("0x42"),ei("0x65"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0x42"),ei("0x29"),n[ei("0x38")].getSuggestionCallback(ei("0x59"),"","accept")),n[ei("0x38")].registerCustomCallback(ei("0x17"),"convertInlineImageToBlock","join",(()=>!1)),n._suggestionFactory[ei("0x4e")](ei("0x17"),ei("0x42"),ei("0x29"),(([e])=>{const o=n[ei("0x38")].getSuggestionCallback(ei("0x17"),"",ei("0x29"));let s=e[ei("0x13")],r=e[ei("0x19")];const i=t.model[ei("0x4c")][ei("0x5e")](s,ei("0x20")),x=t.model[ei("0x4c")][ei("0x5e")](r,ei("0xc"));i.isCollapsed&&(s=i[ei("0x13")]),x.isCollapsed&&(r=x[ei("0x19")]),o([t[ei("0x22")][ei("0x1a")](s,r)])})),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0x42"),"chain",c),n._suggestionFactory[ei("0x4e")]("insertion",ei("0x42"),ei("0x58"),c)),t[ei("0x30")][ei("0x1")](ei("0x36"))&&(n[ei("0x35")](ei("0x47"),((e,s)=>{const r=t[ei("0x30")][ei("0x3f")]("ImageCaptionUtils");let i=o[ei("0x12")](t.model[ei("0x54")][ei("0x56")]),x=r.getCaptionFromImageModelElement(i);t[ei("0x22")][ei("0x3a")]((()=>{if(x)return void n[ei("0xf")](t.model[ei("0x1b")](x));const a=o[ei("0x6d")](i);e(s),i=o[ei("0x12")](t[ei("0x22")][ei("0x54")][ei("0x56")]),x=r.getCaptionFromImageModelElement(i),n[ei("0x24")](t[ei("0x22")][ei("0x1b")](x),a?null:ei("0x70"))}))})),n._suggestionFactory[ei("0x4e")](ei("0x17"),"imageCaption",ei("0x58"),c)),t[ei("0x30")][ei("0x1")](ei("0x49"))){n[ei("0x35")](ei("0x61"),((s,r)=>{const i=t[ei("0x30")].get(ei("0x69")).me,x=t[ei("0x34")][ei("0x3f")](ei("0x61"));let a=o[ei("0x12")](t.model.document.selection),c=t[ei("0x22")][ei("0x1b")](a),l=x[ei("0x40")];if(l==r[ei("0x40")])return;const u={commandName:ei("0x61"),commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x22")][ei("0x3a")]((()=>{if(n[ei("0x8")]()[ei("0x33")]((t=>t[ei("0x4f")]&&i==t[ei("0xb")]&&(ei("0x59")==t.type||ei("0x5a")==t[ei("0x39")])&&(ei("0x51")==t.subType||"imageStylePostApply"==t[ei("0x23")])&&t[ei("0x52")]()[ei("0x53")](c)))[ei("0x2")]((t=>n[ei("0x21")](t[ei("0x2c")]))),a=o[ei("0x12")](t[ei("0x22")][ei("0x54")].selection),c=t[ei("0x22")][ei("0x1b")](a),x.refresh(),t[ei("0x34")][ei("0x3f")]("imageTypeInline")[ei("0x4a")](),t[ei("0x34")][ei("0x3f")](ei("0x46")).refresh(),l=x[ei("0x40")],l!=r[ei("0x40")])return o.isInlineImage(a)&&x[ei("0x2f")](r[ei("0x40")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x12")](t[ei("0x22")].document.selection),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x51"))):void(o[ei("0x6d")](a)?n[ei("0x50")](a,u,[],ei("0xa")):n[ei("0x11")](c,u,"imageStylePostApply"))}))}));for(const e of t[ei("0x30")][ei("0x3f")]("ImageStyleEditing")[ei("0x66")])s[e.name]=e.title[ei("0x16")]();n[ei("0x38")][ei("0x4e")]("formatBlock",ei("0x51"),ei("0x71"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x59"),ei("0xa"),ei("0x71"),(()=>!1)),n[ei("0x38")][ei("0x4e")](ei("0x5a"),ei("0xa"),ei("0x71"),(()=>!1)),n._suggestionFactory[ei("0x4e")](ei("0x59"),ei("0x51"),ei("0x65"),(([t])=>{o[ei("0x26")](t[ei("0x5b")]())})),n[ei("0x38")].registerCustomCallback("formatBlock","imageStylePreApply","discard",((t,e)=>{n[ei("0x38")].getSuggestionCallback(ei("0x59"),"",ei("0x65"))(t,{commandName:e[ei("0x6f")],commandParams:e[ei("0x3")]})})),n[ei("0x38")][ei("0x4e")]("formatBlock",ei("0x51"),ei("0x58"),c)}const x=[{type:ei("0x59"),subType:"imageStylePreApply"},{type:ei("0x17"),subType:"imageCaption"},{type:ei("0x59"),subType:ei("0x42")},{type:"insertion",subType:ei("0x42")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t.type==e&&t[ei("0x23")]==n)),r=x[ei("0x37")]((({type:t,subType:n})=>e[ei("0x39")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x52")](),a=e[ei("0x52")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x43")](i,ei("0x17"))[ei("0x33")]((({suggestion:t,meta:e})=>e[ei("0x63")]&&ei("0x42")==t.subType));if(t.length>1&&a[ei("0x19")][ei("0x53")](i[ei("0x13")]))return!0;if(1==t[ei("0x28")]&&(i[ei("0x13")][ei("0x53")](a[ei("0x19")])||i.end[ei("0x53")](a[ei("0x13")])))return!0}if(3==s&&3==r&&i[ei("0x13")][ei("0xe")](a[ei("0x13")])){const t=i[ei("0x19")][ei("0x3c")],e=a[ei("0x13")][ei("0x4d")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x22")][ei("0x54")][ei("0x44")]((()=>{let e=!1;const s=Array[ei("0x18")](t[ei("0x22")][ei("0x54")].differ[ei("0x32")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x55")](t);if(ei("0x60")==s&&n[ei("0x1e")](a)){if("formatBlock"==i&&(ei("0x51")==x||ei("0xa")==x)){const t=n[ei("0x3e")](a);if(r[ei("0x5c")]){const s=t[ei("0x52")]()[ei("0x5b")]();if(o.isBlockImage(s))continue;n[ei("0x21")](t),e=!0}}if(ei("0x17")==i&&ei("0x70")==x&&!r[ei("0x5c")]){const t=n[ei("0x3e")](a);t[ei("0x5f")]&&t[ei("0x5f")][ei("0x4f")]&&(n[ei("0x21")](t.next),e=!0)}}}return e})),t.plugins.has(ei("0x6b"))&&n.enableCommand(ei("0x2b"),((e,s)=>{const r=o[ei("0x12")](t.model[ei("0x54")][ei("0x56")]);r.getAttribute(ei("0x27"))!=s.width&&t[ei("0x22")][ei("0x3a")]((()=>{n.markBlockFormat(r,{commandName:ei("0x2b"),commandParams:[s]})}))})),t[ei("0x30")][ei("0x1")](ei("0x64"))&&n[ei("0x35")](ei("0x31"),((e,s)=>{const r=o[ei("0x12")](t[ei("0x22")].document[ei("0x56")]);(r[ei("0x67")](ei("0x1c"))?r[ei("0x72")](ei("0x1c")):"")!=s.newValue&&t[ei("0x22")][ei("0x3a")]((()=>{n.markBlockFormat(r,{commandName:ei("0x31"),commandParams:[s]})}))})),n[ei("0x0")].registerDescriptionCallback((t=>{if(x[ei("0x3b")]((({type:e,subType:n})=>t[ei("0x39")]==e&&t[ei("0x23")]==n)))return t.previous?{}:void 0})),n[ei("0x0")][ei("0x75")]((t=>{if(ei("0x17")==t[ei("0x39")]||ei("0x5")==t[ei("0x39")]){const e=t[ei("0x5b")]();if(e&&e.is(ei("0x4b"),ei("0x62")))return{type:ei("0x17")==t.type?ei("0x14"):ei("0x5d"),element:e,quantity:1}}})),n._descriptionFactory[ei("0x75")]((t=>"formatBlock"==t[ei("0x39")]&&ei("0x42")==t.subType?{type:ei("0x78"),content:ei("0x68")}:ei("0x59")==t[ei("0x39")]&&ei("0x1d")==t[ei("0x23")]?{type:ei("0x78"),content:"Block image to inline image"}:void 0)),n[ei("0x0")][ei("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[ei("0x6f")]){const t=e[ei("0x77")][0][ei("0x40")];return n=ei("0x6a")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:"format",content:Yo(r,ei("0x6e"),n)}}if(ei("0x31")==e.commandName){const t=e.commandParams[0][ei("0x73")];return t?{type:ei("0x78"),content:Yo(r,ei("0x7"),'"'+t+'"')}:{type:ei("0x78"),content:Yo(r,"*Remove image text alternative*")}}if(ei("0x2b")==e.commandName){const t=e[ei("0x77")][0][ei("0x3d")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0x78"),content:Yo(r,ei("0xd"))}}}var n}))}}const oi=["src","registerCustomCallback","commandParams","document","getContainedElement","_suggestionFactory","enableCommand","editor","registerDescriptionCallback","formatBlock","locale","TrackChangesEditing","author","has","handleSuggestionDescription","commandName","getAttribute","getSelectedElement","get","_descriptionFactory","format","model","change","replaceImageSource","subType","selection","accept","discard","handleReplaceImageCommand","source","getSuggestionCallback","*Format:* replace image URL","plugins","markBlockFormat","Users"];var si,ri;si=oi,ri=423,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this.editor[ii("0x1d")][ii("0xa")]("ImageEditing"))return;const t=this[ii("0x4")].plugins[ii("0xf")]("TrackChangesEditing");t[ii("0x3")](ii("0x14"),((t,e)=>this[ii("0x19")](t,e))),t._suggestionFactory[ii("0x21")](ii("0x6"),ii("0x14"),ii("0x17"),t[ii("0x2")][ii("0x1b")](ii("0x6"),null,ii("0x18"))),t[ii("0x2")][ii("0x21")](ii("0x6"),ii("0x14"),ii("0x18"),t[ii("0x2")].getSuggestionCallback(ii("0x6"),null,ii("0x17"))),t[ii("0x10")][ii("0x5")]((t=>this.handleSuggestionDescription(t)))}[ii("0x19")](t,e){const n=this[ii("0x4")][ii("0x1d")][ii("0xf")](ii("0x8")),o=this[ii("0x4")][ii("0x12")][ii("0x0")][ii("0x16")][ii("0xe")]();this[ii("0x4")][ii("0x12")][ii("0x13")]((()=>{let s=o[ii("0xd")](ii("0x20"));const r=this[ii("0x4")].plugins.get(ii("0x1f")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ii("0x1")]();if(ii("0x14")===t[ii("0x15")]&&e===o){t[ii("0x9")]!==r&&t[ii("0x18")](),s=t.data[ii("0x22")][0][ii("0x1a")];break}}t(e),n[ii("0x1e")](o,{commandName:ii("0x14"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0xb")](t){const{data:e}=t;if(e&&ii("0x14")===e[ii("0xc")]){const t=ii("0x1c");return{type:ii("0x11"),content:Yo(this[ii("0x4")][ii("0x7")],t)}}}}const ai=["plugins","_trackChangesExecuted","enableCommand","bind","importWord","_setSuggestionData","listenTo","track_changes","get","_trackChangesValueDuringImport","lowest","execute","editor","value","dataInsert","_handleImportedData","high","forEach","trackChanges","commands"];var ci,li;ci=ai,li=470,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{constructor(t){super(t),this[ui("0x13")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[ui("0x2")],e=t[ui("0x9")][ui("0x12")](ui("0xe")),n=t[ui("0x9")].get(ui("0x8"));e&&(e.on(ui("0x1"),((t,[,e])=>{this[ui("0x13")]=n[ui("0x3")],e.collaboration_features[ui("0x11")]=!this[ui("0x13")]}),{priority:ui("0x6")}),this[ui("0x10")](e,ui("0x4"),this[ui("0x5")][ui("0xd")](this)),this[ui("0x10")](e,ui("0x4"),(()=>{this[ui("0xb")]&&(n[ui("0x1")](),this[ui("0xb")]=!1)}),{priority:ui("0x0")}),t[ui("0xa")][ui("0x12")]("TrackChangesEditing")[ui("0xc")](ui("0xe")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[ui("0x12")](ui("0x8")),s=o.value;this[ui("0x13")]!==s&&(o[ui("0x1")](),this[ui("0xb")]=!0),n&&n[ui("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ui("0xa")][ui("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ui("0xe")}}};this[ui("0x2")][ui("0xa")][ui("0x12")]("TrackChangesEditing")[ui("0xf")](s)}))}}const gi=["enableCommand","TrackChangesEditing","editor","model","commandName","change","has","indent","format","indentBlock","schema","_descriptionFactory","plugins","afterInit","locale","document","outdent","markBlockFormat","IndentEditing","checkAttribute","getItems","from","getSelectedBlocks","outdentBlock","blockIndent","registerDescriptionCallback","selection","*Outdent:* %0","*Indent:* %0","get"];var fi,mi;fi=gi,mi=362,function(t){for(;--t;)fi.push(fi.shift())}(++mi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0xb")](){const t=this[hi("0x0")],e=t[hi("0xa")][hi("0x1b")](hi("0x1d"));t[hi("0xa")][hi("0x4")](hi("0x10"))&&(e.enableCommand(hi("0x5")),e.enableCommand(hi("0xe")));const n=t[hi("0xc")];if(t[hi("0xa")][hi("0x4")]("IndentBlock")){for(const n of[hi("0x7"),hi("0x15")])e[hi("0x1c")](n,(()=>{const o=Array[hi("0x13")](this[hi("0x0")][hi("0x1")][hi("0xd")][hi("0x18")][hi("0x14")]()).filter((t=>this[hi("0x0")].model[hi("0x8")][hi("0x11")](t,hi("0x16"))));t[hi("0x1")][hi("0x3")]((()=>{for(const t of o)e[hi("0xf")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[hi("0x17")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x7")!=o[hi("0x2")]&&hi("0x15")!=o[hi("0x2")])return;const s=t[hi("0x12")]()[0],r=e[hi("0x9")].getItemLabel(s);return hi("0x7")==o[hi("0x2")]?{type:hi("0x6"),content:Yo(n,hi("0x1a"),r)}:hi("0x15")==o[hi("0x2")]?{type:hi("0x6"),content:Yo(n,hi("0x19"),r)}:void 0}))}}}var bi,Ei,_i=["plugins","enableCommand","requires","TrackChangesEditing","input"];bi=_i,Ei=347,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x0")](){return[Js.Input]}init(){this.editor[Ti("0x3")].get(Ti("0x1"))[Ti("0x4")](Ti("0x2"))}}const yi=["hasAttribute","format","document","commandParams","locale","from","editor","afterInit","getFirstPosition","getAttribute","has","isCollapsed","commandName","model","unlink","registerDescriptionCallback","enableCommand","plugins","_descriptionFactory","LinkEditing","change","get","linkHref","TrackChangesEditing","*Remove link*","getFirstRange","markInlineFormat","*Set link:* %0","link"];var ki,Ai;ki=yi,Ai=194,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x10")](){const t=this.editor;if(!t[vi("0x1a")][vi("0x13")](vi("0x1c")))return;const e=t[vi("0x1a")][vi("0x1")](vi("0x3"));e[vi("0x19")](vi("0x8"),((n,o)=>{const s=t[vi("0x16")].document.selection;let r=[];if(s[vi("0x14")]){if(!s[vi("0x9")]("linkHref"))return void n(o);{const e=(0,Js.findAttributeRange)(s.getFirstPosition(),vi("0x2"),s[vi("0x12")](vi("0x2")),t.model);r=[e]}}else r=Array[vi("0xe")](s.getRanges());t[vi("0x16")][vi("0x0")]((()=>{for(const t of r)e[vi("0x6")](t,{commandName:vi("0x8"),commandParams:[o]})}))})),e[vi("0x19")](vi("0x17"),(()=>{const n=this[vi("0xf")].model,o=n[vi("0xb")].selection;n.change((()=>{let n=[];n=o[vi("0x14")]?[(0,Js.findAttributeRange)(o[vi("0x11")](),vi("0x2"),o[vi("0x12")](vi("0x2")),t[vi("0x16")])]:Es(vi("0x2"),o[vi("0x5")](),t[vi("0x16")]);for(const t of n)e[vi("0x6")](t,{commandName:vi("0x17"),commandParams:[]})}))})),e[vi("0x1b")][vi("0x18")]((e=>{const{data:n}=e,o=t[vi("0xd")];if(n){if(vi("0x8")==n[vi("0x15")]){const t=n[vi("0xc")][0];return{type:vi("0xa"),content:Yo(o,vi("0x7"),'"'+t+'"')}}return vi("0x17")==n[vi("0x15")]?{type:"format",content:Yo(o,vi("0x4"))}:void 0}}))}}const Ii=["todoList","registerElementLabel","before","replace","name","paragraph","commandParams","nextSibling","checkChild","element","ListEditing","getAttribute","ELEMENT_LIST_ITEM","get","end","List","from","listType","listIndent","TodoListEditing","createPositionAt","add","selection","bulleted","has","checkTodoList","numbered","commandName","*Uncheck item*","registerDescriptionCallback","listItem","previousSibling","*Indent:* %0","document","_descriptionFactory","markBlockFormat","format","change","enableCommand","commands","execute","indentList","value","todo","ELEMENT_BULLETED_LIST","*Check item*","slice","parent","getSelectedBlocks","numberedList","createRange","_selectedElements","model","editor","plugins","filter","TrackChangesEditing","forceValue","bulletedList"];var Si,Li;Si=Ii,Li=474,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{afterInit(){const t=this[Ni("0x33")],e=t.locale;if(!t[Ni("0x34")][Ni("0x16")](Ni("0x8")))return;const n=t[Ni("0x34")][Ni("0xb")](Ni("0x36")),o=t[Ni("0x34")].has(Ni("0x11"));function s(e){return()=>{const o=t[Ni("0x32")][Ni("0x1f")][Ni("0x14")],s=t[Ni("0x25")].get(e);if(s[Ni("0x28")])return void t[Ni("0x26")](Ni("0x3"),{});const r=e[Ni("0x2c")](0,-4),i=function(t,e,n){let o=Array[Ni("0xe")](t).filter((t=>{return e=t,(o=n)[Ni("0x6")](e[Ni("0x2d")],"listItem")&&!o.isObject(e);var e,o}));o=o[Ni("0x35")]((t=>!t.is(Ni("0x7"),Ni("0x1c"))||t.getAttribute(Ni("0xf"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x7"),Ni("0x1c"))?s[Ni("0x13")](Mi(t)):s[Ni("0x13")](t);return Array[Ni("0xe")](s)}(o[Ni("0x2e")](),r,t[Ni("0x32")].schema);t[Ni("0x32")].change((()=>{for(const t of i)n[Ni("0x21")](t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x28")]}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0xe")](t);const n=e.findIndex((t=>Ni("0x1c")!=t.name));return n>-1&&(e=e[Ni("0x2c")](0,n)),e}(t[Ni("0x32")].document[Ni("0x14")][Ni("0x2e")]()),s=t.model[Ni("0x30")](t[Ni("0x32")][Ni("0x12")](o[0],Ni("0x0")),t[Ni("0x32")][Ni("0x12")](o[o.length-1],Ni("0xc")));t[Ni("0x32")][Ni("0x23")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:Ni("0x10")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ni("0x9")]("listIndent")>n[Ni("0x9")]("listIndent");)e[Ni("0x13")](t),t=t[Ni("0x5")]}return Array[Ni("0xe")](e)}(o))}))}}n[Ni("0x24")](Ni("0x2f"),s(Ni("0x2f"))),n[Ni("0x24")](Ni("0x38"),s(Ni("0x38"))),o&&n[Ni("0x24")]("todoList",s(Ni("0x39"))),n[Ni("0x24")](Ni("0x27"),r(Ni("0x27"))),n[Ni("0x24")]("outdentList",r("outdentList")),o&&n[Ni("0x24")]("checkTodoList",(()=>{const e=t.commands[Ni("0xb")]("checkTodoList"),o=Array.from(e[Ni("0x31")]);o[Ni("0x35")]((t=>t.getAttribute("todoListChecked")!=e.value)),t[Ni("0x32")][Ni("0x23")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ni("0x17"),commandParams:[{forceValue:!e.value}]})}))})),n[Ni("0x20")][Ni("0x3a")](Ni("0x1c"),(t=>Yo(e,Ni("0xa"),t))),n[Ni("0x20")][Ni("0x1b")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ni("0x19")]||Ni("0x38")==n[Ni("0x19")]||Ni("0x39")==n[Ni("0x19")])switch(n[Ni("0x19")][Ni("0x1")](Ni("0xd"),"")){case Ni("0x15"):return o(Yo(e,Ni("0x2a")));case Ni("0x18"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ni("0x29"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n.commandName)return{type:Ni("0x22"),content:Yo(e,Ni("0x1e"),Yo(e,Ni("0xa")))};if("outdentList"==n.commandName)return{type:Ni("0x22"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0xa")))};if("checkTodoList"==n.commandName)return n[Ni("0x4")][0][Ni("0x37")]?{type:Ni("0x22"),content:Yo(e,Ni("0x2b"))}:{type:"format",content:Yo(e,Ni("0x1a"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Mi(t){const e=t.getAttribute(Ni("0x10"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ni("0x1d")].is(Ni("0x7"),Ni("0x1c"));){const o=t[Ni("0x1d")].getAttribute(Ni("0x10"));if(o==e)n=t[Ni("0x1d")];else if(o<e)break;t=t[Ni("0x1d")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x7"),Ni("0x1c"))&&t[Ni("0x9")](Ni("0x10"))>0){let n=t[Ni("0x5")];for(;n&&Ni("0x1c")==n[Ni("0x2")]&&n[Ni("0x9")]("listIndent")==t.getAttribute(Ni("0x10"));)e.push(n),n=n[Ni("0x5")]}return e}const Fi=["TrackChangesEditing","handleListStartCommand","*Format:* set order to reversed","toUpperCase","numbered","commandParams","locale","list.properties","getLastPosition","listItem","_LIST_","selection","type","_descriptionFactory","element","editor","bind","replace","getSiblingNodes","commandName","get","listType","ListUtils","push","createRange","change","length","*Format:* set start index to %0","reversed","markMultiRangeBlockFormat","createPositionAt","filter","plugins","*Format:* set order to regular","forward","_getSuggestionBlocks","document","from","listStart","getListTypeFromListStyleType","before","handleListStyleCommand","ListPropertiesEditing","backward","*Change to:* %0","handleListReversedCommand","_getSuggestionBlocksForListStyle","_getTranslationKeyForListStyle","afterInit","getFirstPosition","startIndex","format","listStyle","listReversed","has","model","registerDescriptionCallback","config","handleDescriptions","map","getSelectedBlocks","ELEMENT_","getAttribute","enableCommand","flat"];var Pi,Di;Pi=Fi,Di=254,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x36")](){if(!this[Bi("0x15")][Bi("0x26")][Bi("0x3c")](Bi("0x30")))return;const t=this[Bi("0x15")][Bi("0x3f")][Bi("0x1a")](Bi("0xd")),e=this[Bi("0x15")].plugins.get(Bi("0x6"));t.styles&&e[Bi("0x4")](Bi("0x3a"),this.handleListStyleCommand[Bi("0x16")](this)),t[Bi("0x22")]&&e[Bi("0x4")]("listReversed",this[Bi("0x33")].bind(this)),t[Bi("0x38")]&&e[Bi("0x4")](Bi("0x2c"),this[Bi("0x7")][Bi("0x16")](this)),e[Bi("0x13")][Bi("0x3e")](this[Bi("0x40")].bind(this))}[Bi("0x2f")](t,e={}){const n=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this[Bi("0x34")]();this[Bi("0x15")][Bi("0x3d")][Bi("0x1f")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:Bi("0x3a")})}))}handleListReversedCommand(t,e={}){const n=this.editor[Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is(Bi("0x14"),Bi("0xf"))&&Bi("0xa")===t[Bi("0x3")](Bi("0x1b"))));if(o.length<1)return;const s=o[Bi("0x0")]((t=>this[Bi("0x15")][Bi("0x3d")].createRange(this.editor[Bi("0x3d")].createPositionAt(t,Bi("0x2e")),this[Bi("0x15")].model[Bi("0x24")](t,0))));this.editor[Bi("0x3d")][Bi("0x1f")]((()=>{n[Bi("0x23")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[Bi("0x7")](t,e={}){const n=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("TrackChangesEditing"),o=this[Bi("0x29")]((t=>t.is("element",Bi("0xf"))&&"numbered"===t[Bi("0x3")]("listType")));if(o[Bi("0x20")]<1)return;const s=o[Bi("0x0")]((t=>this[Bi("0x15")][Bi("0x3d")][Bi("0x1e")](this[Bi("0x15")][Bi("0x3d")][Bi("0x24")](t,Bi("0x2e")),this[Bi("0x15")].model[Bi("0x24")](t,0))));this.editor.model[Bi("0x1f")]((()=>{n[Bi("0x23")](s,{commandName:Bi("0x2c"),commandParams:[{startIndex:e[Bi("0x38")]}],formatGroupId:"listStart"})}))}[Bi("0x40")](t){const e=this.editor[Bi("0xc")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x19")]){case Bi("0x3a"):o=Bi("0x32"),s={type:Bi("0x39"),content:Yo(e,o,Yo(e,this[Bi("0x35")](n[Bi("0xb")][0][Bi("0x12")])))};break;case Bi("0x3b"):o=n[Bi("0xb")][0][Bi("0x22")]?Bi("0x8"):Bi("0x27"),s={type:Bi("0x39"),content:Yo(e,o)};break;case Bi("0x2c"):o=Bi("0x21"),s={type:"format",content:Yo(e,o,n[Bi("0xb")][0][Bi("0x38")])}}return s}[Bi("0x34")](){var t,e,n,o;const s=this[Bi("0x15")][Bi("0x26")].get(Bi("0x1c"));let r=Array.from(this[Bi("0x15")].model[Bi("0x2a")][Bi("0x11")][Bi("0x1")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Bi("0x18")](this[Bi("0x15")].model.document[Bi("0x11")][Bi("0x37")](),Bi("0x31"))),(null===(e=r[r[Bi("0x20")]-1])||void 0===e?void 0:e.is(Bi("0x14"),Bi("0xf")))&&r[Bi("0x1d")](...s[Bi("0x18")](this.editor[Bi("0x3d")][Bi("0x2a")][Bi("0x11")][Bi("0xe")](),Bi("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x15")][Bi("0x3d")][Bi("0x2a")][Bi("0x11")][Bi("0x37")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Bi("0x14"),Bi("0xf")))&&(r=r[Bi("0x25")]((t=>t.is(Bi("0x14"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Bi("0x15")][Bi("0x26")][Bi("0x1a")]("ListUtils");let n=Array[Bi("0x2b")](this[Bi("0x15")].model[Bi("0x2a")][Bi("0x11")][Bi("0x1")]())[Bi("0x25")](t).map((t=>{const n=this[Bi("0x15")][Bi("0x3d")][Bi("0x24")](t,0);return[...e[Bi("0x18")](n,Bi("0x31")),...e[Bi("0x18")](n,Bi("0x28"))]}))[Bi("0x5")]();return n=[...new Set(n)],n}[Bi("0x35")](t){return Bi("0x2")+this.editor[Bi("0x26")].get(Bi("0x1c"))[Bi("0x2d")](t)[Bi("0x9")]()+Bi("0x10")+t[Bi("0x9")]()[Bi("0x17")](/-/g,"_")}}const Ui=["div","showSuggestionHighlights","dataDowncast","enableCommand","editor","elementToElement","conversion","plugins","_descriptionFactory","MediaEmbedEditing","ELEMENT_MEDIA","afterInit","TrackChangesEditing","stop","downcastDispatcher","data","createEmptyElement","media","mediaEmbed","high","registerElementLabel","for","options"];var Gi,Hi;Gi=Ui,Hi=445,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x3")](){const t=this[Wi("0x13")];if(!t[Wi("0x16")].has(Wi("0x1")))return;const e=t[Wi("0x16")].get(Wi("0x4")),n=t.locale;e[Wi("0x12")](Wi("0xa")),e[Wi("0x0")][Wi("0xc")](Wi("0x9"),(t=>Yo(n,Wi("0x2"),t))),t[Wi("0x15")][Wi("0xd")](Wi("0x11"))[Wi("0x14")]({model:Wi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Wi("0x10")])return e[Wi("0x8")](Wi("0xf"))},converterPriority:Wi("0xb")}),t[Wi("0x7")][Wi("0x6")].on("attribute:url:media",((t,e,n)=>{n[Wi("0xe")].showSuggestionHighlights&&t[Wi("0x5")]()}),{priority:"high"})}}const Vi=["MentionEditing","mention","has","TrackChangesEditing","editor","plugins","enableCommand"];var Ki,qi;Ki=Vi,qi=457,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];t[Xi("0x3")][Xi("0x0")](Xi("0x5"))&&t[Xi("0x3")].get(Xi("0x1"))[Xi("0x4")](Xi("0x6"))}}const Ji=["registerElementLabel","_descriptionFactory","TrackChangesEditing","pageBreak","editor","plugins","get","ELEMENT_PAGE_BREAK","enableCommand"];var Qi,Zi;Qi=Ji,Zi=349,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x6")];if(!t[Yi("0x7")].has("PageBreakEditing"))return;t[Yi("0x7")][Yi("0x8")](Yi("0x4"))[Yi("0x1")](Yi("0x5"));const e=t.plugins[Yi("0x8")](Yi("0x4")),n=t.locale;e[Yi("0x3")][Yi("0x2")]("pageBreak",(t=>Yo(n,Yi("0x0"),t)))}}const ex=["end","span","isObject","getFirstRange","TrackChangesEditing","schema","toViewPosition","name","registerElementLabel","isLimit","markerRange","downcastDispatcher","format","filter","paragraph","Paragraph","bindElementToMarker","registerDescriptionCallback","getItemLabel","markBlockFormat","insertParagraph","ck-suggestion-marker-split","plugins","*Change to:* %0","document","afterInit","_descriptionFactory","ELEMENT_PARAGRAPH","start","addClass","consume","activeMarkers","insertion","includes","isTouching","enableCommand","has","checkChild","createUIElement","addMarker:suggestion:insertion","editor","nodeAfter","model","isBlock","options","get","data","locale","ck-suggestion-marker--active","type","highest","writer","change","from","parent","markerName","blockName"];var nx,ox;nx=ex,ox=297,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0xd")](){const t=this.editor;if(!t.plugins[sx("0x18")](sx("0x3")))return;const e=t[sx("0x23")],n=t[sx("0xa")][sx("0x21")](sx("0x31"));n._descriptionFactory[sx("0x35")](sx("0x2"),(t=>Yo(e,sx("0xf"),t))),n[sx("0x17")](sx("0x2"),((e,o={})=>{const s=t[sx("0x1e")][sx("0xc")],r=o.selection||s.selection,i=Array[sx("0x29")](r.getSelectedBlocks())[sx("0x1")]((t=>{return e=t,(n=this[sx("0x1c")].model.schema).checkChild(e[sx("0x2a")],sx("0x2"))&&!n[sx("0x2f")](e)&&sx("0x2")!=e[sx("0x34")];var e,n}));t[sx("0x1e")][sx("0x28")]((()=>{for(const t of i)n[sx("0x7")](t,{commandName:sx("0x2"),commandParams:[],formatGroupId:sx("0x2c")},_s(t))}))})),n[sx("0xe")][sx("0x5")]((t=>{const{data:n}=t;if(n&&sx("0x2")==n.commandName)return{type:sx("0x0"),content:Yo(e,sx("0xb"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[sx("0x17")](sx("0x8")),t.editing.downcastDispatcher.on(sx("0x1b"),ix(t),{priority:sx("0x26")}),t[sx("0x22")][sx("0x38")].on(sx("0x1b"),((e,n,o)=>{o[sx("0x20")].showSuggestionHighlights&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x26")});const o=n._descriptionFactory;o[sx("0x5")]((n=>{if(sx("0x14")!==n[sx("0x25")])return;const{start:s,end:r}=n[sx("0x30")]();if(!s[sx("0x16")](r)||!s.nodeAfter)return;const i=t.model.schema,x=s[sx("0x1d")];return i[sx("0x1f")](x)&&!i[sx("0x36")](x)&&i[sx("0x19")](x,"$text")?{type:sx("0x14"),content:Yo(e,"*Insert:* %0",o[sx("0x6")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0xa")][sx("0x21")](sx("0x31")),i=o[sx("0x37")][sx("0x10")],x=o[sx("0x37")][sx("0x2d")],a=t.model[sx("0x32")];if(!i[sx("0x16")](x)||!i.nodeAfter)return;const c=i[sx("0x1d")];if(a[sx("0x1f")](c)&&!a[sx("0x36")](c)&&a.checkChild(c,"$text")){if(!s.consumable[sx("0x12")](o.markerRange,n[sx("0x34")]))return;const t=s[sx("0x27")][sx("0x1a")](sx("0x2e"),{class:sx("0x9")}),i=s.mapper[sx("0x33")](x);e&&r[sx("0x13")][sx("0x15")](o[sx("0x2b")])&&s[sx("0x27")][sx("0x11")](sx("0x24"),t),s[sx("0x27")].insert(i,t),s.mapper[sx("0x4")](t,o[sx("0x2b")])}}}const xx=["commandName","change","removeFormat","isFormatting","afterInit","enableCommand","editor","getRanges","selection","createRangeOn","RemoveFormatEditing","getAttributeProperties","TrackChangesEditing","schema","registerDescriptionCallback","getAttributes","format","markInlineFormat","plugins","*Remove all formatting*","get","has"];var ax,cx;ax=xx,cx=495,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{[lx("0xf")](){const t=this[lx("0x11")];if(!t[lx("0x7")][lx("0xa")](lx("0x15")))return;const e=t[lx("0x7")][lx("0x9")](lx("0x1"));e[lx("0x10")](lx("0xd"),(n=>{const o=t.model.document[lx("0x13")];o.isCollapsed?n():t.model[lx("0xc")]((()=>{const n=Array.from(o[lx("0x12")]());for(const o of n)for(const n of o.getItems())dx(n,t.model[lx("0x2")])&&e[lx("0x6")](t.model[lx("0x14")](n),{commandName:lx("0xd"),commandParams:[]})}))})),e._descriptionFactory[lx("0x3")]((e=>{const{data:n}=e;if(n&&lx("0xd")==n[lx("0xb")])return{type:lx("0x5"),content:Yo(t.locale,lx("0x8"))}}))}}function dx(t,e){for(const[n]of t[lx("0x4")]()){const t=e[lx("0x0")](n);if(t&&t[lx("0xe")])return!0}return!1}const gx=["discardAllSuggestions","has","acceptSelectedSuggestions","RestrictedEditingModeEditing","acceptSuggestion","acceptAllSuggestions","enableCommand","plugins","discardSuggestion","trackChanges","editor","discardSelectedSuggestions","get"];var fx,mx;fx=gx,mx=448,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{afterInit(){const t=this[hx("0x4")];if(!t[hx("0x1")][hx("0x8")](hx("0xa")))return;const e=t[hx("0x1")][hx("0x6")]("TrackChangesEditing");e[hx("0x0")]("goToPreviousRestrictedEditingException"),e.enableCommand("goToNextRestrictedEditingException");const n=t[hx("0x1")].get("RestrictedEditingModeEditing");n[hx("0x0")](hx("0x3")),n[hx("0x0")](hx("0xb")),n[hx("0x0")](hx("0x2")),n[hx("0x0")](hx("0xc")),n[hx("0x0")](hx("0x7")),n[hx("0x0")](hx("0x9")),n.enableCommand(hx("0x5"))}}const bx=["high","toViewPosition","ck-suggestion-marker--active","enableCommand","TrackChangesEditing","init","createPositionBefore","markerRange","bindElementToMarker","test","options","registerElementLabel","span","addClass","ELEMENT_LINE_BREAK","softBreak","mapper","activeMarkers","get","showSuggestionHighlights","addMarker:suggestion","requires","downcastDispatcher","shiftEnter","plugins","deletion","name","addMarker:suggestion:insertion","editor","includes","insert","writer","markerName","merge","editing","split","ck-suggestion-marker-"];var Ex,_x;Ex=bx,_x=490,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0xc")](){return[xr.ShiftEnter]}[Tx("0x21")](){const t=this[Tx("0x13")],e=t.plugins[Tx("0x9")](Tx("0x20"));e[Tx("0x1f")](Tx("0xe")),t[Tx("0x19")][Tx("0xd")].on(Tx("0x12"),yx(t),{priority:Tx("0x1c")}),t[Tx("0x19")][Tx("0xd")].on("addMarker:suggestion:deletion",yx(t),{priority:Tx("0x1c")}),t.data.downcastDispatcher.on(Tx("0xb"),((e,n,o)=>{o[Tx("0x1")][Tx("0xa")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Tx("0x2")](Tx("0x6"),(e=>Yo(t.locale,Tx("0x5"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0xf")][Tx("0x9")]("TrackChangesEditing");if(!s.consumable[Tx("0x0")](o[Tx("0x23")],n[Tx("0x11")]))return;const i=t.model;for(const t of o.markerRange.getItems()){if(!t.is("element","softBreak"))continue;const n=Tx("0x10")==o[Tx("0x17")][Tx("0x1a")](":")[1]?Tx("0x18"):Tx("0x1a"),x=s[Tx("0x16")].createUIElement(Tx("0x3"),{class:Tx("0x1b")+n}),a=s[Tx("0x7")][Tx("0x1d")](i[Tx("0x22")](t));e&&r[Tx("0x8")][Tx("0x14")](o[Tx("0x17")])&&s[Tx("0x16")][Tx("0x4")](Tx("0x1e"),x),s[Tx("0x16")][Tx("0x15")](a,x),s.mapper[Tx("0x24")](x,o[Tx("0x17")])}}}const kx=["commands","plugins","getRanges","FORMAT_RESTRICTED_ENABLED","from","commandParams","FORMAT_RESTRICTED_DISABLED","restrictedEditingException","forceValue","enableCommand","StandardEditingModeEditing","afterInit","commandName","get","has","document","format","value","selection","TrackChangesEditing","model","_descriptionFactory","markInlineFormat"];var Ax,vx;Ax=kx,vx=499,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x12")](){const t=this.editor,e=t[Rx("0x4")],n=t.locale;if(!t[Rx("0x8")][Rx("0x15")](Rx("0x11")))return;const o=t[Rx("0x8")].get(Rx("0x3")),s=Rx("0xe"),r=t[Rx("0x7")][Rx("0x14")](s);o[Rx("0x10")](s,((t,n={})=>{const i=e[Rx("0x16")][Rx("0x2")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Rx("0xf")]:!r[Rx("0x1")];e.change((()=>{const t=Array[Rx("0xb")](i[Rx("0x9")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x6")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x5")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Rx("0x13")]==s)return e[Rx("0xc")][0][Rx("0xf")]?{type:Rx("0x0"),content:Yo(n,Rx("0xa"))}:{type:"format",content:Yo(n,Rx("0xd"))}}))}}const Sx=["value","includes","_getStyleDefinition","isBlock","config","every","commands","TrackChangesEditing","registerDescriptionCallback","selection","forceValue","markBlockFormat","format","from","style.definitions","markInlineFormat","name","find","getAttribute","createRangeOn","style:","getSelectedBlocks","enabledStyles","getDefinitionsForView","classes","plugins","block","getAncestors","isCollapsed","style","Style","*Remove format:* %0","commandParams","getItems","getRanges","modelElements","element","normalizeConfig","change","editor","styleName","model","get"];var Lx,Nx;Lx=Sx,Nx=252,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{afterInit(){const t=this[wx("0x2")];if(!t[wx("0x1f")].has(wx("0x24")))return;const e=t[wx("0xc")][wx("0x5")](wx("0x23")),n=t[wx("0x1f")][wx("0x5")](wx("0xd")),o=t.locale,s=t.plugins[wx("0x5")]("DataSchema"),r=t.plugins[wx("0x5")]("StyleUtils")[wx("0x0")](s,t[wx("0xa")][wx("0x5")](wx("0x14")));n.enableCommand(wx("0x23"),((o,{styleName:i})=>{const x=t[wx("0x4")].document[wx("0xf")],a=this[wx("0x8")](i,r);if(!a)return;if(!e[wx("0x1c")].includes(i))return;if(x[wx("0x22")]&&!a[wx("0x9")])return void o({styleName:i});const c=!e[wx("0x6")][wx("0x7")](a[wx("0x16")]);if(a[wx("0x9")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x21")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x16")])){n.add(o);break}}return n}(x[wx("0x1b")](),a[wx("0x29")]);t[wx("0x4")][wx("0x1")]((()=>{for(const t of e)n[wx("0x11")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wx("0x1a")+i})}))}else{let e=Array.from(x[wx("0x28")]());if(!c){const n=Array[wx("0x13")](s[wx("0x1d")](a[wx("0x2a")],!1))[0][wx("0x4")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[wx("0x4")],s,a[wx("0x1e")],n);o.push(...e)}e=o}t[wx("0x4")][wx("0x1")]((()=>{for(const t of e)n[wx("0x15")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[wx("0xe")]((t=>{const{data:e}=t;if(e&&wx("0x23")===e.commandName)return e[wx("0x26")][0][wx("0x10")]?{type:wx("0x12"),content:Yo(o,"*Format:* %0",e[wx("0x26")][0][wx("0x3")].toLowerCase())}:{type:wx("0x12"),content:Yo(o,wx("0x25"),e[wx("0x26")][0][wx("0x3")].toLowerCase())}}))}[wx("0x8")](t,e){let n=e[wx("0x20")][wx("0x17")]((e=>e[wx("0x16")]===t));return n||(n=e.inline[wx("0x17")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x27")]()){const e=r[wx("0x18")](o);e&&n[wx("0xb")]((t=>e[wx("0x1e")][wx("0x7")](t)))&&s.push(t[wx("0x19")](r))}return s}}const Ox=["last","isArray","table","from","addMarker:suggestion","minColumn","afterInit","selectTableRow","createPositionAt","insertTableColumnRight","execute","start","_tableSuggestions","root","isEqual","document","span","above","ELEMENT_TABLE_ROW","selection","every","getAttribute","*Insert:* %0","registerDescriptionCallback","toLowerCase","join","getChanges","enqueueChange","getChildren","tableColumn","tablePaste","some","filter","$graveyard","substr","insertion","insertTableColumnLeft","getChangedMarkers","showSuggestionHighlights","element","isInContent","ELEMENT_TABLE_ROW_WITH_TEXT","ELEMENT_TABLE_WITH_TEXT","min","highest","push","item","locale","rootName","accept","isIntersectingWithRange","getContainedElement","subType","_acceptFormatSuggestionCallbackFactory","editor","name","left","getFirstRange","refresh","toViewElement","max","has","colspan","setSelection","deletion","isTouching","rowspan","markMultiRangeInsertion","getSelectionAffectedTableCells","getCellLocation","removeTableColumn","addRange","TableUtils","nodeAfter","hasAttribute","plugins","createRangeOn","getItems","ELEMENT_TABLE","findAncestor","get","commands","_getSuggestionCoords","createRangeIn","add","change:data","ELEMENT_TABLE_COLUMN","insertTableRowBelow","getRanges","addClass","removeTableRow","tableRow","classes","forceValue","getRowIndexes","length","position","tableCell","MIN_SAFE_INTEGER","order","selectTableColumn","createTableWalker","writer","TableEditing","data","change","registerElementLabel","cell","type","_setupColumnsRowsFixing","registerCustomCallback","maxColumn","getColumnIndexes","_splitMarkerName","discard","map","_tablePostFixingSubtypes","markMultiRangeDeletion","_suggestionFactory","nodeBefore","MAX_SAFE_INTEGER","first","includes","maxRow","getSuggestion","$textProxy","_descriptionFactory","end","batch","options","model","*Remove:* %0","detach","TrackChangesEditing","fromRange","enableCommand","suggestion"];var Fx,Px;Fx=Ox,Px=209,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x2c")]=["tableRow",Dx("0x5e")],this._tableSuggestions=new Set}[Dx("0x47")](){const t=this[Dx("0x77")],e=t.model[Dx("0x50")][Dx("0x54")];if(!t[Dx("0x3")][Dx("0x7e")](Dx("0x1f")))return;const n=t[Dx("0x70")],o=t[Dx("0x3")][Dx("0x8")](Dx("0x3d")),s=t[Dx("0x3")][Dx("0x8")](Dx("0x0"));o[Dx("0x36")][Dx("0x22")](Dx("0x43"),(t=>Yo(n,Dx("0x6"),t))),this[Dx("0x25")](),o[Dx("0x3f")]("insertTable"),o.enableCommand(Dx("0x48")),o[Dx("0x3f")](Dx("0x1c"));for(const n of["insertTableRowAbove",Dx("0xf")]){const r=t[Dx("0x9")].get(n);o[Dx("0x3f")](n,(n=>{t[Dx("0x3a")][Dx("0x21")]((t=>{n();const i=Dx("0x52")===r[Dx("0x1b")],x=s[Dx("0x85")](e),a=s[Dx("0x16")](x),c=i?a[Dx("0x31")]-1:a[Dx("0x41")]+1,l=x[0][Dx("0x7")](Dx("0x43")),u=s[Dx("0x1d")](l,{startRow:c,endRow:c}),d=Array[Dx("0x44")](u)[Dx("0x2b")]((e=>t[Dx("0x4")](e[Dx("0x23")])));o.markMultiRangeInsertion(d,Dx("0x13"))}))}))}for(const n of[Dx("0x65"),Dx("0x4a")]){const r=t[Dx("0x9")].get(n);o.enableCommand(n,(n=>{t[Dx("0x3a")][Dx("0x21")]((t=>{n();const i=Dx("0x79")===r.order,x=s[Dx("0x85")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x31")]-1:a.last+1,l=x[0][Dx("0x7")]("table"),u=s[Dx("0x1d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Dx("0x44")](u).map((e=>t[Dx("0x4")](e[Dx("0x23")])));o[Dx("0x84")](d,Dx("0x5e"))}))}))}for(const n of[Dx("0x12"),Dx("0x87")]){const r=n.substr(11),i=r[Dx("0x59")](),x=i.substr(0,3)+"span",a=Dx("0x43")+r,c="min"+r,l=Dx("0x7d")+r;o[Dx("0x3f")](n,(()=>{t[Dx("0x3a")].change((t=>{const r=s[Dx("0x85")](e),u=r[0][Dx("0x7")](Dx("0x43"));let d;if("removeTableRow"==n){const t=s[Dx("0x16")](r);d={startRow:t.first,endRow:t[Dx("0x41")],includeAllSlots:!0}}else{const t=s[Dx("0x28")](r);d={startColumn:t[Dx("0x31")],endColumn:t.last,includeAllSlots:!0}}const g=s[Dx("0x1d")](u,d),f=Array.from(g).map((({cell:t})=>t)),m=jx(f.filter((t=>t[Dx("0x2")](x)))),h=jx(f[Dx("0x61")]((t=>!t[Dx("0x2")](x))))[Dx("0x2b")]((e=>t.createRangeOn(e))),p=o[Dx("0x2d")](h,a);if(p&&("tableRow"==p[Dx("0x75")]||Dx("0x5e")==p[Dx("0x75")])){const e=this[Dx("0xa")](p);for(const n of m){const o=t.createRangeOn(n),r=s[Dx("0x86")](n),a=n[Dx("0x56")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Dx("0x88")](o)}}}))}))}function r(n){const o=Array[Dx("0x44")](e[Dx("0x10")]())[Dx("0x2b")]((t=>i.LiveRange.fromRange(t)));t[Dx("0x3a")].change((e=>{const s=e[Dx("0x38")];n=n[Dx("0x61")]((t=>Dx("0x62")!=t[Dx("0x4e")].rootName)),e[Dx("0x80")](n),t[Dx("0x9")][Dx("0x8")]("removeTableRow")[Dx("0x7b")](),t[Dx("0x4b")]("removeTableRow",{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[Dx("0x3a")][Dx("0x5c")](s,(t=>{const e=o.filter((t=>Dx("0x62")!=t[Dx("0x4e")][Dx("0x71")]));e.length>0&&t[Dx("0x80")](e);for(const t of o)t[Dx("0x3c")]()}))}))}))}function a(n){t.model[Dx("0x21")]((o=>{const s=Array[Dx("0x44")](e[Dx("0x10")]()).map((t=>i.LiveRange[Dx("0x3e")](t))),r=[];for(const t of n)for(const e of t[Dx("0x5")]({shallow:!0}))r[Dx("0x6e")](e);for(const e of r)"$graveyard"!=e.root[Dx("0x71")]&&(o[Dx("0x80")](o[Dx("0x49")](e,0)),t[Dx("0x9")][Dx("0x8")](Dx("0x87")).refresh(),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Dx("0x61")]((t=>Dx("0x62")!=t[Dx("0x4e")][Dx("0x71")]));x[Dx("0x17")]>0&&o[Dx("0x80")](x);for(const t of s)t[Dx("0x3c")]()}))}function c(t,e){return e[Dx("0x55")]((e=>t[Dx("0x60")]((t=>t[Dx("0x37")][Dx("0x4f")](e[Dx("0x4c")])||e[Dx("0x37")].isEqual(t.start)))))}function l(t,e){return t[Dx("0x60")]((t=>e.some((e=>t.end[Dx("0x82")](e[Dx("0x4c")])))))}t.data.downcastDispatcher.on(Dx("0x45"),((t,e,n)=>{if(!n[Dx("0x39")][Dx("0x67")])return;const o=e[Dx("0x6f")];if(!o)return;const s=n.mapper[Dx("0x7c")](o);function r(t){return Array[Dx("0x42")](t)?t:[t]}s&&Dx("0x19")===o[Dx("0x78")]&&(0,x.setHighlightHandling)(s,n[Dx("0x1e")],((t,e,n)=>n[Dx("0x11")](r(e.classes),t)),((t,e,n)=>n.removeClass(r(e[Dx("0x14")]),t)))}),{priority:Dx("0x6d")}),o[Dx("0x36")].registerDescriptionCallback((t=>{if("insertion"!=t.type&&Dx("0x81")!=t.type)return;const e=t[Dx("0x74")]();if(null!=e&&e.is(Dx("0x68"),Dx("0x43"))){if(Dx("0x64")==t[Dx("0x24")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t[Dx("0x20")]));if(e[Dx("0x17")])return{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,Dx("0x6b"),'"'+e.join(" ")+'"'))}}if(Dx("0x81")==t[Dx("0x24")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35"))))[Dx("0x2b")]((t=>t[Dx("0x20")]));if(e[Dx("0x17")])return{type:"deletion",content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}}})),o[Dx("0x36")][Dx("0x58")]((t=>{if(Dx("0x13")==t[Dx("0x75")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t[Dx("0x20")])),o=this._getSuggestionCoords(t),s=o[Dx("0x33")]-o.minRow+1;if(Dx("0x64")==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x64"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x6a"),[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x64"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Dx("0x81")==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:"deletion",content:Yo(n,Dx("0x3b"),Yo(n,Dx("0x53"),s))}}if(Dx("0x5e")==t[Dx("0x75")]){const e=t[Dx("0x5")]()[Dx("0x61")]((t=>t.is(Dx("0x35")))).map((t=>t.data)),o=this[Dx("0xa")](t),s=o[Dx("0x27")]-o[Dx("0x46")]+1;if("insertion"==t[Dx("0x24")])return e[Dx("0x17")]?{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x64"),content:Yo(n,Dx("0x57"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0x81")==t.type)return e.length?{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x5a")](" ")+'"']))}:{type:Dx("0x81"),content:Yo(n,Dx("0x3b"),Yo(n,Dx("0xe"),s))}}})),o._suggestionFactory[Dx("0x26")](Dx("0x64"),Dx("0x13"),Dx("0x2a"),r),o[Dx("0x2e")][Dx("0x26")](Dx("0x81"),"tableRow",Dx("0x72"),r),o[Dx("0x2e")][Dx("0x26")](Dx("0x64"),"tableColumn",Dx("0x2a"),a),o._suggestionFactory.registerCustomCallback("deletion",Dx("0x5e"),Dx("0x72"),a),o[Dx("0x2e")].registerCustomCallback(Dx("0x64"),Dx("0x5e"),Dx("0x5a"),c),o._suggestionFactory.registerCustomCallback("deletion","tableColumn",Dx("0x5a"),c),o._suggestionFactory[Dx("0x26")](Dx("0x64"),Dx("0x13"),Dx("0x5a"),l),o[Dx("0x2e")][Dx("0x26")](Dx("0x81"),Dx("0x13"),Dx("0x5a"),l)}[Dx("0x76")](){const t=this.editor,e=t[Dx("0x3a")][Dx("0x50")].selection;return(n,o)=>{t[Dx("0x3a")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x37")][Dx("0x2f")];x&&x[0]&&!1===x[0][Dx("0x15")]&&(a=n[0][Dx("0x4c")][Dx("0x1")]);const c=s[Dx("0xb")](a);if(Dx("0x62")==c[Dx("0x4e")][Dx("0x71")])return;const l=Array[Dx("0x44")](e[Dx("0x10")]())[Dx("0x2b")]((t=>i.LiveRange[Dx("0x3e")](t)));s[Dx("0x80")](c),t[Dx("0x9")][Dx("0x8")](r)[Dx("0x7b")](),x[Dx("0x6e")]({forceDefaultExecution:!0}),t[Dx("0x4b")](r,...x);const u=l.filter((t=>Dx("0x62")!=t.root[Dx("0x71")]));u[Dx("0x17")]>0&&s[Dx("0x80")](u);for(const t of l)t[Dx("0x3c")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x77")][Dx("0x3")][Dx("0x8")](Dx("0x0"));let n=Number[Dx("0x30")],o=Number[Dx("0x1a")],s=Number[Dx("0x30")],r=Number[Dx("0x1a")];for(const i of t){if(Dx("0x62")==i[Dx("0x4e")][Dx("0x71")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Dx("0x2")](Dx("0x83"))?i[Dx("0x56")](Dx("0x83"))-1:0,c=i.hasAttribute(Dx("0x7f"))?i.getAttribute(Dx("0x7f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Dx("0x25")](){const t=this[Dx("0x77")],e=t.plugins[Dx("0x8")]("TrackChangesEditing"),n=t[Dx("0x3")].get(Dx("0x0"));t[Dx("0x3a")][Dx("0x50")].on(Dx("0xd"),(()=>{const n=Array.from(t.model[Dx("0x50")].differ[Dx("0x66")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x29")](t);if(Dx("0x40")!=n)continue;if(null!=o.oldRange)continue;const i=e[Dx("0x34")](s);this[Dx("0x2c")][Dx("0x32")](r)&&this[Dx("0x4d")][Dx("0xc")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Dx("0x4")](t),r=t[Dx("0x7")](Dx("0x43")),i=n[Dx("0x86")](t);for(const e of this[Dx("0x4d")]){const n=e[Dx("0x75")],x=n.startsWith(Dx("0x5f")),a=n.substr(x?10:5),c=a[Dx("0x59")](),l=c[Dx("0x63")](0,3)+Dx("0x51"),u=Dx("0x6c")+a,d=Dx("0x7d")+a;if(!e[Dx("0x69")])continue;if(r!=e[Dx("0x7a")]()[Dx("0x4c")][Dx("0x7")]("table"))continue;if(e[Dx("0x73")](s))continue;const g=t[Dx("0x2")](l)?t.getAttribute(l)-1:0,f=this._getSuggestionCoords(e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Dx("0x88")](s),o=!0)}return o};t.model[Dx("0x50")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x3a")][Dx("0x50")].differ[Dx("0x5b")]())if("insert"==s[Dx("0x24")])if(Dx("0x13")==s[Dx("0x78")])for(const t of s[Dx("0x18")].nodeAfter[Dx("0x5d")]())n=n||o(t,e);else Dx("0x19")==s.name&&(n=n||o(s[Dx("0x18")][Dx("0x1")],e));return n}))}[Dx("0xa")](t){return this._getCoordsForCells(t[Dx("0x10")]().map((t=>t.start[Dx("0x1")])))}}function jx(t){return Array[Dx("0x44")](new Set(t).values())}const Ux=["document","isInContent","format","cell","TableEditing","mergeTableCellRight","fromRange","registerCustomCallback","set:isEnabled","*Split cell:* horizontally","size","requires","model","add","markMultiRangeBlockFormat","low","deletion","registerDescriptionCallback","find","createRangeOn","detach","accept","formatBlock","findAncestor","getAncestors","length","subType","from","splitTableCellHorizontally","getSuggestions","$graveyard","rootName","get","refresh","mergeTableCellUp","getCellLocation","horizontally","mergeTableCells","_tablePostFixingSubtypes","_suggestionFactory","editor","*Split cell:* vertically","_areMergableCells","root","isEnabled","_descriptionFactory","locale","markBlockFormat","createTableWalker","type","execute","trackChanges","TrackChangesEditing","getRanges","splitTableCellVertically","setSelection","mergeTableCellLeft","has","push","*Merge cells*","plugins","element","commands","selection","containsRange","value","highest","author","map","change","TableUtils","filter","getFirstPosition","getSelectionAffectedTableCells","tableCell","direction","mergeTableCellDown","_acceptFormatSuggestionCallbackFactory","afterInit","enableCommand"];var Gx,Hx;Gx=Ux,Hx=406,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("0x5")](){return[Bx]}[Wx("0x48")](){const t=this[Wx("0x22")],e=t.model[Wx("0x4a")][Wx("0x39")],n=t[Wx("0x28")];if(!t[Wx("0x36")][Wx("0x33")](Wx("0x4e")))return;const o=t[Wx("0x36")][Wx("0x1a")](Wx("0x2e")),s=t[Wx("0x36")][Wx("0x1a")](Wx("0x40")),r=t[Wx("0x36")][Wx("0x1a")](Bx);r[Wx("0x20")][Wx("0x34")](Wx("0x1f")),o[Wx("0x49")](Wx("0x1f"),(()=>{const e=s[Wx("0x43")](t[Wx("0x6")][Wx("0x4a")].selection);t[Wx("0x6")][Wx("0x3f")]((()=>{o[Wx("0x8")](e,{commandName:Wx("0x1f"),commandParams:[]},[],Wx("0x1f"))}))})),t[Wx("0x38")][Wx("0x1a")](Wx("0x1f")).on("execute",((e,n)=>{t[Wx("0x38")][Wx("0x1a")](Wx("0x2d"))[Wx("0x3b")]&&(n.length>0&&n[n.length-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this._areSelectedCellsMergable()||e.stop())}),{priority:Wx("0x3c")});for(const e of["mergeTableCellUp",Wx("0x4f"),Wx("0x46"),Wx("0x32")]){const n=t[Wx("0x38")][Wx("0x1a")](e);o[Wx("0x49")](e,(()=>{const e=t[Wx("0x6")][Wx("0x4a")].selection.getFirstPosition()[Wx("0x12")]().find((t=>t.is(Wx("0x37"),"tableCell"))),s=n.value;t[Wx("0x6")][Wx("0x3f")]((()=>{o[Wx("0x8")]([e,s],{commandName:Wx("0x1f"),commandParams:[]},[],Wx("0x1f"))}))}))}for(const e of[Wx("0x30"),Wx("0x16")]){const n=t[Wx("0x38")].get(e);o.enableCommand(e,(()=>{const r=s[Wx("0x43")](t[Wx("0x6")][Wx("0x4a")][Wx("0x39")])[0],i=r[Wx("0x11")]("table"),{column:x,row:a}=s[Wx("0x1d")](r);let c=[];if(Wx("0x1e")==n[Wx("0x45")]){const t=s[Wx("0x2a")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Wx("0x3e")]((t=>t.cell))}else{const t=s[Wx("0x2a")](i,{column:x,includeAllSlots:!0});c=Array[Wx("0x15")](t).map((t=>t[Wx("0x4d")]))}t[Wx("0x6")][Wx("0x3f")]((t=>{o[Wx("0x29")](t[Wx("0xd")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x27")][Wx("0xb")]((t=>{const{data:e}=t;if(e)return Wx("0x1f")==e.commandName?{type:"format",content:Yo(n,Wx("0x35"))}:void 0})),o[Wx("0x27")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Wx("0x30")==e.commandName?{type:Wx("0x4c"),content:Yo(n,Wx("0x23"))}:Wx("0x16")==e.commandName?{type:Wx("0x4c"),content:Yo(n,Wx("0x3"))}:void 0}));const x=r[Wx("0x47")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Wx("0x46"),Wx("0x32")])o[Wx("0x21")][Wx("0x1")](Wx("0x10"),t,Wx("0xf"),x);for(const t of["splitTableCellVertically",Wx("0x16")])o[Wx("0x21")].registerCustomCallback(Wx("0x10"),t,Wx("0xf"),x);o._suggestionFactory[Wx("0x1")]("formatBlock",Wx("0x1f"),Wx("0xf"),(n=>{t.model[Wx("0x3f")]((o=>{const s=Array[Wx("0x15")](e[Wx("0x2f")]())[Wx("0x3e")]((t=>i.LiveRange[Wx("0x0")](t)));o[Wx("0x31")](n),t[Wx("0x38")][Wx("0x1a")]("mergeTableCells")[Wx("0x1b")](),t[Wx("0x2c")](Wx("0x1f"),{forceDefaultExecution:!0});const r=s[Wx("0x41")]((t=>Wx("0x18")!=t[Wx("0x25")][Wx("0x19")]));r[Wx("0x13")]>0&&o[Wx("0x31")](r);for(const t of s)t[Wx("0xe")]()}))}));for(const e of[Wx("0x1c"),"mergeTableCellDown",Wx("0x32"),Wx("0x4f")]){const n=t.commands.get(e);n.on(Wx("0x2"),((e,o,s)=>{if(s){const o=t[Wx("0x6")][Wx("0x4a")].selection[Wx("0x42")]().getAncestors()[Wx("0xc")]((t=>t.is(Wx("0x37"),Wx("0x44"))));this[Wx("0x24")](n.value,o)||(e.return=!1,e.stop())}}),{priority:Wx("0x9")})}}_areSelectedCellsMergable(){const t=this.editor[Wx("0x38")][Wx("0x1a")](Wx("0x1f")),e=this[Wx("0x22")][Wx("0x36")].get(Wx("0x40"));if(!t[Wx("0x26")])return!1;const n=e[Wx("0x43")](this[Wx("0x22")][Wx("0x6")][Wx("0x4a")][Wx("0x39")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Wx("0x24")](t,e){const n=this[Wx("0x22")][Wx("0x36")][Wx("0x1a")](Wx("0x2e")),o=this.editor.model[Wx("0xd")](t),s=this[Wx("0x22")][Wx("0x6")][Wx("0xd")](e),r=new Set,i=new Set;for(const t of n[Wx("0x17")]())if(("insertion"==t[Wx("0x2b")]||Wx("0xa")==t.type||Wx("0x1f")==t[Wx("0x14")])&&t[Wx("0x4b")])for(const e of t[Wx("0x2f")]())e[Wx("0x3a")](o,!0)&&r.add(t[Wx("0x2b")]+":"+t[Wx("0x3d")].id),e.containsRange(s,!0)&&i[Wx("0x7")](t[Wx("0x2b")]+":"+t.author.id);if(r[Wx("0x4")]!=i[Wx("0x4")])return!1;for(const t of r)if(!i[Wx("0x33")](t))return!1;return!0}}const Vx=["FORMAT_HEADER_ROW","createPositionBefore","unbindElementFromMarkerName","isBefore","_descriptionFactory","*Format:* %0","markBlockFormat","plugins","afterInit","createPositionAfter","enableCommand","setAttribute","nodeAfter","findAncestor","registerCustomCallback","activeMarkers","markerName","headingColumns","addMarker:suggestion","data","TrackChangesEditing","markerNameToElements","_suggestionFactory","consumable","consume","from","FORMAT_REGULAR_COLUMN","model","highest","getCellLocation","setTableColumnHeader","get","commandParams","downcastDispatcher","index","registerDescriptionCallback","getSuggestion","last","removeMarker:suggestion","includes","selection","commands","nodeBefore","name","_acceptFormatSuggestionCallbackFactory","writer","table","createRange","_splitMarkerName","end","forceValue","change","getRowIndexes","data-suggestion","locale","TableUtils","getSelectionAffectedTableCells","formatBlock","FORMAT_HEADER_COLUMN","ck-suggestion-marker--active","setTableRowHeader","childCount","document","toViewElement","options","commandName","cell","removeClass","first","markerRange","parent","createTableWalker","item","TableEditing","getChild","requires","editing","format","accept","FORMAT_REGULAR_ROW","addClass","getAttribute","removeAttribute","ck-suggestion-marker-","mapper"];var Kx,qx;Kx=Vx,qx=364,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x33")](){return[Bx]}[Xx("0x45")](){const t=this.editor;if(!t[Xx("0x44")].has(Xx("0x31")))return;const e=t[Xx("0x1e")],n=t[Xx("0x44")][Xx("0x7")](Xx("0x51")),o=t[Xx("0x44")][Xx("0x7")](Xx("0x1f")),s=t[Xx("0x44")][Xx("0x7")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Xx("0x4d")]),c=n[Xx("0xc")](a);if(!c[Xx("0x50")]||Xx("0x6")!=c[Xx("0x50")][Xx("0x29")])return;if(r[Xx("0x30")])return void s.stop();if(!i[Xx("0x54")][Xx("0x0")](r[Xx("0x2d")],s[Xx("0x13")]))return;const l=r[Xx("0x2d")].start[Xx("0x49")],u=r[Xx("0x2d")][Xx("0x19")][Xx("0x12")],d=l[Xx("0x2e")][Xx("0x2e")],{column:g}=o[Xx("0x5")](l),{column:f}=o[Xx("0x5")](u);for(let s=g;s<=f;s++){const c=o[Xx("0x2f")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x2a")],c=i[Xx("0x3c")][Xx("0x27")](s);i[Xx("0x15")][Xx("0x38")]("ck-suggestion-marker-"+x,c),e&&i[Xx("0x15")][Xx("0x48")](Xx("0x1d"),a,c),i.mapper.bindElementToMarker(c,r.markerName),t&&(n[Xx("0x4c")][Xx("0xf")](r[Xx("0x4d")])?i[Xx("0x15")][Xx("0x38")]("ck-suggestion-marker--active",c):i[Xx("0x15")][Xx("0x2b")](Xx("0x23"),c))}}}}n.enableCommand(Xx("0x24"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[Xx("0x3")][Xx("0x26")][Xx("0x10")]),i=o[Xx("0x1c")](r),x=r[0].findAncestor("table"),a=x[Xx("0x39")]("headingRows")||0,c=s&&null!==s[Xx("0x1a")]?s[Xx("0x1a")]:!t[Xx("0x11")][Xx("0x7")](Xx("0x24")).value,l=c?i[Xx("0xd")]:i[Xx("0x2c")],u=x[Xx("0x32")](l);let d;if(c){const e=x[Xx("0x32")](a);if(u[Xx("0xa")]<e.index)return;d=t[Xx("0x3")].createRange(t[Xx("0x3")][Xx("0x3e")](e[Xx("0x32")](0)),t[Xx("0x3")][Xx("0x46")](u.getChild(u.childCount-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t[Xx("0x3")].createRange(t.model[Xx("0x3e")](u.getChild(0)),t.model[Xx("0x46")](e[Xx("0x32")](e[Xx("0x25")]-1)))}t[Xx("0x3")][Xx("0x1b")]((()=>{n[Xx("0x43")](d,{commandName:Xx("0x24"),commandParams:[{forceValue:c}]},[],Xx("0x24"))}))})),n[Xx("0x47")](Xx("0x6"),((e,o)=>{const s=t[Xx("0x44")].get("TableUtils"),r=s[Xx("0x20")](t[Xx("0x3")][Xx("0x26")].selection),i=s.getColumnIndexes(r),x=r[0][Xx("0x4a")](Xx("0x16")),a=x[Xx("0x39")](Xx("0x4e"))||0,c=o&&null!==o[Xx("0x1a")]?o[Xx("0x1a")]:!t.commands.get(Xx("0x6")).value;let l;const u=x.getChild(0),d=c?i[Xx("0xd")]:i[Xx("0x2c")],g=s.createTableWalker(x,{startRow:0,column:d,includeAllSlots:!1}),f=Array[Xx("0x1")](g)[0].cell;if(c){const e=u[Xx("0x32")](a);if(f[Xx("0x40")](e))return;l=t[Xx("0x3")][Xx("0x17")](t[Xx("0x3")][Xx("0x3e")](e),t.model[Xx("0x46")](f))}else{const e=u[Xx("0x32")](a-1);if(!e)return;l=t[Xx("0x3")][Xx("0x17")](t[Xx("0x3")][Xx("0x3e")](f),t[Xx("0x3")].createPositionAfter(e))}t[Xx("0x3")][Xx("0x1b")]((()=>{n[Xx("0x43")](l,{commandName:Xx("0x6"),commandParams:[{forceValue:c}]},[],Xx("0x6"))}))})),t[Xx("0x34")][Xx("0x9")].on("addMarker:suggestion",r(),{priority:Xx("0x4")}),t[Xx("0x50")].downcastDispatcher.on(Xx("0x4f"),((t,e,n)=>{n[Xx("0x28")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x4")}),t[Xx("0x34")][Xx("0x9")].on(Xx("0xe"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x18")](e.markerName),i=n[Xx("0xc")](r);if(!i[Xx("0x50")]||Xx("0x6")!=i[Xx("0x50")].commandName)return;const x=o[Xx("0x3c")][Xx("0x52")](e[Xx("0x4d")]);if(x)for(const t of x)o[Xx("0x15")][Xx("0x2b")](Xx("0x3b")+s,t),o[Xx("0x15")][Xx("0x2b")]("ck-suggestion-marker--active",t),o[Xx("0x15")][Xx("0x3a")](Xx("0x1d"),t),o[Xx("0x3c")][Xx("0x3f")](t,e[Xx("0x4d")])}),{priority:Xx("0x4")}),n[Xx("0x41")][Xx("0xb")]((t=>{const{data:n}=t;if(n){if(Xx("0x24")==n[Xx("0x29")]){const t=n[Xx("0x8")][0][Xx("0x1a")];return o(Yo(e,Xx(t?"0x3d":"0x37")))}if(Xx("0x6")==n[Xx("0x29")]){const t=n[Xx("0x8")][0][Xx("0x1a")];return o(Yo(e,Xx(t?"0x22":"0x2")))}}function o(t){return{type:Xx("0x35"),content:Yo(e,Xx("0x42"),t)}}}));const i=s[Xx("0x14")]();n[Xx("0x53")].registerCustomCallback("formatBlock",Xx("0x24"),Xx("0x36"),i),n[Xx("0x53")][Xx("0x4b")](Xx("0x21"),Xx("0x6"),Xx("0x36"),i)}}const Jx=["keys","elementToElement","markerToHighlight","createElement","filter","editing","model","createPositionBefore","getRange","registerDescriptionCallback","name","getShiftedBy","editor","formatBlock","markerName","afterInit","cell","getChangedMarkers","*Replace table cells*","getAttributes","nextSibling","endRow","conversion","getContainedElement","getChild","next","unwrap","getRows","rows","containsRange","return","insert","markMultiRangeDeletion","for","nodeAfter","table","accept","low","newRange","findAncestor","subType","getSelectionAffectedTableCells","join","getChildren","_suggestionFactory","TableUtils","find","previousSibling","tablePasteCell","insertionRanges","getSuggestions","insertContent","cells","_splitMarkerName","_createdBatches","length","first","set","column","removeColumns","suggestion:formatBlock:tablePasteCell","getSuggestionCallback","TableClipboard","suggestion","_replaceTableSlotCell","options","row","type","insertion","register","documentSelection","some","isEqual","fromEntries","tableCellPadding","every","createRangeOn","move","removeMarkers","setAttribute","isInContent","ck-suggestion-marker--active","createRangeIn","deletionRanges","startsWith","fill","remove","discard","createTableWalker","last","markerAttributes","_tablePostFixingSubtypes","redo","tableCellSuggestion","tablePaste","differ","getMarkers","listenTo","getTableIfOnlyTableInContent","removeRows","removeMarker","getRanges","push","tablePasteRow","tablePasteChainId","has","$graveyard","includes","document","insertRows","paragraph","requires","updateMarker","stop","end","suggestion-td","wrap","selection","registerPostFixer","root","from","showSuggestionHighlights","entries","map","tableCell","high","attributes","rootName","_getCoordsForCells","ck-suggestion-marker-insertion","author","activeMarkers","tableCellBorderWidth","getColumnIndexes","tableCellBorderStyle","Users","change","tableCellBackgroundColor","add","get","tableCellVerticalAlignment","tablePasteColumn","markers","batch","deletion","element","previous","_descriptionFactory","TrackChangesEditing","clipboardOutput","isEmpty","value","createRange","trackChanges","plugins","getSuggestion","reduce","markMultiRangeBlockFormat","tableCellBorderColor","getAllAdjacentSuggestions","setAttributes","getRowIndexes","registerCustomCallback"];var Qx,Zx;Qx=Jx,Zx=220,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x4b"),Yx("0x65"),Yx("0x4d"),"tableCellHorizontalAlignment",Yx("0x53"),Yx("0x50"),Yx("0x11")],ea=Object[Yx("0x10")](ta[Yx("0x42")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x36")](){return[Bx]}[Yx("0x79")](){const t=this.editor;if(!t[Yx("0x61")][Yx("0x30")]("TableClipboard"))return;const n=t[Yx("0x61")][Yx("0x52")](Yx("0x5b")),o=t[Yx("0x61")].get(Yx("0x97")),s=t[Yx("0x61")].get(Bx),r=t[Yx("0x61")][Yx("0x52")](Yx("0x5"));s[Yx("0x22")].push(Yx("0x2e"),Yx("0x54")),t[Yx("0x70")].schema[Yx("0xc")](Yx("0x24"),{allowIn:Yx("0x43"),allowContentOf:"tableCell",isLimit:!0}),t[Yx("0x80")][Yx("0x6b")]({model:Yx("0x24"),view:Yx("0x3a")});let i=null;t[Yx("0x70")].on(Yx("0x9d"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0xa1")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Yx("0x76")].commands[Yx("0x52")](Yx("0x60"))[Yx("0x5e")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0xd")))return!1;const r=s[Yx("0x29")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x93")](n[Yx("0x33")][Yx("0x3c")]);if(!i[Yx("0xa1")])return!1;const x=i[0][Yx("0x91")](Yx("0x8d")),a=o[Yx("0x68")](i),c=o[Yx("0x4c")](i),l={startRow:a[Yx("0xa2")],endRow:a[Yx("0x20")],startColumn:c[Yx("0xa2")],endColumn:c[Yx("0x20")]};return 1==i[Yx("0xa1")]&&(l[Yx("0x7f")]+=o[Yx("0x85")](r)-1,l.endColumn+=o.getColumns(r)-1),sa(x,l,o)}(a,c,t[Yx("0x70")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x70")][Yx("0x4f")]((()=>{t[Yx("0x70")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n.markMultiRangeInsertion(s,Yx("0x2e"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,Yx("0x54"),{tablePasteChainId:o}),a.length&&n.markMultiRangeInsertion(a,Yx("0x25"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0xa1")]&&n[Yx("0x8a")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Yx("0x64")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x9a"),{tablePasteChainId:o});if(u){const e=u[Yx("0x27")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x70")].createRangeOn(o),i=e.find((t=>t[Yx("0x72")]()[Yx("0xf")](r)));i&&n[Yx("0x2d")]([i[Yx("0x74")],s])}n[Yx("0xa1")]&&u[Yx("0x16")]("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities.high+10}),t.plugins[Yx("0x52")](Yx("0x5")).on(Yx("0x7"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x38")]();const r=n[Yx("0x7a")],x=o,a=oa(r),c=oa(x);t[Yx("0x88")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Yx("0x1d")](r[Yx("0x82")](0));for(const t of Array.from(x[Yx("0x95")]()))s.insert(t,r,Yx("0x39"));const t=i.rowInsertionIndexes[Yx("0x32")](n[Yx("0x9")]),e=i.columnInsertionIndexes[Yx("0x32")](n[Yx("0x1")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Yx("0x19")](r));else{const t=s[Yx("0x6d")](Yx("0x24")),e=s.createElement(Yx("0x24"));s[Yx("0x3b")](s[Yx("0x19")](r),e),s[Yx("0x89")](t,r,0);for(const e of Array.from(x.getChildren()))s.insert(e,t,Yx("0x39"));l=s.createRangeOn(t),u=s[Yx("0x13")](e)}const d=Array[Yx("0x3f")](x[Yx("0x7d")]())[Yx("0x6e")]((([t])=>ta[Yx("0x32")](t)));i[Yx("0x9e")].push({element:r,attributes:d[Yx("0xa1")]?Object[Yx("0x10")](d):null}),l&&i[Yx("0x9b")][Yx("0x2d")](l),u&&i[Yx("0x1a")].push(u)}),{priority:Yx("0x44")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Yx("0x1c")](x)[Yx("0x42")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x1f")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[Yx("0x70")][Yx("0x13")](e))}),{priority:Yx("0x8f")}),o.on(Yx("0x34"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x86")]||1;i.rowInsertionIndexes=new Array(a)[Yx("0x1c")](x)[Yx("0x42")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x1f")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Yx("0x2d")](t.model[Yx("0x13")](e))}),{priority:Yx("0x8f")}),n[Yx("0x5a")][Yx("0x73")]((e=>{if(e[Yx("0x92")]&&e[Yx("0x92")][Yx("0x1b")](Yx("0x25")))return e[Yx("0x59")]?{}:{type:"insertion",content:Yo(t.locale,Yx("0x7c"))}}));const x=()=>!1;for(const t of[Yx("0x25"),Yx("0x54"),Yx("0x2e"),Yx("0x9a")])n[Yx("0x96")][Yx("0x69")](Yx("0xb"),t,Yx("0x94"),x),n[Yx("0x96")][Yx("0x69")](Yx("0x57"),t,Yx("0x94"),x),n[Yx("0x96")][Yx("0x69")](Yx("0x77"),t,Yx("0x94"),x);n[Yx("0x96")].registerCustomCallback(Yx("0x77"),Yx("0x9a"),"discard",x),n[Yx("0x96")][Yx("0x69")](Yx("0x77"),Yx("0x9a"),"accept",((e,n,o)=>{const s=e[Yx("0x42")]((t=>t.getContainedElement())).filter((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x9e")])e&&r[Yx("0x0")](t,e);else if(o&&o[Yx("0x21")])for(const[e,n]of Object[Yx("0x41")](o[Yx("0x21")])){const o=t[Yx("0x70")][Yx("0x55")][Yx("0x52")](e),s=o?o.getRange().getContainedElement():null;s&&r[Yx("0x0")](s,n)}t.model[Yx("0x4f")]((t=>{for(const[e,n]of r)t[Yx("0x67")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,"tablePaste",o,((s,r,i)=>{t.model[Yx("0x4f")]((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x8c")];e.is(Yx("0x58"),Yx("0x24"))&&x.push(e)}n[Yx("0x96")][Yx("0x4")](e,null,o)(s,r,i);for(const e of x)Yx("0x31")!=e[Yx("0x3e")][Yx("0x46")]&&t[Yx("0x84")](e)}))}))};a(Yx("0xb"),Yx("0x8e")),a(Yx("0xb"),"discard"),a(Yx("0x57"),Yx("0x8e")),a(Yx("0x57"),Yx("0x1e")),n[Yx("0x96")][Yx("0x69")]("insertion",Yx("0x2e"),Yx("0x1e"),(t=>{const e=t[Yx("0x42")]((t=>t[Yx("0x81")]())),n=e[0].findAncestor(Yx("0x8d")),{minRow:r,maxRow:i}=s[Yx("0x47")](e);o[Yx("0x2a")](n,{at:r,rows:i-r+1})})),n[Yx("0x96")][Yx("0x69")](Yx("0xb"),Yx("0x54"),Yx("0x1e"),(t=>{const e=t.map((t=>t[Yx("0x81")]())),n=e[0][Yx("0x91")](Yx("0x8d")),{minColumn:r,maxColumn:i}=s[Yx("0x47")](e);o[Yx("0x2")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x92")]||!e[Yx("0x92")].startsWith("tablePaste"))return;const o=e.attributes[Yx("0x2f")],s=n.getSuggestions()[Yx("0x6e")]((t=>t[Yx("0x17")]&&t[Yx("0x45")]&&t[Yx("0x45")][Yx("0x2f")]==o));s[Yx("0xa1")]&&e[Yx("0x66")]()[Yx("0xa1")]!=s[Yx("0xa1")]&&s[Yx("0x63")](((t,e)=>(t[Yx("0x83")]=e,e[Yx("0x59")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x9f")](t[Yx("0x78")]),s=["ck-suggestion-marker",Yx("0x48")],r=n[Yx("0x4a")][Yx("0x32")](t.markerName);return r&&s.push(Yx("0x18")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x44")}),n.on("suggestionUnloaded",c,{priority:Yx("0x44")}),t[Yx("0x70")][Yx("0x33")].registerPostFixer((()=>{let e=!1;const o=Array.from(t.model[Yx("0x33")][Yx("0x26")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x9f")](s);if(Yx("0x6")!=o||Yx("0x57")!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Yx("0x62")](x)[Yx("0x2c")](),c=t[Yx("0x61")][Yx("0x52")](Yx("0x4e")).me;for(const t of n[Yx("0x9c")]())if(t[Yx("0x17")]&&t[Yx("0x49")]==c&&Yx("0x77")==t[Yx("0xa")]&&"tablePasteCell"==t.subType&&t[Yx("0x2c")]()[Yx("0x12")]((t=>a[Yx("0xe")]((e=>e[Yx("0x87")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x17")]&&(n[Yx("0x1e")](),e=!0)}return e})),t.model[Yx("0x33")].registerPostFixer((e=>{const o=t.commands[Yx("0x52")](Yx("0x23"));if(!o||!o[Yx("0xa0")][Yx("0x30")](e[Yx("0x56")]))return!1;let s=!1;const r=t.plugins.get(Yx("0x4e")).me,i=t[Yx("0x70")][Yx("0x33")][Yx("0x26")].getChanges(),x=Array[Yx("0x3f")](t[Yx("0x70")].document.differ[Yx("0x7b")]())[Yx("0x6e")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x9f")](t);return Yx("0x6")==o&&Yx("0x25")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Yx("0xa")]||Yx("0x24")!=t.name||1!=t[Yx("0xa1")])continue;const n=e[Yx("0x5f")](t.position,t.position[Yx("0x75")](1));if(!x[Yx("0x98")]((({data:t})=>t.newRange[Yx("0xf")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x87")](o[Yx("0x90")])){e[Yx("0x37")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x70")][Yx("0x33")][Yx("0x3d")]((e=>{let o=!1;const s=t[Yx("0x61")][Yx("0x52")](Yx("0x4e")).me,r=n[Yx("0x9c")]()[Yx("0x6e")]((t=>t[Yx("0x17")]&&t[Yx("0x49")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x25")==t[Yx("0x92")])for(const e of t[Yx("0x27")]()){const n=e[Yx("0x72")]()[Yx("0x81")]();if(n)if(n.is(Yx("0x58"),Yx("0x24"))&&oa(n)){t[Yx("0x2b")](e.name),i[Yx("0x51")](n),o=!0;const s=n[Yx("0x7e")],r=n[Yx("0x99")],a=s&&s.is(Yx("0x58"),Yx("0x24")),c=r&&r.is(Yx("0x58"),Yx("0x24"));a&&!i[Yx("0x30")](s)&&x[Yx("0x51")](s),c&&!i[Yx("0x30")](r)&&x[Yx("0x51")](r)}else n.is(Yx("0x58"),Yx("0x35"))&&n[Yx("0x5d")]&&(t[Yx("0x2b")](e[Yx("0x74")]),o=!0)}else if(Yx("0x9a")==t.subType){if(!t[Yx("0x45")]||!t[Yx("0x45")].tablePasteChainId)continue;const e=t.attributes.markerAttributes;if(e&&Object[Yx("0x6a")](e)[Yx("0xa1")])continue;const n=t[Yx("0x45")][Yx("0x2f")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x92")]&&e.subType[Yx("0x1b")](Yx("0x25"))){if(!e[Yx("0x45")][Yx("0x2f")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x45")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Yx("0x15")](),o=!0)}for(const t of i)e[Yx("0x1d")](t);for(const t of x)e[Yx("0x84")](t);return o})),t[Yx("0x80")][Yx("0x8b")]("editingDowncast").markerToHighlight({model:Yx("0x3"),view:(t,e)=>l(t),converterPriority:Yx("0x44")}),t.conversion[Yx("0x8b")]("dataDowncast")[Yx("0x6c")]({model:Yx("0x3"),view:(t,e)=>e[Yx("0x8")][Yx("0x40")]?l(t,!1):null,converterPriority:Yx("0x44")});const u=t[Yx("0x6f")].view;this[Yx("0x28")](u[Yx("0x33")],Yx("0x5c"),((t,e)=>{const n=[];for(const t of u[Yx("0x19")](e.content).getItems())t.is(Yx("0x58"),"suggestion-td")&&n[Yx("0x2d")](t);u.change((t=>{for(const e of n)t[Yx("0x14")](t[Yx("0x19")](e),t[Yx("0x71")](e)),t.remove(e)}))}))}}function oa(t){if(t[Yx("0x5d")])return!0;const e=t[Yx("0x82")](0);return e.is(Yx("0x58"),"paragraph")&&e[Yx("0x5d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x1f")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["Users","getSuggestions","formatBlock","model","has","resizeTableWidth","_suggestionFactory","resizeColumnWidths","getAttribute","accept","bind","getContainedElement","handleSuggestionDescription","TrackChangesEditing","get","getTableColumnsWidths","resizeTable","registerCustomCallback","enableCommand","data","subType","getSelectedElement","selection","_descriptionFactory","getSuggestionCallback","handleResizeTableWidthCommand","plugins","format","getColumnGroupElement","registerDescriptionCallback","editor","author","change","TableColumnResizeEditing","columnWidths","discard","markBlockFormat"];var ia,xa;ia=ra,xa=461,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){if(!this[aa("0xd")].plugins[aa("0x18")](aa("0x10")))return;const t=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x21"));t[aa("0x1")]("resizeTableWidth",this[aa("0x8")][aa("0x1e")](this)),t.enableCommand(aa("0x1b"),this[aa("0x8")].bind(this)),t[aa("0x1a")].registerCustomCallback(aa("0x16"),aa("0x24"),aa("0x1d"),t[aa("0x1a")][aa("0x7")]("formatBlock",null,"discard")),t[aa("0x1a")][aa("0x0")](aa("0x16"),aa("0x24"),aa("0x12"),t[aa("0x1a")][aa("0x7")]("formatBlock",null,aa("0x1d"))),t[aa("0x6")][aa("0xc")](this[aa("0x20")][aa("0x1e")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins[aa("0x22")]("TrackChangesEditing"),o=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x10")),s=e.table||this[aa("0xd")][aa("0x17")].document[aa("0x5")][aa("0x4")]();this[aa("0xd")][aa("0x17")][aa("0xf")]((()=>{const r=o[aa("0xb")](s);let i=r?o[aa("0x23")](r):null,x=s[aa("0x1c")]("tableWidth")||null;const a=e.tableWidth||x,c=e[aa("0x11")]||i,l=this[aa("0xd")][aa("0x9")][aa("0x22")](aa("0x14")).me;for(const t of n[aa("0x15")]()){const e=t[aa("0x1f")]();if(aa("0x24")===t[aa("0x3")]&&e===s){t[aa("0xe")]!==l&&t[aa("0x12")]();const e=t[aa("0x2")].commandParams;x=e[0].tableWidth,i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x13")](s,{commandName:aa("0x19"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x24")},[],aa("0x24"))}))}[aa("0x20")](t){const{data:e}=t;if(e&&aa("0x24")===e.formatGroupId){const t="*Format:* resize table";return{type:aa("0xa"),content:Yo(this.editor.locale,t)}}}}const la=["afterInit","enableCommand","TrackChangesEditing","Template","insertTemplate","has","plugins"];var ua,da;ua=la,da=133,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class fa extends t.Plugin{[ga("0x0")](){const t=this.editor;t[ga("0x6")][ga("0x5")](ga("0x3"))&&t[ga("0x6")].get(ga("0x2"))[ga("0x1")](ga("0x4"))}}const ma=["plugins","insertTableOfContents","editor","get","TrackChangesEditing","enableCommand","ELEMENT_TABLE_OF_CONTENTS","locale","tableOfContents","afterInit","registerElementLabel","commands"];var ha,pa;ha=ma,pa=164,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return ma[t-=0]};class Ea extends t.Plugin{[ba("0x1")](){const t=this[ba("0x6")];if(!t[ba("0x3")][ba("0x7")](ba("0x5")))return;t[ba("0x4")][ba("0x7")]("TrackChangesEditing")[ba("0x9")](ba("0x5"));const e=t[ba("0x4")][ba("0x7")](ba("0x8")),n=t[ba("0xb")];e._descriptionFactory[ba("0x2")](ba("0x0"),(t=>Yo(n,ba("0xa"),t)))}}const _a=["start","end","schema","plugins","has","get","registerPostFixer","locale","differ","Title","getNearestSelectionRange","title-content","suggestion","document","isCollapsed","newRange","TrackChangesEditing","_descriptionFactory","registerElementLabel","ELEMENT_TITLE","updateMarker","removeMarker","getChangedMarkers","nodeBefore","model","forward","createRange","_splitMarkerName","afterInit"];var Ta,Ca;Ta=_a,Ca=275,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0xe")](){const t=this.editor;if(!t.plugins[ya("0x13")](ya("0x18")))return;const e=t[ya("0x12")][ya("0x14")](ya("0x2"));e[ya("0x3")][ya("0x4")](ya("0x1a"),(()=>Yo(t[ya("0x16")],ya("0x5")))),t.model[ya("0x1c")][ya("0x15")]((n=>{let o=!1;const s=Array.from(t[ya("0xa")][ya("0x1c")][ya("0x17")][ya("0x8")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0xd")](r);if(ya("0x1b")!==s||!i[ya("0x1")])continue;const x=i.newRange,a=x[ya("0x10")][ya("0x9")];if(!a||!a.is("element",ya("0x1a")))continue;if(!x[ya("0xf")].isTouching(x[ya("0x10")]))continue;const c=t.model[ya("0x11")][ya("0x19")](x.end,ya("0xb"));if(c&&c[ya("0x0")]){const t=n[ya("0xc")](x[ya("0xf")],c.start);t.isEqual(x)||(n[ya("0x6")](r,{range:t}),o=!0)}o||(n[ya("0x7")](r),o=!0)}return o}))}}const Aa=["afterInit","TrackChangesEditing","enableCommand","undo","has","redo","UndoEditing","editor","plugins"];var va,Ra;va=Aa,Ra=204,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x3")](){const t=this[Ia("0x1")],e=t[Ia("0x2")].get(Ia("0x4"));t[Ia("0x2")][Ia("0x7")](Ia("0x0"))&&(e[Ia("0x5")](Ia("0x6")),e[Ia("0x5")](Ia("0x8")))}}const La=["TrackChangesEditing","requires","toggleTableCaption","editor","plugins","afterInit","get","TableCaptionEditing","enableCommand"];var Na,wa;Na=La,wa=186,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x4")](){return[Bx]}[Ma("0x8")](){const t=this[Ma("0x6")];t[Ma("0x7")].has(Ma("0x1"))&&t.plugins[Ma("0x0")](Ma("0x3"))[Ma("0x2")](Ma("0x5"))}}const Fa=["isListItemBlock","type","getAttribute","styles","has","ELEMENT_","expandListBlocksToCompleteList","handleDescriptions","markMultiRangeBlockFormat","commandName","reversed","*Format:* set order to reversed","push","DocumentListPropertiesEditing","listStyle","locale","handleListReversedCommand","numbered","model","selection","afterInit","enableCommand","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","_getTranslationKeyForListStyle","plugins","format","length","_LIST_","DocumentListPropertiesUtils","_descriptionFactory","DocumentListUtils","TrackChangesEditing","startIndex","isFirstBlockOfListItem","listType","handleListStyleCommand","commandParams","editor","filter","list.properties","from","change","bind","getSelectedBlocks","listStart","config","toUpperCase","listReversed","_getSuggestionBlocks","get","handleListStartCommand"];var Pa,Da;Pa=Fa,Da=291,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x29")](){if(!this.editor.plugins[Ba("0x19")](Ba("0x22")))return;const t=this[Ba("0x7")][Ba("0xf")][Ba("0x13")](Ba("0x9")),e=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x1"));t[Ba("0x18")]&&e[Ba("0x2a")]("listStyle",this[Ba("0x5")].bind(this)),t.reversed&&e[Ba("0x2a")](Ba("0x11"),this[Ba("0x25")][Ba("0xc")](this)),t[Ba("0x2")]&&e[Ba("0x2a")](Ba("0xe"),this[Ba("0x14")][Ba("0xc")](this)),e[Ba("0x33")].registerDescriptionCallback(this[Ba("0x1c")][Ba("0xc")](this))}[Ba("0x5")](t,e={}){const n=this.editor[Ba("0x2e")].get("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this.editor[Ba("0x27")][Ba("0xb")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ba("0x23"),commandParams:[{type:e[Ba("0x16")]}],formatGroupId:Ba("0x23")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x1")),o=this[Ba("0x7")].plugins[Ba("0x13")]("DocumentListUtils"),s=this[Ba("0x12")]((t=>o[Ba("0x15")](t)&&Ba("0x26")===t.getAttribute("listType")));null!==s&&this[Ba("0x7")][Ba("0x27")][Ba("0xb")]((()=>{n[Ba("0x1d")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x1f")]}],formatGroupId:Ba("0x11")})}))}[Ba("0x14")](t,e={}){const n=this[Ba("0x7")][Ba("0x2e")].get(Ba("0x1")),o=this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x0")),s=this[Ba("0x12")]((t=>o[Ba("0x15")](t)&&Ba("0x26")===t[Ba("0x17")](Ba("0x4"))));null!==s&&this[Ba("0x7")][Ba("0x27")][Ba("0xb")]((()=>{n[Ba("0x1d")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ba("0x2")]}],formatGroupId:Ba("0xe")})}))}[Ba("0x1c")](t){const e=this.editor[Ba("0x24")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x1e")]){case Ba("0x23"):o="*Change to:* %0",s={type:Ba("0x2f"),content:Yo(e,o,Yo(e,this[Ba("0x2d")](n[Ba("0x6")][0][Ba("0x16")])))};break;case Ba("0x11"):o=n[Ba("0x6")][0][Ba("0x1f")]?Ba("0x20"):"*Format:* set order to regular",s={type:Ba("0x2f"),content:Yo(e,o)};break;case Ba("0xe"):o=Ba("0x2c"),s={type:Ba("0x2f"),content:Yo(e,o,n[Ba("0x6")][0][Ba("0x2")])}}return s}[Ba("0x2b")](){const t=this[Ba("0x7")].plugins.get(Ba("0x0"));let e=Array[Ba("0xa")](this[Ba("0x7")].model.document[Ba("0x28")].getSelectedBlocks());return e[Ba("0x21")](...t[Ba("0x1b")](e)),e=[...new Set(e)],e}[Ba("0x12")](t){const e=this[Ba("0x7")][Ba("0x2e")].get(Ba("0x0"));let n=Array[Ba("0xa")](this[Ba("0x7")][Ba("0x27")].document.selection[Ba("0xd")]())[Ba("0x8")](t);if(!n[Ba("0x30")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x3")](t)&&o[Ba("0x21")](t);return o}[Ba("0x2d")](t){return Ba("0x1a")+this[Ba("0x7")][Ba("0x2e")][Ba("0x13")](Ba("0x32")).getListTypeFromListStyleType(t).toUpperCase()+Ba("0x31")+t[Ba("0x10")]().replace(/-/g,"_")}}const Ua=["tableBorderStyle","TrackChangesEditing","has","tableBorderWidth","removeAttribute","tableCellBorderWidth","TablePropertiesEditing","tableCellWidth","join","tableWidth","plugins","getAttribute","enableCommand","handleSuggestionDescription","tableCellBackgroundColor","table","_handlePropertyChange","TrackChangesTableProperties","getSelectionAffectedTableCells","tableCellProperties","registerDescriptionCallback","document","tableProperties","locale","tableCellHeight","TableUtils","get","discard","registerCustomCallback","markBlockFormat","_suggestionFactory","getSuggestions","tableCellBorderStyle","formatBlock","accept","tableCellHorizontalAlignment","change","tableHeight","editor","tableBackgroundColor","afterInit","selection","TableCellPropertiesEditing","model","_getSuggestion","*Format:* change table properties","handleDiscardAction","setAttribute","findAncestor","batch","tableBorderColor","getSuggestionCallback"];var Ga,Ha;Ga=Ua,Ha=314,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x14")]=[Wa("0x30"),Wa("0x32"),Wa("0x1"),"tableAlignment",Wa("0x7"),Wa("0x23"),Wa("0x25")],this.tableCellProperties=["tableCellBorderColor",Wa("0x1e"),Wa("0x3"),"tableCellPadding",Wa("0x5"),Wa("0x16"),Wa("0xc"),Wa("0x21"),"tableCellVerticalAlignment"]}static get pluginName(){return Wa("0xf")}[Wa("0x26")](){const t=this[Wa("0x24")][Wa("0x8")].get("TrackChangesEditing");if(this.editor[Wa("0x8")][Wa("0x0")](Wa("0x4"))){for(const e of this[Wa("0x14")])t[Wa("0xa")](e,((t,n)=>{const o=this[Wa("0x24")].model[Wa("0x13")].selection.getFirstPosition()[Wa("0x2e")](Wa("0xd"));this[Wa("0xe")](e,[o],this[Wa("0x14")],"tableProperties",t,n)}));t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x14"),Wa("0x20"),t._suggestionFactory[Wa("0x31")](Wa("0x1f"),null,Wa("0x19"))),t._suggestionFactory[Wa("0x1a")](Wa("0x1f"),Wa("0x14"),Wa("0x19"),((t,e)=>this[Wa("0x2c")](this.tableProperties,t,e))),t[Wa("0x1c")][Wa("0x1a")]("formatBlock",Wa("0x14"),Wa("0x6"),(()=>!1))}if(this[Wa("0x24")][Wa("0x8")].has(Wa("0x28"))){for(const e of this[Wa("0x11")])t[Wa("0xa")](e,((t,n)=>{const o=this[Wa("0x24")].plugins[Wa("0x18")](Wa("0x17"))[Wa("0x10")](this[Wa("0x24")].model.document[Wa("0x27")]);this[Wa("0xe")](e,o,this.tableCellProperties,Wa("0x11"),t,n)}));t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x11"),Wa("0x20"),t._suggestionFactory[Wa("0x31")](Wa("0x1f"),null,Wa("0x19"))),t[Wa("0x1c")][Wa("0x1a")](Wa("0x1f"),Wa("0x11"),Wa("0x19"),((t,e)=>this[Wa("0x2c")](this[Wa("0x11")],t,e))),t._suggestionFactory[Wa("0x1a")](Wa("0x1f"),"tableCellProperties",Wa("0x6"),(()=>!1))}t._descriptionFactory[Wa("0x12")]((t=>this[Wa("0xb")](t)))}[Wa("0xe")](t,e,n,o,s,r){const i=this[Wa("0x24")][Wa("0x8")][Wa("0x18")](Wa("0x33"));this[Wa("0x24")][Wa("0x29")].enqueueChange(r[Wa("0x2f")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Wa("0x9")](o);void 0!==n&&(e[o]=n)}s(r),i[Wa("0x1b")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start.nodeAfter,s=n.commandParams[0];this[Wa("0x24")][Wa("0x29")][Wa("0x22")]((e=>{for(const n of t)void 0!==s[n]?e[Wa("0x2d")](n,s[n],o):e[Wa("0x2")](n,o)}))}[Wa("0xb")](t){if(t.data)switch(t.subType){case Wa("0x14"):return{type:"format",content:Yo(this[Wa("0x24")][Wa("0x15")],Wa("0x2b"))};case Wa("0x11"):return{type:"format",content:Yo(this[Wa("0x24")][Wa("0x15")],"*Format:* change table cell properties")}}}[Wa("0x2a")](t,e){const n=this[Wa("0x24")][Wa("0x8")].get(Wa("0x33"));for(const o of n[Wa("0x1d")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Va=["clear","isBlock","getMarkers","isUndo","collaboration.channelId","discard","discardSelectedSuggestions","subType","_rangeIsInLocalUserInsertion","_breakSuggestionMarker","isLimit","consumable","_updateSuggestionData","_saved","item","fromCharCode","toViewElement","showSuggestionHighlights","acceptAllSuggestions","stop","markInlineFormat","sort","isSelectable","getFirstMarker","high","createdAt","markMultiRangeInsertion","previous","_getSuggestionData","hasCommentThread","writer","insertContent","formatInline:join","listenTo","_findSuggestions","getSuggestionCallback","containsRange","_addSuggestionMarker","trackChanges.trackFormatChanges","deletion:chain","bindElementToMarker","resolve","_getExternalAuthor","config","suggestionChanged","getSuggestion","getRange","insertion:chain","_getAuthorFromId","model","filter","error-saving-suggestion-data-suggestion-discarded","name","notReady","markInsertion","enableCommand","newRange","insertion:join","track-changes-suggestion-data-mismatch","_trackFormatChanges","markBlockFormat","isTouching","getWalker","includes","isCollapsed","discardSuggestion","move","elementToElement","multi","getIntersection","nodeAfter","low","createSelection","data-suggestion","_suggestionState","deletion:join","isExternal","assign","documentSelection","$textProxy","isAtStart","isArray","markerName","containsPosition","_removeSuggestion","_commentsRepository","getRanges","getAttribute","value","isEqual","ck-suggestion-marker--active","setAttribute","formatInline","getCustomProperty","ck-suggestion-marker-formatBlock","insertion:accept","unbind","forceDefaultExecution","nodeBefore","start","range","getAllAdjacentSuggestions","addSuggestionData","creator","dataDowncast","removed","adapter","mapper","set","addMarkerName","targetPosition","markMultiRangeDeletion","_suggestions","fire","howMany","_joinWithAdjacentSuggestions","formatBlock:accept","isRemovable","plugins","editor","suggestion","oldRange","every","toJSON","options","define","setTo","forward","_suggestionFactory","tablePasteChainId","addMarker:suggestion","marker-count","delete","_editor","markerReady","isInContent","_onDiscard","conversion","suggestionLoaded","PendingActions","hasComments","trackChanges.mergeNestedSuggestions","PENDING_ACTION_SUGGESTION","_joinSuggestions","execute","markers","open","detach","removeComment","fromRange","isIntersectingWithRange","_handleNewSuggestionMarker","_setSuggestionData","values","formatBlock:join","some","group","getItems","deletion","change:data","isInsideObject","locale","_mergeNestedSuggestions","isAfter","addClass","removeMarker","_isDataLoaded","ck-suggestion-marker","_addThreadToSuggestion","getMultiRangeId","originalSuggestionId","size","_refreshSuggestionsChain","@external","elementStart","insert","type","_customCallbacks","isBefore","_isForcedDefaultExecutionBlock","_defaultCallbacks","formatBlock:discard","addComment","fetchCommentThread","accept","add","catch","getChangedMarkers","join","has","createPositionAfter","author","after","_registerDefaultCallbacks","formatInline:chain","authorName","markerToHighlight","suggestionUnloaded","addMarker:suggestion:formatBlock","attributes","ready","formatBlock","document","differ","createRangeIn","highest","skipNestingCheck","formatBlock:chain","then","removeMarker:suggestion:formatBlock","createPositionAt","dataReady","ck-suggestion-marker-","multipleBlocks","update:suggestion","from","track-changes-adapter-already-set","addSuggestion","external:","data","isNextTo","_adapter","rejected","commands","suggestion:","stopListening","trackChanges","buildSuggestion","getSuggestions","deletion:","consume","_cutOutSuggestionMarker","CommentsRepository","track-changes-adapter-missing-getsuggestion","isLocal","formatInline:","discardAllSuggestions","selection","createRange","registerPostFixer","_splitMarkerName","getLastMatchingPosition","getNearestSelectionRange","insertion:","map","position","$marker","deleteContent","elementEnd","change","getDifference","get","getChanges","_enabledCommands","isMultiRange","never","insertion","addMarker","_checkSuggestionCorrectness","acceptSelectedSuggestions","updateMarker","end","head","addRange","split","keys","_createSuggestion","getAncestors","getShiftedBy","unbindElementFromMarkerName","formatGroupId","for","init","applyOperation","change:_saved","root","$graveyard","containerElement","acceptSuggestion","removeClass","next","isDocumentOperation","schema","rootName","getUser","always","getFirstRange","parent","moveTargetPosition","getCommentThread","setSelection","updateSuggestion","removeMarkers","markDeletion","change:activeMarkers","formatBlock:","push","trackChangesCommand","batch","commentThread","widget","element","containsItem","isOwn","backward","activeMarkers","accepted","_model","TrackChangesEditing","_setSuggestionRange","containsRangeInObject","dataToMarker","remove","deletion:discard","insertion:discard","isObject","length","splitPosition","Users","lowest","upcast","chain","editingDowncast","addUser","suggestion-type"];var Ka,qa;Ka=Va,qa=497,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,fs,Rs,ws,Bs,Ws,$s,er,ir,ja,dr,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,wi,ji,zi,$i,tx,rx,ux,px,Cx,Ix,Mx,Bx,zx,$x,Oa,na,ca,Ea,za,fa,ka,Sa]}static get pluginName(){return Xa("0x88")}constructor(t){function e(t){return t[Xa("0x48")]((t=>String[Xa("0xa8")](t)))[Xa("0x10")]("")}super(t),this[Xa("0x105")](Xa("0x85"),[]),this.on(Xa("0x7a"),((e,n,o,s)=>{this[Xa("0x87")][Xa("0x4d")]((()=>{for(const e of[...s,...o])this[Xa("0x87")][Xa("0x12a")].has(e)&&t.editing.reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[Xa("0x110")][Xa("0xca")].schema,this[Xa("0x110")][Xa("0x13a")]),this[Xa("0x31")]=null,this[Xa("0x119")]=new Ja(this[Xa("0x110")]),this._suggestions=new Map,this[Xa("0xee")]=t[Xa("0x10f")][Xa("0x4f")](Xa("0x3c")),this[Xa("0x51")]=new Set,this._model=this[Xa("0x110")][Xa("0xca")],this[Xa("0xe3")]=new WeakMap,this[Xa("0x7")]=!1,t[Xa("0xc4")][Xa("0x116")]("trackChanges.trackFormatChanges","default"),this[Xa("0xd4")]=t.config[Xa("0x4f")](Xa("0xbf")),t.config.define(Xa("0x126"),!0),this[Xa("0x13b")]=t[Xa("0xc4")].get(Xa("0x126")),this.trackChangesCommand=new d(t,this[Xa("0x51")]),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,50,48,53,54])}[Xa("0x64")](){const t=this[Xa("0x110")];t[Xa("0x122")][Xa("0x63")](Xa("0x96"))[Xa("0x18")]({model:Xa("0x111"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0xeb")]),o=[Xa("0x140"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x85")].includes(t[Xa("0xeb")])&&(o[Xa("0x7c")](Xa("0xf3")),s=3010),Xa("0x137")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x122")].for("dataDowncast")[Xa("0xd")]((e=>{e.on(Xa("0x11b"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o.mapper[Xa("0xa9")](s);t[Xa("0xca")][Xa("0x6e")][Xa("0x8f")](s)&&r&&!r[Xa("0xf6")](Xa("0x80"))&&r.is(Xa("0x69"))&&(0,x.toWidget)(r,o[Xa("0xb7")])}),{priority:Xa("0xb1")})})),t[Xa("0x122")][Xa("0x63")](Xa("0x101"))[Xa("0x18")]({model:"suggestion",view:(t,e)=>{if(!e.options[Xa("0xaa")])return null;const{type:n}=this[Xa("0x44")](t[Xa("0xeb")]);return{classes:[Xa("0x140"),Xa("0x28")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0xa7")])return;if(o[Xa("0xa7")].is(Xa("0x41")))return void s[Xa("0xa4")].consume(o[Xa("0xa7")],n[Xa("0xcd")]);const r=s.mapper[Xa("0xa9")](o[Xa("0xa7")]);if(!o[Xa("0xa7")].is(Xa("0x81"))||!t[Xa("0xca")][Xa("0x6e")][Xa("0x9a")](o[Xa("0xa7")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[Xa("0x44")](o[Xa("0xeb")]);s.writer[Xa("0x13d")]([Xa("0x140"),Xa("0xf7")],r),s[Xa("0xb7")][Xa("0xf4")](Xa("0xe2"),i,r),s[Xa("0x104")][Xa("0xc1")](r,o[Xa("0xeb")]),e&&(this[Xa("0x85")].includes(o[Xa("0xeb")])?s[Xa("0xb7")][Xa("0x13d")](Xa("0xf3"),r):s.writer[Xa("0x6b")](Xa("0xf3"),r));for(const e of t[Xa("0xca")][Xa("0x20")](o.item)[Xa("0x136")]())s[Xa("0xa4")][Xa("0x3a")](e,n[Xa("0xcd")]);s[Xa("0xa4")][Xa("0x3a")](o[Xa("0xa7")],n[Xa("0xcd")])};t[Xa("0x122")].for("dataDowncast")[Xa("0xd")]((t=>{t.on(Xa("0x1a"),((t,e,o)=>{o[Xa("0x115")][Xa("0xaa")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x21")})})),t[Xa("0x122")][Xa("0x63")](Xa("0x101")).markerToData({model:Xa("0x111"),view:(t,e)=>e[Xa("0x115")][Xa("0xaa")]?null:{group:Xa("0x111"),name:t.substr(11)}}),t[Xa("0x122")][Xa("0x63")](Xa("0x94"))[Xa("0xdc")]({view:{name:Xa("0x111"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x34")+t[Xa("0xf0")](Xa("0x98"))+":"+t.getAttribute("id");return t[Xa("0xf0")](Xa("0x11c"))&&(n+=":"+t[Xa("0xf0")](Xa("0x11c"))),e.createElement(Xa("0x4a"),{"data-name":n})}}),t.conversion[Xa("0x63")]("upcast")[Xa("0x8b")]({view:"suggestion"}),t[Xa("0x122")][Xa("0x63")]("editingDowncast")[Xa("0xd")]((t=>{t.on(Xa("0x1a"),n(),{priority:Xa("0xb1")})})),t.conversion[Xa("0x63")](Xa("0x96"))[Xa("0xd")]((t=>{t.on(Xa("0x25"),((t,e,n)=>{const o=n[Xa("0x104")].markerNameToElements(e.markerName);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[Xa("0xb7")][Xa("0x6b")]([Xa("0x140"),Xa("0xf7"),"ck-suggestion-marker--active"],t),n[Xa("0xb7")].removeAttribute(Xa("0xe2"),t),n[Xa("0x104")][Xa("0x61")](t,e[Xa("0xeb")]))}),{priority:Xa("0xb1")})})),t[Xa("0xca")][Xa("0x1e")][Xa("0x43")]((e=>{let n=!1;const o=Array.from(t[Xa("0xca")][Xa("0x1e")][Xa("0x1f")][Xa("0xf")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x44")](x);if("suggestion"!==o)continue;const u=this[Xa("0x109")][Xa("0x4f")](l);if(null!=a[Xa("0xd1")])if(Xa("0xf5")==c&&(n=n||Ya(a.newRange,x,e,t[Xa("0xca")][Xa("0x6e")])),a[Xa("0xd1")].isCollapsed||"$graveyard"==a[Xa("0xd1")][Xa("0x67")].rootName||Xa("0x1d")==c&&!ec(a[Xa("0xd1")])||Xa("0x137")==c&&(Za(i=a[Xa("0xd1")])||(r=i)[Xa("0xfc")][Xa("0x73")]==r[Xa("0x59")].nodeBefore&&r[Xa("0xfc")].isAtEnd))e.removeMarker(x),n=!0;else{if(!u||!u[Xa("0x120")])continue;s.add(u)}}var r,i;return s[Xa("0x144")]>0&&(n=!!this[Xa("0x10c")](s)||n),n})),t[Xa("0xca")][Xa("0x1e")][Xa("0x43")]((e=>{let n=!1;for(const o of t[Xa("0xca")][Xa("0x1e")].differ[Xa("0x50")]()){if(Xa("0x3")!=o[Xa("0x4")])continue;const s=o[Xa("0x49")][Xa("0x60")](o[Xa("0x90")]);if(s.isAtEnd)for(const r of this[Xa("0x109")][Xa("0x132")]()){if(r[Xa("0x52")]||!r[Xa("0x120")])continue;if(Xa("0x1d")!=r[Xa("0x4")])continue;const i=r.getFirstRange();if(i[Xa("0xfc")].parent!=i.end[Xa("0x73")]&&i[Xa("0x59")][Xa("0xf2")](o[Xa("0x49")])){const o=t.model[Xa("0x42")](i[Xa("0xfc")],s);e[Xa("0x58")](r[Xa("0xb0")](),{range:o}),n=!0}}}return n})),t[Xa("0xca")][Xa("0x12a")].on(Xa("0x2a"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x44")](e.name),n=this[Xa("0x109")][Xa("0x4f")](t);n&&n[Xa("0x106")](e.name)}})),t[Xa("0xca")][Xa("0x1e")].on(Xa("0x138"),(()=>{const e=Array[Xa("0x2b")](t.model[Xa("0x1e")].differ.getChangedMarkers())[Xa("0xcb")]((t=>Xa("0x111")===this[Xa("0x44")](t[Xa("0xcd")])[Xa("0x135")]));if(0===e[Xa("0x90")])return;e[Xa("0xae")](((t,e)=>{const n=t.data[Xa("0x112")],o=e[Xa("0x2f")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xfc")].isBefore(o[Xa("0xfc")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x44")](t);if(null===s[Xa("0x112")]){const e=this[Xa("0x130")](t);o[Xa("0xd")](e)}else{const t=this._suggestions[Xa("0x4f")](e);null!==s[Xa("0xd1")]||t.isInContent?(n.add(t[Xa("0x5a")]),o[Xa("0xd")](t)):this._removeSuggestion(t)}}o[Xa("0x144")]>0&&this[Xa("0x0")](o);for(const t of n)this.fire(Xa("0xc5"),t)})),t[Xa("0xca")].on(Xa("0x65"),((e,n)=>{const o=n[0];if(!this[Xa("0x109")].size)return;if(!o[Xa("0x6d")])return;if(o[Xa("0x7e")][Xa("0x9c")]||!o[Xa("0x7e")][Xa("0x3e")])return;let s,r;switch(o.type){case"insert":s=t.model[Xa("0x26")](o[Xa("0x49")]),r=s[Xa("0x60")](o.howMany);break;case"split":s=t[Xa("0xca")][Xa("0x26")](o[Xa("0x91")]),r=t[Xa("0xca")][Xa("0x26")](o[Xa("0x74")]);break;case Xa("0xdb"):s=t.model[Xa("0x26")](o[Xa("0x107")]),r=s.getShiftedBy(o[Xa("0x10b")]);break;default:return}const i=t[Xa("0xca")][Xa("0x42")](s,r);t[Xa("0xca")][Xa("0x4d")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xbb")](i)){if(t.isMultiRange)continue;if(Xa("0xf5")==t.type)continue;const n=t[Xa("0x2f")]&&t.data[Xa("0x29")];(Xa("0x1d")!=t[Xa("0x4")]||Xa("0x5c")==o[Xa("0x4")]&&!n)&&(e[Xa("0x8a")]||Xa("0x54")==t[Xa("0x4")]&&e[Xa("0x83")]||t[Xa("0x72")]()[Xa("0xbd")](i)&&this[Xa("0xa2")](t,s,r))}}))}),{priority:Xa("0x93")}),t[Xa("0xca")].on(Xa("0x4b"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xfa")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x7d")].value)return;if(o[Xa("0xd9")])return;const r=t[Xa("0xca")][Xa("0x6e")],{start:i,end:x}=o[Xa("0x72")](),a=i[Xa("0xdf")]&&r[Xa("0xa3")](i[Xa("0xdf")])?null:r[Xa("0x46")](i,Xa("0x118")),c=x[Xa("0xfb")]&&r[Xa("0xa3")](x.nodeBefore)?null:r[Xa("0x46")](x,Xa("0x84")),l=t[Xa("0xca")][Xa("0x42")](a?a[Xa("0xfc")]:i,c?c[Xa("0x59")]:x);t[Xa("0xca")][Xa("0x4d")]((e=>{this.markDeletion(l);const n=t[Xa("0xca")].schema[Xa("0x46")](l[Xa("0xfc")]);o.is(Xa("0xe7"))?e[Xa("0x76")](n):o[Xa("0x117")](n)})),e[Xa("0xac")]()}),{priority:e.priorities.normal+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Xa("0x90")]-1];o&&o[Xa("0xfa")]||this[Xa("0x7")]||this.trackChangesCommand[Xa("0xf1")]&&(t[Xa("0xca")][Xa("0x4d")]((()=>{let o=t[Xa("0xca")][Xa("0xb8")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o[Xa("0x59")].nodeBefore,r=t[Xa("0xca")][Xa("0x6e")];s&&r[Xa("0x9a")](s)&&!r[Xa("0x8f")](s)&&(o=t.model.createRange(o[Xa("0xfc")],t.model[Xa("0x26")](s,Xa("0x59")))),this[Xa("0xcf")](o)})),e.stop())}),{priority:Xa("0xb1")}),this[Xa("0x110")][Xa("0x33")][Xa("0xd")](Xa("0x36"),this[Xa("0x7d")]),this[Xa("0xd0")](Xa("0x36"));const o=new p(t,this[Xa("0x109")]);t[Xa("0x33")][Xa("0xd")](Xa("0x6a"),o),this[Xa("0xd0")](Xa("0x6a"));const s=new C(t,this._suggestions);t.commands[Xa("0xd")](Xa("0xda"),s),this[Xa("0xd0")](Xa("0xda")),t[Xa("0x33")][Xa("0xd")](Xa("0xab"),new F(t,o,this[Xa("0x109")])),this[Xa("0xd0")]("acceptAllSuggestions"),t[Xa("0x33")].add(Xa("0x40"),new F(t,s,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x40")),t[Xa("0x33")][Xa("0xd")](Xa("0x57"),new U(t,o,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x57")),t[Xa("0x33")].add(Xa("0x9f"),new U(t,s,this[Xa("0x109")])),this[Xa("0xd0")](Xa("0x9f"));const r=t.plugins[Xa("0x4f")]("CommentsRepository");this[Xa("0xba")](r,Xa("0xa"),((t,{threadId:e})=>{const n=this[Xa("0x109")][Xa("0x4f")](e);n&&n[Xa("0x7f")]&&1===n.commentThread[Xa("0x90")]&&this[Xa("0xa5")](e,{hasComments:!0})}),{priority:Xa("0xe0")}),this[Xa("0xba")](r,Xa("0x12d"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x4f")](e);n&&n[Xa("0x7f")]&&!n.commentThread[Xa("0x90")]&&this[Xa("0xa5")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0x103")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x2c"),this);this[Xa("0x31")]=t}get[Xa("0x103")](){return this[Xa("0x31")]}[Xa("0x38")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x109")][Xa("0x132")]())t&&!e.isInContent||n[Xa("0x7c")](e);return e?n[Xa("0x48")]((t=>t[Xa("0x114")]())):n}[Xa("0xc6")](t){const n=this._suggestions[Xa("0x4f")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[Xa("0x109")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[Xa("0x5c")](":"),i=this[Xa("0x109")].get(n)||this[Xa("0x5e")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[Xa("0x56")](i,s,r||null,e),i.createdAt=t[Xa("0xb2")],i[Xa("0x13f")]=!0,o&&o["@external"]){const t=o[Xa("0x1")],e=this._getExternalAuthor(t[Xa("0x17")]);i.authoredAt=t[Xa("0xb2")],i[Xa("0x13")]=e,i[Xa("0xe5")]=!0}else i.authoredAt=t[Xa("0xb2")];switch(t[Xa("0x2f")]&&(i[Xa("0x2f")]=t[Xa("0x2f")]),t[Xa("0x1b")]&&(i[Xa("0x1b")]=t.attributes),this[Xa("0x31")]&&this[Xa("0x31")].addSuggestion||(i[Xa("0xa6")]=!0),this._suggestionState[Xa("0x4f")](i)){case Xa("0xce"):this[Xa("0xe3")][Xa("0x105")](i,Xa("0x27"));break;case"markerReady":i.isInContent?(this[Xa("0x0")](new Set([i])),this[Xa("0x10c")](new Set([i])),this[Xa("0xe3")][Xa("0x105")](i,"ready"),this.fire(Xa("0x123"),i)):this[Xa("0xe3")][Xa("0x105")](i,Xa("0x102"))}return i}[Xa("0x6a")](t){this[Xa("0xfa")]((()=>{this.editor[Xa("0xca")][Xa("0x4d")]((()=>{for(const e of t[Xa("0xfe")]())e[Xa("0xc")]()}))}))}[Xa("0xda")](t){this[Xa("0xfa")]((()=>{this[Xa("0x110")][Xa("0xca")][Xa("0x4d")]((()=>{for(const e of t[Xa("0xfe")]())e[Xa("0x9e")]()}))}))}[Xa("0xd0")](t,n){const o=this[Xa("0x110")][Xa("0x33")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[Xa("0x51")][Xa("0xd")](o),n&&o.on(Xa("0x129"),((t,e)=>{this[Xa("0x7d")][Xa("0xf1")]&&(this[Xa("0x7")]||e[Xa("0x90")]>0&&e[e[Xa("0x90")]-1]&&e[e[Xa("0x90")]-1][Xa("0xfa")]||(t.return=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0xac")]()))}),{priority:Xa("0xb1")})}[Xa("0xfa")](t){let n,o;const s=this[Xa("0x7")];this[Xa("0x7")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xcf")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me;for(const{suggestion:e,meta:s}of this[Xa("0xbb")](t,"insertion"))if(s.isOwn){if(!s[Xa("0x30")]){if(s[Xa("0x8a")]){if(!this[Xa("0x13b")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0xa2")](e,t[Xa("0xfc")],t[Xa("0x59")]);break}if(n==e[Xa("0xa0")]&&rc(e,o)){const n=e[Xa("0x72")]();return n.start[Xa("0xf2")](t.end)?this[Xa("0x89")](e,this[Xa("0x87")][Xa("0x42")](t[Xa("0xfc")],n[Xa("0x59")])):this._setSuggestionRange(e,this._model[Xa("0x42")](n[Xa("0xfc")],t[Xa("0x59")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Xa("0x54"),a=this[Xa("0x131")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xbe")](x,r,i,t),a}[Xa("0xb3")](t,n=Xa("0xdd"),o={}){const s=this.editor[Xa("0x10f")][Xa("0x4f")]("Users").me,r=this[Xa("0x119")][Xa("0xbc")](Xa("0x54"),n,Xa("0x10"));for(const e of this[Xa("0x38")]())if(e[Xa("0x13")].id==s.id&&"insertion"==e[Xa("0x4")]&&e[Xa("0xa0")]==n&&rc(e,o)&&(r(e[Xa("0xef")](),t)||r(t,e[Xa("0xef")]()))){for(const n of t)e[Xa("0x5b")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0x54"))){if(!n[Xa("0x83")])continue;if(!this[Xa("0x13b")]&&n[Xa("0x8a")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0xef")]())for(const e of t)if(!n[Xa("0xbd")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x47")+n,c=this[Xa("0x131")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xbe")](a,i,x,e,Zo[Xa("0x142")]());return c}[Xa("0xad")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xd9")])return null;if(Xa("0x53")===this[Xa("0xd4")]){const e=this[Xa("0x119")].getSuggestionCallback(Xa("0xf5"),o,Xa("0xc"));return this[Xa("0xfa")]((()=>e([t],n,s))),null}const r=this[Xa("0x110")].plugins[Xa("0x4f")](Xa("0x92")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Xa("0xbb")](t,Xa("0x54")))n.isOwn&&!n[Xa("0x139")]&&i[Xa("0x7c")](...e[Xa("0xef")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0xde")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x90")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[Xa("0x90")]}}return n}(t,i);x[Xa("0x90")]&&this[Xa("0x87")][Xa("0x4d")]((()=>{for(const t of x){const e=this[Xa("0x119")][Xa("0xbc")](Xa("0xf5"),o,Xa("0xc"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xfc")],a=t[Xa("0x59")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xf5"))){if(!n[Xa("0x83")])continue;if(e[Xa("0xa0")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x72")]();if(r[Xa("0xbd")](t,!0))return null;x=x.isBefore(r.start)?x:r[Xa("0xfc")],a=a[Xa("0x13c")](r[Xa("0x59")])?a:r[Xa("0x59")],i?r[Xa("0xfc")][Xa("0x6")](i[Xa("0x72")]()[Xa("0xfc")])?(i[Xa("0x78")](),i=e):e[Xa("0x78")]():i=e}const c=this[Xa("0x87")][Xa("0x42")](x,a);if(i)this[Xa("0x89")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x131")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xbe")](Xa("0x3f")+o,t,i,c)}}return null}[Xa("0xd5")](t,n,o=[],s=null,r={}){n[Xa("0x62")]||(n[Xa("0x62")]=n.commandName),n[Xa("0x29")]=t.is(Xa("0xfd")),s=s||tc(n);const i=o[Xa("0x48")]((t=>nc(t,this[Xa("0x87")]))),x=t.is(Xa("0xfd"))?t:nc(t,this[Xa("0x87")]);if(Xa("0x53")===this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,"accept");return this[Xa("0xfa")]((()=>t([x],n,r))),null}i[Xa("0x7c")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&Xa("0x71")!==this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xfc")],u=x[Xa("0x59")];for(const{suggestion:t,meta:e}of this[Xa("0xbb")](x,Xa("0x1d"))){if(!e.isOwn)continue;if(e[Xa("0x30")]||e[Xa("0x8a")]||e.isInsideObject)continue;if(t[Xa("0x2f")][Xa("0x62")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xa("0x72")]();if(t[Xa("0xa0")]==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x6")](o[Xa("0xfc")])?l:o[Xa("0xfc")],u=u[Xa("0x13c")](o[Xa("0x59")])?u:o.end,c?o.start.isBefore(c[Xa("0x72")]()[Xa("0xfc")])?(c[Xa("0x78")](),c=t):t[Xa("0x78")]():c=t}else{const e=x.getIntersection(o);this[Xa("0x3b")](t,e)}}const d=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Xa("0x89")](c,this[Xa("0x87")][Xa("0x42")](l,u)),c;{const t=this[Xa("0x131")]({id:g,type:Xa("0x7b")+s,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(Xa("0x7b")+s,g,f,this[Xa("0x87")][Xa("0x42")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[Xa("0x62")]||(n[Xa("0x62")]=n.commandName);const i=t[0];n[Xa("0x29")]=i.is(Xa("0xfd")),s=s||tc(n);const x=o[Xa("0x48")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x48")]((t=>nc(t,this._model)));if(Xa("0x53")===this._trackFormatChanges){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t(a,n,r))),null}x[Xa("0x7c")](...a);let c=!0;for(const t of x)if(!this[Xa("0xa1")](t)){c=!1;break}if(c&&Xa("0x71")!==this[Xa("0xd4")]){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x1d"),s,Xa("0xc"));return this[Xa("0xfa")]((()=>t(a,n,r))),null}const l=this[Xa("0x110")][Xa("0x10f")].get(Xa("0x92")).me;for(const t of this[Xa("0x38")]()){if(t[Xa("0x13")].id!=l.id)continue;if(Xa("0x1d")!=t[Xa("0x4")]||t[Xa("0x2f")].formatGroupId!=n[Xa("0x62")])continue;if(!rc(t,r))continue;const e=t[Xa("0xa0")]==s;for(let n=0;n<a[Xa("0x90")];n++){const o=a[n];for(const s of t[Xa("0x9b")]()){const r=s[Xa("0xc7")]();if(o[Xa("0xf2")](r)){e?(a.splice(n,1),n--):t[Xa("0x13e")](s[Xa("0xcd")]);break}}}}if(0==a[Xa("0x90")])return null;const u=this[Xa("0x119")][Xa("0xbc")]("formatBlock",s,Xa("0x10"));for(const t of this[Xa("0x38")]())if(t[Xa("0x13")].id==l.id&&Xa("0x1d")==t.type&&t[Xa("0x2f")].formatGroupId==n[Xa("0x62")]&&t.subType==s&&rc(t,r)&&(u(t[Xa("0xef")](),a)||u(a,t[Xa("0xef")]()))){for(const e of a)t[Xa("0x5b")](e);return t}const d=(0,e.uid)(),g=l.id,f=Xa("0x7b")+s,m=this[Xa("0x131")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Zo[Xa("0x142")]());return m}[Xa("0x79")](t,n=null,o={}){if(t[Xa("0xd9")])return null;const s=this[Xa("0x110")].plugins[Xa("0x4f")](Xa("0x92")).me,r=new i.LiveRange(t[Xa("0xfc")],t[Xa("0x59")]);for(const{suggestion:t,meta:e}of this[Xa("0xbb")](r,Xa("0x54")))if(e.isOwn&&!e[Xa("0x30")])if(t[Xa("0x52")]){const e=t[Xa("0xef")]()[Xa("0xcb")]((t=>Xa("0x68")!=t[Xa("0x67")].rootName));if(e.every((t=>r[Xa("0xbd")](t,!0)))&&t[Xa("0x9e")](),e[Xa("0x134")]((t=>t[Xa("0xbd")](r,!0)))){const t=this._suggestionFactory[Xa("0xbc")](Xa("0x137"),n,"accept");return this[Xa("0xfa")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0xde")](t[Xa("0x72")]());null!==e&&t[Xa("0x121")]([e],null,o)}if(r[Xa("0x12c")](),r[Xa("0xd9")]||Xa("0x68")==r[Xa("0x67")][Xa("0x6f")])return null;let x=null,a=r[Xa("0xfc")],c=r[Xa("0x59")];const l=this[Xa("0xbb")](r,Xa("0x137"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x87")][Xa("0x42")](a,c);if(e[Xa("0x83")]&&(this[Xa("0x13b")]||!e[Xa("0x8a")]&&!e.isInsideObject))if(t[Xa("0x52")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0xef")]()){if(o[Xa("0xbd")](n,!0))return t;n[Xa("0xbd")](o)||(e=!1)}e&&t[Xa("0x9e")]()}else{const e=t[Xa("0x72")]();if(e[Xa("0xbd")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x78")]():e.containsPosition(a)?a=e[Xa("0x59")]:e[Xa("0xec")](c)&&(c=e.start);continue}a=a[Xa("0x6")](e.start)?a:e[Xa("0xfc")],c=c[Xa("0x13c")](e[Xa("0x59")])?c:e[Xa("0x59")],o=Object[Xa("0xe6")]({},t[Xa("0x1b")]),x?e.start.isBefore(x[Xa("0x72")]()[Xa("0xfc")])?(x[Xa("0x78")](),x=t):t[Xa("0x78")]():x=t}}if(x)return this[Xa("0x89")](x,this[Xa("0x87")][Xa("0x42")](a,c)),x;{const t=(0,e.uid)(),r=this._model[Xa("0x42")](a,c),i=s.id,x=n?Xa("0x39")+n:Xa("0x137"),l=this[Xa("0x131")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xbe")](x,t,i,r),l}}[Xa("0x108")](t,n=Xa("0xdd"),o={}){const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me,r=t[Xa("0x48")]((t=>new i.LiveRange(t[Xa("0xfc")],t[Xa("0x59")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xbb")](r,Xa("0x54")))e.isOwn&&!e[Xa("0x30")]&&x[Xa("0xd")](t);for(const e of x)if(e[Xa("0x52")]){const s=e[Xa("0xef")]();if((!e[Xa("0x1b")]||!e[Xa("0x1b")][Xa("0x22")])&&s[Xa("0x113")]((t=>r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))&&e[Xa("0x9e")](),r[Xa("0x113")]((t=>s[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))){const e=this._suggestionFactory[Xa("0xbc")]("deletion",n,Xa("0xc"));return this[Xa("0xfa")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x72")]();if(r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))&&e[Xa("0x9e")](),r.every((e=>t[Xa("0xbd")](e,!0)))){const t=this[Xa("0x119")][Xa("0xbc")](Xa("0x137"),n,Xa("0xc"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Xa("0xbc")](Xa("0x137"),n,"join");let c=null;for(const t of this[Xa("0x38")]())if(t[Xa("0x13")].id==s.id&&t.isInContent&&Xa("0x137")==t[Xa("0x4")]&&t[Xa("0xa0")]==n&&rc(t,o)&&(a(t[Xa("0xef")](),r)||a(r,t[Xa("0xef")]())))if(c){if(t[Xa("0x7f")]&&t[Xa("0x7f")][Xa("0x90")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c[Xa("0x5b")](e);t[Xa("0x78")]()}else{c=t;for(const e of r)t[Xa("0x12f")](e)||t[Xa("0x5b")](e)}if(c)return c;x[Xa("0x99")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x137")))e.isOwn&&(this[Xa("0x13b")]||!e[Xa("0x8a")]&&!e.isInsideObject)&&rc(t,o)&&x.add(t);for(const t of x){const e=t[Xa("0xef")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e.some((e=>e[Xa("0xbd")](t,!0))))))return t;(!t[Xa("0x1b")]||!t[Xa("0x1b")][Xa("0x22")])&&e.every((t=>r[Xa("0x134")]((e=>e[Xa("0xbd")](t,!0)))))&&t[Xa("0x9e")]()}const l=(0,e.uid)(),u=s.id,d=Xa("0x39")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[Xa("0xd9")]||Xa("0x68")==t[Xa("0x67")][Xa("0x6f")]||this[Xa("0xbe")](d,l,u,t,Zo[Xa("0x142")]());return g}[Xa("0x89")](t,e){const n=t[Xa("0xb0")]();this._model[Xa("0x4d")]((t=>{t[Xa("0x58")](n,{range:e})}))}[Xa("0x141")](t){const e=t.id,n=this.editor[Xa("0xc4")][Xa("0x4f")](Xa("0x9d"));this[Xa("0xee")][Xa("0xb6")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[Xa("0x75")](e);o[Xa("0xf9")](Xa("0x10e")),o.isRemovable=!1,t[Xa("0x7f")]=o}[Xa("0x56")](t,n,o,s){if(t[Xa("0x4")]!=n||t[Xa("0xa0")]!=o||t[Xa("0x100")].id!=s)throw this[Xa("0x110")].enableReadOnlyMode(Xa("0xd3")),new e.CKEditorError(Xa("0xd3"),this)}[Xa("0x3b")](t,n){const o=t[Xa("0x72")]();if(n[Xa("0xf2")](o))t[Xa("0x78")]();else if(o[Xa("0xbd")](n)){const s=this[Xa("0x87")].createPositionAt(n.start[Xa("0xfb")],"end");this._setSuggestionRange(t,this[Xa("0x87")].createRange(o[Xa("0xfc")],s));const r=(0,e.uid)(),i=t[Xa("0x100")].id,x=t.type+":"+t[Xa("0xa0")];this[Xa("0x131")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x87")][Xa("0x26")](n.end.parent,Xa("0x14")),c=this[Xa("0x87")][Xa("0x42")](a,o[Xa("0x59")]);this[Xa("0xbe")](x,r,i,c)}else if(o[Xa("0xec")](n[Xa("0xfc")])){const e=this[Xa("0x87")].createPositionAt(n[Xa("0xfc")][Xa("0xfb")],Xa("0x59"));this[Xa("0x89")](t,this[Xa("0x87")].createRange(o[Xa("0xfc")],e))}else{const e=this[Xa("0x87")].createPositionAt(n.end[Xa("0x73")],Xa("0x14"));this[Xa("0x89")](t,this[Xa("0x87")][Xa("0x42")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0xbb")](t,Xa("0x54"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[Xa("0x4e")](e)[Xa("0x90")])return!0}return!1}[Xa("0xc9")](t){const n=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x92"))[Xa("0x70")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xc3")](t){const e=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x92")),n=(0,r.hashObject)(Xa("0x2e")+t);return e[Xa("0x70")](n)||e[Xa("0x97")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Xa("0xc9")](o),i=this[Xa("0x119")][Xa("0x37")](t,e,n,r,s,(t=>this[Xa("0xa5")](n,{attributes:t})));return this.listenTo(i,Xa("0xc"),(()=>{this[Xa("0xa5")](n,{state:Xa("0x86")})}),{priority:"high"}),this.listenTo(i,Xa("0x9e"),(()=>{this[Xa("0xa5")](n,{state:Xa("0x32")})}),{priority:Xa("0xb1")}),this[Xa("0x109")][Xa("0x105")](n,i),this[Xa("0xe3")].set(i,Xa("0xce")),i}[Xa("0x44")](t){const e=t[Xa("0x5c")](":");return{group:e[0],type:e[1],subType:e[Xa("0x90")]>=5?e[2]:null,id:e[Xa("0x90")]<5?e[2]:e[3],authorId:e[Xa("0x90")]<5?e[3]:e[4],markerCount:6==e[Xa("0x90")]?e[5]:null}}[Xa("0xa2")](t,n,o){const s=t.getFirstRange(),r=s[Xa("0xfc")],i=s.end;this._setSuggestionRange(t,this[Xa("0x87")][Xa("0x42")](r,n));const x=(0,e.uid)(),a=t[Xa("0x100")].id,c=t.type+(t.subType?":"+t[Xa("0xa0")]:"");this[Xa("0x131")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x1b")],data:t[Xa("0x2f")]}),Xa("0x1d")==t[Xa("0x4")]&&(o=this[Xa("0x87")].createPositionBefore(o[Xa("0x73")])),this[Xa("0xbe")](c,x,a,this[Xa("0x87")][Xa("0x42")](o,i))}[Xa("0xbb")](t,e=null){const n=[],o=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x92")).me;Array[Xa("0xea")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s.isInContent)continue;if(e&&s[Xa("0x4")]!=e)continue;let r=!1;for(const e of s[Xa("0xef")]()){for(const i of t){const t=i[Xa("0xfc")][Xa("0xf2")](e[Xa("0x59")])||i[Xa("0x59")][Xa("0xf2")](e[Xa("0xfc")]);if(t||i.getIntersection(e)){const x=i.containsRange(e)&&Qa(this[Xa("0x87")][Xa("0x6e")],e.start,i),a=e.containsRange(i)&&Qa(this._model[Xa("0x6e")],i[Xa("0xfc")],e);n[Xa("0x7c")]({suggestion:s,meta:{isOwn:o==s[Xa("0x13")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x87")][Xa("0x4d")]((r=>{let i=Xa("0x34")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x55")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xed")](t){const e=t.previous,n=t[Xa("0x6c")];t[Xa("0xb4")]=null,null!=e&&(e[Xa("0x6c")]=null),t[Xa("0x6c")]=null,null!=n&&(n[Xa("0xb4")]=null),Xa("0x1c")==this._suggestionState[Xa("0x4f")](t)&&(this[Xa("0xe3")][Xa("0x105")](t,Xa("0x102")),this.fire(Xa("0x19"),t,e,n))}[Xa("0x131")](t){const n=t.id,o=this[Xa("0xff")](t);if(this[Xa("0x31")]&&this[Xa("0x31")][Xa("0x2d")]){const s=this[Xa("0x110")][Xa("0x10f")][Xa("0x4f")](Xa("0x124")),r=o[Xa("0x125")],i=o[Xa("0xa0")]?o[Xa("0x4")]+":"+o[Xa("0xa0")]:o.type,x=this[Xa("0x110")][Xa("0x13a")],a=s.add(Yo(x,Xa("0x127"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0x143")]||null,attributes:o[Xa("0x1b")]};this[Xa("0x31")][Xa("0x2d")](c).then((t=>{o[Xa("0xa6")]=!0,s[Xa("0x8c")](a),t&&t[Xa("0xb2")]&&(this[Xa("0x109")][Xa("0x4f")](n).createdAt=t[Xa("0xb2")])}))[Xa("0xe")]((t=>{throw(0,e.logWarning)(Xa("0xcc")),this.editor[Xa("0xca")].enqueueChange({isUndoable:!1},(()=>{o[Xa("0x9e")]()})),o[Xa("0x35")](),this[Xa("0x109")][Xa("0x11d")](o.id),this[Xa("0xe3")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Xa("0x10f")][Xa("0x4f")](Xa("0x124")),o=this[Xa("0xc6")](t);if(this[Xa("0x31")]&&this._adapter[Xa("0x77")])if(o[Xa("0xa6")]){const o=n[Xa("0xd")](Yo(this[Xa("0x110")].locale,Xa("0x127")));this._adapter.updateSuggestion(t,e)[Xa("0x24")]((()=>{n[Xa("0x8c")](o)}))}else o.on(Xa("0x66"),(()=>{this._updateSuggestionData(t,e)}))}[Xa("0xb5")](t){if(!this._adapter||!this[Xa("0x31")][Xa("0xc6")])throw new e.CKEditorError(Xa("0x3d"),this);return this[Xa("0x31")][Xa("0xc6")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xa("0x109")][Xa("0x4f")](e)||this[Xa("0x5e")](n,o,e,s,{});switch(this[Xa("0x56")](r,n,o,s),this[Xa("0xe3")].get(r)){case Xa("0xce"):this[Xa("0xb5")](e).then((t=>{let n=Promise[Xa("0xc2")]();t[Xa("0x125")]&&(n=this[Xa("0xee")][Xa("0xb")]({channelId:this[Xa("0x110")].config[Xa("0x4f")](Xa("0x9d")),threadId:e})),n.then((()=>{this[Xa("0xff")](t)[Xa("0xa6")]=!0}))})),this[Xa("0xe3")][Xa("0x105")](r,Xa("0x11f"));break;case Xa("0x102"):this._updateSuggestionData(e,{state:Xa("0x12b")});case Xa("0x27"):this[Xa("0xe3")].set(r,Xa("0x1c")),this[Xa("0x10a")](Xa("0x123"),r);break;case Xa("0x1c"):this.fire("suggestionChanged",r)}return r[Xa("0x106")](t),r}[Xa("0x0")](t){const e=Array[Xa("0x2b")](t)[Xa("0xcb")]((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[Xa("0xcb")]((t=>!t[Xa("0x52")])),o=n[Xa("0xcb")]((e=>!t[Xa("0x11")](e))),s=new Map(n[Xa("0x48")]((t=>[t,this[Xa("0x119")][Xa("0xbc")](t[Xa("0x4")],t[Xa("0xa0")],Xa("0x95"))]))),r=new Map(n[Xa("0x48")]((t=>[t,t[Xa("0x72")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x90")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x90")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0x90")];t++){const n=e[t];!x[Xa("0x11")](n)&&n.previous&&(n[Xa("0xb4")][Xa("0x6c")]===n&&(n[Xa("0xb4")][Xa("0x6c")]=null),n.previous=null),!i[Xa("0x11")](n)&&n[Xa("0x6c")]&&(n[Xa("0x6c")][Xa("0xb4")]===n&&(n.next.previous=null),n[Xa("0x6c")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x90")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Xa("0xb4")]=n[0],i.add(n[0]),x[Xa("0xd")](n[1]))}}function c(t,e){if(t[Xa("0x13")].id!==e.author.id)return null;const n=s[Xa("0x4f")](t)(t,e,r.get(t),r[Xa("0x4f")](e));return n&&s[Xa("0x4f")](e)(t,e,r[Xa("0x4f")](t),r[Xa("0x4f")](e))?n[1][Xa("0x7f")]&&n[1][Xa("0x7f")][Xa("0x90")]?null:n:null}}[Xa("0x10c")](t){const e=Array[Xa("0x2b")](t),n=this[Xa("0x38")]({skipNotAttached:!0}),o=n[Xa("0xcb")]((e=>!t[Xa("0x11")](e))),s=new Map(e[Xa("0x48")]((t=>[t,this[Xa("0x119")][Xa("0xbc")](t[Xa("0x4")],t[Xa("0xa0")],Xa("0x10"))]))),r=new Map(n[Xa("0x48")]((t=>[t,t[Xa("0xef")]()])));for(let t=0;t<e[Xa("0x90")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0x90")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Xa("0x4")]!==e[Xa("0x4")]||o[Xa("0x13")].id!==e[Xa("0x13")].id||o.subType!==e[Xa("0xa0")])continue;if(!sc(e,o))continue;const x=s[Xa("0x4f")](e),a=r.get(e),c=r[Xa("0x4f")](o),l=e[Xa("0x7f")]&&e[Xa("0x7f")][Xa("0x90")],u=o.commentThread&&o.commentThread[Xa("0x90")];if(!l&&x(c,a))return t[Xa("0x128")](o,e),r[Xa("0x11d")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r.delete(o),!0}return!1}}[Xa("0x128")](t,e){if(t.isMultiRange)for(const n of e[Xa("0xef")]())t.addRange(n);else{const n=e[Xa("0x72")]()[Xa("0x59")];this._setSuggestionRange(t,this[Xa("0x87")].createRange(t[Xa("0x72")]()[Xa("0xfc")],n))}e[Xa("0x78")]()}}class Ja{constructor(t){this._editor=t,this[Xa("0x87")]=t.model,this._customCallbacks=new Map,this[Xa("0x8")]=new Map,this[Xa("0x15")]()}[Xa("0x37")](t,e,n,o,s,r){return new Zo(this[Xa("0x87")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0xbc")](t,e,Xa("0xc"))(...n),onDiscard:(...n)=>this[Xa("0xbc")](t,e,Xa("0x9e"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x5")][Xa("0x105")](s,o)}[Xa("0xbc")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x5")][Xa("0x4f")](o)||this._defaultCallbacks[Xa("0x4f")](t+":"+n)}[Xa("0x15")](){const t=()=>!1,e=t=>{t[Xa("0xae")](((t,e)=>t[Xa("0xfc")].isBefore(e.start)?1:-1)),this[Xa("0x87")][Xa("0x4d")]((e=>{for(const n of t){let t;t=n[Xa("0x59")].isAtEnd&&n.end[Xa("0x73")]==n[Xa("0xfc")].nodeAfter?e[Xa("0xe1")](n.start[Xa("0xdf")],"on"):e[Xa("0xe1")](n),this[Xa("0x87")][Xa("0x4b")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x87")][Xa("0x4d")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x48")]((t=>(Za(t)&&(t=this._model[Xa("0x42")](t[Xa("0x59")])),t)))[Xa("0xcb")]((t=>Xa("0x68")!==t[Xa("0x67")][Xa("0x6f")]));if(r.length<1)return;const x=Array[Xa("0x2b")](this[Xa("0x87")].document[Xa("0x41")][Xa("0xef")]())[Xa("0x48")]((t=>i.LiveRange[Xa("0x12e")](t)));n[Xa("0x76")](r);for(const t of this._editor[Xa("0x33")][Xa("0x33")]())t.refresh();s[Xa("0x7c")]({forceDefaultExecution:!0}),this[Xa("0x11e")][Xa("0x129")](o,...s);const a=x.filter((t=>Xa("0x68")!=t[Xa("0x67")].rootName));a[Xa("0x90")]>0&&n[Xa("0x76")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[Xa("0x90")]&&t[0][Xa("0x59")][Xa("0xf2")](e[0][Xa("0xfc")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0x87")])?[e,t]:null;this[Xa("0x8")].set(Xa("0xf8"),t),this[Xa("0x8")].set(Xa("0x8e"),e),this._defaultCallbacks[Xa("0x105")](Xa("0xd2"),o),this._defaultCallbacks[Xa("0x105")](Xa("0xc8"),s),this[Xa("0x8")][Xa("0x105")]("deletion:accept",e),this[Xa("0x8")][Xa("0x105")](Xa("0x8d"),t),this._defaultCallbacks.set(Xa("0xe4"),o),this._defaultCallbacks[Xa("0x105")](Xa("0xc0"),s),this[Xa("0x8")][Xa("0x105")]("formatInline:accept",n),this[Xa("0x8")][Xa("0x105")]("formatInline:discard",t),this._defaultCallbacks[Xa("0x105")](Xa("0xb9"),o),this[Xa("0x8")].set(Xa("0x16"),t),this._defaultCallbacks[Xa("0x105")](Xa("0x10d"),n),this._defaultCallbacks[Xa("0x105")](Xa("0x9"),t),this[Xa("0x8")][Xa("0x105")](Xa("0x133"),o),this._defaultCallbacks[Xa("0x105")](Xa("0x23"),t)}}function Qa(t,e,n){for(const o of e[Xa("0x73")][Xa("0x5f")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x67")]==o)return!1;if(!n[Xa("0x82")](o))return!1;if(t[Xa("0x8f")](o)||t[Xa("0xa3")](o))return!0}return!1}function Za(t){return t[Xa("0x59")].parent==t[Xa("0xfc")][Xa("0xdf")]&&t[Xa("0x59")][Xa("0xe9")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0xa7")].is(Xa("0xe8"))&&!o.isObject(t[Xa("0xa7")]),r=t[Xa("0xfc")][Xa("0x45")](s),i=t[Xa("0x59")][Xa("0x45")](s,{direction:Xa("0x84")});return!(t.start.isEqual(r)&&t.end[Xa("0xf2")](i)||(r[Xa("0x6")](i)?n.updateMarker(e,{range:n[Xa("0x42")](r,i)}):n[Xa("0x13e")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0xfc")][Xa("0xdf")];return e&&e.is(Xa("0x81"))}function nc(t,e){const n=e.schema[Xa("0x8f")](t)||e[Xa("0x6e")][Xa("0xaf")](t);return e[Xa("0x42")](e[Xa("0x26")](t,"before"),n?e[Xa("0x12")](t):e.createPositionAt(t,Xa("0x59")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x59")][Xa("0xf2")](o[Xa("0xfc")]))return!0;if(t[Xa("0x4")]!=e[Xa("0x4")])return!1;if(!n.end[Xa("0xd6")](o[Xa("0xfc")]))return!1;const r=s[Xa("0x42")](n.end,o[Xa("0xfc")])[Xa("0xd7")]();for(const t of r)if([Xa("0x2"),Xa("0x4c")][Xa("0xd8")](t[Xa("0x4")])&&s[Xa("0x6e")][Xa("0xa3")](t[Xa("0xa7")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x13f")]||!e[Xa("0x13f")])&&Go(t[Xa("0x1b")],e[Xa("0x1b")])}function rc(t,e){const n=ic(t[Xa("0x1b")]),o=ic(e);if(!t[Xa("0x13f")])return!1;for(const t of Object[Xa("0x5d")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[Xa("0x11a")],e}const xc=["listenTo","locale","add","_editor","remove","getRanges","isDirty","_discardCommand","view","_acceptCommand","_pendingAction","unbind","_removePendingAction","PendingActions","canEditAt","canAccept","destroy","change:isDirty","discardSuggestion","commands","acceptSuggestion","isEnabled","plugins","_setPendingAction","canDiscard","commentThreadController","get","PENDING_ACTION_SUGGESTION","model","bind"];var ac,cc;ac=xc,cc=379,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x9")]=e,this[lc("0x13")]=n,this[lc("0x6")]=o,this[lc("0xe")]=t,this[lc("0x14")]=t[lc("0x0")][lc("0x7")](lc("0x1")),this[lc("0x12")]=t[lc("0x0")][lc("0x7")](lc("0x1d")),this[lc("0x13")].bind("isEnabled").to(this[lc("0x14")],this[lc("0x12")],((t,e)=>t||e)),this[lc("0x13")][lc("0xa")]("canAccept").to(this[lc("0x14")],lc("0x2"),(t=>t&&this[lc("0xe")].model[lc("0x19")](e[lc("0x10")]()))),this[lc("0x13")][lc("0xa")](lc("0x5")).to(this[lc("0x12")],lc("0x2"),(t=>t&&this[lc("0xe")][lc("0x9")][lc("0x19")](e[lc("0x10")]()))),this._pendingAction=null,n[lc("0x11")]&&this._setPendingAction(),this[lc("0xb")](n,"acceptSuggestion",(()=>this[lc("0x1")]())),this[lc("0xb")](n,lc("0x1d"),(()=>this[lc("0x1d")]())),this[lc("0xb")](n,lc("0x1c"),(()=>{n[lc("0x11")]?this[lc("0x4")]():this[lc("0x17")]()}))}[lc("0x1")](){this[lc("0x14")].execute(this[lc("0x9")].id)}discardSuggestion(){this[lc("0x12")].execute(this[lc("0x9")].id)}[lc("0x1b")](){this.view[lc("0x16")]("isEnabled"),this[lc("0x13")].unbind(lc("0x1a")),this[lc("0x13")][lc("0x16")](lc("0x5")),this.stopListening(),this[lc("0x6")][lc("0x1b")](),this[lc("0x15")]&&this[lc("0x17")]()}[lc("0x4")](){const t=Yo(this[lc("0xe")][lc("0xc")],lc("0x8"));this[lc("0x15")]=this._editor[lc("0x3")][lc("0x7")](lc("0x18"))[lc("0xd")](t)}[lc("0x17")](){null!==this[lc("0x15")]&&this[lc("0xe")].plugins[lc("0x7")](lc("0x18"))[lc("0xf")](this[lc("0x15")]),this._pendingAction=null}}const dc=["commentThread","_createCommentThreadInputView","removeComment","_createCommentViews","addComment","bind","_model","isEnabled","updateComment","locale","showInput","isReadOnly","canAccept","_localUser","delegate","commentThreadInputView","_config","commentInputView","value","submit","descriptionParts","assign","cancel","length","hasDirtyComment","element","isActive","focus","commentsListView","isDirty","set","destroy","authoredAt"];var gc,fc;gc=dc,fc=493,function(t){for(;--t;)gc.push(gc.shift())}(++fc);const mc=function(t,e){return dc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[mc("0x1e")]=null,this.commentThreadInputView=null,this[mc("0x20")](mc("0x1c"),!1),this[mc("0x20")](mc("0x1"),e[mc("0x1")]),this[mc("0x7")](mc("0x1")).to(e),this[mc("0x20")](mc("0x16"),[]),this[mc("0x20")](mc("0x1f"),!1),this.set(mc("0x9"),!1),this[mc("0x20")](mc("0xe"),!1),this[mc("0x20")]("canDiscard",!1),this._model=e,this._localUser=n,this[mc("0x12")]=o,o.disableComments?this[mc("0x20")](mc("0x19"),1):this._createCommentViews()}focus(){this[mc("0x1b")][mc("0x1d")]()}destroy(){this[mc("0x1e")]&&this.commentsListView[mc("0x0")](),this[mc("0x11")]&&this[mc("0x11")][mc("0x0")](),super[mc("0x0")]()}[mc("0x5")](){const{CommentsListView:t}=this[mc("0x12")];this[mc("0x1e")]=new t(this[mc("0xb")],this[mc("0x8")].commentThread,Object[mc("0x17")]({CommentView:this[mc("0x12")].CommentView},this._config)),this[mc("0x1e")][mc("0x10")](mc("0x4")).to(this),this[mc("0x1e")][mc("0x10")](mc("0xa")).to(this),this.commentsListView[mc("0x7")](mc("0x1c")).to(this),this[mc("0x20")]("length",this.commentsListView[mc("0x19")]+1),this[mc("0x7")](mc("0x19")).to(this.commentsListView,mc("0x19"),(t=>t+1)),this[mc("0x11")]=this[mc("0x3")](),this.on(mc("0x4"),(()=>this[mc("0x1d")]())),this[mc("0x7")]("isDirty").to(this[mc("0x1e")],mc("0x1a"),this[mc("0x11")][mc("0x13")],mc("0x14"),((t,e)=>t||!!e))}[mc("0x3")](){const{CommentThreadInputView:t}=this[mc("0x12")],e=new t(this[mc("0xb")],this[mc("0xf")],this[mc("0x12")].editorConfig),n=e.commentInputView;return e[mc("0x7")](mc("0xc")).to(this,mc("0x1c"),this[mc("0x8")].commentThread,mc("0xd"),n,mc("0x14"),((t,e,n)=>!!n||t&&!e)),n.on(mc("0x15"),((t,e)=>{this.fire(mc("0x6"),e),n.editor.setData("")})),n.on(mc("0x18"),(()=>this.focus())),n[mc("0x7")]("disabledSubmit").to(this._model[mc("0x2")],mc("0xd")),e}}const pc=["createElement","split","ck-comment__external","ck-annotation__main","Accept suggestion","ck-suggestion__actions","EXTERNAL_SUGGESTION","ck-annotation","render","ck-suggestion__info","_config","<p>","authoredAt","formatDateTime","setTemplate","ck-comment__info-time","ck-suggestion-","ck-suggestion--accept","canDiscard","ck-annotation__actions","name","canAccept","title","commentsListView","innerText","attributes","acceptButton","discardButton","time","bindTemplate","extendTemplate","ck-suggestion-wrapper--active","isActive","querySelector","ck-suggestion__user","disableComments","editorReady","editorDestroyed","importWord","commentThreadInputView","author",'"></span>',"_descriptionElement","description","discardSuggestion","change:description","</p>","ck-suggestion-wrapper","innerHTML","_createButton","content","source","creator","delegate","ck-suggestion__main","userView","isEnabled","check","map","getTemplate","type","descriptionParts",'<span class="ck-suggestion-type">',"span","div","EXTERNAL_IMPORT_WORD_AVATAR",'" title="',"element","ck-annotation__user","@external","getExternalSuggestionNote","bind","isExternal","ck-annotation__info","cancel","join","EXTERNAL_AVATAR","</span>","_model","push","locale",".ck-annotation__content-wrapper","set","ck-annotation__content-wrapper"];var bc,Ec;bc=pc,Ec=321,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0xd")](_c("0x4b"),""),this[_c("0x2")](_c("0x4b")).to(this,_c("0x4c"),(t=>t&&t[0]?t[0][_c("0x4b")]:"")),this[_c("0x2")](_c("0x3a")).to(this,_c("0x4c"),this,_c("0x2f"),((t,e)=>{let n="";for(const e of t)n+=_c("0x1a")+Cc(e[_c("0x41")],e.color)+_c("0x3d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[_c("0x29")]=this[_c("0x40")](Yo(e,_c("0x13")),t.icons[_c("0x48")],_c("0x20"),"acceptSuggestion","sw"),this[_c("0x29")].bind(_c("0x47")).to(this,_c("0x24")),this[_c("0x2a")]=this[_c("0x40")](Yo(e,"Discard suggestion"),t.icons[_c("0x5")],"ck-suggestion--discard",_c("0x3b"),"sw"),this[_c("0x2a")][_c("0x2")](_c("0x47")).to(this,_c("0x21")),this[_c("0x46")]=new r.UserView(e,this[_c("0x9")][_c("0x37")],this.getUserViewNotificationText()),this[_c("0x46")][_c("0x2d")]({attributes:{class:[_c("0x31"),_c("0x53")]}}),this[_c("0x1d")](this[_c("0x4a")]())}[_c("0x4a")](){const t=this[_c("0x2c")],e=[{tag:"div",attributes:{class:[_c("0x18"),_c("0x4")]},children:[{tag:_c("0x4e"),children:[{text:this.userView[_c("0x23")]}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x1b")),class:[_c("0x1e"),"ck-annotation__info-time"]},children:[{text:t.to(_c("0x1b"),(t=>this[_c("0x19")][_c("0x1c")](t)))}]}]},{tag:_c("0x4f"),attributes:{class:[_c("0x14"),_c("0x22")]},children:[this[_c("0x29")],this[_c("0x2a")]]},{tag:_c("0x4f"),attributes:{class:[_c("0xe")]}}];this[_c("0x9")][_c("0x3")]&&e[_c("0xa")]({tag:_c("0x4f"),attributes:{class:[_c("0x11")]},children:[{text:this[_c("0x1")]()}]});const n={tag:_c("0x4f"),attributes:{class:[_c("0x3e"),t.if("isActive",_c("0x2e")),t.to(_c("0x4b"),(t=>_c("0x1f")+t)),this._config[_c("0x32")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[_c("0x9")].id,"data-thread-id":this[_c("0x9")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:_c("0x4f"),attributes:{class:["ck-suggestion",_c("0x16")]},children:[this.userView,{tag:"div",attributes:{class:[_c("0x45"),_c("0x12")]},children:e}]}]};return this[_c("0x26")]&&this[_c("0x36")]&&(n.children[_c("0xa")](this[_c("0x26")],this.commentThreadInputView),this[_c("0x26")][_c("0x44")](_c("0x33")).to(this),this[_c("0x26")].delegate(_c("0x34")).to(this),this[_c("0x36")].delegate(_c("0x33")).to(this),this.commentThreadInputView[_c("0x44")](_c("0x34")).to(this)),n}render(){super[_c("0x17")](),this[_c("0x39")]=this[_c("0x52")][_c("0x30")](_c("0xc")),this[_c("0x39")][_c("0x3f")]=this[_c("0x3a")],this.on(_c("0x3c"),((t,e,n)=>{this[_c("0x39")][_c("0x3f")]=n}))}[_c("0x40")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0xb")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x2d")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[_c("0x9")].id)})),i}getExternalSuggestionNote(){return"importWord"===this[_c("0x9")][_c("0x28")][_c("0x0")][_c("0x42")]?Yo(this[_c("0xb")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0xb")],_c("0x15"))}getUserViewNotificationText(){return this[_c("0x9")][_c("0x3")]?_c("0x35")===this._model[_c("0x28")][_c("0x0")][_c("0x42")]?Yo(this[_c("0xb")],_c("0x50"),this[_c("0x9")][_c("0x43")][_c("0x23")]):Yo(this[_c("0xb")],_c("0x7"),this[_c("0x9")].creator[_c("0x23")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x10")]("*")[_c("0x49")](((t,e)=>e%2!=0?_c("0x4d")+yc(t)+_c("0x8"):yc(t)))[_c("0x6")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+_c("0x51")+e[_c("0x25")]+_c("0x38")),n}function yc(t){const e=document[_c("0xf")](_c("0x4e"));return e[_c("0x27")]=t,e[_c("0x3f")]}const kc=["change:activeAnnotations","acceptSelectedSuggestions","getSuggestion","trackChanges.SuggestionThreadView","_destroyController","filter","suggestionLoaded","get","view","createAnnotationView","getDescriptions","editor","from","source","_disableComments","actionView","activeMarkers","push","innerView","EditorAnnotations","define","acceptButton","isEnabled","Annotations","switchbutton","plugins","listenTo","discardSelectedSuggestions","editing","_annotationViews","trackChanges","discardAllSuggestions","head","bind","getRanges","delete","add","mainView","getAllAdjacentSuggestions","type","pluginName","init","CommentsRepository","suggestion-","hasSuggestion","stopListening","execute","_updateController","SuggestionThreadView","value","locale","config","Accept all selected suggestions","model","_handleSuggestionControllerDelayed","commentThread","isOn","change:previous","trackChanges.disableComments","set","buttonView","TrackChangesEditing","some","createCommentThreadController","registerAnnotation","toMany","length","comments.maxCommentsWhenCollapsed","CommentView","_descriptionFactory","size","Accept all suggestions","separator","_viewToController","getFirstRange","commands","refreshSelectedViews","_refreshActiveMarkers","clear","getMarkerNames","_suggestionToController","_initializeController","focus","unbind","commandName","CommentsUI","has","suggestionChanged","lowest","button","discardButton","arrowView","_bindAnnotationToEditors","isInContent","_handleControllerBuffer","previous","values","map","keys","_unbindEditors","isMultiRange","isDirty","addComment","descriptionParts","suggestionUnloaded","activeAnnotations","Discard all selected suggestions","destroy"];var Ac,vc;Ac=kc,vc=310,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get requires(){return[$a,r.Users,Rc("0x38"),"Annotations","EditorAnnotations"]}static get[Rc("0x36")](){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x5e")]=new Map,this._viewToController=new Map,this[Rc("0x2b")]=new Map,this[Rc("0x0")]=new Map;const e=this[Rc("0x19")].config;e[Rc("0x22")](Rc("0x11"),Tc),e[Rc("0x22")](Rc("0x48"),!1),this[Rc("0x1c")]=e.get(Rc("0x48"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Rc("0x54")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x5e")][Rc("0x64")](t);n||e?n&&e&&this[Rc("0x12")](t):this[Rc("0x5f")](t)}this[Rc("0x19")][Rc("0x27")][Rc("0x15")]("EditorAnnotations")[Rc("0x5a")](),this[Rc("0x5b")](),this[Rc("0x0")][Rc("0x5c")]()}),10),this._handleControllerBuffer[Rc("0x49")](t,e)}[Rc("0x37")](){const t=this[Rc("0x19")],e=t[Rc("0x27")][Rc("0x15")](Rc("0x4b")),n=t[Rc("0x27")][Rc("0x15")]("Annotations"),o=t[Rc("0x27")].get(Rc("0x21")),s=t.plugins[Rc("0x15")]("CommentsRepository");t.ui.componentFactory.add(Rc("0x2c"),(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Rc("0x5e")])){const o=e[Rc("0x34")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Rc("0x6")]){s[Rc("0x1f")](...t[Rc("0x30")]());continue}const e=t[Rc("0x58")]();if(s[Rc("0x50")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Rc("0x1f")](e)}t[Rc("0x1f")]([n[Rc("0x16")],s])}return t})),this[Rc("0x28")](e,Rc("0x14"),((t,e)=>{this[Rc("0x28")](e,Rc("0x47"),((t,n,o,s)=>{e.isInContent&&(null==o?(this._updateController(s.head),this[Rc("0x44")](e,!1)):(this._updateController(o[Rc("0x2e")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Rc("0x1")]?this[Rc("0x44")](e,!1):this[Rc("0x3d")](e.head)})),this.listenTo(e,Rc("0xa"),((t,e,n)=>{this[Rc("0x3b")](e,"change:previous"),this[Rc("0x0")][Rc("0x31")](e);const o=n?n[Rc("0x2e")]:e,s=this[Rc("0x5e")][Rc("0x15")](o);null!==n&&this[Rc("0x3d")](o),null===n&&s&&this[Rc("0x12")](e)})),this[Rc("0x28")](e,Rc("0x65"),((t,e)=>{this[Rc("0x3d")](e)})),this[Rc("0x28")](n,Rc("0xe"),(()=>{this[Rc("0x5b")]()})),this[Rc("0x28")](s,Rc("0x8"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x3a")](n))return;const s=e[Rc("0x10")](n);this[Rc("0x5e")][Rc("0x15")](s).view[Rc("0x60")]()}),{priority:Rc("0x66")})}[Rc("0x5b")](){const t=this[Rc("0x19")][Rc("0x27")][Rc("0x15")](Rc("0x25")),e=this.editor.plugins.get(Rc("0x4b")),n=Array[Rc("0x1a")](t[Rc("0xb")],(t=>t[Rc("0x20")]))[Rc("0x13")]((t=>this[Rc("0x57")][Rc("0x64")](t))),o=[];for(const t of n){const e=this[Rc("0x57")][Rc("0x15")](t)[Rc("0x43")][Rc("0x34")]();o.push(...e.reduce(((t,e)=>[...t,...e[Rc("0x5d")]()]),[]))}e[Rc("0x1e")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x19")][Rc("0x59")][Rc("0x15")](Rc("0x2c")),r=Yo(t,"Track changes");n[Rc("0x4a")][Rc("0x49")]({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-2023, 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[Rc("0x4a")][Rc("0x2f")](Rc("0x46")).to(o,Rc("0x3f")),n[Rc("0x4a")].on(Rc("0x3c"),(()=>{o[Rc("0x3c")](),this.editor.editing.view.focus()}));const i=new e.Collection,x=[{type:Rc("0x26"),model:{withText:!0,label:r,commandName:Rc("0x2c")}},{type:Rc("0x56")},{type:Rc("0x67"),model:{withText:!0,label:Yo(t,Rc("0x55")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x42")),commandName:Rc("0xf")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Rc("0x2d")}},{type:Rc("0x67"),model:{withText:!0,label:Yo(t,Rc("0xc")),commandName:Rc("0x29")}}];for(const t of x){let e={type:Rc("0x56")};if(t[Rc("0x43")]){const n=new s.Model(t[Rc("0x43")]),o=this[Rc("0x19")][Rc("0x59")][Rc("0x15")](n[Rc("0x62")]);n[Rc("0x2f")](Rc("0x46"),Rc("0x24")).to(o,Rc("0x3f"),Rc("0x24")),e={type:t[Rc("0x35")],model:n}}i[Rc("0x32")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x13")]((t=>null!=t[Rc("0x43")]))[Rc("0x3")]((t=>this[Rc("0x19")][Rc("0x59")][Rc("0x15")](t.model[Rc("0x62")]))),c=n.buttonView;return c[Rc("0x1d")][Rc("0x61")](Rc("0x24")),c[Rc("0x69")][Rc("0x61")](Rc("0x24")),c[Rc("0x1d")][Rc("0x2f")]("isEnabled").to(o,Rc("0x24")),c[Rc("0x69")][Rc("0x2f")](Rc("0x24"))[Rc("0x4f")](a,"isEnabled",((...t)=>t[Rc("0x4c")]((t=>t)))),n.on(Rc("0x3c"),(t=>{this.editor[Rc("0x3c")](t[Rc("0x1b")][Rc("0x62")]),this[Rc("0x19")][Rc("0x2a")].view[Rc("0x60")]()})),n}[Rc("0x5f")](t){const e=this[Rc("0x19")],n=e[Rc("0x41")],o=e.plugins[Rc("0x15")](Rc("0x25")),s=e.plugins.get(Rc("0x38")),i=e.plugins[Rc("0x15")](Rc("0x21")),x=e[Rc("0x27")][Rc("0x15")](r.Users).me,a=n.get("trackChanges")[Rc("0x3e")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x27")].get(Rc("0x63"));let u,d;this[Rc("0x2b")][Rc("0x64")](t.id)?(d=this[Rc("0x2b")].get(t.id),u=d.mainView):(u=new a(e[Rc("0x40")],t,x,{disableComments:this[Rc("0x1c")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(Rc("0x51")),maxThreadTotalWeight:n[Rc("0x15")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Rc("0x15")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x15")](Rc("0x40"))),CommentView:n[Rc("0x15")]("comments")[Rc("0x52")],CommentsListView:c,CommentThreadInputView:l}),u[Rc("0x23")].on(Rc("0x3c"),(()=>{e.editing[Rc("0x16")][Rc("0x60")]()})),u[Rc("0x68")].on(Rc("0x3c"),(()=>{e[Rc("0x2a")][Rc("0x16")].focus()})),d=o[Rc("0x17")](this.editor[Rc("0x40")],u),d[Rc("0x2f")]("isDirty").to(u,Rc("0x7")),d[Rc("0x2f")](Rc("0x50")).to(u),d[Rc("0x2f")](Rc("0x35")).to(u,Rc("0x35"),(t=>"suggestion-"+t)),this[Rc("0x2b")].set(t.id,d));const g=s[Rc("0x4d")](t[Rc("0x45")],u),f=new uc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Rc("0x13")]((t=>t[Rc("0x6b")]));u[Rc("0x9")]=e[Rc("0x27")][Rc("0x15")](Rc("0x4b"))[Rc("0x53")][Rc("0x18")](m),this[Rc("0x5e")][Rc("0x49")](t,f),this[Rc("0x57")][Rc("0x49")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Rc("0x34")]()[Rc("0x13")]((t=>t[Rc("0x6b")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x2a")],n)},type:()=>Rc("0x39")+f[Rc("0x16")][Rc("0x35")]});s[Rc("0x6a")](u,h),o.add(h),i[Rc("0x4e")](h)}_destroyController(t){const e=this[Rc("0x19")][Rc("0x27")][Rc("0x15")](Rc("0x38")),n=this[Rc("0x19")][Rc("0x27")].get(Rc("0x25")),o=this[Rc("0x5e")][Rc("0x15")](t),s=o[Rc("0x16")],r=n.getByInnerView(s);e[Rc("0x5")](s),r&&n.remove(r),this[Rc("0x5e")][Rc("0x31")](t),this[Rc("0x57")][Rc("0x31")](s),o[Rc("0xd")]()}[Rc("0x3d")](t){if(!t.isInContent||!this[Rc("0x5e")][Rc("0x64")](t))return;const e=this[Rc("0x19")].plugins[Rc("0x15")]("TrackChangesEditing"),n=this[Rc("0x5e")][Rc("0x15")](t),o=t[Rc("0x34")]();n[Rc("0x16")][Rc("0x9")]=e[Rc("0x53")][Rc("0x18")](o)}[Rc("0xd")](){for(const t of this[Rc("0x5e")][Rc("0x4")]())this._destroyController(t);for(const t of this[Rc("0x2b")][Rc("0x2")]())t[Rc("0x33")].destroy();super[Rc("0xd")]()}}var Sc,Lc,Nc=["editor","getSuggestions","Comments","pluginName","getSuggestion","adapter","plugins","requires","addSuggestionData","TrackChanges","get"];Sc=Nc,Lc=351,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get[wc("0x8")](){return[$a,Ic,wc("0x3")]}static get[wc("0x4")](){return wc("0xa")}set[wc("0x6")](t){this[wc("0x1")].plugins[wc("0x0")]($a)[wc("0x6")]=t}get adapter(){return this[wc("0x1")][wc("0x7")][wc("0x0")]($a).adapter}addSuggestion(t){return this.editor.plugins[wc("0x0")]($a)[wc("0x9")](t)}[wc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x1")][wc("0x7")].get($a)[wc("0x2")]({skipNotAttached:t,toJSON:e})}[wc("0x5")](t){return this[wc("0x1")][wc("0x7")][wc("0x0")]($a)[wc("0x5")](t)}}const Oc=["rootsAttributes","Users","plugins","editor","users","constructor","trackChangesData","set","getUser","addUser","TrackChangesEditing","acceptAllSuggestions","editorCreator","data","discardAllSuggestions","track-changes-data-invalid-editor-creator","addSuggestionData","createDocumentFragment","create","requires","getSuggestions","Pagination","pluginName","model","get","reduce","getRootNames","_adapter","div","getDataWithAcceptedSuggestions","trackChangesData.editorCreator","getRootsAttributes","CommentsRepository","appendChild","define","config"];var Fc,Pc;Fc=Oc,Pc=129,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x0")];class jc extends t.Plugin{static get[Dc("0x22")](){return[$a]}static get pluginName(){return"TrackChangesData"}init(){const t=this[Dc("0x12")];if(t[Dc("0xe")][Dc("0xd")](Dc("0x9"),(e=>{const n=t[Dc("0x2")].document[Dc("0x5")]()[Dc("0x4")](((t,e)=>(t[e]="",t)),{});return t[Dc("0x14")][Dc("0x21")](n,e)})),"function"!=typeof t[Dc("0xe")][Dc("0x3")](Dc("0x15"))[Dc("0x1b")])throw new e.CKEditorError(Dc("0x1e"))}[Dc("0x8")](t){return Hc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Hc(this[Dc("0x12")],!1,t)}}class Uc extends t.Plugin{static get[Dc("0x1")](){return"TrackChangesDataGetter"}constructor(t){super(t),this.result="end"}init(){this[Dc("0x12")].plugins.get(Dc("0xb"))[Dc("0x6")]={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[Dc("0x11")].get(Dc("0x19"))[Dc("0x6")]=null}}function Gc(t){return void 0!==t[Dc("0xa")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x11")].push($a,Uc),o[Dc("0xf")]=Gc(t)?t[Dc("0xa")]():void 0;const s=document[Dc("0x20")](),i=t.config[Dc("0x3")](Dc("0x15"))[Dc("0x1b")],x=await i(o,(()=>function(t){const e=document.createElement(Dc("0x7"));return t[Dc("0xc")](e),e}(s)));!function(t,e){const n=t[Dc("0x2")].document[Dc("0x5")]()[Dc("0x4")](((e,n)=>(e[n]=t[Dc("0x1c")][Dc("0x3")]({rootName:n}),e)),{}),o=t[Dc("0x11")][Dc("0x3")](Dc("0x10"))[Dc("0x13")].map((t=>({id:t.id,name:t.name}))),s=t[Dc("0x11")].get(Dc("0x19"))[Dc("0x23")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x11")].get(Dc("0x10")),i=e[Dc("0x11")][Dc("0x3")](Dc("0x19"));for(const t of o)r[Dc("0x17")](t.id)||r[Dc("0x18")](t);r.me||r.useAnonymousUser();for(const t of s)i[Dc("0x1f")](t);e.data[Dc("0x16")](n)}(t,x),x.execute(Dc(e?"0x1a":"0x1d"));const a=Gc(x)?x.getFullData(n):x.data[Dc("0x3")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();