@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230905.0 → 0.0.0-nightly-20230907.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 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:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["editor","forceDisabled","TrackChangesCommand","clearForceDisabled","commands","value","_isEnabledBasedOnSelection","_enabledCommands","isEnabled","execute","affectsData","refresh","_enableCommands","has","_disableUnsupportedCommands"];var c,l;c=a,l=127,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.refresh(),this[d("0xe")]=!1}[d("0x4")](){this[d("0x1")]=!0}[d("0x2")](){this[d("0xd")]=!this[d("0xd")],this[d("0xd")]?this[d("0x7")]():this[d("0x5")]()}[d("0x7")](){for(const t of this[d("0x8")][d("0xc")][d("0xc")]())t[d("0x3")]&&!this[d("0x0")].has(t)&&t[d("0x9")](d("0xa"))}[d("0x5")](){for(const t of this.editor[d("0xc")][d("0xc")]())t[d("0x3")]&&!this[d("0x0")][d("0x6")](t)&&t[d("0xb")](d("0xa"))}}const g=["execute","model","TrackChangesEditing","_suggestions","refresh","track-changes-accept-suggestion-not-found","canEditAt","editor","acceptSuggestion","get","getRanges"];var m,f;m=g,f=318,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("0x4")]=e,this[h("0x5")](),this._isEnabledBasedOnSelection=!1}[h("0x5")](){this.isEnabled=!0}[h("0x1")](t){const n=this[h("0x4")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x0")]();this[h("0x8")][h("0x2")][h("0x7")](o)&&this[h("0x8")].plugins[h("0xa")](h("0x3"))[h("0x9")](n)}}const p=["refresh","editor","model","track-changes-discard-suggestion-not-found","isEnabled","execute","discardSuggestion","TrackChangesEditing","plugins","get","_isEnabledBasedOnSelection"];var E,_;E=p,_=479,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("0x5")](),this[T("0x4")]=!1}[T("0x5")](){this[T("0x9")]=!0}[T("0xa")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n.getRanges();this.editor[T("0x7")].canEditAt(o)&&this[T("0x6")][T("0x2")][T("0x3")](T("0x1"))[T("0x0")](n)}}const y=["getRanges","color","content","createPositionAt","isInContent","join","change","createPositionBefore","deletion","createPositionAfter","replace","createRange","length","splice","value"," [color ","start","type","end","isCollapsed","execute","sort","isTouching"];var k,A;k=y,A=368,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x15")](((t,e)=>"deletion"==t[v("0x11")]&&v("0x8")!=e[v("0x11")]?-1:v("0x8")!=t[v("0x11")]&&v("0x8")==e[v("0x11")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t[v("0xc")];){const i=t[o],x=t[o+1];n||(n=e[v("0x7")](i)),S(e,i,x)||(r.push(e[v("0xb")](n,s.isObject(i)?e[v("0x9")](i):e[v("0x3")](i,"end"))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),r=t[v("0x7")](n);return o[v("0x16")](r)}function L(t,e,n){for(;n[v("0xc")];){const o=n[v("0xd")](0,100);t[v("0x6")]((()=>{for(const t of o)t[v("0x4")]&&e[v("0x14")](t.id)}))}}const N=["isEnabled","model","refresh","canEditAt","_command","_isEnabledBasedOnSelection","from","isInContent","_suggestions","values","editor"];var w,M;w=N,M=451,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this._suggestions=n,this[O("0x2")](),this[O("0x5")]=!1}refresh(){const t=Array.from(this[O("0x8")].values()).some((t=>t[O("0x7")]));this[O("0x0")]=this[O("0x4")].isEnabled&&t}execute(){const t=R(Array[O("0x6")](this[O("0x8")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xa")][O("0x1")][O("0x3")](t))return}L(this[O("0xa")].model,this[O("0x4")],t)}}const P=["document","isEnabled","size","editor","_suggestions","values","refresh","getRanges","execute","model","_command","from","_selectedSuggestions"];var D,B;D=P,B=479,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._suggestions=n,this[j("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}[j("0x8")](){const t=this.editor[j("0xb")][j("0x2")].selection,e=Array.from(this[j("0x6")][j("0x7")]());this[j("0x1")]=function(t,e){const n=Array.from(t[v("0x0")]()),o=new Set;for(const r of e)if(r[v("0x4")])for(const e of n)for(const n of r[v("0x0")]())(e.isIntersecting(n)||t[v("0x13")]&&!r.isMultiRange&&r.next&&n[v("0x12")][v("0x16")](e[v("0x10")]))&&o.add(r);return o}(t,e),this[j("0x3")]=this._command[j("0x3")]&&!!this[j("0x1")][j("0x4")]}[j("0xa")](){const t=R(Array[j("0x0")](this[j("0x1")]));for(const e of t){const t=e[j("0x9")]();if(!this[j("0x5")][j("0xb")].canEditAt(t))return}L(this.editor.model,this[j("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const 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 wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const 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 we=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 Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&se(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,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,Ve,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 wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=rt?rt.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,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==Qn||"[object GeneratorFunction]"==u;if(pe(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!s){if(x=c||g?{}:Wn(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?Ve:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const 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 Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};const 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 wo=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=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 Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var 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):wo(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=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 zo=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 Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["authoredAt","commentThread","getMultiRangeId","filter","end","getFirstRange","addRange","getMarkerNames","clear","suggestion:","hasComments","_onAccept","toJSON","_saved","head","discard","markers","change","isInContent","decorate","addMarkerName","getRange","_onDiscard","set","removeMarkers","subType","data","removeMarker","onAccept","_markerNames","reduce","getMarkers","next","accept","createdAt","from","isIntersectingWithRange","removeAttribute","type","addMarker","getAllAdjacentSuggestions","onDiscard","size","nodeAfter","isExternal","getContainedElement","isIntersecting","setAttribute","push","nodeBefore","length","_model","previous","map","_isDataLoaded","creator","start","author","_onAttributesChange","getRanges","attributes","getFirstMarker"];var $o,Jo;$o=Xo,Jo=424,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x2")]=!1,this.id=e.id,this[Qo("0x30")]=e.type,this[Qo("0x23")]=e[Qo("0x23")]||null,this.author=e[Qo("0x5")],this[Qo("0x3")]=e[Qo("0x3")]||e[Qo("0x5")],this[Qo("0x36")]=Boolean(e.attributes&&e[Qo("0x8")]["@external"]),this[Qo("0x24")]=null,this[Qo("0x3d")]=t,this[Qo("0x15")]=e[Qo("0x26")],this[Qo("0x20")]=e[Qo("0x33")],this._onAttributesChange=e.onAttributesChange,this._markerNames=new Set,this[Qo("0x2c")]=null,this.set(Qo("0xa"),null),this.set(Qo("0x8"),e.attributes||{}),this[Qo("0x21")](Qo("0x0"),null),this[Qo("0x21")]("next",null),this[Qo("0x21")](Qo("0xb"),null),this[Qo("0x21")](Qo("0x17"),!1),this[Qo("0x1d")](Qo("0x2b")),this[Qo("0x1d")](Qo("0x19"))}get[Qo("0x18")](){let t=this;for(;t[Qo("0x0")];)t=t.previous;return t}get[Qo("0x14")](){return!!this[Qo("0xb")]&&this[Qo("0xb")][Qo("0x3c")]>0}get isMultiRange(){return 0!=this[Qo("0x27")][Qo("0x34")]&&6==Array[Qo("0x2d")](this._markerNames)[0].split(":")[Qo("0x3c")]}get[Qo("0x1c")](){return null!==this[Qo("0x9")]()}[Qo("0x1e")](t){this[Qo("0x27")].add(t)}[Qo("0x11")](){return Array[Qo("0x2d")](this[Qo("0x27")])}[Qo("0x29")](){return this[Qo("0x11")]()[Qo("0x1")]((t=>this[Qo("0x3d")][Qo("0x1a")].get(t)))[Qo("0xd")]((t=>t))}[Qo("0x9")](){return this[Qo("0x29")]()[0]||null}[Qo("0x22")](){this[Qo("0x3d")][Qo("0x1b")]((t=>{for(const e of this.getMarkers())t[Qo("0x25")](e)})),this[Qo("0x27")][Qo("0x12")]()}[Qo("0x25")](t){this[Qo("0x3d")][Qo("0x1b")]((e=>{e[Qo("0x25")](t)})),this[Qo("0x27")].delete(t)}[Qo("0x10")](t){const e=Qo("0x13")+this[Qo("0x30")]+":"+this[Qo("0x23")]+":"+this.id+":"+this[Qo("0x3")].id+":"+Zo[Qo("0xc")]();this.addMarkerName(e),this._model[Qo("0x1b")]((n=>{n[Qo("0x31")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2e")](t){for(const e of this[Qo("0x7")]())if(e[Qo("0x38")](t))return!0;return!1}[Qo("0x7")](){return this.getMarkers()[Qo("0x1")]((t=>t[Qo("0x1f")]()))}getItems(){return this[Qo("0x7")]()[Qo("0x28")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0xf")](){var t;return(null===(t=this[Qo("0x9")]())||void 0===t?void 0:t[Qo("0x1f")]())||null}[Qo("0x37")](){const t=this[Qo("0x7")]();if(1!=t[Qo("0x3c")])return null;const e=t[0],n=e[Qo("0x4")][Qo("0x35")],o=e[Qo("0xe")][Qo("0x3b")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2b")](){this._onAccept(this[Qo("0x7")](),this[Qo("0x24")],this[Qo("0x8")]),this[Qo("0x22")]()}[Qo("0x19")](){this[Qo("0x20")](this.getRanges(),this[Qo("0x24")],this[Qo("0x8")]),this[Qo("0x22")]()}[Qo("0x32")](){const t=[];let e=this[Qo("0x18")];for(;e;)t[Qo("0x3a")](e),e=e[Qo("0x2a")];return t}[Qo("0x39")](t,e){const n=eo(this[Qo("0x8")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x2f")](t){const e=eo(this[Qo("0x8")]);qo(e,t),Go(e,this[Qo("0x8")])||(this.attributes=e,this[Qo("0x6")](this[Qo("0x8")]))}[Qo("0x16")](){return{id:this.id,type:this.subType?this[Qo("0x30")]+":"+this.subType:this[Qo("0x30")],authorId:this[Qo("0x3")].id,createdAt:this[Qo("0x2c")],hasComments:this[Qo("0x14")],data:this[Qo("0x24")],attributes:this[Qo("0x8")]}}static[Qo("0xc")](){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=["getDescriptions","isEqual","add","_itemLabelsCallbacks","registerDescriptionCallback","get","function","removeObject","_customCallbacks","getFirstRange","REPLACE_TEXT","insertion","Object","pop","*Remove:* %0","_schema","$textProxy","end","previousSibling","skip","$text","length","deletion","name","removeEmptyContainer","$1 $2","nextSibling","isObject","_itemLabels","replace","*Merge:* %0","getWalker","element","text","_locale","type","registerElementLabel","item","Container","*Split:* %0","isEmpty","*Insert:* %0","match","addContainer","getItemLabel","ELEMENT_SPACE","push","data","elementStart","EmptyContainer","isInContent","elementEnd","_addDescriptionItems","_resolveDescriptionItems","indexOf","set","quantity","remove"];var er,nr;er=tr,nr=283,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("0xf")]=[],this[or("0x23")]=new Map,this._itemLabelsCallbacks=[],this[or("0x16")]=t,this[or("0x29")]=e}[or("0x7")](t){const e=[];for(let n=0;n<t[or("0x1c")];n++){const o=t[n];if(!o[or("0x39")])continue;let r=!1;for(const t of this[or("0xf")]){const n=t(o);if(n){or("0x2a")in n&&e[or("0x35")](n),r=!0;break}}if(!r){this[or("0x1")](e,o);const r=t[n+1];if(r&&!o[or("0x10")]()[or("0x18")][or("0x8")](r[or("0x10")]().start)){const t=e[e[or("0x1c")]-1],n=or("0x12")==o[or("0x2a")]?or("0x9"):or("0x6");t&&or("0x28")==t.type&&(t[n]+="\n")}}}return this[or("0x2")](e)}[or("0xb")](t){this[or("0xf")][or("0x35")](t)}[or("0x2b")](t,n,o=e.priorities.normal){or("0xd")==typeof t?(0,e.insertToPriorityArray)(this[or("0xa")],{matchingCallback:t,label:n,priority:o}):this[or("0x23")][or("0x4")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[or("0xa")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[or("0x23")][or("0xc")](t[or("0x1e")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x1e")]}_addDescriptionItems(t,e){const n=e[or("0x10")]()[or("0x26")](),o=or("0x12")==e[or("0x2a")]?"add":or("0x6");for(const e of n){const r=e[or("0x2c")],s=t[t[or("0x1c")]-1];if(r.is(or("0x17")))s&&s[or("0x2a")][or("0x3")](or("0x2d"))>-1&&t[or("0x14")](),s&&or("0x28")==s.type?s[o]+=r[or("0x36")]:t.push({type:or("0x28"),add:or("0x9")==o?r[or("0x36")]:"",remove:or("0x6")==o?r[or("0x36")]:""});else if(this._schema[or("0x22")](r)){const i=r;if(s&&s[or("0x2a")][or("0x3")](or("0x2d"))>-1&&t[or("0x14")](),or("0x0")==e[or("0x2a")])continue;s&&s.type==o+or("0x13")&&s.element[or("0x1e")]==i[or("0x1e")]?s.quantity++:t[or("0x35")]({type:o+"Object",element:i,quantity:1}),n[or("0x1a")]((t=>!("elementEnd"==t[or("0x2a")]&&t[or("0x2c")]==r)))}else if(this._schema.checkChild(r,or("0x1b"))||r.is(or("0x27"),"softBreak")){const n=r;if(or("0x9")==o&&or("0x37")==e[or("0x2a")]||or("0x6")==o&&or("0x0")==e[or("0x2a")])continue;if(s&&-1==s[or("0x2a")][or("0x3")]("Container")){or("0x28")==s[or("0x2a")]&&(s[o]+="\n");continue}let i;if(i=or("0x9")==o?n[or("0x21")]&&!this[or("0x16")][or("0x22")](n[or("0x21")])?n.nextSibling:null:n.previousSibling&&!this[or("0x16")][or("0x22")](n[or("0x19")])?n[or("0x19")]:null,n.isEmpty||i&&i[or("0x2f")]){const e=i&&i[or("0x2f")]?i:n;s&&s[or("0x2a")]==o+or("0x38")&&s[or("0x27")][or("0x1e")]==e[or("0x1e")]?s[or("0x5")]++:t[or("0x35")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[or("0x35")]({type:o+or("0x2d"),element:n})}}}[or("0x2")](t){const e=this[or("0x29")],n=[];for(const o of t){switch(o[or("0x2a")]){case or("0x28"):if(o[or("0x9")]=o.add[or("0x24")](/(\S)\u000A+(\S)/g,or("0x20"))[or("0x24")](/\u000A/g,""),o[or("0x6")]=o[or("0x6")][or("0x24")](/(\S)\u000A+(\S)/g,or("0x20"))[or("0x24")](/\u000A/g,""),""!=o[or("0x9")]&&""!=o.remove){n[or("0x35")]({type:or("0x24"),content:Yo(e,or("0x11"),['"'+o.remove+'"','"'+o[or("0x9")]+'"'])});continue}if(null!=o[or("0x9")][or("0x31")](/^ +$/)){n.push({type:or("0x12"),content:Yo(e,or("0x30"),Yo(e,or("0x34"),o[or("0x9")][or("0x1c")]))});continue}if(null!=o.remove[or("0x31")](/^ +$/)){n.push({type:or("0x1d"),content:Yo(e,or("0x15"),Yo(e,or("0x34"),o[or("0x6")][or("0x1c")]))});continue}if(""!=o[or("0x9")]){n[or("0x35")]({type:or("0x12"),content:Yo(e,or("0x30"),'"'+o[or("0x9")]+'"')});continue}n[or("0x35")]({type:or("0x1d"),content:Yo(e,or("0x15"),'"'+o[or("0x6")]+'"')});continue;case"addEmptyContainer":case"addObject":n.push({type:"insertion",content:Yo(e,or("0x30"),this.getItemLabel(o.element,o.quantity))});continue;case or("0x1f"):case or("0xe"):n.push({type:or("0x1d"),content:Yo(e,or("0x15"),this[or("0x33")](o[or("0x27")],o.quantity))});continue;case or("0x32"):n[or("0x35")]({type:or("0x12"),content:Yo(e,or("0x2e"),this[or("0x33")](o[or("0x27")],o[or("0x5")]))});continue;case"removeContainer":n[or("0x35")]({type:or("0x1d"),content:Yo(e,or("0x25"),this[or("0x33")](o[or("0x27")],o.quantity))});continue}n[or("0x35")](o)}return n}}const sr=["document","checkAttribute","AlignmentEditing","getAttribute","editor","justify","has","getSelectedBlocks","format","_descriptionFactory","center","right","model","markBlockFormat","locale","TrackChangesEditing","from","value","get","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGN_TO_LEFT","alignment","change"];var ir,xr;ir=sr,xr=276,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{afterInit(){const t=this.editor,e=t[ar("0xe")];if(!t.plugins[ar("0x6")](ar("0x2")))return;const n=t.plugins[ar("0x12")](ar("0xf"));n.enableCommand(ar("0x15"),((e,o={})=>{let r=o.value;o[ar("0x11")]||(r="ltr"===t.locale.contentLanguageDirection?"left":ar("0xb"));const s=Array[ar("0x10")](this[ar("0x4")].model[ar("0x0")].selection[ar("0x7")]()).filter((t=>function(t,e,n){const o=t[ar("0x3")](ar("0x15"))||null;return e[ar("0x1")](t,"alignment")&&n!=o}(t,this[ar("0x4")][ar("0xc")].schema,r)));t.model[ar("0x16")]((()=>{for(const t of s)n[ar("0xd")](t,{commandName:ar("0x15"),commandParams:[{value:r}]})}))})),n[ar("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ar("0x15")==n.commandName){const t=n.commandParams[0][ar("0x11")];return{type:ar("0x8"),content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,ar("0x14"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case ar("0xa"):return Yo(e,ar("0x13"));case ar("0x5"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const lr=["isContent","start","elementEnd","model","writer","getItems","TrackChangesEditing","getCustomProperty","isAtEnd","previousPosition","test","get","insert","span","element","hasAttribute","mapper","listIndent","listItem","getWalker","includes","markerRange","isLimit","addClass","toViewElement","nextSibling","schema","createRangeOn","type","push","isBlock","item","markerName"];var dr,ur;dr=lr,ur=261,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("0x8")]())r[gr("0x12")](t)&&o[gr("0x20")](n[gr("0x1e")](r));return o}function fr(t){const e=[];if(t.is(gr("0x11"),gr("0x15"))){let n=t.nextSibling;for(;n&&n.is("element",gr("0x15"))&&n.getAttribute(gr("0x14"))>0;)e[gr("0x20")](n),n=n.nextSibling}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gr("0xe")](gr("0x9"));return(r,s,i)=>{if(!i.consumable[gr("0xd")](s[gr("0x18")],r.name))return;const x=s[gr("0x18")][gr("0x16")](),a=s.markerRange[gr("0x4")],c=t[gr("0x6")][gr("0x1d")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gr("0x1")];u=u||c[gr("0x3")](e);const n=i[gr("0x13")][gr("0x1b")](e);if(n&&n[gr("0xa")]("addHighlight"))return;gr("0x5")==t[gr("0x1f")]&&c[gr("0x0")](e)&&!c[gr("0x19")](e)&&(e[gr("0x1c")]||a[gr("0xb")]?l&&l.parent==e||(l=e,m(t[gr("0xc")]),g=!0):d=d||t.previousPosition)}function m(t){const r=i[gr("0x7")].createUIElement(gr("0x10"),{class:"ck-suggestion-marker-"+e}),x=i[gr("0x13")].toViewPosition(t);n&&o.activeMarkers[gr("0x17")](s[gr("0x2")])&&i[gr("0x7")][gr("0x1a")]("ck-suggestion-marker--active",r),i[gr("0x7")][gr("0xf")](x,r),i.mapper.bindElementToMarker(r,s[gr("0x2")])}u||g||!d||m(d)}}const br=["*Remove format:* %0","FORMAT_SUBSCRIPT","BoldEditing","FORMAT_ITALIC","format","value","ItalicEditing","StrikethroughEditing","italic","from","isCollapsed","SubscriptEditing","slice","locale","*Format:* %0","model","TrackChangesEditing","FORMAT_SUPERSCRIPT","superscript","document","markInlineFormat","registerDescriptionCallback","has","SuperscriptEditing","get","FORMAT_BOLD","FORMAT_UNDERLINE","CodeEditing","underline","commandParams","commands","forceValue","subscript","strikethrough","toLowerCase","_descriptionFactory","plugins","getRanges","selection"];var pr,Er;pr=br,Er=472,function(t){for(;--t;)pr.push(pr.shift())}(++Er);const _r=function(t,e){return br[t-=0]},Tr=[_r("0x25"),_r("0x2"),"UnderlineEditing",_r("0x17"),_r("0x3"),_r("0x7"),_r("0x13")];class Cr extends t.Plugin{afterInit(){const t=this.editor,e=t[_r("0xb")],n=t[_r("0x20")][_r("0x14")](_r("0xc")),o=t[_r("0x9")];for(const o of Tr){if(!t[_r("0x20")][_r("0x12")](o))continue;const r=o[_r("0x8")](0,-7)[_r("0x1e")](),s=t[_r("0x1a")][_r("0x14")](r);n.enableCommand(r,((t,o={})=>{const i=e[_r("0xf")][_r("0x22")];if(i[_r("0x6")])return void t(o);const x=void 0!==o.forceValue?o[_r("0x1b")]:!s[_r("0x1")];e.change((()=>{const t=Array[_r("0x5")](i[_r("0x21")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0x10")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x1f")][_r("0x11")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[_r("0x19")][0].forceValue?{type:_r("0x0"),content:Yo(o,_r("0xa"),e)}:{type:_r("0x0"),content:Yo(o,_r("0x23"),e)}}))}r("bold",Yo(o,_r("0x15"))),r(_r("0x4"),Yo(o,_r("0x26"))),r(_r("0x18"),Yo(o,_r("0x16"))),r("code",Yo(o,"FORMAT_CODE")),r(_r("0x1d"),Yo(o,"FORMAT_STRIKETHROUGH")),r(_r("0x1c"),Yo(o,_r("0x24"))),r(_r("0xe"),Yo(o,_r("0xd")))}}const yr=["from","getSelectedBlocks","editor","commands","document","name","$root","model","parent","TrackChangesEditing","value","checkChild","BlockQuoteEditing","change","filter","locale","schema","forceValue","get","registerDescriptionCallback","markBlockFormat","blockQuote","commandParams","*Remove format:* %0","afterInit","*Format:* %0"];var kr,Ar;kr=yr,Ar=424,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x10")](){const t=this[vr("0x14")],e=t[vr("0x7")];if(!t.plugins.has(vr("0x4")))return;const n=t.plugins[vr("0xa")](vr("0x1")),o=this[vr("0x14")][vr("0x15")][vr("0xa")](vr("0xd"));n.enableCommand(vr("0xd"),((e,r={})=>{const s=this[vr("0x14")][vr("0x19")][vr("0x16")].selection,i=r&&void 0!==r[vr("0x9")]?r[vr("0x9")]:!o[vr("0x2")];let x=[];if(i){const e=Array[vr("0x12")](s[vr("0x13")]())[vr("0x6")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t.parent,"blockQuote"),o=e[vr("0x3")]([vr("0x18"),vr("0xd")],t);return n&&o}(t,this.editor.model[vr("0x8")])));x=I(e,t[vr("0x19")])}else{const e=Array[vr("0x12")](s[vr("0x13")]()).filter((t=>Ir(t)));x=I(e,t[vr("0x19")])}t[vr("0x19")][vr("0x5")]((()=>{for(const t of x)n[vr("0xc")](t,{commandName:vr("0xd"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vr("0xb")]((t=>{const{data:n}=t;if(n&&vr("0xd")==n.commandName){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vr("0xe")][0][vr("0x9")]?{type:"format",content:Yo(e,vr("0x11"),t)}:{type:"format",content:Yo(e,vr("0xf"),t)}}}))}}function Ir(t){return vr("0xd")==t[vr("0x0")][vr("0x17")]}const Sr=["enableCommand","get","TrackChangesEditing","ckbox","plugins","commands"];var Lr,Nr;Lr=Sr,Nr=191,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const wr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{afterInit(){const t=this.editor;t[wr("0x0")][wr("0x2")](wr("0x4"))&&t[wr("0x5")].get(wr("0x3"))[wr("0x1")](wr("0x4"))}}const Or=["editor","commands","plugins","checkChild","registerDescriptionCallback","formatBlock","codeBlock","get","from","locale","model","TrackChangesEditing","format","registerElementLabel","blockName","_descriptionFactory","enableCommand","*Format:* %0","label","language","languages","commandParams","markBlockFormat","indentCodeBlock","ELEMENT_CODE_BLOCK","afterInit","parent","name","value","find","getSelectedBlocks","config","CodeBlock","forceValue","*Remove format:* %0","isLimit"];var Fr,Pr;Fr=Or,Pr=273,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Dr("0x4")](){const t=this[Dr("0xf")];if(!t.plugins.has(Dr("0xb")))return;const e=t[Dr("0x11")][Dr("0x16")](Dr("0x1a")),n=t[Dr("0x18")],o=t[Dr("0xa")][Dr("0x16")](Dr("0x15"))[Dr("0x23")],r=t[Dr("0x10")].get(Dr("0x15"));e.enableCommand(Dr("0x2")),e[Dr("0x1f")]("outdentCodeBlock"),e[Dr("0x1f")]("codeBlock",((n,s={})=>{const i=t.model,x=t[Dr("0x19")].document.selection,a=s&&void 0!==s[Dr("0xc")]?s[Dr("0xc")]:!r[Dr("0x7")];let c;s[Dr("0x22")]||(s[Dr("0x22")]=o[0][Dr("0x22")]),c=a?Array.from(x[Dr("0x9")]()).filter((t=>{return jr(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Dr("0xe")](e)&&n[Dr("0x12")](e[Dr("0x5")],"codeBlock"));var e,n})):Array[Dr("0x17")](x[Dr("0x9")]()).filter((t=>jr(t)));const l=I(c,i);i.change((()=>{for(const t of l)e[Dr("0x1")](t,{commandName:"codeBlock",commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x1d")})}))})),e[Dr("0x1e")][Dr("0x1c")](Dr("0x15"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Dr("0x13")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0x14")==r&&s&&Dr("0x15")==s.commandName){const t=s[Dr("0x0")][0][Dr("0x22")],r=e(o[Dr("0x8")]((e=>e.language===t))[Dr("0x21")]);return s[Dr("0x0")][0].forceValue?{type:Dr("0x1b"),content:Yo(n,Dr("0x20"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+r+")")}:{type:"format",content:Yo(n,Dr("0xd"),Yo(n,Dr("0x3"),1))}}}))}}function jr(t){return Dr("0x15")==t[Dr("0x6")]}const Ur=["enableCommand","get","plugins","TrackChangesEditing","afterInit","editor","addCommentThread"];var Gr,Hr;Gr=Ur,Hr=461,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Wr("0x5")](){const t=this[Wr("0x6")];t[Wr("0x3")].has("CommentsEditing")&&t[Wr("0x3")][Wr("0x2")](Wr("0x4"))[Wr("0x1")](Wr("0x0"))}}var Vr=n(181);const Kr=["showSuggestionHighlights","buffer","editing","isCollapsed","fromRange","enableCommand","forward","unbindElementFromMarkerName","commands","uiElement","merge","requires","unit","mapper","get","remove","high","end","bind","markerName","plugins","options","writer","setSelection","model","deleteForward","addMarker:suggestion:deletion","enqueueChange","removeMarker:suggestion:deletion","$graveyard","lock","start","batch","downcastDispatcher","rootName","createRange"];var qr,Xr;qr=Kr,Xr=352,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Jr extends t.Plugin{static get[$r("0x13")](){return[Vr.Delete]}init(){const t=this.editor,e=t[$r("0x1c")][$r("0x16")]("TrackChangesEditing");e[$r("0xd")]("delete");const n=t[$r("0x10")][$r("0x16")]("deleteForward");e[$r("0xd")]($r("0x21"),((e,o={})=>{const r=t[$r("0x20")].createSelection(t[$r("0x20")].document.selection);r[$r("0xb")]&&t[$r("0x20")].modifySelection(r,{direction:$r("0xe"),unit:o[$r("0x14")]});const s=r.getFirstRange(),x=i.LiveRange[$r("0xc")](s);let a;e(o),a=$r("0x1")==x.root[$r("0x6")]?t[$r("0x20")].createRange(s[$r("0x3")]):t[$r("0x20")].createRange(x[$r("0x3")],x[$r("0x19")]),x.detach(),t[$r("0x20")][$r("0x23")](n[$r("0x9")][$r("0x4")],(t=>{n[$r("0x9")][$r("0x2")](),t[$r("0x1f")](t[$r("0x7")](a[$r("0x19")])),n.buffer.unlock()}))})),t[$r("0xa")][$r("0x5")].on($r("0x22"),hr(t,"merge"),{priority:$r("0x18")}),t.data[$r("0x5")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$r("0x1d")][$r("0x8")]&&hr(t,$r("0x12"),{showActiveMarker:!1})[$r("0x1a")](this)(e,n,o)}),{priority:$r("0x18")}),t[$r("0xa")][$r("0x5")].on($r("0x0"),((t,e,n)=>{const o=n[$r("0x15")].markerNameToElements(e[$r("0x1b")]);if(o)for(const t of o)t.is($r("0x11"))&&(n[$r("0x15")][$r("0xf")](t,e[$r("0x1b")]),n[$r("0x1e")][$r("0x17")](t))}),{priority:$r("0x18")})}}const Qr=["numberedList","getAttribute","forceValue","ELEMENT_LIST_ITEM","*Change to:* %0","mergeListItemForward","splitListItemBefore","registerCustomCallback","listItemId","commands","end","bulletedList","detach","_descriptionFactory","commandName","deletion","ELEMENT_NUMBERED_LIST","plugins","markBlockFormat","listIndent","has","getFirstRange","findIndex","commandParams","add","nextSibling","schema","map","registerElementLabel","before","value","createRange","toUpperCase","DocumentListUtils","get","locale","documentList","change","splitListItemAfter","isObject","parent","length","slice","model","indentList","start","format","from","TrackChangesEditing","ELEMENT_","fromRange","push","DocumentListEditing","expandListBlocksToCompleteList","nodeAfter","mergeListItemBackward","getSelectedBlocks","refresh","setSelection","document","markMultiRangeBlockFormat","createPositionAt","outdentList","registerDescriptionCallback","after","listType","hasAttribute","enableCommand","selection","execute","*Format:* remove from %0","previousSibling"];var Zr,Yr;Zr=Qr,Yr=358,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Qr[t-=0]};class es extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[ts("0x16")](ts("0x36")))return;const e=t[ts("0x25")],n=t[ts("0x13")].get(ts("0x32")),o=t[ts("0x13")][ts("0x24")](ts("0x23"));function r(e){return()=>{const r=t[ts("0xb")][ts("0x24")](e);let s=Array[ts("0x31")](t[ts("0x2d")][ts("0x3d")][ts("0x46")][ts("0x3a")]());if(a(e)){s=o[ts("0x37")](s);const t=[];for(const e of s)o.isFirstBlockOfListItem(e)&&t[ts("0x35")](e);s=t}t[ts("0x2d")][ts("0x27")]((()=>{n[ts("0x3e")](s,{commandName:e,commandParams:[{forceValue:!r[ts("0x20")]}],formatGroupId:ts("0x43")},[],ts("0x26"))}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x31")](t);const n=e[ts("0x18")]((t=>!t[ts("0x44")]("listItemId")));return n>-1&&(e=e[ts("0x2c")](0,n)),e}(t[ts("0x2d")][ts("0x3d")][ts("0x46")][ts("0x3a")]()),r=o[o[ts("0x2b")]-1],s=t[ts("0x2d")][ts("0x1c")][ts("0x29")](r)?ts("0x42"):ts("0xc"),i=t[ts("0x2d")][ts("0x21")](t.model[ts("0x3f")](o[0],"before"),t[ts("0x2d")][ts("0x3f")](r,s));t[ts("0x2d")][ts("0x27")]((()=>{n[ts("0x14")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ts("0x1b")];for(;t&&t[ts("0x3")](ts("0x15"))>n[ts("0x3")](ts("0x15"));)e[ts("0x1a")](t),t=t[ts("0x1b")]}return Array[ts("0x31")](e)}(o))}))}}function x(e){return()=>{const o=t[ts("0x2d")][ts("0x3d")][ts("0x46")].getSelectedBlocks().next()[ts("0x20")],r=t.model[ts("0x3f")](o,ts("0x1f")),s=t[ts("0x2d")].createPositionAt(o,0),i=t[ts("0x2d")][ts("0x21")](r,s);t[ts("0x2d")].change((()=>{n[ts("0x14")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x43")})}))}}function a(e){const n=t[ts("0xb")][ts("0x24")](ts("0xd")).value,o=t[ts("0xb")][ts("0x24")](ts("0x2"))[ts("0x20")];return ts("0x2")===e?n:o}n[ts("0x45")](ts("0x2"),r(ts("0x2"))),n[ts("0x45")](ts("0xd"),r(ts("0xd"))),n[ts("0x45")](ts("0x2e"),s(ts("0x2e"))),n[ts("0x45")](ts("0x40"),s("outdentList")),n[ts("0x45")](ts("0x28"),x("splitListItemAfter")),n.enableCommand(ts("0x8"),x("splitListItemBefore")),n[ts("0xf")][ts("0x1e")]((function(e){const n=!t[ts("0x2d")][ts("0x1c")][ts("0x29")](e),o=e[ts("0x1")],r=e[ts("0x1b")],s=e[ts("0x3")](ts("0xa")),i=!o||o[ts("0x3")](ts("0xa"))!==s,x=!r||r[ts("0x3")](ts("0xa"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[ts("0xf")][ts("0x41")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x10")]){case ts("0xd"):s=n[ts("0x19")][0][ts("0x4")],i=a(n.commandName),o=s?"*Format:* insert into %0":ts("0x0"),i&&(o=ts("0x6")),r={type:ts("0x30"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":s=n[ts("0x19")][0][ts("0x4")],i=a(n[ts("0x10")]),o=s?"*Format:* insert into %0":ts("0x0"),i&&(o=ts("0x6")),r={type:ts("0x30"),content:Yo(e,o,Yo(e,ts("0x12")))};break;case"indentList":o="*Indent:* %0",r={type:ts("0x30"),content:Yo(e,o,Yo(e,ts("0x5")))};break;case"outdentList":o=function(t){const e=t[ts("0x17")]();let n=e[ts("0x2f")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute(ts("0x15"))>0)return!1;n=n[ts("0x1b")]}return!0}(t)?Yo(e,ts("0x0"),Yo(e,function(t){const e=t[ts("0x17")]()[ts("0x2f")][ts("0x38")];return ts("0x33")+e[ts("0x3")](ts("0x43"))[ts("0x22")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,ts("0x5"))),r={type:ts("0x30"),content:o};break;case ts("0x39"):case ts("0x7"):!1===n.multipleBlocks&&(o="*Merge:* %0",r={type:ts("0x11"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return r})),n._suggestionFactory[ts("0x9")]("formatBlock",ts("0x26"),"accept",(function(e,n){const o=[];for(let n of e)n[ts("0x2f")][ts("0x38")]===n[ts("0xc")][ts("0x2a")]&&(n=t[ts("0x2d")][ts("0x21")](t.model[ts("0x3f")](n[ts("0x2f")][ts("0x38")],0))),o[ts("0x35")](n);t[ts("0x2d")][ts("0x27")]((e=>{const r=t[ts("0x2d")][ts("0x3d")].selection,s=Array[ts("0x31")](r.getRanges())[ts("0x1d")]((t=>i.LiveRange[ts("0x34")](t)));e[ts("0x3c")](o),t.commands[ts("0x24")](n[ts("0x10")])[ts("0x3b")](),n[ts("0x19")][ts("0x35")]({forceDefaultExecution:!0}),t[ts("0x47")](n.commandName,...n[ts("0x19")]),e[ts("0x3c")](s);for(const t of s)t[ts("0xe")]()}))}))}}var ns=n(331);const os=["mapper","addMarker:suggestion:insertion","commands","init","editing","markerNameToElements","afterExecute","remove","createPositionAt","split","data","enableCommand","writer","high","model","removeMarker:suggestion:insertion","getFirstRange","unbindElementFromMarkerName","change","enter","document","markerName","plugins","ck-suggestion-marker-split","downcastDispatcher","fire","detach","getFirstPosition","fromRange","markInsertion","TrackChangesEditing","showSuggestionHighlights","setSelection"];var rs,ss;rs=os,ss=226,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 requires(){return[ns.Enter]}[is("0x8")](){const t=this.editor,e=t[is("0x1b")].get(is("0x2")),n=t[is("0x7")].get(is("0x18"));e[is("0x10")]("enter",(()=>{t[is("0x13")][is("0x17")]((o=>{const r=t[is("0x13")][is("0x19")].selection,s=r[is("0x20")](),x=i.LiveRange[is("0x0")](r[is("0x15")]());if(n.enterBlock(o)){const n=t[is("0x13")][is("0xd")](s.parent.nextSibling,0),r=o.createRange(s,n);e[is("0x1")](r)}else o[is("0x4")](o.createRange(x.end));x[is("0x1f")](),n[is("0x1e")](is("0xb"),{writer:o})}))})),t[is("0x9")][is("0x1d")].on(is("0x6"),hr(t,"split"),{priority:is("0x12")}),t[is("0x9")].downcastDispatcher.on(is("0x14"),((t,e,n)=>{const o=n[is("0x5")][is("0xa")](e.markerName);if(o)for(const t of o)t.hasClass(is("0x1c"))&&(n[is("0x5")][is("0x16")](t,e[is("0x1a")]),n[is("0x11")][is("0xc")](t))}),{priority:is("0x12")}),t[is("0xf")][is("0x1d")].on(is("0x6"),((e,n,o)=>{o.options[is("0x3")]&&hr(t,is("0xe"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:is("0x12")})}}const as=["_isInDeletionRange","replaceAll","end","TrackChangesEditing","enableCommand","string","findPrevious","createPositionAt","getMarkersGroup","find","replace","item","editor","findNext","createRange","findByTextCallback","get","suggestion:deletion","markers","handleFindCommand","model","plugins","start","getIntersection"];var cs,ls;cs=as,ls=452,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{afterInit(){if(!this[ds("0x10")].plugins.has("FindAndReplaceEditing"))return;const t=this[ds("0x10")][ds("0x1")].get(ds("0x7"));t[ds("0x8")](ds("0xd"),this[ds("0x17")].bind(this)),t.enableCommand(ds("0x11")),t[ds("0x8")](ds("0xa")),t[ds("0x8")](ds("0xe")),t[ds("0x8")](ds("0x5"))}[ds("0x17")](t,e,n={}){const o=this[ds("0x10")][ds("0x1")][ds("0x14")]("FindAndReplaceUtils");void 0!==n&&t((t=>(ds("0x9")==typeof e?o[ds("0x13")](e,n):e)(t).filter((e=>!1===this[ds("0x4")](e,t[ds("0xf")])))),n)}[ds("0x4")](t,e){const n=this.editor[ds("0x0")][ds("0x12")](this.editor.model[ds("0xb")](e,t[ds("0x2")]),this[ds("0x10")][ds("0x0")][ds("0xb")](e,t[ds("0x6")]));for(const t of this[ds("0x10")][ds("0x0")][ds("0x16")][ds("0xc")](ds("0x15")))if(null!==n[ds("0x3")](t.getRange()))return!0;return!1}}const gs=["*Set font family:* %0","FontSize","TrackChangesEditing","editor","from","*Reset font color*","fontSize.options","fontBackgroundColor","config","get","locale","FontColorEditing","document","FontSizeEditing","label","FontFamilyEditing","*Set font color:* %0","title","toLowerCase","model","_descriptionFactory","enableCommand","find","getRanges","afterInit","*Set font size:* %0","fontSize","*Set font background color:* %0","registerDescriptionCallback","has","value","_enableCommand","commandParams","FontBackgroundColorEditing","selection","commandName","plugins","trim","isCollapsed","*Reset font background color*","format","change","normalizeSizeOptions","fontColor","*Reset font size*"];var ms,fs;ms=gs,fs=397,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},bs=[{pluginName:hs("0x15"),commandName:hs("0x22")},{pluginName:hs("0x17"),commandName:"fontFamily"},{pluginName:hs("0x13"),commandName:hs("0x6")},{pluginName:hs("0x29"),commandName:hs("0xf")}];class ps extends t.Plugin{[hs("0x20")](){const t=this[hs("0xb")][hs("0x12")];for(const{pluginName:t,commandName:e}of bs)this[hs("0xb")][hs("0x2c")][hs("0x25")](t)&&this[hs("0x27")](e);this[hs("0xb")][hs("0x2c")][hs("0x11")]("TrackChangesEditing")[hs("0x1c")][hs("0x24")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hs("0x22")==o[hs("0x2b")]){const e=o[hs("0x28")][0][hs("0x26")];if(e){const o=n(this[hs("0xb")][hs("0x2c")][hs("0x11")](hs("0x9"))[hs("0x5")](this[hs("0xb")].config[hs("0x11")](hs("0xe")))[hs("0x1e")]((t=>t[hs("0x1b")]==e))[hs("0x19")]).toLowerCase();return{type:hs("0x3"),content:Yo(t,hs("0x21"),o)}}return{type:hs("0x3"),content:Yo(t,hs("0x7"))}}if("fontFamily"==o.commandName){const e=o[hs("0x28")][0][hs("0x26")];return e?{type:hs("0x3"),content:Yo(t,hs("0x8"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(hs("0x6")==o[hs("0x2b")]){const e=o[hs("0x28")][0].value;if(e){const o=(0,r.normalizeColorOptions)(this[hs("0xb")][hs("0x10")][hs("0x11")]("fontColor.colors"))[hs("0x1e")]((t=>t[hs("0x1b")]==e));let s=e,i="";return o&&(s=o[hs("0x16")],i=n(s)[hs("0x1a")]()),{type:"format",content:Yo(t,hs("0x18"),i)[hs("0x0")](),color:{value:e,title:i||s}}}return{type:hs("0x3"),content:Yo(t,hs("0xd"))}}if(hs("0xf")==o[hs("0x2b")]){const e=o[hs("0x28")][0][hs("0x26")];if(e){const o=(0,r.normalizeColorOptions)(this.editor[hs("0x10")][hs("0x11")]("fontBackgroundColor.colors"))[hs("0x1e")]((t=>t[hs("0x1b")]==e));let s=e,i="";return o&&(s=o[hs("0x16")],i=n(s)[hs("0x1a")]()),{type:hs("0x3"),content:Yo(t,hs("0x23"),i)[hs("0x0")](),color:{value:e,title:i||s}}}return{type:hs("0x3"),content:Yo(t,hs("0x2"))}}}}))}_enableCommand(t){const e=this[hs("0xb")];e.plugins[hs("0x11")]("TrackChangesEditing")[hs("0x1d")](t,((n,o={})=>{const r=e[hs("0x1b")][hs("0x14")][hs("0x2a")],s=o[hs("0x26")];r[hs("0x1")]?n(o):e[hs("0x1b")][hs("0x4")]((()=>{const n=Array[hs("0xc")](r[hs("0x1f")]());for(const o of n){const n=s?[o]:mr(t,o,e.model);for(const o of n)e.plugins[hs("0x11")](hs("0xa")).markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["push","isCollapsed","commandParams","TrackChangesEditing","fontSize.options","markInlineFormat","keys","config","fontSize","_descriptionFactory","model","fontBackgroundColor","toLowerCase","editor","*Set format to:* %0","backward","getFirstPosition","find","commands","getRanges","document","locale","format","copyFormat","forward","boolean","isBlock","modifySelection","change","word","normalizeSizeOptions","createSelection","*Remove all formatting*","fontColor.colors","afterInit","pasteFormat","registerDescriptionCallback","entries","createRange","get","enableCommand","getLastPosition","slice","getAttributes","toUpperCase","label","title","join","charAt","getItems","plugins"];var _s,Ts;_s=Es,Ts=316,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{[Cs("0x18")](){const t=this[Cs("0x3")],n=t[Cs("0x0")],o=n[Cs("0xa")].selection,r=t[Cs("0x28")].get(Cs("0x2c")),s=t[Cs("0xb")],i=t[Cs("0x8")][Cs("0x1d")](Cs("0xd")),x=t.commands[Cs("0x1d")]("pasteFormat");i&&x&&(r[Cs("0x1e")](Cs("0x19"),((t,s={})=>{const i=s;n[Cs("0x12")]((()=>{const t=Array.from(o[Cs("0x9")]()),s=o[Cs("0x2a")]?[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("0x21")]()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cs("0x9")]())for(const t of e[Cs("0x27")]())!n[Cs("0x10")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Cs("0x2f")](i).length)for(const t of s)r[Cs("0x2e")](t,{commandName:Cs("0x19"),commandParams:[i]})}))})),r[Cs("0x32")][Cs("0x1a")]((e=>{const{data:n}=e;if(n&&Cs("0x19")===n.commandName){const e=[],o=n[Cs("0x2b")][0];for(const[n,r]of Object[Cs("0x1b")](o))e[Cs("0x29")](As(t,n,r));return e.length?{type:Cs("0xc"),content:Yo(s,Cs("0x4"),e[Cs("0x25")](", "))}:{type:Cs("0xc"),content:Yo(s,Cs("0x16"))}}})),t.plugins.get("TrackChangesEditing").enableCommand("copyFormat"))}}function ks(t,e){const n=t[Cs("0x15")](e);t.modifySelection(n,{unit:Cs("0x13"),direction:Cs("0x5")});const o=n[Cs("0x6")]();t[Cs("0x11")](n,{unit:Cs("0x13"),direction:Cs("0xe")});const r=n[Cs("0x1f")]();return t[Cs("0x1c")](o,r)}function As(t,e,n){const o=t[Cs("0xb")].t,s=e.split(/(?=[A-Z])/)[Cs("0x25")](" "),i=o(s[Cs("0x26")](0)[Cs("0x22")]()+s[Cs("0x20")](1))[Cs("0x2")]();if(Cs("0xf")==typeof n)return i;if("fontColor"===e||Cs("0x1")===e){const e=(0,r.normalizeColorOptions)(t[Cs("0x30")][Cs("0x1d")](Cs("0x17")))[Cs("0x7")]((t=>t[Cs("0x0")]==n));return i+" ("+(e?o(e[Cs("0x23")]).toLowerCase():n)+")"}if(Cs("0x31")===e&&isNaN(parseFloat(n))){const e=t[Cs("0x28")][Cs("0x1d")]("FontSize")[Cs("0x14")](t[Cs("0x30")][Cs("0x1d")](Cs("0x2d")))[Cs("0x7")]((t=>t.model==n));return i+" ("+(e?o(e[Cs("0x24")])[Cs("0x2")]():n)+")"}return i+" ("+n+")"}const vs=["plugins","ELEMENT_HEADING","markBlockFormat","format","match","from","document","isObject","afterInit","registerElementLabel","change","config","checkChild","getSelectedBlocks","title","model","HeadingEditing","commandName","selection","schema","blockName","formatBlock","commandParams","get","heading.options","heading","registerDescriptionCallback","value","*Change to:* %0","locale","_descriptionFactory","editor"];var Rs,Is;Rs=vs,Is=158,function(t){for(;--t;)Rs.push(Rs.shift())}(++Is);const Ss=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{[Ss("0xa")](){const t=this[Ss("0x1")],e=t[Ss("0x1f")],n=t[Ss("0xd")][Ss("0x19")](Ss("0x1a"));if(!t[Ss("0x2")].has(Ss("0x12")))return;const o=t.plugins.get("TrackChangesEditing");o.enableCommand(Ss("0x1b"),((e,n)=>{const r=n[Ss("0x1d")],s=Array[Ss("0x7")](this.editor[Ss("0x11")][Ss("0x8")][Ss("0x14")][Ss("0xf")]()).filter((t=>{return e=t,n=r,(o=this[Ss("0x1")][Ss("0x11")][Ss("0x15")])[Ss("0xe")](e.parent,n)&&!o[Ss("0x9")](e)&&e.name!=n;var e,n,o}));t[Ss("0x11")][Ss("0xc")]((()=>{for(const t of s)o[Ss("0x4")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ss("0x16")},fr(t))}))}));for(const t of n)"paragraph"!=t[Ss("0x11")]&&o[Ss("0x0")][Ss("0xb")](t[Ss("0x11")],(e=>{const n=Ns(t[Ss("0x11")]);return null!==n?r(e,n):s(e,t[Ss("0x10")])}));function r(t,n){return Yo(e,Ss("0x3"),[t,n])}function s(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ss("0x0")][Ss("0x1c")]((t=>{const{type:o,data:i}=t;if(Ss("0x17")==o&&i&&"heading"==i[Ss("0x13")]){const t=i[Ss("0x18")][0][Ss("0x1d")],o=Ns(t);if(null!==o)return{type:Ss("0x5"),content:Yo(e,Ss("0x1e"),r(1,o))};const x=n.find((e=>e.model===t))[Ss("0x10")];return{type:Ss("0x5"),content:Yo(e,"*Change to:* %0",s(1,x))}}}))}}function Ns(t){const e=t[Ss("0x6")](/^heading(\d+)$/);return e?e[1]:null}const ws=["value","getRanges","getAttribute","createRange","change","commandParams","plugins","getFirstPosition","item","config","isCollapsed","model","document","find","format","commandName","HighlightEditing","push","get","TrackChangesEditing","markInlineFormat","hasAttribute","enableCommand","has","highlight.options","editor","highlight","toLowerCase","registerDescriptionCallback","color"];var Ms,Os;Ms=ws,Os=426,function(t){for(;--t;)Ms.push(Ms.shift())}(++Os);const Fs=function(t,e){return ws[t-=0]};class Ps extends t.Plugin{afterInit(){const t=this[Fs("0x13")];if(!t[Fs("0x0")][Fs("0x11")](Fs("0xa")))return;const e=t[Fs("0x0")][Fs("0xc")](Fs("0xd"));e[Fs("0x10")]("highlight",((n,o={})=>{const r=t[Fs("0x5")][Fs("0x6")].selection,s=r[Fs("0x1a")](Fs("0x14"));let i=o[Fs("0x18")],x=[];if(r[Fs("0x4")]){const e=r[Fs("0x1")]();if(!r[Fs("0xf")](Fs("0x14")))return void n(o);{const n=t=>t[Fs("0x2")][Fs("0x1a")](Fs("0x14"))===s,o=e.getLastMatchingPosition(n,{direction:"backward"}),r=e.getLastMatchingPosition(n);x=[t.model[Fs("0x1b")](o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x19")]())i?x[Fs("0xb")](e):x[Fs("0xb")](...mr(Fs("0x14"),e,t[Fs("0x5")]));t[Fs("0x5")][Fs("0x1c")]((()=>{for(const t of x)e[Fs("0xe")](t,{commandName:Fs("0x14"),commandParams:[{value:i}]})}))}));const n=t.locale;e._descriptionFactory[Fs("0x16")]((e=>{const{type:o,data:r}=e;if("formatInline"==o&&r&&Fs("0x14")==r[Fs("0x9")]){const e=n.t,o=r[Fs("0x1d")][0][Fs("0x18")];if(o){const r=t[Fs("0x3")][Fs("0xc")](Fs("0x12"))[Fs("0x7")]((t=>t[Fs("0x5")]==o)),s=e(r.title)[Fs("0x15")]();return{type:"format",content:Yo(n,"*Set highlight:* %0",s),color:{value:r[Fs("0x17")],title:r.title}}}return{type:Fs("0x8"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Ds=["TrackChangesEditing","div","horizontalLine","locale","createContainerElement","editor","has","showSuggestionHighlights","createEmptyElement","afterInit","ck-horizontal-line","addClass","_descriptionFactory","for","plugins","HorizontalLineEditing","insert"];var Bs,js;Bs=Ds,js=443,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{[Us("0x8")](){const t=this[Us("0x4")];if(!t[Us("0xd")][Us("0x5")](Us("0xe")))return;t[Us("0xd")].get(Us("0x10")).enableCommand("horizontalLine");const e=t[Us("0xd")].get(Us("0x10")),n=t[Us("0x2")];e[Us("0xb")].registerElementLabel("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t.conversion[Us("0xc")]("dataDowncast").elementToStructure({model:Us("0x1"),view:(t,{writer:e,options:n})=>{if(!n[Us("0x6")])return null;const o=e[Us("0x3")](Us("0x0")),r=e[Us("0x7")]("hr");return e[Us("0xa")](Us("0x9"),o),e[Us("0xf")](e.createPositionAt(o,0),r),o},converterPriority:"high"})}}const Hs=["element","editing","get","format","enableCommand","markBlockFormat","_descriptionFactory","getCustomProperty","document","htmlEmbed","ELEMENT_HTML_EMBED","commandName","editor","TrackChangesEditing","locale","getSelectedElement","has","change","getAttribute","rawHtml","rawHtmlApi","plugins","selection","registerElementLabel","HtmlEmbed"];var Ws,zs;Ws=Hs,zs=355,function(t){for(;--t;)Ws.push(Ws.shift())}(++zs);const Vs=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{afterInit(){const t=this[Vs("0x7")];if(!t[Vs("0x10")][Vs("0xb")](Vs("0x13")))return;const e=t[Vs("0x10")][Vs("0x16")](Vs("0x8")),n=t[Vs("0x9")],o=t[Vs("0x15")].view[Vs("0x3")][Vs("0x11")];e[Vs("0x1")][Vs("0x12")]("rawHtml",(t=>Yo(n,Vs("0x5"),t))),t[Vs("0x10")][Vs("0x16")](Vs("0x8"))[Vs("0x18")](Vs("0x4"),((n,r)=>{const s=t.model,i=s[Vs("0x3")][Vs("0x11")];s[Vs("0xc")]((()=>{const t=function(t){const e=t[Vs("0xa")]();return e&&e.is(Vs("0x14"),Vs("0xe"))?t[Vs("0xa")]():null}(i);if(!t)return void n(null);const s=t[Vs("0xd")]("value")||"";void 0!==r&&r!==s&&(e[Vs("0x0")](t,{commandName:"htmlEmbed",commandParams:[r]}),o[Vs("0xa")]()[Vs("0x2")](Vs("0xf")).cancel())}))})),e[Vs("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Vs("0x4")==e[Vs("0x6")]){const t=Yo(n,Vs("0x5"));return{type:Vs("0x17"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qs=["backward","formatInline","hasSuggestion","formatBlock","discard","Block image to inline image","getSuggestionCallback","next","imageTextAlternative","get","newRange","title","imageStyle","*Set image text alternative:* %0","ImageEditing","markBlockFormat","caption","isInContent","_suggestionFactory","isEqual","imageTypeInline","registerCustomCallback","imageCaption","commandName","editor","commandParams","imageStylePreApply","author","from","toLowerCase","*Remove image text alternative*","_splitMarkerName","*Format:* %0","afterInit","getClosestSelectedImageElement","FORMAT_SIDE_IMAGE","*Reset image width*","registerElementLabel","forceDefaultExecution","_descriptionFactory","normalizedStyles","createRangeOn","Users","convertBlockImageToInline","toNext","locale","previous","accept","model","isBlockImage","selection","resizeImage","change","plugins","forEach","hasAttribute","end","refresh","detach","registerDescriptionCallback","createRange","value","*Set image width:* %0","markInlineFormat","element","imageStylePostApply","format","isCollapsed","deletion","enableCommand","document","commandReversedParams","convertInlineImageToBlock","subType","getContainedElement","join","isOwn","isBefore","fromPosition","toPrevious","removeObject","markInsertion","TrackChangesEditing","getSuggestion","uploadImage","has","getAttribute","head","getFirstRange","imageTypeBlock","type","getNearestSelectionRange","toggleImageCaption","width","ImageUtils","commands","discardSuggestion","filter","ImageBlockEditing","findIndex","insertImage","getSuggestions","isInlineImage","alt","ImageInlineEditing","name","side","length","ImageStyleEditing","addObject","getCaptionFromImageModelElement","newValue","chain","suggestion","insertion","start"];var Xs,$s;Xs=qs,$s=261,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Js=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Js("0x4")](){const t=this[Js("0x6f")];if(!t.plugins[Js("0x38")](Js("0x65")))return;const n=t[Js("0x18")][Js("0x60")](Js("0x35")),o=t[Js("0x18")][Js("0x60")](Js("0x41")),r={},s=t[Js("0x10")];if(n[Js("0x28")](Js("0x47")),n[Js("0xa")][Js("0x8")]("imageBlock",(t=>Yo(s,"ELEMENT_IMAGE",t))),n._descriptionFactory[Js("0x8")]("imageInline",(t=>Yo(s,"ELEMENT_INLINE_IMAGE",t))),n[Js("0xa")].registerElementLabel(Js("0x67"),(()=>Yo(s,"ELEMENT_CAPTION"))),t[Js("0x18")][Js("0x38")]("ImageUploadEditing")&&n[Js("0x28")](Js("0x37")),t[Js("0x18")][Js("0x38")](Js("0x45"))&&t[Js("0x18")][Js("0x38")](Js("0x4b"))&&(n.enableCommand(Js("0x6b"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[Js("0x13")][Js("0x29")].selection);t[Js("0x13")][Js("0x17")]((()=>{n[Js("0x66")](s,{commandName:"imageTypeInline",commandParams:[r]},[],Js("0xe"))}))})),n[Js("0x28")](Js("0x3c"),((e,r)=>{t[Js("0x13")].change((s=>{let x=o[Js("0x5")](t.model[Js("0x29")][Js("0x15")]),a=s[Js("0xc")](x);const c=i.LivePosition[Js("0x31")](a.start,Js("0x32")),l=i.LivePosition[Js("0x31")](a[Js("0x1b")],Js("0xf"));n[Js("0x9")]((()=>e(r))),x=o[Js("0x5")](t.model.document.selection),a=s[Js("0xc")](x);const d=s.createRange(c,l);c.detach(),l[Js("0x1d")](),n[Js("0x66")](x,{commandName:"imageTypeInline",commandParams:[]},[],Js("0x2b")),d[Js("0x56")].isBefore(a[Js("0x56")])&&n[Js("0x34")](s.createRange(d[Js("0x56")],a[Js("0x56")]),Js("0x2b")),a.end[Js("0x30")](d.end)&&n.markInsertion(s[Js("0x1f")](a.end,d[Js("0x1b")]),"convertInlineImageToBlock")}))})),n[Js("0x69")][Js("0x6c")]("formatBlock",Js("0x2b"),Js("0x2e"),(()=>!1)),n[Js("0x69")][Js("0x6c")](Js("0x5a"),"convertInlineImageToBlock",Js("0x12"),(()=>!1)),n[Js("0x69")].registerCustomCallback(Js("0x5a"),Js("0x2b"),Js("0x5b"),n[Js("0x69")][Js("0x5d")](Js("0x5a"),"",Js("0x12"))),n[Js("0x69")].registerCustomCallback(Js("0x55"),Js("0x2b"),Js("0x2e"),(()=>!1)),n._suggestionFactory[Js("0x6c")]("insertion",Js("0x2b"),"discard",(([e])=>{const o=n[Js("0x69")][Js("0x5d")](Js("0x55"),"",Js("0x5b"));let r=e[Js("0x56")],s=e[Js("0x1b")];const i=t[Js("0x13")].schema[Js("0x3e")](r,Js("0x57")),x=t[Js("0x13")].schema[Js("0x3e")](s,"forward");i.isCollapsed&&(r=i[Js("0x56")]),x[Js("0x26")]&&(s=x[Js("0x1b")]),o([t[Js("0x13")][Js("0x1f")](r,s)])})),n[Js("0x69")].registerCustomCallback(Js("0x5a"),Js("0x2b"),Js("0x53"),c),n[Js("0x69")].registerCustomCallback(Js("0x55"),Js("0x2b"),Js("0x53"),c)),t[Js("0x18")][Js("0x38")]("ImageCaptionEditing")&&(n[Js("0x28")](Js("0x3f"),((e,r)=>{const s=t[Js("0x18")][Js("0x60")]("ImageCaptionUtils");let i=o[Js("0x5")](t[Js("0x13")].document[Js("0x15")]),x=s[Js("0x51")](i);t[Js("0x13")][Js("0x17")]((()=>{if(x)return void n.markDeletion(t[Js("0x13")].createRangeOn(x));const a=o.isBlockImage(i);e(r),i=o.getClosestSelectedImageElement(t[Js("0x13")][Js("0x29")][Js("0x15")]),x=s[Js("0x51")](i),n[Js("0x34")](t[Js("0x13")][Js("0xc")](x),a?null:Js("0x6d"))}))})),n[Js("0x69")][Js("0x6c")](Js("0x55"),Js("0x6d"),Js("0x53"),c)),t.plugins[Js("0x38")](Js("0x4f"))){n[Js("0x28")]("imageStyle",((r,s)=>{const i=t.plugins[Js("0x60")](Js("0xd")).me,x=t.commands[Js("0x60")](Js("0x63"));let a=o[Js("0x5")](t[Js("0x13")].document.selection),c=t[Js("0x13")].createRangeOn(a),l=x[Js("0x20")];if(l==s[Js("0x20")])return;const d={commandName:Js("0x63"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Js("0x13")][Js("0x17")]((()=>{if(n[Js("0x48")]()[Js("0x44")]((t=>t[Js("0x68")]&&i==t[Js("0x72")]&&(Js("0x5a")==t[Js("0x3d")]||Js("0x58")==t.type)&&(Js("0x71")==t[Js("0x2c")]||Js("0x24")==t[Js("0x2c")])&&t[Js("0x3b")]().isEqual(c)))[Js("0x19")]((t=>n[Js("0x43")](t[Js("0x3a")]))),a=o[Js("0x5")](t[Js("0x13")][Js("0x29")][Js("0x15")]),c=t.model[Js("0xc")](a),x[Js("0x1c")](),t[Js("0x42")][Js("0x60")]("imageTypeInline")[Js("0x1c")](),t[Js("0x42")][Js("0x60")](Js("0x3c"))[Js("0x1c")](),l=x[Js("0x20")],l!=s[Js("0x20")])return o[Js("0x49")](a)&&x.shouldConvertImageType(s[Js("0x20")],a)?(r(s),a=o[Js("0x5")](t[Js("0x13")][Js("0x29")][Js("0x15")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Js("0x71"))):void(o[Js("0x14")](a)?n[Js("0x66")](a,d,[],Js("0x24")):n[Js("0x22")](c,d,Js("0x24")))}))}));for(const e of t[Js("0x18")][Js("0x60")]("ImageStyleEditing")[Js("0xb")])r[e[Js("0x4c")]]=e[Js("0x62")][Js("0x0")]();n._suggestionFactory[Js("0x6c")](Js("0x5a"),"imageStylePreApply",Js("0x2e"),(()=>!1)),n[Js("0x69")][Js("0x6c")]("formatBlock",Js("0x24"),"join",(()=>!1)),n[Js("0x69")][Js("0x6c")](Js("0x58"),"imageStylePostApply",Js("0x2e"),(()=>!1)),n[Js("0x69")][Js("0x6c")](Js("0x5a"),Js("0x71"),Js("0x12"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Js("0x5a"),Js("0x71"),Js("0x5b"),((t,e)=>{n[Js("0x69")][Js("0x5d")]("formatBlock","",Js("0x12"))(t,{commandName:e.commandName,commandParams:e[Js("0x2a")]})})),n._suggestionFactory[Js("0x6c")](Js("0x5a"),Js("0x71"),"chain",c)}const x=[{type:Js("0x5a"),subType:Js("0x71")},{type:Js("0x55"),subType:Js("0x6d")},{type:"formatBlock",subType:Js("0x2b")},{type:Js("0x55"),subType:Js("0x2b")}];function a(t,e){const r=x[Js("0x46")]((({type:e,subType:n})=>t[Js("0x3d")]==e&&t[Js("0x2c")]==n)),s=x[Js("0x46")]((({type:t,subType:n})=>e[Js("0x3d")]==t&&e[Js("0x2c")]==n));if(r<0||s<0)return!1;const i=t.getFirstRange(),a=e[Js("0x3b")]();if((0==r||1==r)&&2==s&&i.isIntersecting(a))return!0;if(2==r&&3==s){const t=n._findSuggestions(i,Js("0x55"))[Js("0x44")]((({suggestion:t,meta:e})=>e[Js("0x2f")]&&"convertInlineImageToBlock"==t[Js("0x2c")]));if(t[Js("0x4e")]>1&&a[Js("0x1b")][Js("0x6a")](i[Js("0x56")]))return!0;if(1==t[Js("0x4e")]&&(i.start[Js("0x6a")](a[Js("0x1b")])||i[Js("0x1b")][Js("0x6a")](a[Js("0x56")])))return!0}if(3==r&&3==s&&i[Js("0x56")][Js("0x30")](a[Js("0x56")])){const t=i[Js("0x1b")].nodeAfter,e=a[Js("0x56")].nodeBefore;return o[Js("0x14")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Js("0x13")][Js("0x29")].registerPostFixer((()=>{let e=!1;const r=Array[Js("0x73")](t[Js("0x13")][Js("0x29")].differ.getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Js("0x2")](t);if(Js("0x54")==r&&n[Js("0x59")](a)){if(Js("0x5a")==i&&(Js("0x71")==x||"imageStylePostApply"==x)){const t=n[Js("0x36")](a);if(s.newRange){const r=t[Js("0x3b")]().getContainedElement();if(o[Js("0x14")](r))continue;n[Js("0x43")](t),e=!0}}if(Js("0x55")==i&&Js("0x6d")==x&&!s[Js("0x61")]){const t=n[Js("0x36")](a);t[Js("0x5e")]&&t[Js("0x5e")].isInContent&&(n[Js("0x43")](t[Js("0x5e")]),e=!0)}}}return e})),t[Js("0x18")][Js("0x38")]("ImageResize")&&n[Js("0x28")](Js("0x16"),((e,r)=>{const s=o.getClosestSelectedImageElement(t.model.document.selection);s[Js("0x39")](Js("0x40"))!=r[Js("0x40")]&&t[Js("0x13")][Js("0x17")]((()=>{n.markBlockFormat(s,{commandName:Js("0x16"),commandParams:[r]})}))})),t[Js("0x18")][Js("0x38")]("ImageTextAlternativeEditing")&&n[Js("0x28")](Js("0x5f"),((e,r)=>{const s=o[Js("0x5")](t[Js("0x13")].document.selection);(s[Js("0x1a")](Js("0x4a"))?s[Js("0x39")](Js("0x4a")):"")!=r[Js("0x52")]&&t[Js("0x13")][Js("0x17")]((()=>{n.markBlockFormat(s,{commandName:Js("0x5f"),commandParams:[r]})}))})),n._descriptionFactory[Js("0x1e")]((t=>{if(x.find((({type:e,subType:n})=>t.type==e&&t[Js("0x2c")]==n)))return t[Js("0x11")]?{}:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(Js("0x55")==t[Js("0x3d")]||Js("0x27")==t.type){const e=t[Js("0x2d")]();if(e&&e.is(Js("0x23"),"caption"))return{type:"insertion"==t[Js("0x3d")]?Js("0x50"):Js("0x33"),element:e,quantity:1}}})),n._descriptionFactory[Js("0x1e")]((t=>Js("0x5a")==t[Js("0x3d")]&&"convertInlineImageToBlock"==t[Js("0x2c")]?{type:"format",content:"Inline image to block image"}:Js("0x5a")==t.type&&Js("0xe")==t.subType?{type:Js("0x25"),content:Js("0x5c")}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Js("0x63")==e.commandName){const t=e[Js("0x70")][0][Js("0x20")];return n=Js("0x4d")===t?Yo(s,Js("0x6")):r[t]||t,{type:Js("0x25"),content:Yo(s,Js("0x3"),n)}}if(Js("0x5f")==e[Js("0x6e")]){const t=e[Js("0x70")][0][Js("0x52")];return t?{type:Js("0x25"),content:Yo(s,Js("0x64"),'"'+t+'"')}:{type:Js("0x25"),content:Yo(s,Js("0x1"))}}if(Js("0x16")==e[Js("0x6e")]){const t=e[Js("0x70")][0].width;return t?{type:"format",content:Yo(s,Js("0x21"),t)}:{type:"format",content:Yo(s,Js("0x7"))}}}var n}))}}const Zs=["handleSuggestionDescription","document","change","subType","formatBlock","getSuggestionCallback","enableCommand","*Format:* replace image URL","TrackChangesEditing","editor","plugins","selection","model","_suggestionFactory","source","commandName","replaceImageSource","data","get","locale","getSuggestions","discard","author","handleReplaceImageCommand","registerCustomCallback","has","markBlockFormat","accept","getSelectedElement","getAttribute"];var Ys,ti;Ys=Zs,ti=327,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0xc")][ei("0xd")][ei("0x1c")]("ImageEditing"))return;const t=this[ei("0xc")].plugins.get(ei("0xb"));t[ei("0x9")](ei("0x13"),((t,e)=>this[ei("0x1a")](t,e))),t[ei("0x10")][ei("0x1b")](ei("0x7"),ei("0x13"),ei("0x0"),t[ei("0x10")][ei("0x8")](ei("0x7"),null,"discard")),t._suggestionFactory.registerCustomCallback(ei("0x7"),ei("0x13"),ei("0x18"),t[ei("0x10")][ei("0x8")]("formatBlock",null,"accept")),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0x3")](t)))}[ei("0x1a")](t,e){const n=this[ei("0xc")].plugins[ei("0x15")](ei("0xb")),o=this[ei("0xc")][ei("0xf")][ei("0x4")][ei("0xe")][ei("0x1")]();this[ei("0xc")][ei("0xf")][ei("0x5")]((()=>{let r=o[ei("0x2")]("src");const s=this[ei("0xc")][ei("0xd")][ei("0x15")]("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x13")===t[ei("0x6")]&&e===o){t[ei("0x19")]!==s&&t[ei("0x18")](),r=t[ei("0x14")].commandParams[0][ei("0x11")];break}}t(e),n[ei("0x1d")](o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],ei("0x13"))}))}[ei("0x3")](t){const{data:e}=t;if(e&&ei("0x13")===e[ei("0x12")]){const t=ei("0xa");return{type:"format",content:Yo(this[ei("0xc")][ei("0x16")],t)}}}}const oi=["track_changes","dataInsert","lowest","_setSuggestionData","value","get","afterInit","_trackChangesExecuted","editor","enableCommand","_trackChangesValueDuringImport","_handleImportedData","commands","TrackChangesEditing","plugins","listenTo","execute","trackChanges","importWord"];var ri,si;ri=oi,si=196,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[ii("0x4")]=!1,this[ii("0x1")]=!1}[ii("0x0")](){const t=this.editor,e=t[ii("0x6")][ii("0x12")]("importWord"),n=t[ii("0x6")].get(ii("0xb"));e&&(e.on(ii("0xa"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x11")],e.collaboration_features[ii("0xd")]=!this[ii("0x4")]}),{priority:"high"}),this[ii("0x9")](e,ii("0xe"),this._handleImportedData.bind(this)),this[ii("0x9")](e,ii("0xe"),(()=>{this[ii("0x1")]&&(n[ii("0xa")](),this[ii("0x1")]=!1)}),{priority:ii("0xf")}),t[ii("0x8")][ii("0x12")]("TrackChangesEditing")[ii("0x3")](ii("0xc")))}[ii("0x5")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x6")][ii("0x12")](ii("0xb")),r=o[ii("0x11")];this[ii("0x4")]!==r&&(o[ii("0xa")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ii("0x2")][ii("0x8")][ii("0x12")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xc")}}};this[ii("0x2")][ii("0x8")][ii("0x12")](ii("0x7"))[ii("0x10")](r)}))}}const ai=["get","markBlockFormat","model","checkAttribute","TrackChangesEditing","outdentBlock","filter","indentBlock","commandName","format","*Outdent:* %0","from","locale","plugins","_descriptionFactory","selection","IndentEditing","getSelectedBlocks","enableCommand","*Indent:* %0","registerDescriptionCallback","getItems","IndentBlock","editor","has","document","indent","outdent","afterInit","blockIndent"];var ci,li;ci=ai,li=195,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xd")](){const t=this[di("0x8")],e=t[di("0x1c")][di("0xf")](di("0x13"));t.plugins.has(di("0x1"))&&(e[di("0x3")](di("0xb")),e[di("0x3")](di("0xc")));const n=t[di("0x1b")];if(t.plugins[di("0x9")](di("0x7"))){for(const n of[di("0x16"),di("0x14")])e[di("0x3")](n,(()=>{const o=Array[di("0x1a")](this[di("0x8")][di("0x11")][di("0xa")][di("0x0")][di("0x2")]())[di("0x15")]((t=>this.editor[di("0x11")].schema[di("0x12")](t,di("0xe"))));t[di("0x11")].change((()=>{for(const t of o)e[di("0x10")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x16")})}))}));e[di("0x1d")][di("0x5")]((t=>{const{data:o}=t;if(!o)return;if(di("0x16")!=o.commandName&&di("0x14")!=o[di("0x17")])return;const r=t[di("0x6")]()[0],s=e._descriptionFactory.getItemLabel(r);return di("0x16")==o[di("0x17")]?{type:di("0x18"),content:Yo(n,di("0x4"),s)}:di("0x14")==o[di("0x17")]?{type:di("0x18"),content:Yo(n,di("0x19"),s)}:void 0}))}}}var gi,mi,fi=["plugins","get","init","editor","enableCommand"];gi=fi,mi=454,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[Vr.Input]}[hi("0x3")](){this[hi("0x4")][hi("0x1")][hi("0x2")]("TrackChangesEditing")[hi("0x0")]("input")}}const pi=["plugins","afterInit","commandName","change","_descriptionFactory","unlink","getAttribute","linkHref","hasAttribute","get","link","getFirstPosition","selection","format","isCollapsed","TrackChangesEditing","markInlineFormat","from","has","model","locale","editor","enableCommand","getFirstRange","LinkEditing","getRanges"];var Ei,_i;Ei=pi,_i=192,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x11")](){const t=this[Ti("0xb")];if(!t.plugins[Ti("0x8")](Ti("0xe")))return;const e=t[Ti("0x10")][Ti("0x19")](Ti("0x5"));e[Ti("0xc")](Ti("0x0"),((n,o)=>{const r=t[Ti("0x9")].document[Ti("0x2")];let s=[];if(r.isCollapsed){if(!r[Ti("0x18")](Ti("0x17")))return void n(o);{const e=(0,Vr.findAttributeRange)(r[Ti("0x1")](),Ti("0x17"),r[Ti("0x16")](Ti("0x17")),t[Ti("0x9")]);s=[e]}}else s=Array[Ti("0x7")](r[Ti("0xf")]());t[Ti("0x9")][Ti("0x13")]((()=>{for(const t of s)e.markInlineFormat(t,{commandName:Ti("0x0"),commandParams:[o]})}))})),e[Ti("0xc")](Ti("0x15"),(()=>{const n=this[Ti("0xb")].model,o=n.document[Ti("0x2")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x4")]?[(0,Vr.findAttributeRange)(o[Ti("0x1")](),"linkHref",o.getAttribute(Ti("0x17")),t[Ti("0x9")])]:mr("linkHref",o[Ti("0xd")](),t[Ti("0x9")]);for(const t of n)e[Ti("0x6")](t,{commandName:Ti("0x15"),commandParams:[]})}))})),e[Ti("0x14")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[Ti("0xa")];if(n){if("link"==n[Ti("0x12")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n.commandParams[0]+'"')}}return Ti("0x15")==n[Ti("0x12")]?{type:Ti("0x3"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["format","add","listIndent","indentList","value","getAttribute","*Indent:* %0","replace","findIndex","*Uncheck item*","*Change to:* %0","createRange","filter","change","before","registerElementLabel","forceValue","createPositionAt","TodoListEditing","paragraph","parent","execute","List","end","bulleted","numberedList","numbered","name","commandName","nextSibling","ELEMENT_TODO_LIST","checkChild","todoList","selection","todoListChecked","bulletedList","get","length","from","plugins","blockName","ELEMENT_LIST_ITEM","*Outdent:* %0","afterInit","document","getSelectedBlocks","editor","_descriptionFactory","TrackChangesEditing","commandParams","slice","model","locale","checkTodoList","enableCommand","outdentList","previousSibling","listItem","listType","markBlockFormat","schema"];var ki,Ai;ki=yi,Ai=454,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x10")](){const t=this[vi("0x13")],e=t[vi("0x19")];if(!t[vi("0xc")].has("ListEditing"))return;const n=t[vi("0xc")][vi("0x9")](vi("0x15")),o=t[vi("0xc")].has(vi("0x34"));function r(e){return()=>{const o=t.model.document[vi("0x6")],r=t.commands[vi("0x9")](e);if(r[vi("0x26")])return void t[vi("0x37")](vi("0x35"),{});const s=e[vi("0x17")](0,-4),i=function(t,e,n){let o=Array[vi("0xb")](t)[vi("0x2e")]((t=>{return e=t,(o=n)[vi("0x4")](e[vi("0x36")],vi("0x1e"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is("element","listItem")||t[vi("0x27")](vi("0x1f"))!=e));const r=new Set;for(const t of o)t.is("element","listItem")?r[vi("0x23")](Ii(t)):r[vi("0x23")](t);return Array[vi("0xb")](r)}(o[vi("0x12")](),s,t.model[vi("0x21")]);t[vi("0x18")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[vi("0x26")]}],formatGroupId:vi("0xd")},Si(t))}))}}function s(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x2a")]((t=>vi("0x1e")!=t.name));return n>-1&&(e=e[vi("0x17")](0,n)),e}(t[vi("0x18")][vi("0x11")][vi("0x6")][vi("0x12")]()),r=t[vi("0x18")][vi("0x2d")](t.model[vi("0x33")](o[0],vi("0x30")),t[vi("0x18")][vi("0x33")](o[o[vi("0xa")]-1],vi("0x39")));t[vi("0x18")].change((()=>{n[vi("0x20")](r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t.getAttribute(vi("0x24"))>n[vi("0x27")](vi("0x24"));)e[vi("0x23")](t),t=t[vi("0x2")]}return Array[vi("0xb")](e)}(o))}))}}n[vi("0x1b")](vi("0x3b"),r("numberedList")),n[vi("0x1b")]("bulletedList",r(vi("0x8"))),o&&n[vi("0x1b")](vi("0x5"),r(vi("0x5"))),n.enableCommand(vi("0x25"),s("indentList")),n[vi("0x1b")](vi("0x1c"),s(vi("0x1c"))),o&&n[vi("0x1b")]("checkTodoList",(()=>{const e=t.commands[vi("0x9")](vi("0x1a")),o=Array.from(e._selectedElements);o[vi("0x2e")]((t=>t[vi("0x27")](vi("0x7"))!=e.value)),t[vi("0x18")][vi("0x2f")]((()=>{for(const t of o)n[vi("0x20")](t,{commandName:vi("0x1a"),commandParams:[{forceValue:!e[vi("0x26")]}]})}))})),n[vi("0x14")][vi("0x31")](vi("0x1e"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x14")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x1")]||vi("0x8")==n.commandName||vi("0x5")==n[vi("0x1")])switch(n[vi("0x1")][vi("0x29")](vi("0x38"),"")){case vi("0x3a"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x3c"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x3")))}if(vi("0x25")==n[vi("0x1")])return{type:"format",content:Yo(e,vi("0x28"),Yo(e,vi("0xe")))};if(vi("0x1c")==n[vi("0x1")])return{type:vi("0x22"),content:Yo(e,vi("0xf"),Yo(e,vi("0xe")))};if("checkTodoList"==n.commandName)return n[vi("0x16")][0][vi("0x32")]?{type:vi("0x22"),content:Yo(e,"*Check item*")}:{type:vi("0x22"),content:Yo(e,vi("0x2b"))}}function o(t){return{type:vi("0x22"),content:Yo(e,vi("0x2c"),t)}}}))}}function Ii(t){const e=t[vi("0x27")](vi("0x24"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x1d")].is("element",vi("0x1e"));){const o=t[vi("0x1d")][vi("0x27")](vi("0x24"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x1d")]}return n}function Si(t){const e=[];if(t.is("element",vi("0x1e"))&&t[vi("0x27")]("listIndent")>0){let n=t[vi("0x2")];for(;n&&vi("0x1e")==n[vi("0x0")]&&n[vi("0x27")](vi("0x24"))==t[vi("0x27")](vi("0x24"));)e.push(n),n=n[vi("0x2")]}return e}const Li=["afterInit","filter","model","format","backward","parent","listType","createPositionAt","bind","getAttribute","document","getLastPosition","before","change","getSiblingNodes","getFirstPosition","listStart","plugins","ELEMENT_","*Format:* set order to reversed","handleDescriptions","getListTypeFromListStyleType","ListUtils","element","forward","handleListReversedCommand","config","push","editor","list.properties","unshift","enableCommand","toUpperCase","length","TrackChangesEditing","_getSuggestionBlocks","commandName","handleListStartCommand","replace","ListPropertiesEditing","listItem","get","_descriptionFactory","markMultiRangeBlockFormat","*Format:* set order to regular","reversed","has","map","handleListStyleCommand","listStyle","styles","createRange","_LIST_","listReversed","_getSuggestionBlocksForListStyle","getSelectedBlocks","_getTranslationKeyForListStyle","from","startIndex","commandParams","selection"];var Ni,wi;Ni=Li,wi=409,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x12")](){if(!this.editor[Mi("0x23")][Mi("0x3")](Mi("0x39")))return;const t=this.editor[Mi("0x2c")][Mi("0x3b")](Mi("0x2f")),e=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")]("TrackChangesEditing");t[Mi("0x7")]&&e[Mi("0x31")](Mi("0x6"),this[Mi("0x5")][Mi("0x1a")](this)),t[Mi("0x2")]&&e[Mi("0x31")](Mi("0xa"),this.handleListReversedCommand[Mi("0x1a")](this)),t[Mi("0xf")]&&e[Mi("0x31")]("listStart",this[Mi("0x37")][Mi("0x1a")](this)),e[Mi("0x3c")].registerDescriptionCallback(this[Mi("0x26")][Mi("0x1a")](this))}handleListStyleCommand(t,e={}){const n=this[Mi("0x2e")].plugins[Mi("0x3b")](Mi("0x34")),o=this._getSuggestionBlocksForListStyle();this[Mi("0x2e")][Mi("0x14")][Mi("0x1f")]((()=>{n[Mi("0x0")](o,{commandName:Mi("0x6"),commandParams:[{type:e.type}],formatGroupId:Mi("0x6")})}))}[Mi("0x2b")](t,e={}){const n=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x34")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x29"),Mi("0x3a"))&&"numbered"===t.getAttribute("listType")));if(o.length<1)return;const r=o[Mi("0x4")]((t=>this[Mi("0x2e")].model[Mi("0x8")](this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,Mi("0x1e")),this[Mi("0x2e")].model[Mi("0x19")](t,0))));this[Mi("0x2e")][Mi("0x14")].change((()=>{n[Mi("0x0")](r,{commandName:Mi("0xa"),commandParams:[{reversed:e[Mi("0x2")]}],formatGroupId:"listReversed"})}))}[Mi("0x37")](t,e={}){const n=this.editor[Mi("0x23")][Mi("0x3b")](Mi("0x34")),o=this[Mi("0x35")]((t=>t.is("element",Mi("0x3a"))&&"numbered"===t[Mi("0x1b")](Mi("0x18"))));if(o[Mi("0x33")]<1)return;const r=o[Mi("0x4")]((t=>this[Mi("0x2e")][Mi("0x14")][Mi("0x8")](this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,Mi("0x1e")),this[Mi("0x2e")][Mi("0x14")][Mi("0x19")](t,0))));this[Mi("0x2e")].model[Mi("0x1f")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Mi("0x22"),commandParams:[{startIndex:e[Mi("0xf")]}],formatGroupId:"listStart"})}))}[Mi("0x26")](t){const e=this[Mi("0x2e")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[Mi("0x36")]){case Mi("0x6"):o="*Change to:* %0",r={type:"format",content:Yo(e,o,Yo(e,this[Mi("0xd")](n.commandParams[0].type)))};break;case Mi("0xa"):o=n.commandParams[0].reversed?Mi("0x25"):Mi("0x1"),r={type:Mi("0x15"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",r={type:Mi("0x15"),content:Yo(e,o,n[Mi("0x10")][0][Mi("0xf")])}}return r}[Mi("0xb")](){var t,e,n,o;const r=this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x28"));let s=Array[Mi("0xe")](this[Mi("0x2e")][Mi("0x14")].document.selection[Mi("0xc")]());return(null===(t=s[0])||void 0===t?void 0:t.is(Mi("0x29"),Mi("0x3a")))&&s[Mi("0x30")](...r.getSiblingNodes(this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x21")](),Mi("0x16"))),(null===(e=s[s[Mi("0x33")]-1])||void 0===e?void 0:e.is(Mi("0x29"),Mi("0x3a")))&&s[Mi("0x2d")](...r[Mi("0x20")](this.editor[Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x1d")](),Mi("0x2a"))),s=[...new Set(s)],(null===(o=null===(n=this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0x21")]())||void 0===n?void 0:n[Mi("0x17")])||void 0===o?void 0:o.is(Mi("0x29"),"listItem"))&&(s=s[Mi("0x13")]((t=>t.is(Mi("0x29"),"listItem")))),s}[Mi("0x35")](t){const e=this[Mi("0x2e")][Mi("0x23")].get(Mi("0x28"));let n=Array[Mi("0xe")](this[Mi("0x2e")][Mi("0x14")][Mi("0x1c")][Mi("0x11")][Mi("0xc")]())[Mi("0x13")](t)[Mi("0x4")]((t=>{const n=this[Mi("0x2e")].model[Mi("0x19")](t,0);return[...e[Mi("0x20")](n,Mi("0x16")),...e[Mi("0x20")](n,Mi("0x2a"))]})).flat();return n=[...new Set(n)],n}[Mi("0xd")](t){return Mi("0x24")+this[Mi("0x2e")][Mi("0x23")][Mi("0x3b")](Mi("0x28"))[Mi("0x27")](t)[Mi("0x32")]()+Mi("0x9")+t[Mi("0x32")]()[Mi("0x38")](/-/g,"_")}}const Fi=["stop","data","media","dataDowncast","attribute:url:media","TrackChangesEditing","options","downcastDispatcher","get","showSuggestionHighlights","div","afterInit","ELEMENT_MEDIA","createEmptyElement","high","mediaEmbed","conversion","_descriptionFactory","elementToElement","registerElementLabel"];var Pi,Di;Pi=Fi,Di=258,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xd")](){const t=this.editor;if(!t.plugins.has("MediaEmbedEditing"))return;const e=t.plugins[Bi("0xa")](Bi("0x7")),n=t.locale;e.enableCommand(Bi("0x11")),e[Bi("0x13")][Bi("0x1")](Bi("0x4"),(t=>Yo(n,Bi("0xe"),t))),t[Bi("0x12")].for(Bi("0x5"))[Bi("0x0")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0xf")](Bi("0xc"))},converterPriority:Bi("0x10")}),t[Bi("0x3")][Bi("0x9")].on(Bi("0x6"),((t,e,n)=>{n[Bi("0x8")][Bi("0xb")]&&t[Bi("0x2")]()}),{priority:Bi("0x10")})}}const Ui=["editor","get","afterInit","plugins","mention","has","enableCommand","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=298,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x0")](){const t=this[Wi("0x6")];t[Wi("0x1")][Wi("0x3")]("MentionEditing")&&t[Wi("0x1")][Wi("0x7")](Wi("0x5"))[Wi("0x4")](Wi("0x2"))}}const Vi=["plugins","get","has","PageBreakEditing","_descriptionFactory","pageBreak","locale","editor","registerElementLabel"];var Ki,qi;Ki=Vi,qi=165,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x4")];if(!t[Xi("0x6")][Xi("0x8")](Xi("0x0")))return;t[Xi("0x6")][Xi("0x7")]("TrackChangesEditing").enableCommand(Xi("0x2"));const e=t[Xi("0x6")][Xi("0x7")]("TrackChangesEditing"),n=t[Xi("0x3")];e[Xi("0x1")][Xi("0x5")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["filter","highest","enableCommand","from","markBlockFormat","blockName","name","createUIElement","registerElementLabel","ELEMENT_PARAGRAPH","get","data","model","TrackChangesEditing","activeMarkers","insertion","markerRange","getSelectedBlocks","schema","addClass","addMarker:suggestion:insertion","editor","document","span","options","checkChild","paragraph","nodeAfter","registerDescriptionCallback","editing","isObject","locale","end","insert","parent","ck-suggestion-marker-split","consumable","ck-suggestion-marker--active","plugins","*Change to:* %0","writer","_descriptionFactory","selection","$text","start","Paragraph","afterInit","format","isBlock","type","isTouching","bindElementToMarker","downcastDispatcher","isLimit","showSuggestionHighlights","commandName"];var Qi,Zi;Qi=Ji,Zi=389,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x31")](){const t=this[Yi("0x18")];if(!t[Yi("0x29")].has(Yi("0x30")))return;const e=t[Yi("0x22")],n=t[Yi("0x29")].get(Yi("0x10"));n[Yi("0x2c")][Yi("0xb")](Yi("0x1d"),(t=>Yo(e,Yi("0xc"),t))),n[Yi("0x5")]("paragraph",((e,o={})=>{const r=t[Yi("0xf")][Yi("0x19")],s=o[Yi("0x2d")]||r.selection,i=Array[Yi("0x6")](s[Yi("0x14")]())[Yi("0x3")]((t=>{return e=t,(n=this.editor[Yi("0xf")][Yi("0x15")]).checkChild(e[Yi("0x25")],Yi("0x1d"))&&!n[Yi("0x21")](e)&&Yi("0x1d")!=e[Yi("0x9")];var e,n}));t.model.change((()=>{for(const t of i)n[Yi("0x7")](t,{commandName:Yi("0x1d"),commandParams:[],formatGroupId:Yi("0x8")},fr(t))}))})),n[Yi("0x2c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x1d")==n[Yi("0x2")])return{type:Yi("0x32"),content:Yo(e,Yi("0x2a"),Yo(e,Yi("0xc")))}})),n.enableCommand("insertParagraph"),t[Yi("0x20")][Yi("0x37")].on(Yi("0x17"),ex(t),{priority:Yi("0x4")}),t[Yi("0xe")][Yi("0x37")].on(Yi("0x17"),((e,n,o)=>{o[Yi("0x1b")][Yi("0x1")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x4")});const o=n[Yi("0x2c")];o[Yi("0x1f")]((n=>{if(Yi("0x12")!==n[Yi("0x34")])return;const{start:r,end:s}=n.getFirstRange();if(!r[Yi("0x35")](s)||!r[Yi("0x1e")])return;const i=t[Yi("0xf")][Yi("0x15")],x=r[Yi("0x1e")];return i[Yi("0x33")](x)&&!i[Yi("0x0")](x)&&i[Yi("0x1c")](x,Yi("0x2e"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x29")][Yi("0xd")]("TrackChangesEditing"),i=o[Yi("0x13")][Yi("0x2f")],x=o.markerRange[Yi("0x23")],a=t[Yi("0xf")][Yi("0x15")];if(!i.isTouching(x)||!i[Yi("0x1e")])return;const c=i[Yi("0x1e")];if(a[Yi("0x33")](c)&&!a.isLimit(c)&&a[Yi("0x1c")](c,"$text")){if(!r[Yi("0x27")].consume(o[Yi("0x13")],n[Yi("0x9")]))return;const t=r.writer[Yi("0xa")](Yi("0x1a"),{class:Yi("0x26")}),i=r.mapper.toViewPosition(x);e&&s[Yi("0x11")].includes(o.markerName)&&r.writer[Yi("0x16")](Yi("0x28"),t),r[Yi("0x2b")][Yi("0x24")](i,t),r.mapper[Yi("0x36")](t,o.markerName)}}}const nx=["commandName","format","model","schema","getAttributeProperties","selection","plugins","change","*Remove all formatting*","markInlineFormat","RemoveFormatEditing","getItems","getRanges","locale","enableCommand","getAttributes","isFormatting","isCollapsed","registerDescriptionCallback","TrackChangesEditing","from"];var ox,rx;ox=nx,rx=363,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this.editor;if(!t[sx("0x0")].has(sx("0x4")))return;const e=t[sx("0x0")].get(sx("0xd"));e[sx("0x8")]("removeFormat",(n=>{const o=t[sx("0x11")].document[sx("0x14")];o[sx("0xb")]?n():t[sx("0x11")][sx("0x1")]((()=>{const n=Array[sx("0xe")](o[sx("0x6")]());for(const o of n)for(const n of o[sx("0x5")]())xx(n,t[sx("0x11")][sx("0x12")])&&e[sx("0x3")](t[sx("0x11")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e._descriptionFactory[sx("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[sx("0xf")])return{type:sx("0x10"),content:Yo(t[sx("0x7")],sx("0x2"))}}))}}function xx(t,e){for(const[n]of t[sx("0x9")]()){const t=e[sx("0x13")](n);if(t&&t[sx("0xa")])return!0}return!1}const ax=["acceptSuggestion","get","goToNextRestrictedEditingException","enableCommand","discardSuggestion","plugins","discardAllSuggestions","has","afterInit","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","trackChanges"];var cx,lx;cx=ax,lx=172,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.editor;if(!t[dx("0x1")][dx("0x3")]("RestrictedEditingModeEditing"))return;const e=t[dx("0x1")][dx("0x9")]("TrackChangesEditing");e[dx("0xb")](dx("0x6")),e[dx("0xb")](dx("0xa"));const n=t.plugins.get("RestrictedEditingModeEditing");n[dx("0xb")](dx("0x7")),n[dx("0xb")](dx("0x8")),n[dx("0xb")](dx("0x0")),n[dx("0xb")]("acceptAllSuggestions"),n.enableCommand(dx("0x2")),n.enableCommand(dx("0x5")),n[dx("0xb")]("discardSelectedSuggestions")}}const gx=["test","enableCommand","get","addMarker:suggestion","insert","writer","createUIElement","addMarker:suggestion:insertion","plugins","requires","addClass","includes","TrackChangesEditing","markerRange","markerName","element","split","span","locale","activeMarkers","ck-suggestion-marker-","model","bindElementToMarker","mapper","ck-suggestion-marker--active","_descriptionFactory","showSuggestionHighlights","high","registerElementLabel","ELEMENT_LINE_BREAK","name","shiftEnter","downcastDispatcher","addMarker:suggestion:deletion","toViewPosition","deletion","init","editing"];var mx,fx;mx=gx,fx=153,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("0x8")](){return[ns.ShiftEnter]}[hx("0x23")](){const t=this.editor,e=t[hx("0x7")][hx("0x1")](hx("0xb"));e[hx("0x0")](hx("0x1e")),t[hx("0x24")][hx("0x1f")].on(hx("0x6"),px(t),{priority:hx("0x1a")}),t[hx("0x24")][hx("0x1f")].on(hx("0x20"),px(t),{priority:hx("0x1a")}),t.data.downcastDispatcher.on(hx("0x2"),((e,n,o)=>{o.options[hx("0x19")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x18")][hx("0x1b")]("softBreak",(e=>Yo(t[hx("0x11")],hx("0x1c"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[hx("0x7")][hx("0x1")](hx("0xb"));if(!r.consumable[hx("0x25")](o[hx("0xc")],n[hx("0x1d")]))return;const i=t[hx("0x14")];for(const t of o[hx("0xc")].getItems()){if(!t.is(hx("0xe"),"softBreak"))continue;const n=hx("0x22")==o[hx("0xd")][hx("0xf")](":")[1]?"merge":hx("0xf"),x=r[hx("0x4")][hx("0x5")](hx("0x10"),{class:hx("0x13")+n}),a=r[hx("0x16")][hx("0x21")](i.createPositionBefore(t));e&&s[hx("0x12")][hx("0xa")](o[hx("0xd")])&&r.writer[hx("0x9")](hx("0x17"),x),r.writer[hx("0x3")](a,x),r.mapper[hx("0x15")](x,o[hx("0xd")])}}}const Ex=["document","registerDescriptionCallback","locale","TrackChangesEditing","afterInit","enableCommand","forceValue","getRanges","format","commandName","from","plugins","FORMAT_RESTRICTED_DISABLED","_descriptionFactory","restrictedEditingException","change","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","selection","commandParams","get","has"];var _x,Tx;_x=Ex,Tx=369,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x9")](){const t=this.editor,e=t.model,n=t[Cx("0x7")];if(!t[Cx("0x10")][Cx("0x4")](Cx("0x15")))return;const o=t[Cx("0x10")].get(Cx("0x8")),r=Cx("0x13"),s=t.commands[Cx("0x3")](r);o[Cx("0xa")](r,((t,n={})=>{const i=e[Cx("0x5")][Cx("0x1")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0xb")]?n.forceValue:!s.value;e[Cx("0x14")]((()=>{const t=Array[Cx("0xf")](i[Cx("0xc")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x12")][Cx("0x6")]((t=>{const{data:e}=t;if(e&&e[Cx("0xe")]==r)return e[Cx("0x2")][0][Cx("0xb")]?{type:Cx("0xd"),content:Yo(n,Cx("0x0"))}:{type:"format",content:Yo(n,Cx("0x11"))}}))}}const kx=["format","getDefinitionsForView","classes","*Remove format:* %0","change","_getStyleDefinition","has","element","TrackChangesEditing","getSelectedBlocks","config","from","_getRangesWithClasses","createRangeOn","afterInit","locale","inline","includes","style","_descriptionFactory","markInlineFormat","DataSchema","registerDescriptionCallback","get","isBlock","normalizeConfig","styleName","Style","getRanges","StyleUtils","document","modelElements","isCollapsed","block","name","value","plugins","getAttribute","push","commands","enabledStyles","commandName","commandParams","getItems","forceValue","every","find","model","toLowerCase"];var Ax,vx;Ax=kx,vx=163,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x2f")](){const t=this.editor;if(!t.plugins[Rx("0x27")](Rx("0xb")))return;const e=t[Rx("0x17")].get(Rx("0x2")),n=t[Rx("0x14")][Rx("0x7")](Rx("0x29")),o=t[Rx("0x30")],r=t[Rx("0x14")][Rx("0x7")](Rx("0x5")),s=t[Rx("0x14")][Rx("0x7")](Rx("0xd"))[Rx("0x9")](r,t[Rx("0x2b")].get("style.definitions"));n.enableCommand("style",((o,{styleName:i})=>{const x=t[Rx("0x1f")][Rx("0xe")].selection,a=this._getStyleDefinition(i,s);if(!a)return;if(!e[Rx("0x18")][Rx("0x1")](i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!e[Rx("0x13")].includes(a[Rx("0x12")]);if(a[Rx("0x8")]){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("0x1")](o[Rx("0x12")])){n.add(o);break}}return n}(x[Rx("0x2a")](),a[Rx("0xf")]);t.model[Rx("0x25")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[Rx("0xc")]());if(!c){const n=Array[Rx("0x2c")](r[Rx("0x22")](a[Rx("0x28")],!1))[0].model,o=[];for(const r of e){const e=this[Rx("0x2d")](t[Rx("0x1f")],r,a[Rx("0x23")],n);o[Rx("0x16")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x4")](t,{commandName:Rx("0x2"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x3")][Rx("0x6")]((t=>{const{data:e}=t;if(e&&Rx("0x2")===e[Rx("0x19")])return e[Rx("0x1a")][0][Rx("0x1c")]?{type:"format",content:Yo(o,"*Format:* %0",e.commandParams[0][Rx("0xa")][Rx("0x20")]())}:{type:Rx("0x21"),content:Yo(o,Rx("0x24"),e[Rx("0x1a")][0][Rx("0xa")].toLowerCase())}}))}[Rx("0x26")](t,e){let n=e[Rx("0x11")][Rx("0x1e")]((e=>e.name===t));return n||(n=e[Rx("0x0")][Rx("0x1e")]((e=>e.name===t))),n}[Rx("0x2d")](t,e,n,o){const r=[];for(const s of e[Rx("0x1b")]()){const e=s[Rx("0x15")](o);e&&n[Rx("0x1d")]((t=>e[Rx("0x23")][Rx("0x1")](t)))&&r[Rx("0x16")](t[Rx("0x2e")](s))}return r}}const Sx=["classes","startsWith","accept","tableColumn","tableRow","registerDescriptionCallback","markMultiRangeDeletion","selectTableColumn","model","setSelection","_suggestionFactory","min","TrackChangesEditing","insertTableRowBelow","deletion","enableCommand","left","registerCustomCallback","getChangedMarkers","minRow","filter","mapper","data","MIN_SAFE_INTEGER","insertion","colspan","getRanges","getCellLocation","max","getColumnIndexes","rootName","options","enqueueChange","editor","getChanges","includes","execute","batch","*Remove:* %0","nodeBefore","ELEMENT_TABLE_ROW_WITH_TEXT","last","_descriptionFactory","isInContent","addClass","_tablePostFixingSubtypes","registerPostFixer","change","markMultiRangeInsertion","change:data","oldRange","removeTableRow","element","first","suggestion","minColumn","some","commands","getSuggestion","tablePaste","type","locale","hasAttribute","_splitMarkerName","toLowerCase","findAncestor","root","MAX_SAFE_INTEGER","isTouching","isEqual","*Insert:* %0","cell","fromRange","position","join","getSelectionAffectedTableCells","ELEMENT_TABLE_ROW","registerElementLabel","ELEMENT_TABLE_COLUMN_WITH_TEXT","order","subType","ELEMENT_TABLE_COLUMN","rowspan","insertTable","maxRow","start","insertTableColumnRight","isArray","_getSuggestionCoords","createPositionAt","push","table","_tableSuggestions","getChildren","getAttribute","map","addRange","createRangeOn","every","getRowIndexes","end","_acceptFormatSuggestionCallbackFactory","has","add","insertTableRowAbove","isIntersectingWithRange","TableUtils","length","selection","$graveyard","from","plugins","get","name","discard","selectTableRow","createTableWalker","removeClass","nodeAfter","differ","above","insert","tableCell","getItems","ELEMENT_TABLE_WITH_TEXT","$textProxy","item","low","showSuggestionHighlights","substr","document","refresh"];var Lx,Nx;Lx=Sx,Nx=317,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x7c")]=[wx("0x53"),wx("0x52")],this._tableSuggestions=new Set}afterInit(){const t=this[wx("0x70")],e=t[wx("0x57")][wx("0x4d")][wx("0x37")];if(!t[wx("0x3a")][wx("0x31")]("TableEditing"))return;const n=t[wx("0x8")],o=t.plugins[wx("0x3b")](wx("0x5b")),r=t[wx("0x3a")].get("TableUtils");o[wx("0x79")][wx("0x18")](wx("0x26"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[wx("0x5e")](wx("0x1e")),o[wx("0x5e")](wx("0x3e")),o.enableCommand(wx("0x56"));for(const n of[wx("0x33"),wx("0x5c")]){const s=t[wx("0x4")][wx("0x3b")](n);o[wx("0x5e")](n,(n=>{t[wx("0x57")].change((t=>{n();const i=wx("0x43")===s[wx("0x1a")],x=r[wx("0x16")](e),a=r[wx("0x2e")](x),c=i?a[wx("0x0")]-1:a[wx("0x78")]+1,l=x[0][wx("0xc")](wx("0x26")),d=r.createTableWalker(l,{startRow:c,endRow:c}),u=Array[wx("0x39")](d)[wx("0x2a")]((e=>t.createRangeOn(e.cell)));o[wx("0x7f")](u,wx("0x53"))}))}))}for(const n of["insertTableColumnLeft",wx("0x21")]){const s=t[wx("0x4")][wx("0x3b")](n);o[wx("0x5e")](n,(n=>{t[wx("0x57")][wx("0x7e")]((t=>{n();const i=wx("0x5f")===s[wx("0x1a")],x=r[wx("0x16")](e),a=r[wx("0x6c")](x),c=i?a[wx("0x0")]-1:a[wx("0x78")]+1,l=x[0][wx("0xc")]("table"),d=r[wx("0x3f")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x39")](d).map((e=>t[wx("0x2c")](e[wx("0x12")])));o[wx("0x7f")](u,wx("0x52"))}))}))}for(const n of[wx("0x82"),"removeTableColumn"]){const s=n[wx("0x4c")](11),i=s[wx("0xb")](),x=i.substr(0,3)+"span",a=wx("0x26")+s,c=wx("0x5a")+s,l=wx("0x6b")+s;o.enableCommand(n,(()=>{t.model[wx("0x7e")]((t=>{const s=r[wx("0x16")](e),d=s[0][wx("0xc")](wx("0x26"));let u;if("removeTableRow"==n){const t=r[wx("0x2e")](s);u={startRow:t[wx("0x0")],endRow:t.last,includeAllSlots:!0}}else{const t=r[wx("0x6c")](s);u={startColumn:t.first,endColumn:t[wx("0x78")],includeAllSlots:!0}}const g=r.createTableWalker(d,u),m=Array[wx("0x39")](g)[wx("0x2a")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x9")](x)))),h=Ox(m[wx("0x63")]((t=>!t[wx("0x9")](x))))[wx("0x2a")]((e=>t[wx("0x2c")](e))),b=o[wx("0x55")](h,a);if(b&&("tableRow"==b[wx("0x1b")]||wx("0x52")==b[wx("0x1b")])){const e=this[wx("0x23")](b);for(const n of f){const o=t[wx("0x2c")](n),s=r[wx("0x6a")](n),a=n[wx("0x29")](x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&b[wx("0x2b")](o)}}}))}))}function s(n){const o=Array[wx("0x39")](e.getRanges())[wx("0x2a")]((t=>i.LiveRange.fromRange(t)));t.model[wx("0x7e")]((e=>{const r=e[wx("0x74")];n=n[wx("0x63")]((t=>wx("0x38")!=t[wx("0xd")].rootName)),e[wx("0x58")](n),t[wx("0x4")][wx("0x3b")](wx("0x82"))[wx("0x4e")](),t[wx("0x73")](wx("0x82"),{forceDefaultExecution:!0}),t.model[wx("0x6f")]((()=>{t[wx("0x57")][wx("0x6f")](r,(t=>{const e=o[wx("0x63")]((t=>wx("0x38")!=t[wx("0xd")][wx("0x6d")]));e[wx("0x36")]>0&&t[wx("0x58")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x57")][wx("0x7e")]((o=>{const r=Array[wx("0x39")](e[wx("0x69")]()).map((t=>i.LiveRange[wx("0x13")](t))),s=[];for(const t of n)for(const e of t[wx("0x46")]({shallow:!0}))s[wx("0x25")](e);for(const e of s)wx("0x38")!=e[wx("0xd")][wx("0x6d")]&&(o.setSelection(o[wx("0x24")](e,0)),t.commands[wx("0x3b")]("removeTableColumn")[wx("0x4e")](),t[wx("0x73")]("removeTableColumn",{forceDefaultExecution:!0}));const x=r.filter((t=>"$graveyard"!=t[wx("0xd")].rootName));x[wx("0x36")]>0&&o.setSelection(x);for(const t of r)t.detach()}))}function c(t,e){return e[wx("0x2d")]((e=>t[wx("0x3")]((t=>t[wx("0x2f")][wx("0x10")](e[wx("0x20")])||e.end[wx("0x10")](t[wx("0x20")])))))}function l(t,e){return t[wx("0x3")]((t=>e[wx("0x3")]((e=>t.end[wx("0xf")](e.start)))))}t[wx("0x65")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[wx("0x6e")][wx("0x4b")])return;const o=e[wx("0x49")];if(!o)return;const r=n[wx("0x64")].toViewElement(o);function s(t){return Array[wx("0x22")](t)?t:[t]}r&&wx("0x45")===o[wx("0x3c")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[wx("0x7b")](s(e.classes),t)),((t,e,n)=>n[wx("0x40")](s(e[wx("0x4f")]),t)))}),{priority:"highest"}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x67")!=t.type&&wx("0x5d")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(wx("0x83"),wx("0x26"))){if(wx("0x67")==t[wx("0x7")]){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")]));if(e[wx("0x36")])return{type:wx("0x67"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wx("0x5d")==t[wx("0x7")]){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")]));if(e[wx("0x36")])return{type:wx("0x5d"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x47"),'"'+e[wx("0x15")](" ")+'"'))}}}})),o[wx("0x79")][wx("0x54")]((t=>{if(wx("0x53")==t[wx("0x1b")]){const e=t.getItems()[wx("0x63")]((t=>t.is("$textProxy")))[wx("0x2a")]((t=>t[wx("0x65")])),o=this[wx("0x23")](t),r=o[wx("0x1f")]-o[wx("0x62")]+1;if(wx("0x67")==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x67"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x77"),[r,'"'+e.join(" ")+'"']))}:{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x17"),r))};if("deletion"==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x77"),[r,'"'+e.join(" ")+'"']))}:{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(wx("0x52")==t.subType){const e=t[wx("0x46")]().filter((t=>t.is(wx("0x48"))))[wx("0x2a")]((t=>t[wx("0x65")])),o=this[wx("0x23")](t),r=o.maxColumn-o[wx("0x2")]+1;if(wx("0x67")==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x19"),[r,'"'+e[wx("0x15")](" ")+'"']))}:{type:wx("0x67"),content:Yo(n,wx("0x11"),Yo(n,wx("0x1c"),r))};if("deletion"==t[wx("0x7")])return e[wx("0x36")]?{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x19"),[r,'"'+e[wx("0x15")](" ")+'"']))}:{type:wx("0x5d"),content:Yo(n,wx("0x75"),Yo(n,wx("0x1c"),r))}}})),o[wx("0x59")][wx("0x60")](wx("0x67"),wx("0x53"),wx("0x3d"),s),o[wx("0x59")].registerCustomCallback(wx("0x5d"),wx("0x53"),wx("0x51"),s),o[wx("0x59")][wx("0x60")]("insertion",wx("0x52"),"discard",a),o[wx("0x59")][wx("0x60")](wx("0x5d"),wx("0x52"),"accept",a),o[wx("0x59")].registerCustomCallback(wx("0x67"),"tableColumn","join",c),o[wx("0x59")][wx("0x60")](wx("0x5d"),wx("0x52"),wx("0x15"),c),o[wx("0x59")][wx("0x60")]("insertion",wx("0x53"),wx("0x15"),l),o._suggestionFactory.registerCustomCallback(wx("0x5d"),wx("0x53"),"join",l)}[wx("0x30")](){const t=this[wx("0x70")],e=t.model[wx("0x4d")][wx("0x37")];return(n,o)=>{t.model[wx("0x7e")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][wx("0x2f")][wx("0x76")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][wx("0x20")][wx("0x41")]);const c=r.createRangeIn(a);if("$graveyard"==c[wx("0xd")][wx("0x6d")])return;const l=Array.from(e[wx("0x69")]()).map((t=>i.LiveRange[wx("0x13")](t)));r.setSelection(c),t[wx("0x4")][wx("0x3b")](s).refresh(),x[wx("0x25")]({forceDefaultExecution:!0}),t[wx("0x73")](s,...x);const d=l.filter((t=>"$graveyard"!=t[wx("0xd")].rootName));d[wx("0x36")]>0&&r[wx("0x58")](d);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this[wx("0x70")][wx("0x3a")][wx("0x3b")](wx("0x35"));let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x66")],r=Number[wx("0xe")],s=Number[wx("0x66")];for(const i of t){if(wx("0x38")==i[wx("0xd")][wx("0x6d")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x9")]("rowspan")?i.getAttribute(wx("0x1d"))-1:0,c=i.hasAttribute(wx("0x68"))?i[wx("0x29")](wx("0x68"))-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}}_setupColumnsRowsFixing(){const t=this[wx("0x70")],e=t[wx("0x3a")][wx("0x3b")](wx("0x5b")),n=t.plugins.get(wx("0x35"));t.model[wx("0x4d")].on(wx("0x80"),(()=>{const n=Array.from(t[wx("0x57")][wx("0x4d")][wx("0x42")][wx("0x61")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[wx("0xa")](t);if(wx("0x1")!=n)continue;if(null!=o[wx("0x81")])continue;const i=e[wx("0x5")](r);this[wx("0x7c")][wx("0x72")](s)&&this[wx("0x27")][wx("0x32")](i)}}),{priority:wx("0x4a")});const o=(t,e)=>{let o=!1;const r=e[wx("0x2c")](t),s=t[wx("0xc")](wx("0x26")),i=n[wx("0x6a")](t);for(const e of this[wx("0x27")]){const n=e.subType,x=n[wx("0x50")](wx("0x6")),a=n[wx("0x4c")](x?10:5),c=a[wx("0xb")](),l=c.substr(0,3)+"span",d=wx("0x5a")+a,u=wx("0x6b")+a;if(!e[wx("0x7a")])continue;if(s!=e.getFirstRange()[wx("0x20")].findAncestor(wx("0x26")))continue;if(e[wx("0x34")](r))continue;const g=t[wx("0x9")](l)?t[wx("0x29")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x2b")](r),o=!0)}return o};t[wx("0x57")].document[wx("0x7d")]((e=>{let n=!1;for(const r of t[wx("0x57")][wx("0x4d")].differ[wx("0x71")]())if(wx("0x44")==r.type)if(wx("0x53")==r[wx("0x3c")])for(const t of r.position[wx("0x41")][wx("0x28")]())n=n||o(t,e);else wx("0x45")==r[wx("0x3c")]&&(n=n||o(r[wx("0x14")][wx("0x41")],e));return n}))}[wx("0x23")](t){return this._getCoordsForCells(t[wx("0x69")]()[wx("0x2a")]((t=>t[wx("0x20")][wx("0x41")])))}}function Ox(t){return Array.from(new Set(t).values())}const Fx=["value","document","subType","TableUtils","cell","refresh","map","getCellLocation","format","markMultiRangeBlockFormat","formatBlock","enableCommand","TrackChangesEditing","return","afterInit","*Merge cells*","change","_isForcedDefaultExecutionBlock","$graveyard","add","commands","locale","trackChanges","getFirstPosition","markBlockFormat","from","model","author","tableCell","fromRange","_tablePostFixingSubtypes","registerCustomCallback","mergeTableCellLeft","type","_acceptFormatSuggestionCallbackFactory","commandName","createRangeOn","_areSelectedCellsMergable","_descriptionFactory","has","mergeTableCells","getAncestors","accept","plugins","_areMergableCells","forceDefaultExecution","getSuggestions","rootName","isEnabled","mergeTableCellDown","splitTableCellVertically","_suggestionFactory","horizontally","set:isEnabled","*Split cell:* horizontally","getSelectionAffectedTableCells","selection","mergeTableCellUp","direction","splitTableCellHorizontally","root","editor","insertion","getRanges","mergeTableCellRight","get","element","length","size","low","detach","execute","isInContent","createTableWalker","containsRange","find","registerDescriptionCallback","setSelection"];var Px,Dx;Px=Fx,Dx=123,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[Mx]}[Bx("0x2f")](){const t=this[Bx("0x10")],e=t[Bx("0x3b")][Bx("0x22")].selection,n=t[Bx("0x36")];if(!t.plugins[Bx("0x48")]("TableEditing"))return;const o=t[Bx("0x4c")][Bx("0x14")]("TrackChangesEditing"),r=t[Bx("0x4c")][Bx("0x14")](Bx("0x24")),s=t.plugins.get(Mx);s[Bx("0x3f")].push(Bx("0x49")),o.enableCommand("mergeTableCells",(()=>{const e=r[Bx("0xa")](t[Bx("0x3b")][Bx("0x22")].selection);t[Bx("0x3b")][Bx("0x31")]((()=>{o[Bx("0x2a")](e,{commandName:Bx("0x49"),commandParams:[]},[],Bx("0x49"))}))})),t.commands.get("mergeTableCells").on(Bx("0x1a"),((e,n)=>{t[Bx("0x35")][Bx("0x14")](Bx("0x37")).value&&(n[Bx("0x16")]>0&&n[n[Bx("0x16")]-1]&&n[n[Bx("0x16")]-1][Bx("0x0")]||o[Bx("0x32")]||this[Bx("0x46")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x13"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x35")].get(e);o[Bx("0x2c")](e,(()=>{const e=t[Bx("0x3b")][Bx("0x22")][Bx("0xb")][Bx("0x38")]()[Bx("0x4a")]().find((t=>t.is(Bx("0x15"),Bx("0x3d")))),r=n.value;t[Bx("0x3b")][Bx("0x31")]((()=>{o[Bx("0x2a")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x5"),"splitTableCellHorizontally"]){const n=t[Bx("0x35")].get(e);o[Bx("0x2c")](e,(()=>{const s=r[Bx("0xa")](t[Bx("0x3b")][Bx("0x22")][Bx("0xb")])[0],i=s.findAncestor("table"),{column:x,row:a}=r[Bx("0x28")](s);let c=[];if(Bx("0x7")==n[Bx("0xd")]){const t=r.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3a")](t)[Bx("0x27")]((t=>t.cell))}else{const t=r[Bx("0x1c")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3a")](t).map((t=>t[Bx("0x25")]))}t[Bx("0x3b")][Bx("0x31")]((t=>{o[Bx("0x39")](t[Bx("0x45")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,Bx("0x30"))}:void 0})),o[Bx("0x47")][Bx("0x1f")]((t=>{const{data:e}=t;if(e)return Bx("0x5")==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,"*Split cell:* vertically")}:Bx("0xe")==e[Bx("0x44")]?{type:Bx("0x29"),content:Yo(n,Bx("0x9"))}:void 0}));const x=s[Bx("0x43")]();for(const t of[Bx("0xc"),Bx("0x13"),Bx("0x4"),"mergeTableCellLeft"])o[Bx("0x6")][Bx("0x40")]("formatBlock",t,Bx("0x4b"),x);for(const t of[Bx("0x5"),Bx("0xe")])o._suggestionFactory.registerCustomCallback(Bx("0x2b"),t,Bx("0x4b"),x);o[Bx("0x6")].registerCustomCallback(Bx("0x2b"),Bx("0x49"),"accept",(n=>{t[Bx("0x3b")][Bx("0x31")]((o=>{const r=Array[Bx("0x3a")](e[Bx("0x12")]()).map((t=>i.LiveRange[Bx("0x3e")](t)));o[Bx("0x20")](n),t.commands[Bx("0x14")](Bx("0x49"))[Bx("0x26")](),t[Bx("0x1a")](Bx("0x49"),{forceDefaultExecution:!0});const s=r.filter((t=>Bx("0x33")!=t[Bx("0xf")][Bx("0x2")]));s.length>0&&o[Bx("0x20")](s);for(const t of r)t[Bx("0x19")]()}))}));for(const e of[Bx("0xc"),"mergeTableCellDown",Bx("0x41"),Bx("0x13")]){const n=t.commands.get(e);n.on(Bx("0x8"),((e,o,r)=>{if(r){const o=t[Bx("0x3b")][Bx("0x22")][Bx("0xb")][Bx("0x38")]()[Bx("0x4a")]()[Bx("0x1e")]((t=>t.is(Bx("0x15"),Bx("0x3d"))));this[Bx("0x4d")](n[Bx("0x21")],o)||(e[Bx("0x2e")]=!1,e.stop())}}),{priority:Bx("0x18")})}}_areSelectedCellsMergable(){const t=this[Bx("0x10")][Bx("0x35")][Bx("0x14")]("mergeTableCells"),e=this.editor[Bx("0x4c")][Bx("0x14")]("TableUtils");if(!t[Bx("0x3")])return!1;const n=e[Bx("0xa")](this.editor[Bx("0x3b")][Bx("0x22")][Bx("0xb")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4d")](t,e))return!1;return!0}[Bx("0x4d")](t,e){const n=this[Bx("0x10")][Bx("0x4c")][Bx("0x14")](Bx("0x2d")),o=this.editor[Bx("0x3b")][Bx("0x45")](t),r=this[Bx("0x10")][Bx("0x3b")][Bx("0x45")](e),s=new Set,i=new Set;for(const t of n[Bx("0x1")]())if((Bx("0x11")==t[Bx("0x42")]||"deletion"==t[Bx("0x42")]||Bx("0x49")==t[Bx("0x23")])&&t[Bx("0x1b")])for(const e of t[Bx("0x12")]())e[Bx("0x1d")](o,!0)&&s[Bx("0x34")](t[Bx("0x42")]+":"+t.author.id),e.containsRange(r,!0)&&i[Bx("0x34")](t[Bx("0x42")]+":"+t[Bx("0x3c")].id);if(s[Bx("0x17")]!=i.size)return!1;for(const t of s)if(!i[Bx("0x48")](t))return!1;return!0}}const Ux=["selection","formatBlock","mapper","from","headingColumns","isBefore","getColumnIndexes","data-suggestion","createRange","parent","markerRange","commandParams","TableEditing","childCount","markBlockFormat","data","ck-suggestion-marker-","editor","getRowIndexes","commandName","TableUtils","TrackChangesEditing","consumable","requires","*Format:* %0","change","downcastDispatcher","first","markerName","accept","commands","table","setTableRowHeader","getCellLocation","createPositionAfter","model","index","addClass","_splitMarkerName","addMarker:suggestion","document","enableCommand","end","registerCustomCallback","FORMAT_REGULAR_ROW","findAncestor","options","includes","createPositionBefore","showSuggestionHighlights","forceValue","getSelectionAffectedTableCells","registerDescriptionCallback","ck-suggestion-marker--active","writer","markerNameToElements","_suggestionFactory","get","afterInit","setTableColumnHeader","_descriptionFactory","value","getChild","getAttribute","last","item","plugins","has","getSuggestion","_acceptFormatSuggestionCallbackFactory","removeMarker:suggestion","locale","unbindElementFromMarkerName","createTableWalker","nodeBefore","editing","stop","format","removeClass","highest","nodeAfter"];var Gx,Hx;Gx=Ux,Hx=221,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x2d")](){return[Mx]}[Wx("0x50")](){const t=this[Wx("0x27")];if(!t.plugins[Wx("0x8")](Wx("0x22")))return;const e=t[Wx("0xc")],n=t.plugins[Wx("0x4f")](Wx("0x2b")),o=t[Wx("0x7")][Wx("0x4f")](Wx("0x2a")),r=t[Wx("0x7")][Wx("0x4f")](Mx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n._splitMarkerName(s[Wx("0x32")]),c=n[Wx("0x9")](a);if(!c[Wx("0x25")]||Wx("0x0")!=c[Wx("0x25")].commandName)return;if(s[Wx("0x6")])return void r[Wx("0x11")]();if(!i[Wx("0x2c")].consume(s.markerRange,r.name))return;const l=s[Wx("0x20")].start[Wx("0x15")],d=s[Wx("0x20")][Wx("0x40")][Wx("0xf")],u=l[Wx("0x1f")][Wx("0x1f")],{column:g}=o[Wx("0x37")](l),{column:m}=o[Wx("0x37")](d);for(let r=g;r<=m;r++){const c=o[Wx("0xe")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o.cell,c=i.mapper.toViewElement(r);i[Wx("0x4c")][Wx("0x3b")](Wx("0x26")+x,c),e&&i.writer.setAttribute(Wx("0x1d"),a,c),i[Wx("0x18")].bindElementToMarker(c,s[Wx("0x32")]),t&&(n.activeMarkers[Wx("0x45")](s[Wx("0x32")])?i[Wx("0x4c")].addClass(Wx("0x4b"),c):i.writer[Wx("0x13")](Wx("0x4b"),c))}}}}n[Wx("0x3f")]("setTableRowHeader",((e,r)=>{const s=o[Wx("0x49")](t[Wx("0x39")][Wx("0x3e")].selection),i=o[Wx("0x28")](s),x=s[0][Wx("0x43")]("table"),a=x[Wx("0x4")]("headingRows")||0,c=r&&null!==r[Wx("0x48")]?r[Wx("0x48")]:!t[Wx("0x34")][Wx("0x4f")](Wx("0x36"))[Wx("0x2")],l=c?i[Wx("0x5")]:i[Wx("0x31")],d=x[Wx("0x3")](l);let u;if(c){const e=x[Wx("0x3")](a);if(d[Wx("0x3a")]<e[Wx("0x3a")])return;u=t[Wx("0x39")][Wx("0x1e")](t[Wx("0x39")][Wx("0x46")](e[Wx("0x3")](0)),t[Wx("0x39")][Wx("0x38")](d[Wx("0x3")](d.childCount-1)))}else{const e=x[Wx("0x3")](a-1);if(!e)return;u=t[Wx("0x39")][Wx("0x1e")](t[Wx("0x39")].createPositionBefore(d[Wx("0x3")](0)),t[Wx("0x39")][Wx("0x38")](e[Wx("0x3")](e[Wx("0x23")]-1)))}t[Wx("0x39")][Wx("0x2f")]((()=>{n.markBlockFormat(u,{commandName:Wx("0x36"),commandParams:[{forceValue:c}]},[],Wx("0x36"))}))})),n[Wx("0x3f")]("setTableColumnHeader",((e,o)=>{const r=t[Wx("0x7")][Wx("0x4f")](Wx("0x2a")),s=r[Wx("0x49")](t.model[Wx("0x3e")][Wx("0x16")]),i=r[Wx("0x1c")](s),x=s[0][Wx("0x43")](Wx("0x35")),a=x[Wx("0x4")](Wx("0x1a"))||0,c=o&&null!==o[Wx("0x48")]?o[Wx("0x48")]:!t[Wx("0x34")][Wx("0x4f")](Wx("0x0"))[Wx("0x2")];let l;const d=x[Wx("0x3")](0),u=c?i[Wx("0x5")]:i[Wx("0x31")],g=r[Wx("0xe")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Wx("0x19")](g)[0].cell;if(c){const e=d[Wx("0x3")](a);if(m[Wx("0x1b")](e))return;l=t[Wx("0x39")][Wx("0x1e")](t[Wx("0x39")][Wx("0x46")](e),t[Wx("0x39")][Wx("0x38")](m))}else{const e=d[Wx("0x3")](a-1);if(!e)return;l=t[Wx("0x39")][Wx("0x1e")](t.model[Wx("0x46")](m),t[Wx("0x39")].createPositionAfter(e))}t[Wx("0x39")].change((()=>{n[Wx("0x24")](l,{commandName:Wx("0x0"),commandParams:[{forceValue:c}]},[],Wx("0x0"))}))})),t[Wx("0x10")][Wx("0x30")].on(Wx("0x3d"),s(),{priority:Wx("0x14")}),t[Wx("0x25")][Wx("0x30")].on(Wx("0x3d"),((t,e,n)=>{n[Wx("0x44")][Wx("0x47")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x14")}),t.editing[Wx("0x30")].on(Wx("0xb"),((t,e,o)=>{const{type:r,id:s}=n[Wx("0x3c")](e[Wx("0x32")]),i=n[Wx("0x9")](s);if(!i[Wx("0x25")]||Wx("0x0")!=i[Wx("0x25")][Wx("0x29")])return;const x=o[Wx("0x18")][Wx("0x4d")](e.markerName);if(x)for(const t of x)o[Wx("0x4c")][Wx("0x13")](Wx("0x26")+r,t),o[Wx("0x4c")].removeClass(Wx("0x4b"),t),o.writer.removeAttribute("data-suggestion",t),o[Wx("0x18")][Wx("0xd")](t,e[Wx("0x32")])}),{priority:Wx("0x14")}),n[Wx("0x1")][Wx("0x4a")]((t=>{const{data:n}=t;if(n){if(Wx("0x36")==n.commandName){const t=n[Wx("0x21")][0][Wx("0x48")];return o(Yo(e,t?"FORMAT_HEADER_ROW":Wx("0x42")))}if(Wx("0x0")==n[Wx("0x29")]){const t=n[Wx("0x21")][0][Wx("0x48")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Wx("0x12"),content:Yo(e,Wx("0x2e"),t)}}}));const i=r[Wx("0xa")]();n[Wx("0x4e")][Wx("0x41")](Wx("0x17"),"setTableRowHeader",Wx("0x33"),i),n[Wx("0x4e")].registerCustomCallback(Wx("0x17"),Wx("0x0"),Wx("0x33"),i)}}const Vx=["start","ck-suggestion-marker","paragraph","columnInsertionRanges","join","documentSelection","first","tableCellBorderStyle","name","Users","register","_splitMarkerName","getShiftedBy","getAttributes","removeMarker","dataDowncast","element","change","registerPostFixer","tableCellVerticalAlignment","ck-suggestion-marker--active","set","getSuggestionCallback","suggestion-td","differ","getSelectionAffectedTableCells","rowInsertionIndexes","createRange","findAncestor","markMultiRangeDeletion","suggestion","endColumn","requires","getChangedMarkers","createRangeOn","accept","insertContent","move","fill","getRange","trackChanges","for","TrackChangesEditing","setAttribute","getAllAdjacentSuggestions","hasSuggestion","createTableWalker","tableCellBorderColor","getSuggestions","getContainedElement","getSuggestion","tablePasteColumn","redo","suggestion:formatBlock:tablePasteCell","view","stop","getMarkers","low","from","isEqual","createPositionBefore","createRangeIn","selection","getChanges","setAttributes","commands","TableUtils","nextSibling","table","insertionRanges","markMultiRangeInsertion","tableCellHorizontalAlignment","editing","previous","tableCellBorderWidth","conversion","add","filter","cell","tablePasteChainId","tableCell","entries","clipboardOutput","end","last","includes","editor","discard","afterInit","activeMarkers","column","oldRange","every","tablePaste","_replaceTableSlotCell","markers","_suggestionFactory","locale","insertion","getRowIndexes","previousSibling","getItems","tableCellBackgroundColor","find","markerToHighlight","tablePasteCell","push","plugins","getColumns","getRows","showSuggestionHighlights","map","_getCoordsForCells","next","model","startsWith","updateMarker","fromEntries","$graveyard","remove","endRow","getTableIfOnlyTableInContent","author","suggestionUnloaded","get","newRange","formatBlock","cells","some","type","insert","high","row","schema","deletionRanges","removeMarkers","has","attributes","elementToElement","length","TableClipboard","rowInsertionRanges","value","document","_descriptionFactory","getRanges","unwrap","batch","markerName","listenTo","root","registerCustomCallback","position","tableCellSuggestion","subType","deletion","registerDescriptionCallback","isInContent","markerAttributes","isEmpty","getChild","tablePasteRow"];var Kx,qx;Kx=Vx,qx=484,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x4c"),Xx("0x31"),Xx("0x9"),Xx("0x49"),Xx("0x15"),Xx("0x68"),"tableCellPadding"],Jx=Object[Xx("0x77")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x22")](){return[Mx]}[Xx("0x5a")](){const t=this[Xx("0x58")];if(!t.plugins[Xx("0x8a")](Xx("0x8e")))return;const n=t[Xx("0x6d")].get(Xx("0x2c")),o=t[Xx("0x6d")][Xx("0x7e")](Xx("0x44")),r=t.plugins.get(Mx),s=t[Xx("0x6d")].get(Xx("0x8e"));r._tablePostFixingSubtypes.push(Xx("0x1"),Xx("0x35")),t[Xx("0x74")][Xx("0x87")][Xx("0xc")](Xx("0x9b"),{allowIn:"tableCell",allowContentOf:Xx("0x52"),isLimit:!0}),t[Xx("0x4d")][Xx("0x8c")]({model:Xx("0x9b"),view:Xx("0x19")});let i=null;t[Xx("0x74")].on(Xx("0x26"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0x8d")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this.editor[Xx("0x43")][Xx("0x7e")](Xx("0x2a"))[Xx("0x90")]&&function(t,e,n,o,r){if(e&&!e.is(Xx("0x7")))return!1;const s=r[Xx("0x7b")](t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o[Xx("0x1b")](n.document[Xx("0x40")]);if(!i.length)return!1;const x=i[0].findAncestor(Xx("0x46")),a=o[Xx("0x65")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x8")],endRow:a[Xx("0x56")],startColumn:c[Xx("0x8")],endColumn:c[Xx("0x56")]};return 1==i[Xx("0x8d")]&&(l[Xx("0x7a")]+=o[Xx("0x6f")](s)-1,l[Xx("0x21")]+=o[Xx("0x6e")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0x74")],o,s)&&(r[Xx("0x39")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x74")][Xx("0x13")]((()=>{t[Xx("0x74")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x8d")]&&n[Xx("0x48")](r,"tablePasteRow",{tablePasteChainId:o}),s[Xx("0x8d")]&&n[Xx("0x48")](s,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[Xx("0x48")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x1f")](c,Xx("0x5f"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x71")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x6b"),{tablePasteChainId:o});if(d){const e=d[Xx("0x3a")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Xx("0x74")][Xx("0x24")](o),i=e[Xx("0x69")]((t=>t[Xx("0x29")]()[Xx("0x3d")](s)));i&&n[Xx("0x6c")]([i[Xx("0xa")],r])}n.length&&d[Xx("0x2d")](Xx("0xa0"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x85")]+10}),t.plugins[Xx("0x7e")](Xx("0x8e")).on(Xx("0x60"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Xx("0x39")]();const s=n[Xx("0x50")],x=o,a=Zx(s),c=Zx(x);t.return=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x79")](s[Xx("0x0")](0));for(const t of Array[Xx("0x3c")](x.getChildren()))r[Xx("0x84")](t,s,Xx("0x55"));const t=i[Xx("0x1c")][Xx("0x57")](n[Xx("0x86")]),e=i.columnInsertionIndexes[Xx("0x57")](n[Xx("0x5c")]);t||e||(l=r.createRangeIn(s))}else c&&!a&&(d=r[Xx("0x3f")](s));else{const t=r.createElement(Xx("0x9b")),e=r.createElement("tableCellSuggestion");r.wrap(r[Xx("0x3f")](s),e),r[Xx("0x84")](t,s,0);for(const e of Array.from(x.getChildren()))r[Xx("0x84")](e,t,"end");l=r[Xx("0x24")](t),d=r[Xx("0x24")](e)}const u=Array[Xx("0x3c")](x[Xx("0xf")]())[Xx("0x4f")]((([t])=>$x.includes(t)));i.cells.push({element:s,attributes:u[Xx("0x8d")]?Object[Xx("0x77")](u):null}),l&&i[Xx("0x47")][Xx("0x6c")](l),d&&i[Xx("0x88")][Xx("0x6c")](d)}),{priority:Xx("0x85")}),o.on("insertColumns",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s.columns||1;i.columnInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x30")](r,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5")].push(t[Xx("0x74")][Xx("0x24")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s.rows||1;i[Xx("0x1c")]=new Array(a)[Xx("0x28")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i[Xx("0x8f")][Xx("0x6c")](t[Xx("0x74")][Xx("0x24")](e))}),{priority:Xx("0x3b")}),n[Xx("0x92")][Xx("0x9e")]((e=>{if(e.subType&&e[Xx("0x9c")][Xx("0x75")](Xx("0x5f")))return e[Xx("0x4b")]?{}:{type:Xx("0x64"),content:Yo(t[Xx("0x63")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[Xx("0x5f"),Xx("0x35"),"tablePasteRow",Xx("0x6b")])n[Xx("0x62")].registerCustomCallback(Xx("0x64"),t,Xx("0x6"),x),n[Xx("0x62")][Xx("0x99")](Xx("0x9d"),t,"join",x),n[Xx("0x62")].registerCustomCallback(Xx("0x80"),t,"join",x);n[Xx("0x62")][Xx("0x99")](Xx("0x80"),Xx("0x6b"),Xx("0x59"),x),n[Xx("0x62")].registerCustomCallback(Xx("0x80"),"tablePasteCell","accept",((e,n,o)=>{const r=e.map((t=>t[Xx("0x33")]()))[Xx("0x4f")]((t=>t)),s=new Map(r[Xx("0x71")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x81")])e&&s[Xx("0x17")](t,e);else if(o&&o[Xx("0xa0")])for(const[e,n]of Object[Xx("0x53")](o[Xx("0xa0")])){const o=t[Xx("0x74")][Xx("0x61")][Xx("0x7e")](e),r=o?o[Xx("0x29")]()[Xx("0x33")]():null;r&&s[Xx("0x17")](r,n)}t[Xx("0x74")][Xx("0x13")]((t=>{for(const[e,n]of s)t[Xx("0x42")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory.registerCustomCallback(e,Xx("0x5f"),o,((r,s,i)=>{t[Xx("0x74")][Xx("0x13")]((t=>{const x=[];for(const t of r){const e=t[Xx("0x2")].nodeAfter;e.is(Xx("0x12"),"tableCellSuggestion")&&x[Xx("0x6c")](e)}n._suggestionFactory[Xx("0x18")](e,null,o)(r,s,i);for(const e of x)Xx("0x78")!=e[Xx("0x98")].rootName&&t[Xx("0x94")](e)}))}))};a(Xx("0x64"),Xx("0x25")),a(Xx("0x64"),Xx("0x59")),a(Xx("0x9d"),Xx("0x25")),a(Xx("0x9d"),Xx("0x59")),n[Xx("0x62")][Xx("0x99")](Xx("0x64"),Xx("0x1"),Xx("0x59"),(t=>{const e=t[Xx("0x71")]((t=>t[Xx("0x33")]())),n=e[0][Xx("0x1e")](Xx("0x46")),{minRow:s,maxRow:i}=r._getCoordsForCells(e);o.removeRows(n,{at:s,rows:i-s+1})})),n._suggestionFactory.registerCustomCallback(Xx("0x64"),"tablePasteColumn","discard",(t=>{const e=t[Xx("0x71")]((t=>t.getContainedElement())),n=e[0][Xx("0x1e")](Xx("0x46")),{minColumn:s,maxColumn:i}=r[Xx("0x72")](e);o.removeColumns(n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x9c")]||!e.subType[Xx("0x75")]("tablePaste"))return;const o=e[Xx("0x8b")].tablePasteChainId,r=n[Xx("0x32")]()[Xx("0x4f")]((t=>t.isInContent&&t[Xx("0x8b")]&&t.attributes[Xx("0x51")]==o));r[Xx("0x8d")]&&e[Xx("0x2e")]()[Xx("0x8d")]!=r[Xx("0x8d")]&&r.reduce(((t,e)=>(t[Xx("0x73")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0xd")](t[Xx("0x96")]),r=[Xx("0x3"),"ck-suggestion-marker-insertion"],s=n[Xx("0x5b")][Xx("0x57")](t[Xx("0x96")]);return s&&r.push(Xx("0x16")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x85")}),n.on(Xx("0x7d"),c,{priority:Xx("0x85")}),t[Xx("0x74")][Xx("0x91")][Xx("0x14")]((()=>{let e=!1;const o=Array[Xx("0x3c")](t.model[Xx("0x91")][Xx("0x1a")][Xx("0x23")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Xx("0xd")](r);if(Xx("0x20")!=o||"deletion"!=i||s.oldRange)continue;if(!n[Xx("0x2f")](x))continue;const a=n[Xx("0x34")](x).getRanges(),c=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me;for(const t of n.getSuggestions())if(t[Xx("0x9f")]&&t[Xx("0x7c")]==c&&"formatBlock"==t.type&&Xx("0x6b")==t.subType&&t[Xx("0x93")]()[Xx("0x5e")]((t=>a[Xx("0x82")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x2e")]())n[Xx("0x9f")]&&(n[Xx("0x59")](),e=!0)}return e})),t[Xx("0x74")][Xx("0x91")][Xx("0x14")]((e=>{const o=t[Xx("0x43")][Xx("0x7e")](Xx("0x36"));if(!o||!o._createdBatches[Xx("0x8a")](e[Xx("0x95")]))return!1;let r=!1;const s=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me,i=t[Xx("0x74")][Xx("0x91")][Xx("0x1a")][Xx("0x41")](),x=Array[Xx("0x3c")](t[Xx("0x74")].document[Xx("0x1a")][Xx("0x23")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Xx("0xd")](t);return"suggestion"==o&&Xx("0x5f")==r&&i==s.id&&!e[Xx("0x5d")]}));for(const t of i){if(Xx("0x84")!=t[Xx("0x83")]||Xx("0x9b")!=t.name||1!=t[Xx("0x8d")])continue;const n=e[Xx("0x1d")](t[Xx("0x9a")],t.position[Xx("0xe")](1));if(!x[Xx("0x69")]((({data:t})=>t[Xx("0x7f")][Xx("0x3d")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x76")](t,{range:n}),r=!0;break}}return r})),t.model.document[Xx("0x14")]((e=>{let o=!1;const r=t[Xx("0x6d")][Xx("0x7e")](Xx("0xb")).me,s=n.getSuggestions()[Xx("0x4f")]((t=>t.isInContent&&t[Xx("0x7c")]==r)),i=new Set,x=new Set;for(const t of s)if("tablePaste"==t[Xx("0x9c")])for(const e of t[Xx("0x3a")]()){const n=e[Xx("0x29")]()[Xx("0x33")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0xa")]),i[Xx("0x4e")](n),o=!0;const r=n[Xx("0x45")],s=n[Xx("0x66")],a=r&&r.is(Xx("0x12"),Xx("0x9b")),c=s&&s.is("element",Xx("0x9b"));a&&!i[Xx("0x8a")](r)&&x[Xx("0x4e")](r),c&&!i[Xx("0x8a")](s)&&x[Xx("0x4e")](s)}else n.is("element",Xx("0x4"))&&n[Xx("0xa1")]&&(t[Xx("0x10")](e[Xx("0xa")]),o=!0)}else if(Xx("0x6b")==t[Xx("0x9c")]){if(!t[Xx("0x8b")]||!t[Xx("0x8b")][Xx("0x51")])continue;const e=t[Xx("0x8b")].markerAttributes;if(e&&Object.keys(e).length)continue;const n=t[Xx("0x8b")][Xx("0x51")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x9c")]&&e[Xx("0x9c")][Xx("0x75")](Xx("0x5f"))){if(!e[Xx("0x8b")][Xx("0x51")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x8b")][Xx("0x51")]==n){r=!1;break}}i&&r&&(t[Xx("0x89")](),o=!0)}for(const t of i)e[Xx("0x79")](t);for(const t of x)e[Xx("0x94")](t);return o})),t[Xx("0x4d")][Xx("0x2b")]("editingDowncast")[Xx("0x6a")]({model:Xx("0x37"),view:(t,e)=>l(t),converterPriority:Xx("0x85")}),t[Xx("0x4d")][Xx("0x2b")](Xx("0x11")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[Xx("0x70")]?l(t,!1):null,converterPriority:Xx("0x85")});const d=t[Xx("0x4a")][Xx("0x38")];this[Xx("0x97")](d[Xx("0x91")],Xx("0x54"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content)[Xx("0x67")]())t.is(Xx("0x12"),"suggestion-td")&&n[Xx("0x6c")](t);d[Xx("0x13")]((t=>{for(const e of n)t[Xx("0x27")](t[Xx("0x3f")](e),t[Xx("0x3e")](e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0xa1")])return!0;const e=t[Xx("0x0")](0);return e.is(Xx("0x12"),Xx("0x4"))&&e[Xx("0xa1")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x30")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["_suggestionFactory","formatBlock","subType","registerCustomCallback","discard","format","has","tableWidth","editor","model","getContainedElement","getAttribute","commandParams","getSuggestionCallback","accept","_descriptionFactory","get","resizeTable","plugins","handleSuggestionDescription","getSuggestions","handleResizeTableWidthCommand","getSelectedElement","columnWidths","bind","table","TableColumnResizeEditing","resizeTableWidth","enableCommand","afterInit","selection","*Format:* resize table","formatGroupId","markBlockFormat","locale","author","TrackChangesEditing"];var ea,na;ea=ta,na=388,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{[oa("0xb")](){if(!this.editor.plugins[oa("0x19")](oa("0x8")))return;const t=this[oa("0x1b")][oa("0x0")][oa("0x23")](oa("0x12"));t[oa("0xa")]("resizeTableWidth",this[oa("0x3")].bind(this)),t[oa("0xa")]("resizeColumnWidths",this[oa("0x3")].bind(this)),t._suggestionFactory[oa("0x16")](oa("0x14"),oa("0x24"),oa("0x21"),t[oa("0x13")][oa("0x20")](oa("0x14"),null,"discard")),t[oa("0x13")].registerCustomCallback(oa("0x14"),"resizeTable",oa("0x17"),t[oa("0x13")].getSuggestionCallback(oa("0x14"),null,"accept")),t[oa("0x22")].registerDescriptionCallback(this[oa("0x1")][oa("0x6")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this[oa("0x1b")][oa("0x0")][oa("0x23")](oa("0x8")),r=e[oa("0x7")]||this[oa("0x1b")][oa("0x1c")].document[oa("0xc")][oa("0x4")]();this.editor[oa("0x1c")].change((()=>{const s=o.getColumnGroupElement(r);let i=s?o.getTableColumnsWidths(s):null,x=r[oa("0x1e")](oa("0x1a"))||null;const a=e.tableWidth||x,c=e[oa("0x5")]||i,l=this[oa("0x1b")][oa("0x0")].get("Users").me;for(const t of n[oa("0x2")]()){const e=t[oa("0x1d")]();if(oa("0x24")===t[oa("0x15")]&&e===r){t[oa("0x11")]!==l&&t[oa("0x17")]();const e=t.data[oa("0x1f")];x=e[0][oa("0x1a")],i=e[0][oa("0x5")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[oa("0xf")](r,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x24")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x24")===e[oa("0xe")]){const t=oa("0xd");return{type:oa("0x18"),content:Yo(this.editor[oa("0x10")],t)}}}}const sa=["get","TrackChangesEditing","enableCommand","afterInit","insertTemplate","Template"];var ia,xa;ia=sa,xa=290,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x1")](){const t=this.editor;t.plugins.has(aa("0x3"))&&t.plugins[aa("0x4")](aa("0x5"))[aa("0x0")](aa("0x2"))}}const la=["insertTableOfContents","enableCommand","afterInit","tableOfContents","plugins","editor","commands","get","locale","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","_descriptionFactory"];var da,ua;da=la,ua=297,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x7")];if(!t[ga("0x8")][ga("0x9")](ga("0x2")))return;t[ga("0x6")][ga("0x9")](ga("0x0"))[ga("0x3")](ga("0x2"));const e=t[ga("0x6")][ga("0x9")](ga("0x0")),n=t[ga("0xa")];e[ga("0x1")][ga("0xb")](ga("0x5"),(t=>Yo(n,ga("0xc"),t)))}}const fa=["removeMarker","getChangedMarkers","isTouching","differ","model","has","newRange","start","get","registerPostFixer","editor","getNearestSelectionRange","_splitMarkerName","_descriptionFactory","title-content","end","nodeBefore","element","createRange","plugins","afterInit","Title","document"];var ha,ba;ha=fa,ba=263,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0xa")](){const t=this[pa("0x0")];if(!t.plugins[pa("0x12")](pa("0xb")))return;const e=t[pa("0x9")][pa("0x15")]("TrackChangesEditing");e[pa("0x3")].registerElementLabel("title-content",(()=>Yo(t.locale,"ELEMENT_TITLE"))),t.model[pa("0xc")][pa("0x16")]((n=>{let o=!1;const r=Array.from(t.model[pa("0xc")][pa("0x10")][pa("0xe")]());for(const{name:s,data:i}of r){const{group:r}=e[pa("0x2")](s);if("suggestion"!==r||!i.newRange)continue;const x=i[pa("0x13")],a=x[pa("0x5")][pa("0x6")];if(!a||!a.is(pa("0x7"),pa("0x4")))continue;if(!x[pa("0x14")][pa("0xf")](x.end))continue;const c=t[pa("0x11")].schema[pa("0x1")](x[pa("0x5")],"forward");if(c&&c.isCollapsed){const t=n[pa("0x8")](x[pa("0x14")],c[pa("0x14")]);t.isEqual(x)||(n.updateMarker(s,{range:t}),o=!0)}o||(n[pa("0xd")](s),o=!0)}return o}))}}const _a=["plugins","enableCommand","redo","afterInit","has","TrackChangesEditing","undo","editor"];var Ta,Ca;Ta=_a,Ca=273,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this[ya("0x6")],e=t[ya("0x7")].get(ya("0x4"));t[ya("0x7")][ya("0x3")]("UndoEditing")&&(e.enableCommand(ya("0x5")),e[ya("0x0")](ya("0x1")))}}const Aa=["editor","TableCaptionEditing","plugins","get","enableCommand","requires","TrackChangesEditing","toggleTableCaption","afterInit"];var va,Ra;va=Aa,Ra=484,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("0x7")](){return[Mx]}[Ia("0x1")](){const t=this[Ia("0x2")];t[Ia("0x4")].has(Ia("0x3"))&&t[Ia("0x4")][Ia("0x5")](Ia("0x8"))[Ia("0x6")](Ia("0x0"))}}const La=["change","_getTranslationKeyForListStyle","styles","get","toUpperCase","bind","_getSuggestionBlocksForListStyle","numbered","startIndex","isFirstBlockOfListItem","*Format:* set order to regular","replace","editor","TrackChangesEditing","*Format:* set order to reversed","listReversed","format","locale","commandParams","listStyle","handleListStyleCommand","has","expandListBlocksToCompleteList","_getSuggestionBlocks","length","model","getListTypeFromListStyleType","ELEMENT_","isListItemBlock","commandName","enableCommand","document","DocumentListPropertiesUtils","list.properties","getSelectedBlocks","getAttribute","reversed","handleListStartCommand","*Format:* set start index to %0","selection","handleListReversedCommand","*Change to:* %0","listStart","markMultiRangeBlockFormat","DocumentListUtils","DocumentListPropertiesEditing","push","type","plugins","config","handleDescriptions"];var Na,wa;Na=La,wa=118,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this.editor.plugins[Ma("0x5")](Ma("0x1d")))return;const t=this[Ma("0x2f")][Ma("0x21")].get(Ma("0x11")),e=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")]("TrackChangesEditing");t[Ma("0x25")]&&e.enableCommand(Ma("0x3"),this[Ma("0x4")].bind(this)),t[Ma("0x14")]&&e[Ma("0xe")](Ma("0x32"),this[Ma("0x18")][Ma("0x28")](this)),t[Ma("0x2b")]&&e[Ma("0xe")](Ma("0x1a"),this[Ma("0x15")][Ma("0x28")](this)),e._descriptionFactory.registerDescriptionCallback(this[Ma("0x22")][Ma("0x28")](this))}handleListStyleCommand(t,e={}){const n=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[Ma("0x2f")][Ma("0x9")].change((()=>{n[Ma("0x1b")](o,{commandName:Ma("0x3"),commandParams:[{type:e.type}],formatGroupId:Ma("0x3")})}))}[Ma("0x18")](t,e={}){const n=this[Ma("0x2f")].plugins[Ma("0x26")](Ma("0x30")),o=this.editor[Ma("0x20")].get(Ma("0x1c")),r=this[Ma("0x7")]((t=>o[Ma("0xc")](t)&&Ma("0x2a")===t[Ma("0x13")]("listType")));null!==r&&this[Ma("0x2f")][Ma("0x9")][Ma("0x23")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ma("0x32"),commandParams:[{reversed:e[Ma("0x14")]}],formatGroupId:Ma("0x32")})}))}[Ma("0x15")](t,e={}){const n=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")](Ma("0x30")),o=this.editor[Ma("0x20")][Ma("0x26")](Ma("0x1c")),r=this[Ma("0x7")]((t=>o.isListItemBlock(t)&&"numbered"===t[Ma("0x13")]("listType")));null!==r&&this[Ma("0x2f")][Ma("0x9")].change((()=>{n[Ma("0x1b")](r,{commandName:Ma("0x1a"),commandParams:[{startIndex:e[Ma("0x2b")]}],formatGroupId:Ma("0x1a")})}))}[Ma("0x22")](t){const e=this[Ma("0x2f")][Ma("0x1")],{data:n}=t;if(!n)return;let o,r;switch(n[Ma("0xd")]){case"listStyle":o=Ma("0x19"),r={type:Ma("0x0"),content:Yo(e,o,Yo(e,this[Ma("0x24")](n[Ma("0x2")][0][Ma("0x1f")])))};break;case Ma("0x32"):o=n[Ma("0x2")][0][Ma("0x14")]?Ma("0x31"):Ma("0x2d"),r={type:Ma("0x0"),content:Yo(e,o)};break;case Ma("0x1a"):o=Ma("0x16"),r={type:"format",content:Yo(e,o,n[Ma("0x2")][0].startIndex)}}return r}[Ma("0x29")](){const t=this[Ma("0x2f")][Ma("0x20")].get(Ma("0x1c"));let e=Array.from(this.editor.model[Ma("0xf")][Ma("0x17")][Ma("0x12")]());return e.push(...t[Ma("0x6")](e)),e=[...new Set(e)],e}[Ma("0x7")](t){const e=this[Ma("0x2f")][Ma("0x20")][Ma("0x26")](Ma("0x1c"));let n=Array.from(this.editor[Ma("0x9")].document.selection[Ma("0x12")]()).filter(t);if(!n[Ma("0x8")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ma("0x2c")](t)&&o[Ma("0x1e")](t);return o}[Ma("0x24")](t){return Ma("0xb")+this[Ma("0x2f")].plugins.get(Ma("0x10"))[Ma("0xa")](t)[Ma("0x27")]()+"_LIST_"+t[Ma("0x27")]()[Ma("0x2e")](/-/g,"_")}}const Fa=["editor","nodeAfter","_suggestionFactory","document","tableBorderColor","data","_getSuggestion","registerCustomCallback","TrackChangesTableProperties","tableCellProperties","afterInit","TableUtils","discard","handleSuggestionDescription","subType","TablePropertiesEditing","format","table","tableProperties","TableCellPropertiesEditing","selection","tableHeight","registerDescriptionCallback","accept","_handlePropertyChange","change","getAttribute","markBlockFormat","TrackChangesEditing","batch","tableCellBackgroundColor","locale","plugins","model","getSelectionAffectedTableCells","enqueueChange","tableCellHeight","formatBlock","tableCellBorderColor","get","enableCommand","tableCellPadding","commandParams","tableAlignment","getContainedElement","tableCellVerticalAlignment","has","getSuggestionCallback","join","*Format:* change table properties","setAttribute","getFirstPosition","tableBorderWidth","tableCellHorizontalAlignment","tableCellBorderStyle"];var Pa,Da;Pa=Fa,Da=167,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("0x10")]=[Ba("0x2"),"tableBorderStyle",Ba("0x32"),Ba("0x29"),"tableWidth",Ba("0x13"),"tableBackgroundColor"],this[Ba("0x7")]=[Ba("0x24"),Ba("0x34"),"tableCellBorderWidth",Ba("0x27"),"tableCellWidth",Ba("0x22"),Ba("0x1c"),Ba("0x33"),Ba("0x2b")]}static get pluginName(){return Ba("0x6")}[Ba("0x8")](){const t=this[Ba("0x35")][Ba("0x1e")].get(Ba("0x1a"));if(this[Ba("0x35")].plugins[Ba("0x2c")](Ba("0xd"))){for(const e of this[Ba("0x10")])t[Ba("0x26")](e,((t,n)=>{const o=this[Ba("0x35")].model.document[Ba("0x12")][Ba("0x31")]().findAncestor(Ba("0xf"));this._handlePropertyChange(e,[o],this[Ba("0x10")],Ba("0x10"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x23"),Ba("0x10"),Ba("0x15"),t[Ba("0x0")][Ba("0x2d")](Ba("0x23"),null,Ba("0xa"))),t[Ba("0x0")][Ba("0x5")]("formatBlock","tableProperties",Ba("0xa"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t[Ba("0x0")][Ba("0x5")](Ba("0x23"),"tableProperties",Ba("0x2e"),(()=>!1))}if(this[Ba("0x35")][Ba("0x1e")][Ba("0x2c")](Ba("0x11"))){for(const e of this[Ba("0x7")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")](Ba("0x9"))[Ba("0x20")](this[Ba("0x35")][Ba("0x1f")][Ba("0x1")][Ba("0x12")]);this._handlePropertyChange(e,o,this[Ba("0x7")],Ba("0x7"),t,n)}));t[Ba("0x0")].registerCustomCallback("formatBlock","tableCellProperties",Ba("0x15"),t[Ba("0x0")].getSuggestionCallback("formatBlock",null,"discard")),t[Ba("0x0")][Ba("0x5")](Ba("0x23"),"tableCellProperties",Ba("0xa"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[Ba("0x0")].registerCustomCallback(Ba("0x23"),"tableCellProperties",Ba("0x2e"),(()=>!1))}t._descriptionFactory[Ba("0x14")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x16")](t,e,n,o,r,s){const i=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")](Ba("0x1a"));this[Ba("0x35")].model[Ba("0x21")](s[Ba("0x1b")],(()=>{for(const t of e)if(this[Ba("0x4")](t,o))r(s);else{const e={};for(const o of n){const n=t[Ba("0x18")](o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0x36")],r=n[Ba("0x28")][0];this[Ba("0x35")][Ba("0x1f")][Ba("0x17")]((e=>{for(const n of t)void 0!==r[n]?e[Ba("0x30")](n,r[n],o):e.removeAttribute(n,o)}))}[Ba("0xb")](t){if(t[Ba("0x3")])switch(t[Ba("0xc")]){case Ba("0x10"):return{type:Ba("0xe"),content:Yo(this.editor[Ba("0x1d")],Ba("0x2f"))};case Ba("0x7"):return{type:Ba("0xe"),content:Yo(this.editor[Ba("0x1d")],"*Format:* change table cell properties")}}}[Ba("0x4")](t,e){const n=this[Ba("0x35")][Ba("0x1e")][Ba("0x25")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x2a")]();if(o[Ba("0xc")]===e&&n===t)return o}return null}}const Ua=["fromRange","discardSuggestion","forceDefaultExecution","ck-suggestion-marker","attributes","_updateSuggestionData","rootName","consumable","acceptSelectedSuggestions","ck-suggestion-marker-formatBlock","creator","_addThreadToSuggestion","suggestion-type","isSelectable","substr","_findSuggestions","ck-suggestion-marker--active","addHighlight","deletion:join","_setSuggestionRange","batch","getAncestors","_suggestionState","config","set","formatBlock:discard","_editor","stopListening","dataToMarker","dataDowncast","@external","insertion:join","_commentsRepository","skipNestingCheck","_refreshSuggestionsChain","hasCommentThread","catch","lowest","notReady","from","root","removeComment","detach","getDifference","formatBlock","for","removeMarker","formatInline:accept","_joinWithAdjacentSuggestions","trackChanges.trackFormatChanges","init","$marker","change:activeMarkers","always","has","fromCharCode","addUser","next","isEqual","_breakSuggestionMarker","document","isBefore","PendingActions","registerCustomCallback","item","getFirstMarker","isMultiRange","createPositionAfter","change","containsRange","getChangedMarkers","markerReady","_saved","_customCallbacks","insertContent","createElement","track-changes-adapter-already-set","updateMarker","refresh","_isDataLoaded","isOwn","consume","addRange","deletion:accept","getIntersection","_createSuggestion","type","formatInline:chain","accept","group","_checkSuggestionCorrectness","trackChanges.mergeNestedSuggestions","_splitMarkerName","remove","editing","_adapter","markInsertion","end","buildSuggestion","registerPostFixer","removeAttribute","commands","acceptSuggestion","head","isInsideObject","never","authorName","$graveyard","normal","listenTo","addComment","isNextTo","markerToData","backward","track-changes-user-not-found","addMarker:suggestion:formatBlock","isCollapsed","after","_getAuthorFromId","addSuggestion","markBlockFormat","writer","insert","author","move","conversion","commandName","start","isUndo","createPositionAt","before","suggestion:","then","acceptAllSuggestions","differ","insertion:accept","formatGroupId","formatInline:discard","range","external:","createSelection","suggestionChanged","markMultiRangeDeletion","elementStart","getShiftedBy","change:data","markDeletion","values","isObject","_trackFormatChanges","isInContent","_isForcedDefaultExecutionBlock","_addSuggestionMarker","deletion:chain","formatInline","reconvertMarker","element","ready","_onDiscard","trackChangesCommand","includes","editor","addSuggestionData","get","getItems","_registerDefaultCallbacks","setAttribute","setSelection","insertion","multipleBlocks","removeMarkers","_rangeIsInLocalUserInsertion","_enabledCommands","getSuggestion","getCustomProperty","showSuggestionHighlights","mapper","options","getSuggestionCallback","adapter","push","_descriptionFactory","pluginName","deletion","requires","formatBlock:chain","_defaultCallbacks","length","toViewElement","$textProxy","insertion:","model","dataReady","open","getChanges","deleteContent","hasSuggestion","return","upcast","createRange","trackChanges","unbind","default","low","isAtEnd","setTo","discardSelectedSuggestions","enqueueChange","hasComments","getMultiRangeId","isAfter","execute","suggestionUnloaded","_removeSuggestion","isTouching","oldRange","getLastMatchingPosition","newRange","isBlock","getAllAdjacentSuggestions","bindElementToMarker","addMarker:suggestion","removed","split","discard","delete","getCommentThread","_model","formatBlock:","splitPosition","removeClass","map","isRemovable","change:_saved","tablePasteChainId","formatInline:","assign","high","authoredAt","size","schema","locale","name","track-changes-suggestion-not-found","_suggestions","clone","resolve","insertion:chain","isArray","isIntersectingWithRange","parent","unbindElementFromMarkerName","chain","formatInline:join","add","position","editingDowncast","getNearestSelectionRange","data-suggestion","fire","markerName","isDocumentOperation","removeMarker:suggestion:formatBlock","nodeBefore","_getExternalAuthor","widget","discardAllSuggestions","splice","getMarkers","rejected","getRange","isAtStart","markMultiRangeInsertion","howMany","targetPosition","accepted","commentThread","getFirstRange","createdAt","markerNameToElements","every","subType","elementEnd","value","data","marker-count","markers","enableCommand","_getSuggestionData","CommentsRepository","some","_suggestionFactory","filter","formatBlock:accept","collaboration.channelId","containsPosition","selection","nodeAfter","_handleNewSuggestionMarker","stop","suggestion","_joinSuggestions","markerToHighlight","isLimit","Users","_mergeNestedSuggestions","plugins","getAttribute","getRanges","getSuggestions","ck-suggestion-marker-","suggestionLoaded","previous","addClass","track-changes-command-not-found","documentSelection","containsRangeInObject","deletion:","_cutOutSuggestionMarker","addMarkerName","_setSuggestionData","join","track-changes-suggestion-data-mismatch","multi","activeMarkers","PENDING_ACTION_SUGGESTION","formatBlock:join"];var Ga,Ha;Ga=Ua,Ha=363,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x94")](){return[Wa("0xfd"),s.Users,t.PendingActions,cr,Cr,Rr,Mr,Br,zr,Jr,es,Oa,xs,us,ps,ys,Ls,Ps,Gs,Ks,Qs,ni,xi,ui,bi,Ci,Ri,Oi,ji,zi,$i,tx,ix,ux,bx,yx,Ix,Mx,jx,zx,Sa,Qx,ra,ma,ja,ca,Ea,ka]}static get[Wa("0x92")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[Wa("0x13")](t)))[Wa("0x11d")]("")}super(t),this.set(Wa("0x120"),[]),this.on(Wa("0x10"),((e,n,o,r)=>{this._model[Wa("0x20")]((()=>{for(const e of[...r,...o])this[Wa("0xbf")][Wa("0xfa")].has(e)&&t[Wa("0x3a")][Wa("0x77")](e)}))})),this[Wa("0x91")]=new rr(this[Wa("0x7d")].model[Wa("0xcc")],this.editor[Wa("0xcd")]),this[Wa("0x3b")]=null,this[Wa("0xff")]=new Va(this.editor),this[Wa("0xd0")]=new Map,this._commentsRepository=t[Wa("0x10e")].get("CommentsRepository"),this[Wa("0x88")]=new Set,this._model=this[Wa("0x7d")][Wa("0x9b")],this[Wa("0x139")]=new WeakMap,this[Wa("0x73")]=!1,t.config.define("trackChanges.trackFormatChanges",Wa("0xa6")),this._trackFormatChanges=t.config[Wa("0x7f")](Wa("0xd")),t.config.define(Wa("0x37"),!0),this._mergeNestedSuggestions=t.config.get(Wa("0x37")),this[Wa("0x7b")]=new u(t,this[Wa("0x88")]),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,56,49,48])}[Wa("0xe")](){const t=this.editor;t[Wa("0x59")][Wa("0x9")](Wa("0xdc"))[Wa("0x10a")]({model:Wa("0x108"),view:t=>{const{id:e,type:n}=this[Wa("0x38")](t[Wa("0xe0")]),o=[Wa("0x126"),Wa("0x112")+n];let r=3e3;return this.activeMarkers[Wa("0x7c")](t[Wa("0xe0")])&&(o[Wa("0x90")](Wa("0x133")),r=3010),Wa("0x93")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t.conversion.for(Wa("0x140"))[Wa("0xda")]((e=>{e.on(Wa("0xb9"),((e,n,o)=>{if(!o[Wa("0x8d")][Wa("0x8b")])return;const r=n.item;if(!r)return;const s=o[Wa("0x8c")][Wa("0x98")](r);t[Wa("0x9b")][Wa("0xcc")][Wa("0x70")](r)&&s&&!s[Wa("0x8a")](Wa("0xe5"))&&s.is("containerElement")&&(0,x.toWidget)(s,o[Wa("0x55")])}),{priority:Wa("0xc9")})})),t[Wa("0x59")][Wa("0x9")](Wa("0x140"))[Wa("0x10a")]({model:Wa("0x108"),view:(t,e)=>{if(!e[Wa("0x8d")][Wa("0x8b")])return null;const{type:n}=this._splitMarkerName(t[Wa("0xe0")]);return{classes:["ck-suggestion-marker",Wa("0x112")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[Wa("0x1c")])return;if(o.item.is(Wa("0x104")))return void r.consumable[Wa("0x2d")](o[Wa("0x1c")],n[Wa("0xce")]);const s=r[Wa("0x8c")].toViewElement(o[Wa("0x1c")]);if(!o[Wa("0x1c")].is(Wa("0x78"))||!t[Wa("0x9b")][Wa("0xcc")].isBlock(o.item)||s.getCustomProperty(Wa("0x134")))return;const{id:i}=this[Wa("0x38")](o.markerName);r[Wa("0x55")].addClass([Wa("0x126"),Wa("0x12c")],s),r[Wa("0x55")][Wa("0x82")]("data-suggestion",i,s),r.mapper[Wa("0xb8")](s,o[Wa("0xe0")]),e&&(this[Wa("0x120")][Wa("0x7c")](o.markerName)?r[Wa("0x55")][Wa("0x115")](Wa("0x133"),s):r[Wa("0x55")][Wa("0xc2")]("ck-suggestion-marker--active",s));for(const e of t.model.createRangeIn(o.item)[Wa("0x80")]())r[Wa("0x12a")][Wa("0x2d")](e,n[Wa("0xce")]);r.consumable[Wa("0x2d")](o.item,n[Wa("0xce")])};t[Wa("0x59")][Wa("0x9")]("dataDowncast")[Wa("0xda")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[Wa("0x8d")][Wa("0x8b")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion.for("dataDowncast")[Wa("0x4c")]({model:Wa("0x108"),view:(t,e)=>e[Wa("0x8d")][Wa("0x8b")]?null:{group:Wa("0x108"),name:t[Wa("0x131")](11)}}),t[Wa("0x59")].for(Wa("0xa2")).elementToElement({view:{name:Wa("0x108"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x5f")+t.getAttribute(Wa("0x12f"))+":"+t[Wa("0x10f")]("id");return t.getAttribute(Wa("0xf9"))&&(n+=":"+t[Wa("0x10f")](Wa("0xf9"))),e[Wa("0x27")](Wa("0xf"),{"data-name":n})}}),t[Wa("0x59")][Wa("0x9")](Wa("0xa2"))[Wa("0x13f")]({view:Wa("0x108")}),t[Wa("0x59")][Wa("0x9")]("editingDowncast")[Wa("0xda")]((t=>{t.on(Wa("0x4f"),n(),{priority:Wa("0xc9")})})),t[Wa("0x59")][Wa("0x9")](Wa("0xdc")).add((t=>{t.on(Wa("0xe2"),((t,e,n)=>{const o=n[Wa("0x8c")][Wa("0xf3")](e[Wa("0xe0")]);if(o)for(const t of o)t.getCustomProperty(Wa("0x134"))||(n[Wa("0x55")][Wa("0xc2")](["ck-suggestion-marker",Wa("0x12c"),Wa("0x133")],t),n[Wa("0x55")][Wa("0x40")](Wa("0xde"),t),n[Wa("0x8c")][Wa("0xd7")](t,e[Wa("0xe0")]))}),{priority:Wa("0xc9")})})),t[Wa("0x9b")][Wa("0x18")][Wa("0x3f")]((e=>{let n=!1;const o=Array[Wa("0x3")](t[Wa("0x9b")][Wa("0x18")].differ[Wa("0x22")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Wa("0x38")](x);if(Wa("0x108")!==o)continue;const d=this[Wa("0xd0")][Wa("0x7f")](l);if(null!=a.newRange)if(Wa("0x76")==c&&(n=n||Xa(a[Wa("0xb5")],x,e,t[Wa("0x9b")].schema)),a[Wa("0xb5")][Wa("0x50")]||Wa("0x47")==a[Wa("0xb5")][Wa("0x4")][Wa("0x129")]||"formatBlock"==c&&!Ja(a[Wa("0xb5")])||Wa("0x93")==c&&(qa(i=a[Wa("0xb5")])||(s=i)[Wa("0x5b")][Wa("0xd6")]==s[Wa("0x3d")][Wa("0xe3")]&&s[Wa("0x5b")][Wa("0xa8")]))e.removeMarker(x),n=!0;else{if(!d||!d[Wa("0x72")])continue;r[Wa("0xda")](d)}}var s,i;return r[Wa("0xcb")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),t[Wa("0x9b")].document[Wa("0x3f")]((e=>{let n=!1;for(const o of t[Wa("0x9b")][Wa("0x18")][Wa("0x62")][Wa("0x9e")]()){if(Wa("0x56")!=o[Wa("0x32")])continue;const r=o[Wa("0xdb")].getShiftedBy(o[Wa("0x97")]);if(r[Wa("0xa8")])for(const s of this[Wa("0xd0")][Wa("0x6f")]()){if(s.isMultiRange||!s[Wa("0x72")])continue;if(Wa("0x8")!=s[Wa("0x32")])continue;const i=s[Wa("0xf1")]();if(i[Wa("0x5b")][Wa("0xd6")]!=i[Wa("0x3d")][Wa("0xd6")]&&i[Wa("0x3d")].isEqual(o.position)){const o=t.model[Wa("0xa3")](i[Wa("0x5b")],r);e[Wa("0x29")](s[Wa("0x1d")](),{range:o}),n=!0}}}return n})),t[Wa("0x9b")][Wa("0xfa")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x38")](e[Wa("0xce")]),n=this[Wa("0xd0")][Wa("0x7f")](t);n&&n[Wa("0x11b")](e[Wa("0xce")])}})),t[Wa("0x9b")][Wa("0x18")].on(Wa("0x6d"),(()=>{const e=Array[Wa("0x3")](t[Wa("0x9b")][Wa("0x18")].differ[Wa("0x22")]())[Wa("0x100")]((t=>Wa("0x108")===this._splitMarkerName(t[Wa("0xce")])[Wa("0x35")]));if(0===e[Wa("0x97")])return;e.sort(((t,e)=>{const n=t[Wa("0xf8")][Wa("0xb3")],o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Wa("0x19")](o[Wa("0x5b")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[Wa("0x38")](t);if(null===r[Wa("0xb3")]){const e=this[Wa("0x106")](t);o.add(e)}else{const t=this._suggestions[Wa("0x7f")](e);null!==r[Wa("0xb5")]||t.isInContent?(n.add(t[Wa("0x43")]),o.add(t)):this[Wa("0xb1")](t)}}o[Wa("0xcb")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Wa("0xdf")](Wa("0x69"),t)})),t[Wa("0x9b")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[Wa("0xd0")][Wa("0xcb")])return;if(!o[Wa("0xe1")])return;if(o[Wa("0x137")][Wa("0x5c")]||!o[Wa("0x137")].isLocal)return;let r,s;switch(o[Wa("0x32")]){case"insert":r=t[Wa("0x9b")].createPositionAt(o.position),s=r[Wa("0x6c")](o[Wa("0xed")]);break;case Wa("0xbb"):r=t[Wa("0x9b")][Wa("0x5d")](o[Wa("0xc1")]),s=t.model.createPositionAt(o.moveTargetPosition);break;case Wa("0x58"):r=t[Wa("0x9b")][Wa("0x5d")](o[Wa("0xee")]),s=r[Wa("0x6c")](o.howMany);break;default:return}const i=t.model[Wa("0xa3")](r,s);t[Wa("0x9b")][Wa("0x20")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x132")](i)){if(t[Wa("0x1e")])continue;if(Wa("0x76")==t[Wa("0x32")])continue;const n=t[Wa("0xf8")]&&t[Wa("0xf8")].multipleBlocks;(Wa("0x8")!=t[Wa("0x32")]||Wa("0xbb")==o[Wa("0x32")]&&!n)&&(e[Wa("0x118")]||Wa("0x84")==t[Wa("0x32")]&&e.isOwn||t[Wa("0xf1")]()[Wa("0x21")](i)&&this[Wa("0x17")](t,r,s))}}))}),{priority:Wa("0x1")}),t[Wa("0x9b")].on(Wa("0x9f"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this[Wa("0x73")])return;if(!this[Wa("0x7b")][Wa("0xf7")])return;if(o[Wa("0x50")])return;const s=t[Wa("0x9b")].schema,{start:i,end:x}=o.getFirstRange(),a=i[Wa("0x105")]&&s[Wa("0x10b")](i[Wa("0x105")])?null:s[Wa("0xdd")](i,"forward"),c=x[Wa("0xe3")]&&s.isLimit(x[Wa("0xe3")])?null:s[Wa("0xdd")](x,Wa("0x4d")),l=t[Wa("0x9b")][Wa("0xa3")](a?a[Wa("0x5b")]:i,c?c[Wa("0x3d")]:x);t[Wa("0x9b")][Wa("0x20")]((e=>{this[Wa("0x6e")](l);const n=t[Wa("0x9b")][Wa("0xcc")][Wa("0xdd")](l.start);o.is(Wa("0x117"))?e[Wa("0x83")](n):o[Wa("0xa9")](n)})),e.stop()}),{priority:e.priorities[Wa("0x48")]+10}),t.model.on(Wa("0x26"),((e,n)=>{const o=n[n.length-1];o&&o[Wa("0x125")]||this[Wa("0x73")]||this.trackChangesCommand[Wa("0xf7")]&&(t[Wa("0x9b")][Wa("0x20")]((()=>{let o=t.model[Wa("0x26")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0xa1")]=o[Wa("0xd1")]();const r=o[Wa("0x3d")].nodeBefore,s=t[Wa("0x9b")][Wa("0xcc")];r&&s[Wa("0xb6")](r)&&!s[Wa("0x70")](r)&&(o=t[Wa("0x9b")][Wa("0xa3")](o.start,t[Wa("0x9b")].createPositionAt(r,Wa("0x3d")))),this[Wa("0x3c")](o)})),e[Wa("0x107")]())}),{priority:"high"}),this[Wa("0x7d")].commands[Wa("0xda")](Wa("0xa4"),this[Wa("0x7b")]),this.enableCommand(Wa("0xa4"));const o=new b(t,this[Wa("0xd0")]);t[Wa("0x41")][Wa("0xda")](Wa("0x42"),o),this[Wa("0xfb")](Wa("0x42"));const r=new C(t,this[Wa("0xd0")]);t[Wa("0x41")][Wa("0xda")](Wa("0x124"),r),this[Wa("0xfb")](Wa("0x124")),t.commands[Wa("0xda")](Wa("0x61"),new F(t,o,this[Wa("0xd0")])),this.enableCommand("acceptAllSuggestions"),t.commands[Wa("0xda")](Wa("0xe6"),new F(t,r,this[Wa("0xd0")])),this[Wa("0xfb")](Wa("0xe6")),t[Wa("0x41")][Wa("0xda")](Wa("0x12b"),new U(t,o,this[Wa("0xd0")])),this.enableCommand("acceptSelectedSuggestions"),t[Wa("0x41")][Wa("0xda")](Wa("0xaa"),new U(t,r,this._suggestions)),this[Wa("0xfb")](Wa("0xaa"));const s=t[Wa("0x10e")][Wa("0x7f")](Wa("0xfd"));this[Wa("0x49")](s,Wa("0x4a"),((t,{threadId:e})=>{const n=this[Wa("0xd0")][Wa("0x7f")](e);n&&n[Wa("0xf0")]&&1===n[Wa("0xf0")][Wa("0x97")]&&this[Wa("0x128")](e,{hasComments:!0})}),{priority:Wa("0xa7")}),this.listenTo(s,Wa("0x5"),((t,{threadId:e})=>{const n=this[Wa("0xd0")][Wa("0x7f")](e);n&&n.commentThread&&!n[Wa("0xf0")].length&&this[Wa("0x128")](e,{hasComments:!1})}),{priority:Wa("0xa7")})}set[Wa("0x8f")](t){if(this[Wa("0x3b")])throw new e.CKEditorError(Wa("0x28"),this);this[Wa("0x3b")]=t}get adapter(){return this[Wa("0x3b")]}[Wa("0x111")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0xd0")].values())t&&!e[Wa("0x72")]||n[Wa("0x90")](e);return e?n[Wa("0xc3")]((t=>t.toJSON())):n}[Wa("0x89")](t){const n=this[Wa("0xd0")][Wa("0x7f")](t);if(!n)throw new e.CKEditorError(Wa("0xcf"),this);return n}[Wa("0xa0")](t){return this[Wa("0xd0")][Wa("0x12")](t)}[Wa("0x7e")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[Wa("0x32")][Wa("0xbb")](":"),i=this[Wa("0xd0")][Wa("0x7f")](n)||this[Wa("0x31")](r,s,n,e,o);if(this[Wa("0x12e")](i),this._checkSuggestionCorrectness(i,r,s||null,e),i.createdAt=t[Wa("0xf2")],i[Wa("0x2b")]=!0,o&&o[Wa("0x141")]){const t=o[Wa("0x141")],e=this[Wa("0xe4")](t[Wa("0x46")]);i[Wa("0xca")]=t[Wa("0xf2")],i[Wa("0x57")]=e,i.isExternal=!0}else i.authoredAt=t.createdAt;switch(t[Wa("0xf8")]&&(i[Wa("0xf8")]=t[Wa("0xf8")]),t[Wa("0x127")]&&(i[Wa("0x127")]=t[Wa("0x127")]),this[Wa("0x3b")]&&this._adapter[Wa("0x53")]||(i[Wa("0x24")]=!0),this[Wa("0x139")][Wa("0x7f")](i)){case Wa("0x2"):this[Wa("0x139")][Wa("0x13b")](i,Wa("0x9c"));break;case"markerReady":i.isInContent?(this[Wa("0x145")](new Set([i])),this[Wa("0xc")](new Set([i])),this[Wa("0x139")].set(i,Wa("0x79")),this[Wa("0xdf")](Wa("0x113"),i)):this[Wa("0x139")].set(i,Wa("0xba"))}return i}[Wa("0x42")](t){this[Wa("0x125")]((()=>{this.editor[Wa("0x9b")][Wa("0x20")]((()=>{for(const e of t[Wa("0xb7")]())e[Wa("0x34")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[Wa("0x7d")][Wa("0x9b")].change((()=>{for(const e of t[Wa("0xb7")]())e[Wa("0xbc")]()}))}))}enableCommand(t,n){const o=this[Wa("0x7d")][Wa("0x41")][Wa("0x7f")](t);if(!o)throw new e.CKEditorError(Wa("0x116"),this,{commandName:t});this[Wa("0x88")][Wa("0xda")](o),n&&o.on(Wa("0xaf"),((t,e)=>{this[Wa("0x7b")].value&&(this[Wa("0x73")]||e[Wa("0x97")]>0&&e[e.length-1]&&e[e[Wa("0x97")]-1].forceDefaultExecution||(n(((...t)=>o[Wa("0xaf")](...t,{forceDefaultExecution:!0})),...e),t[Wa("0x107")]()))}),{priority:Wa("0xc9")})}forceDefaultExecution(t){let n,o;const r=this[Wa("0x73")];this[Wa("0x73")]=!0;try{n=t()}catch(t){o=t}return r||(this[Wa("0x73")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const r=this[Wa("0x7d")][Wa("0x10e")][Wa("0x7f")](Wa("0x10c")).me;for(const{suggestion:e,meta:r}of this[Wa("0x132")](t,Wa("0x84")))if(r[Wa("0x2c")]){if(!r.isNextTo){if(r.containsRangeInObject){if(!this._mergeNestedSuggestions||!tc(e,o))continue;return e}if(tc(e,o))return e;this[Wa("0x17")](e,t[Wa("0x5b")],t[Wa("0x3d")]);break}if(n==e[Wa("0xf5")]&&tc(e,o)){const n=e[Wa("0xf1")]();return n[Wa("0x5b")][Wa("0x16")](t[Wa("0x3d")])?this[Wa("0x136")](e,this._model[Wa("0xa3")](t[Wa("0x5b")],n[Wa("0x3d")])):this[Wa("0x136")](e,this._model[Wa("0xa3")](n[Wa("0x5b")],t[Wa("0x3d")])),e}}const s=(0,e.uid)(),i=r.id,x=n?Wa("0x9a")+n:Wa("0x84"),a=this._setSuggestionData({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x74")](x,s,i,t),a}[Wa("0xec")](t,n=Wa("0x11f"),o={}){const r=this[Wa("0x7d")][Wa("0x10e")].get(Wa("0x10c")).me,s=this[Wa("0xff")][Wa("0x8e")](Wa("0x84"),n,Wa("0x11d"));for(const e of this[Wa("0x111")]())if(e[Wa("0x57")].id==r.id&&Wa("0x84")==e[Wa("0x32")]&&e[Wa("0xf5")]==n&&tc(e,o)&&(s(e[Wa("0x110")](),t)||s(t,e.getRanges()))){for(const n of t)e[Wa("0x2e")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[Wa("0x2c")])continue;if(!this[Wa("0x10d")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[Wa("0x21")](e)){r=!1;break}if(r)return e}const i=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x74")](a,i,x,e,Zo[Wa("0xad")]());return c}markInlineFormat(t,n,o=null,r={}){if(o=o||$a(n),t[Wa("0x50")])return null;if("never"===this[Wa("0x71")]){const e=this[Wa("0xff")][Wa("0x8e")](Wa("0x76"),o,Wa("0x34"));return this[Wa("0x125")]((()=>e([t],n,r))),null}const s=this.editor[Wa("0x10e")].get(Wa("0x10c")).me,i=[];if(Wa("0x11")!==this[Wa("0x71")])for(const{suggestion:e,meta:n}of this[Wa("0x132")](t,Wa("0x84")))n[Wa("0x2c")]&&!n[Wa("0x44")]&&i.push(...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0x30")](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[Wa("0x97")];){const o=n[e][Wa("0x7")](t);n[Wa("0xe7")](e,1,...o),e+=o[Wa("0x97")]}}return n}(t,i);x.length&&this[Wa("0xbf")][Wa("0x20")]((()=>{for(const t of x){const e=this[Wa("0xff")][Wa("0x8e")](Wa("0x76"),o,Wa("0x34"));this[Wa("0x125")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[Wa("0x5b")],a=t[Wa("0x3d")];for(const{suggestion:e,meta:n}of this[Wa("0x132")](t,Wa("0x76"))){if(!n[Wa("0x2c")])continue;if(e[Wa("0xf5")]!=o)continue;if(!tc(e,r))continue;const s=e[Wa("0xf1")]();if(s[Wa("0x21")](t,!0))return null;x=x[Wa("0x19")](s[Wa("0x5b")])?x:s[Wa("0x5b")],a=a.isAfter(s[Wa("0x3d")])?a:s.end,i?s[Wa("0x5b")][Wa("0x19")](i[Wa("0xf1")]()[Wa("0x5b")])?(i.removeMarkers(),i=e):e[Wa("0x86")]():i=e}const c=this[Wa("0xbf")].createRange(x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=s.id;this[Wa("0x11c")]({id:t,type:Wa("0xc7")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[Wa("0x74")]("formatInline:"+o,t,i,c)}}return null}[Wa("0x54")](t,n,o=[],r=null,s={}){n[Wa("0x64")]||(n.formatGroupId=n.commandName),n[Wa("0x85")]=t.is(Wa("0x66")),r=r||$a(n);const i=o[Wa("0xc3")]((t=>Qa(t,this._model))),x=t.is("range")?t:Qa(t,this[Wa("0xbf")]);if("never"===this[Wa("0x71")]){const t=this[Wa("0xff")].getSuggestionCallback("formatBlock",r,"accept");return this[Wa("0x125")]((()=>t([x],n,s))),null}i[Wa("0x90")](x);let a=!0;for(const t of i)if(!this[Wa("0x87")](t)){a=!1;break}if(a&&"always"!==this[Wa("0x71")]){const t=this[Wa("0xff")].getSuggestionCallback(Wa("0x8"),r,Wa("0x34"));return this.forceDefaultExecution((()=>t([x],n,s))),null}let c=null,l=x[Wa("0x5b")],d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,Wa("0x8"))){if(!e[Wa("0x2c")])continue;if(e[Wa("0x4b")]||e.containsRangeInObject||e[Wa("0x44")])continue;if(t[Wa("0xf8")][Wa("0x64")]!=n[Wa("0x64")])continue;if(!tc(t,s))continue;const o=t[Wa("0xf1")]();if(t.subType==r){if(o[Wa("0x21")](x,!0))return null;l=l[Wa("0x19")](o.start)?l:o.start,d=d.isAfter(o[Wa("0x3d")])?d:o.end,c?o[Wa("0x5b")][Wa("0x19")](c.getFirstRange()[Wa("0x5b")])?(c[Wa("0x86")](),c=t):t[Wa("0x86")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[Wa("0x7d")].plugins[Wa("0x7f")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[Wa("0x136")](c,this._model[Wa("0xa3")](l,d)),c;{const t=this[Wa("0x11c")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[Wa("0x74")](Wa("0xc0")+r,g,m,this._model[Wa("0xa3")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,s={}){n[Wa("0x64")]||(n.formatGroupId=n[Wa("0x5a")]);const i=t[0];n[Wa("0x85")]=i.is(Wa("0x66")),r=r||$a(n);const x=o.map((t=>Qa(t,this[Wa("0xbf")]))),a=i.is("range")?t:t[Wa("0xc3")]((t=>Qa(t,this._model)));if(Wa("0x45")===this[Wa("0x71")]){const t=this[Wa("0xff")].getSuggestionCallback("formatBlock",r,Wa("0x34"));return this[Wa("0x125")]((()=>t(a,n,s))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0x87")](t)){c=!1;break}if(c&&"always"!==this[Wa("0x71")]){const t=this._suggestionFactory[Wa("0x8e")]("formatBlock",r,Wa("0x34"));return this[Wa("0x125")]((()=>t(a,n,s))),null}const l=this.editor[Wa("0x10e")][Wa("0x7f")](Wa("0x10c")).me;for(const t of this[Wa("0x111")]()){if(t[Wa("0x57")].id!=l.id)continue;if(Wa("0x8")!=t[Wa("0x32")]||t[Wa("0xf8")][Wa("0x64")]!=n[Wa("0x64")])continue;if(!tc(t,s))continue;const e=t[Wa("0xf5")]==r;for(let n=0;n<a[Wa("0x97")];n++){const o=a[n];for(const r of t[Wa("0xe8")]()){const s=r[Wa("0xea")]();if(o[Wa("0x16")](s)){e?(a[Wa("0xe7")](n,1),n--):t[Wa("0xa")](r[Wa("0xce")]);break}}}}if(0==a[Wa("0x97")])return null;const d=this._suggestionFactory.getSuggestionCallback("formatBlock",r,Wa("0x11d"));for(const t of this[Wa("0x111")]())if(t[Wa("0x57")].id==l.id&&"formatBlock"==t[Wa("0x32")]&&t[Wa("0xf8")].formatGroupId==n[Wa("0x64")]&&t[Wa("0xf5")]==r&&tc(t,s)&&(d(t[Wa("0x110")](),a)||d(a,t[Wa("0x110")]()))){for(const e of a)t[Wa("0x2e")](e);return t}const u=(0,e.uid)(),g=l.id,m=Wa("0xc0")+r,f=this[Wa("0x11c")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[Wa("0x74")](m,u,g,t,Zo.getMultiRangeId());return f}[Wa("0x6e")](t,n=null,o={}){if(t[Wa("0x50")])return null;const r=this[Wa("0x7d")][Wa("0x10e")][Wa("0x7f")](Wa("0x10c")).me,s=new i.LiveRange(t.start,t[Wa("0x3d")]);for(const{suggestion:t,meta:e}of this[Wa("0x132")](s,Wa("0x84")))if(e[Wa("0x2c")]&&!e[Wa("0x4b")])if(t[Wa("0x1e")]){const e=t.getRanges()[Wa("0x100")]((t=>Wa("0x47")!=t.root.rootName));if(e[Wa("0xf4")]((t=>s.containsRange(t,!0)))&&t[Wa("0xbc")](),e[Wa("0xfe")]((t=>t[Wa("0x21")](s,!0)))){const t=this[Wa("0xff")][Wa("0x8e")]("deletion",n,Wa("0x34"));return this.forceDefaultExecution((()=>t([s],null,o))),null}}else{const e=s[Wa("0x30")](t[Wa("0xf1")]());null!==e&&t[Wa("0x7a")]([e],null,o)}if(s[Wa("0x6")](),s[Wa("0x50")]||Wa("0x47")==s.root.rootName)return null;let x=null,a=s.start,c=s[Wa("0x3d")];const l=this[Wa("0x132")](s,Wa("0x93"));for(const{suggestion:t,meta:e}of l){const n=this[Wa("0xbf")].createRange(a,c);if(e[Wa("0x2c")]&&(this._mergeNestedSuggestions||!e[Wa("0x118")]&&!e[Wa("0x44")]))if(t.isMultiRange){if(!tc(t,o))continue;let e=!0;for(const o of t[Wa("0x110")]()){if(o[Wa("0x21")](n,!0))return t;n[Wa("0x21")](o)||(e=!1)}e&&t[Wa("0xbc")]()}else{const e=t[Wa("0xf1")]();if(e.containsRange(n,!0))return t;if(!tc(t,o)){n.containsRange(e)?t[Wa("0x86")]():e[Wa("0x103")](a)?a=e.end:e[Wa("0x103")](c)&&(c=e[Wa("0x5b")]);continue}a=a.isBefore(e[Wa("0x5b")])?a:e[Wa("0x5b")],c=c[Wa("0xae")](e[Wa("0x3d")])?c:e.end,o=Object[Wa("0xc8")]({},t[Wa("0x127")]),x?e[Wa("0x5b")].isBefore(x[Wa("0xf1")]()[Wa("0x5b")])?(x[Wa("0x86")](),x=t):t.removeMarkers():x=t}}if(x)return this._setSuggestionRange(x,this[Wa("0xbf")][Wa("0xa3")](a,c)),x;{const t=(0,e.uid)(),s=this[Wa("0xbf")][Wa("0xa3")](a,c),i=r.id,x=n?"deletion:"+n:Wa("0x93"),l=this[Wa("0x11c")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x74")](x,t,i,s),l}}[Wa("0x6a")](t,n=Wa("0x11f"),o={}){const r=this.editor[Wa("0x10e")][Wa("0x7f")]("Users").me,s=t[Wa("0xc3")]((t=>new i.LiveRange(t[Wa("0x5b")],t[Wa("0x3d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Wa("0x132")](s,Wa("0x84")))e[Wa("0x2c")]&&!e[Wa("0x4b")]&&x[Wa("0xda")](t);for(const e of x)if(e[Wa("0x1e")]){const r=e[Wa("0x110")]();if((!e.attributes||!e[Wa("0x127")][Wa("0x144")])&&r.every((t=>s[Wa("0xfe")]((e=>e.containsRange(t,!0)))))&&e.discard(),s.every((t=>r[Wa("0xfe")]((e=>e[Wa("0x21")](t,!0)))))){const e=this[Wa("0xff")].getSuggestionCallback("deletion",n,Wa("0x34"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Wa("0xf1")]();if(s[Wa("0xfe")]((e=>e[Wa("0x21")](t,!0)))&&e[Wa("0xbc")](),s[Wa("0xf4")]((e=>t[Wa("0x21")](e,!0)))){const t=this[Wa("0xff")][Wa("0x8e")](Wa("0x93"),n,"accept");return this.forceDefaultExecution((()=>t(s,null,o))),null}}const a=this._suggestionFactory[Wa("0x8e")](Wa("0x93"),n,Wa("0x11d"));let c=null;for(const t of this[Wa("0x111")]())if(t[Wa("0x57")].id==r.id&&t[Wa("0x72")]&&Wa("0x93")==t[Wa("0x32")]&&t[Wa("0xf5")]==n&&tc(t,o)&&(a(t[Wa("0x110")](),s)||a(s,t[Wa("0x110")]())))if(c){if(t[Wa("0xf0")]&&t[Wa("0xf0")][Wa("0x97")])continue;for(const e of t[Wa("0x110")]())c[Wa("0xd5")](e)||c[Wa("0x2e")](e);t[Wa("0x86")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[Wa("0x132")](s,Wa("0x93")))e[Wa("0x2c")]&&(this[Wa("0x10d")]||!e[Wa("0x118")]&&!e[Wa("0x44")])&&tc(t,o)&&x[Wa("0xda")](t);for(const t of x){const e=t[Wa("0x110")]();if((!o||!o[Wa("0x144")])&&s[Wa("0xf4")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[Wa("0x127")]||!t.attributes[Wa("0x144")])&&e[Wa("0xf4")]((t=>s[Wa("0xfe")]((e=>e[Wa("0x21")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=r.id,u=Wa("0x119")+n,g=this[Wa("0x11c")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t[Wa("0x6")](),t[Wa("0x50")]||Wa("0x47")==t[Wa("0x4")][Wa("0x129")]||this[Wa("0x74")](u,l,d,t,Zo[Wa("0xad")]());return g}[Wa("0x136")](t,e){const n=t[Wa("0x1d")]();this[Wa("0xbf")][Wa("0x20")]((t=>{t[Wa("0x29")](n,{range:e})}))}[Wa("0x12e")](t){const e=t.id,n=this[Wa("0x7d")][Wa("0x13a")][Wa("0x7f")](Wa("0x102"));this._commentsRepository[Wa("0x146")](e)||this[Wa("0x143")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0x143")][Wa("0xbe")](e);o[Wa("0xa5")](Wa("0xc4")),o[Wa("0xc4")]=!1,t[Wa("0xf0")]=o}[Wa("0x36")](t,n,o,r){if(t.type!=n||t[Wa("0xf5")]!=o||t.creator.id!=r)throw this[Wa("0x7d")].enableReadOnlyMode(Wa("0x11e")),new e.CKEditorError(Wa("0x11e"),this)}[Wa("0x11a")](t,n){const o=t.getFirstRange();if(n[Wa("0x16")](o))t[Wa("0x86")]();else if(o[Wa("0x21")](n)){const r=this[Wa("0xbf")][Wa("0x5d")](n[Wa("0x5b")].nodeBefore,"end");this[Wa("0x136")](t,this[Wa("0xbf")][Wa("0xa3")](o[Wa("0x5b")],r));const s=(0,e.uid)(),i=t[Wa("0x12d")].id,x=t[Wa("0x32")]+":"+t.subType;this._setSuggestionData({id:s,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Wa("0x127")]});const a=this[Wa("0xbf")][Wa("0x5d")](n.end[Wa("0xd6")],Wa("0x51")),c=this[Wa("0xbf")][Wa("0xa3")](a,o[Wa("0x3d")]);this._addSuggestionMarker(x,s,i,c)}else if(o[Wa("0x103")](n[Wa("0x5b")])){const e=this[Wa("0xbf")][Wa("0x5d")](n.start.nodeBefore,"end");this[Wa("0x136")](t,this[Wa("0xbf")][Wa("0xa3")](o[Wa("0x5b")],e))}else{const e=this[Wa("0xbf")][Wa("0x5d")](n[Wa("0x3d")].parent,"after");this[Wa("0x136")](t,this[Wa("0xbf")][Wa("0xa3")](e,o[Wa("0x3d")]))}}[Wa("0x87")](t){for(const{suggestion:e,meta:n}of this[Wa("0x132")](t,Wa("0x84"))){if(!n.isOwn)continue;const o=e[Wa("0x110")]();for(const e of o)if(!t.getDifference(e)[Wa("0x97")])return!0}return!1}[Wa("0x52")](t){const n=this.editor[Wa("0x10e")][Wa("0x7f")](Wa("0x10c")).getUser(t);if(!n)throw new e.CKEditorError(Wa("0x4e"),this);return n}[Wa("0xe4")](t){const e=this[Wa("0x7d")][Wa("0x10e")][Wa("0x7f")](Wa("0x10c")),n=(0,s.hashObject)(Wa("0x67")+t);return e.getUser(n)||e[Wa("0x14")]({id:n,name:t})}[Wa("0x31")](t,e,n,o,r){const s=this[Wa("0x52")](o),i=this[Wa("0xff")][Wa("0x3e")](t,e,n,s,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Wa("0x49")](i,Wa("0x34"),(()=>{this._updateSuggestionData(n,{state:Wa("0xef")})}),{priority:Wa("0xc9")}),this.listenTo(i,Wa("0xbc"),(()=>{this[Wa("0x128")](n,{state:Wa("0xe9")})}),{priority:Wa("0xc9")}),this._suggestions[Wa("0x13b")](n,i),this[Wa("0x139")][Wa("0x13b")](i,Wa("0x2")),i}_splitMarkerName(t){const e=t[Wa("0xbb")](":");return{group:e[0],type:e[1],subType:e[Wa("0x97")]>=5?e[2]:null,id:e[Wa("0x97")]<5?e[2]:e[3],authorId:e[Wa("0x97")]<5?e[3]:e[4],markerCount:6==e[Wa("0x97")]?e[5]:null}}[Wa("0x17")](t,n,o){const r=t[Wa("0xf1")](),s=r.start,i=r.end;this[Wa("0x136")](t,this[Wa("0xbf")][Wa("0xa3")](s,n));const x=(0,e.uid)(),a=t[Wa("0x12d")].id,c=t[Wa("0x32")]+(t[Wa("0xf5")]?":"+t[Wa("0xf5")]:"");this[Wa("0x11c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x127")],data:t[Wa("0xf8")]}),Wa("0x8")==t.type&&(o=this[Wa("0xbf")].createPositionBefore(o[Wa("0xd6")])),this._addSuggestionMarker(c,x,a,this[Wa("0xbf")].createRange(o,i))}[Wa("0x132")](t,e=null){const n=[],o=this[Wa("0x7d")][Wa("0x10e")][Wa("0x7f")](Wa("0x10c")).me;Array[Wa("0xd4")](t)||(t=[t]);for(const r of this[Wa("0x111")]()){if(!r[Wa("0x72")])continue;if(e&&r[Wa("0x32")]!=e)continue;let s=!1;for(const e of r[Wa("0x110")]()){for(const i of t){const t=i[Wa("0x5b")][Wa("0x16")](e.end)||i[Wa("0x3d")].isEqual(e[Wa("0x5b")]);if(t||i[Wa("0x30")](e)){const x=i[Wa("0x21")](e)&&Ka(this[Wa("0xbf")][Wa("0xcc")],e.start,i),a=e[Wa("0x21")](i)&&Ka(this[Wa("0xbf")][Wa("0xcc")],i[Wa("0x5b")],e);n[Wa("0x90")]({suggestion:r,meta:{isOwn:o==r[Wa("0x57")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),s=!0;break}}if(s)break}}return n}[Wa("0x74")](t,e,n,o,r){this[Wa("0xbf")][Wa("0x20")]((s=>{let i="suggestion:"+t+":"+e+":"+n;r&&(i=i+":"+r),s.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[Wa("0x114")],n=t[Wa("0x15")];t[Wa("0x114")]=null,null!=e&&(e[Wa("0x15")]=null),t[Wa("0x15")]=null,null!=n&&(n[Wa("0x114")]=null),Wa("0x79")==this[Wa("0x139")][Wa("0x7f")](t)&&(this[Wa("0x139")][Wa("0x13b")](t,Wa("0xba")),this[Wa("0xdf")](Wa("0xb0"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[Wa("0x7e")](t);if(this._adapter&&this[Wa("0x3b")][Wa("0x53")]){const r=this[Wa("0x7d")][Wa("0x10e")][Wa("0x7f")](Wa("0x1a")),s=o[Wa("0xac")],i=o[Wa("0xf5")]?o[Wa("0x32")]+":"+o[Wa("0xf5")]:o[Wa("0x32")],x=this[Wa("0x7d")][Wa("0xcd")],a=r[Wa("0xda")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Wa("0x127")]};this._adapter[Wa("0x53")](c)[Wa("0x60")]((t=>{o[Wa("0x24")]=!0,r.remove(a),t&&t.createdAt&&(this[Wa("0xd0")][Wa("0x7f")](n)[Wa("0xf2")]=t.createdAt)}))[Wa("0x0")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Wa("0x7d")][Wa("0x9b")][Wa("0xab")]({isUndoable:!1},(()=>{o.discard()})),o[Wa("0x13e")](),this[Wa("0xd0")][Wa("0xbd")](o.id),this._suggestionState[Wa("0xbd")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Wa("0x10e")][Wa("0x7f")](Wa("0x1a")),o=this[Wa("0x89")](t);if(this[Wa("0x3b")]&&this._adapter.updateSuggestion)if(o[Wa("0x24")]){const o=n.add(Yo(this[Wa("0x7d")][Wa("0xcd")],Wa("0x121")));this._adapter.updateSuggestion(t,e).then((()=>{n[Wa("0x39")](o)}))}else o.on(Wa("0xc5"),(()=>{this[Wa("0x128")](t,e)}))}[Wa("0xfc")](t){if(!this[Wa("0x3b")]||!this._adapter.getSuggestion)throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Wa("0x3b")][Wa("0x89")](t)}[Wa("0x106")](t){const{id:e,type:n,subType:o,authorId:r}=this[Wa("0x38")](t),s=this[Wa("0xd0")][Wa("0x7f")](e)||this._createSuggestion(n,o,e,r,{});switch(this[Wa("0x36")](s,n,o,r),this._suggestionState.get(s)){case Wa("0x2"):this[Wa("0xfc")](e)[Wa("0x60")]((t=>{let n=Promise[Wa("0xd2")]();t[Wa("0xac")]&&(n=this._commentsRepository.fetchCommentThread({channelId:this.editor.config[Wa("0x7f")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[Wa("0x7e")](t)[Wa("0x24")]=!0}))})),this[Wa("0x139")][Wa("0x13b")](s,Wa("0x23"));break;case Wa("0xba"):this[Wa("0x128")](e,{state:Wa("0x9d")});case Wa("0x9c"):this[Wa("0x139")][Wa("0x13b")](s,Wa("0x79")),this[Wa("0xdf")](Wa("0x113"),s);break;case"ready":this[Wa("0xdf")](Wa("0x69"),s)}return s[Wa("0x11b")](t),s}[Wa("0x145")](t){const e=Array.from(t)[Wa("0x100")]((t=>!t[Wa("0x1e")])),n=this[Wa("0x111")]({skipNotAttached:!0})[Wa("0x100")]((t=>!t[Wa("0x1e")])),o=n.filter((e=>!t.has(e))),r=new Map(n[Wa("0xc3")]((t=>[t,this[Wa("0xff")][Wa("0x8e")](t[Wa("0x32")],t[Wa("0xf5")],Wa("0xd8"))]))),s=new Map(n[Wa("0xc3")]((t=>[t,t[Wa("0xf1")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x97")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0x97")];t++){const n=e[t];!x[Wa("0x12")](n)&&n[Wa("0x114")]&&(n[Wa("0x114")][Wa("0x15")]===n&&(n[Wa("0x114")][Wa("0x15")]=null),n.previous=null),!i[Wa("0x12")](n)&&n[Wa("0x15")]&&(n[Wa("0x15")].previous===n&&(n[Wa("0x15")][Wa("0x114")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Wa("0x97")];o++){const n=c(t,e[o]);n&&(n[0][Wa("0x15")]=n[1],n[1][Wa("0x114")]=n[0],i[Wa("0xda")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Wa("0x57")].id!==e[Wa("0x57")].id)return null;const n=r.get(t)(t,e,s[Wa("0x7f")](t),s[Wa("0x7f")](e));return n&&r[Wa("0x7f")](e)(t,e,s[Wa("0x7f")](t),s.get(e))?n[1][Wa("0xf0")]&&n[1].commentThread.length?null:n:null}}[Wa("0xc")](t){const e=Array[Wa("0x3")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0x100")]((e=>!t[Wa("0x12")](e))),r=new Map(e[Wa("0xc3")]((t=>[t,this[Wa("0xff")][Wa("0x8e")](t.type,t.subType,Wa("0x11d"))]))),s=new Map(n.map((t=>[t,t[Wa("0x110")]()])));for(let t=0;t<e[Wa("0x97")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x97")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Wa("0x97")];i++){const o=n[i];if(o.type!==e[Wa("0x32")]||o[Wa("0x57")].id!==e[Wa("0x57")].id||o[Wa("0xf5")]!==e[Wa("0xf5")])continue;if(!Ya(e,o))continue;const x=r[Wa("0x7f")](e),a=s[Wa("0x7f")](e),c=s[Wa("0x7f")](o),l=e[Wa("0xf0")]&&e[Wa("0xf0")][Wa("0x97")],d=o[Wa("0xf0")]&&o[Wa("0xf0")][Wa("0x97")];if(!l&&x(c,a))return t[Wa("0x109")](o,e),s.delete(e),!0;if(!d&&x(a,c))return t[Wa("0x109")](e,o),s.delete(o),!0}return!1}}[Wa("0x109")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t[Wa("0x2e")](n);else{const n=e[Wa("0xf1")]().end;this[Wa("0x136")](t,this[Wa("0xbf")].createRange(t[Wa("0xf1")]().start,n))}e.removeMarkers()}}class Va{constructor(t){this[Wa("0x13d")]=t,this[Wa("0xbf")]=t.model,this[Wa("0x25")]=new Map,this[Wa("0x96")]=new Map,this[Wa("0x81")]()}[Wa("0x3e")](t,e,n,o,r,s){return new Zo(this[Wa("0xbf")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this.getSuggestionCallback(t,e,Wa("0x34"))(...n),onDiscard:(...n)=>this[Wa("0x8e")](t,e,Wa("0xbc"))(...n)})}[Wa("0x1b")](t,e,n,o){const r=t+":"+e+":"+n;this[Wa("0x25")][Wa("0x13b")](r,o)}[Wa("0x8e")](t,e,n){const o=t+":"+e+":"+n;return this[Wa("0x25")][Wa("0x7f")](o)||this[Wa("0x96")][Wa("0x7f")](t+":"+n)}[Wa("0x81")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[Wa("0x19")](e.start)?1:-1)),this[Wa("0xbf")].change((e=>{for(const n of t){let t;t=n[Wa("0x3d")][Wa("0xa8")]&&n[Wa("0x3d")][Wa("0xd6")]==n[Wa("0x5b")][Wa("0x105")]?e[Wa("0x68")](n.start[Wa("0x105")],"on"):e[Wa("0x68")](n),this[Wa("0xbf")][Wa("0x9f")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[Wa("0xc3")]((t=>(qa(t)&&(t=this[Wa("0xbf")][Wa("0xa3")](t.end)),t)))[Wa("0x100")]((t=>Wa("0x47")!==t[Wa("0x4")].rootName));if(s[Wa("0x97")]<1)return;const x=Array[Wa("0x3")](this._model.document[Wa("0x104")][Wa("0x110")]())[Wa("0xc3")]((t=>i.LiveRange[Wa("0x123")](t)));n[Wa("0x83")](s);for(const t of this[Wa("0x13d")][Wa("0x41")][Wa("0x41")]())t[Wa("0x2a")]();r[Wa("0x90")]({forceDefaultExecution:!0}),this[Wa("0x13d")].execute(o,...r);const a=x[Wa("0x100")]((t=>Wa("0x47")!=t.root[Wa("0x129")]));a[Wa("0x97")]>0&&n[Wa("0x83")](a);for(const t of x)t[Wa("0x6")]()}))},o=(t,e)=>1==t[Wa("0x97")]&&1==e[Wa("0x97")]&&t[0][Wa("0x3d")].isEqual(e[0][Wa("0x5b")]),r=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0xbf")])?[t,e]:Za(e,t,o,n,this[Wa("0xbf")])?[e,t]:null;this[Wa("0x96")][Wa("0x13b")](Wa("0x63"),t),this[Wa("0x96")][Wa("0x13b")]("insertion:discard",e),this[Wa("0x96")].set(Wa("0x142"),o),this._defaultCallbacks.set(Wa("0xd3"),r),this[Wa("0x96")].set(Wa("0x2f"),e),this[Wa("0x96")][Wa("0x13b")]("deletion:discard",t),this[Wa("0x96")][Wa("0x13b")](Wa("0x135"),o),this[Wa("0x96")][Wa("0x13b")](Wa("0x75"),r),this[Wa("0x96")][Wa("0x13b")](Wa("0xb"),n),this._defaultCallbacks.set(Wa("0x65"),t),this[Wa("0x96")][Wa("0x13b")](Wa("0xd9"),o),this._defaultCallbacks.set(Wa("0x33"),t),this[Wa("0x96")].set(Wa("0x101"),n),this[Wa("0x96")][Wa("0x13b")](Wa("0x13c"),t),this[Wa("0x96")].set(Wa("0x122"),o),this[Wa("0x96")][Wa("0x13b")](Wa("0x95"),t)}}function Ka(t,e,n){for(const o of e[Wa("0xd6")][Wa("0x138")]({includeSelf:!0,parentFirst:!0})){if(o[Wa("0x4")]==o)return!1;if(!n.containsItem(o))return!1;if(t[Wa("0x70")](o)||t[Wa("0x10b")](o))return!0}return!1}function qa(t){return t[Wa("0x3d")][Wa("0xd6")]==t.start[Wa("0x105")]&&t[Wa("0x3d")][Wa("0xeb")]}function Xa(t,e,n,o){const r=t=>!t.item.is(Wa("0x99"))&&!o[Wa("0x70")](t.item),s=t[Wa("0x5b")][Wa("0xb4")](r),i=t.end[Wa("0xb4")](r,{direction:Wa("0x4d")});return!(t.start[Wa("0x16")](s)&&t[Wa("0x3d")].isEqual(i)||(s.isBefore(i)?n[Wa("0x29")](e,{range:n.createRange(s,i)}):n[Wa("0xa")](e),0))}function $a(t){return(0,s.hashObject)(t)}function Ja(t){const e=t[Wa("0x5b")].nodeAfter;return e&&e.is(Wa("0x78"))}function Qa(t,e){const n=e.schema[Wa("0x70")](t)||e[Wa("0xcc")][Wa("0x130")](t);return e[Wa("0xa3")](e[Wa("0x5d")](t,Wa("0x5e")),n?e[Wa("0x1f")](t):e[Wa("0x5d")](t,Wa("0x3d")))}function Za(t,e,n,o,r){if(!Ya(t,e))return!1;if(n[Wa("0x3d")][Wa("0x16")](o[Wa("0x5b")]))return!0;if(t[Wa("0x32")]!=e[Wa("0x32")])return!1;if(!n.end[Wa("0xb2")](o[Wa("0x5b")]))return!1;const s=r[Wa("0xa3")](n[Wa("0x3d")],o[Wa("0x5b")]).getWalker();for(const t of s)if([Wa("0x6b"),Wa("0xf6")].includes(t.type)&&r[Wa("0xcc")][Wa("0x10b")](t[Wa("0x1c")]))return!1;return!0}function Ya(t,e){return!(!t[Wa("0x2b")]||!e[Wa("0x2b")])&&Go(t[Wa("0x127")],e.attributes)}function tc(t,e){const n=ec(t[Wa("0x127")]),o=ec(e);if(!t[Wa("0x2b")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[Wa("0xc8")]({},t);return delete e[Wa("0x144")],delete e[Wa("0xc6")],e}const nc=["_acceptCommand","bind","PENDING_ACTION_SUGGESTION","listenTo","_removePendingAction","change:isDirty","isEnabled","execute","isDirty","model","_editor","view","commands","_discardCommand","acceptSuggestion","getRanges","PendingActions","plugins","unbind","stopListening","commentThreadController","locale","canAccept","canDiscard","_pendingAction","get","canEditAt","discardSuggestion","_setPendingAction"];var oc,rc;oc=nc,rc=130,function(t){for(;--t;)oc.push(oc.shift())}(++rc);const sc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[sc("0x18")]=e,this[sc("0x1a")]=n,this[sc("0x6")]=o,this[sc("0x19")]=t,this._acceptCommand=t[sc("0x1b")][sc("0xb")](sc("0x0")),this._discardCommand=t[sc("0x1b")][sc("0xb")](sc("0xd")),this[sc("0x1a")][sc("0x10")](sc("0x15")).to(this[sc("0xf")],this[sc("0x1c")],((t,e)=>t||e)),this[sc("0x1a")][sc("0x10")](sc("0x8")).to(this._acceptCommand,sc("0x15"),(t=>t&&this[sc("0x19")][sc("0x18")].canEditAt(e[sc("0x1")]()))),this.view[sc("0x10")](sc("0x9")).to(this[sc("0x1c")],sc("0x15"),(t=>t&&this[sc("0x19")][sc("0x18")][sc("0xc")](e.getRanges()))),this[sc("0xa")]=null,n[sc("0x17")]&&this[sc("0xe")](),this[sc("0x12")](n,sc("0x0"),(()=>this[sc("0x0")]())),this[sc("0x12")](n,sc("0xd"),(()=>this.discardSuggestion())),this.listenTo(n,sc("0x14"),(()=>{n[sc("0x17")]?this[sc("0xe")]():this[sc("0x13")]()}))}[sc("0x0")](){this[sc("0xf")].execute(this[sc("0x18")].id)}[sc("0xd")](){this[sc("0x1c")][sc("0x16")](this[sc("0x18")].id)}destroy(){this[sc("0x1a")].unbind(sc("0x15")),this[sc("0x1a")][sc("0x4")]("canAccept"),this.view[sc("0x4")](sc("0x9")),this[sc("0x5")](),this[sc("0x6")].destroy(),this._pendingAction&&this._removePendingAction()}[sc("0xe")](){const t=Yo(this._editor[sc("0x7")],sc("0x11"));this._pendingAction=this[sc("0x19")][sc("0x3")][sc("0xb")](sc("0x2")).add(t)}[sc("0x13")](){null!==this._pendingAction&&this[sc("0x19")][sc("0x3")][sc("0xb")](sc("0x2")).remove(this._pendingAction),this[sc("0xa")]=null}}const xc=["commentsListView","value","disabledSubmit","descriptionParts","editor","authoredAt","destroy","commentInputView","isReadOnly","_model","addComment","disableComments","_localUser","CommentView","delegate","_config","bind","commentThreadInputView","assign","commentThread","canDiscard","set","focus","isActive","editorConfig","isDirty","length","removeComment","submit","showInput","_createCommentViews","cancel","isEnabled","canAccept"];var ac,cc;ac=xc,cc=238,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends r.View{constructor(t,e,n,o){super(t),this[lc("0x0")]=null,this[lc("0x11")]=null,this[lc("0x15")]("isActive",!1),this[lc("0x15")](lc("0x5"),e[lc("0x5")]),this.bind(lc("0x5")).to(e),this.set(lc("0x3"),[]),this[lc("0x15")](lc("0x19"),!1),this[lc("0x15")](lc("0x20"),!1),this[lc("0x15")](lc("0x21"),!1),this[lc("0x15")](lc("0x14"),!1),this[lc("0x9")]=e,this[lc("0xc")]=n,this._config=o,o[lc("0xb")]?this[lc("0x15")](lc("0x1a"),1):this[lc("0x1e")]()}[lc("0x16")](){this.element[lc("0x16")]()}destroy(){this[lc("0x0")]&&this[lc("0x0")][lc("0x6")](),this[lc("0x11")]&&this[lc("0x11")][lc("0x6")](),super[lc("0x6")]()}[lc("0x1e")](){const{CommentsListView:t}=this[lc("0xf")];this[lc("0x0")]=new t(this.locale,this[lc("0x9")].commentThread,Object[lc("0x12")]({CommentView:this._config[lc("0xd")]},this[lc("0xf")])),this[lc("0x0")][lc("0xe")](lc("0x1b")).to(this),this.commentsListView[lc("0xe")]("updateComment").to(this),this[lc("0x0")][lc("0x10")](lc("0x17")).to(this),this[lc("0x15")](lc("0x1a"),this[lc("0x0")][lc("0x1a")]+1),this[lc("0x10")](lc("0x1a")).to(this[lc("0x0")],lc("0x1a"),(t=>t+1)),this[lc("0x11")]=this._createCommentThreadInputView(),this.on(lc("0x1b"),(()=>this[lc("0x16")]())),this[lc("0x10")](lc("0x19")).to(this.commentsListView,"hasDirtyComment",this[lc("0x11")][lc("0x7")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[lc("0xf")],e=new t(this.locale,this[lc("0xc")],this[lc("0xf")][lc("0x18")]),n=e[lc("0x7")];return e[lc("0x10")](lc("0x1d")).to(this,lc("0x17"),this[lc("0x9")].commentThread,lc("0x8"),n,lc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x1c"),((t,e)=>{this.fire(lc("0xa"),e),n[lc("0x4")].setData("")})),n.on(lc("0x1f"),(()=>this[lc("0x16")]())),n[lc("0x10")](lc("0x2")).to(this[lc("0x9")][lc("0x13")],lc("0x8")),e}}const uc=["innerHTML","map","delegate","getTemplate","EXTERNAL_IMPORT_WORD_AVATAR","source","bindTemplate","innerText","getExternalSuggestionNote","ck-suggestion--disabled-comments","_config",'"></span>',"cancel","</span>","description","editorDestroyed","ck-suggestion__user","extendTemplate","ck-annotation__main","</p>","editorReady","fire","canDiscard","creator","div","Accept suggestion","ck-annotation__actions","_model","render","isEnabled","color","isExternal","isActive","ck-suggestion-","span","acceptButton","type","title","ck-annotation__info",'<span class="ck-suggestion-type">',"author","set","ck-annotation__info-name","getUserViewNotificationText","split","canAccept","descriptionParts","userView","createElement","acceptSuggestion","EXTERNAL_SUGGESTION",'" title="',"EXTERNAL_AVATAR","value","attributes","discardSuggestion","push","ck-annotation__user","check","element","_descriptionElement","time","ck-suggestion-wrapper--active","_createButton","content","commentsListView","@external","locale","bind","ck-suggestion--accept","ck-annotation__content-wrapper","ck-comment__info-time","name","ck-suggestion__info",".ck-annotation__content-wrapper","discardButton","ck-annotation","disableComments","commentThreadInputView"];var gc,mc;gc=uc,mc=420,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,r){super(e,n,o,r),this.set(fc("0xb"),""),this.bind(fc("0xb")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][fc("0xb")]:"")),this.bind(fc("0x44")).to(this,fc("0x15"),this,fc("0x7"),((t,e)=>{let n="";for(const e of t)n+="<p>"+bc(e[fc("0x27")],e[fc("0x5")])+fc("0x49");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[fc("0x23")]=null,this[fc("0xa")]=this[fc("0x26")](Yo(e,fc("0x0")),t.icons[fc("0x21")],fc("0x2c"),fc("0x18"),"sw"),this.acceptButton.bind(fc("0x4")).to(this,fc("0x14")),this[fc("0x32")]=this[fc("0x26")](Yo(e,"Discard suggestion"),t.icons[fc("0x42")],"ck-suggestion--discard",fc("0x1e"),"sw"),this.discardButton[fc("0x2b")](fc("0x4")).to(this,fc("0x4c")),this[fc("0x16")]=new s.UserView(e,this._model.author,this[fc("0x12")]()),this[fc("0x16")][fc("0x47")]({attributes:{class:[fc("0x46"),fc("0x20")]}}),this.setTemplate(this.getTemplate())}[fc("0x39")](){const t=this[fc("0x3c")],e=[{tag:"div",attributes:{class:[fc("0x30"),fc("0xd")]},children:[{tag:fc("0x9"),children:[{text:this[fc("0x16")].name}],attributes:{class:["ck-suggestion__info-name",fc("0x11")]}},{tag:fc("0x24"),attributes:{datetime:t.to("authoredAt"),class:[fc("0x2e"),"ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[fc("0x40")].formatDateTime(t)))}]}]},{tag:fc("0x4e"),attributes:{class:["ck-suggestion__actions",fc("0x1")]},children:[this[fc("0xa")],this.discardButton]},{tag:fc("0x4e"),attributes:{class:[fc("0x2d")]}}];this._model.isExternal&&e[fc("0x1f")]({tag:fc("0x4e"),attributes:{class:["ck-comment__external"]},children:[{text:this[fc("0x3e")]()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(fc("0x7"),fc("0x25")),t.to("type",(t=>fc("0x8")+t)),this[fc("0x40")][fc("0x34")]&&fc("0x3f")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x2")].commentThread.id,"data-author-id":this[fc("0x2")][fc("0xf")].id,tabindex:-1},children:[{tag:fc("0x4e"),attributes:{class:["ck-suggestion",fc("0x33")]},children:[this[fc("0x16")],{tag:fc("0x4e"),attributes:{class:["ck-suggestion__main",fc("0x48")]},children:e}]}]};return this[fc("0x28")]&&this[fc("0x35")]&&(n.children[fc("0x1f")](this.commentsListView,this[fc("0x35")]),this[fc("0x28")][fc("0x38")](fc("0x4a")).to(this),this[fc("0x28")][fc("0x38")](fc("0x45")).to(this),this.commentThreadInputView[fc("0x38")](fc("0x4a")).to(this),this.commentThreadInputView[fc("0x38")]("editorDestroyed").to(this)),n}[fc("0x3")](){super[fc("0x3")](),this[fc("0x23")]=this[fc("0x22")].querySelector(fc("0x31")),this[fc("0x23")][fc("0x36")]=this.description,this.on("change:description",((t,e,n)=>{this[fc("0x23")][fc("0x36")]=n}))}[fc("0x26")](t,e,n,o,s){const i=new r.ButtonView(this[fc("0x2a")]);return i[fc("0x10")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[fc("0x47")]({attributes:{class:n}}),i.on("execute",(()=>{this[fc("0x4b")](o,this[fc("0x2")].id)})),i}[fc("0x3e")](){return"importWord"===this[fc("0x2")].attributes[fc("0x29")][fc("0x3b")]?Yo(this[fc("0x2a")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x2a")],fc("0x19"))}[fc("0x12")](){return this[fc("0x2")][fc("0x6")]?"importWord"===this[fc("0x2")][fc("0x1d")]["@external"][fc("0x3b")]?Yo(this.locale,fc("0x3a"),this[fc("0x2")][fc("0x4d")][fc("0x2f")]):Yo(this[fc("0x2a")],fc("0x1b"),this[fc("0x2")][fc("0x4d")][fc("0x2f")]):null}}function bc(t,e){let n="";return n+=t[fc("0x13")]("*")[fc("0x37")](((t,e)=>e%2!=0?fc("0xe")+pc(t)+fc("0x43"):pc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x1c")]+fc("0x1a")+e[fc("0xc")]+fc("0x41")),n}function pc(t){const e=document[fc("0x17")]("span");return e[fc("0x3d")]=t,e[fc("0x36")]}const Ec=["commentThread","editing","plugins","registerAnnotation","TrackChangesUI","toMany","innerView","suggestionChanged","trackChanges.SuggestionThreadView","arrowView","createAnnotation","commands","createCommentThreadController","suggestionLoaded","config","push","define","isDirty","getMarkerNames","filter","view","listenTo","comments.maxCommentsWhenCollapsed","_suggestionToController","activeMarkers","hasSuggestion","_createUIButton","suggestion-","getAllAdjacentSuggestions","trackChanges","size","_bindAnnotationToEditors","pluginName","actionView","getMarkers","destroy","length","clear","getDescriptions","editor","Accept all suggestions","addComment","CommentView","type","source","head","_refreshActiveMarkers","has","_disableComments","previous","comments.maxCommentCharsWhenCollapsed","CommentsUI","focus","TrackChangesEditing","trackChanges.disableComments","change:previous","mainView","Discard all selected suggestions","activeAnnotations","_viewToController","button","acceptAllSuggestions","switchbutton","suggestionUnloaded","_updateController","model","getFirstRange","stopListening","locale","Accept all selected suggestions","_initializeController","componentFactory","execute","separator","delete","get","_handleSuggestionControllerDelayed","discardButton","buttonView","set","isOn","map","_descriptionFactory","_annotationViews","isEnabled","_handleControllerBuffer","commandName","lowest","Annotations","unbind","change:activeAnnotations","CommentsRepository","value","from","_destroyController","isInContent","EditorAnnotations","Discard all suggestions","getRanges","add","descriptionParts","getSuggestion","some","bind"];var _c,Tc;_c=Ec,Tc=423,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get requires(){return[za,s.Users,"CommentsRepository",Cc("0x51"),Cc("0x59")]}static get[Cc("0x19")](){return Cc("0x65")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x34")]=new Map,this[Cc("0x4c")]=new Map,this._handleControllerBuffer=new Map;const e=this[Cc("0x20")][Cc("0x7")];e[Cc("0x9")](Cc("0x1"),hc),e[Cc("0x9")](Cc("0x2f"),!1),this._disableComments=e[Cc("0x44")](Cc("0x2f"))}[Cc("0x45")](t,e){0===this[Cc("0x4e")][Cc("0x17")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x4e")]){const n=this[Cc("0x10")][Cc("0x28")](t);n||e?n&&e&&this[Cc("0x57")](t):this[Cc("0x3f")](t)}this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x59")).refreshSelectedViews(),this._refreshActiveMarkers(),this[Cc("0x4e")][Cc("0x1e")]()}),10),this[Cc("0x4e")][Cc("0x48")](t,e)}init(){const t=this.editor,e=t[Cc("0x63")].get("TrackChangesEditing"),n=t[Cc("0x63")].get(Cc("0x51")),o=t[Cc("0x63")][Cc("0x44")](Cc("0x59")),r=t[Cc("0x63")].get(Cc("0x54"));t.ui[Cc("0x40")].add(Cc("0x16"),(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Cc("0x56")](this[Cc("0x10")])){const o=e[Cc("0x15")](),r=[];for(const t of o){if(!t[Cc("0x58")])continue;if(t.isMultiRange){r[Cc("0x8")](...t[Cc("0x5b")]());continue}const e=t[Cc("0x3b")]();if(r[Cc("0x1d")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[Cc("0x8")](e)}t.push([n[Cc("0xd")],r])}return t})),this.listenTo(e,Cc("0x6"),((t,e)=>{this[Cc("0xe")](e,"change:previous",((t,n,o,r)=>{e[Cc("0x58")]&&(null==o?(this._updateController(r[Cc("0x26")]),this[Cc("0x45")](e,!1)):(this._updateController(o[Cc("0x26")]),this[Cc("0x45")](e,!0)))})),null===e[Cc("0x2a")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Cc("0x26")])})),this[Cc("0xe")](e,Cc("0x38"),((t,e,n)=>{this[Cc("0x3c")](e,Cc("0x30")),this[Cc("0x4e")][Cc("0x43")](e);const o=n?n[Cc("0x26")]:e,r=this[Cc("0x10")].get(o);null!==n&&this[Cc("0x39")](o),null===n&&r&&this[Cc("0x57")](e)})),this[Cc("0xe")](e,Cc("0x0"),((t,e)=>{this[Cc("0x39")](e)})),this.listenTo(n,Cc("0x53"),(()=>{this._refreshActiveMarkers()})),this[Cc("0xe")](r,Cc("0x22"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x12")](n))return;const r=e[Cc("0x5e")](n);this[Cc("0x10")][Cc("0x44")](r).view[Cc("0x2d")]()}),{priority:Cc("0x50")})}[Cc("0x27")](){const t=this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x51")),e=this[Cc("0x20")][Cc("0x63")].get(Cc("0x2e")),n=Array[Cc("0x56")](t[Cc("0x33")],(t=>t[Cc("0x67")])).filter((t=>this._viewToController[Cc("0x28")](t))),o=[];for(const t of n){const e=this._viewToController[Cc("0x44")](t).model[Cc("0x15")]();o.push(...e.reduce(((t,e)=>[...t,...e[Cc("0xb")]()]),[]))}e[Cc("0x11")]=o}[Cc("0x13")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Cc("0x20")][Cc("0x4")].get("trackChanges"),s=Yo(t,"Track changes");n[Cc("0x47")][Cc("0x48")]({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[Cc("0x47")].bind("isOn").to(o,Cc("0x55")),n[Cc("0x47")].on(Cc("0x41"),(()=>{o.execute(),this[Cc("0x20")][Cc("0x62")][Cc("0xd")][Cc("0x2d")]()}));const i=new e.Collection,x=[{type:Cc("0x37"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:"separator"},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x21")),commandName:Cc("0x36")}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x3e")),commandName:"acceptSelectedSuggestions"}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x5a")),commandName:"discardAllSuggestions"}},{type:Cc("0x35"),model:{withText:!0,label:Yo(t,Cc("0x32")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Cc("0x42")};if(t[Cc("0x3a")]){const n=new r.Model(t[Cc("0x3a")]),o=this[Cc("0x20")][Cc("0x4")][Cc("0x44")](n[Cc("0x4f")]);n[Cc("0x60")](Cc("0x49"),"isEnabled").to(o,Cc("0x55"),"isEnabled"),e={type:t[Cc("0x24")],model:n}}i[Cc("0x5c")](e)}(0,r.addListToDropdown)(n,i);const a=x[Cc("0xc")]((t=>null!=t[Cc("0x3a")]))[Cc("0x4a")]((t=>this.editor[Cc("0x4")][Cc("0x44")](t[Cc("0x3a")][Cc("0x4f")]))),c=n[Cc("0x47")];return c[Cc("0x1a")][Cc("0x52")](Cc("0x4d")),c.arrowView[Cc("0x52")](Cc("0x4d")),c[Cc("0x1a")][Cc("0x60")]("isEnabled").to(o,Cc("0x4d")),c[Cc("0x2")][Cc("0x60")]("isEnabled")[Cc("0x66")](a,Cc("0x4d"),((...t)=>t[Cc("0x5f")]((t=>t)))),n.on(Cc("0x41"),(t=>{this.editor[Cc("0x41")](t[Cc("0x25")][Cc("0x4f")]),this[Cc("0x20")][Cc("0x62")][Cc("0xd")].focus()})),n}[Cc("0x3f")](t){const e=this[Cc("0x20")],n=e.config,o=e.plugins[Cc("0x44")]("Annotations"),r=e.plugins[Cc("0x44")]("CommentsRepository"),i=e.plugins[Cc("0x44")](Cc("0x59")),x=e.plugins[Cc("0x44")](s.Users).me,a=n[Cc("0x44")](Cc("0x16")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x63")][Cc("0x44")](Cc("0x2c"));let d,u;this[Cc("0x4c")][Cc("0x28")](t.id)?(u=this[Cc("0x4c")][Cc("0x44")](t.id),d=u[Cc("0x31")]):(d=new a(e[Cc("0x3d")],t,x,{disableComments:this[Cc("0x29")],editorConfig:n[Cc("0x44")]("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(Cc("0xf")),maxThreadTotalWeight:n[Cc("0x44")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x44")](Cc("0x2b")),formatDateTime:(0,s.getDateTimeFormatter)(n[Cc("0x44")](Cc("0x3d"))),CommentView:n[Cc("0x44")]("comments")[Cc("0x23")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on("execute",(()=>{e[Cc("0x62")][Cc("0xd")].focus()})),d[Cc("0x46")].on(Cc("0x41"),(()=>{e.editing[Cc("0xd")][Cc("0x2d")]()})),u=o.createAnnotationView(this[Cc("0x20")][Cc("0x3d")],d),u[Cc("0x60")](Cc("0xa")).to(d,Cc("0xa")),u[Cc("0x60")]("length").to(d),u[Cc("0x60")](Cc("0x24")).to(d,Cc("0x24"),(t=>Cc("0x14")+t)),this[Cc("0x4c")][Cc("0x48")](t.id,u));const g=r[Cc("0x5")](t[Cc("0x61")],d),m=new ic(e,t,d,g),f=t[Cc("0x15")]()[Cc("0xc")]((t=>t[Cc("0x58")]));d[Cc("0x5d")]=e[Cc("0x63")][Cc("0x44")]("TrackChangesEditing")[Cc("0x4b")][Cc("0x1f")](f),this[Cc("0x10")][Cc("0x48")](t,m),this._viewToController.set(d,m);const h=o[Cc("0x3")]({view:u,target:()=>{const n=[],o=t[Cc("0x15")]()[Cc("0xc")]((t=>t[Cc("0x58")]));for(const t of o)n.push(...t[Cc("0x1b")]());return(0,s.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x14")+m[Cc("0xd")][Cc("0x24")]});r[Cc("0x18")](d,h),o.add(h),i[Cc("0x64")](h)}[Cc("0x57")](t){const e=this[Cc("0x20")][Cc("0x63")].get("Annotations"),n=this[Cc("0x10")][Cc("0x44")](t),o=n[Cc("0xd")],r=e.getByInnerView(o);r&&e.remove(r),this[Cc("0x10")].delete(t),this[Cc("0x34")].delete(o),n[Cc("0x1c")]()}[Cc("0x39")](t){if(!t[Cc("0x58")]||!this._suggestionToController[Cc("0x28")](t))return;const e=this[Cc("0x20")][Cc("0x63")][Cc("0x44")](Cc("0x2e")),n=this[Cc("0x10")][Cc("0x44")](t),o=t.getAllAdjacentSuggestions();n[Cc("0xd")].descriptionParts=e[Cc("0x4b")].getDescriptions(o)}[Cc("0x1c")](){for(const t of this[Cc("0x10")].keys())this[Cc("0x57")](t);for(const t of this[Cc("0x4c")].values())t[Cc("0x31")][Cc("0x1c")]();super.destroy()}}var kc,Ac,vc=["adapter","getSuggestions","TrackChanges","get","editor","Comments","pluginName","getSuggestion","plugins","addSuggestion","requires"];kc=vc,Ac=137,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x5")](){return[za,yc,Rc("0x0")]}static get[Rc("0x1")](){return Rc("0x8")}set[Rc("0x6")](t){this.editor.plugins[Rc("0x9")](za)[Rc("0x6")]=t}get adapter(){return this[Rc("0xa")][Rc("0x3")][Rc("0x9")](za).adapter}[Rc("0x4")](t){return this[Rc("0xa")][Rc("0x3")][Rc("0x9")](za).addSuggestionData(t)}[Rc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0xa")][Rc("0x3")].get(za)[Rc("0x7")]({skipNotAttached:t,toJSON:e})}[Rc("0x2")](t){return this.editor[Rc("0x3")][Rc("0x9")](za)[Rc("0x2")](t)}}const Sc=["plugins","addUser","name","_adapter","editorCreator","model","destroy","editor","getRootsAttributes","define","Pagination","config","addSuggestionData","useAnonymousUser","TrackChangesDataGetter","document","TrackChangesData","track-changes-data-invalid-editor-creator","createElement","set","push","discardAllSuggestions","TrackChangesEditing","appendChild","data","div","rootsAttributes","constructor","pluginName","requires","trackChangesData","create","getDataWithDiscardedSuggestions","init","getFullData","get","end","reduce","trackChangesData.editorCreator","getRootNames"];var Lc,Nc;Lc=Sc,Nc=407,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const wc=function(t,e){return Sc[t-=0]},Mc=[wc("0x3")];class Oc extends t.Plugin{static get[wc("0x16")](){return[za]}static get[wc("0x15")](){return wc("0x9")}init(){const t=this.editor;if(t[wc("0x4")][wc("0x2")](wc("0x1f"),(e=>{const n=t[wc("0x26")][wc("0x8")].getRootNames()[wc("0x1e")](((t,e)=>(t[e]="",t)),{});return t[wc("0x14")][wc("0x18")](n,e)})),"function"!=typeof t[wc("0x4")][wc("0x1c")](wc("0x17"))[wc("0x25")])throw new e.CKEditorError(wc("0xa"))}getDataWithAcceptedSuggestions(t){return Dc(this[wc("0x0")],!0,t)}[wc("0x19")](t){return Dc(this.editor,!1,t)}}class Fc extends t.Plugin{static get[wc("0x15")](){return wc("0x7")}constructor(t){super(t),this.result=wc("0x1d")}[wc("0x1a")](){this[wc("0x0")][wc("0x21")].get("CommentsRepository")[wc("0x24")]={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[wc("0x0")][wc("0x21")][wc("0x1c")](wc("0xf"))._adapter=null}}function Pc(t){return void 0!==t.getRootsAttributes}async function Dc(t,e,n){const o=(0,s.sanitizeEditorConfig)(t,Mc);o[wc("0x21")][wc("0xd")](za,Fc),o[wc("0x13")]=Pc(t)?t[wc("0x1")]():void 0;const r=document.createDocumentFragment(),i=t[wc("0x4")].get(wc("0x17"))[wc("0x25")],x=await i(o,(()=>function(t){const e=document[wc("0xb")](wc("0x12"));return t[wc("0x10")](e),e}(r)));!function(t,e){const n=t[wc("0x26")][wc("0x8")][wc("0x20")]().reduce(((e,n)=>(e[n]=t[wc("0x11")][wc("0x1c")]({rootName:n}),e)),{}),o=t.plugins.get("Users").users.map((t=>({id:t.id,name:t[wc("0x23")]}))),r=t[wc("0x21")].get(wc("0xf")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=e[wc("0x21")][wc("0x1c")]("Users"),i=e[wc("0x21")][wc("0x1c")]("TrackChangesEditing");for(const t of o)s.getUser(t.id)||s[wc("0x22")](t);s.me||s[wc("0x6")]();for(const t of r)i[wc("0x5")](t);e.data[wc("0xc")](n)}(t,x),x.execute(e?"acceptAllSuggestions":wc("0xe"));const a=Pc(x)?x[wc("0x1b")](n):x.data[wc("0x1c")](n);return await x[wc("0x27")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","forceDisabled","_enabledCommands","_disableUnsupportedCommands","refresh","value","isEnabled","commands","_enableCommands","affectsData","TrackChangesCommand","editor","execute","clearForceDisabled"];var c,l;c=a,l=243,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xb")]=e,this[d("0x0")]=!1,this[d("0xd")](),this._isEnabledBasedOnSelection=!1}[d("0xd")](){this[d("0x1")]=!0}[d("0x7")](){this[d("0x0")]=!this.value,this[d("0x0")]?this[d("0xc")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this.editor[d("0x2")].commands())t[d("0x4")]&&!this._enabledCommands[d("0x9")](t)&&t[d("0xa")](d("0x5"))}[d("0x3")](){for(const t of this[d("0x6")][d("0x2")][d("0x2")]())t[d("0x4")]&&!this[d("0xb")][d("0x9")](t)&&t[d("0x8")]("TrackChangesCommand")}}const g=["model","editor","_suggestions","execute","canEditAt","isEnabled","acceptSuggestion","TrackChangesEditing","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","getRanges","get"];var m,f;m=g,f=379,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("0x7")]=e,this.refresh(),this[h("0x2")]=!1}refresh(){this[h("0xa")]=!0}[h("0x8")](t){const n=this[h("0x7")][h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x3")]();this[h("0x6")][h("0x5")][h("0x9")](o)&&this[h("0x6")].plugins.get(h("0x0"))[h("0xb")](n)}}const b=["get","TrackChangesEditing","refresh","model","track-changes-discard-suggestion-not-found","_suggestions","getRanges","_isEnabledBasedOnSelection","canEditAt","execute","discardSuggestion","editor","isEnabled"];var E,_;E=b,_=261,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x4")]=e,this[T("0x1")](),this[T("0x6")]=!1}[T("0x1")](){this[T("0xb")]=!0}[T("0x8")](t){const n=this[T("0x4")][T("0xc")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x5")]();this.editor[T("0x2")][T("0x7")](o)&&this[T("0xa")].plugins[T("0xc")](T("0x0"))[T("0x9")](n)}}const y=["end","deletion","content","join"," [color ","isIntersecting","add","isObject","type","createPositionBefore","push","createPositionAfter","createRange","execute","length","sort","replace","isInContent","value","start","splice","getRanges","createPositionAt","isCollapsed","schema","next","isTouching"];var k,A;k=y,A=158,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x13")](((t,e)=>v("0x5")==t[v("0xc")]&&"deletion"!=e[v("0xc")]?-1:v("0x5")!=t.type&&v("0x5")==e[v("0xc")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x1")];for(;o<t[v("0x12")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s[v("0xe")](e[v("0x10")](n,r[v("0xb")](i)?e[v("0xf")](i):e[v("0x1a")](i,v("0x4")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t.createPositionBefore(n);return o[v("0x3")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t.change((()=>{for(const t of o)t[v("0x15")]&&e[v("0x11")](t.id)}))}}const N=["_command","values","isEnabled","from","model","_suggestions","editor","getRanges","refresh","_isEnabledBasedOnSelection","some","execute","isInContent"];var M,w;M=N,w=326,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0x4")]=n,this.refresh(),this[O("0x8")]=!1}[O("0x7")](){const t=Array[O("0x2")](this._suggestions[O("0x0")]())[O("0x9")]((t=>t[O("0xb")]));this[O("0x1")]=this._command[O("0x1")]&&t}[O("0xa")](){const t=R(Array[O("0x2")](this[O("0x4")][O("0x0")]()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0x5")][O("0x3")].canEditAt(t))return}L(this.editor.model,this._command,t)}}const D=["refresh","from","editor","model","_suggestions","getRanges","size","execute","_command","isEnabled","_selectedSuggestions","canEditAt"];var P,B;P=D,B=175,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[j("0x3")]=new Set,this[j("0x5")](),this._isEnabledBasedOnSelection=!1}[j("0x5")](){const t=this[j("0x7")][j("0x8")].document.selection,e=Array[j("0x6")](this[j("0x9")].values());this[j("0x3")]=function(t,e){const n=Array.from(t[v("0x19")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s.getRanges())(e[v("0x9")](n)||t[v("0x0")]&&!s.isMultiRange&&s[v("0x2")]&&n[v("0x4")][v("0x3")](e[v("0x17")]))&&o[v("0xa")](s);return o}(t,e),this[j("0x2")]=this[j("0x1")][j("0x2")]&&!!this[j("0x3")][j("0xb")]}[j("0x0")](){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0xa")]();if(!this.editor.model[j("0x4")](t))return}L(this[j("0x7")][j("0x8")],this[j("0x1")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=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 Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.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=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,d=(c=c==Fo?Po:c)==Po,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["add","onDiscard","getRanges","length","toJSON","_onAccept","onAttributesChange","author","_onDiscard","suggestion:","head","createdAt","_saved","getFirstRange","previous","from","getFirstMarker","removeMarker","_model","nodeBefore","getMultiRangeId","split","filter","type","set","setAttribute","next","_markerNames","push","commentThread","getItems","removeAttribute","isExternal","addMarker","isMultiRange","@external","isInContent","data","creator","getMarkerNames","authoredAt","attributes","_onAttributesChange","markers","change","delete","accept","getMarkers","addMarkerName","map","decorate","getRange","start","addRange","isIntersectingWithRange","subType"];var $o,Jo;$o=Xo,Jo=344,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._isDataLoaded=!1,this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this[Qo("0x2f")]=e.subType||null,this.author=e[Qo("0x37")],this[Qo("0x1e")]=e.creator||e[Qo("0x37")],this[Qo("0x18")]=Boolean(e[Qo("0x21")]&&e[Qo("0x21")][Qo("0x1b")]),this[Qo("0x1d")]=null,this[Qo("0xa")]=t,this[Qo("0x35")]=e.onAccept,this[Qo("0x0")]=e[Qo("0x31")],this[Qo("0x22")]=e[Qo("0x36")],this[Qo("0x13")]=new Set,this[Qo("0x3")]=null,this[Qo("0x10")](Qo("0x20"),null),this.set(Qo("0x21"),e[Qo("0x21")]||{}),this[Qo("0x10")](Qo("0x6"),null),this[Qo("0x10")](Qo("0x12"),null),this[Qo("0x10")](Qo("0x15"),null),this.set(Qo("0x4"),!1),this[Qo("0x2a")](Qo("0x26")),this[Qo("0x2a")]("discard")}get head(){let t=this;for(;t[Qo("0x6")];)t=t[Qo("0x6")];return t}get hasComments(){return!!this[Qo("0x15")]&&this[Qo("0x15")][Qo("0x33")]>0}get[Qo("0x1a")](){return 0!=this[Qo("0x13")].size&&6==Array[Qo("0x7")](this[Qo("0x13")])[0][Qo("0xd")](":")[Qo("0x33")]}get[Qo("0x1c")](){return null!==this.getFirstMarker()}addMarkerName(t){this._markerNames[Qo("0x30")](t)}[Qo("0x1f")](){return Array.from(this[Qo("0x13")])}getMarkers(){return this[Qo("0x1f")]()[Qo("0x29")]((t=>this._model[Qo("0x23")].get(t)))[Qo("0xe")]((t=>t))}getFirstMarker(){return this[Qo("0x27")]()[0]||null}removeMarkers(){this[Qo("0xa")][Qo("0x24")]((t=>{for(const e of this[Qo("0x27")]())t[Qo("0x9")](e)})),this._markerNames.clear()}[Qo("0x9")](t){this._model[Qo("0x24")]((e=>{e.removeMarker(t)})),this[Qo("0x13")][Qo("0x25")](t)}[Qo("0x2d")](t){const e=Qo("0x1")+this.type+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0xc")]();this[Qo("0x28")](e),this[Qo("0xa")].change((n=>{n[Qo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2e")](t){for(const e of this[Qo("0x32")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x32")](){return this.getMarkers().map((t=>t[Qo("0x2b")]()))}[Qo("0x16")](){return this[Qo("0x32")]().reduce(((t,e)=>[...t,...e[Qo("0x16")]()]),[])}[Qo("0x5")](){var t;return(null===(t=this[Qo("0x8")]())||void 0===t?void 0:t[Qo("0x2b")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x2c")].nodeAfter,o=e.end[Qo("0xb")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x26")](){this[Qo("0x35")](this[Qo("0x32")](),this.data,this[Qo("0x21")]),this.removeMarkers()}discard(){this[Qo("0x0")](this[Qo("0x32")](),this[Qo("0x1d")],this[Qo("0x21")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x2")];for(;e;)t[Qo("0x14")](e),e=e[Qo("0x12")];return t}[Qo("0x11")](t,e){const n=eo(this[Qo("0x21")]);_o(n,t,e),Go(n,this[Qo("0x21")])||(this.attributes=n,this[Qo("0x22")](n))}[Qo("0x17")](t){const e=eo(this[Qo("0x21")]);qo(e,t),Go(e,this[Qo("0x21")])||(this[Qo("0x21")]=e,this[Qo("0x22")](this.attributes))}[Qo("0x34")](){return{id:this.id,type:this[Qo("0x2f")]?this[Qo("0xf")]+":"+this[Qo("0x2f")]:this.type,authorId:this.creator.id,createdAt:this[Qo("0x3")],hasComments:this.hasComments,data:this[Qo("0x1d")],attributes:this[Qo("0x21")]}}static[Qo("0xc")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["_locale","length","EmptyContainer","type","removeEmptyContainer","*Remove:* %0","set","ELEMENT_SPACE","data","$1 $2","Object","_customCallbacks","elementEnd","isEmpty","replace","start","insertion","addEmptyContainer","*Split:* %0","skip","registerDescriptionCallback","_addDescriptionItems","name","previousSibling","normal","checkChild","elementStart","end","*Merge:* %0","isObject","add","addContainer","getFirstRange","softBreak","pop","*Insert:* %0","nextSibling","removeObject","Container","text","push","remove","isInContent","_itemLabels","get","isEqual","_resolveDescriptionItems","_itemLabelsCallbacks","deletion","addObject","label","_schema","indexOf","function","getItemLabel","quantity","element","removeContainer","registerElementLabel"];var es,ns;es=ts,ns=489,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("0x35")]=[],this._itemLabels=new Map,this[os("0x1e")]=[],this[os("0x22")]=t,this[os("0x2a")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x2b")];n++){const o=t[n];if(!o[os("0x19")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x2d")in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0xf")]()[os("0xa")][os("0x1c")](s[os("0xf")]()[os("0x39")])){const t=e[e.length-1],n="insertion"==o[os("0x2d")]?os("0xd"):os("0x18");t&&os("0x16")==t.type&&(t[n]+="\n")}}}return this[os("0x1d")](e)}[os("0x3")](t){this[os("0x35")][os("0x17")](t)}[os("0x29")](t,n,o=e.priorities[os("0x7")]){os("0x24")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x1a")][os("0x30")](t,n)}[os("0x25")](t,e=1){let n;for(const e of this[os("0x1e")])if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x1b")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x5")]}[os("0x4")](t,e){const n=e[os("0xf")]().getWalker(),o="insertion"==e.type?os("0xd"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x2b")]-1];if(s.is("$textProxy"))r&&r[os("0x2d")][os("0x23")](os("0x15"))>-1&&t[os("0x11")](),r&&os("0x16")==r.type?r[o]+=s[os("0x32")]:t[os("0x17")]({type:"text",add:"add"==o?s[os("0x32")]:"",remove:os("0x18")==o?s[os("0x32")]:""});else if(this._schema[os("0xc")](s)){const i=s;if(r&&r[os("0x2d")][os("0x23")]("Container")>-1&&t.pop(),os("0x36")==e.type)continue;r&&r[os("0x2d")]==o+os("0x34")&&r[os("0x27")][os("0x5")]==i[os("0x5")]?r[os("0x26")]++:t[os("0x17")]({type:o+os("0x34"),element:i,quantity:1}),n[os("0x2")]((t=>!(os("0x36")==t[os("0x2d")]&&t.item==s)))}else if(this._schema[os("0x8")](s,"$text")||s.is(os("0x27"),os("0x10"))){const n=s;if("add"==o&&os("0x9")==e[os("0x2d")]||os("0x18")==o&&os("0x36")==e[os("0x2d")])continue;if(r&&-1==r[os("0x2d")][os("0x23")](os("0x15"))){os("0x16")==r[os("0x2d")]&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0x13")]&&!this[os("0x22")].isObject(n[os("0x13")])?n[os("0x13")]:null:n[os("0x6")]&&!this[os("0x22")][os("0xc")](n[os("0x6")])?n[os("0x6")]:null,n[os("0x37")]||i&&i[os("0x37")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+"EmptyContainer"&&r[os("0x27")][os("0x5")]==e[os("0x5")]?r[os("0x26")]++:t.push({type:o+os("0x2c"),element:e,quantity:1})}else t[os("0x17")]({type:o+"Container",element:n})}}}[os("0x1d")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o[os("0x2d")]){case os("0x16"):if(o.add=o.add[os("0x38")](/(\S)\u000A+(\S)/g,os("0x33")).replace(/\u000A/g,""),o.remove=o[os("0x18")][os("0x38")](/(\S)\u000A+(\S)/g,os("0x33"))[os("0x38")](/\u000A/g,""),""!=o[os("0xd")]&&""!=o.remove){n.push({type:"replace",content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x18")]+'"','"'+o.add+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x17")]({type:os("0x3a"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x31"),o.add[os("0x2b")]))});continue}if(null!=o.remove.match(/^ +$/)){n[os("0x17")]({type:os("0x1f"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x31"),o.remove[os("0x2b")]))});continue}if(""!=o[os("0xd")]){n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x12"),'"'+o[os("0xd")]+'"')});continue}n[os("0x17")]({type:os("0x1f"),content:Yo(e,os("0x2f"),'"'+o.remove+'"')});continue;case os("0x0"):case os("0x20"):n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x12"),this[os("0x25")](o[os("0x27")],o[os("0x26")]))});continue;case os("0x2e"):case os("0x14"):n[os("0x17")]({type:"deletion",content:Yo(e,os("0x2f"),this.getItemLabel(o[os("0x27")],o.quantity))});continue;case os("0xe"):n[os("0x17")]({type:os("0x3a"),content:Yo(e,os("0x1"),this[os("0x25")](o.element,o[os("0x26")]))});continue;case os("0x28"):n[os("0x17")]({type:"deletion",content:Yo(e,os("0xb"),this[os("0x25")](o[os("0x27")],o[os("0x26")]))});continue}n.push(o)}return n}}const rs=["value","afterInit","document","FORMAT_ALIGN_TO_LEFT","model","getSelectedBlocks","markBlockFormat","filter","FORMAT_ALIGN_TO_RIGHT","getAttribute","enableCommand","contentLanguageDirection","has","*Format:* %0","_descriptionFactory","alignment","editor","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER","plugins","commandName","TrackChangesEditing","selection","left","locale"];var is,xs;is=rs,xs=333,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x12")](){const t=this[as("0x8")],e=t.locale;if(!t[as("0xb")][as("0x4")]("AlignmentEditing"))return;const n=t.plugins.get(as("0xd"));n[as("0x2")](as("0x7"),((e,o={})=>{let s=o[as("0x11")];o.value||(s="ltr"===t[as("0x10")][as("0x3")]?as("0xf"):"right");const r=Array.from(this[as("0x8")][as("0x15")][as("0x13")][as("0xe")][as("0x16")]())[as("0x18")]((t=>function(t,e,n){const o=t[as("0x1")]("alignment")||null;return e.checkAttribute(t,as("0x7"))&&n!=o}(t,this[as("0x8")].model.schema,s)));t[as("0x15")].change((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x7"),commandParams:[{value:s}]})}))})),n[as("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x7")==n[as("0xc")]){const t=n.commandParams[0].value;return{type:"format",content:Yo(e,as("0x5"),function(t){switch(t){case as("0xf"):return Yo(e,as("0x14"));case"right":return Yo(e,as("0x0"));case"center":return Yo(e,as("0xa"));case"justify":return Yo(e,as("0x9"))}}(t))}}}))}}const ls=["schema","bindElementToMarker","listItem","hasAttribute","addClass","name","includes","parent","previousPosition","elementEnd","type","createRangeOn","TrackChangesEditing","item","element","markerName","listIndent","isLimit","addHighlight","toViewElement","activeMarkers","isContent","getWalker","get","push","ck-suggestion-marker--active","isAtEnd","markerRange","getAttribute","getCustomProperty","nextSibling","insert","model","mapper","start","toViewPosition","writer"];var ds,us;ds=ls,us=342,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e.getItems())s[gs("0x1f")](t)&&o[gs("0xf")](n[gs("0x2")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x1e"))){let n=t.nextSibling;for(;n&&n.is(gs("0x5"),gs("0x1e"))&&n[gs("0x13")](gs("0x7"))>0;)e[gs("0xf")](n),n=n[gs("0x15")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0xe")](gs("0x3"));return(s,r,i)=>{if(!i.consumable.test(r[gs("0x12")],s[gs("0x21")]))return;const x=r[gs("0x12")][gs("0xd")](),a=r.markerRange[gs("0x19")],c=t[gs("0x17")][gs("0x1c")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x4")];u=u||c[gs("0xc")](e);const n=i.mapper[gs("0xa")](e);if(n&&n[gs("0x14")](gs("0x9")))return;gs("0x0")==t[gs("0x1")]&&c.isBlock(e)&&!c[gs("0x8")](e)&&(e.nextSibling||a[gs("0x11")]?l&&l[gs("0x23")]==e||(l=e,m(t[gs("0x24")]),g=!0):d=d||t[gs("0x24")])}function m(t){const s=i[gs("0x1b")].createUIElement("span",{class:"ck-suggestion-marker-"+e}),x=i.mapper[gs("0x1a")](t);n&&o[gs("0xb")][gs("0x22")](r.markerName)&&i[gs("0x1b")][gs("0x20")](gs("0x10"),s),i[gs("0x1b")][gs("0x16")](x,s),i[gs("0x18")][gs("0x1d")](s,r[gs("0x6")])}u||g||!d||m(d)}}const ps=["toLowerCase","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","editor","FORMAT_STRIKETHROUGH","value","model","BoldEditing","bold","*Remove format:* %0","registerDescriptionCallback","code","from","selection","forceValue","SuperscriptEditing","FORMAT_BOLD","*Format:* %0","commandName","format","change","ItalicEditing","has","superscript","SubscriptEditing","enableCommand","FORMAT_ITALIC","underline","FORMAT_UNDERLINE","italic","UnderlineEditing","StrikethroughEditing","TrackChangesEditing","locale","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=150,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1"),_s("0xf"),_s("0x18"),"CodeEditing",_s("0x19"),_s("0x12"),_s("0x9")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x21")],e=t[_s("0x0")],n=t[_s("0x1c")].get(_s("0x1a")),o=t[_s("0x1b")];for(const o of Ts){if(!t[_s("0x1c")][_s("0x10")](o))continue;const s=o.slice(0,-7)[_s("0x1e")](),r=t.commands.get(s);n[_s("0x13")](s,((t,o={})=>{const i=e.document[_s("0x7")];if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o[_s("0x8")]:!r[_s("0x23")];e[_s("0xe")]((()=>{const t=Array[_s("0x6")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1d")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x4")]((n=>{const{data:s}=n;if(s&&s[_s("0xc")]===t)return s.commandParams[0][_s("0x8")]?{type:_s("0xd"),content:Yo(o,_s("0xb"),e)}:{type:"format",content:Yo(o,_s("0x3"),e)}}))}s(_s("0x2"),Yo(o,_s("0xa"))),s(_s("0x17"),Yo(o,_s("0x14"))),s(_s("0x15"),Yo(o,_s("0x16"))),s(_s("0x5"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0x22"))),s("subscript",Yo(o,_s("0x1f"))),s(_s("0x11"),Yo(o,_s("0x20")))}}const ys=["afterInit","value","editor","blockQuote","parent","model","filter","schema","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","BlockQuoteEditing","$root","markBlockFormat","*Remove format:* %0","_descriptionFactory","plugins","get","format","commandName","forceValue","name","checkChild","from","*Format:* %0","commandParams","has","change","selection"];var ks,As;ks=ys,As=404,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this.editor,e=t.locale;if(!t[vs("0x3")][vs("0xd")](vs("0x1a")))return;const n=t[vs("0x3")][vs("0x4")]("TrackChangesEditing"),o=this.editor.commands[vs("0x4")](vs("0x13"));n.enableCommand(vs("0x13"),((e,s={})=>{const r=this[vs("0x12")].model.document[vs("0xf")],i=s&&void 0!==s[vs("0x7")]?s[vs("0x7")]:!o[vs("0x11")];let x=[];if(i){const e=Array.from(r.getSelectedBlocks())[vs("0x16")]((t=>Ss(t)||function(t,e){const n=e[vs("0x9")](t[vs("0x14")],vs("0x13")),o=e[vs("0x9")]([vs("0x1b"),vs("0x13")],t);return n&&o}(t,this[vs("0x12")].model[vs("0x17")])));x=S(e,t.model)}else{const e=Array[vs("0xa")](r.getSelectedBlocks())[vs("0x16")]((t=>Ss(t)));x=S(e,t[vs("0x15")])}t[vs("0x15")][vs("0xe")]((()=>{for(const t of x)n[vs("0x0")](t,{commandName:vs("0x13"),commandParams:[{forceValue:i}]})}))})),n[vs("0x2")][vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x13")==n[vs("0x6")]){const t=Yo(e,vs("0x18"));return n[vs("0xc")][0][vs("0x7")]?{type:vs("0x5"),content:Yo(e,vs("0xb"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x1"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent[vs("0x8")]}const Is=["editor","enableCommand","plugins","ckbox","commands"];var Ls,Ns;Ls=Is,Ns=261,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ms("0x4")];t[Ms("0x3")].get(Ms("0x2"))&&t[Ms("0x1")].get("TrackChangesEditing")[Ms("0x0")](Ms("0x2"))}}const Os=["indentCodeBlock","ELEMENT_CODE_BLOCK","get","markBlockFormat","model","registerDescriptionCallback","language","forceValue","schema","checkChild","blockName","config","isLimit","commandParams","codeBlock","*Format:* %0","commandName","registerElementLabel","commands","value","formatBlock","languages","getSelectedBlocks","outdentCodeBlock","afterInit","enableCommand","parent","*Remove format:* %0","from","name","plugins","locale","label","editor"];var Fs,Ds;Fs=Os,Ds=185,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x9")](){const t=this[Ps("0x12")];if(!t[Ps("0xf")].has("CodeBlock"))return;const e=t[Ps("0xf")][Ps("0x15")]("TrackChangesEditing"),n=t[Ps("0x10")],o=t[Ps("0x1e")].get(Ps("0x21"))[Ps("0x6")],s=t[Ps("0x3")][Ps("0x15")](Ps("0x21"));e[Ps("0xa")](Ps("0x13")),e[Ps("0xa")](Ps("0x8")),e[Ps("0xa")](Ps("0x21"),((n,r={})=>{const i=t[Ps("0x17")],x=t[Ps("0x17")].document.selection,a=r&&void 0!==r[Ps("0x1a")]?r[Ps("0x1a")]:!s[Ps("0x4")];let c;r.language||(r.language=o[0].language),c=a?Array[Ps("0xd")](x[Ps("0x7")]()).filter((t=>{return js(t)||(e=t,n=i[Ps("0x1b")],!e.is("rootElement")&&!n[Ps("0x1f")](e)&&n[Ps("0x1c")](e[Ps("0xb")],Ps("0x21")));var e,n})):Array[Ps("0xd")](x[Ps("0x7")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ps("0x16")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ps("0x1d")})}))})),e._descriptionFactory[Ps("0x2")](Ps("0x21"),(t=>Yo(n,Ps("0x14"),t))),e._descriptionFactory[Ps("0x18")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x5")==s&&r&&Ps("0x21")==r[Ps("0x1")]){const t=r[Ps("0x20")][0][Ps("0x19")],s=e(o.find((e=>e[Ps("0x19")]===t))[Ps("0x11")]);return r[Ps("0x20")][0][Ps("0x1a")]?{type:"format",content:Yo(n,Ps("0x0"),Yo(n,Ps("0x14"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ps("0xc"),Yo(n,Ps("0x14"),1))}}}))}}function js(t){return Ps("0x21")==t[Ps("0xe")]}const Us=["has","CommentsEditing","enableCommand","get","TrackChangesEditing","editor","addCommentThread","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=308,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x6")](){const t=this[zs("0x3")];t.plugins[zs("0x7")](zs("0x8"))&&t[zs("0x5")][zs("0x1")](zs("0x2"))[zs("0x0")](zs("0x4"))}}var Vs=n(181);const Ks=["data","enqueueChange","editor","lock","downcastDispatcher","requires","removeMarker:suggestion:deletion","addMarker:suggestion:deletion","createSelection","high","delete","merge","detach","document","bind","init","$graveyard","get","start","options","isCollapsed","showSuggestionHighlights","enableCommand","selection","editing","mapper","getFirstRange","remove","markerName","end","model","writer","createRange","forward","deleteForward","markerNameToElements","modifySelection","plugins","buffer","root","fromRange","unit","TrackChangesEditing"];var qs,Xs;qs=Ks,Xs=490,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("0x1f")](){return[Vs.Delete]}[$s("0x29")](){const t=this[$s("0x1c")],e=t[$s("0x14")].get($s("0x19"));e[$s("0x5")]($s("0x24"));const n=t.commands[$s("0x0")]($s("0x11"));e[$s("0x5")]($s("0x11"),((e,o={})=>{const s=t[$s("0xd")][$s("0x22")](t[$s("0xd")][$s("0x27")][$s("0x6")]);s[$s("0x3")]&&t[$s("0xd")][$s("0x13")](s,{direction:$s("0x10"),unit:o[$s("0x18")]});const r=s[$s("0x9")](),x=i.LiveRange[$s("0x17")](r);let a;e(o),a=$s("0x2a")==x[$s("0x16")].rootName?t.model[$s("0xf")](r[$s("0x1")]):t[$s("0xd")].createRange(x[$s("0x1")],x[$s("0xc")]),x[$s("0x26")](),t[$s("0xd")][$s("0x1b")](n.buffer.batch,(t=>{n[$s("0x15")][$s("0x1d")](),t.setSelection(t[$s("0xf")](a[$s("0xc")])),n[$s("0x15")].unlock()}))})),t[$s("0x7")][$s("0x1e")].on($s("0x21"),hs(t,$s("0x25")),{priority:$s("0x23")}),t[$s("0x1a")].downcastDispatcher.on($s("0x21"),((e,n,o)=>{o[$s("0x2")][$s("0x4")]&&hs(t,"merge",{showActiveMarker:!1})[$s("0x28")](this)(e,n,o)}),{priority:$s("0x23")}),t[$s("0x7")][$s("0x1e")].on($s("0x20"),((t,e,n)=>{const o=n[$s("0x8")][$s("0x12")](e[$s("0xb")]);if(o)for(const t of o)t.is("uiElement")&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0xb")]),n[$s("0xe")][$s("0xa")](t))}),{priority:$s("0x23")})}}const Qs=["deletion","_suggestionFactory","accept","plugins","_descriptionFactory","multipleBlocks","getFirstRange","selection","ELEMENT_","enableCommand","push","nextSibling","end","length","toUpperCase","registerDescriptionCallback","*Format:* remove from %0","*Outdent:* %0","createRange","outdentList","*Merge:* %0","nodeAfter","registerCustomCallback","containsItem","isFirstBlockOfListItem","after","detach","splitListItemAfter","afterInit","numberedList","locale","bulletedList","mergeListItemForward","ELEMENT_NUMBERED_LIST","change","schema","before","commandName","splitListItemBefore","listIndent","*Indent:* %0","*Change to:* %0","editor","fromRange","_LIST","map","setSelection","createPositionAt","listType","get","listItemId","findIndex","document","execute","DocumentListUtils","refresh","documentList","commands","from","expandListBlocksToCompleteList","slice","getAttribute","indentList","format","markBlockFormat","commandParams","model","ELEMENT_LIST_ITEM","start","getRanges","*Format:* insert into %0","value","markMultiRangeBlockFormat","getSelectedBlocks","hasAttribute","add","formatBlock","forceValue"];var Zs,Ys;Zs=Qs,Ys=294,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2e")](){const t=this[tr("0x3c")];if(!t[tr("0x15")].has("DocumentListEditing"))return;const e=t[tr("0x30")],n=t[tr("0x15")][tr("0x43")]("TrackChangesEditing"),o=t[tr("0x15")].get(tr("0x48"));function s(e){return()=>{const s=t[tr("0x4b")].get(e);let r=Array[tr("0x4c")](t.model.document[tr("0x19")][tr("0xd")]());if(a(e)){r=o[tr("0x4d")](r);const t=[];for(const e of r)o[tr("0x2a")](e)&&t.push(e);r=t}t[tr("0x6")][tr("0x34")]((()=>{n[tr("0xc")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0xb")]}],formatGroupId:tr("0x42")},[],tr("0x4a"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x45")]((t=>!t[tr("0xe")](tr("0x44"))));return n>-1&&(e=e[tr("0x0")](0,n)),e}(t.model[tr("0x46")].selection[tr("0xd")]()),s=o[o[tr("0x1f")]-1],r=t[tr("0x6")].schema.isObject(s)?tr("0x2b"):tr("0x1e"),i=t[tr("0x6")][tr("0x24")](t[tr("0x6")][tr("0x41")](o[0],tr("0x36")),t[tr("0x6")][tr("0x41")](s,r));t[tr("0x6")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x1d")];for(;t&&t[tr("0x1")](tr("0x39"))>n.getAttribute(tr("0x39"));)e[tr("0xf")](t),t=t[tr("0x1d")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x6")][tr("0x46")][tr("0x19")][tr("0xd")]().next()[tr("0xb")],s=t[tr("0x6")][tr("0x41")](o,"before"),r=t.model.createPositionAt(o,0),i=t[tr("0x6")].createRange(s,r);t[tr("0x6")][tr("0x34")]((()=>{n[tr("0x4")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x42")})}))}}function a(e){const n=t[tr("0x4b")][tr("0x43")](tr("0x31"))[tr("0xb")],o=t[tr("0x4b")].get(tr("0x2f")).value;return tr("0x2f")===e?n:o}n[tr("0x1b")](tr("0x2f"),s("numberedList")),n[tr("0x1b")](tr("0x31"),s(tr("0x31"))),n[tr("0x1b")](tr("0x2"),r("indentList")),n[tr("0x1b")](tr("0x25"),r(tr("0x25"))),n[tr("0x1b")](tr("0x2d"),x(tr("0x2d"))),n[tr("0x1b")](tr("0x38"),x(tr("0x38"))),n[tr("0x16")].registerElementLabel((function(e){const n=!t.model[tr("0x35")].isObject(e),o=e.previousSibling,s=e[tr("0x1d")],r=e[tr("0x1")]("listItemId"),i=!o||o[tr("0x1")](tr("0x44"))!==r,x=!s||s[tr("0x1")](tr("0x44"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x7"),t))),n[tr("0x16")][tr("0x21")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x37")]){case tr("0x31"):r=n[tr("0x5")][0][tr("0x11")],i=a(n[tr("0x37")]),o=tr(r?"0xa":"0x22"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x37")]),o=tr(r?"0xa":"0x22"),i&&(o=tr("0x3b")),s={type:tr("0x3"),content:Yo(e,o,Yo(e,tr("0x33")))};break;case tr("0x2"):o=tr("0x3a"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x7")))};break;case tr("0x25"):o=function(t){const e=t[tr("0x18")]();let n=e.start.nodeAfter;for(;n&&e[tr("0x29")](n);){if(n.getAttribute(tr("0x39"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x22"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x8")][tr("0x27")];return tr("0x1a")+e[tr("0x1")](tr("0x42"))[tr("0x20")]()+tr("0x3e")}(t))):Yo(e,tr("0x23"),Yo(e,tr("0x7"))),s={type:"format",content:o};break;case"mergeListItemBackward":case tr("0x32"):!1===n[tr("0x17")]&&(o=tr("0x26"),s={type:tr("0x12"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x13")][tr("0x28")](tr("0x10"),"documentList",tr("0x14"),(function(e,n){const o=[];for(let n of e)n[tr("0x8")].nodeAfter===n.end.parent&&(n=t[tr("0x6")][tr("0x24")](t.model[tr("0x41")](n[tr("0x8")].nodeAfter,0))),o[tr("0x1c")](n);t[tr("0x6")].change((e=>{const s=t[tr("0x6")][tr("0x46")][tr("0x19")],r=Array.from(s[tr("0x9")]())[tr("0x3f")]((t=>i.LiveRange[tr("0x3d")](t)));e[tr("0x40")](o),t[tr("0x4b")][tr("0x43")](n[tr("0x37")])[tr("0x49")](),n[tr("0x5")][tr("0x1c")]({forceDefaultExecution:!0}),t[tr("0x47")](n[tr("0x37")],...n[tr("0x5")]),e[tr("0x40")](r);for(const t of r)t[tr("0x2c")]()}))}))}}var nr=n(331);const or=["selection","getFirstPosition","remove","markerNameToElements","mapper","createPositionAt","createRange","model","detach","markInsertion","options","fromRange","addMarker:suggestion:insertion","bind","TrackChangesEditing","enableCommand","afterExecute","get","plugins","showSuggestionHighlights","markerName","requires","init","commands","split","downcastDispatcher","editor","end","hasClass","editing","document","nextSibling","data","ck-suggestion-marker-split","enter","getFirstRange","high","writer","setSelection"];var sr,rr;sr=or,rr=446,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x4")](){return[nr.Enter]}[ir("0x5")](){const t=this[ir("0x9")],e=t[ir("0x1")][ir("0x0")](ir("0x24")),n=t[ir("0x6")][ir("0x0")](ir("0x11"));e[ir("0x25")](ir("0x11"),(()=>{t.model.change((o=>{const s=t[ir("0x1d")][ir("0xd")][ir("0x16")],r=s[ir("0x17")](),x=i.LiveRange[ir("0x21")](s[ir("0x12")]());if(n.enterBlock(o)){const n=t[ir("0x1d")][ir("0x1b")](r.parent[ir("0xe")],0),s=o[ir("0x1c")](r,n);e[ir("0x1f")](s)}else o[ir("0x15")](o[ir("0x1c")](x[ir("0xa")]));x[ir("0x1e")](),n.fire(ir("0x26"),{writer:o})}))})),t[ir("0xc")][ir("0x8")].on(ir("0x22"),hs(t,ir("0x7")),{priority:ir("0x13")}),t[ir("0xc")][ir("0x8")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0x1a")][ir("0x19")](e[ir("0x3")]);if(o)for(const t of o)t[ir("0xb")](ir("0x10"))&&(n[ir("0x1a")].unbindElementFromMarkerName(t,e.markerName),n[ir("0x14")][ir("0x18")](t))}),{priority:ir("0x13")}),t[ir("0xf")][ir("0x8")].on(ir("0x22"),((e,n,o)=>{o[ir("0x20")][ir("0x2")]&&hs(t,ir("0x7"),{showActiveMarker:!1})[ir("0x23")](this)(e,n,o)}),{priority:ir("0x13")})}}const ar=["string","getMarkersGroup","suggestion:deletion","enableCommand","replace","item","markers","FindAndReplaceEditing","handleFindCommand","replaceAll","filter","find","findPrevious","plugins","has","model","end","_isInDeletionRange","createPositionAt","editor","createRange","get"];var cr,lr;cr=ar,lr=434,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this.editor[dr("0x13")][dr("0x14")](dr("0xd")))return;const t=this[dr("0x3")][dr("0x13")][dr("0x5")]("TrackChangesEditing");t.enableCommand(dr("0x11"),this[dr("0xe")].bind(this)),t[dr("0x9")]("findNext"),t[dr("0x9")](dr("0x12")),t.enableCommand(dr("0xa")),t[dr("0x9")](dr("0xf"))}handleFindCommand(t,e,n={}){const o=this[dr("0x3")][dr("0x13")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x6")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x10")]((e=>!1===this[dr("0x1")](e,t[dr("0xb")])))),n)}_isInDeletionRange(t,e){const n=this[dr("0x3")][dr("0x15")][dr("0x4")](this[dr("0x3")][dr("0x15")][dr("0x2")](e,t.start),this[dr("0x3")].model[dr("0x2")](e,t[dr("0x0")]));for(const t of this[dr("0x3")][dr("0x15")][dr("0xc")][dr("0x7")](dr("0x8")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const gr=["has","normalizeSizeOptions","change","selection","value","fontSize.options","*Set font size:* %0","model","*Set font color:* %0","FontSizeEditing","*Set font background color:* %0","trim","*Reset font family*","registerDescriptionCallback","*Reset font color*","commandName","*Set font family:* %0","label","_enableCommand","*Reset font size*","fontBackgroundColor.colors","format","plugins","toLowerCase","get","_descriptionFactory","fontBackgroundColor","fontColor","find","FontFamilyEditing","fontSize","fontFamily","config","from","*Reset font background color*","TrackChangesEditing","getRanges","editor","commandParams","FontColorEditing","enableCommand","fontColor.colors","FontBackgroundColorEditing"];var mr,fr;mr=gr,fr=227,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x28"),commandName:hr("0x12")},{pluginName:hr("0x11"),commandName:"fontFamily"},{pluginName:hr("0x1b"),commandName:hr("0xf")},{pluginName:hr("0x1e"),commandName:hr("0xe")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x19")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x19")][hr("0xa")][hr("0x1f")](t)&&this[hr("0x6")](e);this[hr("0x19")][hr("0xa")][hr("0xc")](hr("0x17"))[hr("0xd")][hr("0x1")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x12")==o.commandName){const e=o.commandParams[0][hr("0x23")];if(e){const o=n(this[hr("0x19")][hr("0xa")][hr("0xc")]("FontSize")[hr("0x20")](this[hr("0x19")][hr("0x14")][hr("0xc")](hr("0x24"))).find((t=>t[hr("0x26")]==e)).title)[hr("0xb")]();return{type:hr("0x9"),content:Yo(t,hr("0x25"),o)}}return{type:hr("0x9"),content:Yo(t,hr("0x7"))}}if(hr("0x13")==o[hr("0x3")]){const e=o.commandParams[0].value;return e?{type:hr("0x9"),content:Yo(t,hr("0x4"),e)}:{type:"format",content:Yo(t,hr("0x0"))}}if(hr("0xf")==o[hr("0x3")]){const e=o[hr("0x1a")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x19")].config.get(hr("0x1d"))).find((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x5")],i=n(r)[hr("0xb")]()),{type:hr("0x9"),content:Yo(t,hr("0x27"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:hr("0x9"),content:Yo(t,hr("0x2"))}}if(hr("0xe")==o[hr("0x3")]){const e=o[hr("0x1a")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x19")][hr("0x14")].get(hr("0x8")))[hr("0x10")]((t=>t[hr("0x26")]==e));let r=e,i="";return o&&(r=o[hr("0x5")],i=n(r)[hr("0xb")]()),{type:hr("0x9"),content:Yo(t,hr("0x29"),i)[hr("0x2a")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x16"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0xa")].get("TrackChangesEditing")[hr("0x1c")](t,((n,o={})=>{const s=e.model.document[hr("0x22")],r=o[hr("0x23")];s.isCollapsed?n(o):e[hr("0x26")][hr("0x21")]((()=>{const n=Array[hr("0x15")](s[hr("0x18")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x26")]);for(const o of n)e[hr("0xa")][hr("0xc")]("TrackChangesEditing").markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["*Remove all formatting*","isCollapsed","schema","fontSize.options","getItems","getLastPosition","fontColor.colors","TrackChangesEditing","fontColor","label","markInlineFormat","editor","document","getSelectedBlocks","join","copyFormat","find","selection","enableCommand","boolean","get","toUpperCase","change","config","modifySelection","afterInit","word","commandParams","length","slice","fontSize","entries","format","from","split","isFormatting","locale","forward","keys","plugins","backward","_descriptionFactory","createRange","toLowerCase","getRanges","commands","model","FontSize","pasteFormat","*Set format to:* %0","createSelection","charAt","getAttributes"];var _r,Tr;_r=Er,Tr=478,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x18")](){const t=this[Cr("0xa")],n=t[Cr("0x2d")],o=n[Cr("0xb")][Cr("0x10")],s=t[Cr("0x26")].get("TrackChangesEditing"),r=t[Cr("0x23")],i=t[Cr("0x2c")][Cr("0x13")](Cr("0xe")),x=t[Cr("0x2c")][Cr("0x13")](Cr("0x2f"));i&&x&&(s[Cr("0x11")](Cr("0x2f"),((t,r={})=>{const i=r;n[Cr("0x15")]((()=>{const t=Array[Cr("0x20")](o[Cr("0x2b")]()),r=o[Cr("0x0")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x33")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x22")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2b")]())for(const t of e[Cr("0x3")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0xc")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1")]))||0!==Object[Cr("0x25")](i)[Cr("0x1b")])for(const t of r)s[Cr("0x9")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x28")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x1a")][0];for(const[n,s]of Object[Cr("0x1e")](o))e.push(Ar(t,n,s));return e[Cr("0x1b")]?{type:Cr("0x1f"),content:Yo(r,Cr("0x30"),e[Cr("0xd")](", "))}:{type:Cr("0x1f"),content:Yo(r,Cr("0x34"))}}})),t.plugins[Cr("0x13")](Cr("0x6"))[Cr("0x11")]("copyFormat"))}}function kr(t,e){const n=t[Cr("0x31")](e);t[Cr("0x17")](n,{unit:Cr("0x19"),direction:Cr("0x27")});const o=n.getFirstPosition();t[Cr("0x17")](n,{unit:Cr("0x19"),direction:Cr("0x24")});const s=n[Cr("0x4")]();return t[Cr("0x29")](o,s)}function Ar(t,e,n){const o=t[Cr("0x23")].t,r=e[Cr("0x21")](/(?=[A-Z])/)[Cr("0xd")](" "),i=o(r[Cr("0x32")](0)[Cr("0x14")]()+r[Cr("0x1c")](1))[Cr("0x2a")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x7")===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x16")][Cr("0x13")](Cr("0x5")))[Cr("0xf")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x8")])[Cr("0x2a")]():n)+")"}if(Cr("0x1d")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x26")][Cr("0x13")](Cr("0x2e")).normalizeSizeOptions(t[Cr("0x16")][Cr("0x13")](Cr("0x2"))).find((t=>t[Cr("0x2d")]==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["selection","match","getSelectedBlocks","afterInit","paragraph","blockName","markBlockFormat","heading","change","parent","config","heading.options","schema","value","filter","name","document","ELEMENT_HEADING_CUSTOM","enableCommand","find","registerDescriptionCallback","get","checkChild","*Change to:* %0","formatBlock","format","registerElementLabel","TrackChangesEditing","plugins","_descriptionFactory","ELEMENT_HEADING","from","title","has","locale","commandName","editor","model"];var Rr,Sr;Rr=vr,Sr=103,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.editor,e=t[Ir("0x7")],n=t[Ir("0x15")].get(Ir("0x16"));if(!t[Ir("0x1")][Ir("0x6")]("HeadingEditing"))return;const o=t[Ir("0x1")][Ir("0x20")](Ir("0x0"));o[Ir("0x1d")](Ir("0x12"),((e,n)=>{const s=n[Ir("0x18")],r=Array[Ir("0x4")](this[Ir("0x9")][Ir("0xa")][Ir("0x1b")][Ir("0xb")][Ir("0xd")]())[Ir("0x19")]((t=>{return e=t,n=s,(o=this[Ir("0x9")].model[Ir("0x17")])[Ir("0x21")](e[Ir("0x14")],n)&&!o.isObject(e)&&e[Ir("0x1a")]!=n;var e,n,o}));t[Ir("0xa")][Ir("0x13")]((()=>{for(const t of r)o[Ir("0x11")](t,{commandName:Ir("0x12"),commandParams:[n],formatGroupId:Ir("0x10")},fs(t))}))}));for(const t of n)Ir("0xf")!=t[Ir("0xa")]&&o[Ir("0x2")][Ir("0x25")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0x5")])}));function s(t,n){return Yo(e,Ir("0x3"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x2")][Ir("0x1f")]((t=>{const{type:o,data:i}=t;if(Ir("0x23")==o&&i&&Ir("0x12")==i[Ir("0x8")]){const t=i.commandParams[0][Ir("0x18")],o=Nr(t);if(null!==o)return{type:Ir("0x24"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1e")]((e=>e[Ir("0xa")]===t))[Ir("0x5")];return{type:Ir("0x24"),content:Yo(e,Ir("0x22"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0xc")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["config","change","get","FORMAT_HIGHLIGHT","getFirstPosition","value","backward","editor","format","selection","push","commandName","document","getLastMatchingPosition","enableCommand","highlight.options","locale","find","*Remove highlight*","toLowerCase","highlight","has","getRanges","getAttribute","model","markInlineFormat","registerDescriptionCallback","createRange","formatInline","title","item","plugins","TrackChangesEditing"];var wr,Or;wr=Mr,Or=399,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{afterInit(){const t=this[Fr("0x4")];if(!t[Fr("0x1c")][Fr("0x12")]("HighlightEditing"))return;const e=t[Fr("0x1c")].get(Fr("0x1d"));e[Fr("0xb")](Fr("0x11"),((n,o={})=>{const s=t[Fr("0x15")][Fr("0x9")][Fr("0x6")],r=s.getAttribute(Fr("0x11"));let i=o[Fr("0x2")],x=[];if(s.isCollapsed){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0x1b")][Fr("0x14")]("highlight")===r,o=e[Fr("0xa")](n,{direction:Fr("0x3")}),s=e[Fr("0xa")](n);x=[t.model[Fr("0x18")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x13")]())i?x[Fr("0x7")](e):x[Fr("0x7")](...ms(Fr("0x11"),e,t[Fr("0x15")]));t[Fr("0x15")][Fr("0x1f")]((()=>{for(const t of x)e[Fr("0x16")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xd")];e._descriptionFactory[Fr("0x17")]((e=>{const{type:o,data:s}=e;if(Fr("0x19")==o&&s&&Fr("0x11")==s[Fr("0x8")]){const e=n.t,o=s.commandParams[0][Fr("0x2")];if(o){const s=t[Fr("0x1e")][Fr("0x20")](Fr("0xc"))[Fr("0xe")]((t=>t[Fr("0x15")]==o)),r=e(s[Fr("0x1a")])[Fr("0x10")]();return{type:Fr("0x5"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x1a")]}}}return{type:"format",content:Yo(n,Fr("0xf"),Yo(n,Fr("0x0")))}}}))}}const Pr=["registerElementLabel","elementToStructure","HorizontalLineEditing","horizontalLine","dataDowncast","enableCommand","plugins","get","insert","afterInit","createPositionAt","for","high","_descriptionFactory","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE"];var Br,jr;Br=Pr,jr=173,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this.editor;if(!t[Ur("0x9")].has(Ur("0x5")))return;t[Ur("0x9")].get("TrackChangesEditing")[Ur("0x8")](Ur("0x6"));const e=t.plugins[Ur("0xa")](Ur("0x1")),n=t.locale;e[Ur("0x0")][Ur("0x3")](Ur("0x6"),(t=>Yo(n,Ur("0x2"),t))),t.conversion[Ur("0xe")](Ur("0x7"))[Ur("0x4")]({model:Ur("0x6"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e.createContainerElement("div"),s=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",o),e[Ur("0xb")](e[Ur("0xd")](o,0),s),o},converterPriority:Ur("0xf")})}}const Hr=["TrackChangesEditing","htmlEmbed","get","rawHtmlApi","has","change","_descriptionFactory","HtmlEmbed","format","registerElementLabel","rawHtml","ELEMENT_HTML_EMBED","afterInit","*Change %0 content*","document","plugins","getSelectedElement","getCustomProperty","enableCommand","locale","editor","selection","cancel","registerDescriptionCallback"];var zr,Wr;zr=Hr,Wr=445,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x17")](){const t=this[Vr("0x7")];if(!t[Vr("0x2")][Vr("0xf")](Vr("0x12")))return;const e=t[Vr("0x2")][Vr("0xd")](Vr("0xb")),n=t[Vr("0x6")],o=t.editing.view[Vr("0x1")][Vr("0x8")];e[Vr("0x11")][Vr("0x14")](Vr("0x15"),(t=>Yo(n,Vr("0x16"),t))),t.plugins[Vr("0xd")]("TrackChangesEditing")[Vr("0x5")](Vr("0xc"),((n,s)=>{const r=t.model,i=r[Vr("0x1")][Vr("0x8")];r[Vr("0x10")]((()=>{const t=function(t){const e=t[Vr("0x3")]();return e&&e.is("element",Vr("0x15"))?t[Vr("0x3")]():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0xc"),commandParams:[s]}),o.getSelectedElement()[Vr("0x4")](Vr("0xe"))[Vr("0x9")]())}))})),e._descriptionFactory[Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xc")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x13"),content:Yo(n,Vr("0x0"),t)}}}))}}const qr=["type","accept","ELEMENT_IMAGE","imageStylePostApply","formatInline","getAttribute","ImageResize","convertInlineImageToBlock","getChangedMarkers","forEach","registerElementLabel","isInlineImage","isInContent","markDeletion","enableCommand","shouldConvertImageType","imageTextAlternative","isBlockImage","_splitMarkerName","has","getSuggestion","schema","newValue","element","getSuggestionCallback","ImageTextAlternativeEditing","caption","toNext","ImageInlineEditing","commands","registerDescriptionCallback","createRange","nodeAfter","from","markBlockFormat","plugins","imageTypeInline","chain","detach","title","get","markInlineFormat","hasSuggestion","format","markInsertion","convertBlockImageToInline","hasAttribute","normalizedStyles","suggestion","subType","addObject","toLowerCase","name","getSuggestions","ImageCaptionEditing","imageStyle","Users","imageCaption","*Set image text alternative:* %0","previous","getContainedElement","removeObject","commandName","document","getCaptionFromImageModelElement","backward","imageStylePreApply","ELEMENT_INLINE_IMAGE","editor","*Set image width:* %0","insertion","afterInit","end","FORMAT_SIDE_IMAGE","selection","_descriptionFactory","isEqual","side","author","uploadImage","value","registerCustomCallback","formatBlock","resizeImage","ImageBlockEditing","ELEMENT_CAPTION","isCollapsed","head","*Reset image width*","forceDefaultExecution","alt","forward","getFirstRange","getClosestSelectedImageElement","ImageCaptionUtils","*Remove image text alternative*","toggleImageCaption","next","TrackChangesEditing","width","refresh","start","discardSuggestion","commandParams","getNearestSelectionRange","insertImage","deletion","registerPostFixer","ImageStyleEditing","imageTypeBlock","createRangeOn","ImageUploadEditing","discard","model","ImageUtils","length","join","change","isBefore","differ","_suggestionFactory","filter"];var Xr,$r;Xr=qr,$r=303,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0xc")](){const t=this[Jr("0x9")];if(!t[Jr("0x62")][Jr("0x52")]("ImageEditing"))return;const n=t[Jr("0x62")][Jr("0x67")](Jr("0x27")),o=t[Jr("0x62")][Jr("0x67")](Jr("0x37")),s={},r=t.locale;if(n[Jr("0x4d")](Jr("0x2e")),n[Jr("0x10")][Jr("0x49")]("imageBlock",(t=>Yo(r,Jr("0x41"),t))),n[Jr("0x10")][Jr("0x49")]("imageInline",(t=>Yo(r,Jr("0x8"),t))),n[Jr("0x10")][Jr("0x49")](Jr("0x59"),(()=>Yo(r,Jr("0x1a")))),t[Jr("0x62")].has(Jr("0x34"))&&n.enableCommand(Jr("0x14")),t[Jr("0x62")][Jr("0x52")](Jr("0x19"))&&t[Jr("0x62")].has(Jr("0x5b"))&&(n[Jr("0x4d")](Jr("0x63"),((e,s)=>{const r=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]);t.model[Jr("0x3a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x63"),commandParams:[s]},[],Jr("0x6c"))}))})),n[Jr("0x4d")](Jr("0x32"),((e,s)=>{t[Jr("0x36")].change((r=>{let x=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]),a=r[Jr("0x33")](x);const c=i.LivePosition.fromPosition(a[Jr("0x2a")],"toPrevious"),l=i.LivePosition.fromPosition(a.end,Jr("0x5a"));n[Jr("0x1e")]((()=>e(s))),x=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]),a=r.createRangeOn(x);const d=r[Jr("0x5e")](c,l);c[Jr("0x65")](),l[Jr("0x65")](),n.markBlockFormat(x,{commandName:Jr("0x63"),commandParams:[]},[],Jr("0x46")),d.start[Jr("0x3b")](a.start)&&n.markInsertion(r[Jr("0x5e")](d[Jr("0x2a")],a[Jr("0x2a")]),"convertInlineImageToBlock"),a[Jr("0xd")].isBefore(d[Jr("0xd")])&&n[Jr("0x6b")](r[Jr("0x5e")](a[Jr("0xd")],d[Jr("0xd")]),Jr("0x46"))}))})),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x40"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x35"),n[Jr("0x3d")][Jr("0x57")](Jr("0x17"),"",Jr("0x40"))),n._suggestionFactory[Jr("0x16")]("insertion",Jr("0x46"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0xb"),"convertInlineImageToBlock",Jr("0x35"),(([e])=>{const o=n[Jr("0x3d")][Jr("0x57")](Jr("0xb"),"",Jr("0x35"));let s=e[Jr("0x2a")],r=e[Jr("0xd")];const i=t[Jr("0x36")][Jr("0x54")].getNearestSelectionRange(s,Jr("0x6")),x=t[Jr("0x36")].schema[Jr("0x2d")](r,Jr("0x20"));i[Jr("0x1b")]&&(s=i.start),x[Jr("0x1b")]&&(r=x[Jr("0xd")]),o([t[Jr("0x36")][Jr("0x5e")](s,r)])})),n._suggestionFactory[Jr("0x16")](Jr("0x17"),Jr("0x46"),Jr("0x64"),c),n[Jr("0x3d")][Jr("0x16")](Jr("0xb"),Jr("0x46"),Jr("0x64"),c)),t[Jr("0x62")][Jr("0x52")](Jr("0x75"))&&(n[Jr("0x4d")](Jr("0x25"),((e,s)=>{const r=t.plugins[Jr("0x67")](Jr("0x23"));let i=o[Jr("0x22")](t[Jr("0x36")].document.selection),x=r.getCaptionFromImageModelElement(i);t[Jr("0x36")][Jr("0x3a")]((()=>{if(x)return void n[Jr("0x4c")](t[Jr("0x36")][Jr("0x33")](x));const a=o[Jr("0x50")](i);e(s),i=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]),x=r[Jr("0x5")](i),n[Jr("0x6b")](t.model[Jr("0x33")](x),a?null:"imageCaption")}))})),n[Jr("0x3d")][Jr("0x16")]("insertion",Jr("0x78"),"chain",c)),t[Jr("0x62")][Jr("0x52")](Jr("0x31"))){n[Jr("0x4d")](Jr("0x76"),((s,r)=>{const i=t.plugins[Jr("0x67")](Jr("0x77")).me,x=t[Jr("0x5c")][Jr("0x67")](Jr("0x76"));let a=o.getClosestSelectedImageElement(t.model.document[Jr("0xf")]),c=t[Jr("0x36")][Jr("0x33")](a),l=x[Jr("0x15")];if(l==r[Jr("0x15")])return;const d={commandName:Jr("0x76"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x3a")]((()=>{if(n[Jr("0x74")]()[Jr("0x3e")]((t=>t[Jr("0x4b")]&&i==t[Jr("0x13")]&&(Jr("0x17")==t[Jr("0x3f")]||"formatInline"==t[Jr("0x3f")])&&(Jr("0x7")==t[Jr("0x70")]||Jr("0x42")==t.subType)&&t[Jr("0x21")]().isEqual(c)))[Jr("0x48")]((t=>n[Jr("0x2b")](t[Jr("0x1c")]))),a=o[Jr("0x22")](t[Jr("0x36")][Jr("0x4")][Jr("0xf")]),c=t[Jr("0x36")][Jr("0x33")](a),x.refresh(),t[Jr("0x5c")].get("imageTypeInline")[Jr("0x29")](),t[Jr("0x5c")][Jr("0x67")](Jr("0x32")).refresh(),l=x[Jr("0x15")],l!=r[Jr("0x15")])return o[Jr("0x4a")](a)&&x[Jr("0x4e")](r[Jr("0x15")],a)?(s(r),a=o[Jr("0x22")](t.model[Jr("0x4")][Jr("0xf")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x7"))):void(o[Jr("0x50")](a)?n[Jr("0x61")](a,d,[],Jr("0x42")):n[Jr("0x68")](c,d,Jr("0x42")))}))}));for(const e of t[Jr("0x62")][Jr("0x67")]("ImageStyleEditing")[Jr("0x6e")])s[e[Jr("0x73")]]=e[Jr("0x66")][Jr("0x72")]();n[Jr("0x3d")][Jr("0x16")]("formatBlock",Jr("0x7"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")]("formatBlock","imageStylePostApply",Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x43"),Jr("0x42"),Jr("0x39"),(()=>!1)),n[Jr("0x3d")][Jr("0x16")](Jr("0x17"),"imageStylePreApply","accept",(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x17"),Jr("0x7"),Jr("0x35"),((t,e)=>{n._suggestionFactory[Jr("0x57")](Jr("0x17"),"",Jr("0x40"))(t,{commandName:e[Jr("0x3")],commandParams:e.commandReversedParams})})),n[Jr("0x3d")][Jr("0x16")]("formatBlock","imageStylePreApply",Jr("0x64"),c)}const x=[{type:"formatBlock",subType:"imageStylePreApply"},{type:Jr("0xb"),subType:Jr("0x78")},{type:"formatBlock",subType:Jr("0x46")},{type:Jr("0xb"),subType:Jr("0x46")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x70")]==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e[Jr("0x70")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x21")](),a=e[Jr("0x21")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0xb"))[Jr("0x3e")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Jr("0x70")]));if(t[Jr("0x38")]>1&&a[Jr("0xd")][Jr("0x11")](i[Jr("0x2a")]))return!0;if(1==t.length&&(i[Jr("0x2a")].isEqual(a.end)||i[Jr("0xd")].isEqual(a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x3b")](a[Jr("0x2a")])){const t=i[Jr("0xd")][Jr("0x5f")],e=a[Jr("0x2a")].nodeBefore;return o[Jr("0x50")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x36")][Jr("0x4")][Jr("0x30")]((()=>{let e=!1;const s=Array[Jr("0x60")](t[Jr("0x36")][Jr("0x4")][Jr("0x3c")][Jr("0x47")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x51")](t);if(Jr("0x6f")==s&&n[Jr("0x69")](a)){if(Jr("0x17")==i&&(Jr("0x7")==x||Jr("0x42")==x)){const t=n[Jr("0x53")](a);if(r.newRange){const s=t[Jr("0x21")]().getContainedElement();if(o.isBlockImage(s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0xb")==i&&Jr("0x78")==x&&!r.newRange){const t=n[Jr("0x53")](a);t[Jr("0x26")]&&t.next[Jr("0x4b")]&&(n[Jr("0x2b")](t[Jr("0x26")]),e=!0)}}}return e})),t[Jr("0x62")][Jr("0x52")](Jr("0x45"))&&n[Jr("0x4d")](Jr("0x18"),((e,s)=>{const r=o[Jr("0x22")](t[Jr("0x36")].document[Jr("0xf")]);r.getAttribute("width")!=s[Jr("0x28")]&&t[Jr("0x36")].change((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x62")][Jr("0x52")](Jr("0x58"))&&n[Jr("0x4d")](Jr("0x4f"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x36")][Jr("0x4")][Jr("0xf")]);(r[Jr("0x6d")](Jr("0x1f"))?r[Jr("0x44")](Jr("0x1f")):"")!=s[Jr("0x55")]&&t[Jr("0x36")].change((()=>{n[Jr("0x61")](r,{commandName:Jr("0x4f"),commandParams:[s]})}))})),n[Jr("0x10")][Jr("0x5d")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x70")]==n)))return t[Jr("0x0")]?{}:void 0})),n._descriptionFactory[Jr("0x5d")]((t=>{if(Jr("0xb")==t[Jr("0x3f")]||Jr("0x2f")==t[Jr("0x3f")]){const e=t[Jr("0x1")]();if(e&&e.is(Jr("0x56"),Jr("0x59")))return{type:"insertion"==t[Jr("0x3f")]?Jr("0x71"):Jr("0x2"),element:e,quantity:1}}})),n[Jr("0x10")][Jr("0x5d")]((t=>Jr("0x17")==t[Jr("0x3f")]&&Jr("0x46")==t[Jr("0x70")]?{type:Jr("0x6a"),content:"Inline image to block image"}:"formatBlock"==t[Jr("0x3f")]&&Jr("0x6c")==t[Jr("0x70")]?{type:Jr("0x6a"),content:"Block image to inline image"}:void 0)),n[Jr("0x10")][Jr("0x5d")]((t=>{const{data:e}=t;if(e){if(Jr("0x76")==e[Jr("0x3")]){const t=e[Jr("0x2c")][0][Jr("0x15")];return n=Jr("0x12")===t?Yo(r,Jr("0xe")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if(Jr("0x4f")==e.commandName){const t=e[Jr("0x2c")][0][Jr("0x55")];return t?{type:Jr("0x6a"),content:Yo(r,Jr("0x79"),'"'+t+'"')}:{type:Jr("0x6a"),content:Yo(r,Jr("0x24"))}}if("resizeImage"==e[Jr("0x3")]){const t=e[Jr("0x2c")][0][Jr("0x28")];return t?{type:"format",content:Yo(r,Jr("0xa"),t)}:{type:Jr("0x6a"),content:Yo(r,Jr("0x1d"))}}}var n}))}}const Zr=["get","formatBlock","locale","registerCustomCallback","replaceImageSource","data","enableCommand","getSuggestions","accept","author","*Format:* replace image URL","discard","editor","plugins","selection","getContainedElement","getSuggestionCallback","model","document","source","getAttribute","commandName","handleSuggestionDescription","TrackChangesEditing","afterInit","change","handleReplaceImageCommand","_suggestionFactory","markBlockFormat","getSelectedElement"];var Yr,ti;Yr=Zr,ti=457,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x11")](){if(!this[ei("0x5")].plugins.has("ImageEditing"))return;const t=this[ei("0x5")][ei("0x6")][ei("0x17")](ei("0x10"));t[ei("0x1d")](ei("0x1b"),((t,e)=>this[ei("0x13")](t,e))),t[ei("0x14")][ei("0x1a")](ei("0x18"),ei("0x1b"),ei("0x1"),t[ei("0x14")][ei("0x9")](ei("0x18"),null,ei("0x4"))),t[ei("0x14")].registerCustomCallback(ei("0x18"),ei("0x1b"),ei("0x4"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,ei("0x1"))),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0xf")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x5")][ei("0x6")].get(ei("0x10")),o=this[ei("0x5")][ei("0xa")][ei("0xb")][ei("0x7")][ei("0x16")]();this.editor[ei("0xa")][ei("0x12")]((()=>{let s=o[ei("0xd")]("src");const r=this[ei("0x5")].plugins[ei("0x17")]("Users").me;for(const t of n[ei("0x0")]({skipNotAttached:!0})){const e=t[ei("0x8")]();if(ei("0x1b")===t.subType&&e===o){t[ei("0x2")]!==r&&t[ei("0x4")](),s=t[ei("0x1c")].commandParams[0][ei("0xc")];break}}t(e),n[ei("0x15")](o,{commandName:ei("0x1b"),commandParams:[{source:s}]},[],ei("0x1b"))}))}[ei("0xf")](t){const{data:e}=t;if(e&&ei("0x1b")===e[ei("0xe")]){const t=ei("0x3");return{type:"format",content:Yo(this.editor[ei("0x19")],t)}}}}const oi=["execute","trackChanges","value","_setSuggestionData","_handleImportedData","TrackChangesEditing","get","editor","enableCommand","collaboration_features","bind","listenTo","_trackChangesValueDuringImport","plugins","track_changes","commands","Users","dataInsert","_trackChangesExecuted","importWord"];var si,ri;si=oi,ri=459,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("0xd")]=!1,this[ii("0x13")]=!1}afterInit(){const t=this[ii("0x8")],e=t.commands[ii("0x7")](ii("0x0")),n=t[ii("0x10")][ii("0x7")](ii("0x2"));e&&(e.on(ii("0x1"),((t,[,e])=>{this[ii("0xd")]=n[ii("0x3")],e[ii("0xa")][ii("0xf")]=!this[ii("0xd")]}),{priority:"high"}),this[ii("0xc")](e,ii("0x12"),this[ii("0x5")][ii("0xb")](this)),this[ii("0xc")](e,"dataInsert",(()=>{this[ii("0x13")]&&(n[ii("0x1")](),this[ii("0x13")]=!1)}),{priority:"lowest"}),t[ii("0xe")].get(ii("0x6"))[ii("0x9")](ii("0x0")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0x8")][ii("0x10")][ii("0x7")]("trackChanges"),s=o.value;this[ii("0xd")]!==s&&(o[ii("0x1")](),this[ii("0x13")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x8")][ii("0xe")][ii("0x7")](ii("0x11")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x8")][ii("0xe")][ii("0x7")](ii("0x6"))[ii("0x4")](s)}))}}const ai=["editor","document","model","change","outdentBlock","selection","checkAttribute","outdent","IndentBlock","from","indentBlock","blockIndent","markBlockFormat","_descriptionFactory","IndentEditing","registerDescriptionCallback","filter","*Outdent:* %0","format","get","TrackChangesEditing","afterInit","getItemLabel","getSelectedBlocks","enableCommand","has","plugins","getItems","commandName","indent"];var ci,li;ci=ai,li=197,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x4")](){const t=this.editor,e=t[di("0x9")][di("0x2")](di("0x3"));t[di("0x9")][di("0x8")](di("0x1b"))&&(e[di("0x7")](di("0xc")),e[di("0x7")](di("0x14")));const n=t.locale;if(t.plugins[di("0x8")](di("0x15"))){for(const n of[di("0x17"),di("0x11")])e.enableCommand(n,(()=>{const o=Array[di("0x16")](this[di("0xd")][di("0xf")][di("0xe")][di("0x12")][di("0x6")]())[di("0x1d")]((t=>this[di("0xd")][di("0xf")].schema[di("0x13")](t,di("0x18"))));t[di("0xf")][di("0x10")]((()=>{for(const t of o)e[di("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x17")})}))}));e[di("0x1a")][di("0x1c")]((t=>{const{data:o}=t;if(!o)return;if(di("0x17")!=o[di("0xb")]&&di("0x11")!=o[di("0xb")])return;const s=t[di("0xa")]()[0],r=e[di("0x1a")][di("0x5")](s);return di("0x17")==o.commandName?{type:"format",content:Yo(n,"*Indent:* %0",r)}:di("0x11")==o.commandName?{type:di("0x1"),content:Yo(n,di("0x0"),r)}:void 0}))}}}var gi,mi,fi=["plugins","requires","init","TrackChangesEditing","input","editor","enableCommand"];gi=fi,mi=209,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("0x3")](){this[hi("0x6")][hi("0x1")].get(hi("0x4"))[hi("0x0")](hi("0x5"))}}const bi=["editor","from","LinkEditing","get","getFirstRange","registerDescriptionCallback","has","link","getFirstPosition","document","enableCommand","getRanges","selection","plugins","commandName","linkHref","locale","unlink","model","TrackChangesEditing","isCollapsed","*Set link:* %0","change","getAttribute","_descriptionFactory","format","markInlineFormat","afterInit","commandParams","*Remove link*"];var Ei,_i;Ei=bi,_i=468,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x9")](){const t=this[Ti("0xc")];if(!t[Ti("0x19")][Ti("0x12")](Ti("0xe")))return;const e=t.plugins[Ti("0xf")](Ti("0x1"));e[Ti("0x16")](Ti("0x13"),((n,o)=>{const s=t[Ti("0x0")][Ti("0x15")][Ti("0x18")];let r=[];if(s[Ti("0x2")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x14")](),Ti("0x1b"),s.getAttribute(Ti("0x1b")),t[Ti("0x0")]);r=[e]}}else r=Array[Ti("0xd")](s[Ti("0x17")]());t[Ti("0x0")][Ti("0x4")]((()=>{for(const t of r)e[Ti("0x8")](t,{commandName:Ti("0x13"),commandParams:[o]})}))})),e[Ti("0x16")](Ti("0x1d"),(()=>{const n=this[Ti("0xc")][Ti("0x0")],o=n.document[Ti("0x18")];n[Ti("0x4")]((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x14")](),"linkHref",o[Ti("0x5")](Ti("0x1b")),t[Ti("0x0")])]:ms("linkHref",o[Ti("0x10")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x1d"),commandParams:[]})}))})),e[Ti("0x6")][Ti("0x11")]((e=>{const{data:n}=e,o=t[Ti("0x1c")];if(n){if("link"==n[Ti("0x1a")]){const t=n[Ti("0xa")][0];return{type:Ti("0x7"),content:Yo(o,Ti("0x3"),'"'+t+'"')}}return Ti("0x1d")==n[Ti("0x1a")]?{type:"format",content:Yo(o,Ti("0xb"))}:void 0}}))}}const yi=["findIndex","length","ELEMENT_NUMBERED_LIST","from","has","outdentList","afterInit","indentList","locale","document","registerDescriptionCallback","*Check item*","List","registerElementLabel","editor","_descriptionFactory","end","parent","get","*Outdent:* %0","bulletedList","ListEditing","name","blockName","todoListChecked","createRange","push","listIndent","filter","*Indent:* %0","commandName","slice","selection","createPositionAt","TodoListEditing","enableCommand","execute","format","isObject","paragraph","model","markBlockFormat","*Change to:* %0","getAttribute","element","checkChild","listType","ELEMENT_LIST_ITEM","ELEMENT_TODO_LIST","todoList","getSelectedBlocks","todo","plugins","add","value","before","commands","_selectedElements","checkTodoList","commandParams","nextSibling","listItem","numberedList","schema","change","replace","previousSibling"];var ki,Ai;ki=yi,Ai=174,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x21")](){const t=this[vi("0x29")],e=t[vi("0x23")];if(!t.plugins[vi("0x1f")](vi("0x30")))return;const n=t[vi("0xc")].get("TrackChangesEditing"),o=t[vi("0xc")].has(vi("0x3d"));function s(e){return()=>{const o=t[vi("0x0")][vi("0x24")][vi("0x3b")],s=t[vi("0x10")][vi("0x2d")](e);if(s.value)return void t[vi("0x3f")](vi("0x42"),{});const r=e[vi("0x3a")](0,-4),i=function(t,e,n){let o=Array[vi("0x1e")](t)[vi("0x37")]((t=>{return e=t,(o=n)[vi("0x5")](e[vi("0x2c")],vi("0x15"))&&!o[vi("0x41")](e);var e,o}));o=o[vi("0x37")]((t=>!t.is(vi("0x4"),vi("0x15"))||t[vi("0x3")](vi("0x6"))!=e));const s=new Set;for(const t of o)t.is(vi("0x4"),"listItem")?s[vi("0xd")](Si(t)):s.add(t);return Array.from(s)}(o[vi("0xa")](),r,t[vi("0x0")][vi("0x17")]);t[vi("0x0")][vi("0x18")]((()=>{for(const t of i)n[vi("0x1")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0xe")]}],formatGroupId:vi("0x32")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x1e")](t);const n=e[vi("0x1b")]((t=>vi("0x15")!=t[vi("0x31")]));return n>-1&&(e=e.slice(0,n)),e}(t.model[vi("0x24")][vi("0x3b")][vi("0xa")]()),s=t[vi("0x0")][vi("0x34")](t[vi("0x0")][vi("0x3c")](o[0],vi("0xf")),t[vi("0x0")].createPositionAt(o[o[vi("0x1c")]-1],vi("0x2b")));t[vi("0x0")].change((()=>{n[vi("0x1")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x14")];for(;t&&t[vi("0x3")](vi("0x36"))>n[vi("0x3")](vi("0x36"));)e[vi("0xd")](t),t=t.nextSibling}return Array[vi("0x1e")](e)}(o))}))}}n[vi("0x3e")](vi("0x16"),s(vi("0x16"))),n[vi("0x3e")](vi("0x2f"),s(vi("0x2f"))),o&&n[vi("0x3e")](vi("0x9"),s(vi("0x9"))),n.enableCommand(vi("0x22"),r(vi("0x22"))),n[vi("0x3e")](vi("0x20"),r("outdentList")),o&&n.enableCommand(vi("0x12"),(()=>{const e=t[vi("0x10")].get(vi("0x12")),o=Array[vi("0x1e")](e[vi("0x11")]);o[vi("0x37")]((t=>t[vi("0x3")](vi("0x33"))!=e[vi("0xe")])),t[vi("0x0")][vi("0x18")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x12"),commandParams:[{forceValue:!e[vi("0xe")]}]})}))})),n._descriptionFactory[vi("0x28")]("listItem",(t=>Yo(e,vi("0x7"),t))),n[vi("0x2a")][vi("0x25")]((t=>{const{data:n}=t;if(n){if(vi("0x16")==n[vi("0x39")]||"bulletedList"==n[vi("0x39")]||vi("0x9")==n[vi("0x39")])switch(n.commandName[vi("0x19")](vi("0x27"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x1d")));case vi("0xb"):return o(Yo(e,vi("0x8")))}if(vi("0x22")==n[vi("0x39")])return{type:vi("0x40"),content:Yo(e,vi("0x38"),Yo(e,vi("0x7")))};if(vi("0x20")==n.commandName)return{type:"format",content:Yo(e,vi("0x2e"),Yo(e,vi("0x7")))};if("checkTodoList"==n[vi("0x39")])return n[vi("0x13")][0].forceValue?{type:vi("0x40"),content:Yo(e,vi("0x26"))}:{type:vi("0x40"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0x40"),content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t[vi("0x3")](vi("0x36"));if(0==e)return t;let n=t;for(;t[vi("0x1a")]&&t[vi("0x1a")].is(vi("0x4"),"listItem");){const o=t.previousSibling.getAttribute("listIndent");if(o==e)n=t[vi("0x1a")];else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x4"),vi("0x15"))&&t[vi("0x3")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x15")==n[vi("0x31")]&&n[vi("0x3")](vi("0x36"))==t[vi("0x3")](vi("0x36"));)e[vi("0x35")](n),n=n.nextSibling}return e}const Li=["getFirstPosition","flat","numbered","_LIST_","startIndex","afterInit","selection","_getSuggestionBlocks","getAttribute","commandParams","*Format:* set order to regular","listItem","handleDescriptions","listStyle","handleListStartCommand","TrackChangesEditing","map","change","document","getSelectedBlocks","model","length","*Format:* set order to reversed","plugins","locale","forward","listType","list.properties","backward","ListUtils","reversed","parent","unshift","enableCommand","editor","_getTranslationKeyForListStyle","createPositionAt","listReversed","toUpperCase","before","getLastPosition","listStart","element","format","handleListReversedCommand","ELEMENT_","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","_descriptionFactory","filter","getSiblingNodes","createRange","*Change to:* %0","markMultiRangeBlockFormat","config","bind","getListTypeFromListStyleType","get","replace","push"];var Ni,Mi;Ni=Li,Mi=224,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x15")](){if(!this[wi("0x32")][wi("0x27")].has("ListPropertiesEditing"))return;const t=this[wi("0x32")][wi("0xa")][wi("0xd")](wi("0x2b")),e=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f"));t.styles&&e[wi("0x31")](wi("0x1d"),this.handleListStyleCommand[wi("0xb")](this)),t[wi("0x2e")]&&e[wi("0x31")](wi("0x35"),this[wi("0x0")][wi("0xb")](this)),t.startIndex&&e.enableCommand(wi("0x39"),this[wi("0x1e")][wi("0xb")](this)),e[wi("0x4")].registerDescriptionCallback(this.handleDescriptions[wi("0xb")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f")),o=this._getSuggestionBlocksForListStyle();this[wi("0x32")].model[wi("0x21")]((()=>{n[wi("0x9")](o,{commandName:wi("0x1d"),commandParams:[{type:e.type}],formatGroupId:wi("0x1d")})}))}[wi("0x0")](t,e={}){const n=this.editor[wi("0x27")][wi("0xd")](wi("0x1f")),o=this._getSuggestionBlocks((t=>t.is(wi("0x3a"),wi("0x1b"))&&wi("0x12")===t[wi("0x18")]("listType")));if(o[wi("0x25")]<1)return;const s=o[wi("0x20")]((t=>this[wi("0x32")].model[wi("0x7")](this.editor[wi("0x24")][wi("0x34")](t,wi("0x37")),this[wi("0x32")][wi("0x24")][wi("0x34")](t,0))));this[wi("0x32")][wi("0x24")].change((()=>{n[wi("0x9")](s,{commandName:wi("0x35"),commandParams:[{reversed:e[wi("0x2e")]}],formatGroupId:wi("0x35")})}))}[wi("0x1e")](t,e={}){const n=this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x1f")),o=this[wi("0x17")]((t=>t.is(wi("0x3a"),wi("0x1b"))&&wi("0x12")===t[wi("0x18")](wi("0x2a"))));if(o[wi("0x25")]<1)return;const s=o[wi("0x20")]((t=>this[wi("0x32")][wi("0x24")][wi("0x7")](this[wi("0x32")][wi("0x24")][wi("0x34")](t,wi("0x37")),this[wi("0x32")].model[wi("0x34")](t,0))));this[wi("0x32")].model[wi("0x21")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x39"),commandParams:[{startIndex:e[wi("0x14")]}],formatGroupId:wi("0x39")})}))}[wi("0x1c")](t){const e=this[wi("0x32")][wi("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x1d"):o=wi("0x8"),s={type:wi("0x3b"),content:Yo(e,o,Yo(e,this[wi("0x33")](n[wi("0x19")][0].type)))};break;case wi("0x35"):o=n[wi("0x19")][0].reversed?wi("0x26"):wi("0x1a"),s={type:wi("0x3b"),content:Yo(e,o)};break;case"listStart":o=wi("0x2"),s={type:wi("0x3b"),content:Yo(e,o,n.commandParams[0][wi("0x14")])}}return s}[wi("0x3")](){var t,e,n,o;const s=this[wi("0x32")][wi("0x27")].get(wi("0x2d"));let r=Array.from(this.editor[wi("0x24")][wi("0x22")][wi("0x16")][wi("0x23")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x3a"),"listItem"))&&r[wi("0x30")](...s[wi("0x6")](this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")][wi("0x10")](),wi("0x2c"))),(null===(e=r[r[wi("0x25")]-1])||void 0===e?void 0:e.is("element",wi("0x1b")))&&r[wi("0xf")](...s[wi("0x6")](this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")][wi("0x38")](),wi("0x29"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x32")][wi("0x24")][wi("0x22")][wi("0x16")].getFirstPosition())||void 0===n?void 0:n[wi("0x2f")])||void 0===o?void 0:o.is(wi("0x3a"),wi("0x1b")))&&(r=r[wi("0x5")]((t=>t.is("element",wi("0x1b"))))),r}[wi("0x17")](t){const e=this.editor[wi("0x27")][wi("0xd")](wi("0x2d"));let n=Array.from(this[wi("0x32")].model[wi("0x22")].selection[wi("0x23")]())[wi("0x5")](t)[wi("0x20")]((t=>{const n=this[wi("0x32")][wi("0x24")][wi("0x34")](t,0);return[...e[wi("0x6")](n,wi("0x2c")),...e[wi("0x6")](n,"forward")]}))[wi("0x11")]();return n=[...new Set(n)],n}[wi("0x33")](t){return wi("0x1")+this[wi("0x32")][wi("0x27")][wi("0xd")](wi("0x2d"))[wi("0xc")](t)[wi("0x36")]()+wi("0x13")+t[wi("0x36")]()[wi("0xe")](/-/g,"_")}}const Fi=["registerElementLabel","ELEMENT_MEDIA","conversion","TrackChangesEditing","high","media","plugins","editor","get","div","downcastDispatcher","locale","createEmptyElement","enableCommand","MediaEmbedEditing","showSuggestionHighlights","afterInit","options","dataDowncast"];var Di,Pi;Di=Fi,Pi=338,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x1")](){const t=this[Bi("0xb")];if(!t[Bi("0xa")].has(Bi("0x12")))return;const e=t[Bi("0xa")][Bi("0xc")](Bi("0x7")),n=t[Bi("0xf")];e[Bi("0x11")]("mediaEmbed"),e._descriptionFactory[Bi("0x4")](Bi("0x9"),(t=>Yo(n,Bi("0x5"),t))),t[Bi("0x6")].for(Bi("0x3")).elementToElement({model:Bi("0x9"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e[Bi("0x10")](Bi("0xd"))},converterPriority:Bi("0x8")}),t.data[Bi("0xe")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x2")][Bi("0x0")]&&t.stop()}),{priority:Bi("0x8")})}}const Ui=["editor","get","plugins","has","afterInit","enableCommand","MentionEditing","mention"];var Gi,Hi;Gi=Ui,Hi=270,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x6")](){const t=this[zi("0x2")];t[zi("0x4")][zi("0x5")](zi("0x0"))&&t[zi("0x4")][zi("0x3")]("TrackChangesEditing")[zi("0x7")](zi("0x1"))}}const Vi=["_descriptionFactory","get","afterInit","TrackChangesEditing","plugins","pageBreak","ELEMENT_PAGE_BREAK","editor"];var Ki,qi;Ki=Vi,qi=339,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x4")];if(!t.plugins.has("PageBreakEditing"))return;t[Xi("0x1")][Xi("0x6")](Xi("0x0")).enableCommand(Xi("0x2"));const e=t[Xi("0x1")].get(Xi("0x0")),n=t.locale;e[Xi("0x5")].registerElementLabel(Xi("0x2"),(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["markerName","*Insert:* %0","change","selection","from","isLimit","commandName","end","get","document","highest","insertion","markerRange","nodeAfter","checkChild","span","writer","ELEMENT_PARAGRAPH","getFirstRange","format","consumable","plugins","schema","type","*Change to:* %0","registerElementLabel","isBlock","getSelectedBlocks","editing","parent","data","createUIElement","TrackChangesEditing","blockName","enableCommand","paragraph","insertParagraph","registerDescriptionCallback","isTouching","_descriptionFactory","options","Paragraph","name","isObject","toViewPosition","model","afterInit","editor","addMarker:suggestion:insertion","includes","mapper","consume","$text"];var Qi,Zi;Qi=Ji,Zi=139,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0xd")](){const t=this[Yi("0xe")];if(!t.plugins.has(Yi("0x8")))return;const e=t.locale,n=t[Yi("0x29")][Yi("0x1c")](Yi("0x34"));n[Yi("0x6")][Yi("0x2d")]("paragraph",(t=>Yo(e,Yi("0x25"),t))),n[Yi("0x1")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x1d")],r=o[Yi("0x17")]||s[Yi("0x17")],i=Array[Yi("0x18")](r[Yi("0x2f")]()).filter((t=>{return e=t,(n=this[Yi("0xe")][Yi("0xc")][Yi("0x2a")]).checkChild(e[Yi("0x31")],Yi("0x2"))&&!n[Yi("0xa")](e)&&Yi("0x2")!=e[Yi("0x9")];var e,n}));t[Yi("0xc")][Yi("0x16")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x2"),commandParams:[],formatGroupId:Yi("0x0")},fs(t))}))})),n[Yi("0x6")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x2")==n[Yi("0x1a")])return{type:Yi("0x27"),content:Yo(e,Yi("0x2c"),Yo(e,Yi("0x25")))}})),n[Yi("0x1")](Yi("0x3")),t[Yi("0x30")].downcastDispatcher.on(Yi("0xf"),ex(t),{priority:Yi("0x1e")}),t[Yi("0x32")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x7")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x1e")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if("insertion"!==n[Yi("0x2b")])return;const{start:s,end:r}=n[Yi("0x26")]();if(!s[Yi("0x5")](r)||!s[Yi("0x21")])return;const i=t[Yi("0xc")][Yi("0x2a")],x=s.nodeAfter;return i[Yi("0x2e")](x)&&!i[Yi("0x19")](x)&&i.checkChild(x,"$text")?{type:Yi("0x1f"),content:Yo(e,Yi("0x15"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x29")][Yi("0x1c")](Yi("0x34")),i=o.markerRange.start,x=o[Yi("0x20")][Yi("0x1b")],a=t[Yi("0xc")].schema;if(!i[Yi("0x5")](x)||!i[Yi("0x21")])return;const c=i[Yi("0x21")];if(a[Yi("0x2e")](c)&&!a.isLimit(c)&&a[Yi("0x22")](c,Yi("0x13"))){if(!s[Yi("0x28")][Yi("0x12")](o[Yi("0x20")],n.name))return;const t=s[Yi("0x24")][Yi("0x33")](Yi("0x23"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x11")][Yi("0xb")](x);e&&r.activeMarkers[Yi("0x10")](o[Yi("0x14")])&&s[Yi("0x24")].addClass("ck-suggestion-marker--active",t),s[Yi("0x24")].insert(i,t),s.mapper.bindElementToMarker(t,o[Yi("0x14")])}}}const nx=["isFormatting","getAttributes","schema","RemoveFormatEditing","has","selection","locale","change","document","isCollapsed","get","registerDescriptionCallback","TrackChangesEditing","afterInit","_descriptionFactory","model","createRangeOn","enableCommand","markInlineFormat","editor","getItems","format","removeFormat","*Remove all formatting*"];var ox,sx;ox=nx,sx=352,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x15")](){const t=this[rx("0x3")];if(!t.plugins[rx("0xc")](rx("0xb")))return;const e=t.plugins[rx("0x12")](rx("0x14"));e[rx("0x1")](rx("0x6"),(n=>{const o=t.model[rx("0x10")][rx("0xd")];o[rx("0x11")]?n():t[rx("0x17")][rx("0xf")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[rx("0x4")]())xx(n,t[rx("0x17")][rx("0xa")])&&e[rx("0x2")](t[rx("0x17")][rx("0x0")](n),{commandName:rx("0x6"),commandParams:[]})}))})),e[rx("0x16")][rx("0x13")]((e=>{const{data:n}=e;if(n&&rx("0x6")==n.commandName)return{type:rx("0x5"),content:Yo(t[rx("0xe")],rx("0x7"))}}))}}function xx(t,e){for(const[n]of t[rx("0x9")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x8")])return!0}return!1}const ax=["goToNextRestrictedEditingException","get","afterInit","RestrictedEditingModeEditing","acceptAllSuggestions","enableCommand","TrackChangesEditing","discardSuggestion","discardSelectedSuggestions","acceptSuggestion","editor","plugins","acceptSelectedSuggestions","has"];var cx,lx;cx=ax,lx=163,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x7")](){const t=this[dx("0x1")];if(!t.plugins[dx("0x4")](dx("0x8")))return;const e=t[dx("0x2")][dx("0x6")](dx("0xb"));e[dx("0xa")]("goToPreviousRestrictedEditingException"),e[dx("0xa")](dx("0x5"));const n=t[dx("0x2")][dx("0x6")]("RestrictedEditingModeEditing");n.enableCommand("trackChanges"),n.enableCommand(dx("0x0")),n[dx("0xa")](dx("0xc")),n[dx("0xa")](dx("0x9")),n[dx("0xa")]("discardAllSuggestions"),n.enableCommand(dx("0x3")),n[dx("0xa")](dx("0xd"))}}const gx=["addMarker:suggestion","plugins","model","activeMarkers","includes","data","get","merge","editor","writer","shiftEnter","element","test","name","markerName","getItems","requires","consumable","addMarker:suggestion:insertion","ELEMENT_LINE_BREAK","createUIElement","addClass","enableCommand","mapper","span","init","markerRange","editing","locale","showSuggestionHighlights","_descriptionFactory","registerElementLabel","options","TrackChangesEditing","high","softBreak"];var mx,fx;mx=gx,fx=490,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1e")](){return[nr.ShiftEnter]}[hx("0x3")](){const t=this[hx("0x16")],e=t[hx("0xf")][hx("0x14")](hx("0xb"));e[hx("0x0")](hx("0x18")),t[hx("0x5")].downcastDispatcher.on(hx("0x20"),bx(t),{priority:hx("0xc")}),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",bx(t),{priority:hx("0xc")}),t[hx("0x13")].downcastDispatcher.on(hx("0xe"),((e,n,o)=>{o[hx("0xa")][hx("0x7")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x8")][hx("0x9")](hx("0xd"),(e=>Yo(t[hx("0x6")],hx("0x21"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xf")][hx("0x14")](hx("0xb"));if(!s[hx("0x1f")][hx("0x1a")](o[hx("0x4")],n[hx("0x1b")]))return;const i=t[hx("0x10")];for(const t of o.markerRange[hx("0x1d")]()){if(!t.is(hx("0x19"),"softBreak"))continue;const n="deletion"==o[hx("0x1c")].split(":")[1]?hx("0x15"):"split",x=s[hx("0x17")][hx("0x22")](hx("0x2"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x1")].toViewPosition(i.createPositionBefore(t));e&&r[hx("0x11")][hx("0x12")](o[hx("0x1c")])&&s[hx("0x17")][hx("0x23")]("ck-suggestion-marker--active",x),s[hx("0x17")].insert(a,x),s[hx("0x1")].bindElementToMarker(x,o[hx("0x1c")])}}}const Ex=["has","commandParams","FORMAT_RESTRICTED_DISABLED","locale","isCollapsed","selection","model","forceValue","FORMAT_RESTRICTED_ENABLED","get","afterInit","document","TrackChangesEditing","value","_descriptionFactory","editor","from","markInlineFormat","restrictedEditingException","enableCommand","format","StandardEditingModeEditing"];var _x,Tx;_x=Ex,Tx=388,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x12")](){const t=this[Cx("0x1")],e=t[Cx("0xe")],n=t[Cx("0xb")];if(!t.plugins[Cx("0x8")](Cx("0x7")))return;const o=t.plugins[Cx("0x11")](Cx("0x14")),s=Cx("0x4"),r=t.commands.get(s);o[Cx("0x5")](s,((t,n={})=>{const i=e[Cx("0x13")][Cx("0xd")];if(i[Cx("0xc")])return void t(n);const x=void 0!==n[Cx("0xf")]?n[Cx("0xf")]:!r[Cx("0x15")];e.change((()=>{const t=Array[Cx("0x2")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x0")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x9")][0][Cx("0xf")]?{type:"format",content:Yo(n,Cx("0x10"))}:{type:Cx("0x6"),content:Yo(n,Cx("0xa"))}}))}}const kx=["styleName","commands","includes","block","style","has","markInlineFormat","document","locale","push","getDefinitionsForView","isCollapsed","getAttribute","modelElements","enableCommand","createRangeOn","name","from","classes","normalizeConfig","inline","editor","enabledStyles","find","commandName","format","toLowerCase","markBlockFormat","_descriptionFactory","model","config","registerDescriptionCallback","getAncestors","style:","StyleUtils","change","element","get","commandParams","_getRangesWithClasses","style.definitions","TrackChangesEditing","getItems","_getStyleDefinition","isBlock","plugins","*Format:* %0","getRanges"];var Ax,vx;Ax=kx,vx=363,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x2a")];if(!t[Rx("0x12")][Rx("0x1a")]("Style"))return;const e=t[Rx("0x16")][Rx("0xa")]("style"),n=t.plugins[Rx("0xa")](Rx("0xe")),o=t[Rx("0x1d")],s=t.plugins[Rx("0xa")]("DataSchema"),r=t.plugins[Rx("0xa")](Rx("0x7"))[Rx("0x28")](s,t[Rx("0x3")][Rx("0xa")](Rx("0xd")));n[Rx("0x23")](Rx("0x19"),((o,{styleName:i})=>{const x=t[Rx("0x2")][Rx("0x1c")].selection,a=this[Rx("0x10")](i,r);if(!a)return;if(!e[Rx("0x2b")][Rx("0x17")](i))return;if(x[Rx("0x20")]&&!a[Rx("0x11")])return void o({styleName:i});const c=!e.value[Rx("0x17")](a[Rx("0x25")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x5")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x25")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x22")]);t[Rx("0x2")][Rx("0x8")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x19"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x6")+i})}))}else{let e=Array[Rx("0x26")](x[Rx("0x14")]());if(!c){const n=Array[Rx("0x26")](s[Rx("0x1f")](a[Rx("0x9")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0xc")](t[Rx("0x2")],s,a[Rx("0x27")],n);o[Rx("0x1e")](...e)}e=o}t[Rx("0x2")].change((()=>{for(const t of e)n[Rx("0x1b")](t,{commandName:Rx("0x19"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1")][Rx("0x4")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x2d")])return e[Rx("0xb")][0].forceValue?{type:Rx("0x2e"),content:Yo(o,Rx("0x13"),e.commandParams[0].styleName[Rx("0x2f")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0xb")][0][Rx("0x15")][Rx("0x2f")]())}}))}[Rx("0x10")](t,e){let n=e[Rx("0x18")][Rx("0x2c")]((e=>e.name===t));return n||(n=e[Rx("0x29")][Rx("0x2c")]((e=>e[Rx("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0xf")]()){const e=r[Rx("0x21")](o);e&&n.every((t=>e[Rx("0x27")][Rx("0x17")](t)))&&s.push(t[Rx("0x24")](r))}return s}}const Ix=["getColumnIndexes","*Remove:* %0","findAncestor","TableUtils","add","ELEMENT_TABLE_ROW","hasAttribute","oldRange","registerElementLabel","editor","plugins","nodeBefore","first","maxRow","selectTableColumn","isIntersectingWithRange","tableCell","getSelectionAffectedTableCells","refresh","_splitMarkerName","getRanges","createRangeOn","getChildren","_tablePostFixingSubtypes","markMultiRangeInsertion","nodeAfter","position","name","colspan","forceValue","ELEMENT_TABLE_COLUMN","length","type","detach","registerDescriptionCallback","getCellLocation","addClass","start","tableRow","_acceptFormatSuggestionCallbackFactory","setSelection","end","discard","addRange","values","from","createTableWalker","execute","mapper","TableEditing","enableCommand","afterInit","_getCoordsForCells","includes","_getSuggestionCoords","createRangeIn","span","order","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableRowAbove","deletion","$graveyard","toViewElement","subType","min","filter","minColumn","item","enqueueChange","getFirstRange","getChangedMarkers","getAttribute","selectTableRow","root","removeTableRow","MAX_SAFE_INTEGER","getItems","change","data","writer","classes","selection","some","startsWith","insertTable","_descriptionFactory","isEqual","table","_tableSuggestions","rootName","model","addMarker:suggestion","tableColumn","differ","*Insert:* %0","registerCustomCallback","registerPostFixer","document","last","_suggestionFactory","toLowerCase","insertTableColumnRight","$textProxy","fromRange","change:data","_setupColumnsRowsFixing","commands","ELEMENT_TABLE","join","cell","suggestion","push","tablePaste","getRowIndexes","accept","substr","get","insertTableColumnLeft","element","map","removeTableColumn","isInContent","insertion","ELEMENT_TABLE_WITH_TEXT","TrackChangesEditing","isTouching","showSuggestionHighlights","has","ELEMENT_TABLE_ROW_WITH_TEXT","max","low"];var Lx,Nx;Lx=Ix,Nx=304,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x70")]=[Mx("0x7f"),Mx("0x32")],this._tableSuggestions=new Set}[Mx("0x9")](){const t=this[Mx("0x62")],e=t.model[Mx("0x37")][Mx("0x27")];if(!t[Mx("0x63")][Mx("0x55")](Mx("0x7")))return;const n=t.locale,o=t[Mx("0x63")][Mx("0x4a")](Mx("0x52")),s=t[Mx("0x63")][Mx("0x4a")]("TableUtils");o[Mx("0x2b")][Mx("0x61")](Mx("0x2d"),(t=>Yo(n,Mx("0x41"),t))),this[Mx("0x3f")](),o[Mx("0x8")](Mx("0x2a")),o[Mx("0x8")](Mx("0x1e")),o.enableCommand(Mx("0x67"));for(const n of[Mx("0x11"),"insertTableRowBelow"]){const r=t[Mx("0x40")][Mx("0x4a")](n);o[Mx("0x8")](n,(n=>{t[Mx("0x30")].change((t=>{n();const i="above"===r[Mx("0xf")],x=s[Mx("0x6a")](e),a=s[Mx("0x47")](x),c=i?a[Mx("0x65")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x5b")](Mx("0x2d")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x3")](d)[Mx("0x4d")]((e=>t[Mx("0x6e")](e[Mx("0x43")])));o.markMultiRangeInsertion(u,Mx("0x7f"))}))}))}for(const n of[Mx("0x4b"),Mx("0x3b")]){const r=t[Mx("0x40")][Mx("0x4a")](n);o[Mx("0x8")](n,(n=>{t[Mx("0x30")][Mx("0x23")]((t=>{n();const i="left"===r[Mx("0xf")],x=s[Mx("0x6a")](e),a=s[Mx("0x59")](x),c=i?a[Mx("0x65")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x5b")](Mx("0x2d")),d=s[Mx("0x4")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x3")](d).map((e=>t[Mx("0x6e")](e[Mx("0x43")])));o[Mx("0x71")](u,Mx("0x32"))}))}))}for(const n of[Mx("0x20"),Mx("0x4e")]){const r=n[Mx("0x49")](11),i=r.toLowerCase(),x=i[Mx("0x49")](0,3)+Mx("0xe"),a=Mx("0x2d")+r,c="min"+r,l=Mx("0x57")+r;o[Mx("0x8")](n,(()=>{t[Mx("0x30")].change((t=>{const r=s[Mx("0x6a")](e),d=r[0][Mx("0x5b")](Mx("0x2d"));let u;if(Mx("0x20")==n){const t=s[Mx("0x47")](r);u={startRow:t.first,endRow:t[Mx("0x38")],includeAllSlots:!0}}else{const t=s[Mx("0x59")](r);u={startColumn:t.first,endColumn:t[Mx("0x38")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x3")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x17")]((t=>t[Mx("0x5f")](x)))),h=Ox(m[Mx("0x17")]((t=>!t[Mx("0x5f")](x))))[Mx("0x4d")]((e=>t[Mx("0x6e")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x7f")==p[Mx("0x15")]||Mx("0x32")==p.subType)){const e=this[Mx("0xc")](p);for(const n of f){const o=t[Mx("0x6e")](n),r=s[Mx("0x7c")](n),a=n[Mx("0x1d")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x1")](o)}}}))}))}function r(n){const o=Array[Mx("0x3")](e[Mx("0x6d")]())[Mx("0x4d")]((t=>i.LiveRange.fromRange(t)));t.model[Mx("0x23")]((e=>{const s=e.batch;n=n[Mx("0x17")]((t=>Mx("0x13")!=t[Mx("0x1f")][Mx("0x2f")])),e[Mx("0x81")](n),t[Mx("0x40")][Mx("0x4a")](Mx("0x20")).refresh(),t[Mx("0x5")](Mx("0x20"),{forceDefaultExecution:!0}),t[Mx("0x30")].enqueueChange((()=>{t.model[Mx("0x1a")](s,(t=>{const e=o.filter((t=>Mx("0x13")!=t[Mx("0x1f")][Mx("0x2f")]));e[Mx("0x78")]>0&&t[Mx("0x81")](e);for(const t of o)t[Mx("0x7a")]()}))}))}))}function a(n){t[Mx("0x30")][Mx("0x23")]((o=>{const s=Array[Mx("0x3")](e[Mx("0x6d")]()).map((t=>i.LiveRange[Mx("0x3d")](t))),r=[];for(const t of n)for(const e of t[Mx("0x22")]({shallow:!0}))r[Mx("0x45")](e);for(const e of r)Mx("0x13")!=e[Mx("0x1f")][Mx("0x2f")]&&(o[Mx("0x81")](o.createPositionAt(e,0)),t[Mx("0x40")][Mx("0x4a")](Mx("0x4e"))[Mx("0x6b")](),t[Mx("0x5")](Mx("0x4e"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t[Mx("0x1f")][Mx("0x2f")]));x[Mx("0x78")]>0&&o[Mx("0x81")](x);for(const t of s)t[Mx("0x7a")]()}))}function c(t,e){return e.every((e=>t[Mx("0x28")]((t=>t[Mx("0x82")][Mx("0x2c")](e.start)||e[Mx("0x82")][Mx("0x2c")](t[Mx("0x7e")])))))}function l(t,e){return t[Mx("0x28")]((t=>e[Mx("0x28")]((e=>t[Mx("0x82")][Mx("0x53")](e[Mx("0x7e")])))))}t.data.downcastDispatcher.on(Mx("0x31"),((t,e,n)=>{if(!n.options[Mx("0x54")])return;const o=e[Mx("0x19")];if(!o)return;const s=n[Mx("0x6")][Mx("0x14")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x69")===o[Mx("0x74")]&&(0,x.setHighlightHandling)(s,n[Mx("0x25")],((t,e,n)=>n[Mx("0x7d")](r(e[Mx("0x26")]),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x26")]),t)))}),{priority:"highest"}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x50")!=t.type&&Mx("0x12")!=t[Mx("0x79")])return;const e=t.getContainedElement();if(null!=e&&e.is(Mx("0x4c"),Mx("0x2d"))){if(Mx("0x50")==t[Mx("0x79")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")]));if(e[Mx("0x78")])return{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x51"),'"'+e[Mx("0x42")](" ")+'"'))}}if(Mx("0x12")==t[Mx("0x79")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")]));if(e[Mx("0x78")])return{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x51"),'"'+e[Mx("0x42")](" ")+'"'))}}}})),o[Mx("0x2b")][Mx("0x7b")]((t=>{if(Mx("0x7f")==t[Mx("0x15")]){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t[Mx("0x24")])),o=this._getSuggestionCoords(t),s=o[Mx("0x66")]-o.minRow+1;if(Mx("0x50")==t[Mx("0x79")])return e[Mx("0x78")]?{type:"insertion",content:Yo(n,Mx("0x34"),Yo(n,Mx("0x56"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x12")==t[Mx("0x79")])return e[Mx("0x78")]?{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x56"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x5e"),s))}}if(Mx("0x32")==t.subType){const e=t[Mx("0x22")]()[Mx("0x17")]((t=>t.is(Mx("0x3c"))))[Mx("0x4d")]((t=>t.data)),o=this[Mx("0xc")](t),s=o.maxColumn-o[Mx("0x18")]+1;if("insertion"==t.type)return e.length?{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x10"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x34"),Yo(n,Mx("0x77"),s))};if("deletion"==t[Mx("0x79")])return e.length?{type:Mx("0x12"),content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x10"),[s,'"'+e[Mx("0x42")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x5a"),Yo(n,Mx("0x77"),s))}}})),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x7f"),Mx("0x0"),r),o._suggestionFactory[Mx("0x35")](Mx("0x12"),Mx("0x7f"),"accept",r),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x32"),Mx("0x0"),a),o[Mx("0x39")][Mx("0x35")](Mx("0x12"),Mx("0x32"),Mx("0x48"),a),o._suggestionFactory[Mx("0x35")](Mx("0x50"),Mx("0x32"),Mx("0x42"),c),o[Mx("0x39")].registerCustomCallback(Mx("0x12"),Mx("0x32"),Mx("0x42"),c),o[Mx("0x39")][Mx("0x35")](Mx("0x50"),Mx("0x7f"),Mx("0x42"),l),o[Mx("0x39")][Mx("0x35")](Mx("0x12"),Mx("0x7f"),Mx("0x42"),l)}[Mx("0x80")](){const t=this[Mx("0x62")],e=t[Mx("0x30")][Mx("0x37")][Mx("0x27")];return(n,o)=>{t.model[Mx("0x23")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x82")][Mx("0x64")];x&&x[0]&&!1===x[0][Mx("0x76")]&&(a=n[0][Mx("0x7e")][Mx("0x72")]);const c=s[Mx("0xd")](a);if(Mx("0x13")==c.root[Mx("0x2f")])return;const l=Array[Mx("0x3")](e[Mx("0x6d")]())[Mx("0x4d")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x81")](c),t[Mx("0x40")].get(r)[Mx("0x6b")](),x[Mx("0x45")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x17")]((t=>Mx("0x13")!=t.root[Mx("0x2f")]));d[Mx("0x78")]>0&&s[Mx("0x81")](d);for(const t of l)t[Mx("0x7a")]()}))}}[Mx("0xa")](t){const e=this[Mx("0x62")][Mx("0x63")][Mx("0x4a")](Mx("0x5c"));let n=Number[Mx("0x21")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x21")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x13")==i[Mx("0x1f")][Mx("0x2f")])continue;const{row:t,column:x}=e[Mx("0x7c")](i),a=i[Mx("0x5f")]("rowspan")?i.getAttribute("rowspan")-1:0,c=i[Mx("0x5f")](Mx("0x75"))?i[Mx("0x1d")](Mx("0x75"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x3f")](){const t=this[Mx("0x62")],e=t[Mx("0x63")][Mx("0x4a")]("TrackChangesEditing"),n=t[Mx("0x63")].get(Mx("0x5c"));t.model[Mx("0x37")].on(Mx("0x3e"),(()=>{const n=Array[Mx("0x3")](t.model.document[Mx("0x33")][Mx("0x1c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x6c")](t);if(Mx("0x44")!=n)continue;if(null!=o[Mx("0x60")])continue;const i=e.getSuggestion(s);this[Mx("0x70")][Mx("0xb")](r)&&this[Mx("0x2e")][Mx("0x5d")](i)}}),{priority:Mx("0x58")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x6e")](t),r=t[Mx("0x5b")](Mx("0x2d")),i=n[Mx("0x7c")](t);for(const e of this[Mx("0x2e")]){const n=e[Mx("0x15")],x=n[Mx("0x29")](Mx("0x46")),a=n.substr(x?10:5),c=a[Mx("0x3a")](),l=c.substr(0,3)+Mx("0xe"),d=Mx("0x16")+a,u=Mx("0x57")+a;if(!e[Mx("0x4f")])continue;if(r!=e[Mx("0x1b")]()[Mx("0x7e")][Mx("0x5b")](Mx("0x2d")))continue;if(e[Mx("0x68")](s))continue;const g=t[Mx("0x5f")](l)?t[Mx("0x1d")](l)-1:0,m=this[Mx("0xc")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x30")][Mx("0x37")][Mx("0x36")]((e=>{let n=!1;for(const s of t[Mx("0x30")][Mx("0x37")][Mx("0x33")].getChanges())if("insert"==s[Mx("0x79")])if(Mx("0x7f")==s.name)for(const t of s[Mx("0x73")][Mx("0x72")][Mx("0x6f")]())n=n||o(t,e);else Mx("0x69")==s.name&&(n=n||o(s[Mx("0x73")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0xa")](t[Mx("0x6d")]()[Mx("0x4d")]((t=>t[Mx("0x7e")][Mx("0x72")])))}}function Ox(t){return Array[Mx("0x3")](new Set(t)[Mx("0x2")]())}const Fx=["table","type","*Merge cells*","registerDescriptionCallback","value","selection","TableUtils","has","containsRange","get","execute","map","editor","change","horizontally","forceDefaultExecution","registerCustomCallback","_descriptionFactory","element","TrackChangesEditing","document","size","getAncestors","createTableWalker","mergeTableCellUp","tableCell","getSuggestions","from","cell","set:isEnabled","splitTableCellVertically","model","mergeTableCellDown","setSelection","mergeTableCells","author","find","length","markBlockFormat","enableCommand","accept","markMultiRangeBlockFormat","locale","detach","requires","subType","mergeTableCellRight","formatBlock","splitTableCellHorizontally","refresh","insertion","getFirstPosition","_isForcedDefaultExecutionBlock","_suggestionFactory","TableEditing","isEnabled","root","$graveyard","getCellLocation","commands","mergeTableCellLeft","format","rootName","direction","_areMergableCells","_areSelectedCellsMergable","findAncestor","stop","_tablePostFixingSubtypes","commandName","plugins","fromRange","highest","getSelectionAffectedTableCells"];var Dx,Px;Dx=Fx,Px=178,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0xe")](){return[wx]}afterInit(){const t=this[Bx("0x38")],e=t[Bx("0x1")][Bx("0x40")][Bx("0x31")],n=t[Bx("0xc")];if(!t.plugins.has(Bx("0x18")))return;const o=t[Bx("0x28")][Bx("0x35")](Bx("0x3f")),s=t.plugins[Bx("0x35")](Bx("0x32")),r=t[Bx("0x28")][Bx("0x35")](wx);r[Bx("0x26")].push(Bx("0x4")),o[Bx("0x9")]("mergeTableCells",(()=>{const e=s.getSelectionAffectedTableCells(t[Bx("0x1")][Bx("0x40")][Bx("0x31")]);t[Bx("0x1")][Bx("0x39")]((()=>{o[Bx("0xb")](e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x4"))}))})),t.commands.get(Bx("0x4")).on(Bx("0x36"),((e,n)=>{t[Bx("0x1d")][Bx("0x35")]("trackChanges").value&&(n[Bx("0x7")]>0&&n[n.length-1]&&n[n[Bx("0x7")]-1][Bx("0x3b")]||o[Bx("0x16")]||this[Bx("0x23")]()||e[Bx("0x25")]())}),{priority:Bx("0x2a")});for(const e of[Bx("0x44"),Bx("0x10"),Bx("0x2"),Bx("0x1e")]){const n=t.commands[Bx("0x35")](e);o[Bx("0x9")](e,(()=>{const e=t[Bx("0x1")][Bx("0x40")][Bx("0x31")][Bx("0x15")]()[Bx("0x42")]()[Bx("0x6")]((t=>t.is(Bx("0x3e"),"tableCell"))),s=n[Bx("0x30")];t[Bx("0x1")][Bx("0x39")]((()=>{o[Bx("0xb")]([e,s],{commandName:Bx("0x4"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically",Bx("0x12")]){const n=t.commands[Bx("0x35")](e);o[Bx("0x9")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x1")][Bx("0x40")][Bx("0x31")])[0],i=r[Bx("0x24")](Bx("0x2c")),{column:x,row:a}=s[Bx("0x1c")](r);let c=[];if(Bx("0x3a")==n[Bx("0x21")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x37")]((t=>t[Bx("0x48")]))}else{const t=s[Bx("0x43")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x37")]((t=>t[Bx("0x48")]))}t.model.change((t=>{o[Bx("0x8")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x4")==e[Bx("0x27")]?{type:Bx("0x1f"),content:Yo(n,Bx("0x2e"))}:void 0})),o[Bx("0x3d")][Bx("0x2f")]((t=>{const{data:e}=t;if(e)return Bx("0x0")==e.commandName?{type:Bx("0x1f"),content:Yo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e.commandName?{type:Bx("0x1f"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0x44"),"mergeTableCellRight",Bx("0x2"),Bx("0x1e")])o[Bx("0x17")].registerCustomCallback(Bx("0x11"),t,Bx("0xa"),x);for(const t of[Bx("0x0"),Bx("0x12")])o[Bx("0x17")][Bx("0x3c")]("formatBlock",t,Bx("0xa"),x);o[Bx("0x17")][Bx("0x3c")](Bx("0x11"),Bx("0x4"),Bx("0xa"),(n=>{t.model[Bx("0x39")]((o=>{const s=Array[Bx("0x47")](e.getRanges()).map((t=>i.LiveRange[Bx("0x29")](t)));o.setSelection(n),t[Bx("0x1d")][Bx("0x35")](Bx("0x4"))[Bx("0x13")](),t.execute(Bx("0x4"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x1b")!=t[Bx("0x1a")][Bx("0x20")]));r[Bx("0x7")]>0&&o[Bx("0x3")](r);for(const t of s)t[Bx("0xd")]()}))}));for(const e of[Bx("0x44"),Bx("0x2"),"mergeTableCellLeft",Bx("0x10")]){const n=t[Bx("0x1d")][Bx("0x35")](e);n.on(Bx("0x49"),((e,o,s)=>{if(s){const o=t.model.document.selection[Bx("0x15")]()[Bx("0x42")]()[Bx("0x6")]((t=>t.is(Bx("0x3e"),Bx("0x45"))));this._areMergableCells(n[Bx("0x30")],o)||(e.return=!1,e[Bx("0x25")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[Bx("0x38")][Bx("0x1d")][Bx("0x35")]("mergeTableCells"),e=this[Bx("0x38")][Bx("0x28")][Bx("0x35")](Bx("0x32"));if(!t[Bx("0x19")])return!1;const n=e[Bx("0x2b")](this[Bx("0x38")][Bx("0x1")].document[Bx("0x31")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x22")](t,e){const n=this[Bx("0x38")][Bx("0x28")][Bx("0x35")](Bx("0x3f")),o=this[Bx("0x38")][Bx("0x1")].createRangeOn(t),s=this.editor.model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x46")]())if((Bx("0x14")==t[Bx("0x2d")]||"deletion"==t[Bx("0x2d")]||Bx("0x4")==t[Bx("0xf")])&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&r.add(t[Bx("0x2d")]+":"+t.author.id),e[Bx("0x34")](s,!0)&&i.add(t.type+":"+t[Bx("0x5")].id);if(r[Bx("0x41")]!=i[Bx("0x41")])return!1;for(const t of r)if(!i[Bx("0x33")](t))return!1;return!0}}const Ux=["commandName","index","accept","commands","isBefore","nodeBefore","requires","setTableRowHeader","editing","includes","_acceptFormatSuggestionCallbackFactory","document","headingColumns","getSelectionAffectedTableCells","setAttribute","createTableWalker","highest","downcastDispatcher","mapper","get","stop","nodeAfter","ck-suggestion-marker-","data","ck-suggestion-marker--active","unbindElementFromMarkerName","getChild","forceValue","getAttribute","FORMAT_HEADER_ROW","createPositionBefore","cell","removeMarker:suggestion","markerName","has","from","value","editor","plugins","FORMAT_REGULAR_COLUMN","table","model","start","options","headingRows","parent","setTableColumnHeader","writer","toViewElement","registerDescriptionCallback","markBlockFormat","change","getColumnIndexes","childCount","getSuggestion","last","_descriptionFactory","data-suggestion","name","getCellLocation","FORMAT_REGULAR_ROW","markerNameToElements","getRowIndexes","commandParams","addMarker:suggestion","findAncestor","_suggestionFactory","first","TableEditing","_splitMarkerName","consumable","createRange","markerRange","removeClass","createPositionAfter","registerCustomCallback","bindElementToMarker","formatBlock","TableUtils","TrackChangesEditing"];var Gx,Hx;Gx=Ux,Hx=477,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("0x9")](){return[wx]}afterInit(){const t=this[zx("0x28")];if(!t[zx("0x29")][zx("0x25")](zx("0x47")))return;const e=t.locale,n=t[zx("0x29")][zx("0x16")](zx("0x2")),o=t[zx("0x29")][zx("0x16")](zx("0x1")),s=t.plugins[zx("0x16")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x48")](r[zx("0x24")]),c=n[zx("0x39")](a);if(!c[zx("0x1a")]||"setTableColumnHeader"!=c.data[zx("0x3")])return;if(r.item)return void s[zx("0x17")]();if(!i[zx("0x49")].consume(r[zx("0x4b")],s[zx("0x3d")]))return;const l=r.markerRange[zx("0x2d")][zx("0x18")],d=r[zx("0x4b")].end[zx("0x8")],u=l[zx("0x30")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x12")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x15")][zx("0x33")](s);i.writer.addClass(zx("0x19")+x,c),e&&i[zx("0x32")][zx("0x11")](zx("0x3c"),a,c),i[zx("0x15")][zx("0x4f")](c,r[zx("0x24")]),t&&(n.activeMarkers[zx("0xc")](r[zx("0x24")])?i[zx("0x32")].addClass(zx("0x1b"),c):i[zx("0x32")][zx("0x4c")](zx("0x1b"),c))}}}}n.enableCommand("setTableRowHeader",((e,s)=>{const r=o[zx("0x10")](t[zx("0x2c")][zx("0xe")].selection),i=o[zx("0x41")](r),x=r[0][zx("0x44")](zx("0x2b")),a=x[zx("0x1f")](zx("0x2f"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x6")][zx("0x16")](zx("0xa"))[zx("0x27")],l=c?i[zx("0x3a")]:i[zx("0x46")],d=x[zx("0x1d")](l);let u;if(c){const e=x[zx("0x1d")](a);if(d[zx("0x4")]<e[zx("0x4")])return;u=t.model[zx("0x4a")](t[zx("0x2c")][zx("0x21")](e.getChild(0)),t[zx("0x2c")][zx("0x4d")](d[zx("0x1d")](d[zx("0x38")]-1)))}else{const e=x[zx("0x1d")](a-1);if(!e)return;u=t[zx("0x2c")][zx("0x4a")](t[zx("0x2c")][zx("0x21")](d[zx("0x1d")](0)),t.model[zx("0x4d")](e[zx("0x1d")](e.childCount-1)))}t.model.change((()=>{n[zx("0x35")](u,{commandName:zx("0xa"),commandParams:[{forceValue:c}]},[],zx("0xa"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[zx("0x29")][zx("0x16")](zx("0x1")),r=s.getSelectionAffectedTableCells(t.model[zx("0xe")].selection),i=s[zx("0x37")](r),x=r[0][zx("0x44")](zx("0x2b")),a=x[zx("0x1f")](zx("0xf"))||0,c=o&&null!==o.forceValue?o[zx("0x1e")]:!t.commands.get(zx("0x31"))[zx("0x27")];let l;const d=x.getChild(0),u=c?i[zx("0x3a")]:i[zx("0x46")],g=s[zx("0x12")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x22")];if(c){const e=d[zx("0x1d")](a);if(m[zx("0x7")](e))return;l=t[zx("0x2c")].createRange(t[zx("0x2c")][zx("0x21")](e),t[zx("0x2c")][zx("0x4d")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x2c")][zx("0x4a")](t[zx("0x2c")][zx("0x21")](m),t[zx("0x2c")][zx("0x4d")](e))}t[zx("0x2c")][zx("0x36")]((()=>{n.markBlockFormat(l,{commandName:zx("0x31"),commandParams:[{forceValue:c}]},[],zx("0x31"))}))})),t[zx("0xb")][zx("0x14")].on("addMarker:suggestion",r(),{priority:zx("0x13")}),t[zx("0x1a")][zx("0x14")].on(zx("0x43"),((t,e,n)=>{n[zx("0x2e")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x13")}),t.editing.downcastDispatcher.on(zx("0x23"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x24")]),i=n.getSuggestion(r);if(!i.data||zx("0x31")!=i[zx("0x1a")][zx("0x3")])return;const x=o.mapper[zx("0x40")](e[zx("0x24")]);if(x)for(const t of x)o.writer.removeClass(zx("0x19")+s,t),o[zx("0x32")][zx("0x4c")](zx("0x1b"),t),o[zx("0x32")].removeAttribute(zx("0x3c"),t),o.mapper[zx("0x1c")](t,e[zx("0x24")])}),{priority:zx("0x13")}),n[zx("0x3b")][zx("0x34")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x3")]){const t=n[zx("0x42")][0].forceValue;return o(Yo(e,zx(t?"0x20":"0x3f")))}if(zx("0x31")==n[zx("0x3")]){const t=n[zx("0x42")][0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x2a")))}}function o(t){return{type:"format",content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0xd")]();n._suggestionFactory[zx("0x4e")]("formatBlock",zx("0xa"),zx("0x5"),i),n[zx("0x45")][zx("0x4e")](zx("0x0"),zx("0x31"),zx("0x5"),i)}}const Vx=["insertion","suggestion:formatBlock:tablePasteCell","has","getShiftedBy","low","batch","markMultiRangeInsertion","createRangeOn","getItems","model","locale","keys","formatBlock","createRange","entries","oldRange","name","createElement","createRangeIn","activeMarkers","isEqual","from","type","TableClipboard","element","tableCellSuggestion","getContainedElement","last","getRanges","_tablePostFixingSubtypes","first","deletion","clipboardOutput","move","ck-suggestion-marker","suggestionUnloaded","markerName","tablePasteCell","columnInsertionRanges","startsWith","tableCellPadding","ck-suggestion-marker--active","root","getSuggestion","containsRange","getSuggestionCallback","column","table","insertContent","subType","tablePasteRow","rowInsertionIndexes","plugins","_createdBatches","newRange","_replaceTableSlotCell","endRow","registerDescriptionCallback","hasSuggestion","getChild","suggestion-td","high","nextSibling","redo","*Replace table cells*","find","columns","commands","suggestion","filter","join","TableUtils","remove","includes","createPositionBefore","getRowIndexes","isEmpty","_suggestionFactory","removeMarkers","view","getTableIfOnlyTableInContent","previous","content","for","register","insertRows","getSuggestions","change","fromEntries","tablePaste","discard","get","tableCellBorderColor","createTableWalker","Users","some","tableCellBorderWidth","getSelectionAffectedTableCells","length","tableCell","removeRows","add","nodeAfter","rows","editor","_descriptionFactory","previousSibling","getChildren","rootName","showSuggestionHighlights","afterInit","tableCellVerticalAlignment","removeMarker","_splitMarkerName","documentSelection","tablePasteColumn","row","schema","markerToHighlight","getMarkers","_getCoordsForCells","set","position","fill","value","getAllAdjacentSuggestions","markMultiRangeDeletion","reduce","isInContent","push","listenTo","document","markerAttributes","columnInsertionIndexes","getAttributes","getChangedMarkers","return","_isForcedDefaultExecutionBlock","attributes","getRange","paragraph","map","unwrap","elementToElement","differ","dataDowncast","registerPostFixer","tablePasteChainId","TrackChangesEditing","cells","end","insert","setAttribute","conversion","accept","suggestionLoaded","tableCellHorizontalAlignment","registerCustomCallback","findAncestor"];var Kx,qx;Kx=Vx,qx=387,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x1b"),Xx("0x17"),"tableCellBorderStyle",Xx("0x57"),Xx("0x2a"),"tableCellBackgroundColor",Xx("0x82")],Jx=Object[Xx("0x13")]($x[Xx("0x48")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[Xx("0x29")](){const t=this[Xx("0x23")];if(!t[Xx("0x8e")][Xx("0x5c")]("TableClipboard"))return;const n=t[Xx("0x8e")][Xx("0x16")](Xx("0x4f")),o=t[Xx("0x8e")][Xx("0x16")](Xx("0x2")),s=t[Xx("0x8e")][Xx("0x16")](wx),r=t[Xx("0x8e")][Xx("0x16")](Xx("0x71"));s[Xx("0x77")][Xx("0x3c")](Xx("0x8c"),"tablePasteColumn"),t[Xx("0x63")][Xx("0x30")][Xx("0xf")](Xx("0x73"),{allowIn:Xx("0x1e"),allowContentOf:Xx("0x1e"),isLimit:!0}),t[Xx("0x54")][Xx("0x4a")]({model:Xx("0x73"),view:Xx("0x96")});let i=null;t[Xx("0x63")].on(Xx("0x8a"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x1d")]-1];l&&l.forceDefaultExecution||n[Xx("0x44")]||this[Xx("0x23")].commands[Xx("0x16")]("trackChanges")[Xx("0x37")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2d")))return!1;const r=s[Xx("0xb")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x1c")](n[Xx("0x3e")].selection);if(!i[Xx("0x1d")])return!1;const x=i[0].findAncestor(Xx("0x89")),a=o[Xx("0x6")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x78")],endRow:a[Xx("0x75")],startColumn:c[Xx("0x78")],endColumn:c[Xx("0x75")]};return 1==i.length&&(l[Xx("0x92")]+=o.getRows(r)-1,l.endColumn+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x63")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x63")][Xx("0x12")]((()=>{t[Xx("0x63")][Xx("0x8a")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x60")](s,Xx("0x8c"),{tablePasteChainId:o}),r.length&&n[Xx("0x60")](r,Xx("0x2e"),{tablePasteChainId:o}),a[Xx("0x1d")]&&n[Xx("0x60")](a,Xx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x1d")]&&n[Xx("0x39")](c,Xx("0x14"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x48")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x7f"),{tablePasteChainId:o});if(d){const e=d[Xx("0x32")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x61")](o),i=e.find((t=>t[Xx("0x46")]()[Xx("0x6e")](r)));i&&n[Xx("0x3c")]([i.name,s])}n[Xx("0x1d")]&&d[Xx("0x53")]("markerAttributes",Object.fromEntries(n))}i=null})))}),{priority:e.priorities.high+10}),t[Xx("0x8e")][Xx("0x16")](Xx("0x71")).on(Xx("0x91"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x43")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r.getChild(0));for(const t of Array[Xx("0x6f")](x.getChildren()))s[Xx("0x52")](t,r,Xx("0x51"));const t=i[Xx("0x8d")][Xx("0x4")](n[Xx("0x2f")]),e=i[Xx("0x40")][Xx("0x4")](n[Xx("0x88")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x6c")](r));else{const t=s[Xx("0x6b")]("tableCellSuggestion"),e=s[Xx("0x6b")](Xx("0x73"));s.wrap(s.createRangeIn(r),e),s[Xx("0x52")](t,r,0);for(const e of Array[Xx("0x6f")](x[Xx("0x26")]()))s.insert(e,t,Xx("0x51"));l=s[Xx("0x61")](t),d=s.createRangeOn(e)}const u=Array[Xx("0x6f")](x[Xx("0x41")]())[Xx("0x0")]((([t])=>$x[Xx("0x4")](t)));i[Xx("0x50")][Xx("0x3c")]({element:r,attributes:u[Xx("0x1d")]?Object[Xx("0x13")](u):null}),l&&i.insertionRanges[Xx("0x3c")](l),d&&i.deletionRanges[Xx("0x3c")](d)}),{priority:Xx("0x97")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9c")]||1;i[Xx("0x40")]=new Array(a)[Xx("0x36")](x)[Xx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x18")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x80")][Xx("0x3c")](t[Xx("0x63")][Xx("0x61")](e))}),{priority:"low"}),o.on(Xx("0x10"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x22")]||1;i[Xx("0x8d")]=new Array(a)[Xx("0x36")](x)[Xx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x18")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[Xx("0x63")][Xx("0x61")](e))}),{priority:Xx("0x5e")}),n[Xx("0x24")][Xx("0x93")]((e=>{if(e[Xx("0x8b")]&&e.subType[Xx("0x81")](Xx("0x14")))return e[Xx("0xc")]?{}:{type:Xx("0x5a"),content:Yo(t[Xx("0x64")],Xx("0x9a"))}}));const x=()=>!1;for(const t of["tablePaste","tablePasteColumn",Xx("0x8c"),Xx("0x7f")])n[Xx("0x8")].registerCustomCallback(Xx("0x5a"),t,Xx("0x1"),x),n[Xx("0x8")].registerCustomCallback(Xx("0x79"),t,Xx("0x1"),x),n._suggestionFactory[Xx("0x58")](Xx("0x66"),t,Xx("0x1"),x);n[Xx("0x8")][Xx("0x58")](Xx("0x66"),Xx("0x7f"),"discard",x),n[Xx("0x8")][Xx("0x58")](Xx("0x66"),Xx("0x7f"),Xx("0x55"),((e,n,o)=>{const s=e[Xx("0x48")]((t=>t[Xx("0x74")]())).filter((t=>t)),r=new Map(s[Xx("0x48")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x50")])e&&r[Xx("0x34")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x68")](o[Xx("0x3f")])){const o=t.model.markers[Xx("0x16")](e),s=o?o.getRange()[Xx("0x74")]():null;s&&r.set(s,n)}t[Xx("0x63")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x8")][Xx("0x58")](e,Xx("0x14"),o,((s,r,i)=>{t[Xx("0x63")][Xx("0x12")]((t=>{const x=[];for(const t of s){const e=t.start[Xx("0x21")];e.is(Xx("0x72"),Xx("0x73"))&&x[Xx("0x3c")](e)}n[Xx("0x8")][Xx("0x87")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Xx("0x84")][Xx("0x27")]&&t[Xx("0x49")](e)}))}))};a(Xx("0x5a"),"accept"),a(Xx("0x5a"),Xx("0x15")),a(Xx("0x79"),"accept"),a(Xx("0x79"),"discard"),n[Xx("0x8")][Xx("0x58")](Xx("0x5a"),Xx("0x8c"),Xx("0x15"),(t=>{const e=t[Xx("0x48")]((t=>t[Xx("0x74")]())),n=e[0][Xx("0x59")](Xx("0x89")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x1f")](n,{at:r,rows:i-r+1})})),n[Xx("0x8")][Xx("0x58")]("insertion",Xx("0x2e"),Xx("0x15"),(t=>{const e=t[Xx("0x48")]((t=>t.getContainedElement())),n=e[0][Xx("0x59")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x33")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x8b")]||!e[Xx("0x8b")].startsWith(Xx("0x14")))return;const o=e[Xx("0x45")][Xx("0x4e")],s=n[Xx("0x11")]().filter((t=>t[Xx("0x3b")]&&t.attributes&&t[Xx("0x45")].tablePasteChainId==o));s.length&&e[Xx("0x38")]()[Xx("0x1d")]!=s[Xx("0x1d")]&&s[Xx("0x3a")](((t,e)=>(t.next=e,e[Xx("0xc")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x2c")](t[Xx("0x7e")]),s=[Xx("0x7c"),"ck-suggestion-marker-insertion"],r=n[Xx("0x6d")].includes(t.markerName);return r&&s[Xx("0x3c")](Xx("0x83")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x56"),c,{priority:Xx("0x97")}),n.on(Xx("0x7d"),c,{priority:Xx("0x97")}),t[Xx("0x63")].document[Xx("0x4d")]((()=>{let e=!1;const o=Array[Xx("0x6f")](t[Xx("0x63")].document[Xx("0x4b")][Xx("0x42")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x2c")](s);if(Xx("0x9e")!=o||Xx("0x79")!=i||r[Xx("0x69")])continue;if(!n[Xx("0x94")](x))continue;const a=n[Xx("0x85")](x)[Xx("0x76")](),c=t[Xx("0x8e")].get(Xx("0x19")).me;for(const t of n[Xx("0x11")]())if(t[Xx("0x3b")]&&t.author==c&&"formatBlock"==t[Xx("0x70")]&&Xx("0x7f")==t[Xx("0x8b")]&&t.getRanges().every((t=>a[Xx("0x1a")]((e=>e[Xx("0x86")](t,!0))))))for(const n of t[Xx("0x38")]())n.isInContent&&(n[Xx("0x15")](),e=!0)}return e})),t[Xx("0x63")][Xx("0x3e")][Xx("0x4d")]((e=>{const o=t[Xx("0x9d")].get(Xx("0x99"));if(!o||!o[Xx("0x8f")][Xx("0x5c")](e[Xx("0x5f")]))return!1;let s=!1;const r=t[Xx("0x8e")][Xx("0x16")](Xx("0x19")).me,i=t[Xx("0x63")].document[Xx("0x4b")].getChanges(),x=Array[Xx("0x6f")](t.model.document[Xx("0x4b")][Xx("0x42")]())[Xx("0x0")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x2c")](t);return Xx("0x9e")==o&&Xx("0x14")==s&&i==r.id&&!e[Xx("0x69")]}));for(const t of i){if("insert"!=t[Xx("0x70")]||Xx("0x73")!=t[Xx("0x6a")]||1!=t[Xx("0x1d")])continue;const n=e[Xx("0x67")](t[Xx("0x35")],t[Xx("0x35")][Xx("0x5d")](1));if(!x[Xx("0x9b")]((({data:t})=>t[Xx("0x90")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x86")](o[Xx("0x90")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x63")].document[Xx("0x4d")]((e=>{let o=!1;const s=t.plugins[Xx("0x16")]("Users").me,r=n[Xx("0x11")]()[Xx("0x0")]((t=>t[Xx("0x3b")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x14")==t[Xx("0x8b")])for(const e of t[Xx("0x32")]()){const n=e[Xx("0x46")]().getContainedElement();if(n)if(n.is(Xx("0x72"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x2b")](e[Xx("0x6a")]),i[Xx("0x20")](n),o=!0;const s=n[Xx("0x98")],r=n[Xx("0x25")],a=s&&s.is(Xx("0x72"),"tableCellSuggestion"),c=r&&r.is(Xx("0x72"),Xx("0x73"));a&&!i[Xx("0x5c")](s)&&x[Xx("0x20")](s),c&&!i.has(r)&&x[Xx("0x20")](r)}else n.is(Xx("0x72"),"paragraph")&&n[Xx("0x7")]&&(t[Xx("0x2b")](e[Xx("0x6a")]),o=!0)}else if(Xx("0x7f")==t.subType){if(!t.attributes||!t.attributes[Xx("0x4e")])continue;const e=t[Xx("0x45")][Xx("0x3f")];if(e&&Object[Xx("0x65")](e).length)continue;const n=t[Xx("0x45")][Xx("0x4e")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x8b")]&&e[Xx("0x8b")][Xx("0x81")](Xx("0x14"))){if(!e[Xx("0x45")][Xx("0x4e")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x4e")]==n){s=!1;break}}i&&s&&(t[Xx("0x9")](),o=!0)}for(const t of i)e[Xx("0x3")](t);for(const t of x)e[Xx("0x49")](t);return o})),t[Xx("0x54")].for("editingDowncast")[Xx("0x31")]({model:Xx("0x5b"),view:(t,e)=>l(t),converterPriority:Xx("0x97")}),t.conversion[Xx("0xe")](Xx("0x4c")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[Xx("0x28")]?l(t,!1):null,converterPriority:Xx("0x97")});const d=t.editing[Xx("0xa")];this[Xx("0x3d")](d[Xx("0x3e")],Xx("0x7a"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xx("0xd")])[Xx("0x62")]())t.is(Xx("0x72"),"suggestion-td")&&n[Xx("0x3c")](t);d[Xx("0x12")]((t=>{for(const e of n)t[Xx("0x7b")](t[Xx("0x6c")](e),t[Xx("0x5")](e)),t[Xx("0x3")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x95")](0);return e.is(Xx("0x72"),Xx("0x47"))&&e[Xx("0x7")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x18")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getSuggestionCallback","bind","accept","document","*Format:* resize table","formatBlock","getContainedElement","formatGroupId","markBlockFormat","afterInit","getAttribute","author","Users","handleResizeTableWidthCommand","get","plugins","table","change","has","getColumnGroupElement","selection","subType","_descriptionFactory","editor","commandParams","resizeTable","TrackChangesEditing","model","handleSuggestionDescription","discard","TableColumnResizeEditing","tableWidth","_suggestionFactory","getSuggestions","registerCustomCallback","locale","getSelectedElement","format"];var ea,na;ea=ta,na=148,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xd")](){if(!this[oa("0x1b")][oa("0x13")][oa("0x16")](oa("0x22")))return;const t=this[oa("0x1b")][oa("0x13")].get(oa("0x1e"));t.enableCommand("resizeTableWidth",this[oa("0x11")][oa("0x5")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x11")][oa("0x5")](this)),t[oa("0x24")][oa("0x0")](oa("0x9"),oa("0x1d"),oa("0x6"),t[oa("0x24")][oa("0x4")]("formatBlock",null,oa("0x21"))),t._suggestionFactory.registerCustomCallback(oa("0x9"),"resizeTable",oa("0x21"),t[oa("0x24")][oa("0x4")]("formatBlock",null,oa("0x6"))),t[oa("0x1a")].registerDescriptionCallback(this[oa("0x20")][oa("0x5")](this))}[oa("0x11")](t,e){const n=this[oa("0x1b")][oa("0x13")][oa("0x12")]("TrackChangesEditing"),o=this[oa("0x1b")][oa("0x13")].get(oa("0x22")),s=e[oa("0x14")]||this.editor[oa("0x1f")][oa("0x7")][oa("0x18")][oa("0x2")]();this.editor[oa("0x1f")][oa("0x15")]((()=>{const r=o[oa("0x17")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0xe")](oa("0x23"))||null;const a=e[oa("0x23")]||x,c=e.columnWidths||i,l=this[oa("0x1b")].plugins[oa("0x12")](oa("0x10")).me;for(const t of n[oa("0x25")]()){const e=t[oa("0xa")]();if(oa("0x1d")===t[oa("0x19")]&&e===s){t[oa("0xf")]!==l&&t[oa("0x21")]();const e=t.data[oa("0x1c")];x=e[0].tableWidth,i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xc")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xb")]){const t=oa("0x8");return{type:oa("0x3"),content:Yo(this[oa("0x1b")][oa("0x1")],t)}}}}const ra=["Template","enableCommand","insertTemplate","has","editor","plugins","get"];var ia,xa;ia=ra,xa=403,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x0")];t[aa("0x1")][aa("0x6")](aa("0x3"))&&t[aa("0x1")][aa("0x2")]("TrackChangesEditing")[aa("0x4")](aa("0x5"))}}const la=["registerElementLabel","insertTableOfContents","TrackChangesEditing","get","editor","plugins","commands","ELEMENT_TABLE_OF_CONTENTS","afterInit","tableOfContents","locale"];var da,ua;da=la,ua=194,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this[ga("0x8")];if(!t[ga("0xa")].get("insertTableOfContents"))return;t.plugins[ga("0x7")](ga("0x6")).enableCommand(ga("0x5"));const e=t[ga("0x9")][ga("0x7")](ga("0x6")),n=t[ga("0x3")];e._descriptionFactory[ga("0x4")](ga("0x2"),(t=>Yo(n,ga("0x0"),t)))}}const fa=["locale","_descriptionFactory","isTouching","createRange","getNearestSelectionRange","editor","model","differ","schema","end","element","updateMarker","Title","suggestion","get","from","plugins","document","has","title-content","newRange","afterInit","start","nodeBefore","removeMarker","TrackChangesEditing"];var ha,pa;ha=fa,pa=454,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x9")](){const t=this[ba("0x13")];if(!t[ba("0x4")][ba("0x6")](ba("0x0")))return;const e=t[ba("0x4")][ba("0x2")](ba("0xd"));e[ba("0xf")].registerElementLabel("title-content",(()=>Yo(t[ba("0xe")],"ELEMENT_TITLE"))),t[ba("0x14")][ba("0x5")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x14")][ba("0x5")][ba("0x15")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x1")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x.end[ba("0xb")];if(!a||!a.is(ba("0x18"),ba("0x7")))continue;if(!x[ba("0xa")][ba("0x10")](x[ba("0x17")]))continue;const c=t[ba("0x14")][ba("0x16")][ba("0x12")](x[ba("0x17")],"forward");if(c&&c.isCollapsed){const t=n[ba("0x11")](x[ba("0xa")],c[ba("0xa")]);t.isEqual(x)||(n[ba("0x19")](r,{range:t}),o=!0)}o||(n[ba("0xc")](r),o=!0)}return o}))}}const _a=["has","TrackChangesEditing","redo","undo","plugins","editor","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=318,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x7")],e=t[ya("0x6")][ya("0x0")](ya("0x3"));t.plugins[ya("0x2")]("UndoEditing")&&(e[ya("0x1")](ya("0x5")),e[ya("0x1")](ya("0x4")))}}const Aa=["requires","TrackChangesEditing","TableCaptionEditing","plugins","enableCommand","get","toggleTableCaption"];var va,Ra;va=Aa,Ra=372,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x6")](){return[wx]}afterInit(){const t=this.editor;t[Sa("0x2")].has(Sa("0x1"))&&t.plugins[Sa("0x4")](Sa("0x0"))[Sa("0x3")](Sa("0x5"))}}const La=["reversed","numbered","toUpperCase","_LIST_","listReversed","model","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","getAttribute","_getTranslationKeyForListStyle","listStart","handleListStartCommand","markMultiRangeBlockFormat","replace","editor","change","handleListReversedCommand","document","commandParams","push","_getSuggestionBlocks","get","DocumentListUtils","ELEMENT_","enableCommand","afterInit","getSelectedBlocks","*Format:* set order to reversed","has","getListTypeFromListStyleType","handleDescriptions","format","listStyle","DocumentListPropertiesUtils","isListItemBlock","isFirstBlockOfListItem","from","bind","*Format:* set order to regular","*Format:* set start index to %0","startIndex","length","TrackChangesEditing","listType","expandListBlocksToCompleteList","plugins","*Change to:* %0","handleListStyleCommand","config","locale","styles"];var Na,Ma;Na=La,Ma=426,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x7")](){if(!this[wa("0x2f")][wa("0x1b")][wa("0xa")](wa("0x27")))return;const t=this[wa("0x2f")][wa("0x1e")].get("list.properties"),e=this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0x18"));t[wa("0x20")]&&e[wa("0x6")](wa("0xe"),this[wa("0x1d")][wa("0x13")](this)),t[wa("0x21")]&&e[wa("0x6")](wa("0x25"),this.handleListReversedCommand.bind(this)),t[wa("0x16")]&&e[wa("0x6")](wa("0x2b"),this[wa("0x2c")][wa("0x13")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions.bind(this))}[wa("0x1d")](t,e={}){const n=this[wa("0x2f")].plugins[wa("0x3")]("TrackChangesEditing"),o=this[wa("0x28")]();this[wa("0x2f")][wa("0x26")][wa("0x30")]((()=>{n[wa("0x2d")](o,{commandName:wa("0xe"),commandParams:[{type:e.type}],formatGroupId:wa("0xe")})}))}[wa("0x31")](t,e={}){const n=this.editor[wa("0x1b")][wa("0x3")](wa("0x18")),o=this.editor[wa("0x1b")][wa("0x3")](wa("0x4")),s=this._getSuggestionBlocks((t=>o[wa("0x10")](t)&&wa("0x22")===t[wa("0x29")]("listType")));null!==s&&this[wa("0x2f")][wa("0x26")][wa("0x30")]((()=>{n[wa("0x2d")](s,{commandName:wa("0x25"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x25")})}))}[wa("0x2c")](t,e={}){const n=this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0x18")),o=this.editor[wa("0x1b")][wa("0x3")](wa("0x4")),s=this._getSuggestionBlocks((t=>o[wa("0x10")](t)&&wa("0x22")===t[wa("0x29")](wa("0x19"))));null!==s&&this.editor.model.change((()=>{n[wa("0x2d")](s,{commandName:wa("0x2b"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wa("0x2b")})}))}[wa("0xc")](t){const e=this[wa("0x2f")][wa("0x1f")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0xe"):o=wa("0x1c"),s={type:wa("0xd"),content:Yo(e,o,Yo(e,this[wa("0x2a")](n[wa("0x0")][0].type)))};break;case wa("0x25"):o=n[wa("0x0")][0][wa("0x21")]?wa("0x9"):wa("0x14"),s={type:"format",content:Yo(e,o)};break;case wa("0x2b"):o=wa("0x15"),s={type:wa("0xd"),content:Yo(e,o,n.commandParams[0][wa("0x16")])}}return s}[wa("0x28")](){const t=this[wa("0x2f")].plugins[wa("0x3")]("DocumentListUtils");let e=Array.from(this[wa("0x2f")][wa("0x26")][wa("0x32")].selection[wa("0x8")]());return e[wa("0x1")](...t[wa("0x1a")](e)),e=[...new Set(e)],e}[wa("0x2")](t){const e=this[wa("0x2f")].plugins.get(wa("0x4"));let n=Array[wa("0x12")](this.editor[wa("0x26")][wa("0x32")].selection.getSelectedBlocks()).filter(t);if(!n[wa("0x17")])return null;n=e[wa("0x1a")](n);const o=[];for(const t of n)e[wa("0x11")](t)&&o[wa("0x1")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x5")+this[wa("0x2f")][wa("0x1b")][wa("0x3")](wa("0xf"))[wa("0xb")](t)[wa("0x23")]()+wa("0x24")+t.toUpperCase()[wa("0x2e")](/-/g,"_")}}const Fa=["join","change","registerDescriptionCallback","locale","plugins","TrackChangesEditing","tableCellWidth","getAttribute","selection","editor","*Format:* change table cell properties","enableCommand","getFirstPosition","tableBorderColor","get","table","tableCellBorderStyle","accept","tableCellVerticalAlignment","enqueueChange","formatBlock","_descriptionFactory","data","subType","_suggestionFactory","discard","tableCellBorderColor","_getSuggestion","tableAlignment","pluginName","TrackChangesTableProperties","TablePropertiesEditing","model","getSuggestionCallback","tableBorderWidth","batch","findAncestor","tableProperties","setAttribute","tableWidth","registerCustomCallback","format","tableCellProperties","handleSuggestionDescription","has","start","_handlePropertyChange","handleDiscardAction","tableCellBorderWidth","tableCellHeight","getSelectionAffectedTableCells","TableCellPropertiesEditing","tableCellPadding"];var Da,Pa;Da=Fa,Pa=387,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x15")]=[Ba("0x32"),"tableBorderStyle",Ba("0x12"),Ba("0xc"),Ba("0x17"),"tableHeight","tableBackgroundColor"],this.tableCellProperties=[Ba("0xa"),Ba("0x0"),Ba("0x20"),Ba("0x24"),Ba("0x2b"),Ba("0x21"),"tableCellBackgroundColor","tableCellHorizontalAlignment",Ba("0x2")]}static get[Ba("0xd")](){return Ba("0xe")}afterInit(){const t=this[Ba("0x2e")][Ba("0x29")].get(Ba("0x2a"));if(this[Ba("0x2e")].plugins[Ba("0x1c")](Ba("0xf"))){for(const e of this[Ba("0x15")])t[Ba("0x30")](e,((t,n)=>{const o=this[Ba("0x2e")][Ba("0x10")].document[Ba("0x2d")][Ba("0x31")]()[Ba("0x14")](Ba("0x34"));this[Ba("0x1e")](e,[o],this[Ba("0x15")],Ba("0x15"),t,n)}));t[Ba("0x8")][Ba("0x18")](Ba("0x4"),Ba("0x15"),Ba("0x1"),t[Ba("0x8")][Ba("0x11")]("formatBlock",null,Ba("0x9"))),t[Ba("0x8")][Ba("0x18")](Ba("0x4"),Ba("0x15"),Ba("0x9"),((t,e)=>this[Ba("0x1f")](this[Ba("0x15")],t,e))),t[Ba("0x8")][Ba("0x18")]("formatBlock",Ba("0x15"),Ba("0x25"),(()=>!1))}if(this.editor[Ba("0x29")][Ba("0x1c")](Ba("0x23"))){for(const e of this[Ba("0x1a")])t[Ba("0x30")](e,((t,n)=>{const o=this.editor[Ba("0x29")][Ba("0x33")]("TableUtils")[Ba("0x22")](this[Ba("0x2e")][Ba("0x10")].document.selection);this[Ba("0x1e")](e,o,this[Ba("0x1a")],Ba("0x1a"),t,n)}));t[Ba("0x8")].registerCustomCallback(Ba("0x4"),Ba("0x1a"),Ba("0x1"),t[Ba("0x8")][Ba("0x11")](Ba("0x4"),null,Ba("0x9"))),t[Ba("0x8")][Ba("0x18")](Ba("0x4"),"tableCellProperties",Ba("0x9"),((t,e)=>this[Ba("0x1f")](this[Ba("0x1a")],t,e))),t[Ba("0x8")][Ba("0x18")]("formatBlock",Ba("0x1a"),Ba("0x25"),(()=>!1))}t[Ba("0x5")][Ba("0x27")]((t=>this[Ba("0x1b")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x2e")][Ba("0x29")].get("TrackChangesEditing");this.editor[Ba("0x10")][Ba("0x3")](r[Ba("0x13")],(()=>{for(const t of e)if(this[Ba("0xb")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2c")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x1f")](t,e,n){const o=e[0][Ba("0x1d")].nodeAfter,s=n.commandParams[0];this[Ba("0x2e")][Ba("0x10")][Ba("0x26")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x16")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x1b")](t){if(t[Ba("0x6")])switch(t.subType){case Ba("0x15"):return{type:Ba("0x19"),content:Yo(this.editor[Ba("0x28")],"*Format:* change table properties")};case Ba("0x1a"):return{type:Ba("0x19"),content:Yo(this[Ba("0x2e")].locale,Ba("0x2f"))}}}[Ba("0xb")](t,e){const n=this.editor[Ba("0x29")][Ba("0x33")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x7")]===e&&n===t)return o}return null}}const Ua=["track-changes-user-not-found","formatInline:discard","_mergeNestedSuggestions","isObject","PendingActions","_getAuthorFromId","_updateSuggestionData","_splitMarkerName","createElement","$graveyard","catch","isAfter","document","mapper","addMarker","formatInline","position","addMarker:suggestion","after","normal","_registerDefaultCallbacks","suggestion","group","insertion:accept","suggestionLoaded","_suggestionFactory","_handleNewSuggestionMarker","resolve","_getSuggestionData","deletion:chain","getFirstRange","getCustomProperty","previous","root","isDocumentOperation","_trackFormatChanges","addSuggestion","dataReady","hasCommentThread","discardAllSuggestions","consume","formatBlock","ck-suggestion-marker-","markMultiRangeInsertion","isRemovable","trackChanges","filter","formatInline:chain","formatBlock:accept","getUser","for","size","detach","_customCallbacks","updateMarker","getSuggestionCallback","listenTo","setSelection","substr","toJSON","end","containsRangeInObject","trackChanges.mergeNestedSuggestions","createPositionAt","_suggestions","always","suggestionChanged","stop","commandName","fire","accepted","_saved","model","collaboration.channelId","remove","@external","change:data","widget","addHighlight","commands","options","_addThreadToSuggestion","_getExternalAuthor","containsRange","removed","activeMarkers","_rangeIsInLocalUserInsertion","join","element","registerCustomCallback","isUndo","plugins","isInsideObject","map","getRanges","insertContent","every","ready","isOwn","insertion:","_setSuggestionRange","addComment","$marker","get","nodeBefore","_checkSuggestionCorrectness","formatInline:join","setTo","editor","createSelection","removeMarkers","getRange","track-changes-suggestion-data-mismatch","registerPostFixer","deletion:discard","delete","deletion:accept","getIntersection","formatGroupId","containsPosition","item","formatBlock:join","assign","fromCharCode","markMultiRangeBlockFormat","rejected","head","_isForcedDefaultExecutionBlock","_suggestionState","markInsertion","originalSuggestionId","requires","pluginName","getSuggestions","author","return","insertion:join","isEqual","value","ck-suggestion-marker--active","high","name","addMarkerName","addCommentThread","dataDowncast","getSuggestion","createPositionAfter","define","skipNestingCheck","enableCommand","howMany","containsItem","_joinSuggestions","hasSuggestion","isLocal","markInlineFormat","backward","isBlock","deletion:join","newRange","splice","getFirstMarker","creator","moveTargetPosition","init","createRange","isNextTo","isAtEnd","setAttribute","removeClass","isExternal","showSuggestionHighlights","_enabledCommands","_joinWithAdjacentSuggestions","writer","never","length","_defaultCallbacks","stopListening","updateSuggestion","getItems","formatInline:accept","_editor","isBefore","attributes","change:_saved","markerReady","elementToElement","multipleBlocks","isAtStart","forceDefaultExecution","CommentsRepository","addRange","notReady","elementStart","multi","removeMarker:suggestion:formatBlock","discard","rootName","_breakSuggestionMarker","getShiftedBy","createdAt","ck-suggestion-marker-formatBlock","_cutOutSuggestionMarker","default","_onDiscard","external:","discardSelectedSuggestions","parent","from","accept","isCollapsed","track-changes-suggestion-not-found","consumable","sort","move","lowest","low","_adapter","toViewElement","data","_createSuggestion","suggestion-type","_refreshSuggestionsChain","enableReadOnlyMode","_model","open","commentThread","formatBlock:discard","adapter","insertion","push","update:suggestion","insertion:discard","buildSuggestion","acceptSuggestion","conversion","change","markerToHighlight","editingDowncast","getChanges","track-changes-command-not-found","differ","schema","getWalker","execute","getMarkers","getMultiRangeId","getChangedMarkers","authoredAt","dataToMarker","then","track-changes-adapter-missing-getsuggestion","isInContent","removeMarker","Users","TrackChangesEditing","addClass","getLastMatchingPosition","locale","getDifference","track-changes-adapter-already-set","subType","trackChanges.trackFormatChanges","selection","chain","_setSuggestionData","removeComment","isLimit","rethrowUnexpectedError","change:activeMarkers","trackChangesCommand","isMultiRange","start","some","type","deleteContent","bindElementToMarker","addSuggestionData","data-suggestion","reconvertMarker","_findSuggestions","_addSuggestionMarker","fetchCommentThread","isIntersectingWithRange","authorName","getAttribute","insertion:chain","_descriptionFactory","config","next","suggestionUnloaded","nodeAfter","add","getNearestSelectionRange","split","addMarker:suggestion:formatBlock","isSelectable","_commentsRepository","batch","hasComments","markerName","range","markers","oldRange","includes","has","_removeSuggestion","discardSuggestion","set","acceptAllSuggestions","createPositionBefore","_isDataLoaded","values","markerNameToElements","marker-count","ck-suggestion-marker","formatBlock:","enqueueChange","addUser","targetPosition","deletion"];var Ga,Ha;Ga=Ua,Ha=136,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("0x13d")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Dr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x13e")](){return za("0x78")}constructor(t){function e(t){return t[za("0x117")]((t=>String[za("0x135")](t)))[za("0x111")]("")}super(t),this[za("0xad")](za("0x10f"),[]),this.on(za("0x86"),((e,n,o,s)=>{this._model[za("0x65")]((()=>{for(const e of[...s,...o])this._model.markers[za("0xaa")](e)&&t.editing[za("0x90")](e)}))})),this[za("0x98")]=new ss(this[za("0x126")][za("0x102")].schema,this[za("0x126")].locale),this[za("0x52")]=null,this[za("0xd3")]=new Va(this[za("0x126")]),this[za("0xfa")]=new Map,this._commentsRepository=t[za("0x115")][za("0x121")](za("0x37")),this[za("0x24")]=new Set,this._model=this[za("0x126")][za("0x102")],this[za("0x13a")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0xb")](za("0x7f"),za("0x44")),this[za("0xdd")]=t[za("0x99")][za("0x121")](za("0x7f")),t.config.define(za("0xf8"),!0),this._mergeNestedSuggestions=t[za("0x99")][za("0x121")](za("0xf8")),this[za("0x87")]=new u(t,this[za("0x24")]),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,56,49,52])}[za("0x1c")](){const t=this[za("0x126")];t[za("0x64")][za("0xec")](za("0x67"))[za("0x66")]({model:za("0xcf"),view:t=>{const{id:e,type:n}=this[za("0xc1")](t[za("0xa5")]),o=[za("0xb4"),za("0xe4")+n];let s=3e3;return this[za("0x10f")][za("0xa9")](t.markerName)&&(o[za("0x5f")](za("0x3")),s=3010),za("0xb9")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x64")].for(za("0x8"))[za("0x9d")]((e=>{e.on(za("0xcb"),((e,n,o)=>{if(!o[za("0x10a")][za("0x23")])return;const s=n[za("0x132")];if(!s)return;const r=o[za("0xc7")][za("0x53")](s);t.model[za("0x6b")][za("0xbd")](s)&&r&&!r[za("0xd9")](za("0x107"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x26")])}),{priority:za("0x4")})})),t[za("0x64")][za("0xec")](za("0x8"))[za("0x66")]({model:za("0xcf"),view:(t,e)=>{if(!e.options[za("0x23")])return null;const{type:n}=this[za("0xc1")](t[za("0xa5")]);return{classes:[za("0xb4"),za("0xe4")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x132")])return;if(o[za("0x132")].is(za("0x80")))return void s[za("0x4d")][za("0xe2")](o[za("0x132")],n[za("0x5")]);const r=s[za("0xc7")][za("0x53")](o[za("0x132")]);if(!o[za("0x132")].is(za("0x112"))||!t.model[za("0x6b")][za("0x15")](o.item)||r[za("0xd9")](za("0x108")))return;const{id:i}=this[za("0xc1")](o[za("0xa5")]);s.writer[za("0x79")](["ck-suggestion-marker",za("0x42")],r),s[za("0x26")][za("0x20")](za("0x8f"),i,r),s[za("0xc7")][za("0x8d")](r,o[za("0xa5")]),e&&(this.activeMarkers[za("0xa9")](o[za("0xa5")])?s[za("0x26")][za("0x79")]("ck-suggestion-marker--active",r):s.writer[za("0x21")](za("0x3"),r));for(const e of t[za("0x102")].createRangeIn(o[za("0x132")])[za("0x2c")]())s[za("0x4d")].consume(e,n[za("0x5")]);s[za("0x4d")].consume(o[za("0x132")],n.name)};t.conversion.for(za("0x8"))[za("0x9d")]((t=>{t.on(za("0xa0"),((t,e,o)=>{o[za("0x10a")][za("0x23")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xec")]("dataDowncast").markerToData({model:za("0xcf"),view:(t,e)=>e.options[za("0x23")]?null:{group:za("0xcf"),name:t[za("0xf4")](11)}}),t[za("0x64")].for("upcast")[za("0x33")]({view:{name:za("0xcf"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0x96")](za("0x56"))+":"+t[za("0x96")]("id");return t.getAttribute(za("0xb3"))&&(n+=":"+t[za("0x96")](za("0xb3"))),e[za("0xc2")](za("0x120"),{"data-name":n})}}),t[za("0x64")][za("0xec")]("upcast")[za("0x72")]({view:za("0xcf")}),t.conversion.for(za("0x67"))[za("0x9d")]((t=>{t.on(za("0xa0"),n(),{priority:za("0x4")})})),t[za("0x64")][za("0xec")]("editingDowncast")[za("0x9d")]((t=>{t.on(za("0x3c"),((t,e,n)=>{const o=n.mapper[za("0xb2")](e[za("0xa5")]);if(o)for(const t of o)t.getCustomProperty(za("0x108"))||(n[za("0x26")][za("0x21")]([za("0xb4"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[za("0x26")].removeAttribute(za("0x8f"),t),n[za("0xc7")].unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0x4")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[za("0x49")](t[za("0x102")][za("0xc6")][za("0x6a")][za("0x70")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xc1")](x);if(za("0xcf")!==o)continue;const d=this[za("0xfa")].get(l);if(null!=a[za("0x17")])if(za("0xc9")==c&&(n=n||Xa(a[za("0x17")],x,e,t[za("0x102")][za("0x6b")])),a.newRange[za("0x4b")]||za("0xc3")==a[za("0x17")][za("0xdb")][za("0x3e")]||za("0xe3")==c&&!Ja(a[za("0x17")])||za("0xb9")==c&&(qa(i=a[za("0x17")])||(r=i)[za("0x89")][za("0x48")]==r[za("0xf6")][za("0x122")]&&r[za("0x89")][za("0x1f")]))e[za("0x76")](x),n=!0;else{if(!d||!d[za("0x75")])continue;s[za("0x9d")](d)}}var r,i;return s.size>0&&(n=!!this[za("0x25")](s)||n),n})),t[za("0x102")][za("0xc6")][za("0x12b")]((e=>{let n=!1;for(const o of t[za("0x102")].document[za("0x6a")][za("0x68")]()){if("insert"!=o[za("0x8b")])continue;const s=o[za("0xca")][za("0x40")](o[za("0x28")]);if(s[za("0x1f")])for(const r of this[za("0xfa")].values()){if(r[za("0x88")]||!r[za("0x75")])continue;if(za("0xe3")!=r[za("0x8b")])continue;const i=r.getFirstRange();if(i[za("0x89")][za("0x48")]!=i[za("0xf6")][za("0x48")]&&i[za("0xf6")][za("0x1")](o.position)){const o=t[za("0x102")][za("0x1d")](i[za("0x89")],s);e[za("0xf0")](r[za("0x19")](),{range:o}),n=!0}}}return n})),t[za("0x102")][za("0xa7")].on(za("0x60"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x5")]),n=this[za("0xfa")][za("0x121")](t);n&&n[za("0x6")](e[za("0x5")])}})),t[za("0x102")].document.on(za("0x106"),(()=>{const e=Array[za("0x49")](t[za("0x102")][za("0xc6")].differ[za("0x70")]())[za("0xe8")]((t=>za("0xcf")===this[za("0xc1")](t[za("0x5")])[za("0xd0")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t.data[za("0xa8")],o=e.data[za("0xa8")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x89")][za("0x2f")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xc1")](t);if(null===s[za("0xa8")]){const e=this[za("0xd4")](t);o[za("0x9d")](e)}else{const t=this[za("0xfa")][za("0x121")](e);null!==s.newRange||t[za("0x75")]?(n[za("0x9d")](t[za("0x138")]),o[za("0x9d")](t)):this[za("0xab")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0xff")](za("0xfc"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0xfa")][za("0xed")])return;if(!o[za("0xdc")])return;if(o[za("0xa3")][za("0x114")]||!o.batch[za("0x12")])return;let s,r;switch(o.type){case"insert":s=t[za("0x102")].createPositionAt(o[za("0xca")]),r=s[za("0x40")](o.howMany);break;case za("0x9f"):s=t[za("0x102")][za("0xf9")](o.splitPosition),r=t[za("0x102")][za("0xf9")](o[za("0x1b")]);break;case za("0x4f"):s=t[za("0x102")][za("0xf9")](o[za("0xb8")]),r=s[za("0x40")](o[za("0xe")]);break;default:return}const i=t.model[za("0x1d")](s,r);t[za("0x102")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x91")](i)){if(t[za("0x88")])continue;if("formatInline"==t.type)continue;const n=t.data&&t[za("0x54")].multipleBlocks;(za("0xe3")!=t.type||"split"==o[za("0x8b")]&&!n)&&(e[za("0xf7")]||"insertion"==t[za("0x8b")]&&e.isOwn||t[za("0xd8")]()[za("0x10d")](i)&&this[za("0x3f")](t,s,r))}}))}),{priority:za("0x50")}),t[za("0x102")].on(za("0x8c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x36")])return;if(this[za("0x139")])return;if(!this[za("0x87")].value)return;if(o[za("0x4b")])return;const r=t.model.schema,{start:i,end:x}=o[za("0xd8")](),a=i[za("0x9c")]&&r[za("0x84")](i[za("0x9c")])?null:r[za("0x9e")](i,"forward"),c=x[za("0x122")]&&r.isLimit(x[za("0x122")])?null:r[za("0x9e")](x,za("0x14")),l=t[za("0x102")][za("0x1d")](a?a[za("0x89")]:i,c?c.end:x);t[za("0x102")][za("0x65")]((e=>{this.markDeletion(l);const n=t.model[za("0x6b")][za("0x9e")](l.start);o.is("documentSelection")?e[za("0xf3")](n):o[za("0x125")](n)})),e[za("0xfd")]()}),{priority:e.priorities[za("0xcd")]+10}),t[za("0x102")].on(za("0x119"),((e,n)=>{const o=n[n[za("0x28")]-1];o&&o[za("0x36")]||this[za("0x139")]||this[za("0x87")][za("0x2")]&&(t[za("0x102")][za("0x65")]((()=>{let o=t[za("0x102")][za("0x119")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x141")]=o.clone();const s=o.end[za("0x122")],r=t[za("0x102")][za("0x6b")];s&&r[za("0x15")](s)&&!r[za("0xbd")](s)&&(o=t[za("0x102")][za("0x1d")](o[za("0x89")],t[za("0x102")][za("0xf9")](s,za("0xf6")))),this[za("0x13b")](o)})),e[za("0xfd")]())}),{priority:za("0x4")}),this.editor.commands[za("0x9d")](za("0xe7"),this[za("0x87")]),this[za("0xd")](za("0xe7"));const o=new p(t,this[za("0xfa")]);t[za("0x109")][za("0x9d")](za("0x63"),o),this[za("0xd")](za("0x63"));const s=new C(t,this[za("0xfa")]);t[za("0x109")][za("0x9d")](za("0xac"),s),this[za("0xd")](za("0xac")),t[za("0x109")][za("0x9d")](za("0xae"),new F(t,o,this[za("0xfa")])),this.enableCommand(za("0xae")),t[za("0x109")][za("0x9d")]("discardAllSuggestions",new F(t,s,this._suggestions)),this[za("0xd")](za("0xe1")),t.commands[za("0x9d")]("acceptSelectedSuggestions",new U(t,o,this[za("0xfa")])),this.enableCommand("acceptSelectedSuggestions"),t[za("0x109")][za("0x9d")](za("0x47"),new U(t,s,this._suggestions)),this[za("0xd")](za("0x47"));const r=t.plugins[za("0x121")](za("0x37"));this.listenTo(r,za("0x11f"),((t,{threadId:e})=>{const n=this[za("0xfa")][za("0x121")](e);n&&n[za("0x5b")]&&1===n[za("0x5b")][za("0x28")]&&this[za("0xc0")](e,{hasComments:!0})}),{priority:za("0x51")}),this[za("0xf2")](r,za("0x83"),((t,{threadId:e})=>{const n=this[za("0xfa")][za("0x121")](e);n&&n[za("0x5b")]&&!n[za("0x5b")][za("0x28")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0x51")})}set[za("0x5d")](t){if(this[za("0x52")])throw new e.CKEditorError(za("0x7d"),this);this[za("0x52")]=t}get[za("0x5d")](){return this[za("0x52")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xb1")]())t&&!e[za("0x75")]||n[za("0x5f")](e);return e?n[za("0x117")]((t=>t[za("0xf5")]())):n}getSuggestion(t){const n=this[za("0xfa")].get(t);if(!n)throw new e.CKEditorError(za("0x4c"),this);return n}[za("0x11")](t){return this[za("0xfa")][za("0xaa")](t)}[za("0x8e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x8b")][za("0x9f")](":"),i=this[za("0xfa")].get(n)||this[za("0x55")](s,r,n,e,o);if(this[za("0x10b")](i),this[za("0x123")](i,s,r||null,e),i[za("0x41")]=t.createdAt,i[za("0xb0")]=!0,o&&o[za("0x105")]){const t=o[za("0x105")],e=this[za("0x10c")](t[za("0x95")]);i[za("0x71")]=t.createdAt,i[za("0x140")]=e,i[za("0x22")]=!0}else i[za("0x71")]=t.createdAt;switch(t[za("0x54")]&&(i.data=t[za("0x54")]),t[za("0x30")]&&(i[za("0x30")]=t[za("0x30")]),this[za("0x52")]&&this[za("0x52")][za("0xde")]||(i._saved=!0),this[za("0x13a")][za("0x121")](i)){case za("0x39"):this[za("0x13a")][za("0xad")](i,za("0xdf"));break;case za("0x32"):i[za("0x75")]?(this[za("0x57")](new Set([i])),this[za("0x25")](new Set([i])),this[za("0x13a")][za("0xad")](i,"ready"),this[za("0xff")](za("0xd2"),i)):this._suggestionState.set(i,za("0x10e"))}return i}acceptSuggestion(t){this[za("0x36")]((()=>{this[za("0x126")][za("0x102")][za("0x65")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x4a")]()}))}))}[za("0xac")](t){this[za("0x36")]((()=>{this.editor.model[za("0x65")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x3d")]()}))}))}[za("0xd")](t,n){const o=this.editor[za("0x109")][za("0x121")](t);if(!o)throw new e.CKEditorError(za("0x69"),this,{commandName:t});this[za("0x24")].add(o),n&&o.on(za("0x6d"),((t,e)=>{this[za("0x87")][za("0x2")]&&(this[za("0x139")]||e.length>0&&e[e[za("0x28")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o[za("0x6d")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[za("0x36")](t){let n,o;const s=this[za("0x139")];this[za("0x139")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x139")]=!1),o&&e.CKEditorError[za("0x85")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x4b")])return null;const s=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me;for(const{suggestion:e,meta:s}of this[za("0x91")](t,za("0x5e")))if(s[za("0x11c")]){if(!s.isNextTo){if(s[za("0xf7")]){if(!this[za("0xbc")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0x3f")](e,t[za("0x89")],t[za("0xf6")]);break}if(n==e.subType&&tc(e,o)){const n=e[za("0xd8")]();return n[za("0x89")][za("0x1")](t[za("0xf6")])?this[za("0x11e")](e,this[za("0x59")].createRange(t[za("0x89")],n[za("0xf6")])):this[za("0x11e")](e,this[za("0x59")].createRange(n.start,t[za("0xf6")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x11d")+n:za("0x5e"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x92")](x,r,i,t),a}[za("0xe5")](t,n="multi",o={}){const s=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me,r=this[za("0xd3")][za("0xf1")]("insertion",n,za("0x111"));for(const e of this[za("0x13f")]())if(e[za("0x140")].id==s.id&&za("0x5e")==e[za("0x8b")]&&e[za("0x7e")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e[za("0x118")]()))){for(const n of t)e[za("0x38")](n);return e}for(const{suggestion:e,meta:n}of this[za("0x91")](t,"insertion")){if(!n.isOwn)continue;if(!this[za("0xbc")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x82")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo.getMultiRangeId());return c}[za("0x13")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if("never"===this[za("0xdd")]){const e=this[za("0xd3")][za("0xf1")](za("0xc9"),o,za("0x4a"));return this[za("0x36")]((()=>e([t],n,s))),null}const r=this[za("0x126")].plugins[za("0x121")](za("0x77")).me,i=[];if(za("0xfb")!==this[za("0xdd")])for(const{suggestion:e,meta:n}of this[za("0x91")](t,"insertion"))n[za("0x11c")]&&!n[za("0x116")]&&i.push(...e[za("0x118")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12f")](o);e&&n[za("0x5f")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x28")];){const o=n[e][za("0x7c")](t);n[za("0x18")](e,1,...o),e+=o[za("0x28")]}}return n}(t,i);x[za("0x28")]&&this[za("0x59")].change((()=>{for(const t of x){const e=this[za("0xd3")].getSuggestionCallback(za("0xc9"),o,za("0x4a"));this[za("0x36")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x89")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x91")](t,za("0xc9"))){if(!n[za("0x11c")])continue;if(e[za("0x7e")]!=o)continue;if(!tc(e,s))continue;const r=e[za("0xd8")]();if(r[za("0x10d")](t,!0))return null;x=x[za("0x2f")](r[za("0x89")])?x:r[za("0x89")],a=a[za("0xc5")](r.end)?a:r[za("0xf6")],i?r[za("0x89")][za("0x2f")](i.getFirstRange()[za("0x89")])?(i.removeMarkers(),i=e):e[za("0x128")]():i=e}const c=this[za("0x59")][za("0x1d")](x,a);if(i)this[za("0x11e")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x82")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x92")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x130")]||(n[za("0x130")]=n.commandName),n[za("0x34")]=t.is(za("0xa6")),s=s||$a(n);const i=o[za("0x117")]((t=>Qa(t,this[za("0x59")]))),x=t.is(za("0xa6"))?t:Qa(t,this[za("0x59")]);if("never"===this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback(za("0xe3"),s,za("0x4a"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x110")](t)){a=!1;break}if(a&&za("0xfb")!==this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback("formatBlock",s,za("0x4a"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x89")],d=x[za("0xf6")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xe3"))){if(!e.isOwn)continue;if(e[za("0x1e")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[za("0x54")][za("0x130")]!=n[za("0x130")])continue;if(!tc(t,r))continue;const o=t[za("0xd8")]();if(t[za("0x7e")]==s){if(o[za("0x10d")](x,!0))return null;l=l[za("0x2f")](o.start)?l:o[za("0x89")],d=d[za("0xc5")](o[za("0xf6")])?d:o[za("0xf6")],c?o[za("0x89")][za("0x2f")](c[za("0xd8")]().start)?(c[za("0x128")](),c=t):t[za("0x128")]():c=t}else{const e=x[za("0x12f")](o);this[za("0x43")](t,e)}}const u=this[za("0x126")][za("0x115")][za("0x121")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x11e")](c,this[za("0x59")].createRange(l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xb5")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x92")]("formatBlock:"+s,g,m,this._model[za("0x1d")](l,d)),t}}[za("0x136")](t,n,o=[],s=null,r={}){n[za("0x130")]||(n[za("0x130")]=n[za("0xfe")]);const i=t[0];n[za("0x34")]=i.is("range"),s=s||$a(n);const x=o[za("0x117")]((t=>Qa(t,this[za("0x59")]))),a=i.is(za("0xa6"))?t:t.map((t=>Qa(t,this[za("0x59")])));if(za("0x27")===this[za("0xdd")]){const t=this[za("0xd3")].getSuggestionCallback(za("0xe3"),s,za("0x4a"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0x5f")](...a);let c=!0;for(const t of x)if(!this[za("0x110")](t)){c=!1;break}if(c&&za("0xfb")!==this[za("0xdd")]){const t=this._suggestionFactory[za("0xf1")](za("0xe3"),s,za("0x4a"));return this[za("0x36")]((()=>t(a,n,r))),null}const l=this[za("0x126")][za("0x115")][za("0x121")](za("0x77")).me;for(const t of this[za("0x13f")]()){if(t[za("0x140")].id!=l.id)continue;if(za("0xe3")!=t.type||t[za("0x54")][za("0x130")]!=n[za("0x130")])continue;if(!tc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[za("0x28")];n++){const o=a[n];for(const s of t[za("0x6e")]()){const r=s[za("0x129")]();if(o.isEqual(r)){e?(a[za("0x18")](n,1),n--):t[za("0x76")](s[za("0x5")]);break}}}}if(0==a[za("0x28")])return null;const d=this._suggestionFactory[za("0xf1")](za("0xe3"),s,za("0x111"));for(const t of this[za("0x13f")]())if(t[za("0x140")].id==l.id&&za("0xe3")==t[za("0x8b")]&&t[za("0x54")][za("0x130")]==n.formatGroupId&&t[za("0x7e")]==s&&tc(t,r)&&(d(t[za("0x118")](),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x38")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xb5")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x92")](m,u,g,t,Zo[za("0x6f")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x4b")])return null;const s=this[za("0x126")][za("0x115")][za("0x121")]("Users").me,r=new i.LiveRange(t.start,t[za("0xf6")]);for(const{suggestion:t,meta:e}of this[za("0x91")](r,za("0x5e")))if(e[za("0x11c")]&&!e[za("0x1e")])if(t[za("0x88")]){const e=t[za("0x118")]()[za("0xe8")]((t=>"$graveyard"!=t.root[za("0x3e")]));if(e[za("0x11a")]((t=>r[za("0x10d")](t,!0)))&&t.discard(),e[za("0x8a")]((t=>t[za("0x10d")](r,!0)))){const t=this[za("0xd3")][za("0xf1")](za("0xb9"),n,za("0x4a"));return this[za("0x36")]((()=>t([r],null,o))),null}}else{const e=r[za("0x12f")](t[za("0xd8")]());null!==e&&t[za("0x45")]([e],null,o)}if(r[za("0xee")](),r[za("0x4b")]||za("0xc3")==r[za("0xdb")][za("0x3e")])return null;let x=null,a=r[za("0x89")],c=r[za("0xf6")];const l=this._findSuggestions(r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[za("0x1d")](a,c);if(e[za("0x11c")]&&(this[za("0xbc")]||!e[za("0xf7")]&&!e[za("0x116")]))if(t[za("0x88")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x118")]()){if(o.containsRange(n,!0))return t;n[za("0x10d")](o)||(e=!1)}e&&t.discard()}else{const e=t[za("0xd8")]();if(e[za("0x10d")](n,!0))return t;if(!tc(t,o)){n.containsRange(e)?t[za("0x128")]():e.containsPosition(a)?a=e[za("0xf6")]:e[za("0x131")](c)&&(c=e[za("0x89")]);continue}a=a[za("0x2f")](e.start)?a:e[za("0x89")],c=c[za("0xc5")](e.end)?c:e[za("0xf6")],o=Object[za("0x134")]({},t.attributes),x?e[za("0x89")][za("0x2f")](x.getFirstRange()[za("0x89")])?(x[za("0x128")](),x=t):t[za("0x128")]():x=t}}if(x)return this[za("0x11e")](x,this[za("0x59")][za("0x1d")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x59")][za("0x1d")](a,c),i=s.id,x=n?"deletion:"+n:za("0xb9"),l=this[za("0x82")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x92")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x3b"),o={}){const s=this.editor[za("0x115")][za("0x121")]("Users").me,r=t[za("0x117")]((t=>new i.LiveRange(t[za("0x89")],t[za("0xf6")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0x91")](r,"insertion"))e[za("0x11c")]&&!e[za("0x1e")]&&x[za("0x9d")](t);for(const e of x)if(e.isMultiRange){const s=e[za("0x118")]();if((!e[za("0x30")]||!e[za("0x30")][za("0xc")])&&s[za("0x11a")]((t=>r[za("0x8a")]((e=>e.containsRange(t,!0)))))&&e[za("0x3d")](),r.every((t=>s[za("0x8a")]((e=>e.containsRange(t,!0)))))){const e=this[za("0xd3")].getSuggestionCallback(za("0xb9"),n,za("0x4a"));return this[za("0x36")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x8a")]((e=>e.containsRange(t,!0)))&&e[za("0x3d")](),r[za("0x11a")]((e=>t[za("0x10d")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(za("0xb9"),n,za("0x4a"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0xd3")][za("0xf1")](za("0xb9"),n,"join");let c=null;for(const t of this[za("0x13f")]())if(t[za("0x140")].id==s.id&&t[za("0x75")]&&"deletion"==t[za("0x8b")]&&t.subType==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t.getRanges())))if(c){if(t[za("0x5b")]&&t[za("0x5b")][za("0x28")])continue;for(const e of t[za("0x118")]())c[za("0x94")](e)||c.addRange(e);t[za("0x128")]()}else{c=t;for(const e of r)t[za("0x94")](e)||t[za("0x38")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[za("0x91")](r,za("0xb9")))e[za("0x11c")]&&(this[za("0xbc")]||!e.containsRangeInObject&&!e[za("0x116")])&&tc(t,o)&&x[za("0x9d")](t);for(const t of x){const e=t[za("0x118")]();if((!o||!o[za("0xc")])&&r[za("0x11a")]((t=>e[za("0x8a")]((e=>e[za("0x10d")](t,!0))))))return t;(!t[za("0x30")]||!t[za("0x30")][za("0xc")])&&e[za("0x11a")]((t=>r[za("0x8a")]((e=>e[za("0x10d")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x82")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xee")](),t[za("0x4b")]||za("0xc3")==t[za("0xdb")][za("0x3e")]||this[za("0x92")](u,l,d,t,Zo[za("0x6f")]());return g}[za("0x11e")](t,e){const n=t[za("0x19")]();this[za("0x59")][za("0x65")]((t=>{t.updateMarker(n,{range:e})}))}[za("0x10b")](t){const e=t.id,n=this.editor.config.get(za("0x103"));this[za("0xa2")][za("0xe0")](e)||this._commentsRepository[za("0x7")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xa2")].getCommentThread(e);o.unbind(za("0xe6")),o[za("0xe6")]=!1,t[za("0x5b")]=o}[za("0x123")](t,n,o,s){if(t[za("0x8b")]!=n||t.subType!=o||t[za("0x1a")].id!=s)throw this.editor[za("0x58")](za("0x12a")),new e.CKEditorError(za("0x12a"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n.isEqual(o))t[za("0x128")]();else if(o.containsRange(n)){const s=this[za("0x59")][za("0xf9")](n[za("0x89")].nodeBefore,za("0xf6"));this[za("0x11e")](t,this._model[za("0x1d")](o.start,s));const r=(0,e.uid)(),i=t[za("0x1a")].id,x=t[za("0x8b")]+":"+t[za("0x7e")];this[za("0x82")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x54")],attributes:t[za("0x30")]});const a=this[za("0x59")].createPositionAt(n.end[za("0x48")],za("0xcc")),c=this[za("0x59")][za("0x1d")](a,o.end);this[za("0x92")](x,r,i,c)}else if(o.containsPosition(n[za("0x89")])){const e=this[za("0x59")].createPositionAt(n[za("0x89")].nodeBefore,"end");this[za("0x11e")](t,this._model[za("0x1d")](o[za("0x89")],e))}else{const e=this._model[za("0xf9")](n[za("0xf6")].parent,za("0xcc"));this[za("0x11e")](t,this[za("0x59")][za("0x1d")](e,o.end))}}[za("0x110")](t){for(const{suggestion:e,meta:n}of this[za("0x91")](t,za("0x5e"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[za("0x7c")](e).length)return!0}return!1}[za("0xbf")](t){const n=this[za("0x126")].plugins[za("0x121")](za("0x77"))[za("0xeb")](t);if(!n)throw new e.CKEditorError(za("0xba"),this);return n}_getExternalAuthor(t){const e=this[za("0x126")].plugins[za("0x121")](za("0x77")),n=(0,r.hashObject)(za("0x46")+t);return e[za("0xeb")](n)||e[za("0xb7")]({id:n,name:t})}[za("0x55")](t,e,n,o,s){const r=this[za("0xbf")](o),i=this._suggestionFactory[za("0x62")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[za("0xf2")](i,za("0x4a"),(()=>{this[za("0xc0")](n,{state:za("0x100")})}),{priority:za("0x4")}),this.listenTo(i,za("0x3d"),(()=>{this._updateSuggestionData(n,{state:za("0x137")})}),{priority:za("0x4")}),this[za("0xfa")][za("0xad")](n,i),this[za("0x13a")][za("0xad")](i,za("0x39")),i}_splitMarkerName(t){const e=t[za("0x9f")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0x28")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x28")]?e[5]:null}}[za("0x3f")](t,n,o){const s=t[za("0xd8")](),r=s.start,i=s[za("0xf6")];this[za("0x11e")](t,this[za("0x59")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0x8b")]+(t.subType?":"+t[za("0x7e")]:"");this[za("0x82")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0xe3")==t.type&&(o=this[za("0x59")][za("0xaf")](o[za("0x48")])),this[za("0x92")](c,x,a,this._model[za("0x1d")](o,i))}[za("0x91")](t,e=null){const n=[],o=this.editor[za("0x115")][za("0x121")]("Users").me;Array.isArray(t)||(t=[t]);for(const s of this[za("0x13f")]()){if(!s[za("0x75")])continue;if(e&&s[za("0x8b")]!=e)continue;let r=!1;for(const e of s[za("0x118")]()){for(const i of t){const t=i[za("0x89")][za("0x1")](e[za("0xf6")])||i[za("0xf6")][za("0x1")](e[za("0x89")]);if(t||i[za("0x12f")](e)){const x=i.containsRange(e)&&Ka(this[za("0x59")][za("0x6b")],e[za("0x89")],i),a=e.containsRange(i)&&Ka(this[za("0x59")][za("0x6b")],i[za("0x89")],e);n[za("0x5f")]({suggestion:s,meta:{isOwn:o==s[za("0x140")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x92")](t,e,n,o,s){this[za("0x59")][za("0x65")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xc8")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xab")](t){const e=t[za("0xda")],n=t[za("0x9a")];t[za("0xda")]=null,null!=e&&(e[za("0x9a")]=null),t[za("0x9a")]=null,null!=n&&(n.previous=null),za("0x11b")==this[za("0x13a")][za("0x121")](t)&&(this[za("0x13a")][za("0xad")](t,za("0x10e")),this[za("0xff")](za("0x9b"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0x8e")](t);if(this[za("0x52")]&&this[za("0x52")][za("0xde")]){const s=this[za("0x126")][za("0x115")].get("PendingActions"),r=o[za("0xa4")],i=o.subType?o.type+":"+o[za("0x7e")]:o[za("0x8b")],x=this[za("0x126")][za("0x7b")],a=s[za("0x9d")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x54")]||null,originalSuggestionId:t[za("0x13c")]||null,attributes:o.attributes};this[za("0x52")][za("0xde")](c)[za("0x73")]((t=>{o[za("0x101")]=!0,s[za("0x104")](a),t&&t[za("0x41")]&&(this._suggestions[za("0x121")](n).createdAt=t[za("0x41")])}))[za("0xc4")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x126")][za("0x102")][za("0xb6")]({isUndoable:!1},(()=>{o[za("0x3d")]()})),o[za("0x2a")](),this._suggestions.delete(o.id),this[za("0x13a")][za("0x12d")](o),t}))}return o}[za("0xc0")](t,e){const n=this[za("0x126")].plugins.get(za("0xbe")),o=this.getSuggestion(t);if(this[za("0x52")]&&this[za("0x52")][za("0x2b")])if(o._saved){const o=n[za("0x9d")](Yo(this[za("0x126")][za("0x7b")],"PENDING_ACTION_SUGGESTION"));this[za("0x52")][za("0x2b")](t,e)[za("0x73")]((()=>{n[za("0x104")](o)}))}else o.on(za("0x31"),(()=>{this[za("0xc0")](t,e)}))}[za("0xd6")](t){if(!this[za("0x52")]||!this[za("0x52")].getSuggestion)throw new e.CKEditorError(za("0x74"),this);return this[za("0x52")][za("0x9")](t)}[za("0xd4")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xc1")](t),r=this[za("0xfa")][za("0x121")](e)||this[za("0x55")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x13a")].get(r)){case za("0x39"):this[za("0xd6")](e)[za("0x73")]((t=>{let n=Promise[za("0xd5")]();t.hasComments&&(n=this._commentsRepository[za("0x93")]({channelId:this[za("0x126")][za("0x99")].get(za("0x103")),threadId:e})),n[za("0x73")]((()=>{this[za("0x8e")](t)[za("0x101")]=!0}))})),this[za("0x13a")].set(r,"markerReady");break;case za("0x10e"):this[za("0xc0")](e,{state:za("0x5a")});case"dataReady":this[za("0x13a")].set(r,za("0x11b")),this[za("0xff")](za("0xd2"),r);break;case"ready":this[za("0xff")](za("0xfc"),r)}return r[za("0x6")](t),r}[za("0x57")](t){const e=Array[za("0x49")](t)[za("0xe8")]((t=>!t[za("0x88")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[za("0x88")])),o=n[za("0xe8")]((e=>!t[za("0xaa")](e))),s=new Map(n[za("0x117")]((t=>[t,this[za("0xd3")][za("0xf1")](t[za("0x8b")],t[za("0x7e")],za("0x81"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x28")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x28")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xaa")](n)&&n[za("0xda")]&&(n[za("0xda")][za("0x9a")]===n&&(n.previous[za("0x9a")]=null),n[za("0xda")]=null),!i[za("0xaa")](n)&&n[za("0x9a")]&&(n[za("0x9a")][za("0xda")]===n&&(n[za("0x9a")][za("0xda")]=null),n[za("0x9a")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x28")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0xda")]=n[0],i[za("0x9d")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[za("0x140")].id)return null;const n=s[za("0x121")](t)(t,e,r[za("0x121")](t),r[za("0x121")](e));return n&&s[za("0x121")](e)(t,e,r[za("0x121")](t),r[za("0x121")](e))?n[1][za("0x5b")]&&n[1].commentThread[za("0x28")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[za("0x49")](t),n=this[za("0x13f")]({skipNotAttached:!0}),o=n[za("0xe8")]((e=>!t.has(e))),s=new Map(e[za("0x117")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x8b")],t.subType,za("0x111"))]))),r=new Map(n[za("0x117")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x28")];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("0x28")];i++){const o=n[i];if(o[za("0x8b")]!==e[za("0x8b")]||o[za("0x140")].id!==e[za("0x140")].id||o.subType!==e.subType)continue;if(!Ya(e,o))continue;const x=s[za("0x121")](e),a=r.get(e),c=r[za("0x121")](o),l=e[za("0x5b")]&&e[za("0x5b")][za("0x28")],d=o[za("0x5b")]&&o[za("0x5b")][za("0x28")];if(!l&&x(c,a))return t[za("0x10")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r.delete(o),!0}return!1}}[za("0x10")](t,e){if(t[za("0x88")])for(const n of e[za("0x118")]())t[za("0x38")](n);else{const n=e.getFirstRange().end;this[za("0x11e")](t,this._model[za("0x1d")](t[za("0xd8")]()[za("0x89")],n))}e[za("0x128")]()}}class Va{constructor(t){this[za("0x2e")]=t,this[za("0x59")]=t[za("0x102")],this[za("0xef")]=new Map,this[za("0x29")]=new Map,this[za("0xce")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xf1")](t,e,za("0x4a"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[za("0x113")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xef")].set(s,o)}[za("0xf1")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xef")][za("0x121")](o)||this[za("0x29")][za("0x121")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[za("0x4e")](((t,e)=>t[za("0x89")].isBefore(e[za("0x89")])?1:-1)),this[za("0x59")][za("0x65")]((e=>{for(const n of t){let t;t=n[za("0xf6")][za("0x1f")]&&n[za("0xf6")].parent==n.start.nodeAfter?e[za("0x127")](n[za("0x89")][za("0x9c")],"on"):e[za("0x127")](n),this[za("0x59")][za("0x8c")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x59")][za("0x65")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this._model.createRange(t[za("0xf6")])),t)))[za("0xe8")]((t=>za("0xc3")!==t[za("0xdb")][za("0x3e")]));if(r[za("0x28")]<1)return;const x=Array[za("0x49")](this[za("0x59")][za("0xc6")][za("0x80")].getRanges())[za("0x117")]((t=>i.LiveRange.fromRange(t)));n[za("0xf3")](r);for(const t of this[za("0x2e")][za("0x109")][za("0x109")]())t.refresh();s[za("0x5f")]({forceDefaultExecution:!0}),this[za("0x2e")][za("0x6d")](o,...s);const a=x[za("0xe8")]((t=>za("0xc3")!=t[za("0xdb")][za("0x3e")]));a[za("0x28")]>0&&n[za("0xf3")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x28")]&&1==e[za("0x28")]&&t[0][za("0xf6")][za("0x1")](e[0][za("0x89")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x29")].set(za("0xd1"),t),this[za("0x29")][za("0xad")](za("0x61"),e),this[za("0x29")].set(za("0x0"),o),this[za("0x29")][za("0xad")](za("0x97"),s),this._defaultCallbacks[za("0xad")](za("0x12e"),e),this[za("0x29")][za("0xad")](za("0x12c"),t),this[za("0x29")][za("0xad")](za("0x16"),o),this._defaultCallbacks[za("0xad")](za("0xd7"),s),this[za("0x29")][za("0xad")](za("0x2d"),n),this._defaultCallbacks[za("0xad")](za("0xbb"),t),this[za("0x29")][za("0xad")](za("0x124"),o),this[za("0x29")][za("0xad")](za("0xe9"),t),this[za("0x29")][za("0xad")](za("0xea"),n),this._defaultCallbacks[za("0xad")](za("0x5c"),t),this._defaultCallbacks[za("0xad")](za("0x133"),o),this[za("0x29")][za("0xad")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x48")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xdb")]==o)return!1;if(!n[za("0xf")](o))return!1;if(t[za("0xbd")](o)||t[za("0x84")](o))return!0}return!1}function qa(t){return t[za("0xf6")][za("0x48")]==t[za("0x89")][za("0x9c")]&&t[za("0xf6")][za("0x35")]}function Xa(t,e,n,o){const s=t=>!t[za("0x132")].is("$textProxy")&&!o[za("0xbd")](t.item),r=t.start.getLastMatchingPosition(s),i=t.end[za("0x7a")](s,{direction:"backward"});return!(t[za("0x89")][za("0x1")](r)&&t[za("0xf6")][za("0x1")](i)||(r.isBefore(i)?n.updateMarker(e,{range:n[za("0x1d")](r,i)}):n[za("0x76")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start[za("0x9c")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x6b")][za("0xbd")](t)||e[za("0x6b")][za("0xa1")](t);return e.createRange(e[za("0xf9")](t,"before"),n?e[za("0xa")](t):e[za("0xf9")](t,za("0xf6")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n.end[za("0x1")](o.start))return!0;if(t[za("0x8b")]!=e[za("0x8b")])return!1;if(!n[za("0xf6")].isTouching(o[za("0x89")]))return!1;const r=s[za("0x1d")](n[za("0xf6")],o[za("0x89")])[za("0x6c")]();for(const t of r)if([za("0x3a"),"elementEnd"][za("0xa9")](t[za("0x8b")])&&s[za("0x6b")][za("0x84")](t[za("0x132")]))return!1;return!0}function Ya(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Go(t[za("0x30")],e[za("0x30")])}function tc(t,e){const n=ec(t[za("0x30")]),o=ec(e);if(!t[za("0xb0")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x134")]({},t);return delete e[za("0xc")],delete e.tablePasteChainId,e}const nc=["_discardCommand","execute","add","PendingActions","_pendingAction","change:isDirty","acceptSuggestion","isEnabled","get","canDiscard","locale","_removePendingAction","PENDING_ACTION_SUGGESTION","model","plugins","bind","_setPendingAction","stopListening","_editor","view","discardSuggestion","isDirty","_acceptCommand","listenTo","commentThreadController","getRanges","commands","canAccept","canEditAt","unbind"];var oc,sc;oc=nc,sc=331,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[rc("0x17")]=o,this[rc("0x11")]=t,this[rc("0x15")]=t.commands[rc("0x7")]("acceptSuggestion"),this[rc("0x1d")]=t[rc("0x19")][rc("0x7")]("discardSuggestion"),this.view[rc("0xe")](rc("0x6")).to(this[rc("0x15")],this._discardCommand,((t,e)=>t||e)),this[rc("0x12")][rc("0xe")](rc("0x1a")).to(this[rc("0x15")],"isEnabled",(t=>t&&this._editor.model[rc("0x1b")](e[rc("0x18")]()))),this[rc("0x12")].bind(rc("0x8")).to(this._discardCommand,rc("0x6"),(t=>t&&this._editor[rc("0xc")][rc("0x1b")](e[rc("0x18")]()))),this._pendingAction=null,n[rc("0x14")]&&this[rc("0xf")](),this[rc("0x16")](n,"acceptSuggestion",(()=>this[rc("0x5")]())),this.listenTo(n,rc("0x13"),(()=>this.discardSuggestion())),this.listenTo(n,rc("0x4"),(()=>{n.isDirty?this[rc("0xf")]():this[rc("0xa")]()}))}[rc("0x5")](){this._acceptCommand[rc("0x0")](this[rc("0xc")].id)}discardSuggestion(){this[rc("0x1d")][rc("0x0")](this[rc("0xc")].id)}destroy(){this.view[rc("0x1c")](rc("0x6")),this.view.unbind(rc("0x1a")),this[rc("0x12")][rc("0x1c")](rc("0x8")),this[rc("0x10")](),this[rc("0x17")].destroy(),this[rc("0x3")]&&this[rc("0xa")]()}[rc("0xf")](){const t=Yo(this[rc("0x11")][rc("0x9")],rc("0xb"));this[rc("0x3")]=this[rc("0x11")].plugins[rc("0x7")](rc("0x2"))[rc("0x1")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[rc("0xd")][rc("0x7")]("PendingActions").remove(this[rc("0x3")]),this[rc("0x3")]=null}}const xc=["bind","_config","authoredAt","canAccept","isDirty","isReadOnly","fire","canDiscard","commentThread","_localUser","commentsListView","locale","commentInputView","hasDirtyComment","destroy","element","_createCommentViews","isEnabled","cancel","length","setData","showInput","CommentView","_model","commentThreadInputView","disableComments","editorConfig","addComment","removeComment","set","focus","delegate"];var ac,cc;ac=xc,cc=121,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[lc("0x1f")]=null,this[lc("0x4")]("isActive",!1),this[lc("0x4")](lc("0x9"),e[lc("0x9")]),this.bind(lc("0x9")).to(e),this[lc("0x4")]("descriptionParts",[]),this.set(lc("0xb"),!1),this.set(lc("0x18"),!1),this[lc("0x4")](lc("0xa"),!1),this.set(lc("0xe"),!1),this[lc("0x1e")]=e,this[lc("0x10")]=n,this[lc("0x8")]=o,o[lc("0x0")]?this[lc("0x4")](lc("0x1a"),1):this._createCommentViews()}[lc("0x5")](){this[lc("0x16")][lc("0x5")]()}destroy(){this[lc("0x11")]&&this.commentsListView[lc("0x15")](),this[lc("0x1f")]&&this[lc("0x1f")].destroy(),super[lc("0x15")]()}[lc("0x17")](){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[lc("0x12")],this._model[lc("0xf")],Object.assign({CommentView:this._config[lc("0x1d")]},this[lc("0x8")])),this[lc("0x11")][lc("0x6")](lc("0x3")).to(this),this[lc("0x11")][lc("0x6")]("updateComment").to(this),this[lc("0x11")][lc("0x7")]("isActive").to(this),this[lc("0x4")](lc("0x1a"),this[lc("0x11")][lc("0x1a")]+1),this[lc("0x7")]("length").to(this.commentsListView,lc("0x1a"),(t=>t+1)),this[lc("0x1f")]=this._createCommentThreadInputView(),this.on(lc("0x3"),(()=>this[lc("0x5")]())),this[lc("0x7")]("isDirty").to(this[lc("0x11")],lc("0x14"),this[lc("0x1f")][lc("0x13")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[lc("0x8")],e=new t(this[lc("0x12")],this[lc("0x10")],this[lc("0x8")][lc("0x1")]),n=e[lc("0x13")];return e[lc("0x7")](lc("0x1c")).to(this,"isActive",this._model[lc("0xf")],"isReadOnly",n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[lc("0xd")](lc("0x2"),e),n.editor[lc("0x1b")]("")})),n.on(lc("0x19"),(()=>this[lc("0x5")]())),n[lc("0x7")]("disabledSubmit").to(this[lc("0x1e")][lc("0xf")],lc("0xc")),e}}const uc=["bind","ck-suggestion__main","isEnabled",'" title="',"time","innerText","push","extendTemplate","ck-annotation__main","commentThreadInputView","formatDateTime","ck-annotation__info",".ck-annotation__content-wrapper","bindTemplate","ck-suggestion--disabled-comments","map","commentThread","execute","ck-annotation","author","discardButton","isActive","@external","ck-suggestion-wrapper","ck-suggestion__info-name","getExternalSuggestionNote",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion__info","creator","isExternal","delegate","setTemplate","authoredAt","userView","importWord","canAccept","EXTERNAL_AVATAR","acceptButton","</p>","ck-annotation__info-name","commentsListView","source","canDiscard","div","_createButton","element","ck-suggestion__user","descriptionParts","ck-annotation__actions","locale","editorReady","acceptSuggestion","EXTERNAL_IMPORT_WORD_AVATAR","name",'"></span>',"type","ck-comment__info-time","description","Accept suggestion","render","disableComments","title","content","innerHTML","attributes","editorDestroyed","EXTERNAL_SUGGESTION","ck-suggestion","ck-suggestion-","ck-comment__external","ck-suggestion__actions","_descriptionElement","set","Discard suggestion","_model","getUserViewNotificationText","check","getTemplate","span"];var gc,mc;gc=uc,mc=287,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x16")]("type",""),this[fc("0x1d")](fc("0x5")).to(this,fc("0x4c"),(t=>t&&t[0]?t[0][fc("0x5")]:"")),this[fc("0x1d")](fc("0x7")).to(this,"descriptionParts",this,fc("0x32"),((t,e)=>{let n="";for(const e of t)n+="<p>"+pc(e[fc("0xc")],e.color)+fc("0x43");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x15")]=null,this.acceptButton=this[fc("0x49")](Yo(e,fc("0x8")),t.icons[fc("0x1a")],"ck-suggestion--accept",fc("0x1"),"sw"),this[fc("0x42")].bind(fc("0x1f")).to(this,fc("0x40")),this[fc("0x31")]=this[fc("0x49")](Yo(e,fc("0x17")),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[fc("0x31")][fc("0x1d")](fc("0x1f")).to(this,fc("0x47")),this.userView=new r.UserView(e,this[fc("0x18")].author,this[fc("0x19")]()),this.userView[fc("0x24")]({attributes:{class:[fc("0x4b"),"ck-annotation__user"]}}),this[fc("0x3c")](this[fc("0x1b")]())}getTemplate(){const t=this[fc("0x2a")],e=[{tag:fc("0x48"),attributes:{class:[fc("0x38"),fc("0x28")]},children:[{tag:fc("0x1c"),children:[{text:this[fc("0x3e")][fc("0x3")]}],attributes:{class:[fc("0x35"),fc("0x44")]}},{tag:fc("0x21"),attributes:{datetime:t.to(fc("0x3d")),class:[fc("0x6"),"ck-annotation__info-time"]},children:[{text:t.to(fc("0x3d"),(t=>this._config[fc("0x27")](t)))}]}]},{tag:fc("0x48"),attributes:{class:[fc("0x14"),fc("0x4d")]},children:[this[fc("0x42")],this.discardButton]},{tag:fc("0x48"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[fc("0x18")][fc("0x3a")]&&e[fc("0x23")]({tag:fc("0x48"),attributes:{class:[fc("0x13")]},children:[{text:this[fc("0x36")]()}]});const n={tag:fc("0x48"),attributes:{class:[fc("0x34"),t.if(fc("0x32"),"ck-suggestion-wrapper--active"),t.to(fc("0x5"),(t=>fc("0x12")+t)),this._config[fc("0xa")]&&fc("0x2b")],"data-suggestion-id":this[fc("0x18")].id,"data-thread-id":this[fc("0x18")][fc("0x2d")].id,"data-author-id":this[fc("0x18")][fc("0x30")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x11"),fc("0x2f")]},children:[this[fc("0x3e")],{tag:fc("0x48"),attributes:{class:[fc("0x1e"),fc("0x25")]},children:e}]}]};return this[fc("0x45")]&&this[fc("0x26")]&&(n.children[fc("0x23")](this[fc("0x45")],this[fc("0x26")]),this[fc("0x45")][fc("0x3b")](fc("0x0")).to(this),this[fc("0x45")][fc("0x3b")](fc("0xf")).to(this),this[fc("0x26")].delegate("editorReady").to(this),this[fc("0x26")][fc("0x3b")](fc("0xf")).to(this)),n}[fc("0x9")](){super[fc("0x9")](),this[fc("0x15")]=this[fc("0x4a")].querySelector(fc("0x29")),this._descriptionElement.innerHTML=this[fc("0x7")],this.on("change:description",((t,e,n)=>{this[fc("0x15")][fc("0xd")]=n}))}[fc("0x49")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x4e")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x24")]({attributes:{class:n}}),i.on(fc("0x2e"),(()=>{this.fire(o,this[fc("0x18")].id)})),i}[fc("0x36")](){return fc("0x3f")===this._model[fc("0xe")][fc("0x33")][fc("0x46")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x4e")],fc("0x10"))}[fc("0x19")](){return this[fc("0x18")][fc("0x3a")]?"importWord"===this[fc("0x18")][fc("0xe")]["@external"].source?Yo(this[fc("0x4e")],fc("0x2"),this[fc("0x18")][fc("0x39")][fc("0x3")]):Yo(this[fc("0x4e")],fc("0x41"),this[fc("0x18")][fc("0x39")][fc("0x3")]):null}}function pc(t,e){let n="";return n+=t.split("*")[fc("0x2c")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+bc(t)+"</span>":bc(t))).join(""),e&&(n+=fc("0x37")+e.value+fc("0x20")+e[fc("0xb")]+fc("0x4")),n}function bc(t){const e=document.createElement(fc("0x1c"));return e[fc("0x22")]=t,e.innerHTML}const Ec=["createAnnotation","getDescriptions","hasSuggestion","set","actionView","add","remove","_refreshActiveMarkers","view","createAnnotationView","registerAnnotation","getJoined","change:previous","source","EditorAnnotations","type","CommentView","_updateController","_handleControllerBuffer","discardButton","isOn","innerView","isInContent","separator","commands","execute","buttonView","change:activeAnnotations","switchbutton","clear","listenTo","getRanges","comments.editorConfig","toMany","_createUIButton","previous","_initializeController","arrowView","_viewToController","getMarkers","some","length","value","filter","init","trackChanges","head","map","locale","size","unbind","getMarkerNames","getFirstRange","delete","Track changes","getSuggestion","trackChanges.disableComments","TrackChangesEditing","button","_annotationViews","discardAllSuggestions","comments.maxCommentsWhenCollapsed","CommentsUI","CommentsRepository","define","stopListening","commandName","suggestionUnloaded","from","addSourceCollector","isDirty","isMultiRange","pluginName","focus","config","_destroyController","push","get","_handleSuggestionControllerDelayed","reduce","activeMarkers","bind","suggestion-","comments","getByInnerView","Accept all suggestions","Discard all selected suggestions","refreshSelectedViews","editing","plugins","editor","destroy","model","TrackChangesUI","activeAnnotations","mainView","_suggestionToController","descriptionParts","Annotations","getAllAdjacentSuggestions","acceptButton","acceptSelectedSuggestions","discardSelectedSuggestions","has","isEnabled","_descriptionFactory","commentThread","_disableComments"];var _c,Tc;_c=Ec,Tc=353,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository",Cc("0x45"),Cc("0x5d")]}static get[Cc("0x2b")](){return Cc("0x40")}constructor(t){super(t),this[Cc("0x43")]=new Map,this[Cc("0x9")]=new Map,this[Cc("0x1e")]=new Map,this[Cc("0x61")]=new Map;const e=this[Cc("0x3d")].config;e[Cc("0x23")]("trackChanges.SuggestionThreadView",hc),e[Cc("0x23")]("trackChanges.disableComments",!1),this._disableComments=e[Cc("0x30")](Cc("0x1b"))}[Cc("0x31")](t,e){0===this[Cc("0x61")][Cc("0x14")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x61")]){const n=this[Cc("0x43")].has(t);n||e?n&&e&&this[Cc("0x2e")](t):this[Cc("0x7")](t)}this[Cc("0x3d")].plugins[Cc("0x30")]("EditorAnnotations")[Cc("0x3a")](),this[Cc("0x56")](),this[Cc("0x61")][Cc("0x0")]()}),10),this[Cc("0x61")][Cc("0x52")](t,e)}[Cc("0xf")](){const t=this[Cc("0x3d")],e=t.plugins[Cc("0x30")](Cc("0x1c")),n=t[Cc("0x3c")][Cc("0x30")]("Annotations"),o=t.plugins[Cc("0x30")]("EditorAnnotations"),s=t[Cc("0x3c")][Cc("0x30")]("CommentsRepository");t.ui.componentFactory[Cc("0x54")](Cc("0x10"),(t=>this._createUIButton(t))),o[Cc("0x28")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x27")](this._suggestionToController)){const o=e[Cc("0x46")](),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t[Cc("0x2a")]){s[Cc("0x2f")](...t[Cc("0x2")]());continue}const e=t[Cc("0x17")]();if(s[Cc("0xc")]>0){const t=s[0][Cc("0x5a")](e);if(t){s[0]=t;continue}}s.push(e)}t[Cc("0x2f")]([n[Cc("0x57")],s])}return t})),this[Cc("0x1")](e,"suggestionLoaded",((t,e)=>{this[Cc("0x1")](e,"change:previous",((t,n,o,s)=>{e[Cc("0x65")]&&(null==o?(this[Cc("0x60")](s.head),this[Cc("0x31")](e,!1)):(this[Cc("0x60")](o[Cc("0x11")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Cc("0x6")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x60")](e.head)})),this[Cc("0x1")](e,Cc("0x26"),((t,e,n)=>{this[Cc("0x24")](e,Cc("0x5b")),this[Cc("0x61")][Cc("0x18")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0x30")](o);null!==n&&this[Cc("0x60")](o),null===n&&s&&this[Cc("0x2e")](e)})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Cc("0x60")](e)})),this[Cc("0x1")](n,Cc("0x6a"),(()=>{this[Cc("0x56")]()})),this[Cc("0x1")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x51")](n))return;const s=e[Cc("0x1a")](n);this[Cc("0x43")][Cc("0x30")](s)[Cc("0x57")][Cc("0x2c")]()}),{priority:"lowest"})}[Cc("0x56")](){const t=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")]("Annotations"),e=this[Cc("0x3d")].plugins[Cc("0x30")](Cc("0x1c")),n=Array[Cc("0x27")](t[Cc("0x41")],(t=>t[Cc("0x64")])).filter((t=>this._viewToController[Cc("0x4a")](t))),o=[];for(const t of n){const e=this[Cc("0x9")][Cc("0x30")](t).model.getAllAdjacentSuggestions();o.push(...e[Cc("0x32")](((t,e)=>[...t,...e[Cc("0x16")]()]),[]))}e[Cc("0x33")]=o}[Cc("0x5")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x3d")].commands.get(Cc("0x10")),r=Yo(t,Cc("0x19"));n[Cc("0x69")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x69")].bind(Cc("0x63")).to(o,Cc("0xd")),n[Cc("0x69")].on(Cc("0x68"),(()=>{o[Cc("0x68")](),this.editor[Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()}));const i=new e.Collection,x=[{type:Cc("0x6b"),model:{withText:!0,label:r,commandName:Cc("0x10")}},{type:Cc("0x66")},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,Cc("0x38")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Cc("0x48")}},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Cc("0x1f")}},{type:Cc("0x1d"),model:{withText:!0,label:Yo(t,Cc("0x39")),commandName:Cc("0x49")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x3f")]){const n=new s.Model(t.model),o=this[Cc("0x3d")][Cc("0x67")][Cc("0x30")](n.commandName);n.bind(Cc("0x63"),Cc("0x4b")).to(o,Cc("0xd"),"isEnabled"),e={type:t[Cc("0x5e")],model:n}}i[Cc("0x54")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Cc("0x3f")]))[Cc("0x12")]((t=>this.editor[Cc("0x67")].get(t[Cc("0x3f")][Cc("0x25")]))),c=n[Cc("0x69")];return c[Cc("0x53")][Cc("0x15")](Cc("0x4b")),c.arrowView[Cc("0x15")](Cc("0x4b")),c[Cc("0x53")].bind("isEnabled").to(o,Cc("0x4b")),c[Cc("0x8")][Cc("0x34")](Cc("0x4b"))[Cc("0x4")](a,Cc("0x4b"),((...t)=>t[Cc("0xb")]((t=>t)))),n.on(Cc("0x68"),(t=>{this.editor[Cc("0x68")](t[Cc("0x5c")].commandName),this[Cc("0x3d")][Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()})),n}[Cc("0x7")](t){const e=this.editor,n=e[Cc("0x2d")],o=e[Cc("0x3c")][Cc("0x30")](Cc("0x45")),s=e[Cc("0x3c")][Cc("0x30")](Cc("0x22")),i=e[Cc("0x3c")][Cc("0x30")](Cc("0x5d")),x=e[Cc("0x3c")].get(r.Users).me,a=n.get(Cc("0x10")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x3c")][Cc("0x30")](Cc("0x21"));let d,u;this[Cc("0x1e")].has(t.id)?(u=this._annotationViews[Cc("0x30")](t.id),d=u[Cc("0x42")]):(d=new a(e.locale,t,x,{disableComments:this[Cc("0x4e")],editorConfig:n.get(Cc("0x3")),maxCommentsWhenCollapsed:n[Cc("0x30")](Cc("0x20")),maxThreadTotalWeight:n[Cc("0x30")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x30")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x30")](Cc("0x13"))),CommentView:n[Cc("0x30")](Cc("0x36"))[Cc("0x5f")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x47")].on(Cc("0x68"),(()=>{e[Cc("0x3b")].view[Cc("0x2c")]()})),d[Cc("0x62")].on("execute",(()=>{e[Cc("0x3b")][Cc("0x57")][Cc("0x2c")]()})),u=o[Cc("0x58")](this[Cc("0x3d")][Cc("0x13")],d),u[Cc("0x34")]("isDirty").to(d,Cc("0x29")),u[Cc("0x34")](Cc("0xc")).to(d),u[Cc("0x34")](Cc("0x5e")).to(d,Cc("0x5e"),(t=>Cc("0x35")+t)),this[Cc("0x1e")].set(t.id,u));const g=s.createCommentThreadController(t[Cc("0x4d")],d),m=new ic(e,t,d,g),f=t[Cc("0x46")]()[Cc("0xe")]((t=>t[Cc("0x65")]));d[Cc("0x44")]=e[Cc("0x3c")][Cc("0x30")](Cc("0x1c"))[Cc("0x4c")][Cc("0x50")](f),this._suggestionToController[Cc("0x52")](t,m),this._viewToController[Cc("0x52")](d,m);const h=o[Cc("0x4f")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Cc("0xe")]((t=>t[Cc("0x65")]));for(const t of o)n.push(...t[Cc("0xa")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x35")+m[Cc("0x57")][Cc("0x5e")]});s._bindAnnotationToEditors(d,h),o[Cc("0x54")](h),i[Cc("0x59")](h)}_destroyController(t){const e=this[Cc("0x3d")].plugins.get(Cc("0x22")),n=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")](Cc("0x45")),o=this[Cc("0x43")][Cc("0x30")](t),s=o[Cc("0x57")],r=n[Cc("0x37")](s);e._unbindEditors(s),r&&n[Cc("0x55")](r),this[Cc("0x43")][Cc("0x18")](t),this._viewToController[Cc("0x18")](s),o[Cc("0x3e")]()}[Cc("0x60")](t){if(!t.isInContent||!this[Cc("0x43")][Cc("0x4a")](t))return;const e=this[Cc("0x3d")][Cc("0x3c")][Cc("0x30")]("TrackChangesEditing"),n=this[Cc("0x43")][Cc("0x30")](t),o=t[Cc("0x46")]();n[Cc("0x57")][Cc("0x44")]=e[Cc("0x4c")][Cc("0x50")](o)}[Cc("0x3e")](){for(const t of this._suggestionToController.keys())this._destroyController(t);for(const t of this[Cc("0x1e")].values())t.mainView[Cc("0x3e")]();super[Cc("0x3e")]()}}var kc,Ac,vc=["editor","getSuggestions","getSuggestion","TrackChanges","Comments","adapter","get","plugins","addSuggestion"];kc=vc,Ac=432,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get requires(){return[Wa,yc,Rc("0x4")]}static get pluginName(){return Rc("0x3")}set[Rc("0x5")](t){this[Rc("0x0")][Rc("0x7")][Rc("0x6")](Wa).adapter=t}get[Rc("0x5")](){return this[Rc("0x0")][Rc("0x7")].get(Wa)[Rc("0x5")]}[Rc("0x8")](t){return this.editor[Rc("0x7")].get(Wa).addSuggestionData(t)}[Rc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x0")][Rc("0x7")].get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[Rc("0x2")](t){return this.editor[Rc("0x7")][Rc("0x6")](Wa)[Rc("0x2")](t)}}const Ic=["function","model","TrackChangesDataGetter","CommentsRepository","pluginName","trackChangesData.editorCreator","init","addUser","name","data","destroy","reduce","define","trackChangesData","Users","editor","create","plugins","execute","createElement","requires","TrackChangesEditing","_adapter","useAnonymousUser","getDataWithAcceptedSuggestions","rootsAttributes","editorCreator","Pagination","getFullData","discardAllSuggestions","appendChild","document","acceptAllSuggestions","constructor","users","getRootsAttributes","config","track-changes-data-invalid-editor-creator","createDocumentFragment","get"];var Lc,Nc;Lc=Ic,Nc=116,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x1f")];class Oc extends t.Plugin{static get[Mc("0x18")](){return[Wa]}static get[Mc("0x8")](){return"TrackChangesData"}[Mc("0xa")](){const t=this[Mc("0x13")];if(t[Mc("0x0")][Mc("0x10")](Mc("0x9"),(e=>{const n=t.model.document.getRootNames()[Mc("0xf")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x25")][Mc("0x14")](n,e)})),Mc("0x4")!=typeof t.config[Mc("0x3")](Mc("0x11"))[Mc("0x1e")])throw new e.CKEditorError(Mc("0x1"))}[Mc("0x1c")](t){return Pc(this[Mc("0x13")],!0,t)}getDataWithDiscardedSuggestions(t){return Pc(this[Mc("0x13")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x8")](){return Mc("0x6")}constructor(t){super(t),this.result="end"}[Mc("0xa")](){this[Mc("0x13")][Mc("0x15")][Mc("0x3")](Mc("0x7"))[Mc("0x1a")]={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[Mc("0x13")][Mc("0x15")].get(Mc("0x19"))[Mc("0x1a")]=null}}function Dc(t){return void 0!==t[Mc("0x27")]}async function Pc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x15")].push(Wa,Fc),o[Mc("0x1d")]=Dc(t)?t[Mc("0x27")]():void 0;const s=document[Mc("0x2")](),i=t[Mc("0x0")][Mc("0x3")](Mc("0x11"))[Mc("0x1e")],x=await i(o,(()=>function(t){const e=document[Mc("0x17")]("div");return t[Mc("0x22")](e),e}(s)));!function(t,e){const n=t[Mc("0x5")][Mc("0x23")].getRootNames()[Mc("0xf")](((e,n)=>(e[n]=t[Mc("0xd")][Mc("0x3")]({rootName:n}),e)),{}),o=t[Mc("0x15")][Mc("0x3")]("Users")[Mc("0x26")].map((t=>({id:t.id,name:t[Mc("0xc")]}))),s=t.plugins[Mc("0x3")](Mc("0x19")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x3")](Mc("0x12")),i=e[Mc("0x15")][Mc("0x3")](Mc("0x19"));for(const t of o)r.getUser(t.id)||r[Mc("0xb")](t);r.me||r[Mc("0x1b")]();for(const t of s)i.addSuggestionData(t);e[Mc("0xd")].set(n)}(t,x),x[Mc("0x16")](Mc(e?"0x24":"0x21"));const a=Dc(x)?x[Mc("0x20")](n):x.data[Mc("0x3")](n);return await x[Mc("0xe")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();