@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.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 (64) 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/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. 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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["isEnabled","_enableCommands","commands","clearForceDisabled","forceDisabled","value","editor","has","refresh","_isEnabledBasedOnSelection","_disableUnsupportedCommands","_enabledCommands","affectsData","TrackChangesCommand"];var c,l;c=a,l=450,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x9")]=e,this[u("0x3")]=!1,this[u("0x6")](),this[u("0x7")]=!1}[u("0x6")](){this[u("0xc")]=!0}execute(){this[u("0x3")]=!this[u("0x3")],this[u("0x3")]?this._disableUnsupportedCommands():this[u("0xd")]()}[u("0x8")](){for(const t of this[u("0x4")][u("0x0")][u("0x0")]())t.affectsData&&!this._enabledCommands[u("0x5")](t)&&t[u("0x2")](u("0xb"))}[u("0xd")](){for(const t of this[u("0x4")][u("0x0")][u("0x0")]())t[u("0xa")]&&!this[u("0x9")].has(t)&&t[u("0x1")](u("0xb"))}}const g=["plugins","refresh","get","execute","editor","track-changes-accept-suggestion-not-found","TrackChangesEditing","model","_suggestions","_isEnabledBasedOnSelection","canEditAt"];var m,f;m=g,f=182,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x2")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this.isEnabled=!0}[h("0x8")](t){const n=this[h("0x2")][h("0x7")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n.getRanges();this[h("0x9")][h("0x1")][h("0x4")](o)&&this[h("0x9")][h("0x5")].get(h("0x0")).acceptSuggestion(n)}}const b=["refresh","track-changes-discard-suggestion-not-found","TrackChangesEditing","get","getRanges","editor","canEditAt","_suggestions","_isEnabledBasedOnSelection","isEnabled","model"];var E,_;E=b,_=459,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("0xa")]=e,this.refresh(),this[T("0x0")]=!1}[T("0x3")](){this[T("0x1")]=!0}execute(t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0x7")]();this[T("0x8")][T("0x2")][T("0x9")](o)&&this.editor.plugins[T("0x6")](T("0x5")).discardSuggestion(n)}}const y=["push","type","map","content","isInContent","length","join","schema","splice","replace","from","isArray","isTouching","end","getRange","isObject","color"," [color ","isCollapsed","createPositionAt","getMarkers","deletion","createPositionAfter","sort","createPositionBefore","execute","getRanges","createRange","change","isMultiRange","add"];var k,A;k=y,A=325,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x8")](((t,e)=>v("0x6")==t[v("0x11")]&&v("0x6")!=e.type?-1:v("0x6")!=t[v("0x11")]&&v("0x6")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x17")];for(;o<t[v("0x15")];){const i=t[o],x=t[o+1];n||(n=e[v("0x9")](i)),I(e,i,x)||(s[v("0x10")](e[v("0xc")](n,r[v("0x0")](i)?e[v("0x7")](i):e[v("0x4")](i,v("0x1d")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x7")](e),s=t[v("0x9")](n);return o[v("0x1c")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t[v("0xd")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0xa")](t.id)}))}}const N=["canEditAt","editor","_isEnabledBasedOnSelection","some","values","_suggestions","from","_command","isEnabled","refresh","getRanges","model","isInContent"];var w,M;w=N,M=331,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("0x1")]=e,this._suggestions=n,this[O("0x3")](),this[O("0x9")]=!1}[O("0x3")](){const t=Array[O("0x0")](this[O("0xc")][O("0xb")]())[O("0xa")]((t=>t[O("0x6")]));this.isEnabled=this[O("0x1")][O("0x2")]&&t}execute(){const t=R(Array[O("0x0")](this._suggestions[O("0xb")]()));for(const e of t){const t=e[O("0x4")]();if(!this[O("0x8")][O("0x5")][O("0x7")](t))return}L(this[O("0x8")][O("0x5")],this[O("0x1")],t)}}const P=["model","_selectedSuggestions","document","from","values","selection","refresh","_suggestions","execute","size","getRanges","_command","isEnabled","editor","canEditAt"];var D,B;D=P,B=464,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("0xc")]=e,this[j("0x8")]=n,this[j("0x2")]=new Set,this[j("0x7")](),this._isEnabledBasedOnSelection=!1}[j("0x7")](){const t=this[j("0xe")][j("0x1")][j("0x3")][j("0x6")],e=Array[j("0x4")](this[j("0x8")][j("0x5")]());this[j("0x2")]=function(t,e){const n=Array[v("0x1a")](t[v("0xb")]()),o=new Set;for(const s of e)if(s[v("0x14")])for(const e of n)for(const n of s[v("0x5")]()){const r=n[v("0x1e")]();(e.isIntersecting(r)||t[v("0x3")]&&!s[v("0xe")]&&s.next&&r[v("0x1d")][v("0x1c")](e.start))&&o[v("0xf")](s)}return o}(t,e),this[j("0xd")]=this[j("0xc")].isEnabled&&!!this[j("0x2")][j("0xa")]}[j("0x9")](){const t=R(Array[j("0x4")](this[j("0x2")]));for(const e of t){const t=e[j("0xb")]();if(!this[j("0xe")][j("0x1")][j("0x0")](t))return}L(this[j("0xe")][j("0x1")],this._command,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 ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const 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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const 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)&&!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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const 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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const 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=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 m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const 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=["addMarkerName","data","removeMarkers","clear","nodeAfter","change","authoredAt","toJSON","_onAttributesChange","push","filter","removeMarker","type","isInContent","onAttributesChange","getRanges","add","commentThread","getItems","next","start","map","_markerNames","getAllAdjacentSuggestions","getMarkerNames","attributes","hasComments","isIntersectingWithRange","delete","subType","onAccept","getContainedElement","isExternal","getMarkers","removeAttribute","nodeBefore","addRange","_saved","getRange","reduce","split","discard","addMarker","isIntersecting","head","set","_model","size","previous","getMultiRangeId","accept","_onAccept","substr","getFirstMarker","_onDiscard","length","createdAt","creator","decorate","author","get"];var $o,Jo;$o=Xo,Jo=341,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x25")]=e[Qo("0x25")],this[Qo("0x36")]=e.subType||null,this[Qo("0x17")]=e[Qo("0x17")],this.creator=e[Qo("0x15")]||e[Qo("0x17")],this[Qo("0x39")]=Boolean(e[Qo("0x32")]&&e[Qo("0x32")]["@external"]),this[Qo("0x1a")]=null,this._model=t,this[Qo("0xf")]=e[Qo("0x37")],this._onDiscard=e.onDiscard,this[Qo("0x21")]=e[Qo("0x27")],this[Qo("0x2f")]=new Set,this[Qo("0x14")]=null,this[Qo("0x9")](Qo("0x1f"),null),this[Qo("0x9")](Qo("0x32"),e.attributes||{}),this[Qo("0x9")](Qo("0xc"),null),this[Qo("0x9")](Qo("0x2c"),null),this[Qo("0x9")](Qo("0x2a"),null),this[Qo("0x9")](Qo("0x1"),!1),this[Qo("0x16")](Qo("0xe")),this[Qo("0x16")](Qo("0x5"))}get head(){let t=this;for(;t[Qo("0xc")];)t=t[Qo("0xc")];return t}get[Qo("0x33")](){return!!this[Qo("0x2a")]&&this[Qo("0x2a")].length>0}get isMultiRange(){return 0!=this[Qo("0x2f")][Qo("0xb")]&&6==Array.from(this[Qo("0x2f")])[0][Qo("0x4")](":")[Qo("0x13")]}get[Qo("0x26")](){return null!==this[Qo("0x11")]()}[Qo("0x19")](t){this[Qo("0x2f")][Qo("0x29")](t)}getMarkerNames(){return Array.from(this[Qo("0x2f")])}getMarkers(){return this[Qo("0x31")]()[Qo("0x2e")]((t=>this[Qo("0xa")].markers[Qo("0x18")](t)))[Qo("0x23")]((t=>t))}getFirstMarker(){return this.getMarkers()[0]||null}[Qo("0x1b")](){this[Qo("0xa")][Qo("0x1e")]((t=>{for(const e of this[Qo("0x3a")]())t[Qo("0x24")](e)})),this._markerNames[Qo("0x1c")]()}[Qo("0x24")](t){this[Qo("0xa")][Qo("0x1e")]((e=>{e[Qo("0x24")](t)})),this[Qo("0x2f")][Qo("0x35")](t)}[Qo("0x0")](t){const e="suggestion:"+this[Qo("0x25")]+":"+this.subType+":"+this.id+":"+this[Qo("0x15")].id+":"+Zo.getMultiRangeId();this[Qo("0x19")](e),this[Qo("0xa")][Qo("0x1e")]((n=>{n[Qo("0x6")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x34")](t){for(const e of this.getRanges())if(e[Qo("0x7")](t))return!0;return!1}[Qo("0x28")](){return this[Qo("0x3a")]()[Qo("0x2e")]((t=>t[Qo("0x2")]()))}[Qo("0x2b")](){return this[Qo("0x28")]()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x2b")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x11")]())||void 0===t?void 0:t[Qo("0x2")]())||null}[Qo("0x38")](){const t=this.getRanges();if(1!=t[Qo("0x13")])return null;const e=t[0],n=e[Qo("0x2d")][Qo("0x1d")],o=e.end[Qo("0x3c")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xe")](){this[Qo("0xf")](this[Qo("0x28")](),this[Qo("0x1a")],this[Qo("0x32")]),this[Qo("0x1b")]()}[Qo("0x5")](){this[Qo("0x12")](this[Qo("0x28")](),this[Qo("0x1a")],this[Qo("0x32")]),this[Qo("0x1b")]()}[Qo("0x30")](){const t=[];let e=this[Qo("0x8")];for(;e;)t[Qo("0x22")](e),e=e[Qo("0x2c")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x32")])||(this[Qo("0x32")]=n,this[Qo("0x21")](n))}[Qo("0x3b")](t){const e=eo(this[Qo("0x32")]);qo(e,t),Go(e,this[Qo("0x32")])||(this[Qo("0x32")]=e,this[Qo("0x21")](this[Qo("0x32")]))}[Qo("0x20")](){return{id:this.id,type:this[Qo("0x36")]?this.type+":"+this[Qo("0x36")]:this[Qo("0x25")],authorId:this[Qo("0x15")].id,createdAt:this[Qo("0x14")],hasComments:this[Qo("0x33")],data:this[Qo("0x1a")],attributes:this.attributes}}static[Qo("0xd")](){return(0,e.uid)()[Qo("0x10")](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=["pop","removeEmptyContainer","isObject","element","_locale","EmptyContainer","normal","softBreak","elementStart","elementEnd","push","checkChild","match","Container","_itemLabels","Object","_customCallbacks","addContainer","indexOf","previousSibling","registerElementLabel","*Split:* %0","name","isEmpty","get","*Insert:* %0","getItemLabel","matchingCallback","ELEMENT_SPACE","length","registerDescriptionCallback","item","remove","isInContent","set","deletion","removeContainer","_resolveDescriptionItems","REPLACE_TEXT","add","getWalker","$text","quantity","type","addObject","function","$1 $2","data","addEmptyContainer","text","start","insertion","_itemLabelsCallbacks","getFirstRange","label","_schema","*Remove:* %0","isEqual","replace","*Merge:* %0","nextSibling"];var es,ns;es=ts,ns=167,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("0x20")]=[],this[os("0x1e")]=new Map,this._itemLabelsCallbacks=[],this[os("0xa")]=t,this[os("0x14")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x2d")];n++){const o=t[n];if(!o[os("0x31")])continue;let s=!1;for(const t of this[os("0x20")]){const n=t(o);if(n){"type"in n&&e[os("0x1a")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x8")]().end[os("0xc")](s[os("0x8")]()[os("0x5")])){const t=e[e.length-1],n="insertion"==o[os("0x3b")]?os("0x37"):"remove";t&&os("0x4")==t[os("0x3b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x2e")](t){this[os("0x20")][os("0x1a")](t)}[os("0x24")](t,n,o=e.priorities[os("0x16")]){os("0x0")==typeof t?(0,e.insertToPriorityArray)(this[os("0x7")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x32")](t,n)}[os("0x2a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2b")](t)){n=e[os("0x9")];break}return n||(n=this[os("0x1e")][os("0x28")](t[os("0x26")])),n?n(e):1!==e?e+" "+t[os("0x26")]+"s":""+t[os("0x26")]}_addDescriptionItems(t,e){const n=e[os("0x8")]()[os("0x38")](),o="insertion"==e[os("0x3b")]?os("0x37"):os("0x30");for(const e of n){const s=e.item,r=t[t[os("0x2d")]-1];if(s.is("$textProxy"))r&&r.type[os("0x22")](os("0x1d"))>-1&&t[os("0x10")](),r&&"text"==r[os("0x3b")]?r[o]+=s[os("0x2")]:t[os("0x1a")]({type:os("0x4"),add:os("0x37")==o?s.data:"",remove:"remove"==o?s[os("0x2")]:""});else if(this[os("0xa")][os("0x12")](s)){const i=s;if(r&&r[os("0x3b")][os("0x22")](os("0x1d"))>-1&&t[os("0x10")](),os("0x19")==e.type)continue;r&&r[os("0x3b")]==o+os("0x1f")&&r[os("0x13")].name==i[os("0x26")]?r[os("0x3a")]++:t[os("0x1a")]({type:o+os("0x1f"),element:i,quantity:1}),n.skip((t=>!(os("0x19")==t[os("0x3b")]&&t[os("0x2f")]==s)))}else if(this[os("0xa")][os("0x1b")](s,os("0x39"))||s.is("element",os("0x17"))){const n=s;if(os("0x37")==o&&os("0x18")==e[os("0x3b")]||"remove"==o&&os("0x19")==e[os("0x3b")])continue;if(r&&-1==r.type[os("0x22")](os("0x1d"))){os("0x4")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x37")==o?n[os("0xf")]&&!this[os("0xa")][os("0x12")](n.nextSibling)?n[os("0xf")]:null:n[os("0x23")]&&!this[os("0xa")][os("0x12")](n[os("0x23")])?n[os("0x23")]:null,n.isEmpty||i&&i.isEmpty){const e=i&&i[os("0x27")]?i:n;r&&r[os("0x3b")]==o+os("0x15")&&r.element.name==e.name?r.quantity++:t.push({type:o+os("0x15"),element:e,quantity:1})}else t[os("0x1a")]({type:o+os("0x1d"),element:n})}}}[os("0x35")](t){const e=this[os("0x14")],n=[];for(const o of t){switch(o.type){case os("0x4"):if(o[os("0x37")]=o[os("0x37")].replace(/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o.remove=o.remove[os("0xd")](/(\S)\u000A+(\S)/g,os("0x1")).replace(/\u000A/g,""),""!=o[os("0x37")]&&""!=o.remove){n.push({type:os("0xd"),content:Yo(e,os("0x36"),['"'+o.remove+'"','"'+o[os("0x37")]+'"'])});continue}if(null!=o[os("0x37")][os("0x1c")](/^ +$/)){n[os("0x1a")]({type:os("0x6"),content:Yo(e,os("0x29"),Yo(e,os("0x2c"),o[os("0x37")][os("0x2d")]))});continue}if(null!=o[os("0x30")][os("0x1c")](/^ +$/)){n[os("0x1a")]({type:os("0x33"),content:Yo(e,os("0xb"),Yo(e,os("0x2c"),o[os("0x30")].length))});continue}if(""!=o[os("0x37")]){n.push({type:"insertion",content:Yo(e,os("0x29"),'"'+o[os("0x37")]+'"')});continue}n[os("0x1a")]({type:"deletion",content:Yo(e,os("0xb"),'"'+o[os("0x30")]+'"')});continue;case os("0x3"):case os("0x3c"):n[os("0x1a")]({type:os("0x6"),content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x13")],o[os("0x3a")]))});continue;case os("0x11"):case"removeObject":n[os("0x1a")]({type:os("0x33"),content:Yo(e,os("0xb"),this.getItemLabel(o[os("0x13")],o[os("0x3a")]))});continue;case os("0x21"):n[os("0x1a")]({type:os("0x6"),content:Yo(e,os("0x25"),this[os("0x2a")](o[os("0x13")],o[os("0x3a")]))});continue;case os("0x34"):n[os("0x1a")]({type:"deletion",content:Yo(e,os("0xe"),this[os("0x2a")](o.element,o[os("0x3a")]))});continue}n[os("0x1a")](o)}return n}}const rs=["locale","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","format","editor","afterInit","FORMAT_ALIGN_TO_CENTER","markBlockFormat","change","from","schema","right","model","TrackChangesEditing","center","checkAttribute","value","plugins","selection","getAttribute","registerDescriptionCallback","*Format:* %0","commandParams","ltr","_descriptionFactory","FORMAT_ALIGN_TO_LEFT","contentLanguageDirection","left","enableCommand","document","FORMAT_JUSTIFY_TEXT","has","alignment"];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{[as("0x15")](){const t=this.editor,e=t[as("0x10")];if(!t[as("0x0")][as("0xe")]("AlignmentEditing"))return;const n=t[as("0x0")].get(as("0x1d"));n[as("0xb")](as("0xf"),((e,o={})=>{let s=o[as("0x20")];o.value||(s=as("0x6")===t[as("0x10")][as("0x9")]?"left":as("0x1b"));const r=Array[as("0x19")](this.editor.model[as("0xc")][as("0x1")][as("0x11")]()).filter((t=>function(t,e,n){const o=t[as("0x2")](as("0xf"))||null;return e[as("0x1f")](t,as("0xf"))&&n!=o}(t,this[as("0x14")][as("0x1c")][as("0x1a")],s)));t[as("0x1c")][as("0x18")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x3")]((t=>{const{data:n}=t;if(n&&as("0xf")==n.commandName){const t=n[as("0x5")][0][as("0x20")];return{type:as("0x13"),content:Yo(e,as("0x4"),function(t){switch(t){case as("0xa"):return Yo(e,as("0x8"));case as("0x1b"):return Yo(e,as("0x12"));case as("0x1e"):return Yo(e,as("0x16"));case"justify":return Yo(e,as("0xd"))}}(t))}}}))}}const ls=["mapper","createRangeOn","span","toViewPosition","isBlock","markerName","nextSibling","type","consumable","name","model","elementEnd","getAttribute","get","bindElementToMarker","test","isContent","isLimit","createUIElement","activeMarkers","parent","writer","ck-suggestion-marker-","start","listIndent","addHighlight","element","includes","push","listItem","previousPosition","markerRange","toViewElement","addClass","isAtEnd","getItems"];var us,ds;us=ls,ds=218,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x21")]())s.hasAttribute(t)&&o[gs("0x1a")](n[gs("0x23")](s));return o}function fs(t){const e=[];if(t.is(gs("0x18"),gs("0x1b"))){let n=t.nextSibling;for(;n&&n.is(gs("0x18"),"listItem")&&n[gs("0xa")](gs("0x16"))>0;)e.push(n),n=n[gs("0x4")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0xb")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x6")][gs("0xd")](r[gs("0x1d")],s[gs("0x7")]))return;const x=r[gs("0x1d")].getWalker(),a=r[gs("0x1d")][gs("0x15")],c=t[gs("0x8")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[gs("0xe")](e);const n=i.mapper[gs("0x1e")](e);if(n&&n.getCustomProperty(gs("0x17")))return;gs("0x9")==t[gs("0x5")]&&c[gs("0x2")](e)&&!c[gs("0xf")](e)&&(e.nextSibling||a[gs("0x20")]?l&&l[gs("0x12")]==e||(l=e,m(t[gs("0x1c")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i.writer[gs("0x10")](gs("0x0"),{class:gs("0x14")+e}),x=i[gs("0x22")][gs("0x1")](t);n&&o[gs("0x11")][gs("0x19")](r[gs("0x3")])&&i[gs("0x13")][gs("0x1f")]("ck-suggestion-marker--active",s),i.writer.insert(x,s),i.mapper[gs("0xc")](s,r[gs("0x3")])}d||g||!u||m(u)}}const ps=["commands","afterInit","*Format:* %0","plugins","CodeEditing","italic","bold","_descriptionFactory","FORMAT_UNDERLINE","forceValue","BoldEditing","slice","getRanges","FORMAT_ITALIC","has","SuperscriptEditing","get","FORMAT_STRIKETHROUGH","change","editor","toLowerCase","code","*Remove format:* %0","commandName","SubscriptEditing","format","UnderlineEditing","selection","commandParams","subscript","enableCommand","underline"];var bs,Es;bs=ps,Es=382,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xc"),"ItalicEditing",_s("0x1c"),_s("0x6"),"StrikethroughEditing",_s("0x1a"),_s("0x11")];class Cs extends t.Plugin{[_s("0x3")](){const t=this[_s("0x15")],e=t.model,n=t[_s("0x5")][_s("0x12")]("TrackChangesEditing"),o=t.locale;for(const o of Ts){if(!t[_s("0x5")][_s("0x10")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x16")](),r=t[_s("0x2")][_s("0x12")](s);n[_s("0x0")](s,((t,o={})=>{const i=e.document[_s("0x1d")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xb")]?o[_s("0xb")]:!r.value;e[_s("0x14")]((()=>{const t=Array.from(i[_s("0xe")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x9")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x19")]===t)return s[_s("0x1e")][0][_s("0xb")]?{type:_s("0x1b"),content:Yo(o,_s("0x4"),e)}:{type:_s("0x1b"),content:Yo(o,_s("0x18"),e)}}))}s(_s("0x8"),Yo(o,"FORMAT_BOLD")),s(_s("0x7"),Yo(o,_s("0xf"))),s(_s("0x1"),Yo(o,_s("0xa"))),s(_s("0x17"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0x13"))),s(_s("0x1f"),Yo(o,"FORMAT_SUBSCRIPT")),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["afterInit","format","*Remove format:* %0","enableCommand","plugins","markBlockFormat","TrackChangesEditing","BlockQuoteEditing","value","change","selection","name","ELEMENT_BLOCK_QUOTE","parent","*Format:* %0","commands","editor","filter","getSelectedBlocks","forceValue","model","from","registerDescriptionCallback","checkChild","commandParams","$root","blockQuote"];var ks,As;ks=ys,As=450,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x9")](){const t=this[vs("0x19")],e=t.locale;if(!t[vs("0xd")].has(vs("0x10")))return;const n=t[vs("0xd")].get(vs("0xf")),o=this[vs("0x19")][vs("0x18")].get(vs("0x8"));n[vs("0xc")](vs("0x8"),((e,s={})=>{const r=this[vs("0x19")][vs("0x2")].document[vs("0x13")],i=s&&void 0!==s[vs("0x1")]?s[vs("0x1")]:!o[vs("0x11")];let x=[];if(i){const e=Array[vs("0x3")](r[vs("0x0")]())[vs("0x1a")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x16")],vs("0x8")),o=e[vs("0x5")]([vs("0x7"),"blockQuote"],t);return n&&o}(t,this.editor[vs("0x2")].schema)));x=S(e,t[vs("0x2")])}else{const e=Array.from(r[vs("0x0")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x2")])}t[vs("0x2")][vs("0x12")]((()=>{for(const t of x)n[vs("0xe")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x4")]((t=>{const{data:n}=t;if(n&&vs("0x8")==n.commandName){const t=Yo(e,vs("0x15"));return n[vs("0x6")][0][vs("0x1")]?{type:vs("0xa"),content:Yo(e,vs("0x17"),t)}:{type:vs("0xa"),content:Yo(e,vs("0xb"),t)}}}))}}function Ss(t){return vs("0x8")==t[vs("0x16")][vs("0x14")]}const Is=["get","ckbox","plugins","afterInit","enableCommand"];var Ls,Ns;Ls=Is,Ns=416,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x2")](){const t=this.editor;t.commands[ws("0x4")](ws("0x0"))&&t[ws("0x1")][ws("0x4")]("TrackChangesEditing")[ws("0x3")](ws("0x0"))}}const Os=["ELEMENT_CODE_BLOCK","enableCommand","languages","checkChild","commands","locale","plugins","format","name","editor","registerDescriptionCallback","commandName","formatBlock","selection","config","blockName","getSelectedBlocks","TrackChangesEditing","commandParams","*Format:* %0","model","from","language","filter","isLimit","outdentCodeBlock","markBlockFormat","change","schema","get","codeBlock","has","forceValue"];var Fs,Ps;Fs=Os,Ps=237,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x3")];if(!t[Ds("0x0")][Ds("0x19")]("CodeBlock"))return;const e=t.plugins[Ds("0x17")](Ds("0xb")),n=t[Ds("0x20")],o=t[Ds("0x8")][Ds("0x17")](Ds("0x18"))[Ds("0x1d")],s=t[Ds("0x1f")].get(Ds("0x18"));e[Ds("0x1c")]("indentCodeBlock"),e[Ds("0x1c")](Ds("0x13")),e[Ds("0x1c")]("codeBlock",((n,r={})=>{const i=t[Ds("0xe")],x=t[Ds("0xe")].document[Ds("0x7")],a=r&&void 0!==r.forceValue?r[Ds("0x1a")]:!s.value;let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array[Ds("0xf")](x[Ds("0xa")]())[Ds("0x11")]((t=>{return js(t)||(e=t,n=i[Ds("0x16")],!e.is("rootElement")&&!n[Ds("0x12")](e)&&n[Ds("0x1e")](e.parent,Ds("0x18")));var e,n})):Array[Ds("0xf")](x[Ds("0xa")]())[Ds("0x11")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x14")](t,{commandName:Ds("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x9")})}))})),e._descriptionFactory.registerElementLabel("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x4")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x6")==s&&r&&Ds("0x18")==r[Ds("0x5")]){const t=r[Ds("0xc")][0][Ds("0x10")],s=e(o.find((e=>e.language===t)).label);return r.commandParams[0][Ds("0x1a")]?{type:"format",content:Yo(n,Ds("0xd"),Yo(n,Ds("0x1b"),1)+" ("+s+")")}:{type:Ds("0x1"),content:Yo(n,"*Remove format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0x18")==t[Ds("0x2")]}const Us=["afterInit","get","TrackChangesEditing","enableCommand","plugins","has"];var Gs,Hs;Gs=Us,Hs=377,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this.editor;t[zs("0x5")][zs("0x0")]("CommentsEditing")&&t[zs("0x5")][zs("0x2")](zs("0x3"))[zs("0x4")]("addCommentThread")}}var Vs=n(181);const Ks=["detach","uiElement","downcastDispatcher","editor","root","deleteForward","addMarker:suggestion:deletion","unit","unlock","forward","createSelection","showSuggestionHighlights","high","createRange","setSelection","selection","unbindElementFromMarkerName","isCollapsed","enableCommand","removeMarker:suggestion:deletion","markerName","remove","get","merge","modifySelection","options","rootName","data","buffer","fromRange","model","start","end","bind","mapper","requires","editing"];var qs,Xs;qs=Ks,Xs=321,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xa")](){return[Vs.Delete]}init(){const t=this[$s("0xf")],e=t.plugins[$s("0x22")]("TrackChangesEditing");e[$s("0x1e")]("delete");const n=t.commands[$s("0x22")]($s("0x11"));e[$s("0x1e")]($s("0x11"),((e,o={})=>{const s=t[$s("0x5")][$s("0x16")](t[$s("0x5")].document[$s("0x1b")]);s[$s("0x1d")]&&t[$s("0x5")][$s("0x24")](s,{direction:$s("0x15"),unit:o[$s("0x13")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0x4")](r);let a;e(o),a="$graveyard"==x[$s("0x10")][$s("0x1")]?t[$s("0x5")][$s("0x19")](r[$s("0x6")]):t[$s("0x5")][$s("0x19")](x[$s("0x6")],x[$s("0x7")]),x[$s("0xc")](),t.model.enqueueChange(n.buffer.batch,(t=>{n[$s("0x3")].lock(),t[$s("0x1a")](t[$s("0x19")](a.end)),n[$s("0x3")][$s("0x14")]()}))})),t[$s("0xb")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x23")),{priority:$s("0x18")}),t[$s("0x2")][$s("0xe")].on($s("0x12"),((e,n,o)=>{o[$s("0x0")][$s("0x17")]&&hs(t,$s("0x23"),{showActiveMarker:!1})[$s("0x8")](this)(e,n,o)}),{priority:$s("0x18")}),t[$s("0xb")][$s("0xe")].on($s("0x1f"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[$s("0x20")]);if(o)for(const t of o)t.is($s("0xd"))&&(n[$s("0x9")][$s("0x1c")](t,e[$s("0x20")]),n.writer[$s("0x21")](t))}),{priority:"high"})}}const Qs=["getFirstRange","change","splitListItemAfter","document","*Format:* remove from %0","*Format:* insert into %0","registerElementLabel","_descriptionFactory","createRange","_LIST","after","next","ELEMENT_","locale","listIndent","deletion","add","get","splitListItemBefore","slice","DocumentListEditing","numberedList","commands","hasAttribute","nodeAfter","accept","listItemId","enableCommand","getAttribute","documentList","findIndex","multipleBlocks","editor","value","createPositionAt","expandListBlocksToCompleteList","schema","start","getSelectedBlocks","commandParams","isFirstBlockOfListItem","registerDescriptionCallback","DocumentListUtils","isObject","selection","length","forceValue","previousSibling","has","indentList","map","toUpperCase","listType","containsItem","commandName","model","TrackChangesEditing","ELEMENT_NUMBERED_LIST","end","from","ELEMENT_LIST_ITEM","bulletedList","*Change to:* %0","push","nextSibling","execute","_suggestionFactory","format","fromRange","before","outdentList","formatBlock","plugins","markBlockFormat"];var Zs,Ys;Zs=Qs,Ys=222,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x20")];if(!t.plugins[tr("0x30")](tr("0x14")))return;const e=t[tr("0xd")],n=t[tr("0x48")][tr("0x11")](tr("0x38")),o=t[tr("0x48")][tr("0x11")](tr("0x2a"));function s(e){return()=>{const s=t[tr("0x16")][tr("0x11")](e);let r=Array[tr("0x3b")](t.model.document[tr("0x2c")][tr("0x26")]());if(a(e)){r=o[tr("0x23")](r);const t=[];for(const e of r)o[tr("0x28")](e)&&t[tr("0x3f")](e);r=t}t.model[tr("0x1")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x21")]}],formatGroupId:tr("0x34")},[],tr("0x1d"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3b")](t);const n=e[tr("0x1e")]((t=>!t[tr("0x17")](tr("0x1a"))));return n>-1&&(e=e[tr("0x13")](0,n)),e}(t[tr("0x37")].document[tr("0x2c")][tr("0x26")]()),s=o[o[tr("0x2d")]-1],r=t[tr("0x37")].schema.isObject(s)?tr("0xa"):tr("0x3a"),i=t[tr("0x37")].createRange(t[tr("0x37")][tr("0x22")](o[0],"before"),t[tr("0x37")][tr("0x22")](s,r));t[tr("0x37")][tr("0x1")]((()=>{n[tr("0x49")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x34")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x40")];for(;t&&t.getAttribute(tr("0xe"))>n[tr("0x1c")](tr("0xe"));)e[tr("0x10")](t),t=t[tr("0x40")]}return Array[tr("0x3b")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x37")][tr("0x3")][tr("0x2c")][tr("0x26")]()[tr("0xb")]().value,s=t[tr("0x37")][tr("0x22")](o,tr("0x45")),r=t[tr("0x37")][tr("0x22")](o,0),i=t[tr("0x37")][tr("0x8")](s,r);t[tr("0x37")][tr("0x1")]((()=>{n[tr("0x49")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x34")})}))}}function a(e){const n=t[tr("0x16")][tr("0x11")](tr("0x3d"))[tr("0x21")],o=t[tr("0x16")][tr("0x11")](tr("0x15")).value;return"numberedList"===e?n:o}n.enableCommand(tr("0x15"),s("numberedList")),n.enableCommand(tr("0x3d"),s("bulletedList")),n[tr("0x1b")](tr("0x31"),r(tr("0x31"))),n[tr("0x1b")](tr("0x46"),r(tr("0x46"))),n[tr("0x1b")]("splitListItemAfter",x(tr("0x2"))),n[tr("0x1b")](tr("0x12"),x(tr("0x12"))),n[tr("0x7")][tr("0x6")]((function(e){const n=!t[tr("0x37")][tr("0x24")][tr("0x2b")](e),o=e[tr("0x2f")],s=e.nextSibling,r=e[tr("0x1c")](tr("0x1a")),i=!o||o.getAttribute(tr("0x1a"))!==r,x=!s||s.getAttribute(tr("0x1a"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x3c"),t))),n[tr("0x7")][tr("0x29")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x36")]){case tr("0x3d"):r=n[tr("0x27")][0][tr("0x2e")],i=a(n.commandName),o=tr(r?"0x5":"0x4"),i&&(o=tr("0x3e")),s={type:tr("0x43"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x15"):r=n[tr("0x27")][0][tr("0x2e")],i=a(n[tr("0x36")]),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x3e")),s={type:tr("0x43"),content:Yo(e,o,Yo(e,tr("0x39")))};break;case tr("0x31"):o="*Indent:* %0",s={type:tr("0x43"),content:Yo(e,o,Yo(e,tr("0x3c")))};break;case tr("0x46"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x25")][tr("0x18")];for(;n&&e[tr("0x35")](n);){if(n[tr("0x1c")](tr("0xe"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x0")]()[tr("0x25")].nodeAfter;return tr("0xc")+e[tr("0x1c")](tr("0x34"))[tr("0x33")]()+tr("0x9")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x3c"))),s={type:tr("0x43"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[tr("0x1f")]&&(o="*Merge:* %0",s={type:tr("0xf"),content:Yo(e,o,Yo(e,tr("0x3c")))})}return s})),n[tr("0x42")].registerCustomCallback(tr("0x47"),"documentList",tr("0x19"),(function(e,n){const o=[];for(let n of e)n[tr("0x25")][tr("0x18")]===n.end.parent&&(n=t[tr("0x37")].createRange(t[tr("0x37")][tr("0x22")](n[tr("0x25")][tr("0x18")],0))),o.push(n);t[tr("0x37")][tr("0x1")]((e=>{const s=t[tr("0x37")][tr("0x3")][tr("0x2c")],r=Array[tr("0x3b")](s.getRanges())[tr("0x32")]((t=>i.LiveRange[tr("0x44")](t)));e.setSelection(o),t[tr("0x16")][tr("0x11")](n[tr("0x36")]).refresh(),n[tr("0x27")][tr("0x3f")]({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0x36")],...n[tr("0x27")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["downcastDispatcher","parent","hasClass","enterBlock","getFirstRange","writer","mapper","options","model","createRange","nextSibling","setSelection","get","addMarker:suggestion:insertion","remove","bind","commands","markerNameToElements","ck-suggestion-marker-split","TrackChangesEditing","getFirstPosition","showSuggestionHighlights","selection","detach","high","init","fromRange","enableCommand","split","data","afterExecute","markerName","enter"];var sr,rr;sr=or,rr=459,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x1c")](){const t=this.editor,e=t.plugins[ir("0xf")](ir("0x16")),n=t[ir("0x13")][ir("0xf")](ir("0x2"));e[ir("0x1e")]("enter",(()=>{t[ir("0xb")].change((o=>{const s=t.model.document[ir("0x19")],r=s[ir("0x17")](),x=i.LiveRange[ir("0x1d")](s[ir("0x7")]());if(n[ir("0x6")](o)){const n=t[ir("0xb")].createPositionAt(r[ir("0x4")][ir("0xd")],0),s=o[ir("0xc")](r,n);e.markInsertion(s)}else o[ir("0xe")](o[ir("0xc")](x.end));x[ir("0x1a")](),n.fire(ir("0x0"),{writer:o})}))})),t.editing[ir("0x3")].on(ir("0x10"),hs(t,ir("0x1f")),{priority:ir("0x1b")}),t.editing[ir("0x3")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x9")][ir("0x14")](e[ir("0x1")]);if(o)for(const t of o)t[ir("0x5")](ir("0x15"))&&(n[ir("0x9")].unbindElementFromMarkerName(t,e[ir("0x1")]),n[ir("0x8")][ir("0x11")](t))}),{priority:ir("0x1b")}),t[ir("0x20")].downcastDispatcher.on(ir("0x10"),((e,n,o)=>{o[ir("0xa")][ir("0x18")]&&hs(t,ir("0x1f"),{showActiveMarker:!1})[ir("0x12")](this)(e,n,o)}),{priority:"high"})}}const ar=["createRange","findPrevious","TrackChangesEditing","_isInDeletionRange","FindAndReplaceEditing","createPositionAt","getIntersection","FindAndReplaceUtils","handleFindCommand","end","enableCommand","filter","replace","get","afterInit","item","bind","markers","model","find","string","replaceAll","has","findByTextCallback","editor","plugins"];var cr,lr;cr=ar,lr=469,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0xd")](){if(!this[ur("0x17")][ur("0x18")][ur("0x15")](ur("0x3")))return;const t=this.editor[ur("0x18")][ur("0xc")](ur("0x1"));t[ur("0x9")](ur("0x12"),this[ur("0x7")][ur("0xf")](this)),t[ur("0x9")]("findNext"),t[ur("0x9")](ur("0x0")),t[ur("0x9")](ur("0xb")),t[ur("0x9")](ur("0x14"))}handleFindCommand(t,e,n={}){const o=this[ur("0x17")][ur("0x18")].get(ur("0x6"));void 0!==n&&t((t=>(ur("0x13")==typeof e?o[ur("0x16")](e,n):e)(t)[ur("0xa")]((e=>!1===this._isInDeletionRange(e,t[ur("0xe")])))),n)}[ur("0x2")](t,e){const n=this[ur("0x17")][ur("0x11")][ur("0x19")](this[ur("0x17")][ur("0x11")][ur("0x4")](e,t.start),this[ur("0x17")][ur("0x11")].createPositionAt(e,t[ur("0x8")]));for(const t of this[ur("0x17")][ur("0x11")][ur("0x10")].getMarkersGroup("suggestion:deletion"))if(null!==n[ur("0x5")](t.getRange()))return!0;return!1}}const gr=["trim","fontColor.colors","markInlineFormat","label","plugins","*Set font family:* %0","_enableCommand","fontBackgroundColor","fontFamily","*Set font size:* %0","document","model","afterInit","fontSize.options","TrackChangesEditing","format","*Set font background color:* %0","value","config","from","fontSize","fontColor","commandParams","FontSizeEditing","FontFamilyEditing","toLowerCase","editor","*Reset font family*","commandName","normalizeSizeOptions","registerDescriptionCallback","change","get","find","isCollapsed","selection","_descriptionFactory"];var mr,fr;mr=gr,fr=322,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x22"),commandName:hr("0x1f")},{pluginName:hr("0x23"),commandName:hr("0x13")},{pluginName:"FontColorEditing",commandName:hr("0x20")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x12")}];class br extends t.Plugin{[hr("0x17")](){const t=this[hr("0x0")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x0")][hr("0xf")].has(t)&&this._enableCommand(e);this.editor[hr("0xf")].get(hr("0x19"))[hr("0xa")][hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1f")==o[hr("0x2")]){const e=o[hr("0x21")][0][hr("0x1c")];if(e){const o=n(this[hr("0x0")][hr("0xf")][hr("0x6")]("FontSize")[hr("0x3")](this.editor.config.get(hr("0x18")))[hr("0x7")]((t=>t[hr("0x16")]==e)).title)[hr("0x24")]();return{type:hr("0x1a"),content:Yo(t,hr("0x14"),o)}}return{type:hr("0x1a"),content:Yo(t,"*Reset font size*")}}if(hr("0x13")==o[hr("0x2")]){const e=o.commandParams[0].value;return e?{type:hr("0x1a"),content:Yo(t,hr("0x10"),e)}:{type:hr("0x1a"),content:Yo(t,hr("0x1"))}}if("fontColor"==o[hr("0x2")]){const e=o[hr("0x21")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x0")][hr("0x1d")].get(hr("0xc")))[hr("0x7")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x24")]()),{type:hr("0x1a"),content:Yo(t,"*Set font color:* %0",i)[hr("0xb")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font color*")}}if(hr("0x12")==o[hr("0x2")]){const e=o[hr("0x21")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x0")].config[hr("0x6")]("fontBackgroundColor.colors"))[hr("0x7")]((t=>t[hr("0x16")]==e));let r=e,i="";return o&&(r=o[hr("0xe")],i=n(r)[hr("0x24")]()),{type:hr("0x1a"),content:Yo(t,hr("0x1b"),i)[hr("0xb")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x11")](t){const e=this.editor;e[hr("0xf")][hr("0x6")]("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e.model[hr("0x15")][hr("0x9")],r=o[hr("0x1c")];s[hr("0x8")]?n(o):e.model[hr("0x5")]((()=>{const n=Array[hr("0x1e")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x16")]);for(const o of n)e[hr("0xf")][hr("0x6")]("TrackChangesEditing")[hr("0xd")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["title","locale","FontSize","enableCommand","join","normalizeSizeOptions","format","*Set format to:* %0","isBlock","toUpperCase","markInlineFormat","afterInit","isCollapsed","backward","modifySelection","selection","from","config","word","document","change","boolean","model","length","getSelectedBlocks","copyFormat","commands","entries","fontColor.colors","createSelection","createRange","TrackChangesEditing","fontSize","_descriptionFactory","fontSize.options","editor","label","push","toLowerCase","get","registerDescriptionCallback","getFirstPosition","getItems","pasteFormat","split","commandParams","*Remove all formatting*","getRanges","find","plugins","keys"];var _r,Tr;_r=Er,Tr=384,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x23")](){const t=this[Cr("0x8")],n=t[Cr("0x2e")],o=n[Cr("0x2b")][Cr("0x27")],s=t[Cr("0x16")][Cr("0xc")](Cr("0x4")),r=t[Cr("0x19")],i=t[Cr("0x32")][Cr("0xc")](Cr("0x31")),x=t[Cr("0x32")][Cr("0xc")](Cr("0x10"));i&&x&&(s.enableCommand(Cr("0x10"),((t,r={})=>{const i=r;n[Cr("0x2c")]((()=>{const t=Array[Cr("0x28")](o[Cr("0x14")]()),r=o[Cr("0x24")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x14")]())for(const t of e[Cr("0xf")]())!n[Cr("0x20")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x30")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cr("0x17")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x22")](t,{commandName:Cr("0x10"),commandParams:[i]})}))})),s[Cr("0x6")][Cr("0xd")]((e=>{const{data:n}=e;if(n&&Cr("0x10")===n.commandName){const e=[],o=n[Cr("0x12")][0];for(const[n,s]of Object[Cr("0x0")](o))e[Cr("0xa")](Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0x1e"),content:Yo(r,Cr("0x1f"),e[Cr("0x1c")](", "))}:{type:Cr("0x1e"),content:Yo(r,Cr("0x13"))}}})),t.plugins[Cr("0xc")]("TrackChangesEditing")[Cr("0x1b")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x2")](e);t.modifySelection(n,{unit:Cr("0x2a"),direction:Cr("0x25")});const o=n[Cr("0xe")]();t[Cr("0x26")](n,{unit:Cr("0x2a"),direction:"forward"});const s=n.getLastPosition();return t[Cr("0x3")](o,s)}function Ar(t,e,n){const o=t[Cr("0x19")].t,r=e[Cr("0x11")](/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x21")]()+r.slice(1)).toLowerCase();if(Cr("0x2d")==typeof n)return i;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x29")][Cr("0xc")](Cr("0x1")))[Cr("0x15")]((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x9")])[Cr("0xb")]():n)+")"}if(Cr("0x5")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x16")][Cr("0xc")](Cr("0x1a"))[Cr("0x1d")](t[Cr("0x29")].get(Cr("0x7"))).find((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x18")])[Cr("0xb")]():n)+")"}return i+" ("+n+")"}const vr=["schema","document","value","name","enableCommand","blockName","selection","match","_descriptionFactory","get","parent","checkChild","model","has","isObject","afterInit","from","registerDescriptionCallback","commandName","format","config","plugins","commandParams","locale","editor","find","change","heading","*Change to:* %0","title","HeadingEditing"];var Rr,Sr;Rr=vr,Sr=125,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0xe")](){const t=this[Ir("0x17")],e=t[Ir("0x16")],n=t[Ir("0x13")][Ir("0x8")]("heading.options");if(!t[Ir("0x14")][Ir("0xc")](Ir("0x1d")))return;const o=t.plugins.get("TrackChangesEditing");o[Ir("0x3")]("heading",((e,n)=>{const s=n.value,r=Array[Ir("0xf")](this.editor[Ir("0xb")][Ir("0x0")][Ir("0x5")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this.editor[Ir("0xb")][Ir("0x1e")])[Ir("0xa")](e[Ir("0x9")],n)&&!o[Ir("0xd")](e)&&e[Ir("0x2")]!=n;var e,n,o}));t[Ir("0xb")][Ir("0x19")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1a"),commandParams:[n],formatGroupId:Ir("0x4")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xb")]&&o._descriptionFactory.registerElementLabel(t[Ir("0xb")],(e=>{const n=Nr(t[Ir("0xb")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x7")][Ir("0x10")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i[Ir("0x11")]){const t=i[Ir("0x15")][0][Ir("0x1")],o=Nr(t);if(null!==o)return{type:Ir("0x12"),content:Yo(e,Ir("0x1b"),s(1,o))};const x=n[Ir("0x18")]((e=>e[Ir("0xb")]===t))[Ir("0x1c")];return{type:Ir("0x12"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x6")](/^heading(\d+)$/);return e?e[1]:null}const wr=["model","selection","item","highlight.options","editor","find","getFirstPosition","TrackChangesEditing","getLastMatchingPosition","backward","format","commandParams","push","hasAttribute","get","commandName","toLowerCase","HighlightEditing","document","change","afterInit","*Remove highlight*","getRanges","createRange","FORMAT_HIGHLIGHT","value","markInlineFormat","plugins","getAttribute","isCollapsed","highlight","title"];var Mr,Or;Mr=wr,Or=182,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this[Fr("0xe")];if(!t[Fr("0x5")].has(Fr("0x1b")))return;const e=t[Fr("0x5")][Fr("0x18")](Fr("0x11"));e.enableCommand(Fr("0x8"),((n,o={})=>{const s=t.model[Fr("0x1c")][Fr("0xb")],r=s[Fr("0x6")]("highlight");let i=o[Fr("0x3")],x=[];if(s[Fr("0x7")]){const e=s[Fr("0x10")]();if(!s[Fr("0x17")]("highlight"))return void n(o);{const n=t=>t[Fr("0xc")][Fr("0x6")](Fr("0x8"))===r,o=e[Fr("0x12")](n,{direction:Fr("0x13")}),s=e[Fr("0x12")](n);x=[t.model[Fr("0x1")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x0")]())i?x[Fr("0x16")](e):x[Fr("0x16")](...ms(Fr("0x8"),e,t[Fr("0xa")]));t[Fr("0xa")][Fr("0x1d")]((()=>{for(const t of x)e[Fr("0x4")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory.registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s[Fr("0x19")]){const e=n.t,o=s[Fr("0x15")][0].value;if(o){const s=t.config.get(Fr("0xd"))[Fr("0xf")]((t=>t[Fr("0xa")]==o)),r=e(s[Fr("0x9")])[Fr("0x1a")]();return{type:Fr("0x14"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x9")]}}}return{type:Fr("0x14"),content:Yo(n,Fr("0x1f"),Yo(n,Fr("0x2")))}}}))}}const Dr=["_descriptionFactory","createEmptyElement","insert","TrackChangesEditing","ck-horizontal-line","div","addClass","enableCommand","editor","has","plugins","createContainerElement","locale","createPositionAt","HorizontalLineEditing","dataDowncast","for","registerElementLabel","horizontalLine","afterInit","get"];var Br,jr;Br=Dr,jr=132,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xd")](){const t=this[Ur("0x2")];if(!t[Ur("0x4")][Ur("0x3")](Ur("0x8")))return;t[Ur("0x4")].get(Ur("0x12"))[Ur("0x1")](Ur("0xc"));const e=t[Ur("0x4")][Ur("0xe")]("TrackChangesEditing"),n=t[Ur("0x6")];e[Ur("0xf")][Ur("0xb")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Ur("0xa")](Ur("0x9")).elementToStructure({model:Ur("0xc"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")](Ur("0x14")),s=e[Ur("0x10")]("hr");return e[Ur("0x0")](Ur("0x13"),o),e[Ur("0x11")](e[Ur("0x7")](o,0),s),o},converterPriority:"high"})}}const Hr=["locale","HtmlEmbed","afterInit","getSelectedElement","editing","selection","commandName","registerElementLabel","ELEMENT_HTML_EMBED","enableCommand","rawHtml","TrackChangesEditing","cancel","rawHtmlApi","plugins","get","registerDescriptionCallback","htmlEmbed","model","document","view","markBlockFormat"];var zr,Wr;zr=Hr,Wr=159,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x13")](){const t=this.editor;if(!t.plugins.has(Vr("0x12")))return;const e=t.plugins[Vr("0xa")](Vr("0x6")),n=t[Vr("0x11")],o=t[Vr("0x15")][Vr("0xf")][Vr("0xe")][Vr("0x0")];e._descriptionFactory[Vr("0x2")](Vr("0x5"),(t=>Yo(n,Vr("0x3"),t))),t[Vr("0x9")][Vr("0xa")](Vr("0x6"))[Vr("0x4")](Vr("0xc"),((n,s)=>{const r=t[Vr("0xd")],i=r.document[Vr("0x0")];r.change((()=>{const t=function(t){const e=t[Vr("0x14")]();return e&&e.is("element",Vr("0x5"))?t[Vr("0x14")]():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e[Vr("0x10")](t,{commandName:Vr("0xc"),commandParams:[s]}),o[Vr("0x14")]().getCustomProperty(Vr("0x8"))[Vr("0x7")]())}))})),e._descriptionFactory[Vr("0xb")]((t=>{const{data:e}=t;if(e&&Vr("0xc")==e[Vr("0x1")]){const t=Yo(n,Vr("0x3"));return{type:"format",content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["formatBlock","getContainedElement","format","FORMAT_SIDE_IMAGE","forward","addObject","Inline image to block image","ImageResize","getAttribute","has","detach","nodeAfter","discard","shouldConvertImageType","ImageUploadEditing","previous","ELEMENT_CAPTION","imageStylePostApply","ImageUtils","imageTextAlternative","markBlockFormat","document","imageInline","enableCommand","chain","ImageTextAlternativeEditing","toPrevious","commands","newRange","name","registerCustomCallback","normalizedStyles","uploadImage","ImageBlockEditing","commandReversedParams","side","*Reset image width*","title","ELEMENT_INLINE_IMAGE","isEqual","isBefore","toNext","editor","forEach","model","locale","Users","deletion","backward","suggestion","schema","imageCaption","ImageEditing","formatInline","imageStyle","start","ImageCaptionUtils","*Format:* %0","*Set image text alternative:* %0","width","refresh","ImageInlineEditing","_descriptionFactory","TrackChangesEditing","isCollapsed","imageStylePreApply","findIndex","commandParams","imageTypeInline","newValue","_suggestionFactory","from","type","_findSuggestions","markDeletion","isBlockImage","*Remove image text alternative*","next","ImageStyleEditing","insertion","removeObject","registerElementLabel","convertInlineImageToBlock","getSuggestionCallback","getCaptionFromImageModelElement","discardSuggestion","join","getSuggestions","get","isInlineImage","plugins","accept","convertBlockImageToInline","createRange","ImageCaptionEditing","end","filter","fromPosition","getSuggestion","selection","markInsertion","alt","registerDescriptionCallback","value","isInContent","insertImage","imageTypeBlock","subType","getFirstRange","registerPostFixer","markInlineFormat","createRangeOn","getChangedMarkers","resizeImage","nodeBefore","length","getClosestSelectedImageElement","change","getNearestSelectionRange","hasSuggestion","element","commandName","_splitMarkerName"];var Xr,$r;Xr=qr,$r=101,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x40")];if(!t[Jr("0x70")][Jr("0x1f")](Jr("0x4a")))return;const n=t.plugins[Jr("0x6e")](Jr("0x55")),o=t[Jr("0x70")].get(Jr("0x28")),s={},r=t[Jr("0x43")];if(n[Jr("0x2d")](Jr("0x4")),n[Jr("0x54")].registerElementLabel("imageBlock",(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x67")](Jr("0x2c"),(t=>Yo(r,Jr("0x3c"),t))),n._descriptionFactory.registerElementLabel("caption",(()=>Yo(r,Jr("0x26")))),t.plugins.has(Jr("0x24"))&&n.enableCommand(Jr("0x36")),t[Jr("0x70")][Jr("0x1f")](Jr("0x37"))&&t[Jr("0x70")][Jr("0x1f")](Jr("0x53"))&&(n[Jr("0x2d")]("imageTypeInline",((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")].selection);t[Jr("0x42")][Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0x5a"),commandParams:[s]},[],Jr("0x72"))}))})),n[Jr("0x2d")](Jr("0x5"),((e,s)=>{t.model[Jr("0x10")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x77")](a[Jr("0x4d")],Jr("0x30")),l=i.LivePosition[Jr("0x77")](a.end,Jr("0x3f"));n.forceDefaultExecution((()=>e(s))),x=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),a=r.createRangeOn(x);const u=r.createRange(c,l);c[Jr("0x20")](),l[Jr("0x20")](),n[Jr("0x2a")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x68")),u.start[Jr("0x3e")](a[Jr("0x4d")])&&n.markInsertion(r.createRange(u[Jr("0x4d")],a[Jr("0x4d")]),"convertInlineImageToBlock"),a[Jr("0x75")].isBefore(u[Jr("0x75")])&&n[Jr("0x7a")](r.createRange(a[Jr("0x75")],u[Jr("0x75")]),Jr("0x68"))}))})),n[Jr("0x5c")].registerCustomCallback(Jr("0x16"),Jr("0x68"),"join",(()=>{})),n._suggestionFactory[Jr("0x34")](Jr("0x16"),Jr("0x68"),Jr("0x71"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x68"),Jr("0x22"),n[Jr("0x5c")].getSuggestionCallback("formatBlock","","accept")),n[Jr("0x5c")][Jr("0x34")](Jr("0x65"),Jr("0x68"),"join",(()=>{})),n[Jr("0x5c")][Jr("0x34")](Jr("0x65"),Jr("0x68"),Jr("0x22"),(([e])=>{const o=n._suggestionFactory[Jr("0x69")](Jr("0x65"),"",Jr("0x22"));let s=e[Jr("0x4d")],r=e[Jr("0x75")];const i=t[Jr("0x42")][Jr("0x48")][Jr("0x11")](s,Jr("0x46")),x=t[Jr("0x42")][Jr("0x48")][Jr("0x11")](r,Jr("0x1a"));i[Jr("0x56")]&&(s=i[Jr("0x4d")]),x[Jr("0x56")]&&(r=x[Jr("0x75")]),o([t[Jr("0x42")][Jr("0x73")](s,r)])})),n[Jr("0x5c")][Jr("0x34")](Jr("0x16"),Jr("0x68"),"chain",c),n._suggestionFactory[Jr("0x34")](Jr("0x65"),Jr("0x68"),Jr("0x2e"),c)),t.plugins[Jr("0x1f")](Jr("0x74"))&&(n[Jr("0x2d")]("toggleImageCaption",((e,s)=>{const r=t[Jr("0x70")][Jr("0x6e")](Jr("0x4e"));let i=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),x=r[Jr("0x6a")](i);t[Jr("0x42")].change((()=>{if(x)return void n[Jr("0x60")](t[Jr("0x42")].createRangeOn(x));const a=o[Jr("0x61")](i);e(s),i=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")][Jr("0x79")]),x=r[Jr("0x6a")](i),n[Jr("0x7a")](t[Jr("0x42")][Jr("0xa")](x),a?null:"imageCaption")}))})),n[Jr("0x5c")].registerCustomCallback("insertion",Jr("0x49"),Jr("0x2e"),c)),t[Jr("0x70")][Jr("0x1f")](Jr("0x64"))){n[Jr("0x2d")](Jr("0x4c"),((s,r)=>{const i=t.plugins[Jr("0x6e")](Jr("0x44")).me,x=t[Jr("0x31")][Jr("0x6e")](Jr("0x4c"));let a=o[Jr("0xf")](t[Jr("0x42")][Jr("0x2b")].selection),c=t.model[Jr("0xa")](a),l=x[Jr("0x2")];if(l==r[Jr("0x2")])return;const u={commandName:Jr("0x4c"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x42")][Jr("0x10")]((()=>{if(n[Jr("0x6d")]().filter((t=>t[Jr("0x3")]&&i==t.author&&(Jr("0x16")==t[Jr("0x5e")]||"formatInline"==t[Jr("0x5e")])&&(Jr("0x57")==t[Jr("0x6")]||Jr("0x27")==t[Jr("0x6")])&&t[Jr("0x7")]()[Jr("0x3d")](c)))[Jr("0x41")]((t=>n[Jr("0x6b")](t.head))),a=o[Jr("0xf")](t.model.document[Jr("0x79")]),c=t[Jr("0x42")].createRangeOn(a),x[Jr("0x52")](),t[Jr("0x31")][Jr("0x6e")](Jr("0x5a")).refresh(),t.commands.get(Jr("0x5"))[Jr("0x52")](),l=x[Jr("0x2")],l!=r[Jr("0x2")])return o[Jr("0x6f")](a)&&x[Jr("0x23")](r[Jr("0x2")],a)?(s(r),a=o[Jr("0xf")](t.model[Jr("0x2b")][Jr("0x79")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x61")](a)?n[Jr("0x2a")](a,u,[],"imageStylePostApply"):n[Jr("0x9")](c,u,Jr("0x27")))}))}));for(const e of t[Jr("0x70")][Jr("0x6e")](Jr("0x64"))[Jr("0x35")])s[e[Jr("0x33")]]=e[Jr("0x3b")].toLowerCase();n[Jr("0x5c")][Jr("0x34")]("formatBlock",Jr("0x57"),"join",(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x16"),Jr("0x27"),"join",(()=>{})),n[Jr("0x5c")][Jr("0x34")](Jr("0x4b"),Jr("0x27"),Jr("0x6c"),(()=>{})),n[Jr("0x5c")].registerCustomCallback(Jr("0x16"),Jr("0x57"),Jr("0x71"),(()=>{})),n._suggestionFactory[Jr("0x34")](Jr("0x16"),Jr("0x57"),Jr("0x22"),((t,e)=>{n[Jr("0x5c")][Jr("0x69")](Jr("0x16"),"","accept")(t,{commandName:e[Jr("0x14")],commandParams:e[Jr("0x38")]})})),n[Jr("0x5c")][Jr("0x34")](Jr("0x16"),"imageStylePreApply","chain",c)}const x=[{type:Jr("0x16"),subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x49")},{type:Jr("0x16"),subType:"convertInlineImageToBlock"},{type:Jr("0x65"),subType:Jr("0x68")}];function a(t,e){const s=x[Jr("0x58")]((({type:e,subType:n})=>t[Jr("0x5e")]==e&&t[Jr("0x6")]==n)),r=x[Jr("0x58")]((({type:t,subType:n})=>e[Jr("0x5e")]==t&&e[Jr("0x6")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x7")](),a=e[Jr("0x7")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x5f")](i,Jr("0x65"))[Jr("0x76")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x68")==t.subType));if(t.length>1&&a[Jr("0x75")][Jr("0x3d")](i[Jr("0x4d")]))return!0;if(1==t[Jr("0xe")]&&(i.start[Jr("0x3d")](a[Jr("0x75")])||i[Jr("0x75")].isEqual(a[Jr("0x4d")])))return!0}if(3==s&&3==r&&i[Jr("0x4d")].isBefore(a[Jr("0x4d")])){const t=i[Jr("0x75")][Jr("0x21")],e=a[Jr("0x4d")][Jr("0xd")];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[Jr("0x42")][Jr("0x2b")][Jr("0x8")]((()=>{let e=!1;const s=Array[Jr("0x5d")](t[Jr("0x42")][Jr("0x2b")].differ[Jr("0xb")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x15")](t);if(Jr("0x47")==s&&n[Jr("0x12")](a)){if(Jr("0x16")==i&&(Jr("0x57")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x32")]){const s=t[Jr("0x7")]()[Jr("0x17")]();if(o[Jr("0x61")](s))continue;n[Jr("0x6b")](t),e=!0}}if(Jr("0x65")==i&&Jr("0x49")==x&&!r[Jr("0x32")]){const t=n[Jr("0x78")](a);t[Jr("0x63")]&&t[Jr("0x63")][Jr("0x3")]&&(n[Jr("0x6b")](t[Jr("0x63")]),e=!0)}}}return e})),t[Jr("0x70")][Jr("0x1f")](Jr("0x1d"))&&n[Jr("0x2d")](Jr("0xc"),((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")].document[Jr("0x79")]);r[Jr("0x1e")]("width")!=s.width&&t[Jr("0x42")][Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0xc"),commandParams:[s]})}))})),t[Jr("0x70")][Jr("0x1f")](Jr("0x2f"))&&n[Jr("0x2d")](Jr("0x29"),((e,s)=>{const r=o[Jr("0xf")](t[Jr("0x42")].document[Jr("0x79")]);(r.hasAttribute(Jr("0x0"))?r[Jr("0x1e")]("alt"):"")!=s[Jr("0x5b")]&&t.model[Jr("0x10")]((()=>{n[Jr("0x2a")](r,{commandName:Jr("0x29"),commandParams:[s]})}))})),n[Jr("0x54")][Jr("0x1")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x5e")]==e&&t[Jr("0x6")]==n)))return t[Jr("0x25")]?{}:void 0})),n[Jr("0x54")][Jr("0x1")]((t=>{if(Jr("0x65")==t[Jr("0x5e")]||Jr("0x45")==t[Jr("0x5e")]){const e=t[Jr("0x17")]();if(e&&e.is(Jr("0x13"),"caption"))return{type:Jr("0x65")==t[Jr("0x5e")]?Jr("0x1b"):Jr("0x66"),element:e,quantity:1}}})),n[Jr("0x54")][Jr("0x1")]((t=>Jr("0x16")==t[Jr("0x5e")]&&"convertInlineImageToBlock"==t[Jr("0x6")]?{type:Jr("0x18"),content:Jr("0x1c")}:"formatBlock"==t[Jr("0x5e")]&&Jr("0x72")==t[Jr("0x6")]?{type:Jr("0x18"),content:"Block image to inline image"}:void 0)),n[Jr("0x54")][Jr("0x1")]((t=>{const{data:e}=t;if(e){if(Jr("0x4c")==e.commandName){const t=e[Jr("0x59")][0][Jr("0x2")];return n=Jr("0x39")===t?Yo(r,Jr("0x19")):s[t]||t,{type:Jr("0x18"),content:Yo(r,Jr("0x4f"),n)}}if(Jr("0x29")==e[Jr("0x14")]){const t=e[Jr("0x59")][0][Jr("0x5b")];return t?{type:"format",content:Yo(r,Jr("0x50"),'"'+t+'"')}:{type:Jr("0x18"),content:Yo(r,Jr("0x62"))}}if(Jr("0xc")==e[Jr("0x14")]){const t=e[Jr("0x59")][0][Jr("0x51")];return t?{type:Jr("0x18"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x18"),content:Yo(r,Jr("0x3a"))}}}var n}))}}const Zr=["registerCustomCallback","locale","formatBlock","discard","TrackChangesEditing","document","get","editor","replaceImageSource","author","plugins","selection","_descriptionFactory","accept","src","_suggestionFactory","markBlockFormat","change","getContainedElement","commandName","handleSuggestionDescription","Users","getSuggestionCallback","handleReplaceImageCommand","getAttribute","has","enableCommand","registerDescriptionCallback","model","subType","ImageEditing","getSuggestions","commandParams"];var Yr,ti;Yr=Zr,ti=270,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1")][ei("0x4")][ei("0x13")](ei("0x18")))return;const t=this[ei("0x1")].plugins[ei("0x0")](ei("0x1f"));t[ei("0x14")](ei("0x2"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x9")][ei("0x1b")]("formatBlock",ei("0x2"),ei("0x7"),t[ei("0x9")][ei("0x10")](ei("0x1d"),null,ei("0x1e"))),t[ei("0x9")][ei("0x1b")](ei("0x1d"),ei("0x2"),ei("0x1e"),t._suggestionFactory[ei("0x10")](ei("0x1d"),null,ei("0x7"))),t[ei("0x6")][ei("0x15")]((t=>this[ei("0xe")](t)))}[ei("0x11")](t,e){const n=this[ei("0x1")][ei("0x4")][ei("0x0")]("TrackChangesEditing"),o=this[ei("0x1")][ei("0x16")][ei("0x20")][ei("0x5")].getSelectedElement();this.editor[ei("0x16")][ei("0xb")]((()=>{let s=o[ei("0x12")](ei("0x8"));const r=this[ei("0x1")].plugins[ei("0x0")](ei("0xf")).me;for(const t of n[ei("0x19")]({skipNotAttached:!0})){const e=t[ei("0xc")]();if(ei("0x2")===t[ei("0x17")]&&e===o){t[ei("0x3")]!==r&&t[ei("0x1e")](),s=t.data[ei("0x1a")][0].source;break}}t(e),n[ei("0xa")](o,{commandName:ei("0x2"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0xe")](t){const{data:e}=t;if(e&&ei("0x2")===e[ei("0xd")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this[ei("0x1")][ei("0x1c")],t)}}}}const oi=["listenTo","_handleImportedData","forEach","value","plugins","bind","trackChanges","TrackChangesEditing","lowest","get","execute","_trackChangesValueDuringImport","afterInit","collaboration_features","commands","dataInsert","_trackChangesExecuted","track_changes","importWord","editor"];var si,ri;si=oi,ri=223,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x8")]=!1,this[ii("0xd")]=!1}[ii("0x9")](){const t=this[ii("0x10")],e=t.commands.get(ii("0xf")),n=t.commands[ii("0x6")](ii("0x3"));e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0x8")]=n.value,e[ii("0xa")][ii("0xe")]=!this[ii("0x8")]}),{priority:"high"}),this[ii("0x11")](e,ii("0xc"),this[ii("0x12")][ii("0x2")](this)),this[ii("0x11")](e,ii("0xc"),(()=>{this[ii("0xd")]&&(n[ii("0x7")](),this[ii("0xd")]=!1)}),{priority:ii("0x5")}),t[ii("0x1")].get(ii("0x4")).enableCommand("importWord"))}[ii("0x12")](t,e){const{suggestions:n}=e,o=this.editor[ii("0xb")][ii("0x6")](ii("0x3")),s=o[ii("0x0")];this._trackChangesValueDuringImport!==s&&(o[ii("0x7")](),this[ii("0xd")]=!0),n&&n[ii("0x13")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x1")][ii("0x6")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x1")].get(ii("0x4"))._setSuggestionData(s)}))}}const ai=["indent","editor","has","IndentBlock","getItems","plugins","commandName","blockIndent","outdent","*Outdent:* %0","selection","document","indentBlock","IndentEditing","getSelectedBlocks","enableCommand","from","outdentBlock","*Indent:* %0","locale","schema","get","afterInit","format","filter","model","_descriptionFactory","TrackChangesEditing"];var ci,li;ci=ai,li=221,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x19")](){const t=this[ui("0x4")],e=t[ui("0x8")][ui("0x18")](ui("0x2"));t[ui("0x8")][ui("0x5")](ui("0x10"))&&(e[ui("0x12")](ui("0x3")),e[ui("0x12")](ui("0xb")));const n=t[ui("0x16")];if(t[ui("0x8")].has(ui("0x6"))){for(const n of["indentBlock",ui("0x14")])e[ui("0x12")](n,(()=>{const o=Array[ui("0x13")](this[ui("0x4")][ui("0x0")][ui("0xe")][ui("0xd")][ui("0x11")]())[ui("0x1b")]((t=>this[ui("0x4")][ui("0x0")][ui("0x17")].checkAttribute(t,ui("0xa"))));t[ui("0x0")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[ui("0x1")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(ui("0xf")!=o[ui("0x9")]&&ui("0x14")!=o[ui("0x9")])return;const s=t[ui("0x7")]()[0],r=e._descriptionFactory.getItemLabel(s);return ui("0xf")==o[ui("0x9")]?{type:"format",content:Yo(n,ui("0x15"),r)}:ui("0x14")==o[ui("0x9")]?{type:ui("0x1a"),content:Yo(n,ui("0xc"),r)}:void 0}))}}}var gi,mi,fi=["input","init","editor","get","TrackChangesEditing","enableCommand","plugins","requires"];gi=fi,mi=197,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x4")](){this[hi("0x5")][hi("0x1")][hi("0x6")](hi("0x7"))[hi("0x0")](hi("0x3"))}}const bi=["plugins","editor","TrackChangesEditing","link","selection","registerDescriptionCallback","model","hasAttribute","enableCommand","markInlineFormat","commandParams","unlink","locale","has","change","get","document","getAttribute","getFirstRange","afterInit","commandName","from","linkHref","getRanges","isCollapsed","getFirstPosition","format"];var Ei,_i;Ei=bi,_i=203,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x5")](){const t=this[Ti("0xe")];if(!t[Ti("0xd")][Ti("0x1a")]("LinkEditing"))return;const e=t[Ti("0xd")][Ti("0x1")](Ti("0xf"));e[Ti("0x15")](Ti("0x10"),((n,o)=>{const s=t[Ti("0x13")][Ti("0x2")][Ti("0x11")];let r=[];if(s[Ti("0xa")]){if(!s[Ti("0x14")](Ti("0x8")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xb")](),Ti("0x8"),s[Ti("0x3")](Ti("0x8")),t[Ti("0x13")]);r=[e]}}else r=Array[Ti("0x7")](s[Ti("0x9")]());t.model[Ti("0x0")]((()=>{for(const t of r)e[Ti("0x16")](t,{commandName:Ti("0x10"),commandParams:[o]})}))})),e[Ti("0x15")](Ti("0x18"),(()=>{const n=this[Ti("0xe")][Ti("0x13")],o=n.document[Ti("0x11")];n[Ti("0x0")]((()=>{let n=[];n=o[Ti("0xa")]?[(0,Vs.findAttributeRange)(o[Ti("0xb")](),Ti("0x8"),o[Ti("0x3")](Ti("0x8")),t[Ti("0x13")])]:ms(Ti("0x8"),o[Ti("0x4")](),t.model);for(const t of n)e[Ti("0x16")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[Ti("0x12")]((e=>{const{data:n}=e,o=t[Ti("0x19")];if(n){if(Ti("0x10")==n.commandName){const t=n[Ti("0x17")][0];return{type:Ti("0xc"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x18")==n[Ti("0x6")]?{type:Ti("0xc"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["TrackChangesEditing","from","plugins","indentList","previousSibling","add","blockName","paragraph","getSelectedBlocks","listType","ELEMENT_BULLETED_LIST","createRange","get","locale","numberedList","_selectedElements","_descriptionFactory","bulletedList","execute","editor","commandName","end","todoList","enableCommand","registerDescriptionCallback","checkTodoList","name","slice","filter","commands","checkChild","isObject","model","replace","List","*Uncheck item*","*Check item*","listItem","format","element","ELEMENT_NUMBERED_LIST","value","parent","change","bulleted","length","document","push","before","ELEMENT_LIST_ITEM","has","markBlockFormat","listIndent","*Indent:* %0","createPositionAt","*Change to:* %0","ListEditing","numbered","nextSibling","outdentList","findIndex","getAttribute"];var ki,Ai;ki=yi,Ai=389,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x2")],e=t[vi("0x3a")];if(!t[vi("0x2f")][vi("0x21")](vi("0x27")))return;const n=t[vi("0x2f")][vi("0x39")](vi("0x2d")),o=t[vi("0x2f")][vi("0x21")]("TodoListEditing");function s(e){return()=>{const o=t[vi("0xf")][vi("0x1d")].selection,s=t[vi("0xc")][vi("0x39")](e);if(s[vi("0x18")])return void t[vi("0x1")](vi("0x34"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x2e")](t)[vi("0xb")]((t=>{return e=t,(o=n)[vi("0xd")](e[vi("0x19")],vi("0x14"))&&!o[vi("0xe")](e);var e,o}));o=o[vi("0xb")]((t=>!t.is(vi("0x16"),vi("0x14"))||t[vi("0x2c")](vi("0x36"))!=e));const s=new Set;for(const t of o)t.is(vi("0x16"),vi("0x14"))?s[vi("0x32")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0x35")](),r,t[vi("0xf")].schema);t[vi("0xf")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x18")]}],formatGroupId:vi("0x33")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x2e")](t);const n=e[vi("0x2b")]((t=>vi("0x14")!=t[vi("0x9")]));return n>-1&&(e=e[vi("0xa")](0,n)),e}(t.model[vi("0x1d")].selection.getSelectedBlocks()),s=t.model[vi("0x38")](t[vi("0xf")][vi("0x25")](o[0],vi("0x1f")),t[vi("0xf")][vi("0x25")](o[o[vi("0x1c")]-1],vi("0x4")));t.model[vi("0x1a")]((()=>{n[vi("0x22")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x23")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x29")];for(;t&&t[vi("0x2c")](vi("0x23"))>n[vi("0x2c")](vi("0x23"));)e[vi("0x32")](t),t=t[vi("0x29")]}return Array[vi("0x2e")](e)}(o))}))}}n[vi("0x6")](vi("0x3b"),s(vi("0x3b"))),n[vi("0x6")](vi("0x0"),s(vi("0x0"))),o&&n.enableCommand(vi("0x5"),s(vi("0x5"))),n.enableCommand("indentList",r(vi("0x30"))),n[vi("0x6")](vi("0x2a"),r("outdentList")),o&&n[vi("0x6")](vi("0x8"),(()=>{const e=t.commands[vi("0x39")](vi("0x8")),o=Array[vi("0x2e")](e[vi("0x3c")]);o.filter((t=>t[vi("0x2c")]("todoListChecked")!=e.value)),t[vi("0xf")][vi("0x1a")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x8"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x3d")].registerElementLabel(vi("0x14"),(t=>Yo(e,vi("0x20"),t))),n[vi("0x3d")][vi("0x7")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x3")]||vi("0x0")==n[vi("0x3")]||vi("0x5")==n[vi("0x3")])switch(n[vi("0x3")][vi("0x10")](vi("0x11"),"")){case vi("0x1b"):return o(Yo(e,vi("0x37")));case vi("0x28"):return o(Yo(e,vi("0x17")));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x30")==n.commandName)return{type:vi("0x15"),content:Yo(e,vi("0x24"),Yo(e,vi("0x20")))};if(vi("0x2a")==n[vi("0x3")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x8")==n[vi("0x3")])return n.commandParams[0].forceValue?{type:"format",content:Yo(e,vi("0x13"))}:{type:vi("0x15"),content:Yo(e,vi("0x12"))}}function o(t){return{type:vi("0x15"),content:Yo(e,vi("0x26"),t)}}}))}}function Si(t){const e=t[vi("0x2c")](vi("0x23"));if(0==e)return t;let n=t;for(;t[vi("0x31")]&&t[vi("0x31")].is(vi("0x16"),"listItem");){const o=t[vi("0x31")][vi("0x2c")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x31")]}return n}function Ii(t){const e=[];if(t.is(vi("0x16"),vi("0x14"))&&t[vi("0x2c")](vi("0x23"))>0){let n=t.nextSibling;for(;n&&vi("0x14")==n[vi("0x9")]&&n[vi("0x2c")]("listIndent")==t[vi("0x2c")](vi("0x23"));)e[vi("0x1e")](n),n=n[vi("0x29")]}return e}const Li=["listItem","getSelectedBlocks","from","styles","handleListStyleCommand","bind","handleDescriptions","getSiblingNodes","_LIST_","plugins","listStart","getLastPosition","push","*Format:* set start index to %0","locale","forward","listStyle","createRange","handleListStartCommand","element","get","document","commandParams","type","startIndex","replace","_getSuggestionBlocksForListStyle","listType","reversed","before","handleListReversedCommand","unshift","createPositionAt","change","model","*Format:* set order to reversed","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","toUpperCase","selection","getListTypeFromListStyleType","_getSuggestionBlocks","filter","format","editor","parent","getAttribute","length","_getTranslationKeyForListStyle","ListUtils","*Change to:* %0","ListPropertiesEditing","map","numbered","backward","enableCommand","listReversed","afterInit","has","config","ELEMENT_","markMultiRangeBlockFormat"];var Ni,wi;Ni=Li,wi=350,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x17")](){if(!this[Mi("0xa")][Mi("0x25")][Mi("0x18")](Mi("0x11")))return;const t=this.editor[Mi("0x19")][Mi("0x30")]("list.properties"),e=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0x1"));t[Mi("0x1f")]&&e.enableCommand("listStyle",this[Mi("0x20")][Mi("0x21")](this)),t.reversed&&e.enableCommand("listReversed",this[Mi("0x3a")][Mi("0x21")](this)),t.startIndex&&e[Mi("0x15")](Mi("0x26"),this.handleListStartCommand[Mi("0x21")](this)),e[Mi("0x3")][Mi("0x2")](this.handleDescriptions[Mi("0x21")](this))}[Mi("0x20")](t,e={}){const n=this[Mi("0xa")][Mi("0x25")].get(Mi("0x1")),o=this[Mi("0x36")]();this[Mi("0xa")].model[Mi("0x3d")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Mi("0x2c"),commandParams:[{type:e[Mi("0x33")]}],formatGroupId:Mi("0x2c")})}))}[Mi("0x3a")](t,e={}){const n=this[Mi("0xa")].plugins.get(Mi("0x1")),o=this[Mi("0x7")]((t=>t.is(Mi("0x2f"),"listItem")&&Mi("0x13")===t[Mi("0xc")](Mi("0x37"))));if(o[Mi("0xd")]<1)return;const s=o[Mi("0x12")]((t=>this[Mi("0xa")][Mi("0x3e")][Mi("0x2d")](this[Mi("0xa")].model[Mi("0x3c")](t,Mi("0x39")),this[Mi("0xa")][Mi("0x3e")].createPositionAt(t,0))));this[Mi("0xa")].model[Mi("0x3d")]((()=>{n[Mi("0x1b")](s,{commandName:"listReversed",commandParams:[{reversed:e[Mi("0x38")]}],formatGroupId:"listReversed"})}))}[Mi("0x2e")](t,e={}){const n=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0x1")),o=this[Mi("0x7")]((t=>t.is(Mi("0x2f"),Mi("0x1c"))&&Mi("0x13")===t[Mi("0xc")](Mi("0x37"))));if(o[Mi("0xd")]<1)return;const s=o[Mi("0x12")]((t=>this.editor[Mi("0x3e")][Mi("0x2d")](this[Mi("0xa")][Mi("0x3e")][Mi("0x3c")](t,Mi("0x39")),this[Mi("0xa")][Mi("0x3e")][Mi("0x3c")](t,0))));this[Mi("0xa")][Mi("0x3e")].change((()=>{n[Mi("0x1b")](s,{commandName:Mi("0x26"),commandParams:[{startIndex:e[Mi("0x34")]}],formatGroupId:Mi("0x26")})}))}[Mi("0x22")](t){const e=this[Mi("0xa")][Mi("0x2a")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Mi("0x2c"):o=Mi("0x10"),s={type:Mi("0x9"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Mi("0x32")][0][Mi("0x33")])))};break;case Mi("0x16"):o=n[Mi("0x32")][0][Mi("0x38")]?Mi("0x0"):"*Format:* set order to regular",s={type:Mi("0x9"),content:Yo(e,o)};break;case"listStart":o=Mi("0x29"),s={type:Mi("0x9"),content:Yo(e,o,n[Mi("0x32")][0][Mi("0x34")])}}return s}[Mi("0x36")](){var t,e,n,o;const s=this[Mi("0xa")][Mi("0x25")][Mi("0x30")](Mi("0xf"));let r=Array.from(this[Mi("0xa")][Mi("0x3e")].document[Mi("0x5")][Mi("0x1d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x2f"),Mi("0x1c")))&&r[Mi("0x3b")](...s[Mi("0x23")](this[Mi("0xa")][Mi("0x3e")][Mi("0x31")].selection.getFirstPosition(),Mi("0x14"))),(null===(e=r[r[Mi("0xd")]-1])||void 0===e?void 0:e.is(Mi("0x2f"),Mi("0x1c")))&&r[Mi("0x28")](...s[Mi("0x23")](this[Mi("0xa")][Mi("0x3e")].document.selection[Mi("0x27")](),Mi("0x2b"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0xa")].model.document[Mi("0x5")].getFirstPosition())||void 0===n?void 0:n[Mi("0xb")])||void 0===o?void 0:o.is("element",Mi("0x1c")))&&(r=r[Mi("0x8")]((t=>t.is("element",Mi("0x1c"))))),r}[Mi("0x7")](t){const e=this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils");let n=Array[Mi("0x1e")](this.editor[Mi("0x3e")][Mi("0x31")][Mi("0x5")][Mi("0x1d")]())[Mi("0x8")](t).map((t=>{const n=this.editor[Mi("0x3e")][Mi("0x3c")](t,0);return[...e[Mi("0x23")](n,Mi("0x14")),...e[Mi("0x23")](n,Mi("0x2b"))]})).flat();return n=[...new Set(n)],n}[Mi("0xe")](t){return Mi("0x1a")+this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils")[Mi("0x6")](t)[Mi("0x4")]()+Mi("0x24")+t[Mi("0x4")]()[Mi("0x35")](/-/g,"_")}}const Fi=["media","editor","registerElementLabel","plugins","locale","MediaEmbedEditing","downcastDispatcher","createEmptyElement","ELEMENT_MEDIA","stop","afterInit","high","has","TrackChangesEditing","dataDowncast","conversion","get","enableCommand","elementToElement","showSuggestionHighlights"];var Pi,Di;Pi=Fi,Di=301,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x9")](){const t=this[Bi("0x0")];if(!t[Bi("0x2")][Bi("0xb")](Bi("0x4")))return;const e=t[Bi("0x2")][Bi("0xf")](Bi("0xc")),n=t[Bi("0x3")];e[Bi("0x10")]("mediaEmbed"),e._descriptionFactory[Bi("0x1")](Bi("0x13"),(t=>Yo(n,Bi("0x7"),t))),t[Bi("0xe")].for(Bi("0xd"))[Bi("0x11")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x12")])return e[Bi("0x6")]("div")},converterPriority:Bi("0xa")}),t.data[Bi("0x5")].on("attribute:url:media",((t,e,n)=>{n.options[Bi("0x12")]&&t[Bi("0x8")]()}),{priority:Bi("0xa")})}}const Ui=["get","enableCommand","plugins","afterInit","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=126,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this.editor;t[zi("0x1")].has(zi("0x3"))&&t[zi("0x1")][zi("0x4")]("TrackChangesEditing")[zi("0x0")]("mention")}}const Vi=["enableCommand","_descriptionFactory","locale","registerElementLabel","ELEMENT_PAGE_BREAK","pageBreak","has","plugins","editor","TrackChangesEditing","get","afterInit"];var Ki,qi;Ki=Vi,qi=131,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x9")];if(!t.plugins[Xi("0x7")]("PageBreakEditing"))return;t[Xi("0x8")].get(Xi("0xa"))[Xi("0x1")](Xi("0x6"));const e=t.plugins[Xi("0xb")](Xi("0xa")),n=t[Xi("0x3")];e[Xi("0x2")][Xi("0x4")](Xi("0x6"),(t=>Yo(n,Xi("0x5"),t)))}}const Ji=["activeMarkers","editor","blockName","change","addMarker:suggestion:insertion","ck-suggestion-marker-split","ck-suggestion-marker--active","start","paragraph","editing","document","checkChild","nodeAfter","*Change to:* %0","format","isTouching","isBlock","schema","downcastDispatcher","consume","insertion","bindElementToMarker","plugins","_descriptionFactory","writer","markerName","TrackChangesEditing","showSuggestionHighlights","model","isObject","ELEMENT_PARAGRAPH","insert","addClass","locale","*Insert:* %0","markerRange","from","selection","data","consumable","highest","name","getSelectedBlocks","filter","options","parent","has","getItemLabel","Paragraph","end","registerDescriptionCallback","get","mapper","isLimit","type","enableCommand"];var Qi,Zi;Qi=Ji,Zi=166,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("0x3")];if(!t.plugins[Yi("0x30")](Yi("0x32")))return;const e=t[Yi("0x23")],n=t.plugins[Yi("0x35")](Yi("0x1c"));n._descriptionFactory.registerElementLabel(Yi("0xa"),(t=>Yo(e,Yi("0x20"),t))),n[Yi("0x1")](Yi("0xa"),((e,o={})=>{const s=t[Yi("0x1e")][Yi("0xc")],r=o[Yi("0x27")]||s[Yi("0x27")],i=Array[Yi("0x26")](r[Yi("0x2c")]())[Yi("0x2d")]((t=>{return e=t,(n=this[Yi("0x3")][Yi("0x1e")][Yi("0x13")]).checkChild(e[Yi("0x2f")],"paragraph")&&!n[Yi("0x1f")](e)&&Yi("0xa")!=e[Yi("0x2b")];var e,n}));t[Yi("0x1e")][Yi("0x5")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0xa"),commandParams:[],formatGroupId:Yi("0x4")},fs(t))}))})),n[Yi("0x19")][Yi("0x34")]((t=>{const{data:n}=t;if(n&&Yi("0xa")==n.commandName)return{type:Yi("0x10"),content:Yo(e,Yi("0xf"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x1")]("insertParagraph"),t[Yi("0xb")][Yi("0x14")].on(Yi("0x6"),ex(t),{priority:Yi("0x2a")}),t[Yi("0x28")][Yi("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x2e")][Yi("0x1d")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x19")];o.registerDescriptionCallback((n=>{if(Yi("0x16")!==n[Yi("0x0")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x11")](r)||!s[Yi("0xe")])return;const i=t[Yi("0x1e")].schema,x=s[Yi("0xe")];return i[Yi("0x12")](x)&&!i[Yi("0x37")](x)&&i.checkChild(x,"$text")?{type:"insertion",content:Yo(e,Yi("0x24"),o[Yi("0x31")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x18")].get(Yi("0x1c")),i=o[Yi("0x25")][Yi("0x9")],x=o.markerRange[Yi("0x33")],a=t[Yi("0x1e")][Yi("0x13")];if(!i[Yi("0x11")](x)||!i.nodeAfter)return;const c=i[Yi("0xe")];if(a.isBlock(c)&&!a.isLimit(c)&&a[Yi("0xd")](c,"$text")){if(!s[Yi("0x29")][Yi("0x15")](o.markerRange,n[Yi("0x2b")]))return;const t=s[Yi("0x1a")].createUIElement("span",{class:Yi("0x7")}),i=s[Yi("0x36")].toViewPosition(x);e&&r[Yi("0x2")].includes(o[Yi("0x1b")])&&s[Yi("0x1a")][Yi("0x22")](Yi("0x8"),t),s[Yi("0x1a")][Yi("0x21")](i,t),s[Yi("0x36")][Yi("0x17")](t,o[Yi("0x1b")])}}}const nx=["get","format","*Remove all formatting*","enableCommand","has","schema","editor","getAttributeProperties","_descriptionFactory","markInlineFormat","locale","removeFormat","RemoveFormatEditing","afterInit","commandName","isCollapsed","selection","change","registerDescriptionCallback","plugins","model","createRangeOn"];var ox,sx;ox=nx,sx=461,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xe")](){const t=this[rx("0x7")];if(!t[rx("0x14")][rx("0x5")](rx("0xd")))return;const e=t[rx("0x14")][rx("0x1")]("TrackChangesEditing");e[rx("0x4")](rx("0xc"),(n=>{const o=t[rx("0x15")].document[rx("0x11")];o[rx("0x10")]?n():t.model[rx("0x12")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x15")][rx("0x6")])&&e[rx("0xa")](t.model[rx("0x0")](n),{commandName:rx("0xc"),commandParams:[]})}))})),e[rx("0x9")][rx("0x13")]((e=>{const{data:n}=e;if(n&&rx("0xc")==n[rx("0xf")])return{type:rx("0x2"),content:Yo(t[rx("0xb")],rx("0x3"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x8")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["enableCommand","discardSelectedSuggestions","has","plugins","acceptSelectedSuggestions","discardSuggestion","TrackChangesEditing","goToNextRestrictedEditingException","trackChanges","afterInit","editor","RestrictedEditingModeEditing","get","discardAllSuggestions","goToPreviousRestrictedEditingException"];var cx,lx;cx=ax,lx=375,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x9")](){const t=this[ux("0xa")];if(!t[ux("0x3")][ux("0x2")](ux("0xb")))return;const e=t[ux("0x3")][ux("0xc")](ux("0x6"));e[ux("0x0")](ux("0xe")),e.enableCommand(ux("0x7"));const n=t[ux("0x3")][ux("0xc")](ux("0xb"));n[ux("0x0")](ux("0x8")),n[ux("0x0")]("acceptSuggestion"),n[ux("0x0")](ux("0x5")),n[ux("0x0")]("acceptAllSuggestions"),n.enableCommand(ux("0xd")),n[ux("0x0")](ux("0x4")),n[ux("0x0")](ux("0x1"))}}const gx=["addMarker:suggestion:insertion","addClass","ck-suggestion-marker-","enableCommand","deletion","getItems","data","shiftEnter","plugins","TrackChangesEditing","toViewPosition","get","split","insert","writer","high","bindElementToMarker","editing","_descriptionFactory","registerElementLabel","consumable","softBreak","createPositionBefore","markerRange","merge","mapper","includes","name","editor","downcastDispatcher","activeMarkers","span","markerName","createUIElement","showSuggestionHighlights","element","options","init"];var mx,fx;mx=gx,fx=500,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0x16")],e=t[hx("0x2")][hx("0x5")](hx("0x3"));e[hx("0x23")](hx("0x1")),t.editing.downcastDispatcher.on(hx("0x20"),bx(t),{priority:"high"}),t[hx("0xb")].downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x9")}),t[hx("0x0")][hx("0x17")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x1e")][hx("0x1c")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xc")][hx("0xd")](hx("0xf"),(e=>Yo(t.locale,"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x2")][hx("0x5")](hx("0x3"));if(!s[hx("0xe")].test(o[hx("0x11")],n[hx("0x15")]))return;const i=t.model;for(const t of o[hx("0x11")][hx("0x25")]()){if(!t.is(hx("0x1d"),hx("0xf")))continue;const n=hx("0x24")==o[hx("0x1a")].split(":")[1]?hx("0x12"):hx("0x6"),x=s[hx("0x8")][hx("0x1b")](hx("0x19"),{class:hx("0x22")+n}),a=s.mapper[hx("0x4")](i[hx("0x10")](t));e&&r[hx("0x18")][hx("0x14")](o.markerName)&&s[hx("0x8")][hx("0x21")]("ck-suggestion-marker--active",x),s[hx("0x8")][hx("0x7")](a,x),s[hx("0x13")][hx("0xa")](x,o.markerName)}}}const Ex=["commands","isCollapsed","model","plugins","document","getRanges","get","afterInit","change","editor","from","has","value","enableCommand","selection","format","StandardEditingModeEditing","restrictedEditingException","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","forceValue"];var _x,Tx;_x=Ex,Tx=183,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xd")](){const t=this[Cx("0xf")],e=t[Cx("0x8")],n=t.locale;if(!t[Cx("0x9")][Cx("0x11")](Cx("0x1")))return;const o=t[Cx("0x9")][Cx("0xc")]("TrackChangesEditing"),s=Cx("0x2"),r=t[Cx("0x6")][Cx("0xc")](s);o[Cx("0x13")](s,((t,n={})=>{const i=e[Cx("0xa")][Cx("0x14")];if(i[Cx("0x7")])return void t(n);const x=void 0!==n[Cx("0x5")]?n[Cx("0x5")]:!r[Cx("0x12")];e[Cx("0xe")]((()=>{const t=Array[Cx("0x10")](i[Cx("0xb")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0x0"),content:Yo(n,Cx("0x3"))}:{type:Cx("0x0"),content:Yo(n,Cx("0x4"))}}))}}const kx=["style.definitions","find","document","afterInit","normalizeConfig","style:","commands","value","plugins","config","element","style","getItems","registerDescriptionCallback","markInlineFormat","every","DataSchema","change","Style","name","_getStyleDefinition","locale","format","modelElements","getRanges","includes","isCollapsed","model","styleName","from","isBlock","_getRangesWithClasses","commandParams","getAttribute","enabledStyles","TrackChangesEditing","toLowerCase","_descriptionFactory","getDefinitionsForView","getSelectedBlocks","classes","selection","push","get","markBlockFormat","createRangeOn"];var Ax,vx;Ax=kx,vx=165,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x16")](){const t=this.editor;if(!t[Rx("0x1b")].has(Rx("0x25")))return;const e=t[Rx("0x19")][Rx("0x10")](Rx("0x1e")),n=t.plugins[Rx("0x10")](Rx("0x8")),o=t[Rx("0x28")],s=t.plugins[Rx("0x10")](Rx("0x23")),r=t[Rx("0x1b")][Rx("0x10")]("StyleUtils")[Rx("0x17")](s,t[Rx("0x1c")][Rx("0x10")](Rx("0x13")));n.enableCommand(Rx("0x1e"),((o,{styleName:i})=>{const x=t.model[Rx("0x15")][Rx("0xe")],a=this[Rx("0x27")](i,r);if(!a)return;if(!e[Rx("0x7")].includes(i))return;if(x[Rx("0x2d")]&&!a[Rx("0x3")])return void o({styleName:i});const c=!e[Rx("0x1a")][Rx("0x2c")](a[Rx("0x26")]);if(a.isBlock){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[Rx("0x2c")](o.name)){n.add(o);break}}return n}(x[Rx("0xc")](),a[Rx("0x2a")]);t[Rx("0x0")][Rx("0x24")]((()=>{for(const t of e)n[Rx("0x11")](t,{commandName:Rx("0x1e"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x18")+i})}))}else{let e=Array[Rx("0x2")](x[Rx("0x2b")]());if(!c){const n=Array[Rx("0x2")](s[Rx("0xb")](a[Rx("0x1d")],!1))[0][Rx("0x0")],o=[];for(const s of e){const e=this[Rx("0x4")](t[Rx("0x0")],s,a.classes,n);o[Rx("0xf")](...e)}e=o}t[Rx("0x0")].change((()=>{for(const t of e)n[Rx("0x21")](t,{commandName:Rx("0x1e"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0xa")][Rx("0x20")]((t=>{const{data:e}=t;if(e&&"style"===e.commandName)return e[Rx("0x5")][0].forceValue?{type:Rx("0x29"),content:Yo(o,"*Format:* %0",e[Rx("0x5")][0].styleName.toLowerCase())}:{type:Rx("0x29"),content:Yo(o,"*Remove format:* %0",e[Rx("0x5")][0][Rx("0x1")][Rx("0x9")]())}}))}[Rx("0x27")](t,e){let n=e.block[Rx("0x14")]((e=>e[Rx("0x26")]===t));return n||(n=e.inline[Rx("0x14")]((e=>e[Rx("0x26")]===t))),n}[Rx("0x4")](t,e,n,o){const s=[];for(const r of e[Rx("0x1f")]()){const e=r[Rx("0x6")](o);e&&n[Rx("0x22")]((t=>e[Rx("0xd")][Rx("0x2c")](t)))&&s.push(t[Rx("0x12")](r))}return s}}const Ix=["TableUtils","registerDescriptionCallback","refresh","insertion","isInContent","createPositionAt","TrackChangesEditing","getSuggestion","has","addMarker:suggestion","getSelectionAffectedTableCells","MAX_SAFE_INTEGER","ELEMENT_TABLE_COLUMN","afterInit","$graveyard","above","substr","removeTableRow","getChanges","_splitMarkerName","_acceptFormatSuggestionCallbackFactory","selectTableColumn","registerElementLabel","tableRow","minRow","toViewElement","type","writer","item","from","start","commands","getRowIndexes","insert","every","discard","markMultiRangeInsertion","enableCommand","TableEditing","maxRow","getContainedElement","change:data","deletion","removeClass","plugins","nodeAfter","name","map","downcastDispatcher","data","last","setSelection","accept","suggestion","*Remove:* %0","ELEMENT_TABLE_WITH_TEXT","differ","registerCustomCallback","selection","low","includes","_tableSuggestions","isEqual","addClass","root","end","join","insertTableRowAbove","tablePaste","_suggestionFactory","filter","model","getCellLocation","max","nodeBefore","hasAttribute","toLowerCase","batch","MIN_SAFE_INTEGER","$textProxy","createTableWalker","change","push","_setupColumnsRowsFixing","ELEMENT_TABLE_ROW","min","maxColumn","tableColumn","_tablePostFixingSubtypes","createRangeOn","rootName","isTouching","minColumn","length","insertTableColumnLeft","findAncestor","isArray","ELEMENT_TABLE_COLUMN_WITH_TEXT","editor","colspan","get","mapper","tableCell","removeTableColumn","table","getRanges","getItems","subType","markMultiRangeDeletion","options","addRange","enqueueChange","ELEMENT_TABLE","add","forceValue","insertTable","cell","execute","_descriptionFactory","getChildren","span","createRangeIn","_getSuggestionCoords","_getCoordsForCells","getAttribute","ELEMENT_TABLE_ROW_WITH_TEXT","detach","getColumnIndexes","order","first","rowspan","document","highest","*Insert:* %0","selectTableRow","position"];var Lx,Nx;Lx=Ix,Nx=133,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x5b")]=[wx("0x1a"),wx("0x5a")],this[wx("0x40")]=new Set}[wx("0x10")](){const t=this[wx("0x65")],e=t[wx("0x4a")].document[wx("0x3d")];if(!t[wx("0x2f")][wx("0xb")](wx("0x29")))return;const n=t.locale,o=t[wx("0x2f")][wx("0x67")](wx("0x9")),s=t[wx("0x2f")][wx("0x67")](wx("0x3"));o[wx("0x79")][wx("0x19")](wx("0x6b"),(t=>Yo(n,wx("0x73"),t))),this[wx("0x56")](),o[wx("0x28")](wx("0x76")),o[wx("0x28")](wx("0x1")),o[wx("0x28")](wx("0x18"));for(const n of[wx("0x46"),"insertTableRowBelow"]){const r=t.commands.get(n);o[wx("0x28")](n,(n=>{t.model.change((t=>{n();const i=wx("0x12")===r[wx("0x83")],x=s.getSelectionAffectedTableCells(e),a=s[wx("0x23")](x),c=i?a.first-1:a[wx("0x35")]+1,l=x[0][wx("0x62")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[wx("0x5c")](e[wx("0x77")])));o[wx("0x27")](d,wx("0x1a"))}))}))}for(const n of[wx("0x61"),"insertTableColumnRight"]){const r=t[wx("0x22")][wx("0x67")](n);o[wx("0x28")](n,(n=>{t.model.change((t=>{n();const i="left"===r[wx("0x83")],x=s[wx("0xd")](e),a=s[wx("0x82")](x),c=i?a[wx("0x84")]-1:a[wx("0x35")]+1,l=x[0][wx("0x62")](wx("0x6b")),u=s[wx("0x53")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[wx("0x32")]((e=>t.createRangeOn(e[wx("0x77")])));o[wx("0x27")](d,wx("0x5a"))}))}))}for(const n of[wx("0x14"),"removeTableColumn"]){const r=n[wx("0x13")](11),i=r.toLowerCase(),x=i.substr(0,3)+wx("0x7b"),a=wx("0x6b")+r,c=wx("0x58")+r,l=wx("0x4c")+r;o[wx("0x28")](n,(()=>{t[wx("0x4a")][wx("0x54")]((t=>{const r=s[wx("0xd")](e),u=r[0].findAncestor("table");let d;if("removeTableRow"==n){const t=s.getRowIndexes(r);d={startRow:t[wx("0x84")],endRow:t[wx("0x35")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[wx("0x84")],endColumn:t[wx("0x35")],includeAllSlots:!0}}const g=s[wx("0x53")](u,d),m=Array[wx("0x20")](g)[wx("0x32")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t.hasAttribute(x)))).map((e=>t[wx("0x5c")](e))),p=o[wx("0x6f")](h,a);if(p&&(wx("0x1a")==p[wx("0x6e")]||"tableColumn"==p.subType)){const e=this[wx("0x7d")](p);for(const n of f){const o=t[wx("0x5c")](n),r=s[wx("0x4b")](n),a=n[wx("0x7f")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[wx("0x71")](o)}}}))}))}function r(n){const o=Array[wx("0x20")](e.getRanges())[wx("0x32")]((t=>i.LiveRange.fromRange(t)));t.model[wx("0x54")]((e=>{const s=e[wx("0x50")];n=n[wx("0x49")]((t=>wx("0x11")!=t[wx("0x43")][wx("0x5d")])),e[wx("0x36")](n),t.commands[wx("0x67")](wx("0x14"))[wx("0x5")](),t.execute(wx("0x14"),{forceDefaultExecution:!0}),t[wx("0x4a")][wx("0x72")]((()=>{t.model[wx("0x72")](s,(t=>{const e=o[wx("0x49")]((t=>wx("0x11")!=t.root[wx("0x5d")]));e.length>0&&t[wx("0x36")](e);for(const t of o)t[wx("0x81")]()}))}))}))}function a(n){t[wx("0x4a")][wx("0x54")]((o=>{const s=Array[wx("0x20")](e[wx("0x6c")]())[wx("0x32")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x55")](e);for(const e of r)wx("0x11")!=e[wx("0x43")][wx("0x5d")]&&(o[wx("0x36")](o[wx("0x8")](e,0)),t.commands.get(wx("0x6a")).refresh(),t[wx("0x78")](wx("0x6a"),{forceDefaultExecution:!0}));const x=s[wx("0x49")]((t=>wx("0x11")!=t.root[wx("0x5d")]));x[wx("0x60")]>0&&o[wx("0x36")](x);for(const t of s)t[wx("0x81")]()}))}function c(t,e){return e[wx("0x25")]((e=>t.some((t=>t.end[wx("0x41")](e[wx("0x21")])||e[wx("0x44")][wx("0x41")](t[wx("0x21")])))))}function l(t,e){return t.some((t=>e.some((e=>t[wx("0x44")][wx("0x5e")](e[wx("0x21")])))))}t.data[wx("0x33")].on(wx("0xc"),((t,e,n)=>{if(!n[wx("0x70")].showSuggestionHighlights)return;const o=e[wx("0x1f")];if(!o)return;const s=n[wx("0x68")][wx("0x1c")](o);function r(t){return Array[wx("0x63")](t)?t:[t]}s&&wx("0x69")===o[wx("0x31")]&&(0,x.setHighlightHandling)(s,n[wx("0x1e")],((t,e,n)=>n[wx("0x42")](r(e.classes),t)),((t,e,n)=>n[wx("0x2e")](r(e.classes),t)))}),{priority:wx("0x87")}),o[wx("0x79")][wx("0x4")]((t=>{if(wx("0x6")!=t.type&&wx("0x2d")!=t[wx("0x1d")])return;const e=t[wx("0x2b")]();if(null!=e&&e.is("element","table")){if(wx("0x6")==t[wx("0x1d")]){const e=t[wx("0x6d")]()[wx("0x49")]((t=>t.is(wx("0x52"))))[wx("0x32")]((t=>t[wx("0x34")]));if(e[wx("0x60")])return{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wx("0x2d")==t[wx("0x1d")]){const e=t[wx("0x6d")]()[wx("0x49")]((t=>t.is(wx("0x52"))))[wx("0x32")]((t=>t.data));if(e[wx("0x60")])return{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x3a"),'"'+e[wx("0x45")](" ")+'"'))}}}})),o[wx("0x79")][wx("0x4")]((t=>{if(wx("0x1a")==t[wx("0x6e")]){const e=t[wx("0x6d")]().filter((t=>t.is("$textProxy"))).map((t=>t[wx("0x34")])),o=this[wx("0x7d")](t),s=o[wx("0x2a")]-o[wx("0x1b")]+1;if("insertion"==t[wx("0x1d")])return e[wx("0x60")]?{type:"insertion",content:Yo(n,wx("0x0"),Yo(n,wx("0x80"),[s,'"'+e.join(" ")+'"']))}:{type:wx("0x6"),content:Yo(n,wx("0x0"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(wx("0x2d")==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x2d"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x80"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x57"),s))}}if(wx("0x5a")==t[wx("0x6e")]){const e=t.getItems()[wx("0x49")]((t=>t.is(wx("0x52")))).map((t=>t.data)),o=this[wx("0x7d")](t),s=o[wx("0x59")]-o[wx("0x5f")]+1;if(wx("0x6")==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x6"),content:Yo(n,wx("0x0"),Yo(n,wx("0x64"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x0"),Yo(n,wx("0xf"),s))};if("deletion"==t[wx("0x1d")])return e[wx("0x60")]?{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0x64"),[s,'"'+e[wx("0x45")](" ")+'"']))}:{type:wx("0x2d"),content:Yo(n,wx("0x39"),Yo(n,wx("0xf"),s))}}})),o[wx("0x48")].registerCustomCallback(wx("0x6"),"tableRow",wx("0x26"),r),o[wx("0x48")][wx("0x3c")]("deletion","tableRow",wx("0x37"),r),o[wx("0x48")].registerCustomCallback(wx("0x6"),wx("0x5a"),wx("0x26"),a),o[wx("0x48")][wx("0x3c")](wx("0x2d"),wx("0x5a"),wx("0x37"),a),o._suggestionFactory[wx("0x3c")](wx("0x6"),wx("0x5a"),wx("0x45"),c),o[wx("0x48")].registerCustomCallback("deletion",wx("0x5a"),wx("0x45"),c),o[wx("0x48")][wx("0x3c")](wx("0x6"),"tableRow","join",l),o._suggestionFactory[wx("0x3c")]("deletion","tableRow",wx("0x45"),l)}[wx("0x17")](){const t=this[wx("0x65")],e=t[wx("0x4a")][wx("0x86")].selection;return(n,o)=>{t[wx("0x4a")][wx("0x54")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x44")][wx("0x4d")];x&&x[0]&&!1===x[0][wx("0x75")]&&(a=n[0][wx("0x21")][wx("0x30")]);const c=s[wx("0x7c")](a);if(wx("0x11")==c[wx("0x43")].rootName)return;const l=Array.from(e[wx("0x6c")]()).map((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[wx("0x22")].get(r)[wx("0x5")](),x.push({forceDefaultExecution:!0}),t[wx("0x78")](r,...x);const u=l[wx("0x49")]((t=>wx("0x11")!=t.root.rootName));u[wx("0x60")]>0&&s[wx("0x36")](u);for(const t of l)t[wx("0x81")]()}))}}_getCoordsForCells(t){const e=this[wx("0x65")][wx("0x2f")].get(wx("0x3"));let n=Number[wx("0xe")],o=Number[wx("0x51")],s=Number[wx("0xe")],r=Number[wx("0x51")];for(const i of t){if(wx("0x11")==i.root.rootName)continue;const{row:t,column:x}=e[wx("0x4b")](i),a=i[wx("0x4e")](wx("0x85"))?i[wx("0x7f")](wx("0x85"))-1:0,c=i[wx("0x4e")](wx("0x66"))?i[wx("0x7f")](wx("0x66"))-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}}[wx("0x56")](){const t=this[wx("0x65")],e=t[wx("0x2f")][wx("0x67")](wx("0x9")),n=t[wx("0x2f")][wx("0x67")]("TableUtils");t[wx("0x4a")][wx("0x86")].on(wx("0x2c"),(()=>{const n=Array[wx("0x20")](t[wx("0x4a")][wx("0x86")][wx("0x3b")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x16")](t);if(wx("0x38")!=n)continue;if(null!=o.oldRange)continue;const i=e[wx("0xa")](s);this[wx("0x5b")][wx("0x3f")](r)&&this[wx("0x40")][wx("0x74")](i)}}),{priority:wx("0x3e")});const o=(t,e)=>{let o=!1;const s=e[wx("0x5c")](t),r=t.findAncestor(wx("0x6b")),i=n[wx("0x4b")](t);for(const e of this._tableSuggestions){const n=e[wx("0x6e")],x=n.startsWith(wx("0x47")),a=n[wx("0x13")](x?10:5),c=a[wx("0x4f")](),l=c[wx("0x13")](0,3)+"span",u="min"+a,d="max"+a;if(!e[wx("0x7")])continue;if(r!=e.getFirstRange()[wx("0x21")][wx("0x62")]("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[wx("0x4e")](l)?t[wx("0x7f")](l)-1:0,m=this[wx("0x7d")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[wx("0x71")](s),o=!0)}return o};t[wx("0x4a")][wx("0x86")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x4a")][wx("0x86")].differ[wx("0x15")]())if(wx("0x24")==s[wx("0x1d")])if(wx("0x1a")==s[wx("0x31")])for(const t of s[wx("0x2")][wx("0x30")][wx("0x7a")]())n=n||o(t,e);else wx("0x69")==s[wx("0x31")]&&(n=n||o(s[wx("0x2")][wx("0x30")],e));return n}))}_getSuggestionCoords(t){return this[wx("0x7e")](t[wx("0x6c")]()[wx("0x32")]((t=>t[wx("0x21")][wx("0x30")])))}}function Ox(t){return Array[wx("0x20")](new Set(t).values())}const Fx=["size","from","horizontally","$graveyard","getAncestors","TableUtils","change","getFirstPosition","_areMergableCells","add","refresh","enableCommand","value","forceDefaultExecution","formatBlock","getSuggestions","registerDescriptionCallback","model","plugins","mergeTableCellDown","splitTableCellHorizontally","requires","stop","findAncestor","mergeTableCellUp","map","editor","push","highest","_suggestionFactory","_acceptFormatSuggestionCallbackFactory","isInContent","containsRange","find","rootName","element","cell","author","get","selection","execute","document","setSelection","detach","direction","return","markBlockFormat","afterInit","deletion","registerCustomCallback","_isForcedDefaultExecutionBlock","locale","format","filter","fromRange","_descriptionFactory","trackChanges","has","mergeTableCells","getSelectionAffectedTableCells","accept","splitTableCellVertically","commandName","mergeTableCellLeft","createRangeOn","_tablePostFixingSubtypes","_areSelectedCellsMergable","length","commands","markMultiRangeBlockFormat","TableEditing","mergeTableCellRight","tableCell","getCellLocation","type"];var Px,Dx;Px=Fx,Dx=346,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x32")](){return[Mx]}[Bx("0x1")](){const t=this.editor,e=t.model.document.selection,n=t[Bx("0x5")];if(!t[Bx("0x2f")].has(Bx("0x18")))return;const o=t.plugins[Bx("0x43")]("TrackChangesEditing"),s=t[Bx("0x2f")][Bx("0x43")](Bx("0x22")),r=t.plugins.get(Mx);r[Bx("0x13")][Bx("0x38")](Bx("0xc")),o.enableCommand(Bx("0xc"),(()=>{const e=s[Bx("0xd")](t[Bx("0x2e")][Bx("0x46")][Bx("0x44")]);t[Bx("0x2e")][Bx("0x23")]((()=>{o[Bx("0x17")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0xc"))}))})),t[Bx("0x16")].get("mergeTableCells").on(Bx("0x45"),((e,n)=>{t[Bx("0x16")][Bx("0x43")](Bx("0xa"))[Bx("0x29")]&&(n[Bx("0x15")]>0&&n[n[Bx("0x15")]-1]&&n[n.length-1][Bx("0x2a")]||o[Bx("0x4")]||this[Bx("0x14")]()||e[Bx("0x33")]())}),{priority:Bx("0x39")});for(const e of[Bx("0x35"),Bx("0x19"),"mergeTableCellDown",Bx("0x11")]){const n=t[Bx("0x16")].get(e);o[Bx("0x28")](e,(()=>{const e=t[Bx("0x2e")][Bx("0x46")].selection[Bx("0x24")]()[Bx("0x21")]()[Bx("0x3e")]((t=>t.is(Bx("0x40"),Bx("0x1a")))),s=n[Bx("0x29")];t[Bx("0x2e")][Bx("0x23")]((()=>{o[Bx("0x17")]([e,s],{commandName:Bx("0xc"),commandParams:[]},[],Bx("0xc"))}))}))}for(const e of[Bx("0xf"),Bx("0x31")]){const n=t[Bx("0x16")][Bx("0x43")](e);o.enableCommand(e,(()=>{const r=s[Bx("0xd")](t[Bx("0x2e")][Bx("0x46")][Bx("0x44")])[0],i=r[Bx("0x34")]("table"),{column:x,row:a}=s[Bx("0x1b")](r);let c=[];if(Bx("0x1f")==n[Bx("0x49")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1e")](t)[Bx("0x36")]((t=>t[Bx("0x41")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1e")](t)[Bx("0x36")]((t=>t[Bx("0x41")]))}t[Bx("0x2e")].change((t=>{o[Bx("0x0")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x9")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x10")]?{type:Bx("0x6"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x9")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x10")]?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Bx("0x31")==e.commandName?{type:Bx("0x6"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x3b")]();for(const t of[Bx("0x35"),Bx("0x19"),Bx("0x30"),Bx("0x11")])o[Bx("0x3a")].registerCustomCallback(Bx("0x2b"),t,Bx("0xe"),x);for(const t of["splitTableCellVertically",Bx("0x31")])o[Bx("0x3a")].registerCustomCallback(Bx("0x2b"),t,Bx("0xe"),x);o[Bx("0x3a")][Bx("0x3")](Bx("0x2b"),Bx("0xc"),"accept",(n=>{t[Bx("0x2e")].change((o=>{const s=Array[Bx("0x1e")](e.getRanges())[Bx("0x36")]((t=>i.LiveRange[Bx("0x8")](t)));o[Bx("0x47")](n),t[Bx("0x16")][Bx("0x43")](Bx("0xc"))[Bx("0x27")](),t.execute(Bx("0xc"),{forceDefaultExecution:!0});const r=s[Bx("0x7")]((t=>Bx("0x20")!=t.root[Bx("0x3f")]));r[Bx("0x15")]>0&&o[Bx("0x47")](r);for(const t of s)t[Bx("0x48")]()}))}));for(const e of[Bx("0x35"),Bx("0x30"),Bx("0x11"),Bx("0x19")]){const n=t[Bx("0x16")].get(e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x2e")][Bx("0x46")][Bx("0x44")][Bx("0x24")]().getAncestors()[Bx("0x3e")]((t=>t.is(Bx("0x40"),Bx("0x1a"))));this[Bx("0x25")](n[Bx("0x29")],o)||(e[Bx("0x4a")]=!1,e[Bx("0x33")]())}}),{priority:"low"})}}[Bx("0x14")](){const t=this[Bx("0x37")][Bx("0x16")].get("mergeTableCells"),e=this[Bx("0x37")].plugins[Bx("0x43")]("TableUtils");if(!t.isEnabled)return!1;const n=e[Bx("0xd")](this[Bx("0x37")][Bx("0x2e")][Bx("0x46")][Bx("0x44")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x37")][Bx("0x2f")][Bx("0x43")]("TrackChangesEditing"),o=this[Bx("0x37")][Bx("0x2e")][Bx("0x12")](t),s=this[Bx("0x37")][Bx("0x2e")][Bx("0x12")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2c")]())if(("insertion"==t.type||Bx("0x2")==t.type||Bx("0xc")==t.subType)&&t[Bx("0x3c")])for(const e of t.getRanges())e[Bx("0x3d")](o,!0)&&r[Bx("0x26")](t[Bx("0x1c")]+":"+t[Bx("0x42")].id),e[Bx("0x3d")](s,!0)&&i[Bx("0x26")](t[Bx("0x1c")]+":"+t[Bx("0x42")].id);if(r[Bx("0x1d")]!=i[Bx("0x1d")])return!1;for(const t of r)if(!i[Bx("0xb")](t))return!1;return!0}}const Ux=["options","ck-suggestion-marker--active","document","has","mapper","forceValue","getColumnIndexes","_splitMarkerName","bindElementToMarker","registerCustomCallback","headingRows","selection","getAttribute","findAncestor","createRange","writer","change","createTableWalker","data","removeClass","item","enableCommand","FORMAT_HEADER_COLUMN","setTableColumnHeader","TableEditing","last","value","ck-suggestion-marker-","commandName","nodeBefore","consume","_suggestionFactory","model","_acceptFormatSuggestionCallbackFactory","FORMAT_REGULAR_COLUMN","FORMAT_REGULAR_ROW","addMarker:suggestion","get","parent","markerRange","editor","table","getChild","getSuggestion","data-suggestion","TableUtils","name","markerName","removeAttribute","from","getSelectionAffectedTableCells","index","downcastDispatcher","getRowIndexes","showSuggestionHighlights","first","childCount","formatBlock","format","commands","afterInit","cell","highest","editing","createPositionBefore","addClass","commandParams","requires","markBlockFormat","includes","*Format:* %0","_descriptionFactory","accept","createPositionAfter","end","FORMAT_HEADER_ROW","headingColumns","plugins","setTableRowHeader","stop","unbindElementFromMarkerName"];var Gx,Hx;Gx=Ux,Hx=241,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("0x45")](){return[Mx]}[zx("0x3e")](){const t=this[zx("0x2a")];if(!t[zx("0x4f")][zx("0x5")](zx("0x1a")))return;const e=t.locale,n=t[zx("0x4f")][zx("0x27")]("TrackChangesEditing"),o=t[zx("0x4f")].get(zx("0x2f")),s=t.plugins[zx("0x27")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x9")](r[zx("0x31")]),c=n[zx("0x2d")](a);if(!c[zx("0x14")]||zx("0x19")!=c[zx("0x14")][zx("0x1e")])return;if(r[zx("0x16")])return void s[zx("0x0")]();if(!i.consumable[zx("0x20")](r[zx("0x29")],s[zx("0x30")]))return;const l=r[zx("0x29")].start.nodeAfter,u=r[zx("0x29")][zx("0x4c")][zx("0x1f")],d=l[zx("0x28")].parent,{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(u);for(let s=g;s<=m;s++){const c=o[zx("0x13")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x3f")],c=i.mapper.toViewElement(s);i[zx("0x11")].addClass("ck-suggestion-marker-"+x,c),e&&i.writer.setAttribute(zx("0x2e"),a,c),i.mapper[zx("0xa")](c,r.markerName),t&&(n.activeMarkers[zx("0x47")](r[zx("0x31")])?i[zx("0x11")][zx("0x43")](zx("0x3"),c):i[zx("0x11")].removeClass("ck-suggestion-marker--active",c))}}}}n[zx("0x17")](zx("0x50"),((e,s)=>{const r=o[zx("0x34")](t.model[zx("0x4")][zx("0xd")]),i=o[zx("0x37")](r),x=r[0][zx("0xf")](zx("0x2b")),a=x[zx("0xe")](zx("0xc"))||0,c=s&&null!==s[zx("0x7")]?s[zx("0x7")]:!t[zx("0x3d")][zx("0x27")](zx("0x50")).value,l=c?i[zx("0x1b")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x35")]<e[zx("0x35")])return;d=t[zx("0x22")][zx("0x10")](t.model[zx("0x42")](e.getChild(0)),t[zx("0x22")].createPositionAfter(u[zx("0x2c")](u[zx("0x3a")]-1)))}else{const e=x[zx("0x2c")](a-1);if(!e)return;d=t[zx("0x22")][zx("0x10")](t[zx("0x22")].createPositionBefore(u[zx("0x2c")](0)),t[zx("0x22")][zx("0x4b")](e[zx("0x2c")](e.childCount-1)))}t[zx("0x22")].change((()=>{n[zx("0x46")](d,{commandName:zx("0x50"),commandParams:[{forceValue:c}]},[],zx("0x50"))}))})),n[zx("0x17")](zx("0x19"),((e,o)=>{const s=t[zx("0x4f")].get(zx("0x2f")),r=s.getSelectionAffectedTableCells(t[zx("0x22")][zx("0x4")][zx("0xd")]),i=s[zx("0x8")](r),x=r[0][zx("0xf")]("table"),a=x[zx("0xe")](zx("0x4e"))||0,c=o&&null!==o.forceValue?o[zx("0x7")]:!t[zx("0x3d")].get(zx("0x19"))[zx("0x1c")];let l;const u=x[zx("0x2c")](0),d=c?i[zx("0x1b")]:i[zx("0x39")],g=s[zx("0x13")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x33")](g)[0][zx("0x3f")];if(c){const e=u[zx("0x2c")](a);if(m.isBefore(e))return;l=t[zx("0x22")][zx("0x10")](t[zx("0x22")][zx("0x42")](e),t[zx("0x22")][zx("0x4b")](m))}else{const e=u[zx("0x2c")](a-1);if(!e)return;l=t[zx("0x22")].createRange(t[zx("0x22")][zx("0x42")](m),t[zx("0x22")][zx("0x4b")](e))}t.model[zx("0x12")]((()=>{n[zx("0x46")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x19"))}))})),t[zx("0x41")][zx("0x36")].on(zx("0x26"),r(),{priority:"highest"}),t.data[zx("0x36")].on(zx("0x26"),((t,e,n)=>{n[zx("0x2")][zx("0x38")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x40")}),t.editing[zx("0x36")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e.markerName),i=n.getSuggestion(r);if(!i.data||"setTableColumnHeader"!=i[zx("0x14")][zx("0x1e")])return;const x=o[zx("0x6")].markerNameToElements(e[zx("0x31")]);if(x)for(const t of x)o.writer[zx("0x15")](zx("0x1d")+s,t),o.writer[zx("0x15")](zx("0x3"),t),o[zx("0x11")][zx("0x32")](zx("0x2e"),t),o.mapper[zx("0x1")](t,e[zx("0x31")])}),{priority:zx("0x40")}),n[zx("0x49")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x50")==n[zx("0x1e")]){const t=n[zx("0x44")][0][zx("0x7")];return o(Yo(e,zx(t?"0x4d":"0x25")))}if(zx("0x19")==n[zx("0x1e")]){const t=n[zx("0x44")][0][zx("0x7")];return o(Yo(e,zx(t?"0x18":"0x24")))}}function o(t){return{type:zx("0x3c"),content:Yo(e,zx("0x48"),t)}}}));const i=s[zx("0x23")]();n[zx("0x21")].registerCustomCallback(zx("0x3b"),zx("0x50"),zx("0x4a"),i),n[zx("0x21")][zx("0xb")](zx("0x3b"),"setTableColumnHeader",zx("0x4a"),i)}}const Vx=["end","has","unwrap","fromEntries","columns","discard","filter","registerPostFixer","keys","markers","getChanges","markMultiRangeBlockFormat","return","$graveyard","removeMarker","createElement","row","getTableIfOnlyTableInContent","afterInit","createTableWalker","getSelectionAffectedTableCells","content","locale","tablePasteCell","newRange","nextSibling","tableCellBorderStyle","previous","insertRows","entries","_replaceTableSlotCell","options","wrap","rowInsertionRanges","getRowIndexes","length","setAttributes","tableCellBorderColor","deletion","TableClipboard","getChangedMarkers","stop","tablePasteColumn","plugins","cell","join","author","getMarkers","last","value","change","remove","name","model","markMultiRangeInsertion","_createdBatches","first","hasSuggestion","getAttributes","clipboardOutput","low","tableCellBackgroundColor","tablePasteChainId","every","activeMarkers","accept","includes","endRow","documentSelection","markMultiRangeDeletion","commands","isInContent","element","schema","registerCustomCallback","reduce","requires","table","move","fill","getAllAdjacentSuggestions","removeRows","registerDescriptionCallback","suggestion:formatBlock:tablePasteCell","setAttribute","suggestion","tableCell","ck-suggestion-marker","getSuggestionCallback","cells","createRangeOn","markerToHighlight","get","high","deletionRanges","tablePaste","isEqual","register","previousSibling","next","ck-suggestion-marker-insertion","getRanges","trackChanges","isEmpty","add","createRangeIn","some","for","from","tableCellPadding","columnInsertionRanges","_tablePostFixingSubtypes","removeMarkers","markerAttributes","position","tableCellHorizontalAlignment","subType","containsRange","formatBlock","push","insertion","_descriptionFactory","type","rowInsertionIndexes","_splitMarkerName","showSuggestionHighlights","find","editingDowncast","TrackChangesEditing","getRange","startsWith","ck-suggestion-marker--active","tableCellVerticalAlignment","suggestion-td","tablePasteRow","markerName","differ","root","tableCellBorderWidth","getChildren","editor","_isForcedDefaultExecutionBlock","insert","map","getContainedElement","insertColumns","batch","tableCellSuggestion","document","_getCoordsForCells","listenTo","getSuggestions","set","oldRange","findAncestor","Users","attributes","_suggestionFactory","TableUtils","getChild","paragraph"];var Kx,qx;Kx=Vx,qx=227,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x48"),Xx("0x84"),Xx("0x79"),Xx("0x31"),Xx("0x42"),Xx("0x9c"),Xx("0x2b")],Jx=Object[Xx("0x62")]($x[Xx("0x4d")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0xa")](){return[Mx]}[Xx("0x71")](){const t=this.editor;if(!t[Xx("0x8a")][Xx("0x60")]("TableClipboard"))return;const n=t[Xx("0x8a")][Xx("0x1a")](Xx("0x3e")),o=t.plugins[Xx("0x1a")](Xx("0x5c")),s=t.plugins.get(Mx),r=t[Xx("0x8a")][Xx("0x1a")](Xx("0x86"));s[Xx("0x2d")][Xx("0x35")]("tablePasteRow","tablePasteColumn"),t[Xx("0x94")][Xx("0x7")][Xx("0x1f")](Xx("0x51"),{allowIn:Xx("0x14"),allowContentOf:Xx("0x14"),isLimit:!0}),t.conversion.elementToElement({model:Xx("0x51"),view:Xx("0x43")});let i=null;t.model.on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x82")]-1];l&&l.forceDefaultExecution||n[Xx("0x4b")]||this[Xx("0x4a")].commands[Xx("0x1a")](Xx("0x24"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2")))return!1;const r=s[Xx("0x70")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x73")](n[Xx("0x52")].selection);if(!i.length)return!1;const x=i[0][Xx("0x58")](Xx("0xb")),a=o[Xx("0x81")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x97")],endRow:a[Xx("0x8f")],startColumn:c[Xx("0x97")],endColumn:c.last};return 1==i[Xx("0x82")]&&(l[Xx("0x1")]+=o.getRows(r)-1,l.endColumn+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x94")],o,r)&&(s[Xx("0x88")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x94")].change((()=>{t.model.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[Xx("0x82")]&&n[Xx("0x95")](s,"tablePasteRow",{tablePasteChainId:o}),r.length&&n[Xx("0x95")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x82")]&&n[Xx("0x95")](a,Xx("0x1d"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x82")]&&n[Xx("0x3")](c,Xx("0x1d"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x6a")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x76"),{tablePasteChainId:o});if(u){const e=u[Xx("0x8e")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x94")][Xx("0x18")](o),i=e[Xx("0x3c")]((t=>t[Xx("0x3f")]()[Xx("0x1e")](r)));i&&n[Xx("0x35")]([i[Xx("0x93")],s])}n.length&&u[Xx("0x12")](Xx("0x2f"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x1b")]+10}),t[Xx("0x8a")][Xx("0x1a")]("TableClipboard").on(Xx("0x7d"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x88")]();const r=n[Xx("0x8b")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x6b")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x92")](r[Xx("0x5d")](0));for(const t of Array[Xx("0x2a")](x[Xx("0x49")]()))s[Xx("0x4c")](t,r,Xx("0x5f"));const t=i[Xx("0x39")][Xx("0x0")](n[Xx("0x6f")]),e=i.columnInsertionIndexes.includes(n.column);t||e||(l=s[Xx("0x27")](r))}else c&&!a&&(u=s[Xx("0x27")](r));else{const t=s.createElement("tableCellSuggestion"),e=s[Xx("0x6e")]("tableCellSuggestion");s[Xx("0x7f")](s.createRangeIn(r),e),s.insert(t,r,0);for(const e of Array.from(x[Xx("0x49")]()))s[Xx("0x4c")](e,t,Xx("0x5f"));l=s.createRangeOn(t),u=s[Xx("0x18")](e)}const d=Array[Xx("0x2a")](x[Xx("0x99")]()).filter((([t])=>$x.includes(t)));i[Xx("0x17")][Xx("0x35")]({element:r,attributes:d[Xx("0x82")]?Object.fromEntries(d):null}),l&&i.insertionRanges.push(l),u&&i[Xx("0x1c")][Xx("0x35")](u)}),{priority:Xx("0x1b")}),o.on(Xx("0x4f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x63")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0xd")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x2c")][Xx("0x35")](t[Xx("0x94")][Xx("0x18")](e))}),{priority:Xx("0x9b")}),o.on(Xx("0x7b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x39")]=new Array(a)[Xx("0xd")](x)[Xx("0x4d")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x72")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x80")][Xx("0x35")](t[Xx("0x94")].createRangeOn(e))}),{priority:"low"}),n[Xx("0x37")][Xx("0x10")]((e=>{if(e.subType&&e.subType.startsWith("tablePaste"))return e[Xx("0x7a")]?{}:{type:Xx("0x36"),content:Yo(t[Xx("0x75")],"*Replace table cells*")}}));const x=()=>{};for(const t of["tablePaste",Xx("0x89"),Xx("0x44"),Xx("0x76")])n._suggestionFactory.registerCustomCallback(Xx("0x36"),t,Xx("0x8c"),x),n[Xx("0x5b")][Xx("0x8")](Xx("0x85"),t,"join",x);n._suggestionFactory[Xx("0x8")](Xx("0x34"),"tablePasteCell",Xx("0x64"),x),n._suggestionFactory[Xx("0x8")]("formatBlock","tablePasteCell","accept",((e,n,o)=>{const s=e[Xx("0x4d")]((t=>t.getContainedElement()))[Xx("0x65")]((t=>t)),r=new Map(s[Xx("0x4d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x56")](t,e);else if(o&&o[Xx("0x2f")])for(const[e,n]of Object[Xx("0x7c")](o[Xx("0x2f")])){const o=t.model[Xx("0x68")][Xx("0x1a")](e),s=o?o[Xx("0x3f")]()[Xx("0x4e")]():null;s&&r.set(s,n)}t[Xx("0x94")][Xx("0x91")]((t=>{for(const[e,n]of r)t[Xx("0x83")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x5b")][Xx("0x8")](e,"tablePaste",o,((s,r,i)=>{t[Xx("0x94")][Xx("0x91")]((t=>{const x=[];for(const t of s){const e=t.start.nodeAfter;e.is(Xx("0x6"),Xx("0x51"))&&x.push(e)}n._suggestionFactory[Xx("0x16")](e,null,o)(s,r,i);for(const e of x)Xx("0x6c")!=e[Xx("0x47")].rootName&&t[Xx("0x61")](e)}))}))};a(Xx("0x36"),Xx("0xa0")),a(Xx("0x36"),Xx("0x64")),a(Xx("0x85"),Xx("0xa0")),a(Xx("0x85"),Xx("0x64")),n[Xx("0x5b")][Xx("0x8")](Xx("0x36"),Xx("0x44"),Xx("0x64"),(t=>{const e=t.map((t=>t[Xx("0x4e")]())),n=e[0][Xx("0x58")](Xx("0xb")),{minRow:r,maxRow:i}=s[Xx("0x53")](e);o[Xx("0xf")](n,{at:r,rows:i-r+1})})),n[Xx("0x5b")].registerCustomCallback(Xx("0x36"),Xx("0x89"),Xx("0x64"),(t=>{const e=t[Xx("0x4d")]((t=>t[Xx("0x4e")]())),n=e[0][Xx("0x58")](Xx("0xb")),{minColumn:r,maxColumn:i}=s[Xx("0x53")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x32")]||!e[Xx("0x32")][Xx("0x40")](Xx("0x1d")))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions().filter((t=>t[Xx("0x5")]&&t[Xx("0x5a")]&&t[Xx("0x5a")][Xx("0x9d")]==o));s[Xx("0x82")]&&e[Xx("0xe")]()[Xx("0x82")]!=s[Xx("0x82")]&&s[Xx("0x9")](((t,e)=>(t[Xx("0x21")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x3a")](t.markerName),s=[Xx("0x15"),Xx("0x22")],r=n[Xx("0x9f")][Xx("0x0")](t[Xx("0x45")]);return r&&s[Xx("0x35")](Xx("0x41")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x1b")}),n.on("suggestionUnloaded",c,{priority:Xx("0x1b")}),t.model[Xx("0x52")][Xx("0x66")]((()=>{let e=!1;const o=Array.from(t.model[Xx("0x52")].differ[Xx("0x87")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x3a")](s);if("suggestion"!=o||Xx("0x85")!=i||r[Xx("0x57")])continue;if(!n[Xx("0x98")](x))continue;const a=n.getSuggestion(x)[Xx("0x23")](),c=t[Xx("0x8a")][Xx("0x1a")](Xx("0x59")).me;for(const t of n[Xx("0x55")]())if(t[Xx("0x5")]&&t[Xx("0x8d")]==c&&Xx("0x34")==t.type&&Xx("0x76")==t.subType&&t[Xx("0x23")]()[Xx("0x9e")]((t=>a[Xx("0x28")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0xe")]())n[Xx("0x5")]&&(n[Xx("0x64")](),e=!0)}return e})),t[Xx("0x94")][Xx("0x52")][Xx("0x66")]((e=>{const o=t[Xx("0x4")].get("redo");if(!o||!o[Xx("0x96")][Xx("0x60")](e[Xx("0x50")]))return!1;let s=!1;const r=t[Xx("0x8a")].get(Xx("0x59")).me,i=t[Xx("0x94")].document[Xx("0x46")][Xx("0x69")](),x=Array.from(t[Xx("0x94")].document[Xx("0x46")][Xx("0x87")]())[Xx("0x65")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x3a")](t);return Xx("0x13")==o&&Xx("0x1d")==s&&i==r.id&&!e[Xx("0x57")]}));for(const t of i){if(Xx("0x4c")!=t[Xx("0x38")]||Xx("0x51")!=t[Xx("0x93")]||1!=t[Xx("0x82")])continue;const n=e.createRange(t[Xx("0x30")],t[Xx("0x30")].getShiftedBy(1));if(!x[Xx("0x3c")]((({data:t})=>t.newRange[Xx("0x1e")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x33")](o[Xx("0x77")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x94")][Xx("0x52")][Xx("0x66")]((e=>{let o=!1;const s=t[Xx("0x8a")][Xx("0x1a")](Xx("0x59")).me,r=n[Xx("0x55")]().filter((t=>t[Xx("0x5")]&&t[Xx("0x8d")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x1d")==t[Xx("0x32")])for(const e of t[Xx("0x8e")]()){const n=e[Xx("0x3f")]()[Xx("0x4e")]();if(n)if(n.is(Xx("0x6"),Xx("0x51"))&&Zx(n)){t[Xx("0x6d")](e[Xx("0x93")]),i[Xx("0x26")](n),o=!0;const s=n[Xx("0x78")],r=n[Xx("0x20")],a=s&&s.is(Xx("0x6"),Xx("0x51")),c=r&&r.is(Xx("0x6"),Xx("0x51"));a&&!i.has(s)&&x[Xx("0x26")](s),c&&!i[Xx("0x60")](r)&&x[Xx("0x26")](r)}else n.is("element","paragraph")&&n[Xx("0x25")]&&(t[Xx("0x6d")](e[Xx("0x93")]),o=!0)}else if(Xx("0x76")==t[Xx("0x32")]){if(!t[Xx("0x5a")]||!t.attributes[Xx("0x9d")])continue;const e=t[Xx("0x5a")][Xx("0x2f")];if(e&&Object[Xx("0x67")](e)[Xx("0x82")])continue;const n=t[Xx("0x5a")][Xx("0x9d")];let s=!0,i=!0;for(const e of r)if(e.subType&&e.subType[Xx("0x40")](Xx("0x1d"))){if(!e[Xx("0x5a")][Xx("0x9d")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5a")][Xx("0x9d")]==n){s=!1;break}}i&&s&&(t[Xx("0x2e")](),o=!0)}for(const t of i)e[Xx("0x92")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[Xx("0x29")](Xx("0x3d"))[Xx("0x19")]({model:Xx("0x11"),view:(t,e)=>l(t),converterPriority:Xx("0x1b")}),t.conversion[Xx("0x29")]("dataDowncast").markerToHighlight({model:Xx("0x11"),view:(t,e)=>e[Xx("0x7e")][Xx("0x3b")]?l(t,!1):null,converterPriority:Xx("0x1b")});const u=t.editing.view;this[Xx("0x54")](u[Xx("0x52")],Xx("0x9a"),((t,e)=>{const n=[];for(const t of u[Xx("0x27")](e[Xx("0x74")]).getItems())t.is("element",Xx("0x43"))&&n.push(t);u[Xx("0x91")]((t=>{for(const e of n)t[Xx("0xc")](t[Xx("0x27")](e),t.createPositionBefore(e)),t[Xx("0x92")](e)}))}))}}function Zx(t){if(t[Xx("0x25")])return!0;const e=t[Xx("0x5d")](0);return e.is("element",Xx("0x5e"))&&e[Xx("0x25")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x72")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","resizeColumnWidths","enableCommand","editor","resizeTable","tableWidth","formatBlock","afterInit","getSuggestions","_descriptionFactory","model","commandParams","table","getContainedElement","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","format","data","subType","_suggestionFactory","bind","Users","registerCustomCallback","discard","locale","TrackChangesEditing","getAttribute","getSelectedElement","handleSuggestionDescription","handleResizeTableWidthCommand","columnWidths","plugins","has","registerDescriptionCallback","markBlockFormat"];var ea,na;ea=ta,na=203,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x14")](){if(!this[oa("0x10")].plugins[oa("0xa")]("TableColumnResizeEditing"))return;const t=this[oa("0x10")][oa("0x9")][oa("0xd")](oa("0x3"));t[oa("0xf")]("resizeTableWidth",this[oa("0x7")][oa("0x22")](this)),t[oa("0xf")](oa("0xe"),this.handleResizeTableWidthCommand[oa("0x22")](this)),t[oa("0x21")][oa("0x0")](oa("0x13"),oa("0x11"),"accept",t[oa("0x21")].getSuggestionCallback(oa("0x13"),null,"discard")),t._suggestionFactory[oa("0x0")]("formatBlock","resizeTable",oa("0x1"),t[oa("0x21")].getSuggestionCallback(oa("0x13"),null,"accept")),t[oa("0x16")][oa("0xb")](this[oa("0x6")].bind(this))}[oa("0x7")](t,e){const n=this.editor[oa("0x9")][oa("0xd")](oa("0x3")),o=this.editor[oa("0x9")][oa("0xd")](oa("0x1d")),s=e[oa("0x19")]||this[oa("0x10")][oa("0x17")].document.selection[oa("0x5")]();this[oa("0x10")][oa("0x17")].change((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0x4")]("tableWidth")||null;const a=e[oa("0x12")]||x,c=e[oa("0x8")]||i,l=this.editor.plugins[oa("0xd")](oa("0x23")).me;for(const t of n[oa("0x15")]()){const e=t[oa("0x1a")]();if("resizeTable"===t[oa("0x20")]&&e===s){t.author!==l&&t[oa("0x1")]();const e=t[oa("0x1f")][oa("0x18")];x=e[0][oa("0x12")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xc")](s,{commandName:oa("0x1c"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x11"))}))}[oa("0x6")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x1b");return{type:oa("0x1e"),content:Yo(this[oa("0x10")][oa("0x2")],t)}}}}const ra=["plugins","afterInit","Template","get","insertTemplate","has","TrackChangesEditing"];var ia,xa;ia=ra,xa=250,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x3")](){const t=this.editor;t.plugins[aa("0x0")](aa("0x4"))&&t[aa("0x2")][aa("0x5")](aa("0x1")).enableCommand(aa("0x6"))}}const la=["_descriptionFactory","registerElementLabel","insertTableOfContents","TrackChangesEditing","get","afterInit","locale","plugins"];var ua,da;ua=la,da=237,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x0")](){const t=this.editor;if(!t.commands[ga("0x7")](ga("0x5")))return;t[ga("0x2")][ga("0x7")]("TrackChangesEditing").enableCommand("insertTableOfContents");const e=t[ga("0x2")][ga("0x7")](ga("0x6")),n=t[ga("0x1")];e[ga("0x3")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["Title","isTouching","has","registerElementLabel","title-content","registerPostFixer","get","schema","locale","getNearestSelectionRange","plugins","start","model","editor","TrackChangesEditing","differ","newRange","nodeBefore","end","document","from","createRange","element","getChangedMarkers","forward"];var ha,pa;ha=fa,pa=230,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x8")];if(!t.plugins[ba("0x16")](ba("0x14")))return;const e=t[ba("0x5")][ba("0x1")](ba("0x9"));e._descriptionFactory[ba("0x17")]("title-content",(()=>Yo(t[ba("0x3")],"ELEMENT_TITLE"))),t.model[ba("0xe")][ba("0x0")]((n=>{let o=!1;const s=Array[ba("0xf")](t[ba("0x7")].document[ba("0xa")][ba("0x12")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if("suggestion"!==s||!i[ba("0xb")])continue;const x=i.newRange,a=x[ba("0xd")][ba("0xc")];if(!a||!a.is(ba("0x11"),ba("0x18")))continue;if(!x[ba("0x6")][ba("0x15")](x[ba("0xd")]))continue;const c=t[ba("0x7")][ba("0x2")][ba("0x4")](x[ba("0xd")],ba("0x13"));if(c&&c.isCollapsed){const t=n[ba("0x10")](x[ba("0x6")],c[ba("0x6")]);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["UndoEditing","get","afterInit","editor","undo","TrackChangesEditing","redo","plugins"];var Ta,Ca;Ta=_a,Ca=218,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x1")],e=t.plugins[ya("0x7")](ya("0x3"));t[ya("0x5")].has(ya("0x6"))&&(e.enableCommand(ya("0x2")),e.enableCommand(ya("0x4")))}}const Aa=["enableCommand","TableCaptionEditing","plugins","TrackChangesEditing","afterInit"];var va,Ra;va=Aa,Ra=405,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[Mx]}[Sa("0x4")](){const t=this.editor;t[Sa("0x2")].has(Sa("0x1"))&&t[Sa("0x2")].get(Sa("0x3"))[Sa("0x0")]("toggleTableCaption")}}const La=["editor","commandParams","_getTranslationKeyForListStyle","styles","getAttribute","reversed","from","change","plugins","startIndex","getSelectedBlocks","listReversed","type","*Format:* set start index to %0","listType","markMultiRangeBlockFormat","commandName","toUpperCase","ELEMENT_","_getSuggestionBlocks","format","handleListStyleCommand","_descriptionFactory","bind","enableCommand","_getSuggestionBlocksForListStyle","numbered","filter","expandListBlocksToCompleteList","*Change to:* %0","model","TrackChangesEditing","handleDescriptions","listStyle","listStart","push","get","isFirstBlockOfListItem","isListItemBlock","document","list.properties","length","_LIST_","replace","*Format:* set order to regular","handleListStartCommand","DocumentListPropertiesEditing","DocumentListPropertiesUtils","registerDescriptionCallback","afterInit","DocumentListUtils"];var Na,wa;Na=La,wa=432,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x19")](){if(!this[Ma("0x1b")][Ma("0x23")].has(Ma("0x16")))return;const t=this[Ma("0x1b")].config[Ma("0xc")](Ma("0x10")),e=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x7"));t[Ma("0x1e")]&&e.enableCommand("listStyle",this.handleListStyleCommand.bind(this)),t[Ma("0x20")]&&e[Ma("0x0")](Ma("0x26"),this.handleListReversedCommand[Ma("0x32")](this)),t.startIndex&&e.enableCommand(Ma("0xa"),this[Ma("0x15")].bind(this)),e[Ma("0x31")][Ma("0x18")](this[Ma("0x8")][Ma("0x32")](this))}[Ma("0x30")](t,e={}){const n=this[Ma("0x1b")][Ma("0x23")].get(Ma("0x7")),o=this._getSuggestionBlocksForListStyle();this.editor.model[Ma("0x22")]((()=>{n[Ma("0x2a")](o,{commandName:Ma("0x9"),commandParams:[{type:e[Ma("0x27")]}],formatGroupId:Ma("0x9")})}))}handleListReversedCommand(t,e={}){const n=this[Ma("0x1b")][Ma("0x23")].get("TrackChangesEditing"),o=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x1a")),s=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&Ma("0x2")===t[Ma("0x1f")](Ma("0x29"))));null!==s&&this[Ma("0x1b")][Ma("0x6")][Ma("0x22")]((()=>{n[Ma("0x2a")](s,{commandName:Ma("0x26"),commandParams:[{reversed:e.reversed}],formatGroupId:Ma("0x26")})}))}handleListStartCommand(t,e={}){const n=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x7")),o=this[Ma("0x1b")][Ma("0x23")].get("DocumentListUtils"),s=this[Ma("0x2e")]((t=>o[Ma("0xe")](t)&&"numbered"===t[Ma("0x1f")](Ma("0x29"))));null!==s&&this[Ma("0x1b")][Ma("0x6")][Ma("0x22")]((()=>{n[Ma("0x2a")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0x24")]}],formatGroupId:Ma("0xa")})}))}[Ma("0x8")](t){const e=this[Ma("0x1b")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0x2b")]){case Ma("0x9"):o=Ma("0x5"),s={type:Ma("0x2f"),content:Yo(e,o,Yo(e,this[Ma("0x1d")](n[Ma("0x1c")][0][Ma("0x27")])))};break;case Ma("0x26"):o=n[Ma("0x1c")][0][Ma("0x20")]?"*Format:* set order to reversed":Ma("0x14"),s={type:Ma("0x2f"),content:Yo(e,o)};break;case Ma("0xa"):o=Ma("0x28"),s={type:Ma("0x2f"),content:Yo(e,o,n[Ma("0x1c")][0][Ma("0x24")])}}return s}[Ma("0x1")](){const t=this.editor.plugins[Ma("0xc")](Ma("0x1a"));let e=Array[Ma("0x21")](this[Ma("0x1b")].model.document.selection[Ma("0x25")]());return e[Ma("0xb")](...t[Ma("0x4")](e)),e=[...new Set(e)],e}[Ma("0x2e")](t){const e=this[Ma("0x1b")][Ma("0x23")][Ma("0xc")](Ma("0x1a"));let n=Array[Ma("0x21")](this.editor.model[Ma("0xf")].selection[Ma("0x25")]())[Ma("0x3")](t);if(!n[Ma("0x11")])return null;n=e[Ma("0x4")](n);const o=[];for(const t of n)e[Ma("0xd")](t)&&o.push(t);return o}[Ma("0x1d")](t){return Ma("0x2d")+this[Ma("0x1b")].plugins.get(Ma("0x17")).getListTypeFromListStyleType(t)[Ma("0x2c")]()+Ma("0x12")+t.toUpperCase()[Ma("0x13")](/-/g,"_")}}const Fa=["tableProperties","join","tableCellBorderWidth","discard","getFirstPosition","handleSuggestionDescription","has","tableBorderWidth","tableCellPadding","tableCellProperties","data","tableCellBorderColor","table","TablePropertiesEditing","registerDescriptionCallback","*Format:* change table cell properties","locale","formatBlock","enableCommand","pluginName","selection","commandParams","tableCellVerticalAlignment","accept","findAncestor","_handlePropertyChange","get","TrackChangesEditing","handleDiscardAction","tableCellWidth","editor","enqueueChange","getSuggestionCallback","_getSuggestion","nodeAfter","getContainedElement","removeAttribute","tableWidth","tableBackgroundColor","batch","markBlockFormat","subType","plugins","getSuggestions","start","document","TableUtils","tableCellBorderStyle","registerCustomCallback","_descriptionFactory","_suggestionFactory","tableCellBackgroundColor","getAttribute","format","model"];var Pa,Da;Pa=Fa,Da=134,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor","tableBorderStyle",Ba("0x26"),"tableAlignment",Ba("0xd"),"tableHeight",Ba("0xe")],this[Ba("0x28")]=[Ba("0x2a"),Ba("0x17"),Ba("0x21"),Ba("0x27"),Ba("0x5"),"tableCellHeight",Ba("0x1b"),"tableCellHorizontalAlignment",Ba("0x35")]}static get[Ba("0x32")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x6")][Ba("0x12")].get("TrackChangesEditing");if(this[Ba("0x6")][Ba("0x12")][Ba("0x25")](Ba("0x2c"))){for(const e of this[Ba("0x1f")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x6")][Ba("0x1e")][Ba("0x15")][Ba("0x33")][Ba("0x23")]()[Ba("0x0")](Ba("0x2b"));this[Ba("0x1")](e,[o],this[Ba("0x1f")],Ba("0x1f"),t,n)}));t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x1f"),Ba("0x36"),t._suggestionFactory[Ba("0x8")](Ba("0x30"),null,Ba("0x22"))),t[Ba("0x1a")][Ba("0x18")]("formatBlock",Ba("0x1f"),Ba("0x22"),((t,e)=>this[Ba("0x4")](this[Ba("0x1f")],t,e))),t[Ba("0x1a")][Ba("0x18")]("formatBlock",Ba("0x1f"),Ba("0x20"),(()=>!1))}if(this[Ba("0x6")].plugins[Ba("0x25")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x28")])t[Ba("0x31")](e,((t,n)=>{const o=this[Ba("0x6")][Ba("0x12")].get(Ba("0x16")).getSelectionAffectedTableCells(this.editor[Ba("0x1e")].document[Ba("0x33")]);this[Ba("0x1")](e,o,this[Ba("0x28")],"tableCellProperties",t,n)}));t[Ba("0x1a")].registerCustomCallback(Ba("0x30"),Ba("0x28"),Ba("0x36"),t[Ba("0x1a")].getSuggestionCallback("formatBlock",null,Ba("0x22"))),t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x28"),Ba("0x22"),((t,e)=>this.handleDiscardAction(this[Ba("0x28")],t,e))),t[Ba("0x1a")][Ba("0x18")](Ba("0x30"),Ba("0x28"),Ba("0x20"),(()=>!1))}t[Ba("0x19")][Ba("0x2d")]((t=>this[Ba("0x24")](t)))}[Ba("0x1")](t,e,n,o,s,r){const i=this[Ba("0x6")][Ba("0x12")][Ba("0x2")](Ba("0x3"));this.editor[Ba("0x1e")][Ba("0x7")](r[Ba("0xf")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1c")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x4")](t,e,n){const o=e[0][Ba("0x14")][Ba("0xa")],s=n[Ba("0x34")][0];this[Ba("0x6")][Ba("0x1e")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0xc")](n,o)}))}[Ba("0x24")](t){if(t[Ba("0x29")])switch(t[Ba("0x11")]){case"tableProperties":return{type:Ba("0x1d"),content:Yo(this[Ba("0x6")][Ba("0x2f")],"*Format:* change table properties")};case Ba("0x28"):return{type:Ba("0x1d"),content:Yo(this[Ba("0x6")][Ba("0x2f")],Ba("0x2e"))}}}[Ba("0x9")](t,e){const n=this[Ba("0x6")][Ba("0x12")][Ba("0x2")](Ba("0x3"));for(const o of n[Ba("0x13")]({skipNotAttached:!0})){const n=o[Ba("0xb")]();if(o[Ba("0x11")]===e&&n===t)return o}return null}}const Ua=["insertContent","chain","getSuggestions","ck-suggestion-marker-formatBlock","_createSuggestion","accept","upcast","selection","return","normal","$textProxy","document","marker-count","getRanges","acceptSuggestion","markerNameToElements","push","formatInline:accept","setAttribute","addMarker:suggestion","isExternal","hasCommentThread","define","forceDefaultExecution","isIntersectingWithRange","start","registerPostFixer","suggestionLoaded","markBlockFormat","setSelection","removeAttribute","isAtStart","elementEnd","change:data","config","resolve","splice","bindElementToMarker","removeMarker","_updateSuggestionData","_handleNewSuggestionMarker","before","addSuggestionData","open","isInsideObject","createdAt","rootName","newRange","collaboration.channelId","trackChangesCommand","formatInline:chain","discard","suggestion-type","_isForcedDefaultExecutionBlock","getSuggestion","getAncestors","oldRange","_getAuthorFromId","some","formatInline:join","createRangeIn","createElement","consumable","track-changes-user-not-found","track-changes-adapter-missing-getsuggestion","includes","suggestion:","removeMarkers","buildSuggestion","insertion:chain","accepted","_trackFormatChanges","getCustomProperty","after","markInsertion","_customCallbacks","getMultiRangeId","formatInline:discard","model","PendingActions","next","@external","TrackChangesEditing","deleteContent","addMarkerName","isNextTo","removed","dataDowncast","always","addComment","detach","previous","registerCustomCallback","isAtEnd","getAttribute","removeClass","backward","join","isMultiRange","removeComment","isRemovable","change","deletion:join","lowest","stop","Users","isBlock","split","batch","hasSuggestion","authorName","editingDowncast","_mergeNestedSuggestions","getShiftedBy","trackChanges.mergeNestedSuggestions","locale","element","addMarker:suggestion:formatBlock","length","add","isCollapsed","getLastMatchingPosition","createPositionAt","has","track-changes-adapter-already-set","_saved","isObject","nodeAfter","_refreshSuggestionsChain","differ","adapter","low","_registerDefaultCallbacks","getRange","listenTo","parent","_defaultCallbacks","_removeSuggestion","root","enableCommand","map","_cutOutSuggestionMarker","_joinWithAdjacentSuggestions","refresh","widget","range","_getExternalAuthor","splitPosition","formatBlock:discard","markInlineFormat","addMarker","rethrowUnexpectedError","suggestion","_splitMarkerName","deletion:","ready","unbind","containsItem","clear","_getSuggestionData","_breakSuggestionMarker","getNearestSelectionRange","schema","nodeBefore","_suggestions","trackChanges","$graveyard","markerName","insertion:discard","isEqual","getIntersection","end","formatBlock","isAfter","ck-suggestion-marker","getDifference","howMany","track-changes-suggestion-data-mismatch","discardSelectedSuggestions","isLimit","error-saving-suggestion-data-suggestion-discarded","targetPosition","every","plugins","remove","writer","consume","hasComments","change:_saved","suggestionChanged","containsRangeInObject","markerReady","attributes","discardSuggestion","delete","position","fire","trackChanges.trackFormatChanges","fetchCommentThread","creator","createSelection","_editor","multipleBlocks","commandName","authoredAt","formatBlock:","_commentsRepository","_rangeIsInLocalUserInsertion","init","getUser","set","data","head","getAllAdjacentSuggestions","never","deletion:accept","suggestionUnloaded","fromCharCode","elementToElement","clone","update:suggestion","item","isTouching","values","activeMarkers","_enabledCommands","PENDING_ACTION_SUGGESTION","getCommentThread","_suggestionState","requires","value","dataReady","for","high","containsPosition","markMultiRangeDeletion","sort","from","notReady","insert","addRange","_checkSuggestionCorrectness","multi","addCommentThread","execute","applyOperation","acceptSelectedSuggestions","rejected","isBefore","options","commentThread","then","toViewElement","updateMarker","size","markerToHighlight","editor","deletion","createRange","insertion:","isOwn","createPositionAfter","external:","formatBlock:accept","_suggestionFactory","acceptAllSuggestions","formatInline","_findSuggestions","subType","addSuggestion","type","addClass","_adapter","getFirstRange","documentSelection","getFirstMarker","showSuggestionHighlights","originalSuggestionId","formatBlock:join","author","_setSuggestionRange","formatGroupId","addHighlight","getChanges","forward","isLocal","_setSuggestionData","fromRange","name","change:activeMarkers","deletion:chain","default","insertion","CommentsRepository","_joinSuggestions","containsRange","enqueueChange","group","getChangedMarkers","updateSuggestion","isSelectable","_model","removeMarker:suggestion:formatBlock","_addSuggestionMarker","skipNestingCheck","_onDiscard","ck-suggestion-marker--active","stopListening","ck-suggestion-marker-","commands","isDocumentOperation","getSuggestionCallback","conversion","_addThreadToSuggestion","isInContent","get","filter","mapper","data-suggestion","_descriptionFactory"];var Ga,Ha;Ga=Ua,Ha=205,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x18")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0xc5")}constructor(t){function e(t){return t.map((t=>String[za("0xc")](t)))[za("0xd4")]("")}super(t),this.set(za("0x13"),[]),this.on(za("0x54"),((e,n,o,s)=>{this[za("0x60")].change((()=>{for(const e of[...s,...o])this._model.markers[za("0xee")](e)&&t.editing.reconvertMarker(e)}))})),this[za("0x72")]=new ss(this[za("0x33")][za("0xc1")][za("0x115")],this[za("0x33")][za("0xe6")]),this[za("0x43")]=null,this[za("0x3b")]=new Va(this[za("0x33")]),this[za("0x117")]=new Map,this[za("0x1")]=t[za("0x12a")].get(za("0x58")),this._enabledCommands=new Set,this._model=this[za("0x33")][za("0xc1")],this._suggestionState=new WeakMap,this[za("0xa8")]=!1,t[za("0x95")][za("0x89")](za("0x138"),za("0x56")),this._trackFormatChanges=t[za("0x95")][za("0x6e")](za("0x138")),t.config.define("trackChanges.mergeNestedSuggestions",!0),this[za("0xe3")]=t[za("0x95")][za("0x6e")](za("0xe5")),this[za("0xa4")]=new d(t,this[za("0x14")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,49,54])}[za("0x3")](){const t=this.editor;t[za("0x6b")][za("0x1b")](za("0xe2"))[za("0x32")]({model:za("0x10b"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0x11a")]),o=[za("0x121"),za("0x67")+n];let s=3e3;return this[za("0x13")][za("0xb4")](t[za("0x11a")])&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x6b")][za("0x1b")](za("0xca"))[za("0xea")]((e=>{e.on(za("0x86"),((e,n,o)=>{if(!o[za("0x2c")][za("0x47")])return;const s=n[za("0x10")];if(!s)return;const r=o[za("0x70")].toViewElement(s);t[za("0xc1")][za("0x115")][za("0xf1")](s)&&r&&!r.getCustomProperty(za("0x103"))&&r.is("containerElement")&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x1c")})})),t.conversion[za("0x1b")](za("0xca"))[za("0x32")]({model:za("0x10b"),view:(t,e)=>{if(!e[za("0x2c")].showSuggestionHighlights)return null;const{type:n}=this[za("0x10c")](t.markerName);return{classes:[za("0x121"),za("0x67")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x10")])return;if(o[za("0x10")].is(za("0x7a")))return void s[za("0xb1")][za("0x12d")](o[za("0x10")],n[za("0x53")]);const r=s[za("0x70")][za("0x2f")](o[za("0x10")]);if(!o[za("0x10")].is("element")||!t.model[za("0x115")][za("0xdd")](o[za("0x10")])||r[za("0xbb")](za("0x4d")))return;const{id:i}=this._splitMarkerName(o.markerName);s[za("0x12c")][za("0x42")](["ck-suggestion-marker",za("0x76")],r),s[za("0x12c")][za("0x85")]("data-suggestion",i,r),s[za("0x70")][za("0x98")](r,o.markerName),e&&(this.activeMarkers[za("0xb4")](o[za("0x11a")])?s[za("0x12c")][za("0x42")](za("0x65"),r):s[za("0x12c")][za("0xd2")](za("0x65"),r));for(const e of t[za("0xc1")][za("0xaf")](o[za("0x10")]).getItems())s.consumable.consume(e,n[za("0x53")]);s[za("0xb1")].consume(o[za("0x10")],n[za("0x53")])};t[za("0x6b")][za("0x1b")](za("0xca"))[za("0xea")]((t=>{t.on(za("0xe8"),((t,e,o)=>{o[za("0x2c")][za("0x47")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x6b")][za("0x1b")](za("0xca")).markerToData({model:za("0x10b"),view:(t,e)=>e[za("0x2c")][za("0x47")]?null:{group:"suggestion",name:t.substr(11)}}),t[za("0x6b")][za("0x1b")](za("0x79"))[za("0xd")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xb5")+t[za("0xd1")](za("0xa7"))+":"+t[za("0xd1")]("id");return t[za("0xd1")]("marker-count")&&(n+=":"+t[za("0xd1")](za("0x7f"))),e[za("0xb0")]("$marker",{"data-name":n})}}),t[za("0x6b")][za("0x1b")](za("0x79")).dataToMarker({view:"suggestion"}),t.conversion.for(za("0xe2")).add((t=>{t.on(za("0xe8"),n(),{priority:za("0x1c")})})),t[za("0x6b")][za("0x1b")](za("0xe2"))[za("0xea")]((t=>{t.on(za("0x61"),((t,e,n)=>{const o=n.mapper[za("0x82")](e[za("0x11a")]);if(o)for(const t of o)t[za("0xbb")](za("0x4d"))||(n[za("0x12c")][za("0xd2")]([za("0x121"),za("0x76"),za("0x65")],t),n[za("0x12c")][za("0x91")](za("0x71"),t),n[za("0x70")].unbindElementFromMarkerName(t,e[za("0x11a")]))}),{priority:"high"})})),t[za("0xc1")][za("0x7e")][za("0x8d")]((e=>{let n=!1;const o=Array[za("0x20")](t[za("0xc1")][za("0x7e")][za("0xf4")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x10c")](x);if(za("0x10b")!==o)continue;const u=this._suggestions[za("0x6e")](l);if(null!=a.newRange)if(za("0x3d")==c&&(n=n||Xa(a[za("0xa2")],x,e,t[za("0xc1")][za("0x115")])),a[za("0xa2")][za("0xeb")]||za("0x119")==a.newRange[za("0xfd")][za("0xa1")]||za("0x11f")==c&&!Ja(a[za("0xa2")])||za("0x34")==c&&(qa(i=a[za("0xa2")])||(r=i)[za("0x8c")].parent==r[za("0x11e")].nodeBefore&&r[za("0x8c")][za("0xd0")]))e[za("0x99")](x),n=!0;else{if(!u||!u[za("0x6d")])continue;s[za("0xea")](u)}}var r,i;return s[za("0x31")]>0&&(n=!!this[za("0x101")](s)||n),n})),t[za("0xc1")][za("0x7e")][za("0x8d")]((e=>{let n=!1;for(const o of t[za("0xc1")][za("0x7e")][za("0xf4")][za("0x4e")]()){if("insert"!=o[za("0x41")])continue;const s=o.position[za("0xe4")](o[za("0xe9")]);if(s[za("0xd0")])for(const r of this._suggestions[za("0x12")]()){if(r[za("0xd5")]||!r[za("0x6d")])continue;if("formatBlock"!=r.type)continue;const i=r[za("0x44")]();if(i[za("0x8c")][za("0xfa")]!=i[za("0x11e")][za("0xfa")]&&i[za("0x11e")].isEqual(o[za("0x136")])){const o=t.model[za("0x35")](i[za("0x8c")],s);e[za("0x30")](r[za("0x46")](),{range:o}),n=!0}}}return n})),t.model.markers.on(za("0xf"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x53")]),n=this[za("0x117")][za("0x6e")](t);n&&n[za("0xc7")](e[za("0x53")])}})),t[za("0xc1")][za("0x7e")].on(za("0x94"),(()=>{const e=Array.from(t[za("0xc1")][za("0x7e")].differ[za("0x5d")]())[za("0x6f")]((t=>za("0x10b")===this[za("0x10c")](t[za("0x53")])[za("0x5c")]));if(0===e[za("0xe9")])return;e[za("0x1f")](((t,e)=>{const n=t[za("0x6")][za("0xab")],o=e[za("0x6")][za("0xab")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x2b")](o[za("0x8c")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x10c")](t);if(null===s.oldRange){const e=this[za("0x9b")](t);o[za("0xea")](e)}else{const t=this._suggestions.get(e);null!==s[za("0xa2")]||t[za("0x6d")]?(n[za("0xea")](t[za("0x7")]),o[za("0xea")](t)):this._removeSuggestion(t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x137")](za("0x130"),t)})),t[za("0xc1")].on(za("0x28"),((e,n)=>{const o=n[0];if(!this[za("0x117")][za("0x31")])return;if(!o[za("0x69")])return;if(o.batch.isUndo||!o[za("0xdf")][za("0x50")])return;let s,r;switch(o.type){case za("0x22"):s=t[za("0xc1")][za("0xed")](o[za("0x136")]),r=s[za("0xe4")](o[za("0x123")]);break;case za("0xde"):s=t[za("0xc1")][za("0xed")](o[za("0x106")]),r=t.model.createPositionAt(o.moveTargetPosition);break;case"move":s=t[za("0xc1")][za("0xed")](o[za("0x128")]),r=s[za("0xe4")](o.howMany);break;default:return}const i=t[za("0xc1")][za("0x35")](s,r);t[za("0xc1")][za("0xd8")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x3e")](i)){if(t[za("0xd5")])continue;if(za("0x3d")==t[za("0x41")])continue;const n=t[za("0x6")]&&t[za("0x6")][za("0x13d")];(za("0x11f")!=t[za("0x41")]||za("0xde")==o[za("0x41")]&&!n)&&(e.containsRangeInObject||za("0x57")==t[za("0x41")]&&e[za("0x37")]||t[za("0x44")]()[za("0x5a")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xda")}),t[za("0xc1")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0xa8")])return;if(!this[za("0xa4")][za("0x19")])return;if(o.isCollapsed)return;const r=t[za("0xc1")][za("0x115")],{start:i,end:x}=o[za("0x44")](),a=i.nodeAfter&&r[za("0x126")](i.nodeAfter)?null:r[za("0x114")](i,za("0x4f")),c=x[za("0x116")]&&r[za("0x126")](x[za("0x116")])?null:r[za("0x114")](x,za("0xd3")),l=t[za("0xc1")].createRange(a?a.start:i,c?c[za("0x11e")]:x);t[za("0xc1")].change((e=>{this.markDeletion(l);const n=t[za("0xc1")].schema[za("0x114")](l[za("0x8c")]);o.is(za("0x45"))?e.setSelection(n):o.setTo(n)})),e[za("0xdb")]()}),{priority:e.priorities[za("0x7c")]+10}),t[za("0xc1")].on(za("0x73"),((e,n)=>{const o=n[n[za("0xe9")]-1];o&&o[za("0x8a")]||this[za("0xa8")]||this.trackChangesCommand[za("0x19")]&&(t[za("0xc1")].change((()=>{let o=t[za("0xc1")][za("0x73")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x7b")]=o[za("0xe")]();const s=o[za("0x11e")][za("0x116")],r=t.model[za("0x115")];s&&r[za("0xdd")](s)&&!r.isObject(s)&&(o=t[za("0xc1")][za("0x35")](o[za("0x8c")],t.model.createPositionAt(s,za("0x11e")))),this[za("0xbd")](o)})),e[za("0xdb")]())}),{priority:za("0x1c")}),this[za("0x33")].commands[za("0xea")]("trackChanges",this.trackChangesCommand),this[za("0xfe")](za("0x118"));const o=new p(t,this[za("0x117")]);t[za("0x68")][za("0xea")](za("0x81"),o),this[za("0xfe")](za("0x81"));const s=new C(t,this[za("0x117")]);t.commands.add("discardSuggestion",s),this[za("0xfe")]("discardSuggestion"),t.commands.add(za("0x3c"),new F(t,o,this[za("0x117")])),this.enableCommand(za("0x3c")),t.commands[za("0xea")]("discardAllSuggestions",new F(t,s,this[za("0x117")])),this[za("0xfe")]("discardAllSuggestions"),t[za("0x68")].add(za("0x29"),new U(t,o,this[za("0x117")])),this.enableCommand(za("0x29")),t[za("0x68")][za("0xea")](za("0x125"),new U(t,s,this[za("0x117")])),this[za("0xfe")](za("0x125"));const r=t[za("0x12a")][za("0x6e")](za("0x58"));this[za("0xf9")](r,za("0xcc"),((t,{threadId:e})=>{const n=this[za("0x117")][za("0x6e")](e);n&&n.commentThread&&1===n[za("0x2d")][za("0xe9")]&&this[za("0x9a")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,za("0xd6"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6e")](e);n&&n[za("0x2d")]&&!n.commentThread.length&&this[za("0x9a")](e,{hasComments:!1})}),{priority:za("0xf6")})}set[za("0xf5")](t){if(this[za("0x43")])throw new e.CKEditorError(za("0xef"),this);this[za("0x43")]=t}get[za("0xf5")](){return this[za("0x43")]}[za("0x75")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x117")].values())t&&!e[za("0x6d")]||n[za("0x83")](e);return e?n[za("0xff")]((t=>t.toJSON())):n}[za("0xa9")](t){const n=this._suggestions[za("0x6e")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xe0")](t){return this._suggestions[za("0xee")](t)}[za("0x9d")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x41")][za("0xde")](":"),i=this[za("0x117")][za("0x6e")](n)||this[za("0x77")](s,r,n,e,o);if(this[za("0x6c")](i),this[za("0x24")](i,s,r||null,e),i.createdAt=t.createdAt,o&&o[za("0xc4")]){const t=o[za("0xc4")],e=this[za("0x105")](t[za("0xe1")]);i[za("0x13f")]=t.createdAt,i[za("0x4a")]=e,i[za("0x87")]=!0}else i[za("0x13f")]=t[za("0xa0")];switch(t[za("0x6")]&&(i[za("0x6")]=t.data),t[za("0x133")]&&(i.attributes=t[za("0x133")]),this[za("0x43")]&&this[za("0x43")][za("0x40")]||(i[za("0xf0")]=!0),this[za("0x17")][za("0x6e")](i)){case za("0x21"):this[za("0x17")].set(i,za("0x1a"));break;case za("0x132"):i.isInContent?(this._suggestionState[za("0x5")](i,za("0x10e")),this.fire(za("0x8e"),i)):this[za("0x17")][za("0x5")](i,"removed")}return i}acceptSuggestion(t){this[za("0x8a")]((()=>{this[za("0x33")][za("0xc1")][za("0xd8")]((()=>{for(const e of t[za("0x8")]())e[za("0x78")]()}))}))}[za("0x134")](t){this.forceDefaultExecution((()=>{this[za("0x33")][za("0xc1")][za("0xd8")]((()=>{for(const e of t[za("0x8")]())e.discard()}))}))}[za("0xfe")](t,n){const o=this.editor[za("0x68")][za("0x6e")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x14")][za("0xea")](o),n&&o.on(za("0x27"),((t,e)=>{this.trackChangesCommand[za("0x19")]&&(this[za("0xa8")]||e[za("0xe9")]>0&&e[e[za("0xe9")]-1]&&e[e[za("0xe9")]-1][za("0x8a")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0xdb")]()))}),{priority:za("0x1c")})}[za("0x8a")](t){let n,o;const s=this[za("0xa8")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xa8")]=!1),o&&e.CKEditorError[za("0x10a")](o,this),n}[za("0xbd")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x33")][za("0x12a")][za("0x6e")]("Users").me;for(const{suggestion:e,meta:o}of this[za("0x3e")](t,za("0x57")))if(o[za("0x37")]){if(!o[za("0xc8")]){if(!this[za("0xe3")]&&o[za("0x131")])continue;return e}if(n==e.subType){const n=e[za("0x44")]();return n[za("0x8c")][za("0x11c")](t.end)?this[za("0x4b")](e,this[za("0x60")][za("0x35")](t.start,n[za("0x11e")])):this[za("0x4b")](e,this[za("0x60")][za("0x35")](n[za("0x8c")],t[za("0x11e")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x36")+n:za("0x57"),a=this[za("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=za("0x25"),o={}){const s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me,r=this[za("0x3b")][za("0x6a")](za("0x57"),n,"join");for(const e of this[za("0x75")]())if(e[za("0x4a")].id==s.id&&za("0x57")==e[za("0x41")]&&e[za("0x3f")]==n&&(r(e[za("0x80")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x23")](n);return e}if(this[za("0xe3")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x3e")](e,za("0x57"))){if(!o[za("0x37")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x5a")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x36")+n,c=this[za("0x51")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0xbf")]());return c}[za("0x108")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xeb")])return null;if(za("0x9")===this[za("0xba")]){const e=this[za("0x3b")].getSuggestionCallback(za("0x3d"),o,za("0x78"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc")).me,i=[];if("always"!==this[za("0xba")])for(const{suggestion:e,meta:n}of this[za("0x3e")](t,"insertion"))n[za("0x37")]&&!n[za("0x9f")]&&i[za("0x83")](...e[za("0x80")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x11d")](o);e&&n[za("0x83")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xe9")];){const o=n[e][za("0x122")](t);n[za("0x97")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0xe9")]&&this._model[za("0xd8")]((()=>{for(const t of x){const e=this[za("0x3b")].getSuggestionCallback(za("0x3d"),o,za("0x78"));this[za("0x8a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x11e")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[za("0x37")])continue;if(e.subType!=o)continue;const s=e.getFirstRange();if(s[za("0x5a")](t,!0))return null;x=x[za("0x2b")](s.start)?x:s[za("0x8c")],a=a[za("0x120")](s.end)?a:s[za("0x11e")],i?s[za("0x8c")][za("0x2b")](i.getFirstRange()[za("0x8c")])?(i[za("0xb6")](),i=e):e[za("0xb6")]():i=e}const c=this[za("0x60")].createRange(x,a);if(i)this[za("0x4b")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x62")]("formatInline:"+o,t,i,c)}}return null}[za("0x8f")](t,n,o=[],s=null,r={}){n[za("0x4c")]||(n[za("0x4c")]=n[za("0x13e")]),n[za("0x13d")]=t.is(za("0x104")),s=s||$a(n);const i=o[za("0xff")]((t=>Qa(t,this[za("0x60")]))),x=t.is("range")?t:Qa(t,this._model);if(za("0x9")===this._trackFormatChanges){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0x78"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[za("0x83")](x);let a=!0;for(const t of i)if(!this[za("0x2")](t)){a=!1;break}if(a&&"always"!==this[za("0xba")]){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0x78"));return this[za("0x8a")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0x11e")];for(const{suggestion:t,meta:e}of this[za("0x3e")](x,za("0x11f"))){if(!e.isOwn||e[za("0xc8")]||e[za("0x131")]||e[za("0x9f")])continue;if(t[za("0x6")].formatGroupId!=n[za("0x4c")])continue;const o=t[za("0x44")]();if(t[za("0x3f")]==s){if(o[za("0x5a")](x,!0))return null;l=l[za("0x2b")](o[za("0x8c")])?l:o.start,u=u[za("0x120")](o[za("0x11e")])?u:o.end,c?o[za("0x8c")][za("0x2b")](c[za("0x44")]()[za("0x8c")])?(c[za("0xb6")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x11d")](o);this[za("0x100")](t,e)}}const d=this.editor[za("0x12a")][za("0x6e")](za("0xdc")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x4b")](c,this._model[za("0x35")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x62")](za("0x0")+s,g,m,this[za("0x60")][za("0x35")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x4c")]||(n.formatGroupId=n[za("0x13e")]);const i=t[0];n.multipleBlocks=i.is(za("0x104")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x60")]))),a=i.is("range")?t:t.map((t=>Qa(t,this[za("0x60")])));if(za("0x9")===this[za("0xba")]){const t=this[za("0x3b")].getSuggestionCallback(za("0x11f"),s,za("0x78"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x2")](t)){c=!1;break}if(c&&za("0xcb")!==this[za("0xba")]){const t=this[za("0x3b")][za("0x6a")](za("0x11f"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me;for(const t of this.getSuggestions()){if(t[za("0x4a")].id!=l.id)continue;if(za("0x11f")!=t[za("0x41")]||t[za("0x6")][za("0x4c")]!=n[za("0x4c")])continue;const e=t[za("0x3f")]==s;for(let n=0;n<a[za("0xe9")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0xf8")]();if(o[za("0x11c")](r)){e?(a[za("0x97")](n,1),n--):t[za("0x99")](s[za("0x53")]);break}}}}if(0==a.length)return null;const u=this[za("0x3b")][za("0x6a")](za("0x11f"),s,za("0xd4"));for(const t of this[za("0x75")]())if(t[za("0x4a")].id==l.id&&za("0x11f")==t[za("0x41")]&&t[za("0x6")][za("0x4c")]==n[za("0x4c")]&&t[za("0x3f")]==s&&(u(t[za("0x80")](),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x0")+s,f=this[za("0x51")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x62")](m,d,g,t,Zo[za("0xbf")]());return f}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc")).me,r=new i.LiveRange(t[za("0x8c")],t[za("0x11e")]);for(const{suggestion:t,meta:e}of this[za("0x3e")](r,za("0x57")))if(e[za("0x37")]&&!e.isNextTo)if(t.isMultiRange){const e=t[za("0x80")]().filter((t=>za("0x119")!=t[za("0xfd")][za("0xa1")]));if(e.every((t=>r[za("0x5a")](t,!0)))&&t.discard(),e[za("0xad")]((t=>t[za("0x5a")](r,!0)))){const t=this[za("0x3b")][za("0x6a")](za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0x44")]());null!==e&&t[za("0x64")]([e],null,o)}if(r[za("0xcd")](),r[za("0xeb")]||"$graveyard"==r[za("0xfd")][za("0xa1")])return null;let x=null,a=r.start,c=r[za("0x11e")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[za("0x37")])if(t.isMultiRange&&this[za("0xe3")]){let e=!0;for(const n of t[za("0x80")]()){if(n[za("0x5a")](r,!0))return t;r[za("0x5a")](n)||(e=!1)}e&&t[za("0xa6")]()}else{const n=t[za("0x44")]();if(n[za("0x5a")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x131")])continue;return t}a=a.isBefore(n[za("0x8c")])?a:n[za("0x8c")],c=c[za("0x120")](n.end)?c:n.end,x?n[za("0x8c")][za("0x2b")](x[za("0x44")]()[za("0x8c")])?(x.removeMarkers(),x=t):t[za("0xb6")]():x=t}if(x)return this[za("0x4b")](x,this[za("0x60")][za("0x35")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x60")][za("0x35")](a,c),i=s.id,x=n?za("0x10d")+n:za("0x34"),l=this[za("0x51")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x62")](x,t,i,r),l}}[za("0x1e")](t,n=za("0x25"),o={}){const s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me,r=t[za("0xff")]((t=>new i.LiveRange(t[za("0x8c")],t[za("0x11e")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x3e")](t,za("0x57")))n.isOwn&&!n.isNextTo&&x[za("0xea")](e);for(const e of x)if(e[za("0xd5")]){const s=e[za("0x80")]();if((!e[za("0x133")]||!e[za("0x133")][za("0x63")])&&s.every((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0xa6")](),r.every((t=>s.some((e=>e[za("0x5a")](t,!0)))))){const e=this[za("0x3b")].getSuggestionCallback(za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0xad")]((e=>e[za("0x5a")](t,!0)))&&e[za("0xa6")](),r[za("0x129")]((e=>t[za("0x5a")](e,!0)))){const t=this[za("0x3b")].getSuggestionCallback(za("0x34"),n,za("0x78"));return this[za("0x8a")]((()=>t(r,null,o))),null}}const a=this[za("0x3b")][za("0x6a")](za("0x34"),n,za("0xd4"));let c=null;for(const t of this[za("0x75")]())if(t[za("0x4a")].id==s.id&&t[za("0x6d")]&&za("0x34")==t[za("0x41")]&&t[za("0x3f")]==n&&(a(t[za("0x80")](),r)||a(r,t[za("0x80")]())))if(c){if(t[za("0x2d")]&&t[za("0x2d")][za("0xe9")])continue;for(const e of t[za("0x80")]())c[za("0x8b")](e)||c.addRange(e);t[za("0xb6")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0x23")](e)}if(c)return c;x[za("0x111")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n[za("0x37")]&&x[za("0xea")](e);for(const t of x){const e=t[za("0x80")]();if((!o||!o[za("0x63")])&&r[za("0x129")]((t=>e[za("0xad")]((e=>e[za("0x5a")](t,!0))))))return t;(!t[za("0x133")]||!t[za("0x133")].skipNestingCheck)&&e[za("0x129")]((t=>r[za("0xad")]((e=>e[za("0x5a")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=za("0x10d")+n,g=this[za("0x51")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[za("0xeb")]||"$graveyard"==t.root[za("0xa1")]||this[za("0x62")](d,l,u,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[za("0x46")]();this._model[za("0xd8")]((t=>{t[za("0x30")](n,{range:e})}))}[za("0x6c")](t){const e=t.id,n=this[za("0x33")][za("0x95")][za("0x6e")](za("0xa3"));this[za("0x1")][za("0x88")](e)||this[za("0x1")][za("0x26")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1")][za("0x16")](e);o[za("0x10f")](za("0xd7")),o[za("0xd7")]=!1,t[za("0x2d")]=o}[za("0x24")](t,n,o,s){if(t.type!=n||t[za("0x3f")]!=o||t[za("0x13a")].id!=s)throw this[za("0x33")].enableReadOnlyMode(za("0x124")),new e.CKEditorError(za("0x124"),this)}[za("0x100")](t,n){const o=t[za("0x44")]();if(n[za("0x11c")](o))t[za("0xb6")]();else if(o.containsRange(n)){const s=this[za("0x60")].createPositionAt(n[za("0x8c")][za("0x116")],za("0x11e"));this[za("0x4b")](t,this._model.createRange(o.start,s));const r=(0,e.uid)(),i=t[za("0x13a")].id,x=t[za("0x41")]+":"+t[za("0x3f")];this[za("0x51")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x6")],attributes:t[za("0x133")]});const a=this[za("0x60")][za("0xed")](n[za("0x11e")][za("0xfa")],za("0xbc")),c=this[za("0x60")][za("0x35")](a,o[za("0x11e")]);this[za("0x62")](x,r,i,c)}else if(o[za("0x1d")](n.start)){const e=this[za("0x60")].createPositionAt(n[za("0x8c")][za("0x116")],za("0x11e"));this._setSuggestionRange(t,this[za("0x60")].createRange(o[za("0x8c")],e))}else{const e=this[za("0x60")][za("0xed")](n.end[za("0xfa")],za("0xbc"));this[za("0x4b")](t,this[za("0x60")][za("0x35")](e,o[za("0x11e")]))}}[za("0x2")](t){for(const{suggestion:e,meta:n}of this[za("0x3e")](t,"insertion")){if(!n[za("0x37")])continue;const o=e[za("0x80")]();for(const e of o)if(!t[za("0x122")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xdc"))[za("0x4")](t);if(!n)throw new e.CKEditorError(za("0xb2"),this);return n}[za("0x105")](t){const e=this.editor[za("0x12a")].get(za("0xdc")),n=(0,r.hashObject)(za("0x39")+t);return e.getUser(n)||e.addUser({id:n,name:t})}[za("0x77")](t,e,n,o,s){const r=this[za("0xac")](o),i=this[za("0x3b")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x9a")](n,{attributes:t})));return this.listenTo(i,za("0x78"),(()=>{this._updateSuggestionData(n,{state:za("0xb9")})}),{priority:za("0x1c")}),this[za("0xf9")](i,za("0xa6"),(()=>{this[za("0x9a")](n,{state:za("0x2a")})}),{priority:"high"}),this._suggestions[za("0x5")](n,i),this[za("0x17")][za("0x5")](i,za("0x21")),i}[za("0x10c")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0xe9")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0xe9")]<5?e[3]:e[4],markerCount:6==e[za("0xe9")]?e[5]:null}}[za("0x113")](t,n,o){const s=t.getFirstRange(),r=s.start,i=s.end;this._setSuggestionRange(t,this._model[za("0x35")](r,n));const x=(0,e.uid)(),a=t[za("0x13a")].id,c=t.type+(t[za("0x3f")]?":"+t[za("0x3f")]:"");this[za("0x51")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x133")],data:t.data}),za("0x11f")==t.type&&(o=this._model.createPositionBefore(o[za("0xfa")])),this[za("0x62")](c,x,a,this[za("0x60")].createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x60")][za("0x115")],s=this[za("0x33")].plugins[za("0x6e")](za("0xdc")).me;for(const r of this[za("0x75")]())if(r[za("0x6d")]&&(!e||r[za("0x41")]==e))for(const e of r.getRanges()){const i=t[za("0x8c")][za("0x11c")](e[za("0x11e")])||t[za("0x11e")][za("0x11c")](e.start);if(i||t[za("0x11d")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x8c")],t),a=e[za("0x5a")](t)&&Ka(o,t[za("0x8c")],e);n[za("0x83")]({suggestion:r,meta:{isOwn:s==r[za("0x4a")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x62")](t,e,n,o,s){this[za("0x60")][za("0xd8")]((r=>{let i=za("0xb5")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x109")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xfc")](t){const e=t[za("0xce")],n=t.next;t[za("0xce")]=null,null!=e&&(e[za("0xc3")]=null),t.next=null,null!=n&&(n[za("0xce")]=null),za("0x10e")==this._suggestionState[za("0x6e")](t)&&(this[za("0x17")][za("0x5")](t,za("0xc9")),this.fire(za("0xb"),t,e,n))}[za("0x51")](t){const n=t.id,o=this[za("0x9d")](t);if(this[za("0x43")]&&this[za("0x43")][za("0x40")]){const s=this[za("0x33")].plugins[za("0x6e")](za("0xc2")),r=o[za("0x12e")],i=o.subType?o[za("0x41")]+":"+o.subType:o[za("0x41")],x=this[za("0x33")][za("0xe6")],a=s.add(Yo(x,za("0x15"))),c={id:n,type:i,hasComments:r,data:t[za("0x6")]||null,originalSuggestionId:t[za("0x48")]||null,attributes:o.attributes};this._adapter.addSuggestion(c)[za("0x2e")]((t=>{o[za("0xf0")]=!0,s[za("0x12b")](a),t&&t[za("0xa0")]&&(this[za("0x117")].get(n)[za("0xa0")]=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(za("0x127")),this[za("0x33")][za("0xc1")][za("0x5b")]({isUndoable:!1},(()=>{o[za("0xa6")]()})),o[za("0x66")](),this[za("0x117")].delete(o.id),this[za("0x17")][za("0x135")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x33")][za("0x12a")][za("0x6e")](za("0xc2")),o=this[za("0xa9")](t);if(this[za("0x43")]&&this[za("0x43")][za("0x5e")])if(o[za("0xf0")]){const o=n[za("0xea")](Yo(this.editor.locale,za("0x15")));this[za("0x43")][za("0x5e")](t,e)[za("0x2e")]((()=>{n[za("0x12b")](o)}))}else o.on(za("0x12f"),(()=>{this[za("0x9a")](t,e)}))}[za("0x112")](t){if(!this._adapter||!this[za("0x43")][za("0xa9")])throw new e.CKEditorError(za("0xb3"),this);return this[za("0x43")][za("0xa9")](t)}[za("0x9b")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x10c")](t),r=this[za("0x117")][za("0x6e")](e)||this[za("0x77")](n,o,e,s,{});switch(this[za("0x24")](r,n,o,s),this[za("0x17")].get(r)){case za("0x21"):this[za("0x112")](e)[za("0x2e")]((t=>{let n=Promise[za("0x96")]();t[za("0x12e")]&&(n=this[za("0x1")][za("0x139")]({channelId:this[za("0x33")].config.get(za("0xa3")),threadId:e})),n[za("0x2e")]((()=>{this[za("0x9d")](t)[za("0xf0")]=!0}))})),this[za("0x17")][za("0x5")](r,za("0x132"));break;case za("0xc9"):this[za("0x9a")](e,{state:za("0x9e")});case"dataReady":this._suggestionState.set(r,"ready"),this[za("0x137")](za("0x8e"),r);break;case za("0x10e"):this.fire("suggestionChanged",r)}return r[za("0xc7")](t),r}[za("0xf3")](t){const e=Array.from(t)[za("0x6f")]((t=>!t[za("0xd5")])),n=this[za("0x75")]({skipNotAttached:!0})[za("0x6f")]((t=>!t[za("0xd5")])),o=n[za("0x6f")]((e=>!t.has(e))),s=new Map(n[za("0xff")]((t=>[t,this[za("0x3b")][za("0x6a")](t.type,t.subType,za("0x74"))]))),r=new Map(n[za("0xff")]((t=>[t,t[za("0x44")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xe9")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xe9")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n.previous&&(n.previous[za("0xc3")]===n&&(n.previous[za("0xc3")]=null),n[za("0xce")]=null),!i[za("0xee")](n)&&n[za("0xc3")]&&(n[za("0xc3")][za("0xce")]===n&&(n[za("0xc3")][za("0xce")]=null),n[za("0xc3")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xe9")];o++){const n=c(t,e[o]);n&&(n[0][za("0xc3")]=n[1],n[1].previous=n[0],i.add(n[0]),x[za("0xea")](n[1]))}}function c(t,e){if(t[za("0x4a")].id!==e[za("0x4a")].id)return null;const n=s[za("0x6e")](t)(t,e,r[za("0x6e")](t),r[za("0x6e")](e));return n&&s.get(e)(t,e,r[za("0x6e")](t),r[za("0x6e")](e))?n[1][za("0x2d")]&&n[1].commentThread[za("0xe9")]?null:n:null}}[za("0x101")](t){const e=Array[za("0x20")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x6f")]((e=>!t[za("0xee")](e))),s=new Map(e[za("0xff")]((t=>[t,this[za("0x3b")].getSuggestionCallback(t[za("0x41")],t[za("0x3f")],za("0xd4"))]))),r=new Map(n[za("0xff")]((t=>[t,t[za("0x80")]()])));for(let t=0;t<e[za("0xe9")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xe9")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xe9")];i++){const o=n[i];if(o.type!==e[za("0x41")]||o[za("0x4a")].id!==e[za("0x4a")].id||o[za("0x3f")]!==e[za("0x3f")])continue;const x=s.get(e),a=r[za("0x6e")](e),c=r[za("0x6e")](o),l=e[za("0x2d")]&&e[za("0x2d")].length,u=o[za("0x2d")]&&o[za("0x2d")].length;if(!l&&x(c,a))return t[za("0x59")](o,e),r[za("0x135")](e),!0;if(!u&&x(a,c))return t[za("0x59")](e,o),r[za("0x135")](o),!0}return!1}}[za("0x59")](t,e){if(t[za("0xd5")])for(const n of e.getRanges())t[za("0x23")](n);else{const n=e[za("0x44")]()[za("0x11e")];this[za("0x4b")](t,this[za("0x60")].createRange(t[za("0x44")]().start,n))}e.removeMarkers()}}class Va{constructor(t){this._editor=t,this[za("0x60")]=t[za("0xc1")],this[za("0xbe")]=new Map,this._defaultCallbacks=new Map,this[za("0xf7")]()}[za("0xb7")](t,e,n,o,s,r){return new Zo(this[za("0x60")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x6a")](t,e,za("0x78"))(...n),onDiscard:(...n)=>this[za("0x6a")](t,e,za("0xa6"))(...n)})}[za("0xcf")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xbe")][za("0x5")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0xbe")].get(o)||this[za("0xfb")][za("0x6e")](t+":"+n)}[za("0xf7")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0x8c")].isBefore(e.start)?1:-1)),this[za("0x60")].change((e=>{for(const n of t){let t;t=n[za("0x11e")][za("0xd0")]&&n[za("0x11e")][za("0xfa")]==n[za("0x8c")].nodeAfter?e.createSelection(n[za("0x8c")][za("0xf2")],"on"):e[za("0x13b")](n),this[za("0x60")][za("0xc6")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xff")]((t=>(qa(t)&&(t=this._model[za("0x35")](t[za("0x11e")])),t)))[za("0x6f")]((t=>"$graveyard"!==t[za("0xfd")][za("0xa1")]));if(r.length<1)return;const x=Array[za("0x20")](this._model.document[za("0x7a")].getRanges())[za("0xff")]((t=>i.LiveRange[za("0x52")](t)));n[za("0x90")](r);for(const t of this[za("0x13c")][za("0x68")][za("0x68")]())t[za("0x102")]();s[za("0x83")]({forceDefaultExecution:!0}),this[za("0x13c")].execute(o,...s);const a=x[za("0x6f")]((t=>za("0x119")!=t[za("0xfd")][za("0xa1")]));a[za("0xe9")]>0&&n[za("0x90")](a);for(const t of x)t[za("0xcd")]()}))},o=(t,e)=>1==t[za("0xe9")]&&1==e[za("0xe9")]&&t[0][za("0x11e")][za("0x11c")](e[0][za("0x8c")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x60")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[za("0x5")]("insertion:accept",t),this[za("0xfb")][za("0x5")](za("0x11b"),e),this._defaultCallbacks[za("0x5")]("insertion:join",o),this[za("0xfb")][za("0x5")](za("0xb8"),s),this._defaultCallbacks.set(za("0xa"),e),this[za("0xfb")].set("deletion:discard",t),this[za("0xfb")][za("0x5")](za("0xd9"),o),this[za("0xfb")][za("0x5")](za("0x55"),s),this._defaultCallbacks[za("0x5")](za("0x84"),n),this[za("0xfb")][za("0x5")](za("0xc0"),t),this[za("0xfb")].set(za("0xae"),o),this[za("0xfb")].set(za("0xa5"),t),this[za("0xfb")][za("0x5")](za("0x3a"),n),this[za("0xfb")][za("0x5")](za("0x107"),t),this[za("0xfb")][za("0x5")](za("0x49"),o),this[za("0xfb")][za("0x5")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0xfa")][za("0xaa")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xfd")]==o)return!1;if(!n[za("0x110")](o))return!1;if(t[za("0xf1")](o)||t[za("0x126")](o))return!0}return!1}function qa(t){return t[za("0x11e")][za("0xfa")]==t.start.nodeAfter&&t[za("0x11e")][za("0x92")]}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0x7d"))&&!o[za("0xf1")](t.item),r=t.start[za("0xec")](s),i=t.end[za("0xec")](s,{direction:"backward"});return!(t[za("0x8c")][za("0x11c")](r)&&t[za("0x11e")][za("0x11c")](i)||(r[za("0x2b")](i)?n.updateMarker(e,{range:n.createRange(r,i)}):n[za("0x99")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x8c")][za("0xf2")];return e&&e.is(za("0xe7"))}function Qa(t,e){const n=e[za("0x115")][za("0xf1")](t)||e[za("0x115")][za("0x5f")](t);return e.createRange(e[za("0xed")](t,za("0x9c")),n?e[za("0x38")](t):e[za("0xed")](t,"end"))}function Za(t,e,n,o,s){if(n[za("0x11e")][za("0x11c")](o[za("0x8c")]))return!0;if(t.type!=e.type)return!1;if(!n[za("0x11e")][za("0x11")](o[za("0x8c")]))return!1;const r=s[za("0x35")](n.end,o[za("0x8c")]).getWalker();for(const t of r)if(["elementStart",za("0x93")][za("0xb4")](t[za("0x41")])&&s[za("0x115")][za("0x126")](t[za("0x10")]))return!1;return!0}const Ya=["_acceptCommand","isDirty","listenTo","execute","view","PendingActions","acceptSuggestion","remove","_setPendingAction","add","_pendingAction","canAccept","plugins","canDiscard","destroy","commands","_editor","model","isEnabled","bind","unbind","discardSuggestion","getRanges","_removePendingAction","_discardCommand","stopListening","get","PENDING_ACTION_SUGGESTION","canEditAt","commentThreadController","change:isDirty"];var tc,ec;tc=Ya,ec=330,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1c")]=e,this.view=n,this[nc("0x9")]=o,this[nc("0x1b")]=t,this._acceptCommand=t.commands[nc("0x6")]("acceptSuggestion"),this[nc("0x4")]=t[nc("0x1a")][nc("0x6")](nc("0x1")),this.view[nc("0x1e")](nc("0x1d")).to(this[nc("0xb")],this[nc("0x4")],((t,e)=>t||e)),this[nc("0xf")][nc("0x1e")](nc("0x16")).to(this[nc("0xb")],"isEnabled",(t=>t&&this[nc("0x1b")][nc("0x1c")][nc("0x8")](e[nc("0x2")]()))),this[nc("0xf")][nc("0x1e")](nc("0x18")).to(this[nc("0x4")],nc("0x1d"),(t=>t&&this._editor[nc("0x1c")][nc("0x8")](e[nc("0x2")]()))),this[nc("0x15")]=null,n[nc("0xc")]&&this[nc("0x13")](),this.listenTo(n,nc("0x11"),(()=>this[nc("0x11")]())),this[nc("0xd")](n,nc("0x1"),(()=>this[nc("0x1")]())),this[nc("0xd")](n,nc("0xa"),(()=>{n[nc("0xc")]?this[nc("0x13")]():this[nc("0x3")]()}))}[nc("0x11")](){this[nc("0xb")][nc("0xe")](this[nc("0x1c")].id)}[nc("0x1")](){this[nc("0x4")][nc("0xe")](this.model.id)}[nc("0x19")](){this[nc("0xf")][nc("0x0")]("isEnabled"),this[nc("0xf")][nc("0x0")](nc("0x16")),this[nc("0xf")][nc("0x0")]("canDiscard"),this[nc("0x5")](),this[nc("0x9")].destroy(),this[nc("0x15")]&&this[nc("0x3")]()}[nc("0x13")](){const t=Yo(this[nc("0x1b")].locale,nc("0x7"));this[nc("0x15")]=this[nc("0x1b")][nc("0x17")][nc("0x6")](nc("0x10"))[nc("0x14")](t)}[nc("0x3")](){null!==this._pendingAction&&this[nc("0x1b")][nc("0x17")][nc("0x6")](nc("0x10"))[nc("0x12")](this[nc("0x15")]),this[nc("0x15")]=null}}const sc=["updateComment","isDirty","bind","showInput","element","commentThreadInputView","commentsListView","commentThread","_localUser","_config","authoredAt","disabledSubmit","set","isReadOnly","delegate","value","fire","hasDirtyComment","focus","editorConfig","isActive","length","assign","submit","cancel","locale","destroy","_model","isEnabled","canDiscard","descriptionParts","commentInputView"];var rc,ic;rc=sc,ic=353,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x5")]=null,this[xc("0x4")]=null,this.set(xc("0x13"),!1),this[xc("0xb")](xc("0x9"),e[xc("0x9")]),this.bind(xc("0x9")).to(e),this[xc("0xb")](xc("0x1d"),[]),this[xc("0xb")]("isDirty",!1),this.set(xc("0x1b"),!1),this[xc("0xb")]("canAccept",!1),this[xc("0xb")](xc("0x1c"),!1),this._model=e,this[xc("0x7")]=n,this._config=o,o.disableComments?this[xc("0xb")](xc("0x14"),1):this._createCommentViews()}[xc("0x11")](){this[xc("0x3")].focus()}[xc("0x19")](){this.commentsListView&&this.commentsListView[xc("0x19")](),this[xc("0x4")]&&this[xc("0x4")][xc("0x19")](),super[xc("0x19")]()}_createCommentViews(){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[xc("0x18")],this._model[xc("0x6")],Object[xc("0x15")]({CommentView:this[xc("0x8")].CommentView},this[xc("0x8")])),this.commentsListView[xc("0xd")]("removeComment").to(this),this[xc("0x5")][xc("0xd")](xc("0x1f")).to(this),this[xc("0x5")].bind(xc("0x13")).to(this),this[xc("0xb")](xc("0x14"),this[xc("0x5")][xc("0x14")]+1),this[xc("0x1")](xc("0x14")).to(this.commentsListView,xc("0x14"),(t=>t+1)),this[xc("0x4")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this[xc("0x11")]())),this.bind(xc("0x0")).to(this[xc("0x5")],xc("0x10"),this.commentThreadInputView[xc("0x1e")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x8")],e=new t(this[xc("0x18")],this[xc("0x7")],this._config[xc("0x12")]),n=e.commentInputView;return e[xc("0x1")](xc("0x2")).to(this,"isActive",this[xc("0x1a")][xc("0x6")],xc("0xc"),n,xc("0xe"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x16"),((t,e)=>{this[xc("0xf")]("addComment",e),n.editor.setData("")})),n.on(xc("0x17"),(()=>this[xc("0x11")]())),n[xc("0x1")](xc("0xa")).to(this[xc("0x1a")][xc("0x6")],"isReadOnly"),e}}const cc=["attributes","element","@external","importWord","</span>","ck-suggestion-","change:description","ck-suggestion__user","Discard suggestion","description","ck-suggestion-wrapper--active","render","editorReady","ck-annotation__info-name","check","commentThread","ck-suggestion__info-name","ck-comment__info-time","ck-suggestion--accept","ck-annotation__user","ck-annotation__actions","execute","ck-annotation__main","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_AVATAR","fire","value","map","getUserViewNotificationText","type","acceptButton","push","EXTERNAL_SUGGESTION",'"></span>',"_model","editorDestroyed","acceptSuggestion","ck-annotation","discardButton","formatDateTime","_config",".ck-annotation__content-wrapper","isEnabled","author","commentsListView","color","userView","Accept suggestion","title","ck-suggestion__info","isActive","commentThreadInputView",'<span class="ck-suggestion-type">',"isExternal","div","_createButton","extendTemplate","bind","ck-suggestion","EXTERNAL_IMPORT_WORD_AVATAR","span","ck-annotation__info-time","set","_descriptionElement","ck-suggestion__main","canDiscard","ck-suggestion--disabled-comments","name","authoredAt","split","getTemplate","disableComments","ck-annotation__content-wrapper","setTemplate","descriptionParts","locale","innerHTML","content","source","EXTERNAL_IMPORT_WORD_SUGGESTION","delegate","innerText","getExternalSuggestionNote"];var lc,uc;lc=cc,uc=451,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x53"),""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x53")]:"")),this[dc("0x1b")](dc("0x3e")).to(this,dc("0x2c"),this,dc("0x14"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[dc("0x2f")],e[dc("0xf")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x21")]=null,this.acceptButton=this[dc("0x19")](Yo(e,dc("0x11")),t.icons[dc("0x43")],dc("0x47"),dc("0x6"),"sw"),this[dc("0x0")][dc("0x1b")]("isEnabled").to(this,"canAccept"),this[dc("0x8")]=this._createButton(Yo(e,dc("0x3d")),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[dc("0x8")][dc("0x1b")](dc("0xc")).to(this,dc("0x23")),this[dc("0x10")]=new r.UserView(e,this[dc("0x4")].author,this[dc("0x52")]()),this[dc("0x10")].extendTemplate({attributes:{class:[dc("0x3c"),dc("0x48")]}}),this[dc("0x2b")](this[dc("0x28")]())}[dc("0x28")](){const t=this.bindTemplate,e=[{tag:dc("0x18"),attributes:{class:[dc("0x13"),"ck-annotation__info"]},children:[{tag:dc("0x1e"),children:[{text:this[dc("0x10")][dc("0x25")]}],attributes:{class:[dc("0x45"),dc("0x42")]}},{tag:"time",attributes:{datetime:t.to(dc("0x26")),class:[dc("0x46"),dc("0x1f")]},children:[{text:t.to(dc("0x26"),(t=>this._config[dc("0x9")](t)))}]}]},{tag:dc("0x18"),attributes:{class:["ck-suggestion__actions",dc("0x49")]},children:[this[dc("0x0")],this[dc("0x8")]]},{tag:dc("0x18"),attributes:{class:[dc("0x2a")]}}];this[dc("0x4")][dc("0x17")]&&e[dc("0x1")]({tag:dc("0x18"),attributes:{class:[dc("0x4c")]},children:[{text:this[dc("0x34")]()}]});const n={tag:dc("0x18"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0x14"),dc("0x3f")),t.to("type",(t=>dc("0x3a")+t)),this[dc("0xa")][dc("0x29")]&&dc("0x24")],"data-suggestion-id":this._model.id,"data-thread-id":this[dc("0x4")][dc("0x44")].id,"data-author-id":this._model[dc("0xd")].id,tabindex:-1},children:[{tag:dc("0x18"),attributes:{class:[dc("0x1c"),dc("0x7")]},children:[this.userView,{tag:dc("0x18"),attributes:{class:[dc("0x22"),dc("0x4b")]},children:e}]}]};return this[dc("0xe")]&&this[dc("0x15")]&&(n.children[dc("0x1")](this[dc("0xe")],this.commentThreadInputView),this[dc("0xe")][dc("0x32")](dc("0x41")).to(this),this.commentsListView[dc("0x32")](dc("0x5")).to(this),this[dc("0x15")][dc("0x32")](dc("0x41")).to(this),this[dc("0x15")][dc("0x32")](dc("0x5")).to(this)),n}[dc("0x40")](){super[dc("0x40")](),this[dc("0x21")]=this[dc("0x36")].querySelector(dc("0xb")),this[dc("0x21")][dc("0x2e")]=this[dc("0x3e")],this.on(dc("0x3b"),((t,e,n)=>{this[dc("0x21")][dc("0x2e")]=n}))}[dc("0x19")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2d")]);return i[dc("0x20")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x1a")]({attributes:{class:n}}),i.on(dc("0x4a"),(()=>{this[dc("0x4f")](o,this._model.id)})),i}getExternalSuggestionNote(){return dc("0x38")===this[dc("0x4")][dc("0x35")][dc("0x37")][dc("0x30")]?Yo(this[dc("0x2d")],dc("0x31")):Yo(this[dc("0x2d")],dc("0x2"))}[dc("0x52")](){return this[dc("0x4")][dc("0x17")]?dc("0x38")===this[dc("0x4")][dc("0x35")][dc("0x37")][dc("0x30")]?Yo(this[dc("0x2d")],dc("0x1d"),this[dc("0x4")].creator[dc("0x25")]):Yo(this.locale,dc("0x4e"),this[dc("0x4")].creator.name):null}}function mc(t,e){let n="";return n+=t[dc("0x27")]("*")[dc("0x51")](((t,e)=>e%2!=0?dc("0x16")+fc(t)+dc("0x39"):fc(t))).join(""),e&&(n+=dc("0x4d")+e[dc("0x50")]+'" title="'+e[dc("0x12")]+dc("0x3")),n}function fc(t){const e=document.createElement(dc("0x1e"));return e[dc("0x33")]=t,e[dc("0x2e")]}const hc=["value","getRanges","trackChanges.SuggestionThreadView","descriptionParts","execute","addComment","delete","comments.maxCommentCharsWhenCollapsed","actionView","listenTo","switchbutton","define","EditorAnnotations","length","requires","mainView","commands","source","view","_bindAnnotationToEditors","reduce","_descriptionFactory","CommentsRepository","model","map","set","_refreshActiveMarkers","getMarkers","addSourceCollector","add","head","Accept all suggestions","separator","_handleSuggestionControllerDelayed","_disableComments","acceptButton","TrackChangesUI","suggestion-","comments.editorConfig","commandName","CommentView","isDirty","getByInnerView","focus","editor","values","createCommentThreadController","comments.maxThreadTotalWeight","getFirstRange","discardButton","stopListening","change:previous","_updateController","Accept all selected suggestions","arrowView","remove","isOn","previous","Annotations","_destroyController","innerView","commentThread","Discard all selected suggestions","discardSelectedSuggestions","change:activeAnnotations","getJoined","registerAnnotation","_initializeController","size","push","_viewToController","trackChanges","_createUIButton","clear","plugins","get","button","getSuggestion","suggestionLoaded","buttonView","filter","config","type","activeAnnotations","some","TrackChangesEditing","unbind","createAnnotationView","init","toMany","getMarkerNames","_suggestionToController","suggestionChanged","getAllAdjacentSuggestions","trackChanges.disableComments","hasSuggestion","isInContent","destroy","locale","has","getDescriptions","pluginName","isEnabled","_handleControllerBuffer","editing","bind","_annotationViews"];var pc,bc;pc=hc,bc=198,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x1e")](){return[Wa,r.Users,Ec("0x26"),Ec("0x4a"),"EditorAnnotations"]}static get[Ec("0xa")](){return Ec("0x34")}constructor(t){super(t),this[Ec("0x0")]=new Map,this[Ec("0x56")]=new Map,this[Ec("0xf")]=new Map,this[Ec("0xc")]=new Map;const e=this[Ec("0x3c")].config;e[Ec("0x1b")](Ec("0x12"),gc),e.define(Ec("0x3"),!1),this[Ec("0x32")]=e[Ec("0x5b")](Ec("0x3"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0xc")][Ec("0x54")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ec("0x0")][Ec("0x8")](t);n||e?n&&e&&this[Ec("0x4b")](t):this[Ec("0x53")](t)}this[Ec("0x3c")].plugins[Ec("0x5b")](Ec("0x1c")).refreshSelectedViews(),this[Ec("0x2a")](),this._handleControllerBuffer[Ec("0x59")]()}),10),this[Ec("0xc")].set(t,e)}[Ec("0x68")](){const t=this.editor,e=t[Ec("0x5a")][Ec("0x5b")]("TrackChangesEditing"),n=t[Ec("0x5a")][Ec("0x5b")](Ec("0x4a")),o=t.plugins[Ec("0x5b")](Ec("0x1c")),s=t[Ec("0x5a")][Ec("0x5b")]("CommentsRepository");t.ui.componentFactory[Ec("0x2d")](Ec("0x57"),(t=>this[Ec("0x58")](t))),o[Ec("0x2c")]((()=>{const t=[];for(const[e,n]of Array.from(this[Ec("0x0")])){const o=e[Ec("0x2")](),s=[];for(const t of o){if(!t[Ec("0x5")])continue;if(t.isMultiRange){s.push(...t[Ec("0x11")]());continue}const e=t[Ec("0x40")]();if(s[Ec("0x1d")]>0){const t=s[0][Ec("0x51")](e);if(t){s[0]=t;continue}}s[Ec("0x55")](e)}t[Ec("0x55")]([n[Ec("0x22")],s])}return t})),this[Ec("0x19")](e,Ec("0x5e"),((t,e)=>{this[Ec("0x19")](e,Ec("0x43"),((t,n,o,s)=>{e[Ec("0x5")]&&(null==o?(this[Ec("0x44")](s[Ec("0x2e")]),this[Ec("0x31")](e,!1)):(this._updateController(o.head),this[Ec("0x31")](e,!0)))})),null===e[Ec("0x49")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x44")](e[Ec("0x2e")])})),this[Ec("0x19")](e,"suggestionUnloaded",((t,e,n)=>{this[Ec("0x42")](e,"change:previous"),this[Ec("0xc")].delete(e);const o=n?n[Ec("0x2e")]:e,s=this[Ec("0x0")][Ec("0x5b")](o);null!==n&&this[Ec("0x44")](o),null===n&&s&&this[Ec("0x4b")](e)})),this[Ec("0x19")](e,Ec("0x1"),((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x19")](n,Ec("0x50"),(()=>{this[Ec("0x2a")]()})),this[Ec("0x19")](s,Ec("0x15"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x4")](n))return;const s=e[Ec("0x5d")](n);this[Ec("0x0")][Ec("0x5b")](s)[Ec("0x22")][Ec("0x3b")]()}),{priority:"lowest"})}[Ec("0x2a")](){const t=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")]("Annotations"),e=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")](Ec("0x65")),n=Array.from(t[Ec("0x63")],(t=>t[Ec("0x4c")]))[Ec("0x60")]((t=>this[Ec("0x56")][Ec("0x8")](t))),o=[];for(const t of n){const e=this[Ec("0x56")][Ec("0x5b")](t)[Ec("0x27")][Ec("0x2")]();o[Ec("0x55")](...e[Ec("0x24")](((t,e)=>[...t,...e[Ec("0x6a")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Ec("0x20")].get(Ec("0x57")),r=Yo(t,"Track changes");n[Ec("0x5f")][Ec("0x29")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x5f")][Ec("0xe")](Ec("0x48")).to(o,Ec("0x10")),n.buttonView.on(Ec("0x14"),(()=>{o[Ec("0x14")](),this.editor[Ec("0xd")][Ec("0x22")].focus()}));const i=new e.Collection,x=[{type:Ec("0x1a"),model:{withText:!0,label:r,commandName:Ec("0x57")}},{type:Ec("0x30")},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x2f")),commandName:"acceptAllSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x45")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x5c"),model:{withText:!0,label:Yo(t,Ec("0x4e")),commandName:Ec("0x4f")}}];for(const t of x){let e={type:"separator"};if(t[Ec("0x27")]){const n=new s.Model(t[Ec("0x27")]),o=this[Ec("0x3c")].commands.get(n.commandName);n.bind(Ec("0x48"),Ec("0xb")).to(o,Ec("0x10"),"isEnabled"),e={type:t[Ec("0x62")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x60")]((t=>null!=t[Ec("0x27")]))[Ec("0x28")]((t=>this[Ec("0x3c")][Ec("0x20")].get(t[Ec("0x27")][Ec("0x37")]))),c=n[Ec("0x5f")];return c[Ec("0x18")].unbind(Ec("0xb")),c[Ec("0x46")][Ec("0x66")](Ec("0xb")),c[Ec("0x18")].bind(Ec("0xb")).to(o,Ec("0xb")),c[Ec("0x46")][Ec("0xe")](Ec("0xb"))[Ec("0x69")](a,Ec("0xb"),((...t)=>t[Ec("0x64")]((t=>t)))),n.on(Ec("0x14"),(t=>{this[Ec("0x3c")][Ec("0x14")](t[Ec("0x21")][Ec("0x37")]),this[Ec("0x3c")][Ec("0xd")][Ec("0x22")].focus()})),n}[Ec("0x53")](t){const e=this[Ec("0x3c")],n=e[Ec("0x61")],o=e.plugins[Ec("0x5b")](Ec("0x4a")),s=e.plugins[Ec("0x5b")](Ec("0x26")),i=e.plugins[Ec("0x5b")](Ec("0x1c")),x=e[Ec("0x5a")].get(r.Users).me,a=n[Ec("0x5b")](Ec("0x57")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x5a")].get("CommentsUI");let u,d;this[Ec("0xf")][Ec("0x8")](t.id)?(d=this._annotationViews[Ec("0x5b")](t.id),u=d[Ec("0x1f")]):(u=new a(e[Ec("0x7")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x5b")](Ec("0x36")),maxCommentsWhenCollapsed:n[Ec("0x5b")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x5b")](Ec("0x3f")),maxCommentCharsWhenCollapsed:n[Ec("0x5b")](Ec("0x17")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x5b")](Ec("0x7"))),CommentView:n[Ec("0x5b")]("comments")[Ec("0x38")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x33")].on("execute",(()=>{e[Ec("0xd")][Ec("0x22")].focus()})),u[Ec("0x41")].on(Ec("0x14"),(()=>{e[Ec("0xd")].view[Ec("0x3b")]()})),d=o[Ec("0x67")](this[Ec("0x3c")][Ec("0x7")],u),d[Ec("0xe")](Ec("0x39")).to(u,Ec("0x39")),d[Ec("0xe")](Ec("0x1d")).to(u),d[Ec("0xe")](Ec("0x62")).to(u,Ec("0x62"),(t=>Ec("0x35")+t)),this[Ec("0xf")][Ec("0x29")](t.id,d));const g=s[Ec("0x3e")](t[Ec("0x4d")],u),m=new oc(e,t,u,g),f=t[Ec("0x2")]()[Ec("0x60")]((t=>t[Ec("0x5")]));u[Ec("0x13")]=e[Ec("0x5a")].get("TrackChangesEditing")[Ec("0x25")][Ec("0x9")](f),this[Ec("0x0")][Ec("0x29")](t,m),this[Ec("0x56")][Ec("0x29")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Ec("0x2")]()[Ec("0x60")]((t=>t[Ec("0x5")]));for(const t of o)n[Ec("0x55")](...t[Ec("0x2b")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xd")],n)},type:()=>Ec("0x35")+m[Ec("0x22")][Ec("0x62")]});s[Ec("0x23")](u,h),o[Ec("0x2d")](h),i[Ec("0x52")](h)}_destroyController(t){const e=this[Ec("0x3c")].plugins[Ec("0x5b")]("Annotations"),n=this[Ec("0x0")].get(t),o=n[Ec("0x22")],s=e[Ec("0x3a")](o);s&&e[Ec("0x47")](s),this[Ec("0x0")].delete(t),this[Ec("0x56")][Ec("0x16")](o),n[Ec("0x6")]()}[Ec("0x44")](t){if(!t[Ec("0x5")]||!this[Ec("0x0")][Ec("0x8")](t))return;const e=this[Ec("0x3c")][Ec("0x5a")][Ec("0x5b")](Ec("0x65")),n=this[Ec("0x0")].get(t),o=t.getAllAdjacentSuggestions();n[Ec("0x22")][Ec("0x13")]=e[Ec("0x25")][Ec("0x9")](o)}[Ec("0x6")](){for(const t of this._suggestionToController.keys())this[Ec("0x4b")](t);for(const t of this[Ec("0xf")][Ec("0x3d")]())t[Ec("0x1f")][Ec("0x6")]();super.destroy()}}var Tc,Cc,yc=["pluginName","getSuggestion","addSuggestion","editor","adapter","TrackChanges","get","plugins","Comments","addSuggestionData","requires"];Tc=yc,Cc=379,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x5")](){return[Wa,_c,kc("0x3")]}static get[kc("0x6")](){return kc("0x0")}set[kc("0xa")](t){this[kc("0x9")].plugins[kc("0x1")](Wa)[kc("0xa")]=t}get[kc("0xa")](){return this[kc("0x9")][kc("0x2")].get(Wa).adapter}[kc("0x8")](t){return this[kc("0x9")][kc("0x2")][kc("0x1")](Wa)[kc("0x4")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x2")].get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x7")](t){return this[kc("0x9")][kc("0x2")][kc("0x1")](Wa).getSuggestion(t)}}const vc=["getRootsAttributes","config","map","TrackChangesDataGetter","Users","init","destroy","CommentsRepository","getRootNames","constructor","document","get","discardAllSuggestions","addUser","function","data","useAnonymousUser","requires","model","getDataWithDiscardedSuggestions","editor","reduce","div","acceptAllSuggestions","Pagination","trackChangesData","getUser","name","addSuggestionData","createDocumentFragment","_adapter","TrackChangesEditing","pluginName","getFullData","define","push","set","TrackChangesData","plugins","rootsAttributes","result","editorCreator","trackChangesData.editorCreator","track-changes-data-invalid-editor-creator","getSuggestions"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1c")];class Nc extends t.Plugin{static get[Ic("0x15")](){return[Wa]}static get pluginName(){return Ic("0x29")}[Ic("0x9")](){const t=this[Ic("0x18")];if(t[Ic("0x5")][Ic("0x26")](Ic("0x1"),(e=>{const n=t.model[Ic("0xe")][Ic("0xc")]()[Ic("0x19")](((t,e)=>(t[e]="",t)),{});return t[Ic("0xd")].create(n,e)})),Ic("0x12")!=typeof t[Ic("0x5")][Ic("0xf")](Ic("0x1d")).editorCreator)throw new e.CKEditorError(Ic("0x2"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x18")],!0,t)}[Ic("0x17")](t){return Oc(this[Ic("0x18")],!1,t)}}class wc extends t.Plugin{static get[Ic("0x24")](){return Ic("0x7")}constructor(t){super(t),this[Ic("0x2c")]="end"}[Ic("0x9")](){this[Ic("0x18")][Ic("0x2a")].get(Ic("0xb"))[Ic("0x22")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0x2a")][Ic("0xf")](Ic("0x23"))[Ic("0x22")]=null}}function Mc(t){return void 0!==t[Ic("0x4")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x2a")][Ic("0x27")](Wa,wc),o[Ic("0x2b")]=Mc(t)?t[Ic("0x4")]():void 0;const s=document[Ic("0x21")](),i=t[Ic("0x5")][Ic("0xf")](Ic("0x1d"))[Ic("0x0")],x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x1a"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Ic("0x16")][Ic("0xe")][Ic("0xc")]()[Ic("0x19")](((e,n)=>(e[n]=t.data[Ic("0xf")]({rootName:n}),e)),{}),o=t[Ic("0x2a")].get(Ic("0x8")).users[Ic("0x6")]((t=>({id:t.id,name:t[Ic("0x1f")]}))),s=t[Ic("0x2a")][Ic("0xf")](Ic("0x23"))[Ic("0x3")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x2a")][Ic("0xf")](Ic("0x8")),i=e[Ic("0x2a")].get("TrackChangesEditing");for(const t of o)r[Ic("0x1e")](t.id)||r[Ic("0x11")](t);r.me||r[Ic("0x14")]();for(const t of s)i[Ic("0x20")](t);e[Ic("0x13")][Ic("0x28")](n)}(t,x),x.execute(Ic(e?"0x1b":"0x10"));const a=Mc(x)?x[Ic("0x25")](n):x[Ic("0x13")][Ic("0xf")](n);return await x[Ic("0xa")](),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 r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","execute","refresh","forceDisabled","_enabledCommands","_isEnabledBasedOnSelection","isEnabled","commands","editor","clearForceDisabled","affectsData","_enableCommands","value","TrackChangesCommand","has"];var c,l;c=a,l=134,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("0xd")]=!1,this[d("0x3")](),this[d("0x6")]=!1}[d("0x3")](){this[d("0x7")]=!0}[d("0x2")](){this[d("0xd")]=!this[d("0xd")],this[d("0xd")]?this[d("0x1")]():this._enableCommands()}[d("0x1")](){for(const t of this[d("0x9")][d("0x8")][d("0x8")]())t[d("0xb")]&&!this[d("0x5")][d("0x0")](t)&&t[d("0x4")](d("0xe"))}[d("0xc")](){for(const t of this[d("0x9")].commands.commands())t[d("0xb")]&&!this._enabledCommands[d("0x0")](t)&&t[d("0xa")](d("0xe"))}}const g=["TrackChangesEditing","canEditAt","editor","_isEnabledBasedOnSelection","acceptSuggestion","get","model","refresh","track-changes-accept-suggestion-not-found","_suggestions"];var m,f;m=g,f=161,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x8")]=e,this[h("0x6")](),this[h("0x2")]=!1}[h("0x6")](){this.isEnabled=!0}execute(t){const n=this._suggestions[h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n.getRanges();this.editor[h("0x5")][h("0x0")](o)&&this[h("0x1")].plugins.get(h("0x9"))[h("0x3")](n)}}const p=["canEditAt","execute","model","_isEnabledBasedOnSelection","isEnabled","track-changes-discard-suggestion-not-found","get","refresh","editor","plugins","TrackChangesEditing"];var E,_;E=p,_=103,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x3")](),this[T("0xa")]=!1}[T("0x3")](){this[T("0x0")]=!0}[T("0x8")](t){const n=this._suggestions[T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x1"),this);const o=n.getRanges();this[T("0x4")][T("0x9")][T("0x7")](o)&&this[T("0x4")][T("0x5")][T("0x2")](T("0x6")).discardSuggestion(n)}}const y=[" [color ","isObject","change","push","splice","color","join","sort","map","isArray","isMultiRange","isCollapsed","createPositionBefore","type","replace","getRanges","isInContent","isTouching","end","isIntersecting","length","execute","deletion","getMarkers","schema","value","content","createRange"];var k,A;k=y,A=463,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>v("0x7")==t[v("0x1a")]&&v("0x7")!=e[v("0x1a")]?-1:v("0x7")!=t.type&&v("0x7")==e[v("0x1a")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e[v("0x9")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x19")](i)),S(e,i,x)||(r[v("0x10")](e[v("0xc")](n,s[v("0xe")](i)?e.createPositionAfter(i):e.createPositionAt(i,v("0x3")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),r=t[v("0x19")](n);return o[v("0x2")](r)}function L(t,e,n){for(;n[v("0x5")];){const o=n[v("0x11")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x1")]&&e[v("0x6")](t.id)}))}}const N=["editor","from","model","isEnabled","_command","_suggestions","values","refresh","some"];var M,w;M=N,w=348,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x7")]=e,this[O("0x8")]=n,this[O("0x1")](),this._isEnabledBasedOnSelection=!1}[O("0x1")](){const t=Array[O("0x4")](this._suggestions[O("0x0")]())[O("0x2")]((t=>t.isInContent));this[O("0x6")]=this[O("0x7")][O("0x6")]&&t}execute(){const t=R(Array[O("0x4")](this[O("0x8")][O("0x0")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x5")].canEditAt(t))return}L(this[O("0x3")][O("0x5")],this._command,t)}}const P=["_suggestions","refresh","execute","model","from","isEnabled","canEditAt","document","getRanges","editor","values","selection","_command","_selectedSuggestions"];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("0x0")]=e,this[j("0x2")]=n,this[j("0x1")]=new Set,this[j("0x3")](),this._isEnabledBasedOnSelection=!1}[j("0x3")](){const t=this[j("0xb")][j("0x5")][j("0x9")][j("0xd")],e=Array[j("0x6")](this[j("0x2")][j("0xc")]());this[j("0x1")]=function(t,e){const n=Array.from(t[v("0x0")]()),o=new Set;for(const r of e)if(r[v("0x1")])for(const e of n)for(const n of r[v("0x8")]()){const s=n.getRange();(e[v("0x4")](s)||t[v("0x18")]&&!r[v("0x17")]&&r.next&&s[v("0x3")][v("0x2")](e.start))&&o.add(r)}return o}(t,e),this[j("0x7")]=this[j("0x0")][j("0x7")]&&!!this[j("0x1")].size}[j("0x4")](){const t=R(Array[j("0x6")](this[j("0x1")]));for(const e of t){const t=e[j("0xa")]();if(!this.editor[j("0x5")][j("0x8")](t))return}L(this[j("0xb")][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 z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Q),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 Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),r=!n&&!o&&pe(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const Ve=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 We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&se(e,We(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,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[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)!=bn||mn&&Rn(mn.resolve())!=pn||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 bn;case kn:return pn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=rt?rt.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=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[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Jn||"[object GeneratorFunction]"==u;if(pe(e))return Je(e,a);if(u==Zn||u==Qn||g&&!s){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[u])return s?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=d?void 0:(l?c?un:dn:c?We:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const bo=function(t,e){return ge(t)?t:so(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var r=-1,s=(e=bo(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=po(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};const 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=rt?rt.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=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,r,s,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===b?f===h||r(f,h,n,o,s):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(u&&!l)return s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):Mo(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Vo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["map","hasComments","size","_onDiscard","filter","removeAttribute","_model","addRange","creator","_markerNames","markers","decorate","author","accept","add","suggestion:","authoredAt","head","@external","reduce","onAttributesChange","isMultiRange","isIntersecting","getAllAdjacentSuggestions","isIntersectingWithRange","getItems","toJSON","isExternal","previous","_onAccept","getMarkers","getMultiRangeId","addMarkerName","change","getFirstMarker","start","getRanges","delete","nodeAfter","set","push","type","get","attributes","removeMarker","getContainedElement","_onAttributesChange","clear","commentThread","getRange","data","from","removeMarkers","getMarkerNames","setAttribute","subType","nodeBefore","discard","onDiscard","next"];var $o,Qo;$o=Xo,Qo=293,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Jo("0x30")]=e[Jo("0x30")],this[Jo("0x2")]=e.subType||null,this.author=e[Jo("0x13")],this[Jo("0xf")]=e[Jo("0xf")]||e[Jo("0x13")],this[Jo("0x22")]=Boolean(e[Jo("0x32")]&&e[Jo("0x32")][Jo("0x19")]),this[Jo("0x39")]=null,this[Jo("0xd")]=t,this[Jo("0x24")]=e.onAccept,this[Jo("0xa")]=e[Jo("0x5")],this[Jo("0x35")]=e[Jo("0x1b")],this[Jo("0x10")]=new Set,this.createdAt=null,this.set(Jo("0x17"),null),this.set(Jo("0x32"),e.attributes||{}),this[Jo("0x2e")](Jo("0x23"),null),this[Jo("0x2e")](Jo("0x6"),null),this[Jo("0x2e")]("commentThread",null),this.set("_saved",!1),this[Jo("0x12")](Jo("0x14")),this.decorate(Jo("0x4"))}get head(){let t=this;for(;t[Jo("0x23")];)t=t[Jo("0x23")];return t}get[Jo("0x8")](){return!!this[Jo("0x37")]&&this[Jo("0x37")].length>0}get[Jo("0x1c")](){return 0!=this[Jo("0x10")][Jo("0x9")]&&6==Array.from(this[Jo("0x10")])[0].split(":").length}get isInContent(){return null!==this[Jo("0x29")]()}[Jo("0x27")](t){this[Jo("0x10")][Jo("0x15")](t)}[Jo("0x0")](){return Array[Jo("0x3a")](this._markerNames)}[Jo("0x25")](){return this[Jo("0x0")]()[Jo("0x7")]((t=>this[Jo("0xd")][Jo("0x11")][Jo("0x31")](t)))[Jo("0xb")]((t=>t))}getFirstMarker(){return this[Jo("0x25")]()[0]||null}[Jo("0x3b")](){this._model.change((t=>{for(const e of this[Jo("0x25")]())t.removeMarker(e)})),this[Jo("0x10")][Jo("0x36")]()}[Jo("0x33")](t){this[Jo("0xd")][Jo("0x28")]((e=>{e[Jo("0x33")](t)})),this._markerNames[Jo("0x2c")](t)}[Jo("0xe")](t){const e=Jo("0x16")+this[Jo("0x30")]+":"+this[Jo("0x2")]+":"+this.id+":"+this[Jo("0xf")].id+":"+Zo[Jo("0x26")]();this[Jo("0x27")](e),this._model[Jo("0x28")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x1f")](t){for(const e of this[Jo("0x2b")]())if(e[Jo("0x1d")](t))return!0;return!1}[Jo("0x2b")](){return this.getMarkers().map((t=>t[Jo("0x38")]()))}[Jo("0x20")](){return this[Jo("0x2b")]()[Jo("0x1a")](((t,e)=>[...t,...e[Jo("0x20")]()]),[])}getFirstRange(){var t;return(null===(t=this[Jo("0x29")]())||void 0===t?void 0:t[Jo("0x38")]())||null}[Jo("0x34")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x2a")][Jo("0x2d")],o=e.end[Jo("0x3")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Jo("0x24")](this[Jo("0x2b")](),this[Jo("0x39")],this.attributes),this[Jo("0x3b")]()}[Jo("0x4")](){this._onDiscard(this[Jo("0x2b")](),this[Jo("0x39")],this[Jo("0x32")]),this[Jo("0x3b")]()}[Jo("0x1e")](){const t=[];let e=this[Jo("0x18")];for(;e;)t[Jo("0x2f")](e),e=e[Jo("0x6")];return t}[Jo("0x1")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Jo("0x32")])||(this[Jo("0x32")]=n,this._onAttributesChange(n))}[Jo("0xc")](t){const e=eo(this[Jo("0x32")]);qo(e,t),Go(e,this[Jo("0x32")])||(this[Jo("0x32")]=e,this._onAttributesChange(this.attributes))}[Jo("0x21")](){return{id:this.id,type:this[Jo("0x2")]?this.type+":"+this[Jo("0x2")]:this[Jo("0x30")],authorId:this[Jo("0xf")].id,createdAt:this.createdAt,hasComments:this[Jo("0x8")],data:this[Jo("0x39")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const tr=["set","addEmptyContainer","length","removeContainer","indexOf","elementStart","EmptyContainer","*Remove:* %0","_locale","Object","registerElementLabel","registerDescriptionCallback","start","elementEnd","add","push","isEmpty","$text","text","isObject","$1 $2","_schema","REPLACE_TEXT","ELEMENT_SPACE","item","*Merge:* %0","addContainer","removeEmptyContainer","previousSibling","normal","addObject","data","quantity","match","_customCallbacks","label","matchingCallback","getFirstRange","remove","*Insert:* %0","replace","pop","getDescriptions","get","type","isInContent","element","$textProxy","nextSibling","insertion","getItemLabel","_itemLabels","deletion","name","_addDescriptionItems","_resolveDescriptionItems","isEqual","Container"];var er,nr;er=tr,nr=320,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x4")]=[],this[or("0x15")]=new Map,this._itemLabelsCallbacks=[],this[or("0x31")]=t,this[or("0x24")]=e}[or("0xc")](t){const e=[];for(let n=0;n<t[or("0x1e")];n++){const o=t[n];if(!o[or("0xf")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e[or("0x2b")](n),r=!0;break}}if(!r){this[or("0x18")](e,o);const r=t[n+1];if(r&&!o.getFirstRange().end[or("0x1a")](r[or("0x7")]()[or("0x28")])){const t=e[e.length-1],n=or("0x13")==o[or("0xe")]?or("0x2a"):or("0x8");t&&or("0x2e")==t.type&&(t[n]+="\n")}}}return this[or("0x19")](e)}[or("0x27")](t){this[or("0x4")][or("0x2b")](t)}[or("0x26")](t,n,o=e.priorities[or("0x39")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[or("0x1c")](t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[or("0x6")](t)){n=e[or("0x5")];break}return n||(n=this[or("0x15")][or("0xd")](t.name)),n?n(e):1!==e?e+" "+t[or("0x17")]+"s":""+t[or("0x17")]}[or("0x18")](t,e){const n=e.getFirstRange().getWalker(),o=or("0x13")==e.type?"add":"remove";for(const e of n){const r=e.item,s=t[t[or("0x1e")]-1];if(r.is(or("0x11")))s&&s[or("0xe")][or("0x20")](or("0x1b"))>-1&&t[or("0xb")](),s&&or("0x2e")==s.type?s[o]+=r.data:t[or("0x2b")]({type:or("0x2e"),add:"add"==o?r[or("0x1")]:"",remove:or("0x8")==o?r[or("0x1")]:""});else if(this[or("0x31")][or("0x2f")](r)){const i=r;if(s&&s[or("0xe")][or("0x20")](or("0x1b"))>-1&&t[or("0xb")](),or("0x29")==e[or("0xe")])continue;s&&s[or("0xe")]==o+or("0x25")&&s.element[or("0x17")]==i[or("0x17")]?s.quantity++:t.push({type:o+or("0x25"),element:i,quantity:1}),n.skip((t=>!("elementEnd"==t[or("0xe")]&&t[or("0x34")]==r)))}else if(this[or("0x31")].checkChild(r,or("0x2d"))||r.is(or("0x10"),"softBreak")){const n=r;if(or("0x2a")==o&&or("0x21")==e[or("0xe")]||"remove"==o&&or("0x29")==e.type)continue;if(s&&-1==s[or("0xe")][or("0x20")](or("0x1b"))){or("0x2e")==s[or("0xe")]&&(s[o]+="\n");continue}let i;if(i=or("0x2a")==o?n[or("0x12")]&&!this[or("0x31")][or("0x2f")](n[or("0x12")])?n[or("0x12")]:null:n[or("0x38")]&&!this[or("0x31")][or("0x2f")](n[or("0x38")])?n[or("0x38")]:null,n[or("0x2c")]||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;s&&s[or("0xe")]==o+or("0x22")&&s[or("0x10")][or("0x17")]==e[or("0x17")]?s[or("0x2")]++:t[or("0x2b")]({type:o+or("0x22"),element:e,quantity:1})}else t[or("0x2b")]({type:o+"Container",element:n})}}}_resolveDescriptionItems(t){const e=this[or("0x24")],n=[];for(const o of t){switch(o[or("0xe")]){case"text":if(o.add=o[or("0x2a")][or("0xa")](/(\S)\u000A+(\S)/g,or("0x30")).replace(/\u000A/g,""),o[or("0x8")]=o[or("0x8")][or("0xa")](/(\S)\u000A+(\S)/g,or("0x30")).replace(/\u000A/g,""),""!=o[or("0x2a")]&&""!=o[or("0x8")]){n[or("0x2b")]({type:"replace",content:Yo(e,or("0x32"),['"'+o[or("0x8")]+'"','"'+o[or("0x2a")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[or("0x2b")]({type:"insertion",content:Yo(e,or("0x9"),Yo(e,or("0x33"),o[or("0x2a")][or("0x1e")]))});continue}if(null!=o[or("0x8")][or("0x3")](/^ +$/)){n[or("0x2b")]({type:"deletion",content:Yo(e,or("0x23"),Yo(e,or("0x33"),o.remove[or("0x1e")]))});continue}if(""!=o[or("0x2a")]){n[or("0x2b")]({type:or("0x13"),content:Yo(e,or("0x9"),'"'+o[or("0x2a")]+'"')});continue}n[or("0x2b")]({type:or("0x16"),content:Yo(e,"*Remove:* %0",'"'+o[or("0x8")]+'"')});continue;case or("0x1d"):case or("0x0"):n.push({type:"insertion",content:Yo(e,"*Insert:* %0",this.getItemLabel(o.element,o.quantity))});continue;case or("0x37"):case"removeObject":n[or("0x2b")]({type:or("0x16"),content:Yo(e,or("0x23"),this.getItemLabel(o[or("0x10")],o.quantity))});continue;case or("0x36"):n.push({type:or("0x13"),content:Yo(e,"*Split:* %0",this[or("0x14")](o[or("0x10")],o.quantity))});continue;case or("0x1f"):n[or("0x2b")]({type:or("0x16"),content:Yo(e,or("0x35"),this.getItemLabel(o[or("0x10")],o.quantity))});continue}n[or("0x2b")](o)}return n}}const sr=["change","right","model","editor","contentLanguageDirection","_descriptionFactory","getSelectedBlocks","center","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","locale","value","left","schema","checkAttribute","FORMAT_JUSTIFY_TEXT","alignment","filter","document","selection","FORMAT_ALIGN_TO_LEFT","enableCommand","get","ltr","afterInit","format","justify","commandName","*Format:* %0"];var ir,xr;ir=sr,xr=369,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x3")](){const t=this[ar("0xb")],e=t[ar("0x12")];if(!t.plugins.has(ar("0x11")))return;const n=t.plugins[ar("0x1")]("TrackChangesEditing");n[ar("0x0")](ar("0x18"),((e,o={})=>{let r=o.value;o[ar("0x13")]||(r=ar("0x2")===t[ar("0x12")][ar("0xc")]?"left":ar("0x9"));const s=Array.from(this[ar("0xb")][ar("0xa")][ar("0x1a")][ar("0x1b")][ar("0xe")]())[ar("0x19")]((t=>function(t,e,n){const o=t.getAttribute(ar("0x18"))||null;return e[ar("0x16")](t,ar("0x18"))&&n!=o}(t,this[ar("0xb")].model[ar("0x15")],r)));t[ar("0xa")][ar("0x8")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:ar("0x18"),commandParams:[{value:r}]})}))})),n[ar("0xd")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ar("0x18")==n[ar("0x6")]){const t=n.commandParams[0][ar("0x13")];return{type:ar("0x4"),content:Yo(e,ar("0x7"),function(t){switch(t){case ar("0x14"):return Yo(e,ar("0x1c"));case ar("0x9"):return Yo(e,ar("0x10"));case ar("0xf"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case ar("0x5"):return Yo(e,ar("0x17"))}}(t))}}}))}}const lr=["name","schema","activeMarkers","element","addClass","elementEnd","getItems","plugins","isBlock","consumable","start","get","listIndent","listItem","test","ck-suggestion-marker--active","item","toViewPosition","previousPosition","mapper","isContent","isAtEnd","writer","parent","addHighlight","hasAttribute","getWalker","nextSibling","markerName","markerRange","createRangeOn","isLimit","ck-suggestion-marker-","includes","getAttribute","push","bindElementToMarker","insert","createUIElement","TrackChangesEditing"];var dr,ur;dr=lr,ur=325,function(t){for(;--t;)dr.push(dr.shift())}(++ur);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0x1")]())r[gr("0x14")](t)&&o.push(n[gr("0x19")](r));return o}function fr(t){const e=[];if(t.is(gr("0x26"),"listItem")){let n=t[gr("0x16")];for(;n&&n.is(gr("0x26"),gr("0x8"))&&n[gr("0x1d")](gr("0x7"))>0;)e[gr("0x1e")](n),n=n[gr("0x16")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x2")][gr("0x6")](gr("0x22"));return(r,s,i)=>{if(!i[gr("0x4")][gr("0x9")](s[gr("0x18")],r[gr("0x23")]))return;const x=s[gr("0x18")][gr("0x15")](),a=s.markerRange[gr("0x5")],c=t.model[gr("0x24")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gr("0xb")];u=u||c[gr("0xf")](e);const n=i.mapper.toViewElement(e);if(n&&n.getCustomProperty(gr("0x13")))return;gr("0x0")==t.type&&c[gr("0x3")](e)&&!c[gr("0x1a")](e)&&(e[gr("0x16")]||a[gr("0x10")]?l&&l[gr("0x12")]==e||(l=e,m(t[gr("0xd")]),g=!0):d=d||t[gr("0xd")])}function m(t){const r=i[gr("0x11")][gr("0x21")]("span",{class:gr("0x1b")+e}),x=i[gr("0xe")][gr("0xc")](t);n&&o[gr("0x25")][gr("0x1c")](s[gr("0x17")])&&i[gr("0x11")][gr("0x27")](gr("0xa"),r),i.writer[gr("0x20")](x,r),i[gr("0xe")][gr("0x1f")](r,s[gr("0x17")])}u||g||!d||m(d)}}const br=["has","subscript","plugins","enableCommand","FORMAT_ITALIC","forceValue","FORMAT_BOLD","italic","code","editor","underline","*Remove format:* %0","UnderlineEditing","FORMAT_STRIKETHROUGH","FORMAT_UNDERLINE","format","ItalicEditing","selection","StrikethroughEditing","SuperscriptEditing","bold","strikethrough","get","superscript","_descriptionFactory","model","locale","document","markInlineFormat","CodeEditing","commands","value","from","afterInit","registerDescriptionCallback","getRanges","FORMAT_CODE","isCollapsed"];var pr,Er;pr=br,Er=365,function(t){for(;--t;)pr.push(pr.shift())}(++Er);const _r=function(t,e){return br[t-=0]},Tr=["BoldEditing",_r("0x1f"),_r("0x1b"),_r("0x6"),_r("0x21"),"SubscriptEditing",_r("0x22")];class Cr extends t.Plugin{[_r("0xa")](){const t=this[_r("0x18")],e=t[_r("0x2")],n=t[_r("0x11")].get("TrackChangesEditing"),o=t[_r("0x3")];for(const o of Tr){if(!t[_r("0x11")][_r("0xf")](o))continue;const r=o.slice(0,-7).toLowerCase(),s=t[_r("0x7")][_r("0x25")](r);n[_r("0x12")](r,((t,o={})=>{const i=e[_r("0x4")][_r("0x20")];if(i[_r("0xe")])return void t(o);const x=void 0!==o[_r("0x14")]?o[_r("0x14")]:!s[_r("0x8")];e.change((()=>{const t=Array[_r("0x9")](i[_r("0xc")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0x5")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x1")][_r("0xb")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r.commandParams[0][_r("0x14")]?{type:_r("0x1e"),content:Yo(o,"*Format:* %0",e)}:{type:"format",content:Yo(o,_r("0x1a"),e)}}))}r(_r("0x23"),Yo(o,_r("0x15"))),r(_r("0x16"),Yo(o,_r("0x13"))),r(_r("0x19"),Yo(o,_r("0x1d"))),r(_r("0x17"),Yo(o,_r("0xd"))),r(_r("0x24"),Yo(o,_r("0x1c"))),r(_r("0x10"),Yo(o,"FORMAT_SUBSCRIPT")),r(_r("0x0"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const yr=["getSelectedBlocks","parent","model","$root","blockQuote","forceValue","document","filter","format","enableCommand","name","selection","has","locale","commands","get","from","plugins","change","editor","commandName","checkChild","_descriptionFactory","TrackChangesEditing","markBlockFormat"];var kr,Ar;kr=yr,Ar=195,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{afterInit(){const t=this.editor,e=t[vr("0x12")];if(!t[vr("0x16")][vr("0x11")]("BlockQuoteEditing"))return;const n=t.plugins[vr("0x14")](vr("0x3")),o=this.editor[vr("0x13")][vr("0x14")](vr("0x9"));n[vr("0xe")]("blockQuote",((e,r={})=>{const s=this.editor.model[vr("0xb")][vr("0x10")],i=r&&void 0!==r.forceValue?r[vr("0xa")]:!o.value;let x=[];if(i){const e=Array[vr("0x15")](s.getSelectedBlocks())[vr("0xc")]((t=>Ir(t)||function(t,e){const n=e[vr("0x1")](t[vr("0x6")],vr("0x9")),o=e[vr("0x1")]([vr("0x8"),vr("0x9")],t);return n&&o}(t,this[vr("0x18")][vr("0x7")].schema)));x=I(e,t[vr("0x7")])}else{const e=Array.from(s[vr("0x5")]()).filter((t=>Ir(t)));x=I(e,t.model)}t[vr("0x7")][vr("0x17")]((()=>{for(const t of x)n[vr("0x4")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vr("0x2")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vr("0x0")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n.commandParams[0][vr("0xa")]?{type:vr("0xd"),content:Yo(e,"*Format:* %0",t)}:{type:vr("0xd"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return vr("0x9")==t[vr("0x6")][vr("0xf")]}const Sr=["commands","afterInit","ckbox","plugins","TrackChangesEditing","enableCommand","get","editor"];var Lr,Nr;Lr=Sr,Nr=224,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const Mr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Mr("0x1")](){const t=this[Mr("0x7")];t[Mr("0x0")][Mr("0x6")](Mr("0x2"))&&t[Mr("0x3")].get(Mr("0x4"))[Mr("0x5")](Mr("0x2"))}}const Or=["get","schema","change","from","config","registerDescriptionCallback","format","locale","commands","filter","blockName","ELEMENT_CODE_BLOCK","enableCommand","TrackChangesEditing","name","formatBlock","getSelectedBlocks","value","has","CodeBlock","outdentCodeBlock","commandParams","commandName","language","registerElementLabel","plugins","forceValue","isLimit","languages","afterInit","markBlockFormat","model","_descriptionFactory","editor","*Format:* %0","parent","checkChild","codeBlock","document"];var Fr,Pr;Fr=Or,Pr=338,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Dr("0x3")](){const t=this[Dr("0x7")];if(!t.plugins[Dr("0x1f")](Dr("0x20")))return;const e=t[Dr("0x26")][Dr("0xd")](Dr("0x1a")),n=t[Dr("0x14")],o=t[Dr("0x11")].get(Dr("0xb"))[Dr("0x2")],r=t[Dr("0x15")][Dr("0xd")](Dr("0xb"));e[Dr("0x19")]("indentCodeBlock"),e.enableCommand(Dr("0x21")),e[Dr("0x19")](Dr("0xb"),((n,s={})=>{const i=t.model,x=t[Dr("0x5")][Dr("0xc")].selection,a=s&&void 0!==s[Dr("0x0")]?s.forceValue:!r[Dr("0x1e")];let c;s[Dr("0x24")]||(s.language=o[0][Dr("0x24")]),c=a?Array[Dr("0x10")](x[Dr("0x1d")]())[Dr("0x16")]((t=>{return jr(t)||(e=t,n=i[Dr("0xe")],!e.is("rootElement")&&!n[Dr("0x1")](e)&&n[Dr("0xa")](e[Dr("0x9")],Dr("0xb")));var e,n})):Array[Dr("0x10")](x.getSelectedBlocks()).filter((t=>jr(t)));const l=I(c,i);i[Dr("0xf")]((()=>{for(const t of l)e[Dr("0x4")](t,{commandName:"codeBlock",commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x17")})}))})),e[Dr("0x6")][Dr("0x25")](Dr("0xb"),(t=>Yo(n,Dr("0x18"),t))),e[Dr("0x6")][Dr("0x12")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0x1c")==r&&s&&Dr("0xb")==s[Dr("0x23")]){const t=s.commandParams[0][Dr("0x24")],r=e(o.find((e=>e[Dr("0x24")]===t)).label);return s[Dr("0x22")][0][Dr("0x0")]?{type:"format",content:Yo(n,Dr("0x8"),Yo(n,Dr("0x18"),1)+" ("+r+")")}:{type:Dr("0x13"),content:Yo(n,"*Remove format:* %0",Yo(n,Dr("0x18"),1))}}}))}}function jr(t){return Dr("0xb")==t[Dr("0x1b")]}const Ur=["has","get","enableCommand","editor","TrackChangesEditing","afterInit","CommentsEditing","plugins","addCommentThread"];var Gr,Hr;Gr=Ur,Hr=196,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{[zr("0x7")](){const t=this[zr("0x5")];t[zr("0x0")][zr("0x2")](zr("0x8"))&&t[zr("0x0")][zr("0x3")](zr("0x6"))[zr("0x4")](zr("0x1"))}}var Wr=n(181);const Kr=["fromRange","detach","remove","uiElement","rootName","init","markerNameToElements","buffer","markerName","addMarker:suggestion:deletion","delete","TrackChangesEditing","mapper","document","editor","root","start","requires","createRange","$graveyard","downcastDispatcher","writer","lock","model","selection","high","unbindElementFromMarkerName","deleteForward","plugins","unit","get","end","createSelection","showSuggestionHighlights","modifySelection","isCollapsed","editing","commands","data","removeMarker:suggestion:deletion","batch","bind","merge","enableCommand","options"];var qr,Xr;qr=Kr,Xr=178,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{static get[$r("0x13")](){return[Wr.Delete]}[$r("0x7")](){const t=this[$r("0x10")],e=t[$r("0x1e")].get($r("0xd"));e[$r("0x0")]($r("0xc"));const n=t[$r("0x27")][$r("0x20")]("deleteForward");e[$r("0x0")]($r("0x1d"),((e,o={})=>{const r=t[$r("0x19")][$r("0x22")](t[$r("0x19")][$r("0xf")][$r("0x1a")]);r[$r("0x25")]&&t.model[$r("0x24")](r,{direction:"forward",unit:o[$r("0x1f")]});const s=r.getFirstRange(),x=i.LiveRange[$r("0x2")](s);let a;e(o),a=$r("0x15")==x[$r("0x11")][$r("0x6")]?t[$r("0x19")][$r("0x14")](s[$r("0x12")]):t[$r("0x19")][$r("0x14")](x[$r("0x12")],x[$r("0x21")]),x[$r("0x3")](),t.model.enqueueChange(n.buffer[$r("0x2a")],(t=>{n[$r("0x9")][$r("0x18")](),t.setSelection(t[$r("0x14")](a[$r("0x21")])),n[$r("0x9")].unlock()}))})),t[$r("0x26")].downcastDispatcher.on($r("0xb"),hr(t,$r("0x2c")),{priority:"high"}),t[$r("0x28")].downcastDispatcher.on($r("0xb"),((e,n,o)=>{o[$r("0x1")][$r("0x23")]&&hr(t,"merge",{showActiveMarker:!1})[$r("0x2b")](this)(e,n,o)}),{priority:$r("0x1b")}),t[$r("0x26")][$r("0x16")].on($r("0x29"),((t,e,n)=>{const o=n[$r("0xe")][$r("0x8")](e[$r("0xa")]);if(o)for(const t of o)t.is($r("0x5"))&&(n.mapper[$r("0x1c")](t,e[$r("0xa")]),n[$r("0x17")][$r("0x4")](t))}),{priority:$r("0x1b")})}}const Jr=["*Indent:* %0","markBlockFormat","getRanges","add","multipleBlocks","getSelectedBlocks","outdentList","commands","previousSibling","registerElementLabel","expandListBlocksToCompleteList","nextSibling","plugins","schema","get","value","isObject","TrackChangesEditing","from","_suggestionFactory","accept","length","detach","indentList","before","*Merge:* %0","end","ELEMENT_LIST_ITEM","numberedList","nodeAfter","listIndent","mergeListItemForward","format","slice","forceValue","selection","deletion","enableCommand","document","editor","*Format:* remove from %0","change","refresh","commandName","ELEMENT_BULLETED_LIST","setSelection","documentList","listItemId","next","*Format:* insert into %0","execute","createRange","splitListItemAfter","bulletedList","afterInit","ELEMENT_NUMBERED_LIST","has","containsItem","*Change to:* %0","DocumentListEditing","start","_LIST","commandParams","isFirstBlockOfListItem","DocumentListUtils","listType","model","_descriptionFactory","findIndex","getAttribute","mergeListItemBackward","fromRange","*Outdent:* %0","push","after","createPositionAt"];var Zr,Yr;Zr=Jr,Yr=266,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Jr[t-=0]};class es extends t.Plugin{[ts("0x10")](){const t=this[ts("0x1")];if(!t[ts("0x32")][ts("0x12")](ts("0x15")))return;const e=t.locale,n=t[ts("0x32")].get(ts("0x37")),o=t[ts("0x32")][ts("0x34")](ts("0x1a"));function r(e){return()=>{const r=t[ts("0x2d")].get(e);let s=Array[ts("0x38")](t[ts("0x1c")].document.selection[ts("0x2b")]());if(a(e)){s=o[ts("0x30")](s);const t=[];for(const e of s)o[ts("0x19")](e)&&t[ts("0x23")](e);s=t}t[ts("0x1c")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:e,commandParams:[{forceValue:!r[ts("0x35")]}],formatGroupId:"listType"},[],ts("0x8"))}))}}function s(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ts("0x1e")]((t=>!t.hasAttribute(ts("0x9"))));return n>-1&&(e=e[ts("0x47")](0,n)),e}(t[ts("0x1c")][ts("0x0")][ts("0x49")][ts("0x2b")]()),r=o[o[ts("0x3b")]-1],s=t.model[ts("0x33")][ts("0x36")](r)?ts("0x24"):"end",i=t.model[ts("0xd")](t[ts("0x1c")].createPositionAt(o[0],ts("0x3e")),t[ts("0x1c")][ts("0x25")](r,s));t.model[ts("0x3")]((()=>{n[ts("0x27")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x1b")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ts("0x1f")](ts("0x44"))>n.getAttribute(ts("0x44"));)e[ts("0x29")](t),t=t[ts("0x31")]}return Array[ts("0x38")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ts("0x0")].selection.getSelectedBlocks()[ts("0xa")]()[ts("0x35")],r=t[ts("0x1c")][ts("0x25")](o,ts("0x3e")),s=t[ts("0x1c")][ts("0x25")](o,0),i=t[ts("0x1c")][ts("0xd")](r,s);t.model[ts("0x3")]((()=>{n[ts("0x27")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x1b")})}))}}function a(e){const n=t[ts("0x2d")][ts("0x34")](ts("0xf"))[ts("0x35")],o=t[ts("0x2d")][ts("0x34")](ts("0x42"))[ts("0x35")];return ts("0x42")===e?n:o}n.enableCommand("numberedList",r("numberedList")),n[ts("0x4b")]("bulletedList",r(ts("0xf"))),n.enableCommand(ts("0x3d"),s(ts("0x3d"))),n.enableCommand(ts("0x2c"),s(ts("0x2c"))),n[ts("0x4b")](ts("0xe"),x("splitListItemAfter")),n[ts("0x4b")]("splitListItemBefore",x("splitListItemBefore")),n[ts("0x1d")][ts("0x2f")]((function(e){const n=!t[ts("0x1c")][ts("0x33")][ts("0x36")](e),o=e[ts("0x2e")],r=e[ts("0x31")],s=e[ts("0x1f")](ts("0x9")),i=!o||o.getAttribute(ts("0x9"))!==s,x=!r||r.getAttribute(ts("0x9"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,ts("0x41"),t))),n[ts("0x1d")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x5")]){case ts("0xf"):s=n[ts("0x18")][0][ts("0x48")],i=a(n[ts("0x5")]),o=s?"*Format:* insert into %0":ts("0x2"),i&&(o=ts("0x14")),r={type:ts("0x46"),content:Yo(e,o,Yo(e,ts("0x6")))};break;case ts("0x42"):s=n[ts("0x18")][0].forceValue,i=a(n[ts("0x5")]),o=ts(s?"0xb":"0x2"),i&&(o="*Change to:* %0"),r={type:ts("0x46"),content:Yo(e,o,Yo(e,ts("0x11")))};break;case ts("0x3d"):o=ts("0x26"),r={type:ts("0x46"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ts("0x2c"):o=function(t){const e=t.getFirstRange();let n=e[ts("0x16")][ts("0x43")];for(;n&&e[ts("0x13")](n);){if(n[ts("0x1f")](ts("0x44"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,ts("0x2"),Yo(e,"ELEMENT_"+t.getFirstRange()[ts("0x16")][ts("0x43")][ts("0x1f")](ts("0x1b")).toUpperCase()+ts("0x17"))):Yo(e,ts("0x22"),Yo(e,ts("0x41"))),r={type:ts("0x46"),content:o};break;case ts("0x20"):case ts("0x45"):!1===n[ts("0x2a")]&&(o=ts("0x3f"),r={type:ts("0x4a"),content:Yo(e,o,Yo(e,ts("0x41")))})}return r})),n[ts("0x39")].registerCustomCallback("formatBlock",ts("0x8"),ts("0x3a"),(function(e,n){const o=[];for(let n of e)n[ts("0x16")].nodeAfter===n[ts("0x40")].parent&&(n=t.model[ts("0xd")](t[ts("0x1c")][ts("0x25")](n[ts("0x16")][ts("0x43")],0))),o[ts("0x23")](n);t[ts("0x1c")][ts("0x3")]((e=>{const r=t[ts("0x1c")][ts("0x0")][ts("0x49")],s=Array.from(r[ts("0x28")]()).map((t=>i.LiveRange[ts("0x21")](t)));e[ts("0x7")](o),t[ts("0x2d")].get(n.commandName)[ts("0x4")](),n[ts("0x18")][ts("0x23")]({forceDefaultExecution:!0}),t[ts("0xc")](n[ts("0x5")],...n.commandParams),e.setSelection(s);for(const t of s)t[ts("0x3c")]()}))}))}}var ns=n(331);const os=["parent","ck-suggestion-marker-split","createPositionAt","getFirstRange","selection","enableCommand","model","editor","split","data","fire","writer","unbindElementFromMarkerName","high","TrackChangesEditing","mapper","get","setSelection","enterBlock","editing","init","bind","removeMarker:suggestion:insertion","downcastDispatcher","markInsertion","document","options","requires","end","change","addMarker:suggestion:insertion","nextSibling","fromRange","enter"];var rs,ss;rs=os,ss=383,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get[is("0x12")](){return[ns.Enter]}[is("0xb")](){const t=this[is("0x20")],e=t.plugins[is("0x7")](is("0x5")),n=t.commands[is("0x7")](is("0x18"));e[is("0x1e")](is("0x18"),(()=>{t.model[is("0x14")]((o=>{const r=t[is("0x1f")][is("0x10")][is("0x1d")],s=r.getFirstPosition(),x=i.LiveRange[is("0x17")](r[is("0x1c")]());if(n[is("0x9")](o)){const n=t[is("0x1f")][is("0x1b")](s[is("0x19")][is("0x16")],0),r=o.createRange(s,n);e[is("0xf")](r)}else o[is("0x8")](o.createRange(x[is("0x13")]));x.detach(),n[is("0x1")]("afterExecute",{writer:o})}))})),t[is("0xa")][is("0xe")].on(is("0x15"),hr(t,is("0x21")),{priority:is("0x4")}),t[is("0xa")][is("0xe")].on(is("0xd"),((t,e,n)=>{const o=n[is("0x6")].markerNameToElements(e.markerName);if(o)for(const t of o)t.hasClass(is("0x1a"))&&(n[is("0x6")][is("0x3")](t,e.markerName),n[is("0x2")].remove(t))}),{priority:is("0x4")}),t[is("0x0")].downcastDispatcher.on(is("0x15"),((e,n,o)=>{o[is("0x11")].showSuggestionHighlights&&hr(t,is("0x21"),{showActiveMarker:!1})[is("0xc")](this)(e,n,o)}),{priority:"high"})}}const as=["findNext","FindAndReplaceEditing","handleFindCommand","bind","filter","editor","afterInit","replaceAll","plugins","replace","item","createPositionAt","_isInDeletionRange","string","model","getIntersection","enableCommand","start","getRange","has","findPrevious","end"];var cs,ls;cs=as,ls=443,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{[ds("0x3")](){if(!this[ds("0x2")].plugins[ds("0x10")](ds("0x14")))return;const t=this[ds("0x2")].plugins.get("TrackChangesEditing");t.enableCommand("find",this[ds("0x15")][ds("0x0")](this)),t[ds("0xd")](ds("0x13")),t[ds("0xd")](ds("0x11")),t.enableCommand(ds("0x6")),t[ds("0xd")](ds("0x4"))}handleFindCommand(t,e,n={}){const o=this[ds("0x2")][ds("0x5")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(ds("0xa")==typeof e?o.findByTextCallback(e,n):e)(t)[ds("0x1")]((e=>!1===this[ds("0x9")](e,t[ds("0x7")])))),n)}[ds("0x9")](t,e){const n=this[ds("0x2")][ds("0xb")].createRange(this[ds("0x2")][ds("0xb")][ds("0x8")](e,t[ds("0xe")]),this[ds("0x2")][ds("0xb")][ds("0x8")](e,t[ds("0x12")]));for(const t of this.editor[ds("0xb")].markers.getMarkersGroup("suggestion:deletion"))if(null!==n[ds("0xc")](t[ds("0xf")]()))return!0;return!1}}const gs=["*Reset font family*","markInlineFormat","from","selection","FontSize","editor","fontSize","commandParams","title","commandName","FontSizeEditing","*Set font family:* %0","FontColorEditing","FontFamilyEditing","*Reset font color*","change","format","*Set font background color:* %0","afterInit","FontBackgroundColorEditing","_enableCommand","toLowerCase","label","isCollapsed","has","fontSize.options","get","locale","enableCommand","TrackChangesEditing","document","find","*Set font size:* %0","*Reset font size*","plugins","_descriptionFactory","value","fontColor","fontBackgroundColor.colors","fontBackgroundColor","*Set font color:* %0","fontColor.colors","model","fontFamily","trim","config"];var ms,fs;ms=gs,fs=345,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},bs=[{pluginName:hs("0x21"),commandName:hs("0x1d")},{pluginName:hs("0x24"),commandName:hs("0x14")},{pluginName:hs("0x23"),commandName:"fontColor"},{pluginName:hs("0x2a"),commandName:hs("0x10")}];class ps extends t.Plugin{[hs("0x29")](){const t=this[hs("0x1c")][hs("0x4")];for(const{pluginName:t,commandName:e}of bs)this[hs("0x1c")][hs("0xb")][hs("0x1")](t)&&this._enableCommand(e);this[hs("0x1c")][hs("0xb")].get(hs("0x6"))[hs("0xc")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0x1d")==o[hs("0x20")]){const e=o[hs("0x1e")][0][hs("0xd")];if(e){const o=n(this[hs("0x1c")][hs("0xb")][hs("0x3")](hs("0x1b")).normalizeSizeOptions(this[hs("0x1c")][hs("0x16")].get(hs("0x2")))[hs("0x8")]((t=>t[hs("0x13")]==e))[hs("0x1f")])[hs("0x2c")]();return{type:hs("0x27"),content:Yo(t,hs("0x9"),o)}}return{type:"format",content:Yo(t,hs("0xa"))}}if("fontFamily"==o[hs("0x20")]){const e=o.commandParams[0][hs("0xd")];return e?{type:"format",content:Yo(t,hs("0x22"),e)}:{type:"format",content:Yo(t,hs("0x17"))}}if(hs("0xe")==o[hs("0x20")]){const e=o[hs("0x1e")][0][hs("0xd")];if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x16")].get(hs("0x12")))[hs("0x8")]((t=>t.model==e));let s=e,i="";return o&&(s=o[hs("0x2d")],i=n(s)[hs("0x2c")]()),{type:hs("0x27"),content:Yo(t,hs("0x11"),i)[hs("0x15")](),color:{value:e,title:i||s}}}return{type:hs("0x27"),content:Yo(t,hs("0x25"))}}if("fontBackgroundColor"==o.commandName){const e=o[hs("0x1e")][0][hs("0xd")];if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x1c")][hs("0x16")].get(hs("0xf")))[hs("0x8")]((t=>t[hs("0x13")]==e));let s=e,i="";return o&&(s=o.label,i=n(s)[hs("0x2c")]()),{type:hs("0x27"),content:Yo(t,hs("0x28"),i).trim(),color:{value:e,title:i||s}}}return{type:hs("0x27"),content:Yo(t,"*Reset font background color*")}}}}))}[hs("0x2b")](t){const e=this.editor;e[hs("0xb")].get("TrackChangesEditing")[hs("0x5")](t,((n,o={})=>{const r=e.model[hs("0x7")][hs("0x1a")],s=o[hs("0xd")];r[hs("0x0")]?n(o):e[hs("0x13")][hs("0x26")]((()=>{const n=Array[hs("0x19")](r.getRanges());for(const o of n){const n=s?[o]:mr(t,o,e[hs("0x13")]);for(const o of n)e[hs("0xb")][hs("0x3")](hs("0x6"))[hs("0x18")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["FontSize","registerDescriptionCallback","title","fontColor","*Set format to:* %0","enableCommand","getFirstPosition","schema","document","editor","locale","selection","getAttributeProperties","entries","getAttributes","fontSize","backward","modifySelection","split","word","isCollapsed","_descriptionFactory","copyFormat","push","charAt","fontSize.options","getRanges","plugins","normalizeSizeOptions","commandName","isFormatting","TrackChangesEditing","config","commands","keys","join","get","from","createSelection","createRange","length","getSelectedBlocks","fontBackgroundColor","isBlock","model","find","toLowerCase","slice"];var _s,Ts;_s=Es,Ts=100,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Cs("0x5")],n=t.model,o=n[Cs("0x4")][Cs("0x7")],r=t[Cs("0x17")][Cs("0x20")](Cs("0x1b")),s=t.locale,i=t[Cs("0x1d")].get(Cs("0x12")),x=t[Cs("0x1d")].get("pasteFormat");i&&x&&(r[Cs("0x1")]("pasteFormat",((t,s={})=>{const i=s;n.change((()=>{const t=Array[Cs("0x21")](o[Cs("0x16")]()),s=o[Cs("0x10")]?[ks(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cs("0xa")]()){const t=e[Cs("0x8")](n);t&&t[Cs("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cs("0x16")]())for(const t of e.getItems())!n[Cs("0x27")](t)&&o(t)&&(yield t);for(const e of t[Cs("0x25")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cs("0x3")]))||0!==Object[Cs("0x1e")](i)[Cs("0x24")])for(const t of s)r.markInlineFormat(t,{commandName:"pasteFormat",commandParams:[i]})}))})),r[Cs("0x11")][Cs("0x2d")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cs("0x19")]){const e=[],o=n.commandParams[0];for(const[n,r]of Object[Cs("0x9")](o))e[Cs("0x13")](As(t,n,r));return e[Cs("0x24")]?{type:"format",content:Yo(s,Cs("0x0"),e.join(", "))}:{type:"format",content:Yo(s,"*Remove all formatting*")}}})),t[Cs("0x17")][Cs("0x20")](Cs("0x1b"))[Cs("0x1")](Cs("0x12")))}}function ks(t,e){const n=t[Cs("0x22")](e);t[Cs("0xd")](n,{unit:"word",direction:Cs("0xc")});const o=n[Cs("0x2")]();t[Cs("0xd")](n,{unit:Cs("0xf"),direction:"forward"});const r=n.getLastPosition();return t[Cs("0x23")](o,r)}function As(t,e,n){const o=t[Cs("0x6")].t,s=e[Cs("0xe")](/(?=[A-Z])/)[Cs("0x1f")](" "),i=o(s[Cs("0x14")](0).toUpperCase()+s[Cs("0x2b")](1))[Cs("0x2a")]();if("boolean"==typeof n)return i;if(Cs("0x2f")===e||Cs("0x26")===e){const e=(0,r.normalizeColorOptions)(t[Cs("0x1c")][Cs("0x20")]("fontColor.colors"))[Cs("0x29")]((t=>t[Cs("0x28")]==n));return i+" ("+(e?o(e.label).toLowerCase():n)+")"}if(Cs("0xb")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cs("0x20")](Cs("0x2c"))[Cs("0x18")](t[Cs("0x1c")].get(Cs("0x15"))).find((t=>t[Cs("0x28")]==n));return i+" ("+(e?o(e[Cs("0x2e")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vs=["_descriptionFactory","blockName","title","get","heading","find","enableCommand","getSelectedBlocks","model","document","formatBlock","registerElementLabel","isObject","TrackChangesEditing","markBlockFormat","commandParams","format","config","heading.options","has","value","schema","filter","*Change to:* %0","HeadingEditing","name","plugins","editor","ELEMENT_HEADING","parent","paragraph","afterInit","ELEMENT_HEADING_CUSTOM"];var Rs,Is;Rs=vs,Is=330,function(t){for(;--t;)Rs.push(Rs.shift())}(++Is);const Ss=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{[Ss("0x1f")](){const t=this.editor,e=t.locale,n=t[Ss("0x11")][Ss("0x3")](Ss("0x12"));if(!t[Ss("0x1a")][Ss("0x13")](Ss("0x18")))return;const o=t[Ss("0x1a")].get(Ss("0xd"));o[Ss("0x6")](Ss("0x4"),((e,n)=>{const r=n[Ss("0x14")],s=Array.from(this[Ss("0x1b")].model[Ss("0x9")].selection[Ss("0x7")]())[Ss("0x16")]((t=>{return e=t,n=r,(o=this.editor[Ss("0x8")][Ss("0x15")]).checkChild(e[Ss("0x1d")],n)&&!o[Ss("0xc")](e)&&e[Ss("0x19")]!=n;var e,n,o}));t[Ss("0x8")].change((()=>{for(const t of s)o[Ss("0xe")](t,{commandName:Ss("0x4"),commandParams:[n],formatGroupId:Ss("0x1")},fr(t))}))}));for(const t of n)Ss("0x1e")!=t[Ss("0x8")]&&o._descriptionFactory[Ss("0xb")](t[Ss("0x8")],(e=>{const n=Ns(t[Ss("0x8")]);return null!==n?r(e,n):s(e,t[Ss("0x2")])}));function r(t,n){return Yo(e,Ss("0x1c"),[t,n])}function s(t,n){return Yo(e,Ss("0x20"),[t,n])}o[Ss("0x0")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Ss("0xa")==o&&i&&Ss("0x4")==i.commandName){const t=i[Ss("0xf")][0][Ss("0x14")],o=Ns(t);if(null!==o)return{type:Ss("0x10"),content:Yo(e,"*Change to:* %0",r(1,o))};const x=n[Ss("0x5")]((e=>e[Ss("0x8")]===t))[Ss("0x2")];return{type:Ss("0x10"),content:Yo(e,Ss("0x17"),s(1,x))}}}))}}function Ns(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Ms=["editor","item","getRanges","plugins","push","config","has","value","getFirstPosition","commandName","format","selection","enableCommand","find","FORMAT_HIGHLIGHT","model","commandParams","document","toLowerCase","HighlightEditing","get","title","highlight","*Remove highlight*","hasAttribute","getLastMatchingPosition","_descriptionFactory","registerDescriptionCallback","formatInline","change"];var ws,Os;ws=Ms,Os=265,function(t){for(;--t;)ws.push(ws.shift())}(++Os);const Fs=function(t,e){return Ms[t-=0]};class Ps extends t.Plugin{afterInit(){const t=this[Fs("0x5")];if(!t.plugins[Fs("0xb")](Fs("0x18")))return;const e=t[Fs("0x8")][Fs("0x19")]("TrackChangesEditing");e[Fs("0x11")](Fs("0x1b"),((n,o={})=>{const r=t.model[Fs("0x16")][Fs("0x10")],s=r.getAttribute("highlight");let i=o[Fs("0xc")],x=[];if(r.isCollapsed){const e=r[Fs("0xd")]();if(!r[Fs("0x1d")](Fs("0x1b")))return void n(o);{const n=t=>t[Fs("0x6")].getAttribute("highlight")===s,o=e[Fs("0x0")](n,{direction:"backward"}),r=e[Fs("0x0")](n);x=[t[Fs("0x14")].createRange(o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x7")]())i?x[Fs("0x9")](e):x[Fs("0x9")](...mr("highlight",e,t[Fs("0x14")]));t.model[Fs("0x4")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fs("0x1b"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Fs("0x1")][Fs("0x2")]((e=>{const{type:o,data:r}=e;if(Fs("0x3")==o&&r&&Fs("0x1b")==r[Fs("0xe")]){const e=n.t,o=r[Fs("0x15")][0][Fs("0xc")];if(o){const r=t[Fs("0xa")][Fs("0x19")]("highlight.options")[Fs("0x12")]((t=>t[Fs("0x14")]==o)),s=e(r[Fs("0x1a")])[Fs("0x17")]();return{type:"format",content:Yo(n,"*Set highlight:* %0",s),color:{value:r.color,title:r.title}}}return{type:Fs("0xf"),content:Yo(n,Fs("0x1c"),Yo(n,Fs("0x13")))}}}))}}const Ds=["div","addClass","conversion","TrackChangesEditing","horizontalLine","has","_descriptionFactory","editor","ELEMENT_HORIZONTAL_LINE","HorizontalLineEditing","dataDowncast","createPositionAt","ck-horizontal-line","locale","createEmptyElement","high","createContainerElement","get","showSuggestionHighlights","registerElementLabel","plugins"];var Bs,js;Bs=Ds,js=285,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{afterInit(){const t=this[Us("0x10")];if(!t[Us("0x8")][Us("0xe")](Us("0x12")))return;t.plugins[Us("0x5")](Us("0xc")).enableCommand(Us("0xd"));const e=t[Us("0x8")][Us("0x5")]("TrackChangesEditing"),n=t[Us("0x1")];e[Us("0xf")][Us("0x7")]("horizontalLine",(t=>Yo(n,Us("0x11"),t))),t[Us("0xb")].for(Us("0x13")).elementToStructure({model:Us("0xd"),view:(t,{writer:e,options:n})=>{if(!n[Us("0x6")])return null;const o=e[Us("0x4")](Us("0x9")),r=e[Us("0x2")]("hr");return e[Us("0xa")](Us("0x0"),o),e.insert(e[Us("0x14")](o,0),r),o},converterPriority:Us("0x3")})}}const Hs=["cancel","document","value","editor","has","plugins","getCustomProperty","getSelectedElement","htmlEmbed","ELEMENT_HTML_EMBED","get","element","*Change %0 content*","commandName","change","model","view","_descriptionFactory","enableCommand","HtmlEmbed","rawHtml","locale","selection","markBlockFormat","format","registerElementLabel","TrackChangesEditing"];var zs,Vs;zs=Hs,Vs=237,function(t){for(;--t;)zs.push(zs.shift())}(++Vs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){const t=this[Ws("0x9")];if(!t.plugins[Ws("0xa")](Ws("0x19")))return;const e=t[Ws("0xb")][Ws("0x10")]("TrackChangesEditing"),n=t[Ws("0x0")],o=t.editing[Ws("0x16")][Ws("0x7")][Ws("0x1")];e._descriptionFactory[Ws("0x4")](Ws("0x1a"),(t=>Yo(n,Ws("0xf"),t))),t[Ws("0xb")][Ws("0x10")](Ws("0x5"))[Ws("0x18")](Ws("0xe"),((n,r)=>{const s=t[Ws("0x15")],i=s.document[Ws("0x1")];s[Ws("0x14")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Ws("0x11"),Ws("0x1a"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t.getAttribute(Ws("0x8"))||"";void 0!==r&&r!==s&&(e[Ws("0x2")](t,{commandName:Ws("0xe"),commandParams:[r]}),o[Ws("0xd")]()[Ws("0xc")]("rawHtmlApi")[Ws("0x6")]())}))})),e[Ws("0x17")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ws("0xe")==e[Ws("0x13")]){const t=Yo(n,Ws("0xf"));return{type:Ws("0x3"),content:Yo(n,Ws("0x12"),t)}}}))}}const qs=["isOwn","imageStylePreApply","isIntersecting","chain","*Set image text alternative:* %0","registerCustomCallback","ImageUploadEditing","markBlockFormat","schema","markInsertion","*Reset image width*","_suggestionFactory","selection","accept","join","getSuggestions","imageTypeBlock","getContainedElement","find","discard","suggestion","convertBlockImageToInline","value","get","hasAttribute","imageTypeInline","format","document","head","getCaptionFromImageModelElement","ImageInlineEditing","getAttribute","ImageResize","createRange","ELEMENT_INLINE_IMAGE","markInlineFormat","registerElementLabel","filter","ImageTextAlternativeEditing","next","isBlockImage","fromPosition","hasSuggestion","toggleImageCaption","isCollapsed","getSuggestion","type","discardSuggestion","commandName","from","*Format:* %0","markDeletion","*Remove image text alternative*","removeObject","addObject","toLowerCase","author","refresh","newValue","start","ELEMENT_IMAGE","forEach","isInContent","nodeBefore","caption","getFirstRange","imageStylePostApply","has","imageStyle","alt","formatInline","Users","toPrevious","enableCommand","isEqual","resizeImage","end","findIndex","commandReversedParams","imageTextAlternative","registerPostFixer","editor","change","model","uploadImage","subType","getClosestSelectedImageElement","isBefore","getSuggestionCallback","length","commandParams","FORMAT_SIDE_IMAGE","_findSuggestions","nodeAfter","plugins","side","previous","_splitMarkerName","name","ImageCaptionEditing","title","_descriptionFactory","getChangedMarkers","convertInlineImageToBlock","registerDescriptionCallback","insertion","insertImage","element","normalizedStyles","shouldConvertImageType","Block image to inline image","imageBlock","ELEMENT_CAPTION","detach","commands","formatBlock","forward","createRangeOn","width","getNearestSelectionRange","imageCaption"];var Xs,$s;Xs=qs,$s=297,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Qs=function(t,e){return qs[t-=0]};class Js extends t.Plugin{afterInit(){const t=this[Qs("0x1a")];if(!t[Qs("0x27")][Qs("0xc")]("ImageEditing"))return;const n=t.plugins[Qs("0x59")]("TrackChangesEditing"),o=t[Qs("0x27")][Qs("0x59")]("ImageUtils"),r={},s=t.locale;if(n[Qs("0x12")](Qs("0x33")),n[Qs("0x2e")].registerElementLabel(Qs("0x38"),(t=>Yo(s,Qs("0x5"),t))),n[Qs("0x2e")][Qs("0x66")]("imageInline",(t=>Yo(s,Qs("0x64"),t))),n[Qs("0x2e")][Qs("0x66")](Qs("0x9"),(()=>Yo(s,Qs("0x39")))),t.plugins.has(Qs("0x48"))&&n[Qs("0x12")](Qs("0x1d")),t[Qs("0x27")].has("ImageBlockEditing")&&t.plugins[Qs("0xc")](Qs("0x60"))&&(n[Qs("0x12")]("imageTypeInline",((e,r)=>{const s=o[Qs("0x1f")](t.model[Qs("0x5d")][Qs("0x4e")]);t[Qs("0x1c")][Qs("0x1b")]((()=>{n[Qs("0x49")](s,{commandName:"imageTypeInline",commandParams:[r]},[],"convertBlockImageToInline")}))})),n[Qs("0x12")](Qs("0x52"),((e,r)=>{t[Qs("0x1c")][Qs("0x1b")]((s=>{let x=o.getClosestSelectedImageElement(t.model[Qs("0x5d")][Qs("0x4e")]),a=s[Qs("0x3e")](x);const c=i.LivePosition.fromPosition(a[Qs("0x4")],Qs("0x11")),l=i.LivePosition[Qs("0x6b")](a[Qs("0x15")],"toNext");n.forceDefaultExecution((()=>e(r))),x=o[Qs("0x1f")](t[Qs("0x1c")][Qs("0x5d")][Qs("0x4e")]),a=s.createRangeOn(x);const d=s[Qs("0x63")](c,l);c[Qs("0x3a")](),l[Qs("0x3a")](),n[Qs("0x49")](x,{commandName:"imageTypeInline",commandParams:[]},[],Qs("0x30")),d[Qs("0x4")][Qs("0x20")](a.start)&&n[Qs("0x4b")](s.createRange(d[Qs("0x4")],a[Qs("0x4")]),Qs("0x30")),a[Qs("0x15")].isBefore(d[Qs("0x15")])&&n.markInsertion(s.createRange(a[Qs("0x15")],d.end),Qs("0x30"))}))})),n[Qs("0x4d")][Qs("0x47")](Qs("0x3c"),"convertInlineImageToBlock",Qs("0x50"),(()=>{})),n[Qs("0x4d")][Qs("0x47")]("formatBlock",Qs("0x30"),Qs("0x4f"),(()=>{})),n[Qs("0x4d")].registerCustomCallback(Qs("0x3c"),Qs("0x30"),Qs("0x55"),n[Qs("0x4d")].getSuggestionCallback(Qs("0x3c"),"",Qs("0x4f"))),n[Qs("0x4d")][Qs("0x47")](Qs("0x32"),Qs("0x30"),Qs("0x50"),(()=>{})),n._suggestionFactory[Qs("0x47")](Qs("0x32"),"convertInlineImageToBlock",Qs("0x55"),(([e])=>{const o=n[Qs("0x4d")][Qs("0x21")]("insertion","",Qs("0x55"));let r=e[Qs("0x4")],s=e[Qs("0x15")];const i=t[Qs("0x1c")][Qs("0x4a")][Qs("0x40")](r,"backward"),x=t[Qs("0x1c")].schema[Qs("0x40")](s,Qs("0x3d"));i[Qs("0x6e")]&&(r=i.start),x[Qs("0x6e")]&&(s=x[Qs("0x15")]),o([t.model[Qs("0x63")](r,s)])})),n._suggestionFactory[Qs("0x47")](Qs("0x3c"),"convertInlineImageToBlock","chain",c),n[Qs("0x4d")].registerCustomCallback(Qs("0x32"),Qs("0x30"),Qs("0x45"),c)),t.plugins[Qs("0xc")](Qs("0x2c"))&&(n[Qs("0x12")](Qs("0x6d"),((e,r)=>{const s=t[Qs("0x27")].get("ImageCaptionUtils");let i=o[Qs("0x1f")](t.model[Qs("0x5d")][Qs("0x4e")]),x=s[Qs("0x5f")](i);t[Qs("0x1c")].change((()=>{if(x)return void n[Qs("0x75")](t[Qs("0x1c")][Qs("0x3e")](x));const a=o[Qs("0x6a")](i);e(r),i=o[Qs("0x1f")](t[Qs("0x1c")].document.selection),x=s.getCaptionFromImageModelElement(i),n[Qs("0x4b")](t.model[Qs("0x3e")](x),a?null:Qs("0x41"))}))})),n[Qs("0x4d")][Qs("0x47")](Qs("0x32"),Qs("0x41"),Qs("0x45"),c)),t[Qs("0x27")][Qs("0xc")]("ImageStyleEditing")){n.enableCommand("imageStyle",((r,s)=>{const i=t[Qs("0x27")].get(Qs("0x10")).me,x=t[Qs("0x3b")].get(Qs("0xd"));let a=o[Qs("0x1f")](t[Qs("0x1c")][Qs("0x5d")][Qs("0x4e")]),c=t[Qs("0x1c")][Qs("0x3e")](a),l=x.value;if(l==s[Qs("0x58")])return;const d={commandName:Qs("0xd"),commandParams:[s],formatGroupId:(0,e.uid)()};t.model[Qs("0x1b")]((()=>{if(n[Qs("0x51")]()[Qs("0x67")]((t=>t[Qs("0x7")]&&i==t[Qs("0x1")]&&("formatBlock"==t.type||Qs("0xf")==t[Qs("0x70")])&&(Qs("0x43")==t[Qs("0x1e")]||"imageStylePostApply"==t[Qs("0x1e")])&&t[Qs("0xa")]()[Qs("0x13")](c)))[Qs("0x6")]((t=>n[Qs("0x71")](t[Qs("0x5e")]))),a=o[Qs("0x1f")](t[Qs("0x1c")][Qs("0x5d")][Qs("0x4e")]),c=t[Qs("0x1c")][Qs("0x3e")](a),x.refresh(),t[Qs("0x3b")].get(Qs("0x5b"))[Qs("0x2")](),t[Qs("0x3b")][Qs("0x59")](Qs("0x52")).refresh(),l=x.value,l!=s[Qs("0x58")])return o.isInlineImage(a)&&x[Qs("0x36")](s[Qs("0x58")],a)?(r(s),a=o[Qs("0x1f")](t.model[Qs("0x5d")][Qs("0x4e")]),void n[Qs("0x49")](a,{...d,commandReversedParams:[{value:l||null}]},[],Qs("0x43"))):void(o[Qs("0x6a")](a)?n[Qs("0x49")](a,d,[],Qs("0xb")):n[Qs("0x65")](c,d,Qs("0xb")))}))}));for(const e of t.plugins[Qs("0x59")]("ImageStyleEditing")[Qs("0x35")])r[e[Qs("0x2b")]]=e[Qs("0x2d")][Qs("0x0")]();n._suggestionFactory[Qs("0x47")](Qs("0x3c"),Qs("0x43"),"join",(()=>{})),n[Qs("0x4d")][Qs("0x47")](Qs("0x3c"),"imageStylePostApply","join",(()=>{})),n[Qs("0x4d")][Qs("0x47")]("formatInline",Qs("0xb"),"join",(()=>{})),n._suggestionFactory[Qs("0x47")](Qs("0x3c"),Qs("0x43"),Qs("0x4f"),(()=>{})),n[Qs("0x4d")][Qs("0x47")](Qs("0x3c"),"imageStylePreApply","discard",((t,e)=>{n[Qs("0x4d")][Qs("0x21")](Qs("0x3c"),"",Qs("0x4f"))(t,{commandName:e[Qs("0x72")],commandParams:e[Qs("0x17")]})})),n._suggestionFactory.registerCustomCallback(Qs("0x3c"),Qs("0x43"),"chain",c)}const x=[{type:Qs("0x3c"),subType:Qs("0x43")},{type:Qs("0x32"),subType:Qs("0x41")},{type:"formatBlock",subType:Qs("0x30")},{type:"insertion",subType:Qs("0x30")}];function a(t,e){const r=x[Qs("0x16")]((({type:e,subType:n})=>t.type==e&&t[Qs("0x1e")]==n)),s=x[Qs("0x16")]((({type:t,subType:n})=>e[Qs("0x70")]==t&&e.subType==n));if(r<0||s<0)return!1;const i=t[Qs("0xa")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i[Qs("0x44")](a))return!0;if(2==r&&3==s){const t=n[Qs("0x25")](i,Qs("0x32")).filter((({suggestion:t,meta:e})=>e[Qs("0x42")]&&Qs("0x30")==t[Qs("0x1e")]));if(t[Qs("0x22")]>1&&a[Qs("0x15")][Qs("0x13")](i.start))return!0;if(1==t[Qs("0x22")]&&(i[Qs("0x4")][Qs("0x13")](a[Qs("0x15")])||i[Qs("0x15")].isEqual(a[Qs("0x4")])))return!0}if(3==r&&3==s&&i[Qs("0x4")].isBefore(a.start)){const t=i[Qs("0x15")][Qs("0x26")],e=a[Qs("0x4")][Qs("0x8")];return o[Qs("0x6a")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Qs("0x1c")][Qs("0x5d")][Qs("0x19")]((()=>{let e=!1;const r=Array[Qs("0x73")](t[Qs("0x1c")][Qs("0x5d")].differ[Qs("0x2f")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Qs("0x2a")](t);if(Qs("0x56")==r&&n[Qs("0x6c")](a)){if(Qs("0x3c")==i&&(Qs("0x43")==x||"imageStylePostApply"==x)){const t=n[Qs("0x6f")](a);if(s.newRange){const r=t[Qs("0xa")]()[Qs("0x53")]();if(o[Qs("0x6a")](r))continue;n[Qs("0x71")](t),e=!0}}if("insertion"==i&&"imageCaption"==x&&!s.newRange){const t=n[Qs("0x6f")](a);t[Qs("0x69")]&&t[Qs("0x69")][Qs("0x7")]&&(n[Qs("0x71")](t.next),e=!0)}}}return e})),t.plugins.has(Qs("0x62"))&&n[Qs("0x12")](Qs("0x14"),((e,r)=>{const s=o[Qs("0x1f")](t[Qs("0x1c")][Qs("0x5d")].selection);s[Qs("0x61")]("width")!=r[Qs("0x3f")]&&t[Qs("0x1c")].change((()=>{n.markBlockFormat(s,{commandName:Qs("0x14"),commandParams:[r]})}))})),t[Qs("0x27")][Qs("0xc")](Qs("0x68"))&&n[Qs("0x12")](Qs("0x18"),((e,r)=>{const s=o[Qs("0x1f")](t[Qs("0x1c")][Qs("0x5d")][Qs("0x4e")]);(s[Qs("0x5a")]("alt")?s[Qs("0x61")](Qs("0xe")):"")!=r[Qs("0x3")]&&t[Qs("0x1c")].change((()=>{n[Qs("0x49")](s,{commandName:"imageTextAlternative",commandParams:[r]})}))})),n._descriptionFactory[Qs("0x31")]((t=>{if(x[Qs("0x54")]((({type:e,subType:n})=>t[Qs("0x70")]==e&&t[Qs("0x1e")]==n)))return t[Qs("0x29")]?{}:void 0})),n[Qs("0x2e")][Qs("0x31")]((t=>{if("insertion"==t[Qs("0x70")]||"deletion"==t[Qs("0x70")]){const e=t[Qs("0x53")]();if(e&&e.is(Qs("0x34"),Qs("0x9")))return{type:Qs("0x32")==t[Qs("0x70")]?Qs("0x78"):Qs("0x77"),element:e,quantity:1}}})),n[Qs("0x2e")].registerDescriptionCallback((t=>Qs("0x3c")==t[Qs("0x70")]&&"convertInlineImageToBlock"==t.subType?{type:Qs("0x5c"),content:"Inline image to block image"}:Qs("0x3c")==t[Qs("0x70")]&&Qs("0x57")==t[Qs("0x1e")]?{type:Qs("0x5c"),content:Qs("0x37")}:void 0)),n[Qs("0x2e")][Qs("0x31")]((t=>{const{data:e}=t;if(e){if(Qs("0xd")==e[Qs("0x72")]){const t=e[Qs("0x23")][0][Qs("0x58")];return n=Qs("0x28")===t?Yo(s,Qs("0x24")):r[t]||t,{type:Qs("0x5c"),content:Yo(s,Qs("0x74"),n)}}if(Qs("0x18")==e[Qs("0x72")]){const t=e[Qs("0x23")][0][Qs("0x3")];return t?{type:"format",content:Yo(s,Qs("0x46"),'"'+t+'"')}:{type:"format",content:Yo(s,Qs("0x76"))}}if(Qs("0x14")==e[Qs("0x72")]){const t=e[Qs("0x23")][0].width;return t?{type:Qs("0x5c"),content:Yo(s,"*Set image width:* %0",t)}:{type:"format",content:Yo(s,Qs("0x4c"))}}}var n}))}}const Zs=["TrackChangesEditing","getAttribute","accept","discard","handleReplaceImageCommand","plugins","getSuggestions","*Format:* replace image URL","get","has","registerCustomCallback","data","editor","afterInit","commandName","formatBlock","document","commandParams","src","change","handleSuggestionDescription","model","replaceImageSource","_suggestionFactory","enableCommand"];var Ys,ti;Ys=Zs,ti=458,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{[ei("0x5")](){if(!this[ei("0x4")][ei("0x16")][ei("0x1")]("ImageEditing"))return;const t=this[ei("0x4")][ei("0x16")][ei("0x0")](ei("0x11"));t[ei("0x10")](ei("0xe"),((t,e)=>this[ei("0x15")](t,e))),t[ei("0xf")].registerCustomCallback(ei("0x7"),ei("0xe"),ei("0x13"),t[ei("0xf")].getSuggestionCallback(ei("0x7"),null,ei("0x14"))),t[ei("0xf")][ei("0x2")](ei("0x7"),ei("0xe"),ei("0x14"),t[ei("0xf")].getSuggestionCallback(ei("0x7"),null,ei("0x13"))),t._descriptionFactory.registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[ei("0x15")](t,e){const n=this[ei("0x4")].plugins[ei("0x0")](ei("0x11")),o=this[ei("0x4")][ei("0xd")][ei("0x8")].selection.getSelectedElement();this[ei("0x4")].model[ei("0xb")]((()=>{let r=o[ei("0x12")](ei("0xa"));const s=this.editor[ei("0x16")][ei("0x0")]("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0xe")===t.subType&&e===o){t.author!==s&&t.discard(),r=t[ei("0x3")][ei("0x9")][0].source;break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],ei("0xe"))}))}[ei("0xc")](t){const{data:e}=t;if(e&&ei("0xe")===e[ei("0x6")]){const t=ei("0x18");return{type:"format",content:Yo(this[ei("0x4")].locale,t)}}}}const oi=["listenTo","_trackChangesValueDuringImport","_trackChangesExecuted","bind","get","_handleImportedData","track_changes","value","forEach","dataInsert","afterInit","trackChanges","Users","lowest","commands","importWord","editor","_setSuggestionData","TrackChangesEditing","plugins","execute","high"];var ri,si;ri=oi,si=290,function(t){for(;--t;)ri.push(ri.shift())}(++si);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x14")]=!1}[ii("0x6")](){const t=this[ii("0xc")],e=t.commands[ii("0x0")](ii("0xb")),n=t[ii("0xa")][ii("0x0")](ii("0x7"));e&&(e.on(ii("0x10"),((t,[,e])=>{this[ii("0x13")]=n[ii("0x3")],e.collaboration_features[ii("0x2")]=!this._trackChangesValueDuringImport}),{priority:ii("0x11")}),this[ii("0x12")](e,ii("0x5"),this[ii("0x1")][ii("0x15")](this)),this[ii("0x12")](e,"dataInsert",(()=>{this[ii("0x14")]&&(n.execute(),this[ii("0x14")]=!1)}),{priority:ii("0x9")}),t.plugins[ii("0x0")]("TrackChangesEditing").enableCommand(ii("0xb")))}[ii("0x1")](t,e){const{suggestions:n}=e,o=this[ii("0xc")][ii("0xa")][ii("0x0")](ii("0x7")),r=o[ii("0x3")];this[ii("0x13")]!==r&&(o[ii("0x10")](),this[ii("0x14")]=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor[ii("0xf")][ii("0x0")](ii("0x8")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xb")}}};this[ii("0xc")].plugins[ii("0x0")](ii("0xe"))[ii("0xd")](r)}))}}const ai=["getSelectedBlocks","TrackChangesEditing","registerDescriptionCallback","outdentBlock","indentBlock","plugins","format","blockIndent","getItems","markBlockFormat","outdent","change","afterInit","*Outdent:* %0","_descriptionFactory","IndentEditing","document","filter","model","schema","indent","commandName","IndentBlock","selection","*Indent:* %0","enableCommand","locale","editor"];var ci,li;ci=ai,li=338,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xa")](){const t=this[di("0x19")],e=t[di("0x3")].get(di("0x1b"));t[di("0x3")].has(di("0xd"))&&(e[di("0x17")](di("0x12")),e[di("0x17")](di("0x8")));const n=t[di("0x18")];if(t.plugins.has(di("0x14"))){for(const n of[di("0x2"),di("0x1")])e[di("0x17")](n,(()=>{const o=Array.from(this[di("0x19")].model[di("0xe")][di("0x15")][di("0x1a")]())[di("0xf")]((t=>this[di("0x19")][di("0x10")][di("0x11")].checkAttribute(t,di("0x5"))));t[di("0x10")][di("0x9")]((()=>{for(const t of o)e[di("0x7")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x2")})}))}));e[di("0xc")][di("0x0")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x13")]&&di("0x1")!=o.commandName)return;const r=t[di("0x6")]()[0],s=e._descriptionFactory.getItemLabel(r);return di("0x2")==o.commandName?{type:di("0x4"),content:Yo(n,di("0x16"),s)}:di("0x1")==o.commandName?{type:di("0x4"),content:Yo(n,di("0xb"),s)}:void 0}))}}}var gi,mi,fi=["input","get","enableCommand","editor","plugins","init"];gi=fi,mi=113,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get requires(){return[Wr.Input]}[hi("0x0")](){this[hi("0x4")][hi("0x5")][hi("0x2")]("TrackChangesEditing")[hi("0x3")](hi("0x1"))}}const pi=["markInlineFormat","locale","format","change","enableCommand","*Remove link*","has","_descriptionFactory","getFirstRange","getRanges","model","hasAttribute","*Set link:* %0","link","plugins","selection","getFirstPosition","linkHref","document","LinkEditing","from","editor","get","TrackChangesEditing","getAttribute","isCollapsed","registerDescriptionCallback","commandName","unlink","commandParams"];var Ei,_i;Ei=pi,_i=303,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ti("0xb")][Ti("0x3")](Ti("0x10")))return;const e=t[Ti("0xb")][Ti("0x13")](Ti("0x14"));e[Ti("0x1")]("link",((n,o)=>{const r=t.model[Ti("0xf")][Ti("0xc")];let s=[];if(r.isCollapsed){if(!r[Ti("0x8")](Ti("0xe")))return void n(o);{const e=(0,Wr.findAttributeRange)(r[Ti("0xd")](),"linkHref",r[Ti("0x15")](Ti("0xe")),t[Ti("0x7")]);s=[e]}}else s=Array[Ti("0x11")](r[Ti("0x6")]());t.model[Ti("0x0")]((()=>{for(const t of s)e[Ti("0x1b")](t,{commandName:Ti("0xa"),commandParams:[o]})}))})),e.enableCommand(Ti("0x19"),(()=>{const n=this[Ti("0x12")][Ti("0x7")],o=n.document[Ti("0xc")];n[Ti("0x0")]((()=>{let n=[];n=o[Ti("0x16")]?[(0,Wr.findAttributeRange)(o[Ti("0xd")](),Ti("0xe"),o[Ti("0x15")](Ti("0xe")),t[Ti("0x7")])]:mr(Ti("0xe"),o[Ti("0x5")](),t[Ti("0x7")]);for(const t of n)e[Ti("0x1b")](t,{commandName:Ti("0x19"),commandParams:[]})}))})),e[Ti("0x4")][Ti("0x17")]((e=>{const{data:n}=e,o=t[Ti("0x1c")];if(n){if("link"==n.commandName){const t=n[Ti("0x1a")][0];return{type:"format",content:Yo(o,Ti("0x9"),'"'+t+'"')}}return Ti("0x19")==n[Ti("0x18")]?{type:Ti("0x1d"),content:Yo(o,Ti("0x2"))}:void 0}}))}}const yi=["listIndent","todoList","bulletedList","commandParams","listItem","enableCommand","afterInit","getSelectedBlocks","isObject","*Outdent:* %0","ELEMENT_NUMBERED_LIST","length","execute","outdentList","commandName","getAttribute","_selectedElements","schema","from","todoListChecked","bulleted","*Change to:* %0","ELEMENT_LIST_ITEM","*Indent:* %0","ListEditing","name","*Uncheck item*","replace","format","add","change","end","TrackChangesEditing","paragraph","List","plugins","document","forceValue","filter","get","locale","blockName","indentList","findIndex","ELEMENT_BULLETED_LIST","commands","registerElementLabel","nextSibling","editor","slice","model","previousSibling","value","numberedList","numbered","createPositionAt","createRange","has","checkTodoList","markBlockFormat","element","todo","checkChild"];var ki,Ai;ki=yi,Ai=197,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3d")](){const t=this[vi("0x28")],e=t[vi("0x20")];if(!t.plugins[vi("0x31")](vi("0x10")))return;const n=t[vi("0x1b")].get(vi("0x18")),o=t[vi("0x1b")][vi("0x31")]("TodoListEditing");function r(e){return()=>{const o=t.model[vi("0x1c")].selection,r=t[vi("0x25")][vi("0x1f")](e);if(r[vi("0x2c")])return void t[vi("0x4")](vi("0x19"),{});const s=e[vi("0x29")](0,-4),i=function(t,e,n){let o=Array[vi("0xa")](t)[vi("0x1e")]((t=>{return e=t,(o=n)[vi("0x36")](e.parent,vi("0x3b"))&&!o[vi("0x0")](e);var e,o}));o=o[vi("0x1e")]((t=>!t.is(vi("0x34"),vi("0x3b"))||t[vi("0x7")]("listType")!=e));const r=new Set;for(const t of o)t.is(vi("0x34"),vi("0x3b"))?r[vi("0x15")](Ii(t)):r[vi("0x15")](t);return Array[vi("0xa")](r)}(o[vi("0x3e")](),s,t.model[vi("0x9")]);t[vi("0x2a")][vi("0x16")]((()=>{for(const t of i)n[vi("0x33")](t,{commandName:e,commandParams:[{forceValue:!r[vi("0x2c")]}],formatGroupId:vi("0x21")},Si(t))}))}}function s(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e[vi("0x23")]((t=>vi("0x3b")!=t[vi("0x11")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x2a")][vi("0x1c")].selection[vi("0x3e")]()),r=t[vi("0x2a")][vi("0x30")](t.model[vi("0x2f")](o[0],"before"),t[vi("0x2a")][vi("0x2f")](o[o[vi("0x3")]-1],vi("0x17")));t[vi("0x2a")].change((()=>{n[vi("0x33")](r,{commandName:e,commandParams:[],formatGroupId:vi("0x37")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x27")];for(;t&&t[vi("0x7")](vi("0x37"))>n[vi("0x7")](vi("0x37"));)e[vi("0x15")](t),t=t[vi("0x27")]}return Array[vi("0xa")](e)}(o))}))}}n[vi("0x3c")](vi("0x2d"),r(vi("0x2d"))),n[vi("0x3c")](vi("0x39"),r(vi("0x39"))),o&&n.enableCommand(vi("0x38"),r("todoList")),n.enableCommand("indentList",s(vi("0x22"))),n[vi("0x3c")](vi("0x5"),s("outdentList")),o&&n[vi("0x3c")](vi("0x32"),(()=>{const e=t[vi("0x25")][vi("0x1f")]("checkTodoList"),o=Array[vi("0xa")](e[vi("0x8")]);o[vi("0x1e")]((t=>t[vi("0x7")](vi("0xb"))!=e[vi("0x2c")])),t[vi("0x2a")][vi("0x16")]((()=>{for(const t of o)n[vi("0x33")](t,{commandName:vi("0x32"),commandParams:[{forceValue:!e[vi("0x2c")]}]})}))})),n._descriptionFactory[vi("0x26")]("listItem",(t=>Yo(e,vi("0xe"),t))),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x6")]||vi("0x39")==n[vi("0x6")]||vi("0x38")==n[vi("0x6")])switch(n[vi("0x6")][vi("0x13")](vi("0x1a"),"")){case vi("0xc"):return o(Yo(e,vi("0x24")));case vi("0x2e"):return o(Yo(e,vi("0x2")));case vi("0x35"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x22")==n.commandName)return{type:vi("0x14"),content:Yo(e,vi("0xf"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x5")==n[vi("0x6")])return{type:"format",content:Yo(e,vi("0x1"),Yo(e,vi("0xe")))};if(vi("0x32")==n[vi("0x6")])return n[vi("0x3a")][0][vi("0x1d")]?{type:vi("0x14"),content:Yo(e,"*Check item*")}:{type:vi("0x14"),content:Yo(e,vi("0x12"))}}function o(t){return{type:vi("0x14"),content:Yo(e,vi("0xd"),t)}}}))}}function Ii(t){const e=t[vi("0x7")](vi("0x37"));if(0==e)return t;let n=t;for(;t[vi("0x2b")]&&t[vi("0x2b")].is("element",vi("0x3b"));){const o=t[vi("0x2b")][vi("0x7")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x2b")]}return n}function Si(t){const e=[];if(t.is(vi("0x34"),vi("0x3b"))&&t[vi("0x7")](vi("0x37"))>0){let n=t[vi("0x27")];for(;n&&"listItem"==n[vi("0x11")]&&n[vi("0x7")]("listIndent")==t[vi("0x7")](vi("0x37"));)e.push(n),n=n[vi("0x27")]}return e}const Li=["element","commandParams","*Format:* set order to reversed","forward","length","afterInit","getFirstPosition","getListTypeFromListStyleType","_getSuggestionBlocksForListStyle","selection","map","getSelectedBlocks","format","handleListStartCommand","_getSuggestionBlocks","handleDescriptions","from","backward","enableCommand","getLastPosition","_LIST_","list.properties","reversed","editor","model","unshift","createRange","TrackChangesEditing","flat","handleListStyleCommand","listStart","toUpperCase","listType","styles","bind","startIndex","handleListReversedCommand","_descriptionFactory","change","listStyle","*Format:* set order to regular","getAttribute","getSiblingNodes","listItem","*Change to:* %0","document","push","locale","ListUtils","registerDescriptionCallback","before","get","markMultiRangeBlockFormat","listReversed","_getTranslationKeyForListStyle","plugins","filter","createPositionAt"];var Ni,Mi;Ni=Li,Mi=197,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x28")](){if(!this[wi("0x0")][wi("0x20")].has("ListPropertiesEditing"))return;const t=this.editor.config[wi("0x1c")](wi("0x38")),e=this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x4"));t[wi("0xa")]&&e[wi("0x35")](wi("0x10"),this[wi("0x6")][wi("0xb")](this)),t[wi("0x39")]&&e.enableCommand("listReversed",this[wi("0xd")][wi("0xb")](this)),t[wi("0xc")]&&e[wi("0x35")]("listStart",this[wi("0x30")][wi("0xb")](this)),e[wi("0xe")][wi("0x1a")](this[wi("0x32")].bind(this))}[wi("0x6")](t,e={}){const n=this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x4")),o=this[wi("0x2b")]();this[wi("0x0")][wi("0x1")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x10"),commandParams:[{type:e.type}],formatGroupId:wi("0x10")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x4")),o=this._getSuggestionBlocks((t=>t.is(wi("0x23"),wi("0x14"))&&"numbered"===t[wi("0x12")](wi("0x9"))));if(o[wi("0x27")]<1)return;const r=o.map((t=>this[wi("0x0")][wi("0x1")][wi("0x3")](this[wi("0x0")][wi("0x1")].createPositionAt(t,wi("0x1b")),this.editor[wi("0x1")][wi("0x22")](t,0))));this[wi("0x0")].model[wi("0xf")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:wi("0x1e"),commandParams:[{reversed:e[wi("0x39")]}],formatGroupId:wi("0x1e")})}))}[wi("0x30")](t,e={}){const n=this[wi("0x0")].plugins[wi("0x1c")]("TrackChangesEditing"),o=this[wi("0x31")]((t=>t.is(wi("0x23"),wi("0x14"))&&"numbered"===t[wi("0x12")]("listType")));if(o.length<1)return;const r=o[wi("0x2d")]((t=>this[wi("0x0")].model[wi("0x3")](this[wi("0x0")].model[wi("0x22")](t,wi("0x1b")),this[wi("0x0")].model[wi("0x22")](t,0))));this[wi("0x0")].model[wi("0xf")]((()=>{n[wi("0x1d")](r,{commandName:wi("0x7"),commandParams:[{startIndex:e[wi("0xc")]}],formatGroupId:wi("0x7")})}))}handleDescriptions(t){const e=this[wi("0x0")][wi("0x18")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case wi("0x10"):o=wi("0x15"),r={type:wi("0x2f"),content:Yo(e,o,Yo(e,this[wi("0x1f")](n[wi("0x24")][0].type)))};break;case"listReversed":o=n[wi("0x24")][0][wi("0x39")]?wi("0x25"):wi("0x11"),r={type:"format",content:Yo(e,o)};break;case wi("0x7"):o="*Format:* set start index to %0",r={type:wi("0x2f"),content:Yo(e,o,n[wi("0x24")][0][wi("0xc")])}}return r}[wi("0x2b")](){var t,e,n,o;const r=this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x19"));let s=Array[wi("0x33")](this[wi("0x0")][wi("0x1")][wi("0x16")][wi("0x2c")].getSelectedBlocks());return(null===(t=s[0])||void 0===t?void 0:t.is("element",wi("0x14")))&&s[wi("0x2")](...r[wi("0x13")](this[wi("0x0")][wi("0x1")][wi("0x16")][wi("0x2c")][wi("0x29")](),"backward")),(null===(e=s[s[wi("0x27")]-1])||void 0===e?void 0:e.is(wi("0x23"),wi("0x14")))&&s[wi("0x17")](...r[wi("0x13")](this.editor[wi("0x1")][wi("0x16")][wi("0x2c")][wi("0x36")](),wi("0x26"))),s=[...new Set(s)],(null===(o=null===(n=this.editor[wi("0x1")][wi("0x16")].selection[wi("0x29")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x23"),"listItem"))&&(s=s[wi("0x21")]((t=>t.is(wi("0x23"),wi("0x14"))))),s}[wi("0x31")](t){const e=this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x19"));let n=Array[wi("0x33")](this[wi("0x0")].model[wi("0x16")][wi("0x2c")][wi("0x2e")]()).filter(t)[wi("0x2d")]((t=>{const n=this.editor.model[wi("0x22")](t,0);return[...e.getSiblingNodes(n,wi("0x34")),...e[wi("0x13")](n,wi("0x26"))]}))[wi("0x5")]();return n=[...new Set(n)],n}[wi("0x1f")](t){return"ELEMENT_"+this[wi("0x0")][wi("0x20")][wi("0x1c")](wi("0x19"))[wi("0x2a")](t)[wi("0x8")]()+wi("0x37")+t.toUpperCase().replace(/-/g,"_")}}const Fi=["data","MediaEmbedEditing","ELEMENT_MEDIA","options","conversion","mediaEmbed","elementToElement","editor","_descriptionFactory","downcastDispatcher","stop","showSuggestionHighlights","media","afterInit","for","locale","div","dataDowncast","plugins"];var Pi,Di;Pi=Fi,Di=293,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x5")](){const t=this[Bi("0x12")];if(!t[Bi("0xa")].has(Bi("0xc")))return;const e=t[Bi("0xa")].get("TrackChangesEditing"),n=t[Bi("0x7")];e.enableCommand(Bi("0x10")),e[Bi("0x0")].registerElementLabel(Bi("0x4"),(t=>Yo(n,Bi("0xd"),t))),t[Bi("0xf")][Bi("0x6")](Bi("0x9"))[Bi("0x11")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x3")])return e.createEmptyElement(Bi("0x8"))},converterPriority:"high"}),t[Bi("0xb")][Bi("0x1")].on("attribute:url:media",((t,e,n)=>{n[Bi("0xe")][Bi("0x3")]&&t[Bi("0x2")]()}),{priority:"high"})}}const Ui=["has","MentionEditing","plugins","TrackChangesEditing","editor","enableCommand","afterInit"];var Gi,Hi;Gi=Ui,Hi=141,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x3")];t[zi("0x1")][zi("0x6")](zi("0x0"))&&t.plugins.get(zi("0x2"))[zi("0x4")]("mention")}}const Wi=["PageBreakEditing","pageBreak","has","editor","registerElementLabel","TrackChangesEditing","ELEMENT_PAGE_BREAK","_descriptionFactory","get","plugins","locale"];var Ki,qi;Ki=Wi,qi=371,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x6")];if(!t[Xi("0x1")][Xi("0x5")](Xi("0x3")))return;t[Xi("0x1")][Xi("0x0")](Xi("0x8")).enableCommand(Xi("0x4"));const e=t.plugins[Xi("0x0")](Xi("0x8")),n=t[Xi("0x2")];e[Xi("0xa")][Xi("0x7")](Xi("0x4"),(t=>Yo(n,Xi("0x9"),t)))}}const Qi=["plugins","registerElementLabel","selection","enableCommand","schema","addMarker:suggestion:insertion","parent","isBlock","isObject","addClass","includes","markerRange","checkChild","showSuggestionHighlights","name","filter","createUIElement","nodeAfter","downcastDispatcher","*Insert:* %0","blockName","span","markBlockFormat","locale","highest","ck-suggestion-marker--active","insertion","insert","mapper","TrackChangesEditing","ELEMENT_PARAGRAPH","Paragraph","has","isTouching","ck-suggestion-marker-split","getItemLabel","options","activeMarkers","isLimit","insertParagraph","editing","editor","consumable","model","_descriptionFactory","paragraph","change","registerDescriptionCallback","*Change to:* %0","get","getSelectedBlocks","afterInit","end","consume","$text","format","markerName","writer","bindElementToMarker","document"];var Ji,Zi;Ji=Qi,Zi=226,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0x5")](){const t=this[Yi("0x37")];if(!t[Yi("0xe")][Yi("0x2e")](Yi("0x2d")))return;const e=t[Yi("0x25")],n=t[Yi("0xe")][Yi("0x3")](Yi("0x2b"));n._descriptionFactory[Yi("0xf")](Yi("0x3b"),(t=>Yo(e,Yi("0x2c"),t))),n[Yi("0x11")]("paragraph",((e,o={})=>{const r=t[Yi("0x39")][Yi("0xd")],s=o[Yi("0x10")]||r.selection,i=Array.from(s[Yi("0x4")]())[Yi("0x1d")]((t=>{return e=t,(n=this[Yi("0x37")].model.schema)[Yi("0x1a")](e[Yi("0x14")],"paragraph")&&!n[Yi("0x16")](e)&&Yi("0x3b")!=e[Yi("0x1c")];var e,n}));t.model[Yi("0x0")]((()=>{for(const t of i)n[Yi("0x24")](t,{commandName:Yi("0x3b"),commandParams:[],formatGroupId:Yi("0x22")},fr(t))}))})),n._descriptionFactory[Yi("0x1")]((t=>{const{data:n}=t;if(n&&"paragraph"==n.commandName)return{type:Yi("0x9"),content:Yo(e,Yi("0x2"),Yo(e,Yi("0x2c")))}})),n[Yi("0x11")](Yi("0x35")),t[Yi("0x36")][Yi("0x20")].on(Yi("0x13"),ex(t),{priority:Yi("0x26")}),t.data[Yi("0x20")].on(Yi("0x13"),((e,n,o)=>{o[Yi("0x32")][Yi("0x1b")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x26")});const o=n[Yi("0x3a")];o[Yi("0x1")]((n=>{if(Yi("0x28")!==n.type)return;const{start:r,end:s}=n.getFirstRange();if(!r[Yi("0x2f")](s)||!r[Yi("0x1f")])return;const i=t.model[Yi("0x12")],x=r.nodeAfter;return i[Yi("0x15")](x)&&!i[Yi("0x34")](x)&&i[Yi("0x1a")](x,Yi("0x8"))?{type:"insertion",content:Yo(e,Yi("0x21"),o[Yi("0x31")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0xe")][Yi("0x3")](Yi("0x2b")),i=o[Yi("0x19")].start,x=o.markerRange[Yi("0x6")],a=t[Yi("0x39")][Yi("0x12")];if(!i[Yi("0x2f")](x)||!i.nodeAfter)return;const c=i[Yi("0x1f")];if(a[Yi("0x15")](c)&&!a[Yi("0x34")](c)&&a.checkChild(c,Yi("0x8"))){if(!r[Yi("0x38")][Yi("0x7")](o[Yi("0x19")],n.name))return;const t=r.writer[Yi("0x1e")](Yi("0x23"),{class:Yi("0x30")}),i=r[Yi("0x2a")].toViewPosition(x);e&&s[Yi("0x33")][Yi("0x18")](o.markerName)&&r.writer[Yi("0x17")](Yi("0x27"),t),r[Yi("0xb")][Yi("0x29")](i,t),r.mapper[Yi("0xc")](t,o[Yi("0xa")])}}}const nx=["getRanges","has","change","createRangeOn","removeFormat","plugins","getAttributeProperties","isFormatting","registerDescriptionCallback","model","commandName","markInlineFormat","get","afterInit","RemoveFormatEditing","TrackChangesEditing","editor","*Remove all formatting*","document","_descriptionFactory","format","getAttributes","schema"];var ox,rx;ox=nx,rx=328,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[sx("0x7")](){const t=this[sx("0xa")];if(!t[sx("0x16")][sx("0x12")](sx("0x8")))return;const e=t[sx("0x16")][sx("0x6")](sx("0x9"));e.enableCommand(sx("0x15"),(n=>{const o=t[sx("0x3")][sx("0xc")].selection;o.isCollapsed?n():t[sx("0x3")][sx("0x13")]((()=>{const n=Array.from(o[sx("0x11")]());for(const o of n)for(const n of o.getItems())xx(n,t.model[sx("0x10")])&&e[sx("0x5")](t[sx("0x3")][sx("0x14")](n),{commandName:sx("0x15"),commandParams:[]})}))})),e[sx("0xd")][sx("0x2")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[sx("0x4")])return{type:sx("0xe"),content:Yo(t.locale,sx("0xb"))}}))}}function xx(t,e){for(const[n]of t[sx("0xf")]()){const t=e[sx("0x0")](n);if(t&&t[sx("0x1")])return!0}return!1}const ax=["enableCommand","trackChanges","discardSelectedSuggestions","acceptSuggestion","acceptAllSuggestions","plugins","discardAllSuggestions","goToNextRestrictedEditingException","TrackChangesEditing","RestrictedEditingModeEditing","afterInit","has","discardSuggestion","acceptSelectedSuggestions","get","editor"];var cx,lx;cx=ax,lx=278,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x4")](){const t=this[dx("0x9")];if(!t[dx("0xf")][dx("0x5")]("RestrictedEditingModeEditing"))return;const e=t[dx("0xf")][dx("0x8")](dx("0x2"));e[dx("0xa")]("goToPreviousRestrictedEditingException"),e[dx("0xa")](dx("0x1"));const n=t[dx("0xf")][dx("0x8")](dx("0x3"));n[dx("0xa")](dx("0xb")),n.enableCommand(dx("0xd")),n[dx("0xa")](dx("0x6")),n.enableCommand(dx("0xe")),n[dx("0xa")](dx("0x0")),n[dx("0xa")](dx("0x7")),n[dx("0xa")](dx("0xc"))}}const gx=["mapper","enableCommand","_descriptionFactory","getItems","ck-suggestion-marker-","options","init","downcastDispatcher","createUIElement","writer","model","span","element","shiftEnter","addMarker:suggestion:insertion","activeMarkers","split","includes","locale","TrackChangesEditing","consumable","addClass","registerElementLabel","get","markerName","name","softBreak","merge","requires","insert","showSuggestionHighlights","createPositionBefore","ck-suggestion-marker--active","editor","data","editing","markerRange","bindElementToMarker","plugins"];var mx,fx;mx=gx,fx=202,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x15")](){return[ns.ShiftEnter]}[hx("0x26")](){const t=this[hx("0x1a")],e=t[hx("0x1f")][hx("0x10")](hx("0xc"));e[hx("0x21")](hx("0x6")),t[hx("0x1c")].downcastDispatcher.on(hx("0x7"),px(t),{priority:"high"}),t[hx("0x1c")][hx("0x0")].on("addMarker:suggestion:deletion",px(t),{priority:"high"}),t[hx("0x1b")][hx("0x0")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x25")][hx("0x17")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x22")][hx("0xf")](hx("0x13"),(e=>Yo(t[hx("0xb")],"ELEMENT_LINE_BREAK",e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[hx("0x1f")].get(hx("0xc"));if(!r[hx("0xd")].test(o[hx("0x1d")],n[hx("0x12")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x1d")][hx("0x23")]()){if(!t.is(hx("0x5"),hx("0x13")))continue;const n="deletion"==o.markerName[hx("0x9")](":")[1]?hx("0x14"):hx("0x9"),x=r[hx("0x2")][hx("0x1")](hx("0x4"),{class:hx("0x24")+n}),a=r[hx("0x20")].toViewPosition(i[hx("0x18")](t));e&&s[hx("0x8")][hx("0xa")](o[hx("0x11")])&&r[hx("0x2")][hx("0xe")](hx("0x19"),x),r[hx("0x2")][hx("0x16")](a,x),r[hx("0x20")][hx("0x1e")](x,o[hx("0x11")])}}}const Ex=["value","commandParams","forceValue","model","afterInit","markInlineFormat","has","enableCommand","registerDescriptionCallback","plugins","format","change","StandardEditingModeEditing","commandName","restrictedEditingException","TrackChangesEditing","FORMAT_RESTRICTED_ENABLED","document","_descriptionFactory","get","from","isCollapsed"];var _x,Tx;_x=Ex,Tx=271,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x13")](){const t=this.editor,e=t[Cx("0x12")],n=t.locale;if(!t[Cx("0x2")][Cx("0x15")](Cx("0x5")))return;const o=t[Cx("0x2")].get(Cx("0x8")),r=Cx("0x7"),s=t.commands[Cx("0xc")](r);o[Cx("0x0")](r,((t,n={})=>{const i=e[Cx("0xa")].selection;if(i[Cx("0xe")])return void t(n);const x=void 0!==n[Cx("0x11")]?n.forceValue:!s[Cx("0xf")];e[Cx("0x4")]((()=>{const t=Array[Cx("0xd")](i.getRanges());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[Cx("0x14")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xb")][Cx("0x1")]((t=>{const{data:e}=t;if(e&&e[Cx("0x6")]==r)return e[Cx("0x10")][0][Cx("0x11")]?{type:Cx("0x3"),content:Yo(n,Cx("0x9"))}:{type:Cx("0x3"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["name","_getStyleDefinition","style:","add","modelElements","push","styleName","classes","locale","getDefinitionsForView","style.definitions","toLowerCase","change","style","inline","enableCommand","plugins","Style","document","*Remove format:* %0","normalizeConfig","getSelectedBlocks","includes","commandName","model","registerDescriptionCallback","_descriptionFactory","get","commandParams","isBlock","createRangeOn","from","element","afterInit","forceValue","value","editor","enabledStyles","markInlineFormat","find","isCollapsed","commands","config","getAttribute","every","StyleUtils","block","*Format:* %0"];var Ax,vx;Ax=kx,vx=247,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x1a")](){const t=this[Rx("0x1d")];if(!t[Rx("0x9")].has(Rx("0xa")))return;const e=t[Rx("0x22")].get(Rx("0x6")),n=t.plugins[Rx("0x14")]("TrackChangesEditing"),o=t[Rx("0x1")],r=t[Rx("0x9")][Rx("0x14")]("DataSchema"),s=t.plugins.get(Rx("0x26"))[Rx("0xd")](r,t[Rx("0x23")].get(Rx("0x3")));n[Rx("0x8")]("style",((o,{styleName:i})=>{const x=t[Rx("0x11")][Rx("0xb")].selection,a=this[Rx("0x2a")](i,s);if(!a)return;if(!e[Rx("0x1e")][Rx("0xf")](i))return;if(x[Rx("0x21")]&&!a[Rx("0x16")])return void o({styleName:i});const c=!e[Rx("0x1c")][Rx("0xf")](a.name);if(a[Rx("0x16")]){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[Rx("0xf")](o.name)){n[Rx("0x2c")](o);break}}return n}(x[Rx("0xe")](),a[Rx("0x2d")]);t.model[Rx("0x5")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2b")+i})}))}else{let e=Array[Rx("0x18")](x.getRanges());if(!c){const n=Array[Rx("0x18")](r[Rx("0x2")](a[Rx("0x19")],!1))[0][Rx("0x11")],o=[];for(const r of e){const e=this._getRangesWithClasses(t.model,r,a[Rx("0x0")],n);o.push(...e)}e=o}t[Rx("0x11")][Rx("0x5")]((()=>{for(const t of e)n[Rx("0x1f")](t,{commandName:Rx("0x6"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x13")][Rx("0x12")]((t=>{const{data:e}=t;if(e&&Rx("0x6")===e[Rx("0x10")])return e.commandParams[0][Rx("0x1b")]?{type:"format",content:Yo(o,Rx("0x28"),e[Rx("0x15")][0][Rx("0x2f")].toLowerCase())}:{type:"format",content:Yo(o,Rx("0xc"),e[Rx("0x15")][0].styleName[Rx("0x4")]())}}))}_getStyleDefinition(t,e){let n=e[Rx("0x27")].find((e=>e[Rx("0x29")]===t));return n||(n=e[Rx("0x7")][Rx("0x20")]((e=>e[Rx("0x29")]===t))),n}_getRangesWithClasses(t,e,n,o){const r=[];for(const s of e.getItems()){const e=s[Rx("0x24")](o);e&&n[Rx("0x25")]((t=>e[Rx("0x0")][Rx("0xf")](t)))&&r[Rx("0x2e")](t[Rx("0x17")](s))}return r}}const Sx=["addClass","min","*Insert:* %0","tableRow","ELEMENT_TABLE","createPositionAt","colspan","insertTableRowBelow","getAttribute","span","MAX_SAFE_INTEGER","insertTable","getSelectionAffectedTableCells","getContainedElement","classes","ELEMENT_TABLE_COLUMN","_getCoordsForCells","TableEditing","length","order","TableUtils","editor","push","nodeBefore","markMultiRangeDeletion","getChanges","_descriptionFactory","getChangedMarkers","getColumnIndexes","_acceptFormatSuggestionCallbackFactory","start","from","deletion","isTouching","getItems","startsWith","TrackChangesEditing","root","left","nodeAfter","getRanges","type","refresh","add","low","_tableSuggestions","getCellLocation","maxColumn","rowspan","change","change:data","afterInit","highest","toLowerCase","getFirstRange","join","locale","isArray","insertion","substr","element","item","_getSuggestionCoords","maxRow","subType","tablePaste","discard","removeTableRow","registerDescriptionCallback","fromRange","table","enableCommand","insertTableColumnLeft","selectTableRow","addMarker:suggestion","values","isEqual","_suggestionFactory","removeClass","execute","ELEMENT_TABLE_WITH_TEXT","*Remove:* %0","oldRange","name","accept","addRange","last","ELEMENT_TABLE_ROW","batch","insert","createRangeIn","minRow","every","selectTableColumn","registerCustomCallback","_tablePostFixingSubtypes","rootName","writer","selection","plugins","_setupColumnsRowsFixing","enqueueChange","some","tableCell","ELEMENT_TABLE_ROW_WITH_TEXT","end","filter","getRowIndexes","has","findAncestor","cell","commands","mapper","$graveyard","createRangeOn","insertTableRowAbove","model","removeTableColumn","first","minColumn","isIntersectingWithRange","get","getSuggestion","tableColumn","map","$textProxy","hasAttribute","max","setSelection","ELEMENT_TABLE_COLUMN_WITH_TEXT","createTableWalker","data","suggestion","position","document","markMultiRangeInsertion","detach"];var Lx,Nx;Lx=Sx,Nx=393,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x71")]=[Mx("0x15"),Mx("0x4")],this[Mx("0x3f")]=new Set}[Mx("0x45")](){const t=this.editor,e=t.model[Mx("0xf")][Mx("0x74")];if(!t[Mx("0x75")][Mx("0x7e")](Mx("0x23")))return;const n=t[Mx("0x4a")],o=t[Mx("0x75")][Mx("0x2")](Mx("0x36")),r=t.plugins.get(Mx("0x26"));o._descriptionFactory.registerElementLabel(Mx("0x58"),(t=>Yo(n,Mx("0x16"),t))),this[Mx("0x76")](),o[Mx("0x59")](Mx("0x1d")),o[Mx("0x59")](Mx("0x5b")),o.enableCommand(Mx("0x6f"));for(const n of[Mx("0x85"),Mx("0x19")]){const s=t[Mx("0x81")][Mx("0x2")](n);o[Mx("0x59")](n,(n=>{t.model[Mx("0x43")]((t=>{n();const i="above"===s[Mx("0x25")],x=r[Mx("0x1e")](e),a=r[Mx("0x7d")](x),c=i?a[Mx("0x88")]-1:a[Mx("0x68")]+1,l=x[0][Mx("0x7f")](Mx("0x58")),d=r[Mx("0xb")](l,{startRow:c,endRow:c}),u=Array[Mx("0x31")](d)[Mx("0x5")]((e=>t[Mx("0x84")](e[Mx("0x80")])));o[Mx("0x10")](u,Mx("0x15"))}))}))}for(const n of[Mx("0x5a"),"insertTableColumnRight"]){const s=t[Mx("0x81")][Mx("0x2")](n);o[Mx("0x59")](n,(n=>{t[Mx("0x86")][Mx("0x43")]((t=>{n();const i=Mx("0x38")===s.order,x=r[Mx("0x1e")](e),a=r[Mx("0x2e")](x),c=i?a[Mx("0x88")]-1:a.last+1,l=x[0][Mx("0x7f")](Mx("0x58")),d=r[Mx("0xb")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x31")](d)[Mx("0x5")]((e=>t.createRangeOn(e[Mx("0x80")])));o[Mx("0x10")](u,Mx("0x4"))}))}))}for(const n of[Mx("0x55"),Mx("0x87")]){const s=n.substr(11),i=s[Mx("0x47")](),x=i[Mx("0x4d")](0,3)+Mx("0x1b"),a=Mx("0x58")+s,c=Mx("0x13")+s,l="max"+s;o[Mx("0x59")](n,(()=>{t[Mx("0x86")].change((t=>{const s=r[Mx("0x1e")](e),d=s[0].findAncestor(Mx("0x58"));let u;if(Mx("0x55")==n){const t=r[Mx("0x7d")](s);u={startRow:t[Mx("0x88")],endRow:t[Mx("0x68")],includeAllSlots:!0}}else{const t=r[Mx("0x2e")](s);u={startColumn:t[Mx("0x88")],endColumn:t.last,includeAllSlots:!0}}const g=r.createTableWalker(d,u),m=Array.from(g)[Mx("0x5")]((({cell:t})=>t)),f=Ox(m[Mx("0x7c")]((t=>t[Mx("0x7")](x)))),h=Ox(m.filter((t=>!t[Mx("0x7")](x)))).map((e=>t.createRangeOn(e))),b=o[Mx("0x2a")](h,a);if(b&&(Mx("0x15")==b[Mx("0x52")]||Mx("0x4")==b[Mx("0x52")])){const e=this[Mx("0x50")](b);for(const n of f){const o=t[Mx("0x84")](n),s=r[Mx("0x40")](n),a=n[Mx("0x1a")](x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&b[Mx("0x67")](o)}}}))}))}function s(n){const o=Array[Mx("0x31")](e[Mx("0x3a")]())[Mx("0x5")]((t=>i.LiveRange[Mx("0x57")](t)));t.model.change((e=>{const r=e[Mx("0x6a")];n=n[Mx("0x7c")]((t=>Mx("0x83")!=t.root[Mx("0x72")])),e.setSelection(n),t[Mx("0x81")][Mx("0x2")]("removeTableRow")[Mx("0x3c")](),t[Mx("0x61")](Mx("0x55"),{forceDefaultExecution:!0}),t.model[Mx("0x77")]((()=>{t[Mx("0x86")][Mx("0x77")](r,(t=>{const e=o.filter((t=>Mx("0x83")!=t[Mx("0x37")][Mx("0x72")]));e[Mx("0x24")]>0&&t[Mx("0x9")](e);for(const t of o)t[Mx("0x11")]()}))}))}))}function a(n){t.model[Mx("0x43")]((o=>{const r=Array[Mx("0x31")](e[Mx("0x3a")]())[Mx("0x5")]((t=>i.LiveRange[Mx("0x57")](t))),s=[];for(const t of n)for(const e of t[Mx("0x34")]({shallow:!0}))s[Mx("0x28")](e);for(const e of s)Mx("0x83")!=e.root[Mx("0x72")]&&(o[Mx("0x9")](o[Mx("0x17")](e,0)),t.commands[Mx("0x2")]("removeTableColumn").refresh(),t[Mx("0x61")](Mx("0x87"),{forceDefaultExecution:!0}));const x=r[Mx("0x7c")]((t=>Mx("0x83")!=t[Mx("0x37")].rootName));x[Mx("0x24")]>0&&o[Mx("0x9")](x);for(const t of r)t[Mx("0x11")]()}))}function c(t,e){return e[Mx("0x6e")]((e=>t[Mx("0x78")]((t=>t[Mx("0x7b")][Mx("0x5e")](e[Mx("0x30")])||e.end[Mx("0x5e")](t[Mx("0x30")])))))}function l(t,e){return t.some((t=>e[Mx("0x78")]((e=>t[Mx("0x7b")][Mx("0x33")](e[Mx("0x30")])))))}t[Mx("0xc")].downcastDispatcher.on(Mx("0x5c"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e[Mx("0x4f")];if(!o)return;const r=n[Mx("0x82")].toViewElement(o);function s(t){return Array[Mx("0x4b")](t)?t:[t]}r&&Mx("0x79")===o[Mx("0x65")]&&(0,x.setHighlightHandling)(r,n[Mx("0x73")],((t,e,n)=>n[Mx("0x12")](s(e[Mx("0x20")]),t)),((t,e,n)=>n[Mx("0x60")](s(e[Mx("0x20")]),t)))}),{priority:Mx("0x46")}),o[Mx("0x2c")][Mx("0x56")]((t=>{if(Mx("0x4c")!=t[Mx("0x3b")]&&Mx("0x32")!=t[Mx("0x3b")])return;const e=t[Mx("0x1f")]();if(null!=e&&e.is(Mx("0x4e"),"table")){if(Mx("0x4c")==t[Mx("0x3b")]){const e=t[Mx("0x34")]().filter((t=>t.is("$textProxy"))).map((t=>t.data));if(e[Mx("0x24")])return{type:Mx("0x4c"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x49")](" ")+'"'))}}if("deletion"==t[Mx("0x3b")]){const e=t.getItems().filter((t=>t.is(Mx("0x6"))))[Mx("0x5")]((t=>t.data));if(e[Mx("0x24")])return{type:Mx("0x32"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x62"),'"'+e[Mx("0x49")](" ")+'"'))}}}})),o[Mx("0x2c")][Mx("0x56")]((t=>{if("tableRow"==t[Mx("0x52")]){const e=t[Mx("0x34")]()[Mx("0x7c")]((t=>t.is(Mx("0x6"))))[Mx("0x5")]((t=>t[Mx("0xc")])),o=this._getSuggestionCoords(t),r=o[Mx("0x51")]-o[Mx("0x6d")]+1;if(Mx("0x4c")==t[Mx("0x3b")])return e.length?{type:Mx("0x4c"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x7a"),[r,'"'+e[Mx("0x49")](" ")+'"']))}:{type:Mx("0x4c"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x69"),r))};if(Mx("0x32")==t[Mx("0x3b")])return e.length?{type:Mx("0x32"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x7a"),[r,'"'+e[Mx("0x49")](" ")+'"']))}:{type:Mx("0x32"),content:Yo(n,Mx("0x63"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(Mx("0x4")==t[Mx("0x52")]){const e=t[Mx("0x34")]()[Mx("0x7c")]((t=>t.is("$textProxy"))).map((t=>t.data)),o=this[Mx("0x50")](t),r=o[Mx("0x41")]-o[Mx("0x0")]+1;if("insertion"==t[Mx("0x3b")])return e[Mx("0x24")]?{type:Mx("0x4c"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0xa"),[r,'"'+e.join(" ")+'"']))}:{type:Mx("0x4c"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x21"),r))};if(Mx("0x32")==t[Mx("0x3b")])return e[Mx("0x24")]?{type:"deletion",content:Yo(n,Mx("0x63"),Yo(n,Mx("0xa"),[r,'"'+e.join(" ")+'"']))}:{type:Mx("0x32"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x21"),r))}}})),o._suggestionFactory[Mx("0x70")](Mx("0x4c"),"tableRow",Mx("0x54"),s),o[Mx("0x5f")].registerCustomCallback(Mx("0x32"),Mx("0x15"),Mx("0x66"),s),o[Mx("0x5f")][Mx("0x70")]("insertion",Mx("0x4"),"discard",a),o[Mx("0x5f")][Mx("0x70")](Mx("0x32"),"tableColumn","accept",a),o._suggestionFactory[Mx("0x70")]("insertion",Mx("0x4"),Mx("0x49"),c),o[Mx("0x5f")][Mx("0x70")]("deletion",Mx("0x4"),"join",c),o[Mx("0x5f")].registerCustomCallback("insertion",Mx("0x15"),"join",l),o[Mx("0x5f")][Mx("0x70")]("deletion",Mx("0x15"),Mx("0x49"),l)}[Mx("0x2f")](){const t=this[Mx("0x27")],e=t[Mx("0x86")][Mx("0xf")].selection;return(n,o)=>{t.model.change((r=>{const{commandName:s,commandParams:x}=o;let a=n[0].end[Mx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[Mx("0x39")]);const c=r[Mx("0x6c")](a);if(Mx("0x83")==c[Mx("0x37")][Mx("0x72")])return;const l=Array.from(e[Mx("0x3a")]())[Mx("0x5")]((t=>i.LiveRange.fromRange(t)));r.setSelection(c),t[Mx("0x81")][Mx("0x2")](s).refresh(),x[Mx("0x28")]({forceDefaultExecution:!0}),t.execute(s,...x);const d=l.filter((t=>Mx("0x83")!=t[Mx("0x37")][Mx("0x72")]));d[Mx("0x24")]>0&&r[Mx("0x9")](d);for(const t of l)t[Mx("0x11")]()}))}}[Mx("0x22")](t){const e=this[Mx("0x27")][Mx("0x75")].get(Mx("0x26"));let n=Number[Mx("0x1c")],o=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x83")==i[Mx("0x37")][Mx("0x72")])continue;const{row:t,column:x}=e[Mx("0x40")](i),a=i[Mx("0x7")](Mx("0x42"))?i[Mx("0x1a")](Mx("0x42"))-1:0,c=i[Mx("0x7")](Mx("0x18"))?i.getAttribute(Mx("0x18"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Mx("0x76")](){const t=this[Mx("0x27")],e=t[Mx("0x75")][Mx("0x2")]("TrackChangesEditing"),n=t.plugins.get("TableUtils");t[Mx("0x86")][Mx("0xf")].on(Mx("0x44"),(()=>{const n=Array[Mx("0x31")](t[Mx("0x86")][Mx("0xf")].differ[Mx("0x2d")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if(Mx("0xd")!=n)continue;if(null!=o[Mx("0x64")])continue;const i=e[Mx("0x3")](r);this[Mx("0x71")].includes(s)&&this[Mx("0x3f")][Mx("0x3d")](i)}}),{priority:Mx("0x3e")});const o=(t,e)=>{let o=!1;const r=e[Mx("0x84")](t),s=t[Mx("0x7f")](Mx("0x58")),i=n[Mx("0x40")](t);for(const e of this[Mx("0x3f")]){const n=e[Mx("0x52")],x=n[Mx("0x35")](Mx("0x53")),a=n[Mx("0x4d")](x?10:5),c=a[Mx("0x47")](),l=c.substr(0,3)+"span",d=Mx("0x13")+a,u=Mx("0x8")+a;if(!e.isInContent)continue;if(s!=e[Mx("0x48")]()[Mx("0x30")][Mx("0x7f")]("table"))continue;if(e[Mx("0x1")](r))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x50")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x67")](r),o=!0)}return o};t[Mx("0x86")].document.registerPostFixer((e=>{let n=!1;for(const r of t.model.document.differ[Mx("0x2b")]())if(Mx("0x6b")==r[Mx("0x3b")])if(Mx("0x15")==r[Mx("0x65")])for(const t of r.position[Mx("0x39")].getChildren())n=n||o(t,e);else"tableCell"==r[Mx("0x65")]&&(n=n||o(r[Mx("0xe")][Mx("0x39")],e));return n}))}[Mx("0x50")](t){return this[Mx("0x22")](t.getRanges().map((t=>t[Mx("0x30")][Mx("0x39")])))}}function Ox(t){return Array[Mx("0x31")](new Set(t)[Mx("0x5d")]())}const Fx=["getAncestors","low","find","enableCommand","mergeTableCellUp","plugins","*Merge cells*","commandName","containsRange","detach","direction","_areSelectedCellsMergable","TableEditing","getSuggestions","insertion","registerDescriptionCallback","mergeTableCellLeft","TableUtils","filter","isInContent","length","setSelection","execute","set:isEnabled","getRanges","cell","getSelectionAffectedTableCells","editor","fromRange","_descriptionFactory","getFirstPosition","$graveyard","model","tableCell","markMultiRangeBlockFormat","add","findAncestor","value","change","isEnabled","registerCustomCallback","requires","splitTableCellHorizontally","afterInit","createRangeOn","refresh","mergeTableCells","document","subType","root","stop","size","commands","splitTableCellVertically","deletion","markBlockFormat","author","locale","selection","_isForcedDefaultExecutionBlock","table","trackChanges","get","mergeTableCellDown","*Split cell:* vertically","map","accept","from","element","push","format","TrackChangesEditing","type","_areMergableCells","rootName","has","formatBlock","_suggestionFactory","mergeTableCellRight"];var Px,Dx;Px=Fx,Dx=234,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x2c")](){return[wx]}[Bx("0x2e")](){const t=this[Bx("0x1e")],e=t[Bx("0x23")][Bx("0x32")][Bx("0x3d")],n=t[Bx("0x3c")];if(!t[Bx("0x8")].has(Bx("0xf")))return;const o=t.plugins.get("TrackChangesEditing"),r=t[Bx("0x8")][Bx("0x41")](Bx("0x14")),s=t.plugins[Bx("0x41")](wx);s._tablePostFixingSubtypes[Bx("0x48")](Bx("0x31")),o.enableCommand(Bx("0x31"),(()=>{const e=r[Bx("0x1d")](t.model.document[Bx("0x3d")]);t[Bx("0x23")].change((()=>{o[Bx("0x25")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x37")][Bx("0x41")](Bx("0x31")).on("execute",((e,n)=>{t[Bx("0x37")][Bx("0x41")](Bx("0x40"))[Bx("0x28")]&&(n[Bx("0x17")]>0&&n[n.length-1]&&n[n.length-1].forceDefaultExecution||o[Bx("0x3e")]||this[Bx("0xe")]()||e[Bx("0x35")]())}),{priority:"highest"});for(const e of[Bx("0x7"),Bx("0x2"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x37")][Bx("0x41")](e);o[Bx("0x6")](e,(()=>{const e=t[Bx("0x23")].document.selection[Bx("0x21")]()[Bx("0x3")]()[Bx("0x5")]((t=>t.is("element","tableCell"))),r=n[Bx("0x28")];t[Bx("0x23")].change((()=>{o[Bx("0x25")]([e,r],{commandName:Bx("0x31"),commandParams:[]},[],Bx("0x31"))}))}))}for(const e of[Bx("0x38"),Bx("0x2d")]){const n=t[Bx("0x37")][Bx("0x41")](e);o[Bx("0x6")](e,(()=>{const s=r[Bx("0x1d")](t[Bx("0x23")][Bx("0x32")][Bx("0x3d")])[0],i=s[Bx("0x27")](Bx("0x3f")),{column:x,row:a}=r.getCellLocation(s);let c=[];if("horizontally"==n[Bx("0xd")]){const t=r.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x46")](t)[Bx("0x44")]((t=>t[Bx("0x1c")]))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x46")](t)[Bx("0x44")]((t=>t[Bx("0x1c")]))}t[Bx("0x23")][Bx("0x29")]((t=>{o[Bx("0x3a")](t[Bx("0x2f")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0xa")]?{type:Bx("0x49"),content:Yo(n,Bx("0x9"))}:void 0})),o[Bx("0x20")][Bx("0x12")]((t=>{const{data:e}=t;if(e)return Bx("0x38")==e[Bx("0xa")]?{type:Bx("0x49"),content:Yo(n,Bx("0x43"))}:Bx("0x2d")==e[Bx("0xa")]?{type:Bx("0x49"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=s._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",Bx("0x2"),Bx("0x42"),Bx("0x13")])o[Bx("0x1")].registerCustomCallback(Bx("0x0"),t,Bx("0x45"),x);for(const t of[Bx("0x38"),"splitTableCellHorizontally"])o[Bx("0x1")][Bx("0x2b")](Bx("0x0"),t,Bx("0x45"),x);o[Bx("0x1")][Bx("0x2b")]("formatBlock",Bx("0x31"),Bx("0x45"),(n=>{t[Bx("0x23")][Bx("0x29")]((o=>{const r=Array[Bx("0x46")](e.getRanges())[Bx("0x44")]((t=>i.LiveRange[Bx("0x1f")](t)));o[Bx("0x18")](n),t[Bx("0x37")].get(Bx("0x31"))[Bx("0x30")](),t[Bx("0x19")](Bx("0x31"),{forceDefaultExecution:!0});const s=r[Bx("0x15")]((t=>Bx("0x22")!=t[Bx("0x34")][Bx("0x4d")]));s[Bx("0x17")]>0&&o[Bx("0x18")](s);for(const t of r)t[Bx("0xc")]()}))}));for(const e of[Bx("0x7"),"mergeTableCellDown",Bx("0x13"),Bx("0x2")]){const n=t[Bx("0x37")][Bx("0x41")](e);n.on(Bx("0x1a"),((e,o,r)=>{if(r){const o=t[Bx("0x23")][Bx("0x32")][Bx("0x3d")][Bx("0x21")]()[Bx("0x3")]()[Bx("0x5")]((t=>t.is(Bx("0x47"),Bx("0x24"))));this[Bx("0x4c")](n.value,o)||(e.return=!1,e[Bx("0x35")]())}}),{priority:Bx("0x4")})}}_areSelectedCellsMergable(){const t=this.editor[Bx("0x37")].get(Bx("0x31")),e=this[Bx("0x1e")][Bx("0x8")][Bx("0x41")](Bx("0x14"));if(!t[Bx("0x2a")])return!1;const n=e[Bx("0x1d")](this[Bx("0x1e")][Bx("0x23")][Bx("0x32")][Bx("0x3d")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4c")](t,e))return!1;return!0}[Bx("0x4c")](t,e){const n=this.editor[Bx("0x8")].get(Bx("0x4a")),o=this[Bx("0x1e")][Bx("0x23")][Bx("0x2f")](t),r=this[Bx("0x1e")][Bx("0x23")][Bx("0x2f")](e),s=new Set,i=new Set;for(const t of n[Bx("0x10")]())if((Bx("0x11")==t[Bx("0x4b")]||Bx("0x39")==t[Bx("0x4b")]||Bx("0x31")==t[Bx("0x33")])&&t[Bx("0x16")])for(const e of t[Bx("0x1b")]())e.containsRange(o,!0)&&s[Bx("0x26")](t.type+":"+t[Bx("0x3b")].id),e[Bx("0xb")](r,!0)&&i[Bx("0x26")](t.type+":"+t.author.id);if(s.size!=i[Bx("0x36")])return!1;for(const t of s)if(!i[Bx("0x4e")](t))return!1;return!0}}const Ux=["downcastDispatcher","writer","_descriptionFactory","FORMAT_REGULAR_ROW","childCount","options","registerCustomCallback","addMarker:suggestion","consume","removeClass","value","_acceptFormatSuggestionCallbackFactory","editing","ck-suggestion-marker--active","consumable","setTableColumnHeader","isBefore","removeAttribute","setAttribute","TableUtils","forceValue","plugins","findAncestor","commandParams","data","locale","createPositionAfter","getChild","getAttribute","has","headingRows","commands","stop","mapper","model","ck-suggestion-marker-","markerNameToElements","createTableWalker","getColumnIndexes","format","formatBlock","last","accept","addClass","item","getRowIndexes","nodeAfter","get","TrackChangesEditing","from","change","nodeBefore","afterInit","setTableRowHeader","end","getCellLocation","cell","_suggestionFactory","*Format:* %0","markerRange","bindElementToMarker","createPositionBefore","index","highest","parent","_splitMarkerName","getSuggestion","createRange","toViewElement","removeMarker:suggestion","unbindElementFromMarkerName","selection","FORMAT_HEADER_COLUMN","table","requires","commandName","editor","registerDescriptionCallback","getSelectionAffectedTableCells","data-suggestion","document","markerName","first"];var Gx,Hx;Gx=Ux,Hx=190,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get[zx("0x32")](){return[wx]}[zx("0x1c")](){const t=this[zx("0x34")];if(!t.plugins[zx("0x5")]("TableEditing"))return;const e=t[zx("0x1")],n=t[zx("0x50")][zx("0x17")](zx("0x18")),o=t[zx("0x50")].get(zx("0x4e")),r=t[zx("0x50")].get(wx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x29")](s[zx("0x39")]),c=n[zx("0x2a")](a);if(!c[zx("0x0")]||"setTableColumnHeader"!=c[zx("0x0")][zx("0x33")])return;if(s[zx("0x14")])return void r[zx("0x8")]();if(!i[zx("0x49")][zx("0x43")](s[zx("0x23")],r.name))return;const l=s[zx("0x23")].start[zx("0x16")],d=s.markerRange[zx("0x1e")][zx("0x1b")],u=l[zx("0x28")].parent,{column:g}=o[zx("0x1f")](l),{column:m}=o[zx("0x1f")](d);for(let r=g;r<=m;r++){const c=o[zx("0xd")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x20")],c=i[zx("0x9")][zx("0x2c")](r);i.writer[zx("0x13")](zx("0xb")+x,c),e&&i[zx("0x3c")][zx("0x4d")](zx("0x37"),a,c),i[zx("0x9")][zx("0x24")](c,s[zx("0x39")]),t&&(n.activeMarkers.includes(s[zx("0x39")])?i.writer[zx("0x13")](zx("0x48"),c):i.writer.removeClass("ck-suggestion-marker--active",c))}}}}n.enableCommand(zx("0x1d"),((e,r)=>{const s=o[zx("0x36")](t.model.document[zx("0x2f")]),i=o[zx("0x15")](s),x=s[0].findAncestor(zx("0x31")),a=x.getAttribute(zx("0x6"))||0,c=r&&null!==r[zx("0x4f")]?r[zx("0x4f")]:!t[zx("0x7")][zx("0x17")](zx("0x1d"))[zx("0x45")],l=c?i.last:i[zx("0x3a")],d=x[zx("0x3")](l);let u;if(c){const e=x[zx("0x3")](a);if(d[zx("0x26")]<e.index)return;u=t[zx("0xa")][zx("0x2b")](t[zx("0xa")][zx("0x25")](e[zx("0x3")](0)),t[zx("0xa")][zx("0x2")](d[zx("0x3")](d[zx("0x3f")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0xa")][zx("0x2b")](t[zx("0xa")][zx("0x25")](d[zx("0x3")](0)),t[zx("0xa")][zx("0x2")](e[zx("0x3")](e[zx("0x3f")]-1)))}t.model.change((()=>{n.markBlockFormat(u,{commandName:zx("0x1d"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const r=t[zx("0x50")][zx("0x17")](zx("0x4e")),s=r[zx("0x36")](t[zx("0xa")][zx("0x38")][zx("0x2f")]),i=r[zx("0xe")](s),x=s[0][zx("0x51")]("table"),a=x[zx("0x4")]("headingColumns")||0,c=o&&null!==o[zx("0x4f")]?o.forceValue:!t[zx("0x7")][zx("0x17")]("setTableColumnHeader")[zx("0x45")];let l;const d=x[zx("0x3")](0),u=c?i[zx("0x11")]:i[zx("0x3a")],g=r[zx("0xd")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x19")](g)[0][zx("0x20")];if(c){const e=d.getChild(a);if(m[zx("0x4b")](e))return;l=t[zx("0xa")][zx("0x2b")](t[zx("0xa")][zx("0x25")](e),t[zx("0xa")][zx("0x2")](m))}else{const e=d[zx("0x3")](a-1);if(!e)return;l=t[zx("0xa")].createRange(t[zx("0xa")][zx("0x25")](m),t[zx("0xa")][zx("0x2")](e))}t[zx("0xa")][zx("0x1a")]((()=>{n.markBlockFormat(l,{commandName:zx("0x4a"),commandParams:[{forceValue:c}]},[],zx("0x4a"))}))})),t[zx("0x47")][zx("0x3b")].on(zx("0x42"),s(),{priority:zx("0x27")}),t.data[zx("0x3b")].on("addMarker:suggestion",((t,e,n)=>{n[zx("0x40")].showSuggestionHighlights&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x27")}),t[zx("0x47")][zx("0x3b")].on(zx("0x2d"),((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e[zx("0x39")]),i=n[zx("0x2a")](s);if(!i[zx("0x0")]||zx("0x4a")!=i[zx("0x0")].commandName)return;const x=o.mapper[zx("0xc")](e.markerName);if(x)for(const t of x)o[zx("0x3c")][zx("0x44")](zx("0xb")+r,t),o.writer[zx("0x44")](zx("0x48"),t),o[zx("0x3c")][zx("0x4c")](zx("0x37"),t),o.mapper[zx("0x2e")](t,e[zx("0x39")])}),{priority:zx("0x27")}),n[zx("0x3d")][zx("0x35")]((t=>{const{data:n}=t;if(n){if(zx("0x1d")==n[zx("0x33")]){const t=n[zx("0x52")][0][zx("0x4f")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x3e")))}if("setTableColumnHeader"==n[zx("0x33")]){const t=n[zx("0x52")][0].forceValue;return o(Yo(e,t?zx("0x30"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0xf"),content:Yo(e,zx("0x22"),t)}}}));const i=r[zx("0x46")]();n[zx("0x21")][zx("0x41")](zx("0x10"),zx("0x1d"),"accept",i),n[zx("0x21")].registerCustomCallback(zx("0x10"),zx("0x4a"),zx("0x12"),i)}}const Wx=["type","nextSibling","editingDowncast","endRow","tableCellBorderColor","markMultiRangeInsertion","unwrap","start","document","markers","rowInsertionIndexes","_splitMarkerName","previous","_replaceTableSlotCell","tableCellSuggestion","tableCellHorizontalAlignment","tableCellPadding","_suggestionFactory","suggestion-td","tableCellBorderWidth","trackChanges","tablePasteChainId","editing","element","getColumns","fromEntries","join","register","dataDowncast","content","columnInsertionRanges","$graveyard","createRange","suggestion:formatBlock:tablePasteCell","registerCustomCallback","getTableIfOnlyTableInContent","differ","tablePasteRow","commands","tablePaste","for","tableCellBorderStyle","schema","markMultiRangeBlockFormat","removeColumns","isInContent","Users","tableCell","editor","includes","rowInsertionRanges","suggestion","tablePasteColumn","length","row","accept","low","add","registerPostFixer","redo","from","tableCellBackgroundColor","getContainedElement","locale","findAncestor","position","tablePasteCell","startsWith","setAttribute","get","stop","selection","getSelectionAffectedTableCells","previousSibling","ck-suggestion-marker--active","_getCoordsForCells","return","createRangeIn","getRows","some","getChild","set","getSuggestion","insertContent","setAttributes","columnInsertionIndexes","cell","batch","removeMarker","insertColumns","deletion","getSuggestions","getChanges","formatBlock","registerDescriptionCallback","ck-suggestion-marker","removeMarkers","clipboardOutput","first","map","value","move","containsRange","markerAttributes","getRanges","last","_createdBatches","elementToElement","getRange","insert","hasSuggestion","removeRows","forceDefaultExecution","createTableWalker","every","name","getAttributes","insertionRanges","rows","createRangeOn","getChildren","newRange","plugins","filter","model","afterInit","getSuggestionCallback","subType","remove","fill","markerName","getColumnIndexes","high","markMultiRangeDeletion","TableUtils","isEqual","documentSelection","push","reduce","_isForcedDefaultExecutionBlock","createElement","next","paragraph","showSuggestionHighlights","getChangedMarkers","requires","getMarkers","getShiftedBy","endColumn","*Replace table cells*","TableClipboard","find","change","oldRange","attributes","discard","has","insertion","isEmpty","_descriptionFactory","cells","table","markerToHighlight"];var Kx,qx;Kx=Wx,qx=376,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]},$x=[Xx("0x84"),Xx("0x75"),Xx("0x9a"),Xx("0x80"),"tableCellVerticalAlignment",Xx("0xb"),Xx("0x81")],Qx=Object[Xx("0x8a")]($x.map((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x5f")](){return[wx]}[Xx("0x4b")](){const t=this[Xx("0xa1")];if(!t[Xx("0x48")][Xx("0x6a")](Xx("0x64")))return;const n=t[Xx("0x48")][Xx("0x13")]("TrackChangesEditing"),o=t.plugins.get(Xx("0x54")),r=t[Xx("0x48")][Xx("0x13")](wx),s=t[Xx("0x48")][Xx("0x13")](Xx("0x64"));r._tablePostFixingSubtypes[Xx("0x57")](Xx("0x96"),Xx("0x2")),t[Xx("0x4a")][Xx("0x9b")][Xx("0x8c")](Xx("0x7f"),{allowIn:Xx("0xa0"),allowContentOf:Xx("0xa0"),isLimit:!0}),t.conversion[Xx("0x39")]({model:"tableCellSuggestion",view:Xx("0x83")});let i=null;t[Xx("0x4a")].on(Xx("0x21"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x3e")]||n[Xx("0x59")]||this[Xx("0xa1")][Xx("0x97")][Xx("0x13")](Xx("0x85"))[Xx("0x32")]&&function(t,e,n,o,r){if(e&&!e.is(Xx("0x56")))return!1;const s=r[Xx("0x94")](t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o[Xx("0x16")](n.document[Xx("0x15")]);if(!i[Xx("0x3")])return!1;const x=i[0][Xx("0xe")](Xx("0x6f")),a=o.getRowIndexes(i),c=o[Xx("0x51")](i),l={startRow:a.first,endRow:a[Xx("0x37")],startColumn:c[Xx("0x30")],endColumn:c[Xx("0x37")]};return 1==i.length&&(l[Xx("0x74")]+=o[Xx("0x1c")](s)-1,l[Xx("0x62")]+=o[Xx("0x89")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0x4a")],o,s)&&(r[Xx("0x14")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x4a")][Xx("0x66")]((()=>{t.model[Xx("0x21")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x3")]&&n[Xx("0x76")](r,Xx("0x96"),{tablePasteChainId:o}),s[Xx("0x3")]&&n[Xx("0x76")](s,Xx("0x2"),{tablePasteChainId:o}),a[Xx("0x3")]&&n.markMultiRangeInsertion(a,Xx("0x98"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x3")]&&n[Xx("0x53")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x9c")](l[Xx("0x31")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x10"),{tablePasteChainId:o});if(d){const e=d[Xx("0x60")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Xx("0x4a")][Xx("0x45")](o),i=e[Xx("0x65")]((t=>t[Xx("0x3a")]()[Xx("0x55")](s)));i&&n[Xx("0x57")]([i.name,r])}n[Xx("0x3")]&&d[Xx("0x12")](Xx("0x35"),Object[Xx("0x8a")](n))}i=null})))}),{priority:e.priorities[Xx("0x52")]+10}),t[Xx("0x48")][Xx("0x13")](Xx("0x64")).on(Xx("0x7e"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Xx("0x14")]();const s=n[Xx("0x24")],x=o,a=Zx(s),c=Zx(x);t[Xx("0x1a")]=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x4e")](s[Xx("0x1e")](0));for(const t of Array[Xx("0xa")](x.getChildren()))r[Xx("0x3b")](t,s,"end");const t=i[Xx("0x7b")][Xx("0xa2")](n[Xx("0x4")]),e=i[Xx("0x23")].includes(n.column);t||e||(l=r[Xx("0x1b")](s))}else c&&!a&&(d=r[Xx("0x1b")](s));else{const t=r[Xx("0x5a")]("tableCellSuggestion"),e=r.createElement(Xx("0x7f"));r.wrap(r[Xx("0x1b")](s),e),r[Xx("0x3b")](t,s,0);for(const e of Array[Xx("0xa")](x[Xx("0x46")]()))r.insert(e,t,"end");l=r[Xx("0x45")](t),d=r.createRangeOn(e)}const u=Array[Xx("0xa")](x[Xx("0x42")]()).filter((([t])=>$x[Xx("0xa2")](t)));i[Xx("0x6e")].push({element:s,attributes:u[Xx("0x3")]?Object[Xx("0x8a")](u):null}),l&&i[Xx("0x43")][Xx("0x57")](l),d&&i.deletionRanges[Xx("0x57")](d)}),{priority:Xx("0x52")}),o.on(Xx("0x27"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s.columns||1;i[Xx("0x23")]=new Array(a)[Xx("0x4f")](x)[Xx("0x31")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](r,{startColumn:x,endColumn:x+a-1}))i[Xx("0x8f")][Xx("0x57")](t[Xx("0x4a")][Xx("0x45")](e))}),{priority:Xx("0x6")}),o.on("insertRows",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x44")]||1;i[Xx("0x7b")]=new Array(a)[Xx("0x4f")](x)[Xx("0x31")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x3f")](r,{startRow:x,endRow:x+a-1}))i[Xx("0x0")][Xx("0x57")](t[Xx("0x4a")][Xx("0x45")](e))}),{priority:Xx("0x6")}),n[Xx("0x6d")][Xx("0x2c")]((e=>{if(e[Xx("0x4d")]&&e[Xx("0x4d")][Xx("0x11")](Xx("0x98")))return e[Xx("0x7d")]?{}:{type:Xx("0x6b"),content:Yo(t[Xx("0xd")],Xx("0x63"))}}));const x=()=>{};for(const t of["tablePaste",Xx("0x2"),"tablePasteRow",Xx("0x10")])n[Xx("0x82")][Xx("0x93")](Xx("0x6b"),t,Xx("0x8b"),x),n._suggestionFactory[Xx("0x93")](Xx("0x28"),t,"join",x);n._suggestionFactory[Xx("0x93")](Xx("0x2b"),Xx("0x10"),Xx("0x69"),x),n[Xx("0x82")][Xx("0x93")](Xx("0x2b"),Xx("0x10"),Xx("0x5"),((e,n,o)=>{const r=e[Xx("0x31")]((t=>t[Xx("0xc")]())).filter((t=>t)),s=new Map(r[Xx("0x31")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x6e")])e&&s[Xx("0x1f")](t,e);else if(o&&o[Xx("0x35")])for(const[e,n]of Object.entries(o[Xx("0x35")])){const o=t[Xx("0x4a")][Xx("0x7a")][Xx("0x13")](e),r=o?o[Xx("0x3a")]()[Xx("0xc")]():null;r&&s[Xx("0x1f")](r,n)}t.model[Xx("0x66")]((t=>{for(const[e,n]of s)t[Xx("0x22")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x82")][Xx("0x93")](e,"tablePaste",o,((r,s,i)=>{t[Xx("0x4a")][Xx("0x66")]((t=>{const x=[];for(const t of r){const e=t[Xx("0x78")].nodeAfter;e.is(Xx("0x88"),Xx("0x7f"))&&x[Xx("0x57")](e)}n[Xx("0x82")][Xx("0x4c")](e,null,o)(r,s,i);for(const e of x)Xx("0x90")!=e.root.rootName&&t[Xx("0x77")](e)}))}))};a(Xx("0x6b"),Xx("0x5")),a(Xx("0x6b"),Xx("0x69")),a(Xx("0x28"),"accept"),a(Xx("0x28"),Xx("0x69")),n[Xx("0x82")][Xx("0x93")](Xx("0x6b"),Xx("0x96"),Xx("0x69"),(t=>{const e=t[Xx("0x31")]((t=>t[Xx("0xc")]())),n=e[0][Xx("0xe")](Xx("0x6f")),{minRow:s,maxRow:i}=r[Xx("0x19")](e);o[Xx("0x3d")](n,{at:s,rows:i-s+1})})),n[Xx("0x82")].registerCustomCallback(Xx("0x6b"),Xx("0x2"),Xx("0x69"),(t=>{const e=t[Xx("0x31")]((t=>t.getContainedElement())),n=e[0][Xx("0xe")](Xx("0x6f")),{minColumn:s,maxColumn:i}=r[Xx("0x19")](e);o[Xx("0x9d")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x4d")]||!e[Xx("0x4d")][Xx("0x11")](Xx("0x98")))return;const o=e[Xx("0x68")][Xx("0x86")],r=n[Xx("0x29")]().filter((t=>t[Xx("0x9e")]&&t.attributes&&t[Xx("0x68")][Xx("0x86")]==o));r[Xx("0x3")]&&e.getAllAdjacentSuggestions()[Xx("0x3")]!=r[Xx("0x3")]&&r[Xx("0x58")](((t,e)=>(t[Xx("0x5b")]=e,e[Xx("0x7d")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x7c")](t[Xx("0x50")]),r=[Xx("0x2d"),"ck-suggestion-marker-insertion"],s=n.activeMarkers.includes(t.markerName);return s&&r[Xx("0x57")](Xx("0x18")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x52")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Xx("0x4a")][Xx("0x79")].registerPostFixer((()=>{let e=!1;const o=Array.from(t[Xx("0x4a")].document.differ[Xx("0x5e")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n._splitMarkerName(r);if(Xx("0x1")!=o||Xx("0x28")!=i||s[Xx("0x67")])continue;if(!n[Xx("0x3c")](x))continue;const a=n[Xx("0x20")](x).getRanges(),c=t[Xx("0x48")][Xx("0x13")](Xx("0x9f")).me;for(const t of n[Xx("0x29")]())if(t[Xx("0x9e")]&&t.author==c&&"formatBlock"==t[Xx("0x71")]&&"tablePasteCell"==t[Xx("0x4d")]&&t[Xx("0x36")]()[Xx("0x40")]((t=>a[Xx("0x1d")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x9e")]&&(n.discard(),e=!0)}return e})),t[Xx("0x4a")].document.registerPostFixer((e=>{const o=t.commands.get(Xx("0x9"));if(!o||!o[Xx("0x38")][Xx("0x6a")](e[Xx("0x25")]))return!1;let r=!1;const s=t[Xx("0x48")][Xx("0x13")]("Users").me,i=t[Xx("0x4a")][Xx("0x79")][Xx("0x95")][Xx("0x2a")](),x=Array[Xx("0xa")](t[Xx("0x4a")].document[Xx("0x95")][Xx("0x5e")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x7c")](t);return"suggestion"==o&&Xx("0x98")==r&&i==s.id&&!e[Xx("0x67")]}));for(const t of i){if("insert"!=t.type||Xx("0x7f")!=t[Xx("0x41")]||1!=t.length)continue;const n=e[Xx("0x91")](t.position,t[Xx("0xf")][Xx("0x61")](1));if(!x.find((({data:t})=>t[Xx("0x47")][Xx("0x55")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x34")](o[Xx("0x47")])){e.updateMarker(t,{range:n}),r=!0;break}}return r})),t[Xx("0x4a")][Xx("0x79")][Xx("0x8")]((e=>{let o=!1;const r=t.plugins.get(Xx("0x9f")).me,s=n[Xx("0x29")]()[Xx("0x49")]((t=>t.isInContent&&t.author==r)),i=new Set,x=new Set;for(const t of s)if(Xx("0x98")==t.subType)for(const e of t.getMarkers()){const n=e[Xx("0x3a")]().getContainedElement();if(n)if(n.is(Xx("0x88"),Xx("0x7f"))&&Zx(n)){t.removeMarker(e[Xx("0x41")]),i[Xx("0x7")](n),o=!0;const r=n[Xx("0x72")],s=n[Xx("0x17")],a=r&&r.is(Xx("0x88"),Xx("0x7f")),c=s&&s.is("element","tableCellSuggestion");a&&!i.has(r)&&x[Xx("0x7")](r),c&&!i[Xx("0x6a")](s)&&x[Xx("0x7")](s)}else n.is(Xx("0x88"),Xx("0x5c"))&&n[Xx("0x6c")]&&(t[Xx("0x26")](e.name),o=!0)}else if(Xx("0x10")==t[Xx("0x4d")]){if(!t[Xx("0x68")]||!t[Xx("0x68")][Xx("0x86")])continue;const e=t.attributes[Xx("0x35")];if(e&&Object.keys(e).length)continue;const n=t[Xx("0x68")][Xx("0x86")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x4d")]&&e[Xx("0x4d")][Xx("0x11")](Xx("0x98"))){if(!e[Xx("0x68")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x86")]==n){r=!1;break}}i&&r&&(t[Xx("0x2e")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e.unwrap(t);return o})),t.conversion.for(Xx("0x73"))[Xx("0x70")]({model:Xx("0x92"),view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Xx("0x99")](Xx("0x8d"))[Xx("0x70")]({model:Xx("0x92"),view:(t,e)=>e.options[Xx("0x5d")]?l(t,!1):null,converterPriority:Xx("0x52")});const d=t[Xx("0x87")].view;this.listenTo(d[Xx("0x79")],Xx("0x2f"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xx("0x8e")]).getItems())t.is(Xx("0x88"),Xx("0x83"))&&n[Xx("0x57")](t);d.change((t=>{for(const e of n)t[Xx("0x33")](t[Xx("0x1b")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0x6c")])return!0;const e=t[Xx("0x1e")](0);return e.is(Xx("0x88"),Xx("0x5c"))&&e[Xx("0x6c")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x3f")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["change","tableWidth","discard","model","subType","_descriptionFactory","getColumnGroupElement","formatBlock","resizeColumnWidths","markBlockFormat","accept","locale","Users","editor","handleSuggestionDescription","selection","author","resizeTableWidth","handleResizeTableWidthCommand","TableColumnResizeEditing","data","getSuggestions","enableCommand","get","getTableColumnsWidths","getAttribute","table","resizeTable","_suggestionFactory","registerDescriptionCallback","bind","commandParams","plugins","TrackChangesEditing","columnWidths","format","getContainedElement","document"];var ea,na;ea=ta,na=138,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{afterInit(){if(!this[oa("0x1b")][oa("0x8")].has(oa("0x21")))return;const t=this[oa("0x1b")][oa("0x8")][oa("0x25")](oa("0x9"));t[oa("0x24")](oa("0x1f"),this[oa("0x20")][oa("0x6")](this)),t[oa("0x24")](oa("0x16"),this.handleResizeTableWidthCommand[oa("0x6")](this)),t._suggestionFactory.registerCustomCallback(oa("0x15"),oa("0x3"),oa("0x18"),t[oa("0x4")].getSuggestionCallback("formatBlock",null,"discard")),t[oa("0x4")].registerCustomCallback(oa("0x15"),oa("0x3"),oa("0x10"),t[oa("0x4")].getSuggestionCallback(oa("0x15"),null,oa("0x18"))),t[oa("0x13")][oa("0x5")](this[oa("0x1c")][oa("0x6")](this))}[oa("0x20")](t,e){const n=this[oa("0x1b")][oa("0x8")].get(oa("0x9")),o=this[oa("0x1b")].plugins[oa("0x25")](oa("0x21")),r=e[oa("0x2")]||this[oa("0x1b")][oa("0x11")][oa("0xd")][oa("0x1d")].getSelectedElement();this[oa("0x1b")].model[oa("0xe")]((()=>{const s=o[oa("0x14")](r);let i=s?o[oa("0x0")](s):null,x=r[oa("0x1")]("tableWidth")||null;const a=e[oa("0xf")]||x,c=e[oa("0xa")]||i,l=this[oa("0x1b")][oa("0x8")][oa("0x25")](oa("0x1a")).me;for(const t of n[oa("0x23")]()){const e=t[oa("0xc")]();if(oa("0x3")===t[oa("0x12")]&&e===r){t[oa("0x1e")]!==l&&t[oa("0x10")]();const e=t[oa("0x22")][oa("0x7")];x=e[0][oa("0xf")],i=e[0][oa("0xa")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[oa("0x17")](r,{commandName:oa("0x1f"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x3"))}))}[oa("0x1c")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t="*Format:* resize table";return{type:oa("0xb"),content:Yo(this[oa("0x1b")][oa("0x19")],t)}}}}const sa=["get","afterInit","Template","has","insertTemplate","editor","enableCommand","plugins","TrackChangesEditing"];var ia,xa;ia=sa,xa=178,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x3")](){const t=this[aa("0x7")];t[aa("0x0")][aa("0x5")](aa("0x4"))&&t[aa("0x0")][aa("0x2")](aa("0x1"))[aa("0x8")](aa("0x6"))}}const la=["_descriptionFactory","plugins","get","locale","insertTableOfContents","afterInit","registerElementLabel","TrackChangesEditing","commands","enableCommand","ELEMENT_TABLE_OF_CONTENTS"];var da,ua;da=la,ua=349,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this.editor;if(!t[ga("0x0")][ga("0x5")]("insertTableOfContents"))return;t[ga("0x4")][ga("0x5")]("TrackChangesEditing")[ga("0x1")](ga("0x7"));const e=t[ga("0x4")][ga("0x5")](ga("0xa")),n=t[ga("0x6")];e[ga("0x3")][ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0x2"),t)))}}const fa=["start","differ","Title","get","registerElementLabel","TrackChangesEditing","newRange","_descriptionFactory","isTouching","element","getChangedMarkers","editor","has","createRange","model","getNearestSelectionRange","title-content","from","end","schema","forward","isEqual","document","suggestion","plugins"];var ha,ba;ha=fa,ba=359,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[pa("0x2")];if(!t[pa("0xf")][pa("0x3")](pa("0x12")))return;const e=t[pa("0xf")][pa("0x13")](pa("0x15"));e[pa("0x17")][pa("0x14")]("title-content",(()=>Yo(t.locale,"ELEMENT_TITLE"))),t[pa("0x5")][pa("0xd")].registerPostFixer((n=>{let o=!1;const r=Array[pa("0x8")](t[pa("0x5")][pa("0xd")][pa("0x11")][pa("0x1")]());for(const{name:s,data:i}of r){const{group:r}=e._splitMarkerName(s);if(pa("0xe")!==r||!i[pa("0x16")])continue;const x=i[pa("0x16")],a=x[pa("0x9")].nodeBefore;if(!a||!a.is(pa("0x0"),pa("0x7")))continue;if(!x[pa("0x10")][pa("0x18")](x[pa("0x9")]))continue;const c=t[pa("0x5")][pa("0xa")][pa("0x6")](x[pa("0x9")],pa("0xb"));if(c&&c.isCollapsed){const t=n[pa("0x4")](x.start,c[pa("0x10")]);t[pa("0xc")](x)||(n.updateMarker(s,{range:t}),o=!0)}o||(n.removeMarker(s),o=!0)}return o}))}}const _a=["TrackChangesEditing","afterInit","plugins","redo","undo","editor","get","has","UndoEditing","enableCommand"];var Ta,Ca;Ta=_a,Ca=283,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x8")](){const t=this[ya("0x2")],e=t[ya("0x9")][ya("0x3")](ya("0x7"));t[ya("0x9")][ya("0x4")](ya("0x5"))&&(e[ya("0x6")](ya("0x1")),e[ya("0x6")](ya("0x0")))}}const Aa=["get","enableCommand","plugins","afterInit","editor","TrackChangesEditing","has","requires","toggleTableCaption"];var va,Ra;va=Aa,Ra=185,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x2")](){return[wx]}[Ia("0x7")](){const t=this[Ia("0x8")];t[Ia("0x6")][Ia("0x1")]("TableCaptionEditing")&&t[Ia("0x6")][Ia("0x4")](Ia("0x0"))[Ia("0x5")](Ia("0x3"))}}const La=["handleDescriptions","editor","DocumentListPropertiesUtils","_getSuggestionBlocks","getSelectedBlocks","commandName","ELEMENT_","push","replace","_descriptionFactory","DocumentListUtils","expandListBlocksToCompleteList","*Format:* set start index to %0","selection","TrackChangesEditing","markMultiRangeBlockFormat","model","reversed","get","listReversed","listStyle","change","listType","*Format:* set order to reversed","styles","startIndex","plugins","commandParams","handleListReversedCommand","format","length","filter","handleListStyleCommand","toUpperCase","_getTranslationKeyForListStyle","getListTypeFromListStyleType","from","isListItemBlock","enableCommand","*Format:* set order to regular","*Change to:* %0","document","_LIST_","handleListStartCommand","has","isFirstBlockOfListItem","bind","numbered","DocumentListPropertiesEditing","listStart","_getSuggestionBlocksForListStyle"];var Na,Ma;Na=La,Ma=361,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x30")][wa("0x16")][wa("0x28")](wa("0x2c")))return;const t=this[wa("0x30")].config[wa("0xe")]("list.properties"),e=this[wa("0x30")][wa("0x16")][wa("0xe")](wa("0xa"));t[wa("0x14")]&&e[wa("0x22")](wa("0x10"),this.handleListStyleCommand[wa("0x2a")](this)),t.reversed&&e[wa("0x22")](wa("0xf"),this[wa("0x18")][wa("0x2a")](this)),t[wa("0x15")]&&e.enableCommand(wa("0x2d"),this.handleListStartCommand.bind(this)),e[wa("0x5")].registerDescriptionCallback(this[wa("0x2f")][wa("0x2a")](this))}[wa("0x1c")](t,e={}){const n=this[wa("0x30")][wa("0x16")][wa("0xe")](wa("0xa")),o=this[wa("0x2e")]();this.editor[wa("0xc")][wa("0x11")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x10"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[wa("0x18")](t,e={}){const n=this[wa("0x30")].plugins[wa("0xe")](wa("0xa")),o=this.editor[wa("0x16")].get(wa("0x6")),r=this[wa("0x32")]((t=>o[wa("0x21")](t)&&wa("0x2b")===t.getAttribute(wa("0x12"))));null!==r&&this[wa("0x30")].model.change((()=>{n[wa("0xb")](r,{commandName:wa("0xf"),commandParams:[{reversed:e[wa("0xd")]}],formatGroupId:"listReversed"})}))}[wa("0x27")](t,e={}){const n=this[wa("0x30")].plugins[wa("0xe")](wa("0xa")),o=this.editor[wa("0x16")][wa("0xe")](wa("0x6")),r=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute(wa("0x12"))));null!==r&&this.editor[wa("0xc")][wa("0x11")]((()=>{n[wa("0xb")](r,{commandName:wa("0x2d"),commandParams:[{startIndex:e[wa("0x15")]}],formatGroupId:wa("0x2d")})}))}[wa("0x2f")](t){const e=this[wa("0x30")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[wa("0x1")]){case wa("0x10"):o=wa("0x24"),r={type:wa("0x19"),content:Yo(e,o,Yo(e,this[wa("0x1e")](n[wa("0x17")][0].type)))};break;case wa("0xf"):o=n[wa("0x17")][0][wa("0xd")]?wa("0x13"):wa("0x23"),r={type:"format",content:Yo(e,o)};break;case"listStart":o=wa("0x8"),r={type:wa("0x19"),content:Yo(e,o,n[wa("0x17")][0][wa("0x15")])}}return r}[wa("0x2e")](){const t=this[wa("0x30")].plugins[wa("0xe")](wa("0x6"));let e=Array[wa("0x20")](this[wa("0x30")][wa("0xc")][wa("0x25")][wa("0x9")][wa("0x0")]());return e[wa("0x3")](...t[wa("0x7")](e)),e=[...new Set(e)],e}[wa("0x32")](t){const e=this.editor.plugins[wa("0xe")](wa("0x6"));let n=Array.from(this[wa("0x30")][wa("0xc")][wa("0x25")][wa("0x9")][wa("0x0")]())[wa("0x1b")](t);if(!n[wa("0x1a")])return null;n=e[wa("0x7")](n);const o=[];for(const t of n)e[wa("0x29")](t)&&o[wa("0x3")](t);return o}[wa("0x1e")](t){return wa("0x2")+this[wa("0x30")][wa("0x16")][wa("0xe")](wa("0x31"))[wa("0x1f")](t)[wa("0x1d")]()+wa("0x26")+t[wa("0x1d")]()[wa("0x4")](/-/g,"_")}}const Fa=["_suggestionFactory","TrackChangesTableProperties","TrackChangesEditing","getSelectionAffectedTableCells","*Format:* change table cell properties","editor","subType","TableCellPropertiesEditing","tableCellBorderColor","markBlockFormat","document","_handlePropertyChange","plugins","tableCellHorizontalAlignment","_descriptionFactory","getSuggestions","_getSuggestion","tableHeight","join","data","handleDiscardAction","tableBorderWidth","pluginName","tableCellBorderWidth","has","getFirstPosition","locale","tableCellBorderStyle","removeAttribute","enqueueChange","selection","tableProperties","formatBlock","enableCommand","registerCustomCallback","getAttribute","getSuggestionCallback","tableBackgroundColor","registerDescriptionCallback","afterInit","batch","get","model","start","discard","*Format:* change table properties","tableCellWidth","setAttribute","tableCellBackgroundColor","tableCellProperties","tableBorderStyle","handleSuggestionDescription","tableCellHeight","TableUtils","TablePropertiesEditing","accept","format","tableCellPadding"];var Pa,Da;Pa=Fa,Da=278,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2b")]=["tableBorderColor",Ba("0x4"),Ba("0x21"),"tableAlignment","tableWidth",Ba("0x1d"),Ba("0x31")],this.tableCellProperties=[Ba("0x14"),Ba("0x27"),Ba("0x23"),Ba("0xb"),Ba("0x0"),Ba("0x6"),Ba("0x2"),Ba("0x19"),"tableCellVerticalAlignment"]}static get[Ba("0x22")](){return Ba("0xd")}[Ba("0x33")](){const t=this.editor[Ba("0x18")][Ba("0x35")](Ba("0xe"));if(this[Ba("0x11")][Ba("0x18")][Ba("0x24")](Ba("0x8"))){for(const e of this[Ba("0x2b")])t[Ba("0x2d")](e,((t,n)=>{const o=this.editor[Ba("0x36")].document[Ba("0x2a")][Ba("0x25")]().findAncestor("table");this[Ba("0x17")](e,[o],this[Ba("0x2b")],Ba("0x2b"),t,n)}));t[Ba("0xc")].registerCustomCallback(Ba("0x2c"),Ba("0x2b"),"accept",t[Ba("0xc")][Ba("0x30")](Ba("0x2c"),null,Ba("0x38"))),t._suggestionFactory[Ba("0x2e")](Ba("0x2c"),Ba("0x2b"),Ba("0x38"),((t,e)=>this[Ba("0x20")](this[Ba("0x2b")],t,e))),t[Ba("0xc")][Ba("0x2e")](Ba("0x2c"),Ba("0x2b"),"join",(()=>!1))}if(this[Ba("0x11")][Ba("0x18")][Ba("0x24")](Ba("0x13"))){for(const e of this.tableCellProperties)t[Ba("0x2d")](e,((t,n)=>{const o=this.editor.plugins[Ba("0x35")](Ba("0x7"))[Ba("0xf")](this[Ba("0x11")][Ba("0x36")][Ba("0x16")][Ba("0x2a")]);this[Ba("0x17")](e,o,this[Ba("0x3")],Ba("0x3"),t,n)}));t[Ba("0xc")][Ba("0x2e")](Ba("0x2c"),Ba("0x3"),Ba("0x9"),t[Ba("0xc")].getSuggestionCallback(Ba("0x2c"),null,Ba("0x38"))),t[Ba("0xc")][Ba("0x2e")](Ba("0x2c"),"tableCellProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0x3")],t,e))),t._suggestionFactory[Ba("0x2e")](Ba("0x2c"),Ba("0x3"),Ba("0x1e"),(()=>!1))}t[Ba("0x1a")][Ba("0x32")]((t=>this[Ba("0x5")](t)))}[Ba("0x17")](t,e,n,o,r,s){const i=this[Ba("0x11")][Ba("0x18")][Ba("0x35")](Ba("0xe"));this.editor[Ba("0x36")][Ba("0x29")](s[Ba("0x34")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(s);else{const e={};for(const o of n){const n=t[Ba("0x2f")](o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x15")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x37")].nodeAfter,r=n.commandParams[0];this[Ba("0x11")].model.change((e=>{for(const n of t)void 0!==r[n]?e[Ba("0x1")](n,r[n],o):e[Ba("0x28")](n,o)}))}[Ba("0x5")](t){if(t[Ba("0x1f")])switch(t[Ba("0x12")]){case Ba("0x2b"):return{type:Ba("0xa"),content:Yo(this.editor.locale,Ba("0x39"))};case"tableCellProperties":return{type:"format",content:Yo(this[Ba("0x11")][Ba("0x26")],Ba("0x10"))}}}[Ba("0x1c")](t,e){const n=this.editor.plugins.get(Ba("0xe"));for(const o of n[Ba("0x1b")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x12")]===e&&n===t)return o}return null}}const Ua=["low","has","acceptSelectedSuggestions","_splitMarkerName","data-suggestion","skipNestingCheck","containsPosition","_addSuggestionMarker","insertion:chain","from","_mergeNestedSuggestions","clear","parent","markDeletion","type","formatBlock:discard","authoredAt","_createSuggestion","track-changes-command-not-found","substr","_updateSuggestionData","commandName","mapper","addSuggestion","_joinSuggestions","_breakSuggestionMarker","addCommentThread","newRange","error-saving-suggestion-data-suggestion-discarded","open","activeMarkers","author","update:suggestion","buildSuggestion","subType","removeMarker:suggestion:formatBlock","requires","PENDING_ACTION_SUGGESTION","previous","isSelectable","createPositionAt","selection","markInsertion","suggestion","resolve","elementToElement","getFirstRange","consumable","consume","stopListening","forward","rethrowUnexpectedError","updateSuggestion","_getSuggestionData","high","_enabledCommands","toViewElement","pluginName","delete","Users","hasComments","addRange","ck-suggestion-marker-formatBlock","@external","some","isMultiRange","set","isNextTo","creator","getAllAdjacentSuggestions","stop","chain","_removeSuggestion","element","detach","isAtEnd","_adapter","map","after","highest","root","writer","isOwn","start","_handleNewSuggestionMarker","markBlockFormat","model","join","markerToData","track-changes-adapter-missing-getsuggestion","documentSelection","dataToMarker","add","fetchCommentThread","isExternal","markerReady","formatInline:join","trackChanges.mergeNestedSuggestions","getRange","_descriptionFactory","suggestionUnloaded","acceptSuggestion","values","updateMarker","removeAttribute","getAttribute","_refreshSuggestionsChain","then","isRemovable","document","getRanges","removeClass","getMultiRangeId","insertion:","isBefore","createdAt","getAncestors","_trackFormatChanges","_suggestions","addComment","formatGroupId","splice","formatInline:accept","_joinWithAdjacentSuggestions","plugins","formatInline:","_addThreadToSuggestion","track-changes-suggestion-not-found","formatInline:chain","init","containsRange","applyOperation","options","isLocal","isEqual","length","_getExternalAuthor","getCustomProperty","addMarker:suggestion","name","listenTo","bindElementToMarker","_model","getSuggestion","createPositionBefore","markerName","change:activeMarkers","push","howMany","commands","isObject","sort","markers","notReady","split","_suggestionState","change","getWalker","fire","addSuggestionData","_cutOutSuggestionMarker","item","getChanges","get","adapter","getLastMatchingPosition","targetPosition","$graveyard","oldRange","createRange","suggestionLoaded","_customCallbacks","discardSelectedSuggestions","formatBlock:","$marker","enableCommand","getItems","markMultiRangeDeletion","fromRange","position","upcast","setSelection","elementStart","multi","suggestionChanged","PendingActions","isInContent","getUser","always","hasSuggestion","unbind","isTouching","insertion:accept","ck-suggestion-marker-","getShiftedBy","range","_saved","backward","isIntersectingWithRange","deletion:","addMarker:suggestion:formatBlock","schema","reconvertMarker","setAttribute","nodeBefore","originalSuggestionId","_suggestionFactory","authorName","_defaultCallbacks","createSelection","_isForcedDefaultExecutionBlock","discardAllSuggestions","getMarkers","every","marker-count","conversion","insert","addMarkerName","normal","discard","$textProxy","trackChanges.trackFormatChanges","fromCharCode","dataReady","multipleBlocks","track-changes-suggestion-data-mismatch","elementEnd","removeMarkers","size","registerCustomCallback","formatInline:discard","define","accept","rootName","next","getCommentThread","markInlineFormat","_editor","getChangedMarkers","getNearestSelectionRange","markMultiRangeBlockFormat","getSuggestions","_rangeIsInLocalUserInsertion","isAtStart","insertion:join","never","formatBlock","end","dataDowncast","track-changes-user-not-found","isInsideObject","formatInline","forceDefaultExecution","ck-suggestion-marker","differ","locale","editingDowncast","isCollapsed","insertion","remove","suggestion-type","containsRangeInObject","external:","execute","_commentsRepository","formatBlock:join","ready","data","markerToHighlight","before","_setSuggestionData","removeMarker","deletion:discard","trackChangesCommand","markerNameToElements","filter","moveTargetPosition","enableReadOnlyMode","commentThread","_onDiscard","enqueueChange","removed","clone","config","_checkSuggestionCorrectness","toJSON","batch","value","group","_registerDefaultCallbacks","getFirstMarker","change:_saved","containerElement","head","isLimit","getDifference","removeComment","unbindElementFromMarkerName","deletion:join","return","getSuggestionCallback","change:data","isAfter","showSuggestionHighlights","discardSuggestion","includes","deletion","addClass","getIntersection","acceptAllSuggestions","isBlock","CommentsRepository","for","refresh","editor","isUndo","trackChanges","ck-suggestion-marker--active","formatBlock:accept","_findSuggestions","_setSuggestionRange","setTo","nodeAfter","suggestion:","attributes"];var Ga,Ha;Ga=Ua,Ha=278,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0x53")](){return[za("0x21"),s.Users,t.PendingActions,cr,Cr,Rr,wr,Br,Vr,Qr,es,Oa,xs,us,ps,ys,Ls,Ps,Gs,Ks,Js,ni,xi,ui,bi,Ci,Ri,Oi,ji,Vi,$i,tx,ix,ux,bx,yx,Ix,wx,jx,Vx,Sa,Jx,ra,ma,ja,ca,Ea,ka]}static get[za("0x68")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0x7c")]((t=>String[za("0x10d")](t))).join("")}super(t),this[za("0x71")](za("0x4d"),[]),this.on(za("0xc1"),((e,n,o,r)=>{this._model[za("0xcb")]((()=>{for(const e of[...r,...o])this._model[za("0xc7")][za("0x30")](e)&&t.editing[za("0xf9")](e)}))})),this[za("0x92")]=new rr(this[za("0x24")].model[za("0xf8")],this[za("0x24")][za("0x12e")]),this[za("0x7b")]=null,this[za("0xfd")]=new Wa(this.editor),this[za("0xa5")]=new Map,this[za("0x137")]=t[za("0xab")][za("0xd2")](za("0x21")),this[za("0x66")]=new Set,this[za("0xbd")]=this[za("0x24")][za("0x85")],this._suggestionState=new WeakMap,this[za("0x101")]=!1,t[za("0x5")][za("0x116")](za("0x10c"),"default"),this._trackFormatChanges=t[za("0x5")].get(za("0x10c")),t.config.define(za("0x90"),!0),this._mergeNestedSuggestions=t.config[za("0xd2")](za("0x90")),this[za("0x140")]=new u(t,this[za("0x66")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,49,56])}[za("0xb0")](){const t=this[za("0x24")];t[za("0x106")][za("0x22")](za("0x12f"))[za("0x13b")]({model:za("0x5a"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t.markerName),o=[za("0x12c"),za("0xf0")+n];let r=3e3;return this[za("0x4d")][za("0x1b")](t[za("0xc0")])&&(o[za("0xc2")](za("0x27")),r=3010),za("0x1c")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t.conversion[za("0x22")]("dataDowncast")[za("0x8b")]((e=>{e.on(za("0xb9"),((e,n,o)=>{if(!o[za("0xb3")][za("0x19")])return;const r=n[za("0xd0")];if(!r)return;const s=o[za("0x45")][za("0x67")](r);t.model[za("0xf8")][za("0xc5")](r)&&s&&!s[za("0xb8")]("widget")&&s.is(za("0xe"))&&(0,x.toWidget)(s,o.writer)}),{priority:za("0x65")})})),t[za("0x106")][za("0x22")](za("0x127"))[za("0x13b")]({model:za("0x5a"),view:(t,e)=>{if(!e.options[za("0x19")])return null;const{type:n}=this[za("0x32")](t.markerName);return{classes:["ck-suggestion-marker",za("0xf0")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[za("0xd0")])return;if(o[za("0xd0")].is(za("0x58")))return void r[za("0x5e")][za("0x5f")](o[za("0xd0")],n[za("0xba")]);const s=r.mapper[za("0x67")](o.item);if(!o[za("0xd0")].is("element")||!t[za("0x85")].schema[za("0x20")](o.item)||s[za("0xb8")]("addHighlight"))return;const{id:i}=this[za("0x32")](o[za("0xc0")]);r.writer[za("0x1d")](["ck-suggestion-marker",za("0x6d")],s),r[za("0x80")][za("0xfa")](za("0x33"),i,s),r[za("0x45")][za("0xbc")](s,o[za("0xc0")]),e&&(this.activeMarkers[za("0x1b")](o[za("0xc0")])?r[za("0x80")][za("0x1d")]("ck-suggestion-marker--active",s):r.writer[za("0x9e")]("ck-suggestion-marker--active",s));for(const e of t.model.createRangeIn(o[za("0xd0")])[za("0xdf")]())r[za("0x5e")][za("0x5f")](e,n.name);r[za("0x5e")][za("0x5f")](o[za("0xd0")],n.name)};t[za("0x106")][za("0x22")](za("0x127")).add((t=>{t.on(za("0xf7"),((t,e,o)=>{o[za("0xb3")][za("0x19")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x7e")})})),t[za("0x106")][za("0x22")](za("0x127"))[za("0x87")]({model:za("0x5a"),view:(t,e)=>e.options[za("0x19")]?null:{group:za("0x5a"),name:t[za("0x42")](11)}}),t.conversion[za("0x22")]("upcast")[za("0x5c")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x2d")+t.getAttribute(za("0x133"))+":"+t.getAttribute("id");return t[za("0x98")](za("0x105"))&&(n+=":"+t[za("0x98")](za("0x105"))),e.createElement(za("0xdd"),{"data-name":n})}}),t.conversion.for(za("0xe3"))[za("0x8a")]({view:za("0x5a")}),t[za("0x106")][za("0x22")](za("0x12f"))[za("0x8b")]((t=>{t.on(za("0xf7"),n(),{priority:za("0x65")})})),t[za("0x106")].for(za("0x12f"))[za("0x8b")]((t=>{t.on(za("0x52"),((t,e,n)=>{const o=n[za("0x45")][za("0x141")](e.markerName);if(o)for(const t of o)t[za("0xb8")]("addHighlight")||(n.writer[za("0x9e")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",za("0x27")],t),n[za("0x80")][za("0x97")]("data-suggestion",t),n[za("0x45")][za("0x13")](t,e[za("0xc0")]))}),{priority:za("0x65")})})),t.model[za("0x9c")].registerPostFixer((e=>{let n=!1;const o=Array[za("0x38")](t[za("0x85")][za("0x9c")].differ[za("0x11d")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x5a")!==o)continue;const d=this[za("0xa5")][za("0xd2")](l);if(null!=a[za("0x4a")])if("formatInline"==c&&(n=n||Xa(a[za("0x4a")],x,e,t[za("0x85")][za("0xf8")])),a.newRange[za("0x130")]||za("0xd6")==a.newRange[za("0x7f")][za("0x118")]||"formatBlock"==c&&!Qa(a.newRange)||za("0x1c")==c&&(qa(i=a[za("0x4a")])||(s=i)[za("0x82")][za("0x3b")]==s[za("0x126")][za("0xfb")]&&s[za("0x82")][za("0x7a")]))e[za("0x13e")](x),n=!0;else{if(!d||!d[za("0xe9")])continue;r[za("0x8b")](d)}}var s,i;return r.size>0&&(n=!!this[za("0xaa")](r)||n),n})),t[za("0x85")][za("0x9c")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0x85")][za("0x9c")][za("0x12d")][za("0xd1")]()){if(za("0x107")!=o[za("0x3d")])continue;const r=o[za("0xe2")].getShiftedBy(o[za("0xb6")]);if(r[za("0x7a")])for(const s of this[za("0xa5")][za("0x95")]()){if(s.isMultiRange||!s[za("0xe9")])continue;if(za("0x125")!=s[za("0x3d")])continue;const i=s[za("0x5d")]();if(i[za("0x82")].parent!=i[za("0x126")].parent&&i[za("0x126")][za("0xb5")](o[za("0xe2")])){const o=t[za("0x85")][za("0xd8")](i[za("0x82")],r);e[za("0x96")](s[za("0xc")](),{range:o}),n=!0}}}return n})),t[za("0x85")].markers.on(za("0x4f"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x32")](e[za("0xba")]),n=this[za("0xa5")][za("0xd2")](t);n&&n[za("0x108")](e[za("0xba")])}})),t[za("0x85")][za("0x9c")].on(za("0x17"),(()=>{const e=Array.from(t[za("0x85")][za("0x9c")][za("0x12d")][za("0x11d")]()).filter((t=>"suggestion"===this[za("0x32")](t[za("0xba")])[za("0xa")]));if(0===e[za("0xb6")])return;e[za("0xc6")](((t,e)=>{const n=t.data[za("0xd7")],o=e.data[za("0xd7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x82")][za("0xa1")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[za("0x32")](t);if(null===r[za("0xd7")]){const e=this[za("0x83")](t);o.add(e)}else{const t=this[za("0xa5")][za("0xd2")](e);null!==r[za("0x4a")]||t.isInContent?(n[za("0x8b")](t[za("0xf")]),o[za("0x8b")](t)):this[za("0x77")](t)}}o[za("0x113")]>0&&this[za("0x99")](o);for(const t of n)this.fire(za("0xe7"),t)})),t.model.on(za("0xb2"),((e,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o.isDocumentOperation)return;if(o.batch[za("0x25")]||!o[za("0x8")][za("0xb4")])return;let r,s;switch(o[za("0x3d")]){case za("0x107"):r=t[za("0x85")].createPositionAt(o[za("0xe2")]),s=r[za("0xf1")](o[za("0xc3")]);break;case za("0xc9"):r=t.model.createPositionAt(o.splitPosition),s=t[za("0x85")][za("0x57")](o[za("0x143")]);break;case"move":r=t[za("0x85")][za("0x57")](o[za("0xd5")]),s=r.getShiftedBy(o.howMany);break;default:return}const i=t[za("0x85")][za("0xd8")](r,s);t[za("0x85")][za("0xcb")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x29")](i)){if(t.isMultiRange)continue;if(za("0x12a")==t[za("0x3d")])continue;const n=t[za("0x13a")]&&t[za("0x13a")][za("0x10f")];(za("0x125")!=t[za("0x3d")]||"split"==o.type&&!n)&&(e[za("0x134")]||"insertion"==t[za("0x3d")]&&e[za("0x81")]||t[za("0x5d")]()[za("0xb1")](i)&&this[za("0x48")](t,r,s))}}))}),{priority:"lowest"}),t[za("0x85")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[za("0x12b")])return;if(this[za("0x101")])return;if(!this[za("0x140")].value)return;if(o.isCollapsed)return;const s=t[za("0x85")][za("0xf8")],{start:i,end:x}=o[za("0x5d")](),a=i[za("0x2c")]&&s[za("0x10")](i[za("0x2c")])?null:s[za("0x11e")](i,za("0x61")),c=x.nodeBefore&&s.isLimit(x[za("0xfb")])?null:s[za("0x11e")](x,za("0xf4")),l=t[za("0x85")][za("0xd8")](a?a[za("0x82")]:i,c?c[za("0x126")]:x);t.model[za("0xcb")]((e=>{this[za("0x3c")](l);const n=t[za("0x85")][za("0xf8")].getNearestSelectionRange(l[za("0x82")]);o.is(za("0x89"))?e[za("0xe4")](n):o[za("0x2b")](n)})),e[za("0x75")]()}),{priority:e.priorities[za("0x109")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[za("0xb6")]-1];o&&o[za("0x12b")]||this._isForcedDefaultExecutionBlock||this[za("0x140")][za("0x9")]&&(t[za("0x85")][za("0xcb")]((()=>{let o=t[za("0x85")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x15")]=o[za("0x4")]();const r=o[za("0x126")][za("0xfb")],s=t[za("0x85")][za("0xf8")];r&&s[za("0x20")](r)&&!s[za("0xc5")](r)&&(o=t[za("0x85")][za("0xd8")](o[za("0x82")],t[za("0x85")][za("0x57")](r,za("0x126")))),this[za("0x59")](o)})),e[za("0x75")]())}),{priority:"high"}),this.editor[za("0xc4")][za("0x8b")](za("0x26"),this[za("0x140")]),this[za("0xde")](za("0x26"));const o=new b(t,this[za("0xa5")]);t.commands[za("0x8b")](za("0x94"),o),this[za("0xde")](za("0x94"));const r=new C(t,this[za("0xa5")]);t[za("0xc4")].add(za("0x1a"),r),this[za("0xde")]("discardSuggestion"),t[za("0xc4")].add(za("0x1f"),new F(t,o,this[za("0xa5")])),this[za("0xde")](za("0x1f")),t[za("0xc4")][za("0x8b")](za("0x102"),new F(t,r,this[za("0xa5")])),this[za("0xde")](za("0x102")),t[za("0xc4")][za("0x8b")](za("0x31"),new U(t,o,this[za("0xa5")])),this.enableCommand(za("0x31")),t[za("0xc4")].add("discardSelectedSuggestions",new U(t,r,this._suggestions)),this.enableCommand(za("0xdb"));const s=t[za("0xab")][za("0xd2")](za("0x21"));this[za("0xbb")](s,za("0xa6"),((t,{threadId:e})=>{const n=this._suggestions[za("0xd2")](e);n&&n[za("0x0")]&&1===n[za("0x0")][za("0xb6")]&&this[za("0x43")](e,{hasComments:!0})}),{priority:za("0x2f")}),this[za("0xbb")](s,za("0x12"),((t,{threadId:e})=>{const n=this[za("0xa5")][za("0xd2")](e);n&&n[za("0x0")]&&!n[za("0x0")][za("0xb6")]&&this[za("0x43")](e,{hasComments:!1})}),{priority:za("0x2f")})}set[za("0xd3")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0x7b")]=t}get[za("0xd3")](){return this[za("0x7b")]}[za("0x120")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0xa5")][za("0x95")]())t&&!e[za("0xe9")]||n[za("0xc2")](e);return e?n[za("0x7c")]((t=>t[za("0x7")]())):n}[za("0xbe")](t){const n=this[za("0xa5")][za("0xd2")](t);if(!n)throw new e.CKEditorError(za("0xae"),this);return n}[za("0xec")](t){return this[za("0xa5")][za("0x30")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[za("0x3d")][za("0xc9")](":"),i=this._suggestions[za("0xd2")](n)||this[za("0x40")](r,s,n,e,o);if(this[za("0xad")](i),this[za("0x6")](i,r,s||null,e),i[za("0xa2")]=t.createdAt,o&&o[za("0x6e")]){const t=o["@external"],e=this[za("0xb7")](t[za("0xfe")]);i.authoredAt=t[za("0xa2")],i[za("0x4e")]=e,i[za("0x8d")]=!0}else i[za("0x3f")]=t.createdAt;switch(t.data&&(i[za("0x13a")]=t[za("0x13a")]),t.attributes&&(i[za("0x2e")]=t.attributes),this[za("0x7b")]&&this[za("0x7b")][za("0x46")]||(i[za("0xf3")]=!0),this[za("0xca")][za("0xd2")](i)){case za("0xc8"):this._suggestionState.set(i,za("0x10e"));break;case za("0x8e"):i.isInContent?(this[za("0xca")][za("0x71")](i,"ready"),this.fire("suggestionLoaded",i)):this[za("0xca")][za("0x71")](i,za("0x3"))}return i}[za("0x94")](t){this[za("0x12b")]((()=>{this.editor[za("0x85")][za("0xcb")]((()=>{for(const e of t[za("0x74")]())e[za("0x117")]()}))}))}[za("0x1a")](t){this.forceDefaultExecution((()=>{this[za("0x24")].model[za("0xcb")]((()=>{for(const e of t[za("0x74")]())e[za("0x10a")]()}))}))}[za("0xde")](t,n){const o=this[za("0x24")].commands[za("0xd2")](t);if(!o)throw new e.CKEditorError(za("0x41"),this,{commandName:t});this._enabledCommands[za("0x8b")](o),n&&o.on("execute",((t,e)=>{this[za("0x140")].value&&(this[za("0x101")]||e[za("0xb6")]>0&&e[e[za("0xb6")]-1]&&e[e.length-1][za("0x12b")]||(n(((...t)=>o[za("0x136")](...t,{forceDefaultExecution:!0})),...e),t[za("0x75")]()))}),{priority:za("0x65")})}forceDefaultExecution(t){let n,o;const r=this._isForcedDefaultExecutionBlock;this[za("0x101")]=!0;try{n=t()}catch(t){o=t}return r||(this[za("0x101")]=!1),o&&e.CKEditorError[za("0x62")](o,this),n}[za("0x59")](t,n=null,o={}){if(t[za("0x130")])return null;const r=this[za("0x24")].plugins[za("0xd2")](za("0x6a")).me;for(const{suggestion:e,meta:o}of this[za("0x29")](t,za("0x131")))if(o[za("0x81")]){if(!o[za("0x72")]){if(!this[za("0x39")]&&o[za("0x134")])continue;return e}if(n==e.subType){const n=e[za("0x5d")]();return n[za("0x82")][za("0xb5")](t[za("0x126")])?this[za("0x2a")](e,this._model[za("0xd8")](t[za("0x82")],n[za("0x126")])):this._setSuggestionRange(e,this._model[za("0xd8")](n[za("0x82")],t[za("0x126")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:za("0x131"),a=this[za("0x13d")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x36")](x,s,i,t),a}markMultiRangeInsertion(t,n=za("0xe6"),o={}){const r=this[za("0x24")][za("0xab")][za("0xd2")](za("0x6a")).me,s=this[za("0xfd")][za("0x16")]("insertion",n,"join");for(const e of this.getSuggestions())if(e[za("0x4e")].id==r.id&&za("0x131")==e[za("0x3d")]&&e.subType==n&&(s(e[za("0x9d")](),t)||s(t,e[za("0x9d")]()))){for(const n of t)e[za("0x6c")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x29")](e,za("0x131"))){if(!o[za("0x81")])continue;let e=!0;for(const o of n[za("0x9d")]())for(const n of t)if(!o[za("0xb1")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=za("0xa0")+n,c=this[za("0x13d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x36")](a,i,x,e,Zo[za("0x9f")]());return c}[za("0x11b")](t,n,o=null,r={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x124")===this[za("0xa4")]){const e=this._suggestionFactory[za("0x16")](za("0x12a"),o,"accept");return this[za("0x12b")]((()=>e([t],n,r))),null}const s=this[za("0x24")].plugins.get(za("0x6a")).me,i=[];if(za("0xeb")!==this[za("0xa4")])for(const{suggestion:e,meta:n}of this[za("0x29")](t,za("0x131")))n[za("0x81")]&&!n.isInsideObject&&i.push(...e[za("0x9d")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x1e")](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[za("0xb6")];){const o=n[e][za("0x11")](t);n[za("0xa8")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0xb6")]&&this._model.change((()=>{for(const t of x){const e=this[za("0xfd")][za("0x16")](za("0x12a"),o,za("0x117"));this[za("0x12b")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[za("0x82")],a=t[za("0x126")];for(const{suggestion:e,meta:n}of this[za("0x29")](t,za("0x12a"))){if(!n[za("0x81")])continue;if(e[za("0x51")]!=o)continue;const r=e[za("0x5d")]();if(r[za("0xb1")](t,!0))return null;x=x[za("0xa1")](r.start)?x:r.start,a=a[za("0x18")](r[za("0x126")])?a:r[za("0x126")],i?r[za("0x82")].isBefore(i[za("0x5d")]()[za("0x82")])?(i[za("0x112")](),i=e):e[za("0x112")]():i=e}const c=this[za("0xbd")][za("0xd8")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=s.id;this[za("0x13d")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[za("0x36")](za("0xac")+o,t,i,c)}}return null}[za("0x84")](t,n,o=[],r=null,s={}){n[za("0xa7")]||(n[za("0xa7")]=n[za("0x44")]),n[za("0x10f")]=t.is(za("0xf2")),r=r||$a(n);const i=o.map((t=>Ja(t,this[za("0xbd")]))),x=t.is("range")?t:Ja(t,this[za("0xbd")]);if(za("0x124")===this[za("0xa4")]){const t=this._suggestionFactory[za("0x16")](za("0x125"),r,"accept");return this[za("0x12b")]((()=>t([x],n,s))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x121")](t)){a=!1;break}if(a&&za("0xeb")!==this[za("0xa4")]){const t=this[za("0xfd")][za("0x16")]("formatBlock",r,za("0x117"));return this[za("0x12b")]((()=>t([x],n,s))),null}let c=null,l=x[za("0x82")],d=x[za("0x126")];for(const{suggestion:t,meta:e}of this[za("0x29")](x,za("0x125"))){if(!e[za("0x81")]||e[za("0x72")]||e.containsRangeInObject||e[za("0x129")])continue;if(t[za("0x13a")][za("0xa7")]!=n[za("0xa7")])continue;const o=t[za("0x5d")]();if(t[za("0x51")]==r){if(o[za("0xb1")](x,!0))return null;l=l[za("0xa1")](o[za("0x82")])?l:o[za("0x82")],d=d.isAfter(o[za("0x126")])?d:o[za("0x126")],c?o[za("0x82")][za("0xa1")](c[za("0x5d")]()[za("0x82")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x[za("0x1e")](o);this[za("0xcf")](t,e)}}const u=this[za("0x24")][za("0xab")][za("0xd2")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x2a")](c,this[za("0xbd")][za("0xd8")](l,d)),c;{const t=this[za("0x13d")]({id:g,type:za("0xdc")+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0x36")](za("0xdc")+r,g,m,this._model[za("0xd8")](l,d)),t}}[za("0x11f")](t,n,o=[],r=null,s={}){n[za("0xa7")]||(n.formatGroupId=n[za("0x44")]);const i=t[0];n[za("0x10f")]=i.is("range"),r=r||$a(n);const x=o[za("0x7c")]((t=>Ja(t,this._model))),a=i.is(za("0xf2"))?t:t[za("0x7c")]((t=>Ja(t,this[za("0xbd")])));if(za("0x124")===this[za("0xa4")]){const t=this._suggestionFactory[za("0x16")]("formatBlock",r,za("0x117"));return this[za("0x12b")]((()=>t(a,n,s))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x121")](t)){c=!1;break}if(c&&za("0xeb")!==this[za("0xa4")]){const t=this[za("0xfd")].getSuggestionCallback("formatBlock",r,za("0x117"));return this[za("0x12b")]((()=>t(a,n,s))),null}const l=this.editor[za("0xab")].get(za("0x6a")).me;for(const t of this[za("0x120")]()){if(t[za("0x4e")].id!=l.id)continue;if("formatBlock"!=t[za("0x3d")]||t[za("0x13a")][za("0xa7")]!=n[za("0xa7")])continue;const e=t[za("0x51")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[za("0x103")]()){const s=r[za("0x91")]();if(o[za("0xb5")](s)){e?(a[za("0xa8")](n,1),n--):t[za("0x13e")](r.name);break}}}}if(0==a[za("0xb6")])return null;const d=this._suggestionFactory[za("0x16")](za("0x125"),r,"join");for(const t of this.getSuggestions())if(t[za("0x4e")].id==l.id&&za("0x125")==t.type&&t[za("0x13a")].formatGroupId==n.formatGroupId&&t[za("0x51")]==r&&(d(t[za("0x9d")](),a)||d(a,t[za("0x9d")]()))){for(const e of a)t[za("0x6c")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+r,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[za("0x36")](m,u,g,t,Zo[za("0x9f")]());return f}[za("0x3c")](t,n=null,o={}){if(t[za("0x130")])return null;const r=this[za("0x24")].plugins[za("0xd2")](za("0x6a")).me,s=new i.LiveRange(t.start,t[za("0x126")]);for(const{suggestion:t,meta:e}of this._findSuggestions(s,za("0x131")))if(e[za("0x81")]&&!e[za("0x72")])if(t.isMultiRange){const e=t.getRanges()[za("0x142")]((t=>za("0xd6")!=t[za("0x7f")].rootName));if(e[za("0x104")]((t=>s[za("0xb1")](t,!0)))&&t.discard(),e[za("0x6f")]((t=>t[za("0xb1")](s,!0)))){const t=this[za("0xfd")][za("0x16")]("deletion",n,za("0x117"));return this[za("0x12b")]((()=>t([s],null,o))),null}}else{const e=s[za("0x1e")](t[za("0x5d")]());null!==e&&t[za("0x1")]([e],null,o)}if(s[za("0x79")](),s.isCollapsed||za("0xd6")==s[za("0x7f")][za("0x118")])return null;let x=null,a=s.start,c=s[za("0x126")];for(const{suggestion:t,meta:e}of this[za("0x29")](s,za("0x1c")))if(e[za("0x81")])if(t[za("0x70")]&&this[za("0x39")]){let e=!0;for(const n of t[za("0x9d")]()){if(n.containsRange(s,!0))return t;s[za("0xb1")](n)||(e=!1)}e&&t[za("0x10a")]()}else{const n=t[za("0x5d")]();if(n[za("0xb1")](s,!0)){if(!this._mergeNestedSuggestions&&e[za("0x134")])continue;return t}a=a.isBefore(n[za("0x82")])?a:n[za("0x82")],c=c[za("0x18")](n[za("0x126")])?c:n[za("0x126")],x?n[za("0x82")].isBefore(x[za("0x5d")]()[za("0x82")])?(x.removeMarkers(),x=t):t[za("0x112")]():x=t}if(x)return this[za("0x2a")](x,this._model[za("0xd8")](a,c)),x;{const t=(0,e.uid)(),s=this[za("0xbd")][za("0xd8")](a,c),i=r.id,x=n?za("0xf6")+n:"deletion",l=this[za("0x13d")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x36")](x,t,i,s),l}}[za("0xe0")](t,n=za("0xe6"),o={}){const r=this[za("0x24")][za("0xab")][za("0xd2")](za("0x6a")).me,s=t[za("0x7c")]((t=>new i.LiveRange(t[za("0x82")],t.end))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x29")](t,za("0x131")))n[za("0x81")]&&!n[za("0x72")]&&x[za("0x8b")](e);for(const e of x)if(e[za("0x70")]){const r=e[za("0x9d")]();if((!e[za("0x2e")]||!e[za("0x2e")][za("0x34")])&&r[za("0x104")]((t=>s[za("0x6f")]((e=>e[za("0xb1")](t,!0)))))&&e[za("0x10a")](),s[za("0x104")]((t=>r.some((e=>e[za("0xb1")](t,!0)))))){const e=this._suggestionFactory.getSuggestionCallback(za("0x1c"),n,"accept");return this[za("0x12b")]((()=>e(t,null,o))),null}}else{const t=e[za("0x5d")]();if(s[za("0x6f")]((e=>e[za("0xb1")](t,!0)))&&e[za("0x10a")](),s[za("0x104")]((e=>t[za("0xb1")](e,!0)))){const t=this[za("0xfd")].getSuggestionCallback("deletion",n,za("0x117"));return this[za("0x12b")]((()=>t(s,null,o))),null}}const a=this[za("0xfd")].getSuggestionCallback(za("0x1c"),n,za("0x86"));let c=null;for(const t of this.getSuggestions())if(t[za("0x4e")].id==r.id&&t.isInContent&&za("0x1c")==t.type&&t[za("0x51")]==n&&(a(t.getRanges(),s)||a(s,t[za("0x9d")]())))if(c){if(t[za("0x0")]&&t[za("0x0")][za("0xb6")])continue;for(const e of t[za("0x9d")]())c[za("0xf5")](e)||c[za("0x6c")](e);t.removeMarkers()}else{c=t;for(const e of s)t[za("0xf5")](e)||t[za("0x6c")](e)}if(c)return c;x[za("0x3a")]();for(const t of s)for(const{suggestion:e,meta:n}of this[za("0x29")](t,za("0x1c")))n[za("0x81")]&&x[za("0x8b")](e);for(const t of x){const e=t[za("0x9d")]();if((!o||!o[za("0x34")])&&s[za("0x104")]((t=>e[za("0x6f")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x2e")]||!t[za("0x2e")][za("0x34")])&&e[za("0x104")]((t=>s[za("0x6f")]((e=>e[za("0xb1")](t,!0)))))&&t[za("0x10a")]()}const l=(0,e.uid)(),d=r.id,u=za("0xf6")+n,g=this[za("0x13d")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t.detach(),t[za("0x130")]||"$graveyard"==t[za("0x7f")][za("0x118")]||this[za("0x36")](u,l,d,t,Zo[za("0x9f")]());return g}[za("0x2a")](t,e){const n=t.getFirstMarker();this._model.change((t=>{t[za("0x96")](n,{range:e})}))}[za("0xad")](t){const e=t.id,n=this.editor[za("0x5")][za("0xd2")]("collaboration.channelId");this[za("0x137")].hasCommentThread(e)||this[za("0x137")][za("0x49")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x137")][za("0x11a")](e);o[za("0xed")](za("0x9b")),o[za("0x9b")]=!1,t[za("0x0")]=o}_checkSuggestionCorrectness(t,n,o,r){if(t[za("0x3d")]!=n||t[za("0x51")]!=o||t[za("0x73")].id!=r)throw this.editor[za("0x144")](za("0x110")),new e.CKEditorError(za("0x110"),this)}[za("0xcf")](t,n){const o=t[za("0x5d")]();if(n[za("0xb5")](o))t[za("0x112")]();else if(o[za("0xb1")](n)){const r=this[za("0xbd")][za("0x57")](n[za("0x82")].nodeBefore,za("0x126"));this[za("0x2a")](t,this[za("0xbd")][za("0xd8")](o.start,r));const s=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[za("0x51")];this[za("0x13d")]({id:s,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x2e")]});const a=this[za("0xbd")].createPositionAt(n.end.parent,za("0x7d")),c=this._model[za("0xd8")](a,o[za("0x126")]);this[za("0x36")](x,s,i,c)}else if(o[za("0x35")](n[za("0x82")])){const e=this[za("0xbd")][za("0x57")](n[za("0x82")][za("0xfb")],za("0x126"));this[za("0x2a")](t,this[za("0xbd")][za("0xd8")](o.start,e))}else{const e=this[za("0xbd")][za("0x57")](n[za("0x126")].parent,za("0x7d"));this[za("0x2a")](t,this[za("0xbd")][za("0xd8")](e,o[za("0x126")]))}}[za("0x121")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x131"))){if(!n[za("0x81")])continue;const o=e[za("0x9d")]();for(const e of o)if(!t[za("0x11")](e)[za("0xb6")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x24")][za("0xab")].get(za("0x6a"))[za("0xea")](t);if(!n)throw new e.CKEditorError(za("0x128"),this);return n}[za("0xb7")](t){const e=this[za("0x24")][za("0xab")][za("0xd2")](za("0x6a")),n=(0,s.hashObject)(za("0x135")+t);return e.getUser(n)||e.addUser({id:n,name:t})}[za("0x40")](t,e,n,o,r){const s=this._getAuthorFromId(o),i=this[za("0xfd")][za("0x50")](t,e,n,s,r,(t=>this[za("0x43")](n,{attributes:t})));return this[za("0xbb")](i,za("0x117"),(()=>{this[za("0x43")](n,{state:"accepted"})}),{priority:za("0x65")}),this[za("0xbb")](i,"discard",(()=>{this[za("0x43")](n,{state:"rejected"})}),{priority:za("0x65")}),this[za("0xa5")][za("0x71")](n,i),this[za("0xca")][za("0x71")](i,"notReady"),i}[za("0x32")](t){const e=t[za("0xc9")](":");return{group:e[0],type:e[1],subType:e[za("0xb6")]>=5?e[2]:null,id:e[za("0xb6")]<5?e[2]:e[3],authorId:e[za("0xb6")]<5?e[3]:e[4],markerCount:6==e[za("0xb6")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t[za("0x5d")](),s=r[za("0x82")],i=r[za("0x126")];this[za("0x2a")](t,this[za("0xbd")][za("0xd8")](s,n));const x=(0,e.uid)(),a=t[za("0x73")].id,c=t[za("0x3d")]+(t[za("0x51")]?":"+t[za("0x51")]:"");this[za("0x13d")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0x13a")]}),za("0x125")==t[za("0x3d")]&&(o=this[za("0xbd")][za("0xbf")](o[za("0x3b")])),this[za("0x36")](c,x,a,this[za("0xbd")][za("0xd8")](o,i))}[za("0x29")](t,e=null){const n=[],o=this[za("0xbd")][za("0xf8")],r=this[za("0x24")][za("0xab")][za("0xd2")](za("0x6a")).me;for(const s of this[za("0x120")]())if(s[za("0xe9")]&&(!e||s[za("0x3d")]==e))for(const e of s[za("0x9d")]()){const i=t.start[za("0xb5")](e.end)||t.end[za("0xb5")](e[za("0x82")]);if(i||t.getIntersection(e)){const x=t.containsRange(e)&&Ka(o,e[za("0x82")],t),a=e[za("0xb1")](t)&&Ka(o,t[za("0x82")],e);n[za("0xc2")]({suggestion:s,meta:{isOwn:r==s[za("0x4e")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x36")](t,e,n,o,r){this[za("0xbd")][za("0xcb")]((s=>{let i=za("0x2d")+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x77")](t){const e=t[za("0x55")],n=t[za("0x119")];t[za("0x55")]=null,null!=e&&(e[za("0x119")]=null),t[za("0x119")]=null,null!=n&&(n.previous=null),za("0x139")==this[za("0xca")].get(t)&&(this[za("0xca")][za("0x71")](t,"removed"),this[za("0xcd")](za("0x93"),t,e,n))}[za("0x13d")](t){const n=t.id,o=this[za("0xce")](t);if(this._adapter&&this._adapter.addSuggestion){const r=this.editor.plugins[za("0xd2")](za("0xe8")),s=o[za("0x6b")],i=o.subType?o[za("0x3d")]+":"+o[za("0x51")]:o[za("0x3d")],x=this.editor[za("0x12e")],a=r.add(Yo(x,za("0x54"))),c={id:n,type:i,hasComments:s,data:t[za("0x13a")]||null,originalSuggestionId:t[za("0xfc")]||null,attributes:o[za("0x2e")]};this._adapter[za("0x46")](c)[za("0x9a")]((t=>{o[za("0xf3")]=!0,r[za("0x132")](a),t&&t[za("0xa2")]&&(this[za("0xa5")][za("0xd2")](n)[za("0xa2")]=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(za("0x4b")),this[za("0x24")].model[za("0x2")]({isUndoable:!1},(()=>{o[za("0x10a")]()})),o[za("0x60")](),this[za("0xa5")][za("0x69")](o.id),this[za("0xca")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x24")][za("0xab")][za("0xd2")](za("0xe8")),o=this[za("0xbe")](t);if(this._adapter&&this[za("0x7b")][za("0x63")])if(o[za("0xf3")]){const o=n.add(Yo(this.editor[za("0x12e")],za("0x54")));this[za("0x7b")][za("0x63")](t,e).then((()=>{n[za("0x132")](o)}))}else o.on(za("0xd"),(()=>{this[za("0x43")](t,e)}))}[za("0x64")](t){if(!this[za("0x7b")]||!this[za("0x7b")][za("0xbe")])throw new e.CKEditorError(za("0x88"),this);return this[za("0x7b")].getSuggestion(t)}[za("0x83")](t){const{id:e,type:n,subType:o,authorId:r}=this[za("0x32")](t),s=this[za("0xa5")][za("0xd2")](e)||this[za("0x40")](n,o,e,r,{});switch(this._checkSuggestionCorrectness(s,n,o,r),this._suggestionState[za("0xd2")](s)){case za("0xc8"):this[za("0x64")](e).then((t=>{let n=Promise[za("0x5b")]();t.hasComments&&(n=this[za("0x137")][za("0x8c")]({channelId:this[za("0x24")].config[za("0xd2")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xce")](t)._saved=!0}))})),this[za("0xca")][za("0x71")](s,"markerReady");break;case za("0x3"):this[za("0x43")](e,{state:za("0x4c")});case za("0x10e"):this[za("0xca")][za("0x71")](s,za("0x139")),this[za("0xcd")](za("0xd9"),s);break;case za("0x139"):this[za("0xcd")](za("0xe7"),s)}return s[za("0x108")](t),s}[za("0x99")](t){const e=Array[za("0x38")](t).filter((t=>!t.isMultiRange)),n=this[za("0x120")]({skipNotAttached:!0})[za("0x142")]((t=>!t.isMultiRange)),o=n.filter((e=>!t[za("0x30")](e))),r=new Map(n[za("0x7c")]((t=>[t,this._suggestionFactory[za("0x16")](t[za("0x3d")],t[za("0x51")],za("0x76"))]))),s=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xb6")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xb6")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xb6")];t++){const n=e[t];!x[za("0x30")](n)&&n[za("0x55")]&&(n[za("0x55")][za("0x119")]===n&&(n[za("0x55")].next=null),n.previous=null),!i.has(n)&&n[za("0x119")]&&(n[za("0x119")].previous===n&&(n.next[za("0x55")]=null),n[za("0x119")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xb6")];o++){const n=c(t,e[o]);n&&(n[0][za("0x119")]=n[1],n[1][za("0x55")]=n[0],i[za("0x8b")](n[0]),x[za("0x8b")](n[1]))}}function c(t,e){if(t[za("0x4e")].id!==e.author.id)return null;const n=r.get(t)(t,e,s[za("0xd2")](t),s[za("0xd2")](e));return n&&r[za("0xd2")](e)(t,e,s[za("0xd2")](t),s.get(e))?n[1][za("0x0")]&&n[1][za("0x0")][za("0xb6")]?null:n:null}}[za("0xaa")](t){const e=Array[za("0x38")](t),n=this[za("0x120")]({skipNotAttached:!0}),o=n[za("0x142")]((e=>!t[za("0x30")](e))),r=new Map(e[za("0x7c")]((t=>[t,this[za("0xfd")][za("0x16")](t[za("0x3d")],t.subType,"join")]))),s=new Map(n[za("0x7c")]((t=>[t,t[za("0x9d")]()])));for(let t=0;t<e[za("0xb6")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xb6")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xb6")];i++){const o=n[i];if(o[za("0x3d")]!==e.type||o.author.id!==e.author.id||o.subType!==e[za("0x51")])continue;const x=r.get(e),a=s[za("0xd2")](e),c=s[za("0xd2")](o),l=e.commentThread&&e[za("0x0")][za("0xb6")],d=o[za("0x0")]&&o[za("0x0")][za("0xb6")];if(!l&&x(c,a))return t._joinSuggestions(o,e),s[za("0x69")](e),!0;if(!d&&x(a,c))return t[za("0x47")](e,o),s[za("0x69")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x70")])for(const n of e[za("0x9d")]())t[za("0x6c")](n);else{const n=e.getFirstRange()[za("0x126")];this._setSuggestionRange(t,this._model.createRange(t.getFirstRange()[za("0x82")],n))}e[za("0x112")]()}}class Wa{constructor(t){this[za("0x11c")]=t,this[za("0xbd")]=t.model,this[za("0xda")]=new Map,this[za("0xff")]=new Map,this._registerDefaultCallbacks()}[za("0x50")](t,e,n,o,r,s){return new Zo(this[za("0xbd")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x117"))(...n),onDiscard:(...n)=>this[za("0x16")](t,e,za("0x10a"))(...n)})}[za("0x114")](t,e,n,o){const r=t+":"+e+":"+n;this[za("0xda")][za("0x71")](r,o)}[za("0x16")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xda")][za("0xd2")](o)||this._defaultCallbacks[za("0xd2")](t+":"+n)}[za("0xb")](){const t=()=>{},e=t=>{t[za("0xc6")](((t,e)=>t[za("0x82")][za("0xa1")](e[za("0x82")])?1:-1)),this[za("0xbd")][za("0xcb")]((e=>{for(const n of t){let t;t=n[za("0x126")][za("0x7a")]&&n.end[za("0x3b")]==n[za("0x82")].nodeAfter?e.createSelection(n.start.nodeAfter,"on"):e[za("0x100")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xbd")].change((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[za("0x7c")]((t=>(qa(t)&&(t=this[za("0xbd")].createRange(t[za("0x126")])),t)))[za("0x142")]((t=>za("0xd6")!==t[za("0x7f")][za("0x118")]));if(s.length<1)return;const x=Array[za("0x38")](this[za("0xbd")][za("0x9c")][za("0x58")][za("0x9d")]()).map((t=>i.LiveRange[za("0xe1")](t)));n[za("0xe4")](s);for(const t of this[za("0x11c")].commands[za("0xc4")]())t[za("0x23")]();r.push({forceDefaultExecution:!0}),this[za("0x11c")].execute(o,...r);const a=x[za("0x142")]((t=>za("0xd6")!=t.root.rootName));a[za("0xb6")]>0&&n[za("0xe4")](a);for(const t of x)t[za("0x79")]()}))},o=(t,e)=>1==t[za("0xb6")]&&1==e[za("0xb6")]&&t[0][za("0x126")][za("0xb5")](e[0].start),r=(t,e,n,o)=>Za(t,e,n,o,this[za("0xbd")])?[t,e]:Za(e,t,o,n,this[za("0xbd")])?[e,t]:null;this[za("0xff")][za("0x71")](za("0xef"),t),this[za("0xff")].set("insertion:discard",e),this._defaultCallbacks[za("0x71")](za("0x123"),o),this._defaultCallbacks[za("0x71")](za("0x37"),r),this[za("0xff")][za("0x71")]("deletion:accept",e),this._defaultCallbacks.set(za("0x13f"),t),this[za("0xff")][za("0x71")](za("0x14"),o),this._defaultCallbacks.set("deletion:chain",r),this._defaultCallbacks[za("0x71")](za("0xa9"),n),this[za("0xff")][za("0x71")](za("0x115"),t),this._defaultCallbacks[za("0x71")](za("0x8f"),o),this[za("0xff")][za("0x71")](za("0xaf"),t),this[za("0xff")][za("0x71")](za("0x28"),n),this._defaultCallbacks.set(za("0x3e"),t),this[za("0xff")].set(za("0x138"),o),this[za("0xff")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0xa3")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x7f")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0xc5")](o)||t[za("0x10")](o))return!0}return!1}function qa(t){return t.end[za("0x3b")]==t[za("0x82")][za("0x2c")]&&t.end[za("0x122")]}function Xa(t,e,n,o){const r=t=>!t[za("0xd0")].is(za("0x10b"))&&!o[za("0xc5")](t[za("0xd0")]),s=t[za("0x82")].getLastMatchingPosition(r),i=t[za("0x126")][za("0xd4")](r,{direction:za("0xf4")});return!(t[za("0x82")][za("0xb5")](s)&&t[za("0x126")][za("0xb5")](i)||(s[za("0xa1")](i)?n[za("0x96")](e,{range:n[za("0xd8")](s,i)}):n.removeMarker(e),0))}function $a(t){return(0,s.hashObject)(t)}function Qa(t){const e=t[za("0x82")][za("0x2c")];return e&&e.is(za("0x78"))}function Ja(t,e){const n=e[za("0xf8")].isObject(t)||e[za("0xf8")][za("0x56")](t);return e[za("0xd8")](e[za("0x57")](t,za("0x13c")),n?e.createPositionAfter(t):e[za("0x57")](t,za("0x126")))}function Za(t,e,n,o,r){if(n.end[za("0xb5")](o[za("0x82")]))return!0;if(t.type!=e[za("0x3d")])return!1;if(!n[za("0x126")][za("0xee")](o.start))return!1;const s=r[za("0xd8")](n.end,o[za("0x82")])[za("0xcc")]();for(const t of s)if([za("0xe5"),za("0x111")][za("0x1b")](t.type)&&r[za("0xf8")][za("0x10")](t[za("0xd0")]))return!1;return!0}const Ya=["commands","model","change:isDirty","canDiscard","_setPendingAction","_acceptCommand","commentThreadController","get","getRanges","unbind","canEditAt","canAccept","listenTo","isEnabled","discardSuggestion","PENDING_ACTION_SUGGESTION","plugins","PendingActions","bind","destroy","view","_discardCommand","_removePendingAction","stopListening","_editor","execute","_pendingAction","acceptSuggestion","remove"];var tc,ec;tc=Ya,ec=339,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xa")]=e,this.view=n,this[nc("0xf")]=o,this[nc("0x4")]=t,this[nc("0xe")]=t[nc("0x9")][nc("0x10")](nc("0x7")),this._discardCommand=t[nc("0x9")].get(nc("0x17")),this[nc("0x0")][nc("0x1b")](nc("0x16")).to(this[nc("0xe")],this[nc("0x1")],((t,e)=>t||e)),this[nc("0x0")][nc("0x1b")](nc("0x14")).to(this._acceptCommand,"isEnabled",(t=>t&&this._editor[nc("0xa")].canEditAt(e[nc("0x11")]()))),this[nc("0x0")].bind(nc("0xc")).to(this._discardCommand,nc("0x16"),(t=>t&&this[nc("0x4")][nc("0xa")][nc("0x13")](e[nc("0x11")]()))),this._pendingAction=null,n.isDirty&&this._setPendingAction(),this[nc("0x15")](n,nc("0x7"),(()=>this[nc("0x7")]())),this.listenTo(n,"discardSuggestion",(()=>this[nc("0x17")]())),this.listenTo(n,nc("0xb"),(()=>{n.isDirty?this[nc("0xd")]():this[nc("0x2")]()}))}acceptSuggestion(){this[nc("0xe")][nc("0x5")](this.model.id)}[nc("0x17")](){this[nc("0x1")][nc("0x5")](this[nc("0xa")].id)}[nc("0x1c")](){this[nc("0x0")][nc("0x12")](nc("0x16")),this[nc("0x0")][nc("0x12")](nc("0x14")),this[nc("0x0")][nc("0x12")]("canDiscard"),this[nc("0x3")](),this.commentThreadController[nc("0x1c")](),this._pendingAction&&this[nc("0x2")]()}[nc("0xd")](){const t=Yo(this._editor.locale,nc("0x18"));this[nc("0x6")]=this._editor[nc("0x19")].get("PendingActions").add(t)}[nc("0x2")](){null!==this[nc("0x6")]&&this[nc("0x4")][nc("0x19")][nc("0x10")](nc("0x1a"))[nc("0x8")](this._pendingAction),this[nc("0x6")]=null}}const rc=["_createCommentViews","length","isReadOnly","commentThreadInputView","bind","value","updateComment","destroy","_model","addComment","locale","fire","isActive","removeComment","setData","showInput","disableComments","assign","isEnabled","_localUser","hasDirtyComment","_createCommentThreadInputView","set","descriptionParts","commentThread","focus","canDiscard","editorConfig","disabledSubmit","cancel","authoredAt","isDirty","commentsListView","_config","submit","delegate"];var sc,ic;sc=rc,ic=482,function(t){for(;--t;)sc.push(sc.shift())}(++ic);const xc=function(t,e){return rc[t-=0]};class ac extends r.View{constructor(t,e,n,o){super(t),this[xc("0x12")]=null,this.commentThreadInputView=null,this[xc("0x8")](xc("0x22"),!1),this[xc("0x8")](xc("0x10"),e[xc("0x10")]),this.bind(xc("0x10")).to(e),this[xc("0x8")](xc("0x9"),[]),this.set(xc("0x11"),!1),this.set(xc("0x4"),!1),this[xc("0x8")]("canAccept",!1),this[xc("0x8")](xc("0xc"),!1),this[xc("0x1e")]=e,this[xc("0x5")]=n,this._config=o,o[xc("0x2")]?this.set("length",1):this[xc("0x16")]()}[xc("0xb")](){this.element[xc("0xb")]()}[xc("0x1d")](){this[xc("0x12")]&&this[xc("0x12")].destroy(),this.commentThreadInputView&&this[xc("0x19")][xc("0x1d")](),super[xc("0x1d")]()}[xc("0x16")](){const{CommentsListView:t}=this[xc("0x13")];this[xc("0x12")]=new t(this[xc("0x20")],this[xc("0x1e")][xc("0xa")],Object[xc("0x3")]({CommentView:this._config.CommentView},this[xc("0x13")])),this[xc("0x12")].delegate("removeComment").to(this),this[xc("0x12")][xc("0x15")](xc("0x1c")).to(this),this.commentsListView[xc("0x1a")]("isActive").to(this),this[xc("0x8")](xc("0x17"),this[xc("0x12")].length+1),this[xc("0x1a")](xc("0x17")).to(this[xc("0x12")],xc("0x17"),(t=>t+1)),this.commentThreadInputView=this[xc("0x7")](),this.on(xc("0x23"),(()=>this.focus())),this[xc("0x1a")](xc("0x11")).to(this[xc("0x12")],xc("0x6"),this[xc("0x19")].commentInputView,"value",((t,e)=>t||!!e))}[xc("0x7")](){const{CommentThreadInputView:t}=this[xc("0x13")],e=new t(this.locale,this[xc("0x5")],this[xc("0x13")][xc("0xd")]),n=e.commentInputView;return e[xc("0x1a")](xc("0x1")).to(this,xc("0x22"),this[xc("0x1e")].commentThread,xc("0x18"),n,xc("0x1b"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x14"),((t,e)=>{this[xc("0x21")](xc("0x1f"),e),n.editor[xc("0x0")]("")})),n.on(xc("0xf"),(()=>this.focus())),n[xc("0x1a")](xc("0xe")).to(this[xc("0x1e")][xc("0xa")],"isReadOnly"),e}}const cc=["extendTemplate","ck-suggestion--discard","@external","_model","EXTERNAL_IMPORT_WORD_SUGGESTION","_createButton","cancel","_descriptionElement",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__info","authoredAt","commentThread","creator","ck-annotation__main","editorReady","_config","userView","attributes","content","author","ck-suggestion--disabled-comments","innerHTML","descriptionParts","commentsListView","change:description","source","<p>","map","div","</p>","ck-annotation__content-wrapper","ck-suggestion__actions","discardButton","acceptSuggestion",'" title="',"importWord","ck-suggestion-","ck-suggestion__info-name","fire","element","bindTemplate","EXTERNAL_IMPORT_WORD_AVATAR","type","bind","canDiscard","check","span","discardSuggestion","children","color","</span>","ck-suggestion-wrapper--active","description","isActive","ck-annotation__actions","ck-suggestion__main",'<span class="ck-suggestion-type">',"ck-suggestion","ck-annotation__user","locale","set","getUserViewNotificationText",".ck-annotation__content-wrapper","innerText","isExternal","isEnabled","time","Accept suggestion","getExternalSuggestionNote","querySelector","ck-suggestion--accept","getTemplate","ck-comment__external","title","ck-suggestion__user","delegate","render","acceptButton","ck-suggestion-wrapper","name","commentThreadInputView"];var lc,dc;lc=cc,dc=293,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,r){super(e,n,o,r),this[uc("0xa")](uc("0x49"),""),this[uc("0x4a")](uc("0x49")).to(this,uc("0x35"),(t=>t&&t[0]?t[0][uc("0x49")]:"")),this[uc("0x4a")]("description").to(this,"descriptionParts",this,uc("0x3"),((t,e)=>{let n="";for(const e of t)n+=uc("0x39")+mc(e[uc("0x31")],e[uc("0x50")])+uc("0x3c");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[uc("0x26")]=null,this[uc("0x1b")]=this[uc("0x24")](Yo(e,uc("0x11")),t.icons[uc("0x4c")],uc("0x14"),uc("0x40"),"sw"),this[uc("0x1b")][uc("0x4a")](uc("0xf")).to(this,"canAccept"),this.discardButton=this[uc("0x24")](Yo(e,"Discard suggestion"),t.icons[uc("0x25")],uc("0x20"),uc("0x4e"),"sw"),this[uc("0x3f")][uc("0x4a")](uc("0xf")).to(this,uc("0x4b")),this[uc("0x2f")]=new s.UserView(e,this._model[uc("0x32")],this.getUserViewNotificationText()),this[uc("0x2f")].extendTemplate({attributes:{class:[uc("0x18"),uc("0x8")]}}),this.setTemplate(this[uc("0x15")]())}[uc("0x15")](){const t=this[uc("0x47")],e=[{tag:"div",attributes:{class:["ck-suggestion__info",uc("0x28")]},children:[{tag:uc("0x4d"),children:[{text:this[uc("0x2f")][uc("0x1d")]}],attributes:{class:[uc("0x44"),"ck-annotation__info-name"]}},{tag:uc("0x10"),attributes:{datetime:t.to(uc("0x29")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to(uc("0x29"),(t=>this[uc("0x2e")].formatDateTime(t)))}]}]},{tag:uc("0x3b"),attributes:{class:[uc("0x3e"),uc("0x4")]},children:[this[uc("0x1b")],this[uc("0x3f")]]},{tag:uc("0x3b"),attributes:{class:[uc("0x3d")]}}];this._model.isExternal&&e.push({tag:uc("0x3b"),attributes:{class:[uc("0x16")]},children:[{text:this[uc("0x12")]()}]});const n={tag:uc("0x3b"),attributes:{class:[uc("0x1c"),t.if(uc("0x3"),uc("0x1")),t.to("type",(t=>uc("0x43")+t)),this._config.disableComments&&uc("0x33")],"data-suggestion-id":this[uc("0x22")].id,"data-thread-id":this._model[uc("0x2a")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x3b"),attributes:{class:[uc("0x7"),"ck-annotation"]},children:[this[uc("0x2f")],{tag:uc("0x3b"),attributes:{class:[uc("0x5"),uc("0x2c")]},children:e}]}]};return this[uc("0x36")]&&this[uc("0x1e")]&&(n[uc("0x4f")].push(this.commentsListView,this[uc("0x1e")]),this[uc("0x36")][uc("0x19")]("editorReady").to(this),this[uc("0x36")][uc("0x19")]("editorDestroyed").to(this),this.commentThreadInputView[uc("0x19")](uc("0x2d")).to(this),this[uc("0x1e")][uc("0x19")]("editorDestroyed").to(this)),n}[uc("0x1a")](){super[uc("0x1a")](),this._descriptionElement=this[uc("0x46")][uc("0x13")](uc("0xc")),this[uc("0x26")][uc("0x34")]=this[uc("0x2")],this.on(uc("0x37"),((t,e,n)=>{this[uc("0x26")][uc("0x34")]=n}))}[uc("0x24")](t,e,n,o,s){const i=new r.ButtonView(this.locale);return i[uc("0xa")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[uc("0x1f")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x45")](o,this[uc("0x22")].id)})),i}[uc("0x12")](){return uc("0x42")===this[uc("0x22")][uc("0x30")]["@external"][uc("0x38")]?Yo(this.locale,uc("0x23")):Yo(this.locale,"EXTERNAL_SUGGESTION")}[uc("0xb")](){return this[uc("0x22")][uc("0xe")]?uc("0x42")===this[uc("0x22")][uc("0x30")][uc("0x21")][uc("0x38")]?Yo(this.locale,uc("0x48"),this[uc("0x22")][uc("0x2b")][uc("0x1d")]):Yo(this[uc("0x9")],"EXTERNAL_AVATAR",this._model[uc("0x2b")][uc("0x1d")]):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x3a")](((t,e)=>e%2!=0?uc("0x6")+fc(t)+uc("0x0"):fc(t))).join(""),e&&(n+=uc("0x27")+e.value+uc("0x41")+e[uc("0x17")]+'"></span>'),n}function fc(t){const e=document.createElement(uc("0x4d"));return e[uc("0xd")]=t,e[uc("0x34")]}const hc=["suggestion-","focus","createAnnotationView","keys","_disableComments","reduce","comments.editorConfig","componentFactory","locale","_updateController","discardAllSuggestions","isEnabled","head","listenTo","get","getSuggestion","trackChanges.disableComments","comments.maxCommentsWhenCollapsed","Track changes","add","createCommentThreadController","destroy","_bindAnnotationToEditors","remove","requires","arrowView","from","isOn","set","plugins","bind","isInContent","_viewToController","view","_handleSuggestionControllerDelayed","CommentsUI","_suggestionToController","CommentView","trackChanges.SuggestionThreadView","SuggestionThreadView","Annotations","_initializeController","pluginName","size","_annotationViews","filter","Accept all selected suggestions","define","lowest","activeMarkers","EditorAnnotations","_refreshActiveMarkers","delete","push","commentThread","separator","refreshSelectedViews","_destroyController","acceptButton","comments.maxCommentCharsWhenCollapsed","registerAnnotation","model","activeAnnotations","TrackChangesEditing","config","values","suggestionChanged","commands","suggestionLoaded","clear","trackChanges","_handleControllerBuffer","isDirty","execute","getDescriptions","addSourceCollector","getMarkerNames","mainView","addComment","acceptAllSuggestions","getAllAdjacentSuggestions","createAnnotation","_createUIButton","commandName","CommentsRepository","innerView","_descriptionFactory","hasSuggestion","change:previous","TrackChangesUI","descriptionParts","switchbutton","init","change:activeAnnotations","editing","getByInnerView","buttonView","value","acceptSelectedSuggestions","unbind","Discard all suggestions","editor","button","getRanges","type","has","toMany","previous","getFirstRange"];var bc,pc;bc=hc,pc=341,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0xa")](){return[Va,s.Users,Ec("0x46"),"Annotations",Ec("0x24")]}static get[Ec("0x1c")](){return Ec("0x4b")}constructor(t){super(t),this[Ec("0x16")]=new Map,this[Ec("0x12")]=new Map,this._annotationViews=new Map,this[Ec("0x39")]=new Map;const e=this[Ec("0x57")].config;e[Ec("0x21")](Ec("0x18"),gc),e[Ec("0x21")](Ec("0x2"),!1),this[Ec("0x63")]=e.get(Ec("0x2"))}[Ec("0x14")](t,e){0===this[Ec("0x39")][Ec("0x1d")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x39")]){const n=this[Ec("0x16")][Ec("0x5b")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x1b")](t)}this[Ec("0x57")][Ec("0xf")][Ec("0x0")](Ec("0x24"))[Ec("0x2a")](),this._refreshActiveMarkers(),this[Ec("0x39")][Ec("0x37")]()}),10),this._handleControllerBuffer.set(t,e)}[Ec("0x4e")](){const t=this[Ec("0x57")],e=t[Ec("0xf")].get(Ec("0x31")),n=t[Ec("0xf")][Ec("0x0")](Ec("0x1a")),o=t[Ec("0xf")][Ec("0x0")]("EditorAnnotations"),r=t.plugins[Ec("0x0")](Ec("0x46"));t.ui[Ec("0x66")][Ec("0x5")](Ec("0x38"),(t=>this[Ec("0x44")](t))),o[Ec("0x3d")]((()=>{const t=[];for(const[e,n]of Array[Ec("0xc")](this[Ec("0x16")])){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t.isInContent)continue;if(t.isMultiRange){r.push(...t[Ec("0x59")]());continue}const e=t[Ec("0x5e")]();if(r.length>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[Ec("0x27")](e)}t[Ec("0x27")]([n[Ec("0x13")],r])}return t})),this[Ec("0x6c")](e,Ec("0x36"),((t,e)=>{this[Ec("0x6c")](e,Ec("0x4a"),((t,n,o,r)=>{e[Ec("0x11")]&&(null==o?(this[Ec("0x68")](r[Ec("0x6b")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x68")](o.head),this[Ec("0x14")](e,!0)))})),null===e[Ec("0x5d")]?this[Ec("0x14")](e,!1):this._updateController(e[Ec("0x6b")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,"change:previous"),this._handleControllerBuffer[Ec("0x26")](e);const o=n?n[Ec("0x6b")]:e,r=this[Ec("0x16")].get(o);null!==n&&this[Ec("0x68")](o),null===n&&r&&this[Ec("0x2b")](e)})),this[Ec("0x6c")](e,Ec("0x34"),((t,e)=>{this._updateController(e)})),this[Ec("0x6c")](n,Ec("0x4f"),(()=>{this[Ec("0x25")]()})),this.listenTo(r,Ec("0x40"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x49")](n))return;const r=e[Ec("0x1")](n);this[Ec("0x16")][Ec("0x0")](r)[Ec("0x13")][Ec("0x60")]()}),{priority:Ec("0x22")})}[Ec("0x25")](){const t=this[Ec("0x57")][Ec("0xf")][Ec("0x0")]("Annotations"),e=this.editor[Ec("0xf")][Ec("0x0")]("TrackChangesEditing"),n=Array[Ec("0xc")](t[Ec("0x30")],(t=>t[Ec("0x47")]))[Ec("0x1f")]((t=>this._viewToController[Ec("0x5b")](t))),o=[];for(const t of n){const e=this[Ec("0x12")][Ec("0x0")](t)[Ec("0x2f")][Ec("0x42")]();o.push(...e[Ec("0x64")](((t,e)=>[...t,...e[Ec("0x3e")]()]),[]))}e[Ec("0x23")]=o}[Ec("0x44")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ec("0x57")][Ec("0x35")][Ec("0x0")](Ec("0x38")),s=Yo(t,Ec("0x4"));n[Ec("0x52")][Ec("0xe")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x52")][Ec("0x10")](Ec("0xd")).to(o,Ec("0x53")),n[Ec("0x52")].on(Ec("0x3b"),(()=>{o.execute(),this[Ec("0x57")][Ec("0x50")].view[Ec("0x60")]()}));const i=new e.Collection,x=[{type:Ec("0x4d"),model:{withText:!0,label:s,commandName:Ec("0x38")}},{type:Ec("0x29")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x41")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x20")),commandName:Ec("0x54")}},{type:Ec("0x58"),model:{withText:!0,label:Yo(t,Ec("0x56")),commandName:Ec("0x69")}},{type:Ec("0x58"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x29")};if(t[Ec("0x2f")]){const n=new r.Model(t.model),o=this[Ec("0x57")][Ec("0x35")][Ec("0x0")](n.commandName);n[Ec("0x10")](Ec("0xd"),Ec("0x6a")).to(o,Ec("0x53"),Ec("0x6a")),e={type:t[Ec("0x5a")],model:n}}i[Ec("0x5")](e)}(0,r.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x2f")])).map((t=>this[Ec("0x57")][Ec("0x35")].get(t.model[Ec("0x45")]))),c=n.buttonView;return c.actionView[Ec("0x55")](Ec("0x6a")),c[Ec("0xb")].unbind(Ec("0x6a")),c.actionView[Ec("0x10")](Ec("0x6a")).to(o,"isEnabled"),c[Ec("0xb")][Ec("0x10")](Ec("0x6a"))[Ec("0x5c")](a,Ec("0x6a"),((...t)=>t.some((t=>t)))),n.on(Ec("0x3b"),(t=>{this[Ec("0x57")][Ec("0x3b")](t.source[Ec("0x45")]),this[Ec("0x57")][Ec("0x50")].view[Ec("0x60")]()})),n}_initializeController(t){const e=this.editor,n=e[Ec("0x32")],o=e[Ec("0xf")][Ec("0x0")](Ec("0x1a")),r=e.plugins[Ec("0x0")](Ec("0x46")),i=e[Ec("0xf")].get(Ec("0x24")),x=e[Ec("0xf")][Ec("0x0")](s.Users).me,a=n[Ec("0x0")](Ec("0x38"))[Ec("0x19")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xf")].get(Ec("0x15"));let d,u;this._annotationViews[Ec("0x5b")](t.id)?(u=this._annotationViews[Ec("0x0")](t.id),d=u[Ec("0x3f")]):(d=new a(e[Ec("0x67")],t,x,{disableComments:this[Ec("0x63")],editorConfig:n.get(Ec("0x65")),maxCommentsWhenCollapsed:n[Ec("0x0")](Ec("0x3")),maxThreadTotalWeight:n[Ec("0x0")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n.get(Ec("0x2d")),formatDateTime:(0,s.getDateTimeFormatter)(n[Ec("0x0")](Ec("0x67"))),CommentView:n[Ec("0x0")]("comments")[Ec("0x17")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2c")].on(Ec("0x3b"),(()=>{e.editing[Ec("0x13")].focus()})),d.discardButton.on("execute",(()=>{e.editing[Ec("0x13")][Ec("0x60")]()})),u=o[Ec("0x61")](this.editor.locale,d),u[Ec("0x10")](Ec("0x3a")).to(d,Ec("0x3a")),u[Ec("0x10")]("length").to(d),u[Ec("0x10")](Ec("0x5a")).to(d,"type",(t=>"suggestion-"+t)),this._annotationViews[Ec("0xe")](t.id,u));const g=r[Ec("0x6")](t[Ec("0x28")],d),m=new oc(e,t,d,g),f=t[Ec("0x42")]()[Ec("0x1f")]((t=>t[Ec("0x11")]));d.descriptionParts=e[Ec("0xf")].get(Ec("0x31"))[Ec("0x48")].getDescriptions(f),this[Ec("0x16")].set(t,m),this[Ec("0x12")].set(d,m);const h=o[Ec("0x43")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Ec("0x1f")]((t=>t[Ec("0x11")]));for(const t of o)n[Ec("0x27")](...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x5f")+m[Ec("0x13")][Ec("0x5a")]});r[Ec("0x8")](d,h),o.add(h),i[Ec("0x2e")](h)}[Ec("0x2b")](t){const e=this[Ec("0x57")][Ec("0xf")][Ec("0x0")]("Annotations"),n=this[Ec("0x16")][Ec("0x0")](t),o=n[Ec("0x13")],r=e[Ec("0x51")](o);r&&e[Ec("0x9")](r),this[Ec("0x16")][Ec("0x26")](t),this[Ec("0x12")][Ec("0x26")](o),n[Ec("0x7")]()}_updateController(t){if(!t[Ec("0x11")]||!this[Ec("0x16")][Ec("0x5b")](t))return;const e=this.editor.plugins[Ec("0x0")](Ec("0x31")),n=this._suggestionToController[Ec("0x0")](t),o=t[Ec("0x42")]();n[Ec("0x13")][Ec("0x4c")]=e[Ec("0x48")][Ec("0x3c")](o)}[Ec("0x7")](){for(const t of this[Ec("0x16")][Ec("0x62")]())this._destroyController(t);for(const t of this[Ec("0x1e")][Ec("0x33")]())t[Ec("0x3f")][Ec("0x7")]();super.destroy()}}var Tc,Cc,yc=["requires","TrackChanges","getSuggestion","addSuggestion","editor","getSuggestions","Comments","pluginName","addSuggestionData","adapter","plugins","get"];Tc=yc,Cc=337,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0xb")](){return[Va,_c,kc("0x5")]}static get[kc("0x6")](){return kc("0x0")}set[kc("0x8")](t){this[kc("0x3")][kc("0x9")][kc("0xa")](Va)[kc("0x8")]=t}get[kc("0x8")](){return this[kc("0x3")][kc("0x9")][kc("0xa")](Va).adapter}[kc("0x2")](t){return this.editor[kc("0x9")][kc("0xa")](Va)[kc("0x7")](t)}[kc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x3")].plugins[kc("0xa")](Va)[kc("0x4")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this[kc("0x3")].plugins.get(Va)[kc("0x1")](t)}}const vc=["get","map","createElement","trackChangesData","model","track-changes-data-invalid-editor-creator","name","config","execute","plugins","getUser","acceptAllSuggestions","getDataWithAcceptedSuggestions","_adapter","push","TrackChangesData","getRootsAttributes","result","data","TrackChangesEditing","create","getFullData","constructor","define","trackChangesData.editorCreator","getRootNames","getSuggestions","getDataWithDiscardedSuggestions","Pagination","editorCreator","pluginName","destroy","CommentsRepository","addUser","reduce","editor","rootsAttributes","Users","appendChild","document","set","div","init","addSuggestionData"];var Rc,Ic;Rc=vc,Ic=255,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=[Sc("0x25")];class Nc extends t.Plugin{static get requires(){return[Va]}static get[Sc("0x27")](){return Sc("0x18")}init(){const t=this[Sc("0x0")];if(t[Sc("0x10")][Sc("0x20")](Sc("0x21"),(e=>{const n=t.model[Sc("0x4")][Sc("0x22")]()[Sc("0x2b")](((t,e)=>(t[e]="",t)),{});return t[Sc("0x1f")][Sc("0x1d")](n,e)})),"function"!=typeof t.config[Sc("0x9")]("trackChangesData")[Sc("0x26")])throw new e.CKEditorError(Sc("0xe"))}[Sc("0x15")](t){return Oc(this[Sc("0x0")],!0,t)}[Sc("0x24")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[Sc("0x1a")]="end"}[Sc("0x7")](){this[Sc("0x0")][Sc("0x12")].get(Sc("0x29"))[Sc("0x16")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Sc("0x0")][Sc("0x12")].get("TrackChangesEditing")[Sc("0x16")]=null}}function wc(t){return void 0!==t[Sc("0x19")]}async function Oc(t,e,n){const o=(0,s.sanitizeEditorConfig)(t,Lc);o[Sc("0x12")][Sc("0x17")](Va,Mc),o[Sc("0x1")]=wc(t)?t[Sc("0x19")]():void 0;const r=document.createDocumentFragment(),i=t[Sc("0x10")][Sc("0x9")](Sc("0xc"))[Sc("0x26")],x=await i(o,(()=>function(t){const e=document[Sc("0xb")](Sc("0x6"));return t[Sc("0x3")](e),e}(r)));!function(t,e){const n=t[Sc("0xd")][Sc("0x4")].getRootNames().reduce(((e,n)=>(e[n]=t[Sc("0x1b")][Sc("0x9")]({rootName:n}),e)),{}),o=t[Sc("0x12")][Sc("0x9")](Sc("0x2")).users[Sc("0xa")]((t=>({id:t.id,name:t[Sc("0xf")]}))),r=t[Sc("0x12")][Sc("0x9")](Sc("0x1c"))[Sc("0x23")]({skipNotAttached:!0,toJSON:!0}),s=e.plugins.get(Sc("0x2")),i=e[Sc("0x12")].get(Sc("0x1c"));for(const t of o)s[Sc("0x13")](t.id)||s[Sc("0x2a")](t);s.me||s.useAnonymousUser();for(const t of r)i[Sc("0x8")](t);e.data[Sc("0x5")](n)}(t,x),x[Sc("0x11")](e?Sc("0x14"):"discardAllSuggestions");const a=wc(x)?x[Sc("0x1e")](n):x[Sc("0x1b")].get(n);return await x[Sc("0x28")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();