@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230812.0 → 0.0.0-nightly-20230813.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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","has","refresh","value","affectsData","execute","clearForceDisabled","editor","commands","_disableUnsupportedCommands","forceDisabled","isEnabled"];var c,l;c=a,l=438,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this.refresh(),this[u("0xb")]=!1}[u("0x0")](){this[u("0x9")]=!0}[u("0x3")](){this[u("0x1")]=!this.value,this[u("0x1")]?this[u("0x7")]():this[u("0xa")]()}[u("0x7")](){for(const t of this[u("0x5")].commands[u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x8")](u("0xc"))}[u("0xa")](){for(const t of this[u("0x5")][u("0x6")][u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x4")](u("0xc"))}}const g=["getRanges","acceptSuggestion","TrackChangesEditing","editor","plugins","_suggestions","model","_isEnabledBasedOnSelection","canEditAt","isEnabled","execute","refresh"];var m,f;m=g,f=376,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0x7")](),this[h("0x3")]=!1}[h("0x7")](){this[h("0x5")]=!0}[h("0x6")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0xb")][h("0x2")][h("0x4")](o)&&this.editor[h("0x0")].get(h("0xa"))[h("0x9")](n)}}const b=["isEnabled","editor","TrackChangesEditing","execute","getRanges","get","_suggestions","model","track-changes-discard-suggestion-not-found","refresh","_isEnabledBasedOnSelection","canEditAt","discardSuggestion"];var E,_;E=b,_=465,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0xc")](),this[T("0x0")]=!1}[T("0xc")](){this[T("0x3")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x8")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x4")][T("0xa")][T("0x1")](o)&&this[T("0x4")].plugins[T("0x8")](T("0x5"))[T("0x2")](n)}}const y=["start","length","createPositionAfter","change","schema","isArray","map","replace","getRange","isTouching","value","createPositionAt","isInContent","end","createRange"," [color ","isMultiRange","push","type","createPositionBefore","isObject","splice","getMarkers","from","deletion","isIntersecting"];var k,A;k=y,A=171,function(t){for(;--t;)k.push(k.shift())}(++A);const R=function(t,e){return y[t-=0]};function v(t){return t.sort(((t,e)=>R("0x9")==t[R("0x3")]&&R("0x9")!=e[R("0x3")]?-1:R("0x9")!=t[R("0x3")]&&R("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0xf")];for(;o<t[R("0xc")];){const i=t[o],x=t[o+1];n||(n=e[R("0x4")](i)),S(e,i,x)||(s[R("0x2")](e[R("0x19")](n,r[R("0x5")](i)?e[R("0xd")](i):e[R("0x16")](i,R("0x18")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xd")](e),s=t[R("0x4")](n);return o.isTouching(s)}function L(t,e,n){for(;n[R("0xc")];){const o=n[R("0x6")](0,100);t[R("0xe")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["canEditAt","values","_suggestions","_command","isEnabled","execute","_isEnabledBasedOnSelection","editor","model","refresh","isInContent","getRanges"];var M,w;M=N,w=404,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x7")]=e,this[O("0x6")]=n,this[O("0x1")](),this[O("0xa")]=!1}[O("0x1")](){const t=Array.from(this._suggestions[O("0x5")]()).some((t=>t[O("0x2")]));this[O("0x8")]=this[O("0x7")].isEnabled&&t}[O("0x9")](){const t=v(Array.from(this[O("0x6")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xb")][O("0x0")][O("0x4")](t))return}L(this.editor[O("0x0")],this[O("0x7")],t)}}const P=["_command","from","document","execute","isEnabled","selection","refresh","editor","model","values","getRanges","_suggestions","_selectedSuggestions","size"];var D,B;D=P,B=345,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("0x5")]=e,this[j("0x2")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this._isEnabledBasedOnSelection=!1}[j("0xb")](){const t=this[j("0xc")][j("0xd")][j("0x7")][j("0xa")],e=Array.from(this._suggestions[j("0x0")]());this._selectedSuggestions=function(t,e){const n=Array[R("0x8")](t.getRanges()),o=new Set;for(const s of e)if(s[R("0x17")])for(const e of n)for(const n of s[R("0x7")]()){const r=n[R("0x13")]();(e[R("0xa")](r)||t.isCollapsed&&!s[R("0x1")]&&s.next&&r[R("0x18")][R("0x14")](e[R("0xb")]))&&o.add(s)}return o}(t,e),this.isEnabled=this._command[j("0x9")]&&!!this[j("0x3")][j("0x4")]}[j("0x8")](){const t=v(Array[j("0x6")](this[j("0x3")]));for(const e of t){const t=e[j("0x1")]();if(!this[j("0xc")][j("0xd")].canEditAt(t))return}L(this.editor[j("0xd")],this[j("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,Rt=kt.hasOwnProperty,vt=RegExp("^"+At.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?vt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,ve=Re&&Re.exports===Ae&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var 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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),Rn=Tt(hn),vn=gt;(gn&&vn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&vn(new Nt)!=pn||mn&&vn(mn.resolve())!=bn||fn&&vn(new fn)!=En||hn&&vn(new hn)!=_n)&&(vn=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 Rn:return _n}return e});const In=vn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Ro=function(t,e){return t.has(e)};const vo=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!Ro(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=vo(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?vo(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const 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=["push","getContainedElement","subType","start","removeAttribute","onAccept","getMarkerNames","getFirstRange","filter","add","commentThread","accept","_markerNames","decorate","onDiscard","nodeAfter","getMultiRangeId","onAttributesChange","getMarkers","attributes","from","_saved","getItems","author","delete","markers","size","_model","substr","getFirstMarker","isInContent","authoredAt","isIntersectingWithRange","next","@external","addMarkerName","getRanges","_onAttributesChange","head","previous","map","_onDiscard","addRange","removeMarker","createdAt","isExternal","get","hasComments","nodeBefore","getAllAdjacentSuggestions","change","getRange","type","removeMarkers","length","discard","creator","setAttribute","set","_onAccept"];var $o,Jo;$o=Xo,Jo=132,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x28")]=e.type,this[Qo("0x32")]=e.subType||null,this[Qo("0xb")]=e[Qo("0xb")],this[Qo("0x2c")]=e[Qo("0x2c")]||e.author,this[Qo("0x21")]=Boolean(e.attributes&&e[Qo("0x7")][Qo("0x16")]),this.data=null,this[Qo("0xf")]=t,this._onAccept=e[Qo("0x35")],this[Qo("0x1d")]=e[Qo("0x2")],this[Qo("0x19")]=e[Qo("0x5")],this._markerNames=new Set,this[Qo("0x20")]=null,this[Qo("0x2e")](Qo("0x13"),null),this.set("attributes",e.attributes||{}),this[Qo("0x2e")](Qo("0x1b"),null),this[Qo("0x2e")](Qo("0x15"),null),this[Qo("0x2e")]("commentThread",null),this.set(Qo("0x9"),!1),this[Qo("0x1")]("accept"),this[Qo("0x1")](Qo("0x2b"))}get[Qo("0x1a")](){let t=this;for(;t[Qo("0x1b")];)t=t[Qo("0x1b")];return t}get[Qo("0x23")](){return!!this[Qo("0x3a")]&&this[Qo("0x3a")][Qo("0x2a")]>0}get isMultiRange(){return 0!=this[Qo("0x0")][Qo("0xe")]&&6==Array[Qo("0x8")](this[Qo("0x0")])[0].split(":")[Qo("0x2a")]}get[Qo("0x12")](){return null!==this.getFirstMarker()}[Qo("0x17")](t){this[Qo("0x0")][Qo("0x39")](t)}[Qo("0x36")](){return Array[Qo("0x8")](this[Qo("0x0")])}[Qo("0x6")](){return this[Qo("0x36")]()[Qo("0x1c")]((t=>this[Qo("0xf")][Qo("0xd")][Qo("0x22")](t)))[Qo("0x38")]((t=>t))}[Qo("0x11")](){return this[Qo("0x6")]()[0]||null}[Qo("0x29")](){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x6")]())t[Qo("0x1f")](e)})),this[Qo("0x0")].clear()}[Qo("0x1f")](t){this._model[Qo("0x26")]((e=>{e.removeMarker(t)})),this[Qo("0x0")][Qo("0xc")](t)}[Qo("0x1e")](t){const e="suggestion:"+this[Qo("0x28")]+":"+this[Qo("0x32")]+":"+this.id+":"+this[Qo("0x2c")].id+":"+Zo[Qo("0x4")]();this.addMarkerName(e),this[Qo("0xf")][Qo("0x26")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x14")](t){for(const e of this[Qo("0x18")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x18")](){return this[Qo("0x6")]().map((t=>t[Qo("0x27")]()))}[Qo("0xa")](){return this[Qo("0x18")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x37")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x27")]())||null}[Qo("0x31")](){const t=this.getRanges();if(1!=t[Qo("0x2a")])return null;const e=t[0],n=e[Qo("0x33")][Qo("0x3")],o=e.end[Qo("0x24")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3b")](){this[Qo("0x2f")](this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x25")](){const t=[];let e=this[Qo("0x1a")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x15")];return t}[Qo("0x2d")](t,e){const n=eo(this[Qo("0x7")]);_o(n,t,e),Go(n,this[Qo("0x7")])||(this.attributes=n,this[Qo("0x19")](n))}[Qo("0x34")](t){const e=eo(this[Qo("0x7")]);qo(e,t),Go(e,this[Qo("0x7")])||(this[Qo("0x7")]=e,this[Qo("0x19")](this.attributes))}toJSON(){return{id:this.id,type:this.subType?this[Qo("0x28")]+":"+this.subType:this[Qo("0x28")],authorId:this[Qo("0x2c")].id,createdAt:this.createdAt,hasComments:this[Qo("0x23")],data:this.data,attributes:this.attributes}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x10")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["getDescriptions","_customCallbacks","elementStart","Container","removeEmptyContainer","Object","_itemLabelsCallbacks","pop","end","removeObject","_itemLabels","addContainer","isEqual","$textProxy","remove","insertion","*Remove:* %0","registerElementLabel","get","getItemLabel","getFirstRange","softBreak","isEmpty","ELEMENT_SPACE","addObject","skip","_schema","quantity","replace","checkChild","type","text","$text","name","isObject","push","addEmptyContainer","indexOf","data","_addDescriptionItems","EmptyContainer","length","function","nextSibling","elementEnd","item","add","_locale","previousSibling","element","REPLACE_TEXT","_resolveDescriptionItems","*Merge:* %0","$1 $2","label","registerDescriptionCallback","set","*Insert:* %0","deletion"];var es,ns;es=ts,ns=434,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("0x27")]=[],this[os("0x30")]=new Map,this[os("0x2c")]=[],this[os("0x5")]=t,this[os("0x1a")]=e}[os("0x26")](t){const e=[];for(let n=0;n<t[os("0x14")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x27")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x3a")]()[os("0x2e")][os("0x32")](s.getFirstRange().start)){const t=e[e.length-1],n=os("0x35")==o[os("0x9")]?os("0x19"):os("0x34");t&&os("0xa")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x22")](t){this._customCallbacks.push(t)}[os("0x37")](t,n,o=e.priorities.normal){os("0x15")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2c")],{matchingCallback:t,label:n,priority:o}):this[os("0x30")][os("0x23")](t,n)}[os("0x39")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x38")](t[os("0xc")])),n?n(e):1!==e?e+" "+t[os("0xc")]+"s":""+t[os("0xc")]}[os("0x12")](t,e){const n=e[os("0x3a")]().getWalker(),o=os("0x35")==e.type?os("0x19"):os("0x34");for(const e of n){const s=e[os("0x18")],r=t[t[os("0x14")]-1];if(s.is(os("0x33")))r&&r[os("0x9")][os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),r&&os("0xa")==r[os("0x9")]?r[o]+=s.data:t[os("0xe")]({type:"text",add:os("0x19")==o?s.data:"",remove:os("0x34")==o?s[os("0x11")]:""});else if(this[os("0x5")][os("0xd")](s)){const i=s;if(r&&r.type[os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),os("0x17")==e[os("0x9")])continue;r&&r.type==o+os("0x2b")&&r[os("0x1c")].name==i.name?r[os("0x6")]++:t[os("0xe")]({type:o+"Object",element:i,quantity:1}),n[os("0x4")]((t=>!(os("0x17")==t[os("0x9")]&&t[os("0x18")]==s)))}else if(this._schema[os("0x8")](s,os("0xb"))||s.is(os("0x1c"),os("0x0"))){const n=s;if(os("0x19")==o&&os("0x28")==e[os("0x9")]||os("0x34")==o&&os("0x17")==e.type)continue;if(r&&-1==r[os("0x9")].indexOf("Container")){os("0xa")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x19")==o?n[os("0x16")]&&!this[os("0x5")][os("0xd")](n[os("0x16")])?n[os("0x16")]:null:n[os("0x1b")]&&!this[os("0x5")][os("0xd")](n[os("0x1b")])?n[os("0x1b")]:null,n[os("0x1")]||i&&i.isEmpty){const e=i&&i[os("0x1")]?i:n;r&&r[os("0x9")]==o+os("0x13")&&r[os("0x1c")][os("0xc")]==e.name?r[os("0x6")]++:t[os("0xe")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x1e")](t){const e=this[os("0x1a")],n=[];for(const o of t){switch(o[os("0x9")]){case"text":if(o.add=o[os("0x19")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),o[os("0x34")]=o.remove.replace(/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),""!=o[os("0x19")]&&""!=o[os("0x34")]){n[os("0xe")]({type:os("0x7"),content:Yo(e,os("0x1d"),['"'+o.remove+'"','"'+o[os("0x19")]+'"'])});continue}if(null!=o[os("0x19")].match(/^ +$/)){n.push({type:os("0x35"),content:Yo(e,os("0x24"),Yo(e,os("0x2"),o[os("0x19")][os("0x14")]))});continue}if(null!=o.remove.match(/^ +$/)){n.push({type:os("0x25"),content:Yo(e,os("0x36"),Yo(e,os("0x2"),o[os("0x34")][os("0x14")]))});continue}if(""!=o[os("0x19")]){n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),'"'+o[os("0x19")]+'"')});continue}n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x36"),'"'+o[os("0x34")]+'"')});continue;case os("0xf"):case os("0x3"):n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue;case os("0x2a"):case os("0x2f"):n[os("0xe")]({type:"deletion",content:Yo(e,os("0x36"),this.getItemLabel(o[os("0x1c")],o.quantity))});continue;case os("0x31"):n[os("0xe")]({type:os("0x35"),content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x1c")],o[os("0x6")]))});continue;case"removeContainer":n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x1f"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue}n[os("0xe")](o)}return n}}const rs=["justify","TrackChangesEditing","center","getSelectedBlocks","getAttribute","locale","ltr","left","value","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","has","commandName","plugins","enableCommand","change","filter","alignment","*Format:* %0","editor","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","from","_descriptionFactory","right","AlignmentEditing","markBlockFormat","model","selection","format"];var is,xs;is=rs,xs=457,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x6")][as("0x4")](as("0x12")))return;const n=t[as("0x6")].get(as("0x18"));n[as("0x7")](as("0xa"),((e,o={})=>{let s=o[as("0x1")];o[as("0x1")]||(s=as("0x1d")===t[as("0x1c")].contentLanguageDirection?"left":as("0x11"));const r=Array[as("0xf")](this[as("0xc")][as("0x14")].document[as("0x15")][as("0x1a")]())[as("0x9")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0xa"))||null;return e.checkAttribute(t,as("0xa"))&&n!=o}(t,this.editor[as("0x14")].schema,s)));t[as("0x14")][as("0x8")]((()=>{for(const t of r)n[as("0x13")](t,{commandName:as("0xa"),commandParams:[{value:s}]})}))})),n[as("0x10")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0x5")]){const t=n.commandParams[0].value;return{type:as("0x16"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x0"):return Yo(e,as("0x2"));case as("0x11"):return Yo(e,as("0x3"));case as("0x19"):return Yo(e,as("0xd"));case as("0x17"):return Yo(e,as("0xe"))}}(t))}}}))}}const ls=["start","toViewElement","TrackChangesEditing","getCustomProperty","consumable","previousPosition","model","type","listItem","span","hasAttribute","plugins","markerRange","isLimit","toViewPosition","writer","getItems","push","createRangeOn","bindElementToMarker","get","elementEnd","mapper","isBlock","markerName","addHighlight","getWalker","item","listIndent","nextSibling","insert","addClass","element"];var us,ds;us=ls,ds=403,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x3")](t)&&o[gs("0xa")](n[gs("0xb")](s));return o}function fs(t){const e=[];if(t.is(gs("0x19"),gs("0x1"))){let n=t[gs("0x16")];for(;n&&n.is(gs("0x19"),gs("0x1"))&&n.getAttribute(gs("0x15"))>0;)e[gs("0xa")](n),n=n[gs("0x16")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0xd")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1e")].test(r.markerRange,s.name))return;const x=r.markerRange[gs("0x13")](),a=r[gs("0x5")][gs("0x1a")],c=t[gs("0x20")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x14")];d=d||c.isContent(e);const n=i[gs("0xf")][gs("0x1b")](e);if(n&&n[gs("0x1d")](gs("0x12")))return;gs("0xe")==t[gs("0x0")]&&c[gs("0x10")](e)&&!c[gs("0x6")](e)&&(e[gs("0x16")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x1f")]),g=!0):u=u||t[gs("0x1f")])}function m(t){const s=i[gs("0x8")].createUIElement(gs("0x2"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0xf")][gs("0x7")](t);n&&o.activeMarkers.includes(r.markerName)&&i[gs("0x8")][gs("0x18")]("ck-suggestion-marker--active",s),i[gs("0x8")][gs("0x17")](x,s),i[gs("0xf")][gs("0xc")](s,r[gs("0x11")])}d||g||!u||m(u)}}const ps=["getRanges","_descriptionFactory","locale","FORMAT_BOLD","UnderlineEditing","commandName","*Format:* %0","toLowerCase","FORMAT_UNDERLINE","selection","code","has","SubscriptEditing","subscript","forceValue","*Remove format:* %0","from","model","strikethrough","document","plugins","FORMAT_SUPERSCRIPT","afterInit","registerDescriptionCallback","format","TrackChangesEditing","FORMAT_STRIKETHROUGH","CodeEditing","BoldEditing","get","change","markInlineFormat","editor","SuperscriptEditing","StrikethroughEditing","value","enableCommand","italic","superscript"];var bs,Es;bs=ps,Es=358,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x15"),"ItalicEditing",_s("0x24"),_s("0x14"),_s("0x1b"),_s("0x5"),_s("0x1a")];class Cs extends t.Plugin{[_s("0xf")](){const t=this[_s("0x19")],e=t[_s("0xa")],n=t.plugins[_s("0x16")](_s("0x12")),o=t[_s("0x22")];for(const o of Ts){if(!t[_s("0xd")][_s("0x4")](o))continue;const s=o.slice(0,-7)[_s("0x0")](),r=t.commands[_s("0x16")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0xc")][_s("0x2")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x7")]?o[_s("0x7")]:!r[_s("0x1c")];e[_s("0x17")]((()=>{const t=Array[_s("0x9")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x18")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")][_s("0x10")]((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s.commandParams[0][_s("0x7")]?{type:"format",content:Yo(o,_s("0x26"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x8"),e)}}))}s("bold",Yo(o,_s("0x23"))),s(_s("0x1e"),Yo(o,"FORMAT_ITALIC")),s("underline",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,"FORMAT_CODE")),s(_s("0xb"),Yo(o,_s("0x13"))),s(_s("0x6"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1f"),Yo(o,_s("0xe")))}}const ys=["blockQuote","locale","document","schema","commands","registerDescriptionCallback","getSelectedBlocks","afterInit","editor","filter","plugins","model","selection","parent","forceValue","$root","_descriptionFactory","ELEMENT_BLOCK_QUOTE","from","TrackChangesEditing","checkChild","commandParams","markBlockFormat","BlockQuoteEditing","get","value","enableCommand","commandName","*Remove format:* %0"];var ks,As;ks=ys,As=290,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return ys[t-=0]};class vs extends t.Plugin{[Rs("0x7")](){const t=this.editor,e=t[Rs("0x1")];if(!t[Rs("0xa")].has(Rs("0x17")))return;const n=t[Rs("0xa")][Rs("0x18")](Rs("0x13")),o=this[Rs("0x8")][Rs("0x4")][Rs("0x18")](Rs("0x0"));n[Rs("0x1a")]("blockQuote",((e,s={})=>{const r=this[Rs("0x8")][Rs("0xb")][Rs("0x2")][Rs("0xc")],i=s&&void 0!==s[Rs("0xe")]?s[Rs("0xe")]:!o[Rs("0x19")];let x=[];if(i){const e=Array[Rs("0x12")](r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,Rs("0x0")),o=e[Rs("0x14")]([Rs("0xf"),Rs("0x0")],t);return n&&o}(t,this[Rs("0x8")][Rs("0xb")][Rs("0x3")])));x=I(e,t[Rs("0xb")])}else{const e=Array.from(r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)));x=I(e,t[Rs("0xb")])}t.model.change((()=>{for(const t of x)n[Rs("0x16")](t,{commandName:Rs("0x0"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x10")][Rs("0x5")]((t=>{const{data:n}=t;if(n&&Rs("0x0")==n[Rs("0x1b")]){const t=Yo(e,Rs("0x11"));return n[Rs("0x15")][0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,Rs("0x1c"),t)}}}))}}function Is(t){return Rs("0x0")==t[Rs("0xd")].name}const Ss=["get","commands","enableCommand","ckbox"];var Ls,Ns;Ls=Ss,Ns=460,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x1")][Ms("0x0")]("ckbox")&&t.plugins[Ms("0x0")]("TrackChangesEditing")[Ms("0x2")](Ms("0x3"))}}const Os=["formatBlock","value","parent","config","ELEMENT_CODE_BLOCK","editor","change","label","language","_descriptionFactory","isLimit","document","has","registerDescriptionCallback","CodeBlock","getSelectedBlocks","TrackChangesEditing","afterInit","get","indentCodeBlock","enableCommand","model","name","outdentCodeBlock","selection","codeBlock","format","find","commandName","commandParams","forceValue","*Remove format:* %0","from","filter","plugins","languages"];var Fs,Ps;Fs=Os,Ps=242,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1b")](){const t=this[Ds("0xf")];if(!t[Ds("0x8")][Ds("0x16")](Ds("0x18")))return;const e=t[Ds("0x8")][Ds("0x1c")](Ds("0x1a")),n=t.locale,o=t[Ds("0xd")][Ds("0x1c")](Ds("0x23"))[Ds("0x9")],s=t.commands[Ds("0x1c")](Ds("0x23"));e[Ds("0x1e")](Ds("0x1d")),e[Ds("0x1e")](Ds("0x21")),e[Ds("0x1e")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1f")],x=t[Ds("0x1f")][Ds("0x15")][Ds("0x22")],a=r&&void 0!==r.forceValue?r[Ds("0x4")]:!s[Ds("0xb")];let c;r.language||(r[Ds("0x12")]=o[0][Ds("0x12")]),c=a?Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0x14")](e)&&n.checkChild(e[Ds("0xc")],Ds("0x23")));var e,n})):Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>js(t)));const l=I(c,i);i[Ds("0x10")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x23"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x23"),(t=>Yo(n,Ds("0xe"),t))),e._descriptionFactory[Ds("0x17")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xa")==s&&r&&Ds("0x23")==r[Ds("0x2")]){const t=r[Ds("0x3")][0][Ds("0x12")],s=e(o[Ds("0x1")]((e=>e[Ds("0x12")]===t))[Ds("0x11")]);return r[Ds("0x3")][0][Ds("0x4")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0xe"),1)+" ("+s+")")}:{type:Ds("0x0"),content:Yo(n,Ds("0x5"),Yo(n,Ds("0xe"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x20")]}const Us=["has","get","plugins","addCommentThread","CommentsEditing","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=471,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x4")];t.plugins[zs("0x5")](zs("0x2"))&&t[zs("0x0")][zs("0x6")]("TrackChangesEditing")[zs("0x3")](zs("0x1"))}}var Vs=n(181);const Ks=["unit","init","document","enableCommand","$graveyard","data","writer","fromRange","root","modifySelection","remove","rootName","TrackChangesEditing","commands","start","deleteForward","markerNameToElements","markerName","mapper","addMarker:suggestion:deletion","isCollapsed","setSelection","buffer","forward","removeMarker:suggestion:deletion","bind","createRange","showSuggestionHighlights","model","end","editor","high","merge","requires","detach","downcastDispatcher","batch","selection"];var qs,Xs;qs=Ks,Xs=489,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("0x0")](){return[Vs.Delete]}[$s("0x6")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x11"));e[$s("0x8")]("delete");const n=t[$s("0x12")].get($s("0x14"));e[$s("0x8")]("deleteForward",((e,o={})=>{const s=t[$s("0x21")].createSelection(t[$s("0x21")][$s("0x7")][$s("0x4")]);s[$s("0x19")]&&t[$s("0x21")][$s("0xe")](s,{direction:$s("0x1c"),unit:o[$s("0x5")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x9")==x[$s("0xd")][$s("0x10")]?t[$s("0x21")].createRange(r[$s("0x13")]):t[$s("0x21")].createRange(x[$s("0x13")],x[$s("0x22")]),x[$s("0x1")](),t[$s("0x21")].enqueueChange(n[$s("0x1b")][$s("0x3")],(t=>{n.buffer.lock(),t[$s("0x1a")](t[$s("0x1f")](a[$s("0x22")])),n[$s("0x1b")].unlock()}))})),t.editing[$s("0x2")].on("addMarker:suggestion:deletion",hs(t,$s("0x25")),{priority:$s("0x24")}),t[$s("0xa")][$s("0x2")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x20")]&&hs(t,$s("0x25"),{showActiveMarker:!1})[$s("0x1e")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x2")].on($s("0x1d"),((t,e,n)=>{const o=n[$s("0x17")][$s("0x15")](e[$s("0x16")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x16")]),n[$s("0xb")][$s("0xf")](t))}),{priority:"high"})}}const Qs=["execute","createPositionAt","isFirstBlockOfListItem","plugins","documentList","forceValue","outdentList","getAttribute","document","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","*Change to:* %0","indentList","value","splitListItemBefore","has","commands","add","listItemId","deletion","listIndent","model","ELEMENT_NUMBERED_LIST","createRange","numberedList","getFirstRange","commandName","formatBlock","_LIST","*Merge:* %0","mergeListItemBackward","*Format:* insert into %0","setSelection","end","next","accept","registerDescriptionCallback","change","start","nodeAfter","multipleBlocks","DocumentListEditing","selection","from","listType","expandListBlocksToCompleteList","fromRange","markBlockFormat","_suggestionFactory","afterInit","schema","commandParams","toUpperCase","previousSibling","detach","get","splitListItemAfter","push","DocumentListUtils","*Format:* remove from %0","getSelectedBlocks","bulletedList","isObject","enableCommand","markMultiRangeBlockFormat","before","registerCustomCallback","containsItem","editor","after","format","*Outdent:* %0","mergeListItemForward","nextSibling","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x2f")];if(!t.plugins[tr("0x45")](tr("0x14")))return;const e=t.locale,n=t.plugins[tr("0x22")]("TrackChangesEditing"),o=t[tr("0x39")][tr("0x22")](tr("0x25"));function s(e){return()=>{const s=t[tr("0x46")][tr("0x22")](e);let r=Array[tr("0x16")](t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]());if(a(e)){r=o[tr("0x18")](r);const t=[];for(const e of r)o[tr("0x38")](e)&&t.push(e);r=t}t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x2b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:"listType"},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x16")](t);const n=e.findIndex((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x0")][tr("0x3e")].selection[tr("0x27")]()),s=o[o.length-1],r=t[tr("0x0")][tr("0x1d")][tr("0x29")](s)?tr("0x30"):tr("0xc"),i=t.model.createRange(t[tr("0x0")][tr("0x37")](o[0],"before"),t[tr("0x0")][tr("0x37")](s,r));t[tr("0x0")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x34")];for(;t&&t.getAttribute("listIndent")>n[tr("0x3d")](tr("0x4a"));)e[tr("0x47")](t),t=t[tr("0x34")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]()[tr("0xd")]()[tr("0x43")],s=t[tr("0x0")][tr("0x37")](o,tr("0x2c")),r=t[tr("0x0")].createPositionAt(o,0),i=t.model[tr("0x2")](s,r);t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")})}))}}function a(e){const n=t[tr("0x46")][tr("0x22")](tr("0x28"))[tr("0x43")],o=t.commands[tr("0x22")]("numberedList")[tr("0x43")];return tr("0x3")===e?n:o}n.enableCommand(tr("0x3"),s(tr("0x3"))),n[tr("0x2a")](tr("0x28"),s(tr("0x28"))),n.enableCommand("indentList",r(tr("0x42"))),n[tr("0x2a")](tr("0x3c"),r(tr("0x3c"))),n[tr("0x2a")](tr("0x23"),x("splitListItemAfter")),n[tr("0x2a")](tr("0x44"),x("splitListItemBefore")),n[tr("0x35")].registerElementLabel((function(e){const n=!t[tr("0x0")].schema[tr("0x29")](e),o=e[tr("0x20")],s=e[tr("0x34")],r=e[tr("0x3d")]("listItemId"),i=!o||o[tr("0x3d")](tr("0x48"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x40"),t))),n._descriptionFactory[tr("0xf")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x5")]){case tr("0x28"):r=n[tr("0x1e")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x26"),i&&(o=tr("0x41")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x3f")))};break;case tr("0x3"):r=n[tr("0x1e")][0][tr("0x3b")],i=a(n[tr("0x5")]),o=r?tr("0xa"):"*Format:* remove from %0",i&&(o=tr("0x41")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x1")))};break;case tr("0x42"):o="*Indent:* %0",s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x40")))};break;case tr("0x3c"):o=function(t){const e=t[tr("0x4")]();let n=e[tr("0x11")][tr("0x12")];for(;n&&e[tr("0x2e")](n);){if(n[tr("0x3d")]("listIndent")>0)return!1;n=n[tr("0x34")]}return!0}(t)?Yo(e,tr("0x26"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x11")][tr("0x12")][tr("0x3d")](tr("0x17"))[tr("0x1f")]()+tr("0x7"))):Yo(e,tr("0x32"),Yo(e,tr("0x40"))),s={type:tr("0x31"),content:o};break;case tr("0x9"):case tr("0x33"):!1===n[tr("0x13")]&&(o=tr("0x8"),s={type:tr("0x49"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x1b")][tr("0x2d")](tr("0x6"),tr("0x3a"),tr("0xe"),(function(e,n){const o=[];for(let n of e)n[tr("0x11")][tr("0x12")]===n[tr("0xc")].parent&&(n=t[tr("0x0")].createRange(t[tr("0x0")][tr("0x37")](n[tr("0x11")][tr("0x12")],0))),o[tr("0x24")](n);t[tr("0x0")][tr("0x10")]((e=>{const s=t.model[tr("0x3e")][tr("0x15")],r=Array[tr("0x16")](s.getRanges()).map((t=>i.LiveRange[tr("0x19")](t)));e[tr("0xb")](o),t[tr("0x46")][tr("0x22")](n[tr("0x5")]).refresh(),n[tr("0x1e")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x36")](n[tr("0x5")],...n[tr("0x1e")]),e[tr("0xb")](r);for(const t of r)t[tr("0x21")]()}))}))}}var nr=n(331);const or=["enter","requires","markerName","removeMarker:suggestion:insertion","fire","showSuggestionHighlights","writer","remove","editing","markInsertion","detach","bind","options","split","end","editor","high","enableCommand","nextSibling","hasClass","fromRange","addMarker:suggestion:insertion","markerNameToElements","get","model","setSelection","afterExecute","ck-suggestion-marker-split","getFirstRange","init","createRange","data","createPositionAt","downcastDispatcher","mapper","unbindElementFromMarkerName","selection","parent"];var sr,rr;sr=or,rr=296,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("0x9")](){return[nr.Enter]}[ir("0x25")](){const t=this[ir("0x17")],e=t.plugins[ir("0x1f")]("TrackChangesEditing"),n=t.commands[ir("0x1f")](ir("0x8"));e[ir("0x19")](ir("0x8"),(()=>{t[ir("0x20")].change((o=>{const s=t[ir("0x20")].document[ir("0x6")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x1c")](s[ir("0x24")]());if(n.enterBlock(o)){const n=t[ir("0x20")][ir("0x2")](r[ir("0x7")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0x11")](s)}else o[ir("0x21")](o[ir("0x0")](x[ir("0x16")]));x[ir("0x12")](),n[ir("0xc")](ir("0x22"),{writer:o})}))})),t[ir("0x10")][ir("0x3")].on(ir("0x1d"),hs(t,ir("0x15")),{priority:ir("0x18")}),t[ir("0x10")][ir("0x3")].on(ir("0xb"),((t,e,n)=>{const o=n.mapper[ir("0x1e")](e.markerName);if(o)for(const t of o)t[ir("0x1b")](ir("0x23"))&&(n[ir("0x4")][ir("0x5")](t,e[ir("0xa")]),n[ir("0xe")][ir("0xf")](t))}),{priority:ir("0x18")}),t[ir("0x1")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x14")][ir("0xd")]&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0x13")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["replace","findByTextCallback","bind","afterInit","plugins","replaceAll","string","model","getIntersection","editor","end","enableCommand","FindAndReplaceUtils","TrackChangesEditing","findNext","start","item","has","getMarkersGroup","createPositionAt","markers","handleFindCommand","_isInDeletionRange","findPrevious","getRange","get","find"];var cr,lr;cr=ar,lr=134,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x4")](){if(!this[ur("0xa")][ur("0x5")][ur("0x12")]("FindAndReplaceEditing"))return;const t=this[ur("0xa")][ur("0x5")][ur("0x1a")](ur("0xe"));t[ur("0xc")](ur("0x0"),this[ur("0x16")][ur("0x3")](this)),t[ur("0xc")](ur("0xf")),t.enableCommand(ur("0x18")),t[ur("0xc")](ur("0x1")),t[ur("0xc")](ur("0x6"))}handleFindCommand(t,e,n={}){const o=this[ur("0xa")][ur("0x5")].get(ur("0xd"));void 0!==n&&t((t=>(ur("0x7")==typeof e?o[ur("0x2")](e,n):e)(t).filter((e=>!1===this[ur("0x17")](e,t[ur("0x11")])))),n)}[ur("0x17")](t,e){const n=this.editor[ur("0x8")].createRange(this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0x10")]),this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0xb")]));for(const t of this[ur("0xa")][ur("0x8")][ur("0x15")][ur("0x13")]("suggestion:deletion"))if(null!==n[ur("0x9")](t[ur("0x19")]()))return!0;return!1}}const gr=["document","*Reset font color*","*Set font background color:* %0","fontColor","locale","config","get","_enableCommand","fontFamily","FontSize","find","FontSizeEditing","*Set font family:* %0","value","*Reset font background color*","FontFamilyEditing","*Reset font family*","TrackChangesEditing","toLowerCase","fontSize.options","*Set font color:* %0","markInlineFormat","from","trim","fontSize","commandName","format","fontBackgroundColor.colors","normalizeSizeOptions","commandParams","_descriptionFactory","title","afterInit","model","registerDescriptionCallback","getRanges","enableCommand","plugins","editor","FontColorEditing","fontBackgroundColor","fontColor.colors","label"];var mr,fr;mr=gr,fr=418,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x17"),commandName:hr("0x24")},{pluginName:hr("0x1b"),commandName:hr("0x14")},{pluginName:hr("0x8"),commandName:hr("0xf")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1")](){const t=this.editor[hr("0x10")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x7")][hr("0x6")].has(t)&&this[hr("0x13")](e);this[hr("0x7")].plugins[hr("0x12")](hr("0x1d"))[hr("0x2a")][hr("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=n(this[hr("0x7")].plugins[hr("0x12")](hr("0x15"))[hr("0x28")](this[hr("0x7")][hr("0x11")].get(hr("0x1f")))[hr("0x16")]((t=>t[hr("0x2")]==e))[hr("0x0")]).toLowerCase();return{type:hr("0x26"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x14")==o.commandName){const e=o[hr("0x29")][0].value;return e?{type:hr("0x26"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x1c"))}}if("fontColor"==o.commandName){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")].config.get(hr("0xa")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0x20"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,hr("0xd"))}}if(hr("0x9")==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")][hr("0x11")].get(hr("0x27")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0xe"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1a"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0x6")][hr("0x12")](hr("0x1d"))[hr("0x5")](t,((n,o={})=>{const s=e[hr("0x2")][hr("0xc")].selection,r=o.value;s.isCollapsed?n(o):e.model.change((()=>{const n=Array[hr("0x22")](s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x2")]);for(const o of n)e[hr("0x6")].get(hr("0x1d"))[hr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["config","get","enableCommand","from","selection","length","join","modifySelection","_descriptionFactory","fontBackgroundColor","*Set format to:* %0","fontSize.options","find","normalizeSizeOptions","getSelectedBlocks","commandParams","copyFormat","slice","word","plugins","pasteFormat","charAt","title","format","toUpperCase","toLowerCase","getRanges","fontColor.colors","FontSize","label","registerDescriptionCallback","fontColor","change","afterInit","isBlock","schema","*Remove all formatting*","model","createSelection","keys","document","getAttributes","markInlineFormat","isCollapsed","fontSize","getAttributeProperties","boolean","TrackChangesEditing","getFirstPosition","forward","isFormatting","commands"];var _r,Tr;_r=Er,Tr=166,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x17")](){const t=this.editor,n=t[Cr("0x1b")],o=n[Cr("0x1e")][Cr("0x2e")],s=t[Cr("0x9")][Cr("0x2b")](Cr("0x25")),r=t.locale,i=t.commands[Cr("0x2b")](Cr("0x6")),x=t[Cr("0x29")][Cr("0x2b")](Cr("0xa"));i&&x&&(s[Cr("0x2c")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x16")]((()=>{const t=Array[Cr("0x2d")](o[Cr("0x10")]()),r=o[Cr("0x21")]?[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("0x1f")]()){const t=e[Cr("0x23")](n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e.getItems())!n[Cr("0x18")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x19")]))||0!==Object[Cr("0x1d")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x20")](t,{commandName:Cr("0xa"),commandParams:[i]})}))})),s[Cr("0x32")][Cr("0x14")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0xd"),content:Yo(r,Cr("0x0"),e[Cr("0x30")](", "))}:{type:Cr("0xd"),content:Yo(r,Cr("0x1a"))}}})),t[Cr("0x9")].get("TrackChangesEditing")[Cr("0x2c")](Cr("0x6")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:Cr("0x8"),direction:"backward"});const o=n[Cr("0x26")]();t[Cr("0x31")](n,{unit:Cr("0x8"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Cr("0x30")](" "),i=o(r[Cr("0xb")](0)[Cr("0xe")]()+r[Cr("0x7")](1))[Cr("0xf")]();if(Cr("0x24")==typeof n)return i;if(Cr("0x15")===e||Cr("0x33")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2a")][Cr("0x2b")](Cr("0x11"))).find((t=>t[Cr("0x1b")]==n));return i+" ("+(e?o(e[Cr("0x13")])[Cr("0xf")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2b")](Cr("0x12"))[Cr("0x3")](t[Cr("0x2a")][Cr("0x2b")](Cr("0x1")))[Cr("0x2")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0xc")])[Cr("0xf")]():n)+")"}return i+" ("+n+")"}const Rr=["has","_descriptionFactory","from","locale","commandName","registerElementLabel","commandParams","value","blockName","config","editor","ELEMENT_HEADING","get","title","enableCommand","getSelectedBlocks","format","ELEMENT_HEADING_CUSTOM","selection","plugins","heading","*Change to:* %0","filter","markBlockFormat","model","registerDescriptionCallback","document","find","formatBlock"];var vr,Ir;vr=Rr,Ir=302,function(t){for(;--t;)vr.push(vr.shift())}(++Ir);const Sr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Sr("0x1b")],e=t[Sr("0x14")],n=t[Sr("0x1a")][Sr("0x0")]("heading.options");if(!t.plugins[Sr("0x11")]("HeadingEditing"))return;const o=t[Sr("0x7")][Sr("0x0")]("TrackChangesEditing");o[Sr("0x2")](Sr("0x8"),((e,n)=>{const s=n[Sr("0x18")],r=Array[Sr("0x13")](this.editor.model[Sr("0xe")][Sr("0x6")][Sr("0x3")]())[Sr("0xa")]((t=>{return e=t,n=s,(o=this[Sr("0x1b")][Sr("0xc")].schema).checkChild(e.parent,n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Sr("0xc")].change((()=>{for(const t of r)o[Sr("0xb")](t,{commandName:"heading",commandParams:[n],formatGroupId:Sr("0x19")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0xc")]&&o[Sr("0x12")][Sr("0x16")](t[Sr("0xc")],(e=>{const n=Nr(t[Sr("0xc")]);return null!==n?s(e,n):r(e,t[Sr("0x1")])}));function s(t,n){return Yo(e,Sr("0x1c"),[t,n])}function r(t,n){return Yo(e,Sr("0x5"),[t,n])}o[Sr("0x12")][Sr("0xd")]((t=>{const{type:o,data:i}=t;if(Sr("0x10")==o&&i&&Sr("0x8")==i[Sr("0x15")]){const t=i[Sr("0x17")][0][Sr("0x18")],o=Nr(t);if(null!==o)return{type:Sr("0x4"),content:Yo(e,Sr("0x9"),s(1,o))};const x=n[Sr("0xf")]((e=>e[Sr("0xc")]===t))[Sr("0x1")];return{type:Sr("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["highlight.options","config","getAttribute","editor","commandName","toLowerCase","*Set highlight:* %0","HighlightEditing","item","_descriptionFactory","highlight","model","*Remove highlight*","afterInit","registerDescriptionCallback","push","format","TrackChangesEditing","has","isCollapsed","get","value","locale","getLastMatchingPosition","backward","plugins","FORMAT_HIGHLIGHT","markInlineFormat","formatInline","change","color","title","document","getFirstPosition","getRanges","createRange","enableCommand"];var wr,Or;wr=Mr,Or=106,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x12")](){const t=this[Fr("0x8")];if(!t.plugins[Fr("0x17")](Fr("0xc")))return;const e=t[Fr("0x1e")][Fr("0x19")](Fr("0x16"));e[Fr("0x4")](Fr("0xf"),((n,o={})=>{const s=t[Fr("0x10")][Fr("0x0")].selection,r=s[Fr("0x7")]("highlight");let i=o[Fr("0x1a")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0xd")][Fr("0x7")](Fr("0xf"))===r,o=e[Fr("0x1c")](n,{direction:Fr("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x10")][Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x2")]())i?x[Fr("0x14")](e):x.push(...ms(Fr("0xf"),e,t.model));t[Fr("0x10")][Fr("0x22")]((()=>{for(const t of x)e[Fr("0x20")](t,{commandName:Fr("0xf"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0xe")][Fr("0x13")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0xf")==s[Fr("0x9")]){const e=n.t,o=s.commandParams[0][Fr("0x1a")];if(o){const s=t[Fr("0x6")][Fr("0x19")](Fr("0x5")).find((t=>t[Fr("0x10")]==o)),r=e(s[Fr("0x24")])[Fr("0xa")]();return{type:Fr("0x15"),content:Yo(n,Fr("0xb"),r),color:{value:s[Fr("0x23")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,Fr("0x11"),Yo(n,Fr("0x1f")))}}}))}}const Dr=["for","ELEMENT_HORIZONTAL_LINE","get","editor","enableCommand","afterInit","elementToStructure","_descriptionFactory","createContainerElement","locale","TrackChangesEditing","horizontalLine","dataDowncast","plugins","registerElementLabel","createEmptyElement"];var Br,jr;Br=Dr,jr=233,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this[Ur("0xa")];if(!t[Ur("0x4")].has("HorizontalLineEditing"))return;t[Ur("0x4")][Ur("0x9")](Ur("0x1"))[Ur("0xb")](Ur("0x2"));const e=t[Ur("0x4")][Ur("0x9")](Ur("0x1")),n=t[Ur("0x0")];e[Ur("0xe")][Ur("0x5")](Ur("0x2"),(t=>Yo(n,Ur("0x8"),t))),t.conversion[Ur("0x7")](Ur("0x3"))[Ur("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x6")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["format","value","commandName","plugins","locale","enableCommand","selection","ELEMENT_HTML_EMBED","HtmlEmbed","getAttribute","registerDescriptionCallback","has","rawHtmlApi","editing","_descriptionFactory","getCustomProperty","view","change","htmlEmbed","get","afterInit","element","TrackChangesEditing","model","document","rawHtml","getSelectedElement","cancel","registerElementLabel"];var zr,Wr;zr=Hr,Wr=188,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x12")][Vr("0x1a")](Vr("0x17")))return;const e=t[Vr("0x12")][Vr("0x5")](Vr("0x8")),n=t[Vr("0x13")],o=t[Vr("0x1c")][Vr("0x2")][Vr("0xa")][Vr("0x15")];e._descriptionFactory[Vr("0xe")](Vr("0xb"),(t=>Yo(n,Vr("0x16"),t))),t[Vr("0x12")][Vr("0x5")](Vr("0x8"))[Vr("0x14")](Vr("0x4"),((n,s)=>{const r=t[Vr("0x9")],i=r.document[Vr("0x15")];r[Vr("0x3")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x7"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x18")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0x1b"))[Vr("0xd")]())}))})),e[Vr("0x0")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x11")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xf"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["convertBlockImageToInline","previous","ImageUtils","format","width","ImageEditing","filter","caption","backward","from","author","registerDescriptionCallback","detach","toPrevious","isEqual","getFirstRange","markBlockFormat","ImageUploadEditing","ImageInlineEditing","imageTypeInline","registerPostFixer","discardSuggestion","resizeImage","end","findIndex","deletion","*Remove image text alternative*","markInlineFormat","FORMAT_SIDE_IMAGE","isOwn","imageStylePostApply","head","formatInline","ELEMENT_IMAGE","insertImage","fromPosition","hasSuggestion","getAttribute","imageTypeBlock","refresh","getCaptionFromImageModelElement","newValue","isBefore","imageCaption","length","Block image to inline image","start","discard","editor","schema","selection","*Set image text alternative:* %0","Inline image to block image","type","getSuggestionCallback","has","side","getClosestSelectedImageElement","createRange","change","getSuggestion","_suggestionFactory","_descriptionFactory","commandName","join","commandParams","get","_splitMarkerName","markInsertion","Users","value","name","plugins","document","next","imageStylePreApply","ImageStyleEditing","commandReversedParams","imageBlock","imageStyle","ELEMENT_CAPTION","isBlockImage","ELEMENT_INLINE_IMAGE","newRange","element","getNearestSelectionRange","_findSuggestions","isIntersecting","getChangedMarkers","commands","convertInlineImageToBlock","toggleImageCaption","chain","suggestion","insertion","alt","getSuggestions","forceDefaultExecution","toLowerCase","isInContent","subType","markDeletion","imageTextAlternative","registerElementLabel","shouldConvertImageType","formatBlock","createRangeOn","getContainedElement","ImageResize","*Set image width:* %0","accept","isInlineImage","model","registerCustomCallback","enableCommand"];var Xr,$r;Xr=qr,$r=469,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x27")];if(!t[Jr("0x3f")][Jr("0x2e")](Jr("0x6f")))return;const n=t[Jr("0x3f")].get("TrackChangesEditing"),o=t.plugins[Jr("0x39")](Jr("0x6c")),s={},r=t.locale;if(n.enableCommand(Jr("0x19")),n._descriptionFactory[Jr("0x5e")](Jr("0x45"),(t=>Yo(r,Jr("0x18"),t))),n[Jr("0x35")][Jr("0x5e")]("imageInline",(t=>Yo(r,Jr("0x49"),t))),n._descriptionFactory[Jr("0x5e")](Jr("0x71"),(()=>Yo(r,Jr("0x47")))),t[Jr("0x3f")].has(Jr("0x8"))&&n[Jr("0x69")]("uploadImage"),t[Jr("0x3f")][Jr("0x2e")]("ImageBlockEditing")&&t[Jr("0x3f")][Jr("0x2e")](Jr("0x9"))&&(n[Jr("0x69")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document[Jr("0x29")]);t.model[Jr("0x32")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xa"),commandParams:[s]},[],Jr("0x6a"))}))})),n[Jr("0x69")](Jr("0x1d"),((e,s)=>{t.model[Jr("0x32")]((r=>{let x=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),a=r[Jr("0x61")](x);const c=i.LivePosition[Jr("0x1a")](a.start,Jr("0x4")),l=i.LivePosition[Jr("0x1a")](a.end,"toNext");n[Jr("0x58")]((()=>e(s))),x=o[Jr("0x30")](t.model.document[Jr("0x29")]),a=r[Jr("0x61")](x);const u=r[Jr("0x31")](c,l);c[Jr("0x3")](),l.detach(),n[Jr("0x7")](x,{commandName:Jr("0xa"),commandParams:[]},[],Jr("0x51")),u[Jr("0x25")][Jr("0x21")](a[Jr("0x25")])&&n[Jr("0x3b")](r.createRange(u[Jr("0x25")],a.start),Jr("0x51")),a[Jr("0xe")].isBefore(u.end)&&n.markInsertion(r[Jr("0x31")](a[Jr("0xe")],u[Jr("0xe")]),Jr("0x51"))}))})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),"discard",n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"","accept")),n[Jr("0x34")].registerCustomCallback("insertion",Jr("0x51"),Jr("0x37"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x55"),"convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x34")][Jr("0x2d")]("insertion","",Jr("0x26"));let s=e.start,r=e[Jr("0xe")];const i=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](s,Jr("0x72")),x=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](r,"forward");i.isCollapsed&&(s=i.start),x.isCollapsed&&(r=x[Jr("0xe")]),o([t[Jr("0x67")].createRange(s,r)])})),n[Jr("0x34")][Jr("0x68")]("formatBlock",Jr("0x51"),Jr("0x53"),c),n._suggestionFactory[Jr("0x68")]("insertion","convertInlineImageToBlock",Jr("0x53"),c)),t[Jr("0x3f")].has("ImageCaptionEditing")&&(n.enableCommand(Jr("0x52"),((e,s)=>{const r=t[Jr("0x3f")][Jr("0x39")]("ImageCaptionUtils");let i=o[Jr("0x30")](t.model[Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i);t[Jr("0x67")][Jr("0x32")]((()=>{if(x)return void n[Jr("0x5c")](t.model[Jr("0x61")](x));const a=o[Jr("0x48")](i);e(s),i=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i),n[Jr("0x3b")](t[Jr("0x67")][Jr("0x61")](x),a?null:Jr("0x22"))}))})),n._suggestionFactory[Jr("0x68")](Jr("0x55"),"imageCaption",Jr("0x53"),c)),t.plugins[Jr("0x2e")](Jr("0x43"))){n.enableCommand(Jr("0x46"),((s,r)=>{const i=t[Jr("0x3f")][Jr("0x39")](Jr("0x3c")).me,x=t[Jr("0x50")][Jr("0x39")](Jr("0x46"));let a=o[Jr("0x30")](t.model[Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),l=x[Jr("0x3d")];if(l==r.value)return;const u={commandName:Jr("0x46"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x67")][Jr("0x32")]((()=>{if(n[Jr("0x57")]().filter((t=>t[Jr("0x5a")]&&i==t[Jr("0x1")]&&(Jr("0x60")==t[Jr("0x2c")]||Jr("0x17")==t[Jr("0x2c")])&&(Jr("0x42")==t[Jr("0x5b")]||Jr("0x15")==t[Jr("0x5b")])&&t[Jr("0x6")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x16")]))),a=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),x[Jr("0x1e")](),t[Jr("0x50")][Jr("0x39")](Jr("0xa"))[Jr("0x1e")](),t[Jr("0x50")].get(Jr("0x1d"))[Jr("0x1e")](),l=x.value,l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x5f")](r[Jr("0x3d")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),void n[Jr("0x7")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x48")](a)?n[Jr("0x7")](a,u,[],Jr("0x15")):n[Jr("0x12")](c,u,Jr("0x15")))}))}));for(const e of t.plugins.get(Jr("0x43")).normalizedStyles)s[e[Jr("0x3e")]]=e.title[Jr("0x59")]();n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x42"),"join",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),"imageStylePostApply","join",(()=>{})),n[Jr("0x34")].registerCustomCallback("formatInline","imageStylePostApply",Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),Jr("0x42"),Jr("0x65"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x60"),"imageStylePreApply",Jr("0x26"),((t,e)=>{n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"",Jr("0x65"))(t,{commandName:e[Jr("0x36")],commandParams:e[Jr("0x44")]})})),n._suggestionFactory[Jr("0x68")]("formatBlock",Jr("0x42"),Jr("0x53"),c)}const x=[{type:"formatBlock",subType:Jr("0x42")},{type:"insertion",subType:Jr("0x22")},{type:Jr("0x60"),subType:Jr("0x51")},{type:Jr("0x55"),subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0xf")]((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t.subType==n)),r=x[Jr("0xf")]((({type:t,subType:n})=>e[Jr("0x2c")]==t&&e[Jr("0x5b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x6")]();if((0==s||1==s)&&2==r&&i[Jr("0x4e")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x4d")](i,"insertion")[Jr("0x70")]((({suggestion:t,meta:e})=>e[Jr("0x14")]&&Jr("0x51")==t[Jr("0x5b")]));if(t[Jr("0x23")]>1&&a[Jr("0xe")][Jr("0x5")](i[Jr("0x25")]))return!0;if(1==t[Jr("0x23")]&&(i[Jr("0x25")].isEqual(a[Jr("0xe")])||i[Jr("0xe")][Jr("0x5")](a[Jr("0x25")])))return!0}if(3==s&&3==r&&i[Jr("0x25")].isBefore(a[Jr("0x25")])){const t=i[Jr("0xe")].nodeAfter,e=a[Jr("0x25")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x67")][Jr("0x40")][Jr("0xb")]((()=>{let e=!1;const s=Array[Jr("0x0")](t[Jr("0x67")].document.differ[Jr("0x4f")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x3a")](t);if(Jr("0x54")==s&&n[Jr("0x1b")](a)){if("formatBlock"==i&&(Jr("0x42")==x||Jr("0x15")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t[Jr("0x6")]()[Jr("0x62")]();if(o.isBlockImage(s))continue;n[Jr("0xc")](t),e=!0}}if("insertion"==i&&Jr("0x22")==x&&!r[Jr("0x4a")]){const t=n[Jr("0x33")](a);t[Jr("0x41")]&&t[Jr("0x41")][Jr("0x5a")]&&(n[Jr("0xc")](t[Jr("0x41")]),e=!0)}}}return e})),t[Jr("0x3f")][Jr("0x2e")](Jr("0x63"))&&n[Jr("0x69")](Jr("0xd"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document.selection);r[Jr("0x1c")]("width")!=s[Jr("0x6e")]&&t[Jr("0x67")][Jr("0x32")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0xd"),commandParams:[s]})}))})),t[Jr("0x3f")][Jr("0x2e")]("ImageTextAlternativeEditing")&&n[Jr("0x69")](Jr("0x5d"),((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document.selection);(r.hasAttribute(Jr("0x56"))?r.getAttribute("alt"):"")!=s[Jr("0x20")]&&t[Jr("0x67")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x5d"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x2")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t[Jr("0x5b")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x35")][Jr("0x2")]((t=>{if(Jr("0x55")==t[Jr("0x2c")]||Jr("0x10")==t[Jr("0x2c")]){const e=t[Jr("0x62")]();if(e&&e.is(Jr("0x4b"),Jr("0x71")))return{type:"insertion"==t[Jr("0x2c")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x2")]((t=>Jr("0x60")==t[Jr("0x2c")]&&Jr("0x51")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x2b")}:Jr("0x60")==t[Jr("0x2c")]&&Jr("0x6a")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x24")}:void 0)),n[Jr("0x35")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x46")==e[Jr("0x36")]){const t=e.commandParams[0][Jr("0x3d")];return n=Jr("0x2f")===t?Yo(r,Jr("0x13")):s[t]||t,{type:Jr("0x6d"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5d")==e[Jr("0x36")]){const t=e[Jr("0x38")][0][Jr("0x20")];return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0x6d"),content:Yo(r,Jr("0x11"))}}if(Jr("0xd")==e[Jr("0x36")]){const t=e.commandParams[0].width;return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x64"),t)}:{type:Jr("0x6d"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","TrackChangesEditing","handleSuggestionDescription","handleReplaceImageCommand","_descriptionFactory","source","model","data","editor","replaceImageSource","_suggestionFactory","enableCommand","get","format","change","discard","getSelectedElement","has","getSuggestionCallback","plugins","ImageEditing","getAttribute","document","registerDescriptionCallback","getSuggestions","accept","formatBlock","author","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=108,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x10")].plugins[ei("0x19")](ei("0x1c")))return;const t=this[ei("0x10")][ei("0x1b")][ei("0x14")](ei("0x9"));t[ei("0x13")](ei("0x11"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")].registerCustomCallback(ei("0x5"),ei("0x11"),ei("0x4"),t[ei("0x12")][ei("0x1a")](ei("0x5"),null,ei("0x17"))),t[ei("0x12")][ei("0x7")](ei("0x5"),"replaceImageSource",ei("0x17"),t[ei("0x12")][ei("0x1a")]("formatBlock",null,ei("0x4"))),t[ei("0xc")][ei("0x2")]((t=>this[ei("0xa")](t)))}[ei("0xb")](t,e){const n=this[ei("0x10")].plugins[ei("0x14")](ei("0x9")),o=this[ei("0x10")][ei("0xe")][ei("0x1")].selection[ei("0x18")]();this[ei("0x10")][ei("0xe")][ei("0x16")]((()=>{let s=o[ei("0x0")]("src");const r=this[ei("0x10")][ei("0x1b")][ei("0x14")]("Users").me;for(const t of n[ei("0x3")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x11")===t.subType&&e===o){t[ei("0x6")]!==r&&t[ei("0x17")](),s=t[ei("0xf")].commandParams[0][ei("0xd")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0xa")](t){const{data:e}=t;if(e&&ei("0x11")===e.commandName){const t="*Format:* replace image URL";return{type:ei("0x15"),content:Yo(this[ei("0x10")][ei("0x8")],t)}}}}const oi=["collaboration_features","TrackChangesEditing","dataInsert","track_changes","trackChanges","execute","high","Users","importWord","get","_trackChangesExecuted","lowest","value","_trackChangesValueDuringImport","enableCommand","editor","forEach","_handleImportedData","afterInit","plugins","commands"];var si,ri;si=oi,ri=412,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("0x0")]=!1,this._trackChangesExecuted=!1}[ii("0x5")](){const t=this[ii("0x2")],e=t[ii("0x7")][ii("0x11")]("importWord"),n=t[ii("0x7")][ii("0x11")]("trackChanges");e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x0")]=n[ii("0x14")],e[ii("0x8")][ii("0xb")]=!this[ii("0x0")]}),{priority:ii("0xe")}),this.listenTo(e,ii("0xa"),this[ii("0x4")].bind(this)),this.listenTo(e,ii("0xa"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0x12")]=!1)}),{priority:ii("0x13")}),t[ii("0x6")].get(ii("0x9"))[ii("0x1")](ii("0x10")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x7")][ii("0x11")](ii("0xc")),s=o.value;this[ii("0x0")]!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x6")].get(ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x10")}}};this.editor[ii("0x6")][ii("0x11")](ii("0x9"))._setSuggestionData(s)}))}}const ai=["schema","model","outdentBlock","outdent","from","registerDescriptionCallback","filter","blockIndent","commandName","indent","locale","IndentBlock","getItemLabel","has","getSelectedBlocks","selection","plugins","change","format","editor","_descriptionFactory","*Indent:* %0","document","indentBlock","enableCommand","afterInit","*Outdent:* %0"];var ci,li;ci=ai,li=479,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x5")](){const t=this.editor,e=t[ui("0x17")].get("TrackChangesEditing");t[ui("0x17")][ui("0x14")]("IndentEditing")&&(e[ui("0x4")](ui("0x10")),e.enableCommand(ui("0xa")));const n=t[ui("0x11")];if(t[ui("0x17")][ui("0x14")](ui("0x12"))){for(const n of["indentBlock",ui("0x9")])e[ui("0x4")](n,(()=>{const o=Array[ui("0xb")](this[ui("0x1a")].model[ui("0x2")][ui("0x16")][ui("0x15")]())[ui("0xd")]((t=>this[ui("0x1a")][ui("0x8")][ui("0x7")].checkAttribute(t,ui("0xe"))));t[ui("0x8")][ui("0x18")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x3")})}))}));e._descriptionFactory[ui("0xc")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x9")!=o[ui("0xf")])return;const s=t.getItems()[0],r=e[ui("0x0")][ui("0x13")](s);return"indentBlock"==o[ui("0xf")]?{type:ui("0x19"),content:Yo(n,ui("0x1"),r)}:"outdentBlock"==o[ui("0xf")]?{type:"format",content:Yo(n,ui("0x6"),r)}:void 0}))}}}var gi,mi,fi=["editor","TrackChangesEditing","get","plugins","input","enableCommand"];gi=fi,mi=385,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}init(){this[hi("0x5")][hi("0x2")][hi("0x1")](hi("0x0"))[hi("0x4")](hi("0x3"))}}const bi=["afterInit","getAttribute","getFirstRange","_descriptionFactory","TrackChangesEditing","plugins","linkHref","enableCommand","isCollapsed","markInlineFormat","LinkEditing","getRanges","model","*Remove link*","unlink","editor","link","commandName","document","change","get","*Set link:* %0","commandParams","format","from"];var Ei,_i;Ei=bi,_i=310,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xf")](){const t=this[Ti("0x5")];if(!t[Ti("0x14")].has(Ti("0x0")))return;const e=t[Ti("0x14")][Ti("0xa")](Ti("0x13"));e[Ti("0x16")](Ti("0x6"),((n,o)=>{const s=t[Ti("0x2")].document.selection;let r=[];if(s[Ti("0x17")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x15"),s[Ti("0x10")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array[Ti("0xe")](s[Ti("0x1")]());t[Ti("0x2")][Ti("0x9")]((()=>{for(const t of r)e[Ti("0x18")](t,{commandName:Ti("0x6"),commandParams:[o]})}))})),e[Ti("0x16")]("unlink",(()=>{const n=this.editor[Ti("0x2")],o=n[Ti("0x8")].selection;n[Ti("0x9")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x15"),o.getAttribute(Ti("0x15")),t.model)]:ms(Ti("0x15"),o[Ti("0x11")](),t[Ti("0x2")]);for(const t of n)e[Ti("0x18")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x6")==n[Ti("0x7")]){const t=n[Ti("0xc")][0];return{type:"format",content:Yo(o,Ti("0xb"),'"'+t+'"')}}return Ti("0x4")==n[Ti("0x7")]?{type:Ti("0xd"),content:Yo(o,Ti("0x3"))}:void 0}}))}}const yi=["previousSibling","TodoListEditing","*Uncheck item*","markBlockFormat","*Indent:* %0","*Change to:* %0","*Outdent:* %0","numbered","value","numberedList","_selectedElements","length","commandParams","listType","getSelectedBlocks","blockName","editor","model","execute","outdentList","TrackChangesEditing","document","listItem","selection","slice","registerDescriptionCallback","from","ListEditing","registerElementLabel","ELEMENT_BULLETED_LIST","_descriptionFactory","listIndent","replace","checkTodoList","afterInit","schema","format","change","List","getAttribute","get","filter","element","createPositionAt","paragraph","ELEMENT_LIST_ITEM","commandName","before","indentList","todoList","bulleted","*Check item*","push","enableCommand","plugins","name","locale","forceValue","nextSibling","add","todoListChecked","has"];var ki,Ai;ki=yi,Ai=402,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return yi[t-=0]};class vi extends t.Plugin{[Ri("0x4")](){const t=this[Ri("0x30")],e=t[Ri("0x1a")];if(!t.plugins[Ri("0x1f")](Ri("0x3b")))return;const n=t[Ri("0x18")][Ri("0xa")](Ri("0x34")),o=t.plugins[Ri("0x1f")](Ri("0x21"));function s(e){return()=>{const o=t[Ri("0x31")][Ri("0x35")][Ri("0x37")],s=t.commands.get(e);if(s[Ri("0x28")])return void t[Ri("0x32")](Ri("0xe"),{});const r=e[Ri("0x38")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n).checkChild(e.parent,Ri("0x36"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(Ri("0xc"),Ri("0x36"))||t[Ri("0x9")](Ri("0x2d"))!=e));const s=new Set;for(const t of o)t.is(Ri("0xc"),Ri("0x36"))?s.add(Ii(t)):s.add(t);return Array[Ri("0x3a")](s)}(o[Ri("0x2e")](),r,t[Ri("0x31")][Ri("0x5")]);t[Ri("0x31")][Ri("0x7")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ri("0x28")]}],formatGroupId:Ri("0x2f")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ri("0x3a")](t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[Ri("0x38")](0,n)),e}(t[Ri("0x31")].document[Ri("0x37")][Ri("0x2e")]()),s=t.model.createRange(t[Ri("0x31")][Ri("0xd")](o[0],Ri("0x11")),t[Ri("0x31")][Ri("0xd")](o[o[Ri("0x2b")]-1],"end"));t[Ri("0x31")][Ri("0x7")]((()=>{n[Ri("0x23")](s,{commandName:e,commandParams:[],formatGroupId:Ri("0x1")},function(t){const e=new Set;for(const n of t){let t=n[Ri("0x1c")];for(;t&&t[Ri("0x9")]("listIndent")>n[Ri("0x9")](Ri("0x1"));)e[Ri("0x1d")](t),t=t[Ri("0x1c")]}return Array[Ri("0x3a")](e)}(o))}))}}n[Ri("0x17")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[Ri("0x17")](Ri("0x13"),s("todoList")),n.enableCommand(Ri("0x12"),r(Ri("0x12"))),n[Ri("0x17")](Ri("0x33"),r(Ri("0x33"))),o&&n[Ri("0x17")](Ri("0x3"),(()=>{const e=t.commands[Ri("0xa")]("checkTodoList"),o=Array.from(e[Ri("0x2a")]);o[Ri("0xb")]((t=>t.getAttribute(Ri("0x1e"))!=e[Ri("0x28")])),t.model.change((()=>{for(const t of o)n[Ri("0x23")](t,{commandName:Ri("0x3"),commandParams:[{forceValue:!e[Ri("0x28")]}]})}))})),n[Ri("0x0")][Ri("0x3c")]("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Ri("0x0")][Ri("0x39")]((t=>{const{data:n}=t;if(n){if(Ri("0x29")==n.commandName||"bulletedList"==n.commandName||Ri("0x13")==n[Ri("0x10")])switch(n.commandName[Ri("0x2")](Ri("0x8"),"")){case Ri("0x14"):return o(Yo(e,Ri("0x3d")));case Ri("0x27"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ri("0x12")==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x24"),Yo(e,Ri("0xf")))};if("outdentList"==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x26"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ri("0x3")==n[Ri("0x10")])return n[Ri("0x2c")][0][Ri("0x1b")]?{type:Ri("0x6"),content:Yo(e,Ri("0x15"))}:{type:Ri("0x6"),content:Yo(e,Ri("0x22"))}}function o(t){return{type:Ri("0x6"),content:Yo(e,Ri("0x25"),t)}}}))}}function Ii(t){const e=t[Ri("0x9")](Ri("0x1"));if(0==e)return t;let n=t;for(;t[Ri("0x20")]&&t[Ri("0x20")].is(Ri("0xc"),Ri("0x36"));){const o=t[Ri("0x20")].getAttribute(Ri("0x1"));if(o==e)n=t[Ri("0x20")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(Ri("0xc"),Ri("0x36"))&&t[Ri("0x9")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ri("0x36")==n[Ri("0x19")]&&n.getAttribute(Ri("0x1"))==t[Ri("0x9")]("listIndent");)e[Ri("0x16")](n),n=n[Ri("0x1c")]}return e}const Li=["reversed","getListTypeFromListStyleType","*Format:* set order to reversed","handleDescriptions","editor","plugins","document","listStart","createPositionAt","flat","change","forward","get","_getSuggestionBlocksForListStyle","ListPropertiesEditing","unshift","startIndex","replace","createRange","ELEMENT_","listReversed","_getTranslationKeyForListStyle","bind","length","backward","listStyle","commandParams","listItem","model","*Format:* set order to regular","locale","markMultiRangeBlockFormat","selection","*Format:* set start index to %0","getAttribute","_getSuggestionBlocks","getSelectedBlocks","getFirstPosition","handleListStyleCommand","before","element","TrackChangesEditing","map","_descriptionFactory","handleListReversedCommand","getSiblingNodes","handleListStartCommand","from","getLastPosition","styles","_LIST_","numbered","toUpperCase","format","ListUtils","type","push","enableCommand"];var Ni,Mi;Ni=Li,Mi=195,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x29")].plugins.has(wi("0x33")))return;const t=this.editor.config.get("list.properties"),e=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x14"));t[wi("0x1c")]&&e.enableCommand(wi("0x4"),this[wi("0x11")].bind(this)),t[wi("0x25")]&&e[wi("0x24")]("listReversed",this[wi("0x17")][wi("0x1")](this)),t[wi("0x35")]&&e[wi("0x24")]("listStart",this[wi("0x19")].bind(this)),e[wi("0x16")].registerDescriptionCallback(this[wi("0x28")][wi("0x1")](this))}[wi("0x11")](t,e={}){const n=this.editor[wi("0x2a")][wi("0x31")](wi("0x14")),o=this[wi("0x32")]();this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x22")]}],formatGroupId:"listStyle"})}))}[wi("0x17")](t,e={}){const n=this.editor.plugins[wi("0x31")](wi("0x14")),o=this[wi("0xe")]((t=>t.is("element","listItem")&&wi("0x1e")===t[wi("0xd")]("listType")));if(o.length<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")][wi("0x7")][wi("0x2d")](t,wi("0x12")),this[wi("0x29")].model[wi("0x2d")](t,0))));this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](s,{commandName:wi("0x39"),commandParams:[{reversed:e[wi("0x25")]}],formatGroupId:wi("0x39")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x29")][wi("0x2a")][wi("0x31")]("TrackChangesEditing"),o=this[wi("0xe")]((t=>t.is(wi("0x13"),wi("0x6"))&&"numbered"===t[wi("0xd")]("listType")));if(o[wi("0x2")]<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")].model.createPositionAt(t,wi("0x12")),this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0))));this[wi("0x29")][wi("0x7")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x2c")})}))}[wi("0x28")](t){const e=this[wi("0x29")][wi("0x9")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:wi("0x20"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x5")][0].type)))};break;case wi("0x39"):o=n[wi("0x5")][0][wi("0x25")]?wi("0x27"):wi("0x8"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0xc"),s={type:wi("0x20"),content:Yo(e,o,n[wi("0x5")][0][wi("0x35")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x21"));let r=Array.from(this[wi("0x29")][wi("0x7")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x13"),wi("0x6")))&&r[wi("0x34")](...s[wi("0x18")](this[wi("0x29")][wi("0x7")].document[wi("0xb")][wi("0x10")](),wi("0x3"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",wi("0x6")))&&r[wi("0x23")](...s[wi("0x18")](this.editor[wi("0x7")][wi("0x2b")][wi("0xb")][wi("0x1b")](),wi("0x30"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0x10")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x13"),wi("0x6")))&&(r=r.filter((t=>t.is(wi("0x13"),wi("0x6"))))),r}[wi("0xe")](t){const e=this[wi("0x29")].plugins.get(wi("0x21"));let n=Array[wi("0x1a")](this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0xf")]()).filter(t).map((t=>{const n=this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0);return[...e[wi("0x18")](n,wi("0x3")),...e[wi("0x18")](n,wi("0x30"))]}))[wi("0x2e")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x38")+this[wi("0x29")][wi("0x2a")][wi("0x31")]("ListUtils")[wi("0x26")](t)[wi("0x1f")]()+wi("0x1d")+t.toUpperCase()[wi("0x36")](/-/g,"_")}}const Fi=["editor","media","get","dataDowncast","MediaEmbedEditing","elementToElement","has","data","high","plugins","mediaEmbed","stop","registerElementLabel","locale","options","downcastDispatcher","ELEMENT_MEDIA","showSuggestionHighlights","conversion","div"];var Pi,Di;Pi=Fi,Di=417,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x3")];if(!t.plugins[Bi("0x9")](Bi("0x7")))return;const e=t[Bi("0xc")][Bi("0x5")]("TrackChangesEditing"),n=t[Bi("0x10")];e.enableCommand(Bi("0xd")),e._descriptionFactory[Bi("0xf")](Bi("0x4"),(t=>Yo(n,Bi("0x13"),t))),t[Bi("0x1")].for(Bi("0x6"))[Bi("0x8")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e.createEmptyElement(Bi("0x2"))},converterPriority:Bi("0xb")}),t[Bi("0xa")][Bi("0x12")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0x0")]&&t[Bi("0xe")]()}),{priority:Bi("0xb")})}}const Ui=["get","afterInit","mention","MentionEditing","enableCommand","plugins"];var Gi,Hi;Gi=Ui,Hi=367,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t[zi("0x4")].has(zi("0x2"))&&t.plugins[zi("0x5")]("TrackChangesEditing")[zi("0x3")](zi("0x1"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","plugins","_descriptionFactory","PageBreakEditing","enableCommand","has","get","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=205,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];if(!t[Xi("0x4")][Xi("0x8")](Xi("0x6")))return;t[Xi("0x4")][Xi("0x0")](Xi("0x1"))[Xi("0x7")]("pageBreak");const e=t[Xi("0x4")][Xi("0x0")](Xi("0x1")),n=t.locale;e[Xi("0x5")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["consume","isObject","nodeAfter","start","activeMarkers","blockName","has","writer","enableCommand","editing","format","afterInit","registerDescriptionCallback","getItemLabel","*Change to:* %0","getFirstRange","ck-suggestion-marker--active","editor","getSelectedBlocks","type","insertParagraph","checkChild","isLimit","filter","schema","data","parent","markerName","registerElementLabel","createUIElement","end","downcastDispatcher","span","selection","addClass","_descriptionFactory","name","showSuggestionHighlights","paragraph","markerRange","mapper","plugins","ck-suggestion-marker-split","$text","highest","isTouching","from","model","locale","insertion","get","TrackChangesEditing","consumable","isBlock","addMarker:suggestion:insertion"];var Qi,Zi;Qi=Ji,Zi=478,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1c")](){const t=this.editor;if(!t.plugins[Yi("0x17")]("Paragraph"))return;const e=t[Yi("0xa")],n=t[Yi("0x3")][Yi("0xc")]("TrackChangesEditing");n[Yi("0x34")][Yi("0x2d")](Yi("0x0"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x19")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x9")].document,r=o.selection||s[Yi("0x32")],i=Array[Yi("0x8")](r[Yi("0x23")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x22")][Yi("0x9")].schema)[Yi("0x26")](e[Yi("0x2b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x0")!=e[Yi("0x35")];var e,n}));t[Yi("0x9")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x16")},fs(t))}))})),n[Yi("0x34")][Yi("0x1d")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x1b"),content:Yo(e,Yi("0x1f"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x25")),t[Yi("0x1a")][Yi("0x30")].on(Yi("0x10"),ex(t),{priority:"highest"}),t[Yi("0x2a")].downcastDispatcher.on(Yi("0x10"),((e,n,o)=>{o.options[Yi("0x36")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x34")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x24")])return;const{start:s,end:r}=n[Yi("0x20")]();if(!s.isTouching(r)||!s[Yi("0x13")])return;const i=t[Yi("0x9")].schema,x=s[Yi("0x13")];return i[Yi("0xf")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x5"))?{type:Yi("0xb"),content:Yo(e,"*Insert:* %0",o[Yi("0x1e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0xc")](Yi("0xd")),i=o.markerRange[Yi("0x14")],x=o[Yi("0x1")][Yi("0x2f")],a=t[Yi("0x9")][Yi("0x29")];if(!i[Yi("0x7")](x)||!i[Yi("0x13")])return;const c=i[Yi("0x13")];if(a[Yi("0xf")](c)&&!a[Yi("0x27")](c)&&a[Yi("0x26")](c,Yi("0x5"))){if(!s[Yi("0xe")][Yi("0x11")](o.markerRange,n.name))return;const t=s[Yi("0x18")][Yi("0x2e")](Yi("0x31"),{class:Yi("0x4")}),i=s[Yi("0x2")].toViewPosition(x);e&&r[Yi("0x15")].includes(o[Yi("0x2c")])&&s[Yi("0x18")][Yi("0x33")](Yi("0x21"),t),s.writer.insert(i,t),s[Yi("0x2")].bindElementToMarker(t,o[Yi("0x2c")])}}}const nx=["selection","schema","model","get","isFormatting","getAttributeProperties","from","registerDescriptionCallback","isCollapsed","commandName","editor","*Remove all formatting*","document","getAttributes","has","removeFormat","TrackChangesEditing","locale","_descriptionFactory","getRanges","plugins","createRangeOn","afterInit"];var ox,sx;ox=nx,sx=472,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xa")](){const t=this[rx("0x15")];if(!t[rx("0x8")][rx("0x2")]("RemoveFormatEditing"))return;const e=t[rx("0x8")][rx("0xe")](rx("0x4"));e.enableCommand(rx("0x3"),(n=>{const o=t.model[rx("0x0")][rx("0xb")];o[rx("0x13")]?n():t[rx("0xd")].change((()=>{const n=Array[rx("0x11")](o[rx("0x7")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xd")][rx("0xc")])&&e.markInlineFormat(t[rx("0xd")][rx("0x9")](n),{commandName:rx("0x3"),commandParams:[]})}))})),e[rx("0x6")][rx("0x12")]((e=>{const{data:n}=e;if(n&&rx("0x3")==n[rx("0x14")])return{type:"format",content:Yo(t[rx("0x5")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0xf")])return!0}return!1}const ax=["trackChanges","plugins","RestrictedEditingModeEditing","discardAllSuggestions","has","enableCommand","acceptSuggestion","get","afterInit","acceptSelectedSuggestions","editor"];var cx,lx;cx=ax,lx=404,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x0")](){const t=this[ux("0x2")];if(!t[ux("0x4")][ux("0x7")](ux("0x5")))return;const e=t[ux("0x4")][ux("0xa")]("TrackChangesEditing");e[ux("0x8")]("goToPreviousRestrictedEditingException"),e[ux("0x8")]("goToNextRestrictedEditingException");const n=t[ux("0x4")].get(ux("0x5"));n.enableCommand(ux("0x3")),n[ux("0x8")](ux("0x9")),n.enableCommand("discardSuggestion"),n[ux("0x8")]("acceptAllSuggestions"),n[ux("0x8")](ux("0x6")),n[ux("0x8")](ux("0x1")),n[ux("0x8")]("discardSelectedSuggestions")}}const gx=["bindElementToMarker","markerName","_descriptionFactory","editing","TrackChangesEditing","showSuggestionHighlights","split","createUIElement","test","plugins","high","addMarker:suggestion:insertion","softBreak","data","shiftEnter","ck-suggestion-marker-","addMarker:suggestion","addClass","insert","writer","locale","createPositionBefore","registerElementLabel","editor","consumable","ELEMENT_LINE_BREAK","enableCommand","mapper","merge","downcastDispatcher","init","markerRange","get","includes","element","model","span","name","ck-suggestion-marker--active","getItems"];var mx,fx;mx=gx,fx=184,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x6")](){const t=this[hx("0x27")],e=t[hx("0x19")][hx("0x8")](hx("0x14"));e[hx("0x2")](hx("0x1e")),t[hx("0x13")][hx("0x5")].on(hx("0x1b"),bx(t),{priority:hx("0x1a")}),t.editing[hx("0x5")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1a")}),t[hx("0x1d")].downcastDispatcher.on(hx("0x20"),((e,n,o)=>{o.options[hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0x26")](hx("0x1c"),(e=>Yo(t[hx("0x24")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x19")][hx("0x8")](hx("0x14"));if(!s[hx("0x0")][hx("0x18")](o[hx("0x7")],n[hx("0xd")]))return;const i=t[hx("0xb")];for(const t of o.markerRange[hx("0xf")]()){if(!t.is(hx("0xa"),hx("0x1c")))continue;const n="deletion"==o[hx("0x11")].split(":")[1]?hx("0x4"):hx("0x16"),x=s[hx("0x23")][hx("0x17")](hx("0xc"),{class:hx("0x1f")+n}),a=s[hx("0x3")].toViewPosition(i[hx("0x25")](t));e&&r.activeMarkers[hx("0x9")](o[hx("0x11")])&&s[hx("0x23")][hx("0x21")](hx("0xe"),x),s.writer[hx("0x22")](a,x),s[hx("0x3")][hx("0x10")](x,o[hx("0x11")])}}}const Ex=["model","TrackChangesEditing","plugins","afterInit","registerDescriptionCallback","getRanges","get","change","has","commandParams","format","selection","_descriptionFactory","forceValue","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","value","markInlineFormat","commandName","commands"];var _x,Tx;_x=Ex,Tx=459,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this.editor,e=t[Cx("0x3")],n=t[Cx("0x11")];if(!t[Cx("0x5")][Cx("0xb")](Cx("0x12")))return;const o=t[Cx("0x5")][Cx("0x9")](Cx("0x4")),s="restrictedEditingException",r=t[Cx("0x2")][Cx("0x9")](s);o.enableCommand(s,((t,n={})=>{const i=e.document[Cx("0xe")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x10")]:!r[Cx("0x15")];e[Cx("0xa")]((()=>{const t=Array.from(i[Cx("0x8")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0x7")]((t=>{const{data:e}=t;if(e&&e[Cx("0x1")]==s)return e[Cx("0xc")][0][Cx("0x10")]?{type:Cx("0xd"),content:Yo(n,Cx("0x13"))}:{type:Cx("0xd"),content:Yo(n,Cx("0x14"))}}))}}const kx=["plugins","DataSchema","style","_descriptionFactory","getItems","getSelectedBlocks","createRangeOn","getDefinitionsForView","value","config","push","styleName","*Format:* %0","from","toLowerCase","element","enabledStyles","inline","name","commandParams","style.definitions","_getRangesWithClasses","includes","format","commandName","afterInit","isBlock","getAttribute","get","model","style:","editor","classes","enableCommand","Style","forceValue","modelElements","document","_getStyleDefinition","change","markInlineFormat","commands","find","registerDescriptionCallback","TrackChangesEditing","StyleUtils"];var Ax,Rx;Ax=kx,Rx=111,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);const vx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[vx("0x6")](){const t=this[vx("0xc")];if(!t[vx("0x1b")].has(vx("0xf")))return;const e=t[vx("0x16")][vx("0x9")](vx("0x1d")),n=t[vx("0x1b")][vx("0x9")](vx("0x19")),o=t.locale,s=t[vx("0x1b")][vx("0x9")](vx("0x1c")),r=t.plugins.get(vx("0x1a")).normalizeConfig(s,t[vx("0x24")].get(vx("0x1")));n[vx("0xe")]("style",((o,{styleName:i})=>{const x=t[vx("0xa")][vx("0x12")].selection,a=this[vx("0x13")](i,r);if(!a)return;if(!e[vx("0x2b")][vx("0x3")](i))return;if(x.isCollapsed&&!a[vx("0x7")])return void o({styleName:i});const c=!e[vx("0x23")][vx("0x3")](a[vx("0x2d")]);if(a[vx("0x7")]){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[vx("0x3")](o[vx("0x2d")])){n.add(o);break}}return n}(x[vx("0x20")](),a[vx("0x11")]);t[vx("0xa")][vx("0x14")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:vx("0x1d"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:vx("0xb")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array[vx("0x28")](s[vx("0x22")](a[vx("0x2a")],!1))[0][vx("0xa")],o=[];for(const s of e){const e=this[vx("0x2")](t.model,s,a[vx("0xd")],n);o[vx("0x25")](...e)}e=o}t[vx("0xa")].change((()=>{for(const t of e)n[vx("0x15")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[vx("0x1e")][vx("0x18")]((t=>{const{data:e}=t;if(e&&"style"===e[vx("0x5")])return e.commandParams[0][vx("0x10")]?{type:vx("0x4"),content:Yo(o,vx("0x27"),e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}}))}[vx("0x13")](t,e){let n=e.block.find((e=>e[vx("0x2d")]===t));return n||(n=e[vx("0x2c")][vx("0x17")]((e=>e[vx("0x2d")]===t))),n}[vx("0x2")](t,e,n,o){const s=[];for(const r of e[vx("0x1f")]()){const e=r[vx("0x8")](o);e&&n.every((t=>e[vx("0xd")][vx("0x3")](t)))&&s[vx("0x25")](t[vx("0x21")](r))}return s}}const Sx=["forceValue","tableRow","getRanges","MAX_SAFE_INTEGER","cell","locale","markMultiRangeDeletion","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","enqueueChange","_setupColumnsRowsFixing","filter","insertTableColumnRight","insertTable","*Insert:* %0","createRangeIn","from","ELEMENT_TABLE","classes","getChanges","has","enableCommand","join","writer","last","findAncestor","end","getChangedMarkers","removeTableRow","getAttribute","isInContent","tableCell","getSuggestion","getRowIndexes","isTouching","includes","minColumn","add","setSelection","getChildren","options","TrackChangesEditing","accept","batch","insertTableRowBelow","mapper","push","removeClass","minRow","execute","editor","getFirstRange","insertTableColumnLeft","insertion","table","rootName","hasAttribute","detach","rowspan","tableColumn","refresh","selectTableRow","registerDescriptionCallback","start","ELEMENT_TABLE_ROW","discard","colspan","addMarker:suggestion","maxRow","TableEditing","_tablePostFixingSubtypes","maxColumn","max","selectTableColumn","isIntersectingWithRange","commands","*Remove:* %0","change:data","map","isArray","span","min","registerCustomCallback","differ","tablePaste","addRange","substr","values","nodeBefore","document","nodeAfter","addClass","toLowerCase","change","TableUtils","selection","_suggestionFactory","_descriptionFactory","_getSuggestionCoords","get","root","$graveyard","ELEMENT_TABLE_WITH_TEXT","type","getItems","isEqual","deletion","afterInit","order","subType","oldRange","low","getColumnIndexes","item","position","_tableSuggestions","createRangeOn","model","removeTableColumn","getCellLocation","length","insert","getSelectionAffectedTableCells","left","fromRange","$textProxy","markMultiRangeInsertion","some","MIN_SAFE_INTEGER","data","createPositionAt","ELEMENT_TABLE_COLUMN_WITH_TEXT","createTableWalker","getContainedElement","name"];var Lx,Nx;Lx=Sx,Nx=460,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x13")]=["tableRow",Mx("0x8")],this[Mx("0x40")]=new Set}[Mx("0x38")](){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")].selection;if(!t.plugins[Mx("0x69")](Mx("0x12")))return;const n=t[Mx("0x59")],o=t.plugins[Mx("0x30")]("TrackChangesEditing"),s=t[Mx("0x5d")].get(Mx("0x2b"));o[Mx("0x2e")].registerElementLabel("table",(t=>Yo(n,Mx("0x66"),t))),this[Mx("0x5f")](),o[Mx("0x6a")](Mx("0x62")),o[Mx("0x6a")](Mx("0xa")),o[Mx("0x6a")](Mx("0x16"));for(const n of["insertTableRowAbove",Mx("0x81")]){const r=t.commands[Mx("0x30")](n);o.enableCommand(n,(n=>{t.model[Mx("0x2a")]((t=>{n();const i="above"===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o[Mx("0x4b")](d,Mx("0x55"))}))}))}for(const n of[Mx("0x1"),Mx("0x61")]){const r=t[Mx("0x18")].get(n);o[Mx("0x6a")](n,(n=>{t[Mx("0x42")][Mx("0x2a")]((t=>{n();const i=Mx("0x48")===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s[Mx("0x3d")](x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x65")](u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o.markMultiRangeInsertion(d,Mx("0x8"))}))}))}for(const n of[Mx("0x71"),Mx("0x43")]){const r=n.substr(11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x1d"),a=Mx("0x3")+r,c="min"+r,l=Mx("0x15")+r;o[Mx("0x6a")](n,(()=>{t[Mx("0x42")].change((t=>{const r=s[Mx("0x47")](e),u=r[0][Mx("0x6e")](Mx("0x3"));let d;if("removeTableRow"==n){const t=s[Mx("0x76")](r);d={startRow:t[Mx("0x5b")],endRow:t[Mx("0x6d")],includeAllSlots:!0}}else{const t=s[Mx("0x3d")](r);d={startColumn:t.first,endColumn:t[Mx("0x6d")],includeAllSlots:!0}}const g=s[Mx("0x51")](u,d),m=Array[Mx("0x65")](g)[Mx("0x1b")]((({cell:t})=>t)),f=Ox(m[Mx("0x60")]((t=>t[Mx("0x5")](x)))),h=Ox(m[Mx("0x60")]((t=>!t[Mx("0x5")](x)))).map((e=>t[Mx("0x41")](e))),p=o[Mx("0x5a")](h,a);if(p&&(Mx("0x55")==p.subType||Mx("0x8")==p[Mx("0x3a")])){const e=this[Mx("0x2f")](p);for(const n of f){const o=t[Mx("0x41")](n),r=s.getCellLocation(n),a=n[Mx("0x72")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x22")](o)}}}))}))}function r(n){const o=Array[Mx("0x65")](e[Mx("0x56")]())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t)));t[Mx("0x42")][Mx("0x2a")]((e=>{const s=e[Mx("0x80")];n=n.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")])),e.setSelection(n),t[Mx("0x18")][Mx("0x30")](Mx("0x71")).refresh(),t.execute(Mx("0x71"),{forceDefaultExecution:!0}),t[Mx("0x42")][Mx("0x5e")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));e[Mx("0x45")]>0&&t[Mx("0x7b")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t))),r=[];for(const t of n)for(const e of t[Mx("0x35")]({shallow:!0}))r[Mx("0x83")](e);for(const e of r)"$graveyard"!=e.root.rootName&&(o[Mx("0x7b")](o[Mx("0x4f")](e,0)),t[Mx("0x18")].get(Mx("0x43"))[Mx("0x9")](),t[Mx("0x86")](Mx("0x43"),{forceDefaultExecution:!0}));const x=s[Mx("0x60")]((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));x[Mx("0x45")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x6")]()}))}function c(t,e){return e.every((e=>t[Mx("0x4c")]((t=>t[Mx("0x6f")].isEqual(e[Mx("0xc")])||e[Mx("0x6f")][Mx("0x36")](t[Mx("0xc")])))))}function l(t,e){return t.some((t=>e.some((e=>t.end[Mx("0x77")](e[Mx("0xc")])))))}t[Mx("0x4e")].downcastDispatcher.on(Mx("0x10"),((t,e,n)=>{if(!n[Mx("0x7d")].showSuggestionHighlights)return;const o=e[Mx("0x3e")];if(!o)return;const s=n[Mx("0x82")].toViewElement(o);function r(t){return Array[Mx("0x1c")](t)?t:[t]}s&&Mx("0x74")===o[Mx("0x53")]&&(0,x.setHighlightHandling)(s,n[Mx("0x6c")],((t,e,n)=>n[Mx("0x28")](r(e[Mx("0x67")]),t)),((t,e,n)=>n[Mx("0x84")](r(e.classes),t)))}),{priority:"highest"}),o._descriptionFactory[Mx("0xb")]((t=>{if("insertion"!=t[Mx("0x34")]&&"deletion"!=t[Mx("0x34")])return;const e=t[Mx("0x52")]();if(null!=e&&e.is("element",Mx("0x3"))){if(Mx("0x2")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:"insertion",content:Yo(n,Mx("0x63"),Yo(n,Mx("0x33"),'"'+e[Mx("0x6b")](" ")+'"'))}}if(Mx("0x37")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x6b")](" ")+'"'))}}}})),o[Mx("0x2e")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[Mx("0x60")]((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this[Mx("0x2f")](t),s=o[Mx("0x11")]-o[Mx("0x85")]+1;if(Mx("0x2")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0xd"),s))};if("deletion"==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0xd"),s))}}if(Mx("0x8")==t[Mx("0x3a")]){const e=t[Mx("0x35")]()[Mx("0x60")]((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this._getSuggestionCoords(t),s=o[Mx("0x14")]-o[Mx("0x79")]+1;if(Mx("0x2")==t[Mx("0x34")])return e.length?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x37")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o._suggestionFactory.registerCustomCallback("insertion",Mx("0x55"),Mx("0xe"),r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),Mx("0x55"),"accept",r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0xe"),a),o._suggestionFactory[Mx("0x1f")](Mx("0x37"),Mx("0x8"),Mx("0x7f"),a),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")]("deletion","tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),Mx("0x55"),Mx("0x6b"),l),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),"tableRow",Mx("0x6b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")][Mx("0x2c")];return(n,o)=>{t[Mx("0x42")][Mx("0x2a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6f")][Mx("0x25")];x&&x[0]&&!1===x[0][Mx("0x54")]&&(a=n[0].start[Mx("0x27")]);const c=s[Mx("0x64")](a);if(Mx("0x32")==c[Mx("0x31")][Mx("0x4")])return;const l=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[Mx("0x18")].get(r)[Mx("0x9")](),x[Mx("0x83")]({forceDefaultExecution:!0}),t[Mx("0x86")](r,...x);const u=l[Mx("0x60")]((t=>Mx("0x32")!=t.root[Mx("0x4")]));u[Mx("0x45")]>0&&s[Mx("0x7b")](u);for(const t of l)t[Mx("0x6")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x87")][Mx("0x5d")][Mx("0x30")](Mx("0x2b"));let n=Number[Mx("0x57")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x57")],r=Number[Mx("0x4d")];for(const i of t){if("$graveyard"==i[Mx("0x31")][Mx("0x4")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x5")](Mx("0x7"))?i.getAttribute(Mx("0x7"))-1:0,c=i[Mx("0x5")](Mx("0xf"))?i[Mx("0x72")](Mx("0xf"))-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}}_setupColumnsRowsFixing(){const t=this[Mx("0x87")],e=t[Mx("0x5d")][Mx("0x30")](Mx("0x7e")),n=t.plugins[Mx("0x30")]("TableUtils");t[Mx("0x42")][Mx("0x26")].on(Mx("0x1a"),(()=>{const n=Array.from(t[Mx("0x42")].document[Mx("0x20")][Mx("0x70")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Mx("0x3b")])continue;const i=e[Mx("0x75")](s);this[Mx("0x13")][Mx("0x78")](r)&&this[Mx("0x40")][Mx("0x7a")](i)}}),{priority:Mx("0x3c")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x3")),i=n[Mx("0x44")](t);for(const e of this[Mx("0x40")]){const n=e[Mx("0x3a")],x=n.startsWith(Mx("0x21")),a=n[Mx("0x23")](x?10:5),c=a[Mx("0x29")](),l=c[Mx("0x23")](0,3)+Mx("0x1d"),u=Mx("0x1e")+a,d=Mx("0x15")+a;if(!e[Mx("0x73")])continue;if(r!=e[Mx("0x0")]()[Mx("0xc")][Mx("0x6e")]("table"))continue;if(e[Mx("0x17")](s))continue;const g=t[Mx("0x5")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x22")](s),o=!0)}return o};t[Mx("0x42")][Mx("0x26")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x42")][Mx("0x26")][Mx("0x20")][Mx("0x68")]())if(Mx("0x46")==s.type)if("tableRow"==s[Mx("0x53")])for(const t of s[Mx("0x3f")][Mx("0x27")][Mx("0x7c")]())n=n||o(t,e);else Mx("0x74")==s[Mx("0x53")]&&(n=n||o(s[Mx("0x3f")].nodeAfter,e));return n}))}[Mx("0x2f")](t){return this._getCoordsForCells(t.getRanges()[Mx("0x1b")]((t=>t.start[Mx("0x27")])))}}function Ox(t){return Array[Mx("0x65")](new Set(t)[Mx("0x24")]())}const Fx=["getSuggestions","registerCustomCallback","enableCommand","requires","cell","map","_areMergableCells","document","set:isEnabled","getAncestors","$graveyard","splitTableCellHorizontally","insertion","mergeTableCells","_descriptionFactory","TrackChangesEditing","containsRange","getRanges","commandName","markBlockFormat","_acceptFormatSuggestionCallbackFactory","trackChanges","setSelection","selection","get","mergeTableCellLeft","low","value","has","author","getSelectionAffectedTableCells","mergeTableCellDown","_suggestionFactory","add","mergeTableCellRight","locale","from","splitTableCellVertically","markMultiRangeBlockFormat","filter","mergeTableCellUp","find","root","commands","isInContent","afterInit","registerDescriptionCallback","length","*Merge cells*","getFirstPosition","format","createTableWalker","TableEditing","getCellLocation","*Split cell:* vertically","change","push","tableCell","_areSelectedCellsMergable","rootName","editor","deletion","isEnabled","plugins","table","forceDefaultExecution","element","type","*Split cell:* horizontally","refresh","return","size","execute","_tablePostFixingSubtypes","model","direction","createRangeOn","highest","fromRange","formatBlock","subType"];var Px,Dx;Px=Fx,Dx=359,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x31")](){return[wx]}[Bx("0xa")](){const t=this[Bx("0x19")],e=t[Bx("0x27")][Bx("0x35")].selection,n=t[Bx("0x0")];if(!t.plugins[Bx("0x4a")](Bx("0x11")))return;const o=t[Bx("0x1c")][Bx("0x46")]("TrackChangesEditing"),s=t.plugins.get("TableUtils"),r=t.plugins[Bx("0x46")](wx);r[Bx("0x26")][Bx("0x15")]("mergeTableCells"),o[Bx("0x30")](Bx("0x3b"),(()=>{const e=s[Bx("0x4c")](t[Bx("0x27")][Bx("0x35")][Bx("0x45")]);t[Bx("0x27")][Bx("0x14")]((()=>{o[Bx("0x3")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x8")][Bx("0x46")](Bx("0x3b")).on(Bx("0x25"),((e,n)=>{t[Bx("0x8")].get(Bx("0x43")).value&&(n[Bx("0xc")]>0&&n[n[Bx("0xc")]-1]&&n[n.length-1][Bx("0x1e")]||o._isForcedDefaultExecutionBlock||this[Bx("0x17")]()||e.stop())}),{priority:Bx("0x2a")});for(const e of[Bx("0x5"),Bx("0x50"),Bx("0x4d"),Bx("0x47")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const e=t.model[Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16")))),s=n[Bx("0x49")];t[Bx("0x27")][Bx("0x14")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x3b"),commandParams:[]},[],Bx("0x3b"))}))}))}for(const e of[Bx("0x2"),Bx("0x39")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const r=s[Bx("0x4c")](t.model[Bx("0x35")][Bx("0x45")])[0],i=r.findAncestor(Bx("0x1d")),{column:x,row:a}=s[Bx("0x12")](r);let c=[];if("horizontally"==n[Bx("0x28")]){const t=s[Bx("0x10")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t.cell))}else{const t=s[Bx("0x10")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t[Bx("0x32")]))}t[Bx("0x27")][Bx("0x14")]((t=>{o[Bx("0x41")](t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x40")]?{type:Bx("0xf"),content:Yo(n,Bx("0xd"))}:void 0})),o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x40")]?{type:"format",content:Yo(n,Bx("0x13"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x21"))}:void 0}));const x=r[Bx("0x42")]();for(const t of["mergeTableCellUp",Bx("0x50"),Bx("0x4d"),Bx("0x47")])o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),t,"accept",x);for(const t of[Bx("0x2"),Bx("0x39")])o[Bx("0x4e")].registerCustomCallback(Bx("0x2c"),t,"accept",x);o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),Bx("0x3b"),"accept",(n=>{t[Bx("0x27")][Bx("0x14")]((o=>{const s=Array.from(e[Bx("0x3f")]()).map((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x44")](n),t[Bx("0x8")][Bx("0x46")](Bx("0x3b"))[Bx("0x22")](),t[Bx("0x25")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x4")]((t=>Bx("0x38")!=t[Bx("0x7")][Bx("0x18")]));r[Bx("0xc")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x5"),Bx("0x4d"),Bx("0x47"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x46")](e);n.on(Bx("0x36"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16"))));this[Bx("0x34")](n.value,o)||(e[Bx("0x23")]=!1,e.stop())}}),{priority:Bx("0x48")})}}[Bx("0x17")](){const t=this[Bx("0x19")].commands[Bx("0x46")](Bx("0x3b")),e=this[Bx("0x19")].plugins.get("TableUtils");if(!t[Bx("0x1b")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x19")][Bx("0x27")][Bx("0x35")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x34")](t,e){const n=this[Bx("0x19")][Bx("0x1c")][Bx("0x46")](Bx("0x3d")),o=this[Bx("0x19")][Bx("0x27")][Bx("0x29")](t),s=this[Bx("0x19")].model[Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2e")]())if((Bx("0x3a")==t.type||Bx("0x1a")==t.type||Bx("0x3b")==t[Bx("0x2d")])&&t[Bx("0x9")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x4f")](t[Bx("0x20")]+":"+t[Bx("0x4b")].id),e[Bx("0x3e")](s,!0)&&i.add(t[Bx("0x20")]+":"+t[Bx("0x4b")].id);if(r[Bx("0x24")]!=i[Bx("0x24")])return!1;for(const t of r)if(!i[Bx("0x4a")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","commandName","TableUtils","parent","setTableRowHeader","bindElementToMarker","markBlockFormat","addClass","createTableWalker","removeMarker:suggestion","mapper","getCellLocation","highest","data-suggestion","FORMAT_HEADER_COLUMN","nodeBefore","_suggestionFactory","model","first","setTableColumnHeader","item","forceValue","_acceptFormatSuggestionCallbackFactory","getChild","FORMAT_HEADER_ROW","requires","commandParams","value","getRowIndexes","selection","editing","createPositionAfter","from","isBefore","table","getSelectionAffectedTableCells","FORMAT_REGULAR_COLUMN","end","createRange","formatBlock","data","last","ck-suggestion-marker--active","consumable","afterInit","enableCommand","registerCustomCallback","plugins","showSuggestionHighlights","stop","removeAttribute","FORMAT_REGULAR_ROW","_splitMarkerName","document","consume","markerName","headingColumns","commands","writer","options","has","getColumnIndexes","getAttribute","*Format:* %0","removeClass","downcastDispatcher","cell","registerDescriptionCallback","childCount","createPositionBefore","markerRange","accept","name","addMarker:suggestion","start","index","setAttribute","nodeAfter","get","findAncestor"];var Gx,Hx;Gx=Ux,Hx=189,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("0x4c")](){return[wx]}[zx("0xf")](){const t=this.editor;if(!t[zx("0x12")][zx("0x1f")]("TableEditing"))return;const e=t.locale,n=t.plugins.get("TrackChangesEditing"),o=t[zx("0x12")][zx("0x31")]("TableUtils"),s=t[zx("0x12")][zx("0x31")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x17")](r[zx("0x1a")]),c=n.getSuggestion(a);if(!c[zx("0xb")]||zx("0x46")!=c[zx("0xb")][zx("0x34")])return;if(r[zx("0x47")])return void s[zx("0x14")]();if(!i[zx("0xe")][zx("0x19")](r[zx("0x29")],s[zx("0x2b")]))return;const l=r[zx("0x29")][zx("0x2d")][zx("0x30")],u=r.markerRange[zx("0x8")][zx("0x42")],d=l[zx("0x36")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o[zx("0x3e")](u);for(let s=g;s<=m;s++){const c=o[zx("0x3b")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x25")],c=i[zx("0x3d")].toViewElement(s);i[zx("0x1d")][zx("0x3a")](zx("0x33")+x,c),e&&i.writer[zx("0x2f")]("data-suggestion",a,c),i[zx("0x3d")][zx("0x38")](c,r[zx("0x1a")]),t&&(n.activeMarkers.includes(r.markerName)?i[zx("0x1d")][zx("0x3a")]("ck-suggestion-marker--active",c):i[zx("0x1d")][zx("0x23")](zx("0xd"),c))}}}}n.enableCommand(zx("0x37"),((e,s)=>{const r=o[zx("0x6")](t[zx("0x44")][zx("0x18")][zx("0x0")]),i=o[zx("0x4f")](r),x=r[0][zx("0x32")](zx("0x5")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x48")]?s[zx("0x48")]:!t[zx("0x1c")][zx("0x31")]("setTableRowHeader")[zx("0x4e")],l=c?i[zx("0xc")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x2e")]<e[zx("0x2e")])return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](e[zx("0x4a")](0)),t[zx("0x44")].createPositionAfter(u.getChild(u[zx("0x27")]-1)))}else{const e=x[zx("0x4a")](a-1);if(!e)return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](u[zx("0x4a")](0)),t[zx("0x44")][zx("0x2")](e[zx("0x4a")](e[zx("0x27")]-1)))}t[zx("0x44")].change((()=>{n[zx("0x39")](d,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x10")](zx("0x46"),((e,o)=>{const s=t[zx("0x12")][zx("0x31")](zx("0x35")),r=s.getSelectionAffectedTableCells(t[zx("0x44")].document[zx("0x0")]),i=s[zx("0x20")](r),x=r[0][zx("0x32")](zx("0x5")),a=x[zx("0x21")](zx("0x1b"))||0,c=o&&null!==o.forceValue?o[zx("0x48")]:!t[zx("0x1c")][zx("0x31")](zx("0x46"))[zx("0x4e")];let l;const u=x.getChild(0),d=c?i[zx("0xc")]:i[zx("0x45")],g=s[zx("0x3b")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3")](g)[0][zx("0x25")];if(c){const e=u.getChild(a);if(m[zx("0x4")](e))return;l=t[zx("0x44")][zx("0x9")](t[zx("0x44")][zx("0x28")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x4a")](a-1);if(!e)return;l=t[zx("0x44")][zx("0x9")](t.model[zx("0x28")](m),t[zx("0x44")][zx("0x2")](e))}t[zx("0x44")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t[zx("0x1")][zx("0x24")].on(zx("0x2c"),r(),{priority:zx("0x3f")}),t.data[zx("0x24")].on(zx("0x2c"),((t,e,n)=>{n[zx("0x1e")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x3f")}),t[zx("0x1")][zx("0x24")].on(zx("0x3c"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x1a")]),i=n.getSuggestion(r);if(!i[zx("0xb")]||zx("0x46")!=i.data.commandName)return;const x=o[zx("0x3d")].markerNameToElements(e[zx("0x1a")]);if(x)for(const t of x)o.writer[zx("0x23")](zx("0x33")+s,t),o[zx("0x1d")][zx("0x23")]("ck-suggestion-marker--active",t),o.writer[zx("0x15")](zx("0x40"),t),o[zx("0x3d")].unbindElementFromMarkerName(t,e[zx("0x1a")])}),{priority:"highest"}),n._descriptionFactory[zx("0x26")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x34")]){const t=n.commandParams[0][zx("0x48")];return o(Yo(e,zx(t?"0x4b":"0x16")))}if(zx("0x46")==n[zx("0x34")]){const t=n[zx("0x4d")][0][zx("0x48")];return o(Yo(e,zx(t?"0x41":"0x7")))}}function o(t){return{type:"format",content:Yo(e,zx("0x22"),t)}}}));const i=s[zx("0x49")]();n[zx("0x43")][zx("0x11")]("formatBlock","setTableRowHeader",zx("0x2a"),i),n[zx("0x43")][zx("0x11")](zx("0xa"),zx("0x46"),zx("0x2a"),i)}}const Vx=["newRange","length","elementToElement","isEmpty","cells","endColumn","columnInsertionRanges","*Replace table cells*","markMultiRangeDeletion","updateMarker","insert","tablePasteColumn","remove","deletion","createRange","suggestion:formatBlock:tablePasteCell","activeMarkers","name","ck-suggestion-marker-insertion","suggestion-td","markerToHighlight","editingDowncast","getItems","push","reduce","previous","TableClipboard","tableCellBorderColor","register","tableCellSuggestion","commands","element","markerName","subType","suggestionUnloaded","insertion","view","first","tableCellHorizontalAlignment","some","rows","suggestion","removeMarkers","getSuggestion","removeMarker","tablePaste","tableCellVerticalAlignment","createElement","cell","removeColumns","high","map","getRowIndexes","model","removeRows","end","registerPostFixer","editor","getAllAdjacentSuggestions","next","get","find","_getCoordsForCells","getContainedElement","deletionRanges","tableCell","differ","requires","table","getChanges","_descriptionFactory","stop","batch","ck-suggestion-marker","createRangeOn","columns","add","getRange","root","start","nodeAfter","change","join","_suggestionFactory","isEqual","markMultiRangeInsertion","discard","getTableIfOnlyTableInContent","insertColumns","fill","getSuggestions","isInContent","Users","tablePasteRow","conversion","tableCellBorderWidth","type","low","getRows","containsRange","rowInsertionRanges","_tablePostFixingSubtypes","every","createRangeIn","position","from","rowInsertionIndexes","registerCustomCallback","startsWith","fromEntries","set","unwrap","setAttributes","afterInit","getColumnIndexes","markerAttributes","columnInsertionIndexes","getChangedMarkers","getSelectionAffectedTableCells","tablePasteChainId","document","forceDefaultExecution","_replaceTableSlotCell","includes","insertContent","getMarkers","_splitMarkerName","_isForcedDefaultExecutionBlock","$graveyard","getColumns","entries","plugins","_createdBatches","keys","tablePasteCell","tableCellBorderStyle","getRanges","for","getChild","findAncestor","getAttributes","accept","dataDowncast","filter","getChildren","has","wrap","formatBlock","tableCellBackgroundColor","paragraph","oldRange","createTableWalker","insertionRanges","attributes","locale","setAttribute"];var Kx,qx;Kx=Vx,qx=383,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x18"),Xx("0x70"),Xx("0x40"),Xx("0x7b"),Xx("0x83"),Xx("0x4d"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x98")](){return[wx]}[Xx("0x2a")](){const t=this[Xx("0x8e")];if(!t[Xx("0x3c")][Xx("0x4a")](Xx("0x6f")))return;const n=t[Xx("0x3c")][Xx("0x91")]("TrackChangesEditing"),o=t[Xx("0x3c")][Xx("0x91")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x91")](wx),r=t[Xx("0x3c")].get(Xx("0x6f"));s[Xx("0x1e")].push(Xx("0x16"),Xx("0x60")),t.model.schema[Xx("0x71")](Xx("0x72"),{allowIn:Xx("0x96"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x17")][Xx("0x57")]({model:Xx("0x72"),view:Xx("0x68")});let i=null;t[Xx("0x8a")].on(Xx("0x35"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x56")]-1];l&&l[Xx("0x32")]||n[Xx("0x38")]||this[Xx("0x8e")][Xx("0x73")].get("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x10")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x2f")](n[Xx("0x31")].selection);if(!i[Xx("0x56")])return!1;const x=i[0].findAncestor(Xx("0x99")),a=o[Xx("0x89")](i),c=o[Xx("0x2b")](i),l={startRow:a[Xx("0x7a")],endRow:a.last,startColumn:c[Xx("0x7a")],endColumn:c.last};return 1==i.length&&(l.endRow+=o[Xx("0x1b")](r)-1,l[Xx("0x5a")]+=o[Xx("0x3a")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x8a")],o,r)&&(s[Xx("0x0")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x8a")].change((()=>{t[Xx("0x8a")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0xe")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x56")]&&n[Xx("0xe")](r,Xx("0x60"),{tablePasteChainId:o}),a[Xx("0x56")]&&n[Xx("0xe")](a,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x5d")](c,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Xx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3f"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x8a")][Xx("0x3")](o),i=e[Xx("0x92")]((t=>t.getRange().isEqual(r)));i&&n[Xx("0x6c")]([i[Xx("0x66")],s])}n[Xx("0x56")]&&u[Xx("0x54")](Xx("0x2c"),Object[Xx("0x26")](n))}i=null})))}),{priority:e.priorities[Xx("0x87")]+10}),t[Xx("0x3c")][Xx("0x91")](Xx("0x6f")).on(Xx("0x33"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x85")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x61")](r[Xx("0x43")](0));for(const t of Array.from(x[Xx("0x49")]()))s[Xx("0x5f")](t,r,"end");const t=i.rowInsertionIndexes.includes(n.row),e=i[Xx("0x2d")][Xx("0x34")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x20")](r));else{const t=s[Xx("0x84")](Xx("0x72")),e=s[Xx("0x84")](Xx("0x72"));s[Xx("0x4b")](s[Xx("0x20")](r),e),s[Xx("0x5f")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x5f")](e,t,Xx("0x8c"));l=s[Xx("0x3")](t),u=s[Xx("0x3")](e)}const d=Array[Xx("0x22")](x[Xx("0x45")]())[Xx("0x48")]((([t])=>$x[Xx("0x34")](t)));i[Xx("0x59")][Xx("0x6c")]({element:r,attributes:d[Xx("0x56")]?Object.fromEntries(d):null}),l&&i[Xx("0x51")][Xx("0x6c")](l),u&&i[Xx("0x95")][Xx("0x6c")](u)}),{priority:Xx("0x87")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4")]||1;i[Xx("0x2d")]=new Array(a).fill(x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5b")].push(t[Xx("0x8a")][Xx("0x3")](e))}),{priority:Xx("0x1a")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7d")]||1;i[Xx("0x23")]=new Array(a)[Xx("0x12")](x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x50")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1d")].push(t[Xx("0x8a")].createRangeOn(e))}),{priority:Xx("0x1a")}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return e[Xx("0x6e")]?{}:{type:Xx("0x78"),content:Yo(t[Xx("0x53")],Xx("0x5c"))}}));const x=()=>{};for(const t of[Xx("0x82"),Xx("0x60"),Xx("0x16"),Xx("0x3f")])n[Xx("0xc")][Xx("0x24")](Xx("0x78"),t,Xx("0xb"),x),n[Xx("0xc")][Xx("0x24")](Xx("0x62"),t,Xx("0xb"),x);n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),Xx("0x3f"),"discard",x),n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),"tablePasteCell",Xx("0x46"),((e,n,o)=>{const s=e[Xx("0x88")]((t=>t[Xx("0x94")]()))[Xx("0x48")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x59")])e&&r[Xx("0x27")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x3b")](o.markerAttributes)){const o=t[Xx("0x8a")].markers[Xx("0x91")](e),s=o?o[Xx("0x6")]()[Xx("0x94")]():null;s&&r.set(s,n)}t[Xx("0x8a")].change((t=>{for(const[e,n]of r)t[Xx("0x29")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0xc")][Xx("0x24")](e,Xx("0x82"),o,((s,r,i)=>{t[Xx("0x8a")][Xx("0xa")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8")][Xx("0x9")];e.is("element",Xx("0x72"))&&x[Xx("0x6c")](e)}n[Xx("0xc")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x39")!=e[Xx("0x7")].rootName&&t.unwrap(e)}))}))};a(Xx("0x78"),Xx("0x46")),a(Xx("0x78"),Xx("0xf")),a(Xx("0x62"),Xx("0x46")),a(Xx("0x62"),Xx("0xf")),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x16"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x8b")](n,{at:r,rows:i-r+1})})),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x60"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0][Xx("0x44")](Xx("0x99")),{minColumn:r,maxColumn:i}=s[Xx("0x93")](e);o[Xx("0x86")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x76")]||!e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return;const o=e[Xx("0x52")][Xx("0x30")],s=n[Xx("0x13")]().filter((t=>t[Xx("0x14")]&&t[Xx("0x52")]&&t[Xx("0x52")][Xx("0x30")]==o));s[Xx("0x56")]&&e.getAllAdjacentSuggestions()[Xx("0x56")]!=s.length&&s[Xx("0x6d")](((t,e)=>(t[Xx("0x90")]=e,e[Xx("0x6e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x37")](t[Xx("0x75")]),s=[Xx("0x2"),Xx("0x67")],r=n[Xx("0x65")].includes(t.markerName);return r&&s[Xx("0x6c")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x87")}),n.on(Xx("0x77"),c,{priority:Xx("0x87")}),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x22")](t[Xx("0x8a")][Xx("0x31")][Xx("0x97")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x37")](s);if("suggestion"!=o||"deletion"!=i||r[Xx("0x4f")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x80")](x)[Xx("0x41")](),c=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me;for(const t of n[Xx("0x13")]())if(t[Xx("0x14")]&&t.author==c&&"formatBlock"==t[Xx("0x19")]&&Xx("0x3f")==t[Xx("0x76")]&&t[Xx("0x41")]()[Xx("0x1f")]((t=>a[Xx("0x7c")]((e=>e[Xx("0x1c")](t,!0))))))for(const n of t[Xx("0x8f")]())n[Xx("0x14")]&&(n[Xx("0xf")](),e=!0)}return e})),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((e=>{const o=t.commands[Xx("0x91")]("redo");if(!o||!o[Xx("0x3d")][Xx("0x4a")](e[Xx("0x1")]))return!1;let s=!1;const r=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me,i=t[Xx("0x8a")].document.differ[Xx("0x9a")](),x=Array[Xx("0x22")](t[Xx("0x8a")].document.differ[Xx("0x2e")]())[Xx("0x48")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x37")](t);return Xx("0x7e")==o&&Xx("0x82")==s&&i==r.id&&!e[Xx("0x4f")]}));for(const t of i){if(Xx("0x5f")!=t.type||Xx("0x72")!=t[Xx("0x66")]||1!=t[Xx("0x56")])continue;const n=e[Xx("0x63")](t[Xx("0x21")],t[Xx("0x21")].getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x55")][Xx("0xd")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x5e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x31")][Xx("0x8d")]((e=>{let o=!1;const s=t[Xx("0x3c")].get(Xx("0x15")).me,r=n[Xx("0x13")]()[Xx("0x48")]((t=>t[Xx("0x14")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x82")==t[Xx("0x76")])for(const e of t[Xx("0x36")]()){const n=e[Xx("0x6")]()[Xx("0x94")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x66")]),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x74"),Xx("0x72")),c=r&&r.is(Xx("0x74"),Xx("0x72"));a&&!i[Xx("0x4a")](s)&&x[Xx("0x5")](s),c&&!i.has(r)&&x[Xx("0x5")](r)}else n.is(Xx("0x74"),Xx("0x4e"))&&n[Xx("0x58")]&&(t[Xx("0x81")](e.name),o=!0)}else if(Xx("0x3f")==t[Xx("0x76")]){if(!t[Xx("0x52")]||!t.attributes[Xx("0x30")])continue;const e=t.attributes[Xx("0x2c")];if(e&&Object[Xx("0x3e")](e)[Xx("0x56")])continue;const n=t.attributes[Xx("0x30")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")]("tablePaste")){if(!e.attributes[Xx("0x30")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x52")][Xx("0x30")]==n){s=!1;break}}i&&s&&(t[Xx("0x7f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x28")](t);return o})),t[Xx("0x17")][Xx("0x42")](Xx("0x6a"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>l(t),converterPriority:Xx("0x87")}),t[Xx("0x17")][Xx("0x42")](Xx("0x47"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t.editing[Xx("0x79")];this.listenTo(u[Xx("0x31")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x20")](e.content)[Xx("0x6b")]())t.is(Xx("0x74"),Xx("0x68"))&&n[Xx("0x6c")](t);u[Xx("0xa")]((t=>{for(const e of n)t.move(t[Xx("0x20")](e),t.createPositionBefore(e)),t[Xx("0x61")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x43")](0);return e.is("element","paragraph")&&e[Xx("0x58")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x50")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_descriptionFactory","columnWidths","formatGroupId","locale","resizeTableWidth","Users","subType","registerCustomCallback","formatBlock","model","has","getContainedElement","plugins","enableCommand","_suggestionFactory","markBlockFormat","resizeColumnWidths","discard","handleSuggestionDescription","getAttribute","format","registerDescriptionCallback","tableWidth","getTableColumnsWidths","handleResizeTableWidthCommand","editor","bind","table","author","getColumnGroupElement","commandParams","accept","*Format:* resize table","resizeTable","get","getSelectedElement","data","selection","change"];var ea,na;ea=ta,na=356,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x1e")].plugins[oa("0xf")]("TableColumnResizeEditing"))return;const t=this[oa("0x1e")].plugins[oa("0x27")]("TrackChangesEditing");t[oa("0x12")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t.enableCommand(oa("0x15"),this[oa("0x1d")].bind(this)),t[oa("0x13")].registerCustomCallback("formatBlock",oa("0x26"),oa("0x24"),t[oa("0x13")].getSuggestionCallback(oa("0xd"),null,oa("0x16"))),t._suggestionFactory[oa("0xc")](oa("0xd"),oa("0x26"),oa("0x16"),t[oa("0x13")].getSuggestionCallback("formatBlock",null,oa("0x24"))),t[oa("0x5")][oa("0x1a")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x1d")](t,e){const n=this[oa("0x1e")][oa("0x11")].get("TrackChangesEditing"),o=this[oa("0x1e")].plugins[oa("0x27")](oa("0x4")),s=e[oa("0x20")]||this[oa("0x1e")][oa("0xe")].document[oa("0x2")][oa("0x0")]();this[oa("0x1e")][oa("0xe")][oa("0x3")]((()=>{const r=o[oa("0x22")](s);let i=r?o[oa("0x1c")](r):null,x=s[oa("0x18")](oa("0x1b"))||null;const a=e.tableWidth||x,c=e[oa("0x6")]||i,l=this[oa("0x1e")].plugins[oa("0x27")](oa("0xa")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x26")===t[oa("0xb")]&&e===s){t[oa("0x21")]!==l&&t[oa("0x16")]();const e=t[oa("0x1")][oa("0x23")];x=e[0][oa("0x1b")],i=e[0][oa("0x6")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x26")},[],oa("0x26"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&oa("0x26")===e[oa("0x7")]){const t=oa("0x25");return{type:oa("0x19"),content:Yo(this[oa("0x1e")][oa("0x8")],t)}}}}const ra=["get","plugins","editor","has","afterInit","enableCommand","insertTemplate"];var ia,xa;ia=ra,xa=139,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x3")];t[aa("0x2")][aa("0x4")]("Template")&&t[aa("0x2")][aa("0x1")]("TrackChangesEditing")[aa("0x6")](aa("0x0"))}}const la=["commands","afterInit","insertTableOfContents","plugins","registerElementLabel","get","_descriptionFactory","TrackChangesEditing"];var ua,da;ua=la,da=456,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this.editor;if(!t[ga("0x0")][ga("0x5")](ga("0x2")))return;t[ga("0x3")][ga("0x5")](ga("0x7")).enableCommand(ga("0x2"));const e=t[ga("0x3")][ga("0x5")](ga("0x7")),n=t.locale;e[ga("0x6")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["registerPostFixer","start","element","end","from","get","title-content","registerElementLabel","suggestion","newRange","model","document","forward","Title","isEqual","differ","schema","locale","afterInit","nodeBefore","getNearestSelectionRange","TrackChangesEditing","plugins","getChangedMarkers","createRange"];var ha,pa;ha=fa,pa=251,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x11")](){const t=this.editor;if(!t[ba("0x15")].has(ba("0xc")))return;const e=t[ba("0x15")][ba("0x4")](ba("0x14"));e._descriptionFactory[ba("0x6")]("title-content",(()=>Yo(t[ba("0x10")],"ELEMENT_TITLE"))),t[ba("0x9")][ba("0xa")][ba("0x18")]((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x9")][ba("0xa")][ba("0xe")][ba("0x16")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x7")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x[ba("0x2")][ba("0x12")];if(!a||!a.is(ba("0x1"),ba("0x5")))continue;if(!x[ba("0x0")].isTouching(x[ba("0x2")]))continue;const c=t[ba("0x9")][ba("0xf")][ba("0x13")](x[ba("0x2")],ba("0xb"));if(c&&c.isCollapsed){const t=n[ba("0x17")](x[ba("0x0")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","editor","TrackChangesEditing","afterInit","redo","enableCommand","undo","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=250,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x3")],e=t[ya("0x2")].get(ya("0x4"));t[ya("0x2")][ya("0x0")](ya("0x1"))&&(e[ya("0x7")](ya("0x8")),e.enableCommand(ya("0x6")))}}const Aa=["has","afterInit","TrackChangesEditing","enableCommand","get","plugins","editor"];var Ra,va;Ra=Aa,va=188,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get requires(){return[wx]}[Ia("0x2")](){const t=this[Ia("0x0")];t[Ia("0x6")][Ia("0x1")]("TableCaptionEditing")&&t[Ia("0x6")][Ia("0x5")](Ia("0x3"))[Ia("0x4")]("toggleTableCaption")}}const La=["_getSuggestionBlocks","plugins","commandParams","type","model","handleListStyleCommand","selection","TrackChangesEditing","*Format:* set order to reversed","isFirstBlockOfListItem","afterInit","DocumentListUtils","handleListStartCommand","change","*Format:* set start index to %0","listStart","push","config","isListItemBlock","getSelectedBlocks","commandName","_getTranslationKeyForListStyle","reversed","*Change to:* %0","getAttribute","has","handleListReversedCommand","registerDescriptionCallback","format","editor","listStyle","enableCommand","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","_descriptionFactory","document","markMultiRangeBlockFormat","listType","startIndex","styles","bind","get","listReversed","numbered","DocumentListPropertiesUtils","getListTypeFromListStyleType","from","length","toUpperCase","replace","_LIST_","handleDescriptions"];var Na,Ma;Na=La,Ma=498,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x20")](){if(!this[wa("0x33")][wa("0x17")][wa("0x2f")]("DocumentListPropertiesEditing"))return;const t=this.editor[wa("0x27")][wa("0xb")]("list.properties"),e=this.editor[wa("0x17")][wa("0xb")](wa("0x1d"));t[wa("0x9")]&&e[wa("0x1")](wa("0x0"),this.handleListStyleCommand[wa("0xa")](this)),t.reversed&&e[wa("0x1")](wa("0xc"),this.handleListReversedCommand[wa("0xa")](this)),t[wa("0x8")]&&e[wa("0x1")](wa("0x25"),this[wa("0x22")][wa("0xa")](this)),e[wa("0x4")][wa("0x31")](this.handleDescriptions[wa("0xa")](this))}[wa("0x1b")](t,e={}){const n=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x2")]();this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n[wa("0x6")](o,{commandName:wa("0x0"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:wa("0x0")})}))}[wa("0x30")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o[wa("0x28")](t)&&"numbered"===t[wa("0x2e")]("listType")));null!==s&&this[wa("0x33")][wa("0x1a")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xc"),commandParams:[{reversed:e[wa("0x2c")]}],formatGroupId:wa("0xc")})}))}[wa("0x22")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o.isListItemBlock(t)&&wa("0xd")===t.getAttribute(wa("0x7"))));null!==s&&this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x25"),commandParams:[{startIndex:e[wa("0x8")]}],formatGroupId:wa("0x25")})}))}[wa("0x15")](t){const e=this[wa("0x33")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2a")]){case wa("0x0"):o=wa("0x2d"),s={type:wa("0x32"),content:Yo(e,o,Yo(e,this[wa("0x2b")](n[wa("0x18")][0].type)))};break;case"listReversed":o=n[wa("0x18")][0][wa("0x2c")]?wa("0x1e"):"*Format:* set order to regular",s={type:wa("0x32"),content:Yo(e,o)};break;case wa("0x25"):o=wa("0x24"),s={type:wa("0x32"),content:Yo(e,o,n[wa("0x18")][0].startIndex)}}return s}[wa("0x2")](){const t=this[wa("0x33")].plugins.get(wa("0x21"));let e=Array[wa("0x10")](this[wa("0x33")].model[wa("0x5")][wa("0x1c")][wa("0x29")]());return e[wa("0x26")](...t[wa("0x3")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[wa("0x17")][wa("0xb")](wa("0x21"));let n=Array.from(this[wa("0x33")][wa("0x1a")][wa("0x5")][wa("0x1c")].getSelectedBlocks()).filter(t);if(!n[wa("0x11")])return null;n=e[wa("0x3")](n);const o=[];for(const t of n)e[wa("0x1f")](t)&&o[wa("0x26")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[wa("0x17")][wa("0xb")](wa("0xe"))[wa("0xf")](t)[wa("0x12")]()+wa("0x14")+t[wa("0x12")]()[wa("0x13")](/-/g,"_")}}const Fa=["tableAlignment","accept","join","_handlePropertyChange","plugins","registerCustomCallback","tableCellVerticalAlignment","tableCellBorderStyle","subType","tableProperties","markBlockFormat","tableCellBackgroundColor","tableCellBorderWidth","tableBorderWidth","table","tableWidth","_getSuggestion","format","getContainedElement","tableCellHeight","getSelectionAffectedTableCells","tableHeight","start","findAncestor","discard","*Format:* change table cell properties","tableBorderColor","nodeAfter","document","enableCommand","batch","getSuggestions","tableCellProperties","editor","formatBlock","enqueueChange","tableCellBorderColor","get","selection","locale","_descriptionFactory","has","TrackChangesTableProperties","getSuggestionCallback","model","setAttribute","handleDiscardAction","commandParams","tableCellHorizontalAlignment","getAttribute","tableBackgroundColor","TableUtils","TrackChangesEditing","_suggestionFactory"];var Pa,Da;Pa=Fa,Da=264,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("0xf")]=[Ba("0x20"),"tableBorderStyle",Ba("0x13"),Ba("0x6"),Ba("0x15"),Ba("0x1b"),Ba("0x2")],this[Ba("0x26")]=[Ba("0x2a"),Ba("0xd"),Ba("0x12"),"tableCellPadding","tableCellWidth",Ba("0x19"),Ba("0x11"),Ba("0x0"),Ba("0xc")]}static get pluginName(){return Ba("0x30")}afterInit(){const t=this[Ba("0x27")][Ba("0xa")][Ba("0x2b")](Ba("0x4"));if(this[Ba("0x27")][Ba("0xa")][Ba("0x2f")]("TablePropertiesEditing")){for(const e of this[Ba("0xf")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0x32")].document[Ba("0x2c")].getFirstPosition()[Ba("0x1d")](Ba("0x14"));this[Ba("0x9")](e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x5")].registerCustomCallback(Ba("0x28"),Ba("0xf"),Ba("0x7"),t._suggestionFactory.getSuggestionCallback(Ba("0x28"),null,"discard")),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0xf"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this[Ba("0xf")],t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableProperties","join",(()=>!1))}if(this[Ba("0x27")].plugins[Ba("0x2f")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x26")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0xa")].get(Ba("0x3"))[Ba("0x1a")](this.editor[Ba("0x32")][Ba("0x22")][Ba("0x2c")]);this._handlePropertyChange(e,o,this[Ba("0x26")],Ba("0x26"),t,n)}));t[Ba("0x5")][Ba("0xb")](Ba("0x28"),"tableCellProperties","accept",t[Ba("0x5")][Ba("0x31")](Ba("0x28"),null,Ba("0x1e"))),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0x26"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this.tableCellProperties,t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableCellProperties",Ba("0x8"),(()=>!1))}t[Ba("0x2e")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Ba("0x9")](t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x2b")](Ba("0x4"));this[Ba("0x27")][Ba("0x32")][Ba("0x29")](r[Ba("0x24")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x34")](t,e,n){const o=e[0][Ba("0x1c")][Ba("0x21")],s=n[Ba("0x35")][0];this[Ba("0x27")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x33")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0xe")]){case Ba("0xf"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")][Ba("0x2d")],"*Format:* change table properties")};case Ba("0x26"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")].locale,Ba("0x1f"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x27")].plugins[Ba("0x2b")]("TrackChangesEditing");for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["define","ck-suggestion-marker--active","mapper","change:activeMarkers","join","_handleNewSuggestionMarker","removeClass","_enabledCommands","range","_setSuggestionRange","values","trackChanges.trackFormatChanges","containsRangeInObject","isInContent","PENDING_ACTION_SUGGESTION","setAttribute","getSuggestionCallback","suggestion","set","getRanges","fromRange","oldRange","getItems","nodeBefore","_suggestions","authoredAt","$graveyard","createPositionAt","group","getDifference","_saved","suggestionLoaded","creator","forward","isDocumentOperation","track-changes-user-not-found","accept","addSuggestion","external:","formatBlock","unbind","deletion:accept","every","_getSuggestionData","end","_findSuggestions","formatInline","differ","isSelectable","isObject","documentSelection","parent","markerToData","execute","isBlock","removeMarkers","formatBlock:discard","updateMarker","_model","some","moveTargetPosition","author","addCommentThread","refresh","commentThread","selection","_suggestionFactory","element","getFirstRange","_breakSuggestionMarker","isOwn","schema","buildSuggestion","_joinSuggestions","splitPosition","insertion:accept","head","registerPostFixer","addClass","locale","return","_updateSuggestionData","stop","markerNameToElements","widget","config","change:_saved","_customCallbacks","removeMarker","always","open","consume","getAttribute","track-changes-adapter-already-set","_suggestionState","containerElement","clear","acceptSelectedSuggestions","getUser","enableReadOnlyMode","splice","enableCommand","markerName","writer","add","_getAuthorFromId","isBefore","trackChanges","Users","attributes","markers","includes","_mergeNestedSuggestions","removed","createRange","createdAt","getChangedMarkers","$marker","hasCommentThread","track-changes-adapter-missing-getsuggestion","_checkSuggestionCorrectness","discardAllSuggestions","error-saving-suggestion-data-suggestion-discarded","formatInline:join","createPositionAfter","@external","_splitMarkerName","commands","_editor","filter","acceptSuggestion","after","formatBlock:join","elementEnd","detach","_trackFormatChanges","_createSuggestion","editing","acceptAllSuggestions","fetchCommentThread","PendingActions","accepted","size","deletion:","suggestion-type","addMarker:suggestion","ck-suggestion-marker-formatBlock","push","CommentsRepository","start","hasComments","nodeAfter","get","_defaultCallbacks","backward","insertion","before","remove","TrackChangesEditing","insertContent","markerToHighlight","getIntersection","discardSelectedSuggestions","formatBlock:","pluginName","formatBlock:accept","reconvertMarker","getCustomProperty","notReady","markMultiRangeDeletion","data-suggestion","authorName","init","options","conversion","fire","unbindElementFromMarkerName","isNextTo","setSelection","_commentsRepository","markDeletion","listenTo","never","formatInline:discard","addUser","ck-suggestion-marker","insertion:join","formatInline:chain","isAtEnd","deletion","getShiftedBy","enqueueChange","ready","formatInline:","marker-count","upcast","subType","data","_isForcedDefaultExecutionBlock","addHighlight","ck-suggestion-marker-","rethrowUnexpectedError","resolve","getNearestSelectionRange","dataReady","from","markInlineFormat","setTo","previous","dataToMarker","_joinWithAdjacentSuggestions","length","updateSuggestion","isLocal","getSuggestion","forceDefaultExecution","batch","insert","applyOperation","_addThreadToSuggestion","markBlockFormat","editor","requires","suggestionChanged","markerReady","howMany","deleteContent","bindElementToMarker","hasSuggestion","_addSuggestionMarker","rootName","addSuggestionData","showSuggestionHighlights","removeComment","_removeSuggestion","track-changes-suggestion-data-mismatch","getLastMatchingPosition","trackChanges.mergeNestedSuggestions","getSuggestions","isAfter","isLimit","item","getFirstMarker","next","createRangeIn","multipleBlocks","formatGroupId","root","commandName","adapter","_cutOutSuggestionMarker","registerCustomCallback","type","markMultiRangeInsertion","model","targetPosition","position","formatBlock:chain","getMultiRangeId","split","document","sort","activeMarkers","newRange","discard","delete","elementToElement","deletion:discard","markInsertion","plugins","isTouching","formatInline:accept","clone","addMarker:suggestion:formatBlock","isRemovable","createElement","getCommentThread","insertion:","isAtStart","value","getAllAdjacentSuggestions","isExternal","containsItem","_adapter","addMarkerName","then","consumable","for","name","containsRange","has","_refreshSuggestionsChain","multi","_rangeIsInLocalUserInsertion","_getExternalAuthor","trackChangesCommand","addRange","move","skipNestingCheck","_setSuggestionData","collaboration.channelId","dataDowncast","change","isMultiRange","suggestion:","map","originalSuggestionId","discardSuggestion","catch","createSelection","high","containsPosition","insertion:chain","removeAttribute","isEqual","low","toJSON","isCollapsed","editingDowncast","toViewElement"];var Ga,Ha;Ga=Ua,Ha=364,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("0xb2")](){return[za("0x68"),r.Users,t.PendingActions,cs,Cs,vs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,vi,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x78")](){return za("0x72")}constructor(t){function e(t){return t[za("0x105")]((t=>String.fromCharCode(t)))[za("0x118")]("")}super(t),this.set(za("0xda"),[]),this.on(za("0x117"),((e,n,o,s)=>{this[za("0xe")][za("0x102")]((()=>{for(const e of[...s,...o])this._model[za("0x42")][za("0xf6")](e)&&t[za("0x5d")][za("0x7a")](e)}))})),this._descriptionFactory=new ss(this[za("0xb1")][za("0xd2")][za("0x1b")],this[za("0xb1")][za("0x23")]),this._adapter=null,this[za("0x16")]=new Va(this[za("0xb1")]),this._suggestions=new Map,this[za("0x87")]=t[za("0xe1")][za("0x6c")]("CommentsRepository"),this[za("0x11b")]=new Set,this[za("0xe")]=this[za("0xb1")][za("0xd2")],this[za("0x32")]=new WeakMap,this[za("0x9a")]=!1,t[za("0x29")][za("0x114")](za("0x11f"),"default"),this[za("0x5b")]=t.config[za("0x6c")](za("0x11f")),t.config[za("0x114")](za("0xc1"),!0),this._mergeNestedSuggestions=t[za("0x29")][za("0x6c")](za("0xc1")),this.trackChangesCommand=new d(t,this[za("0x11b")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,50,52])}[za("0x80")](){const t=this[za("0xb1")];t[za("0x82")].for(za("0x112"))[za("0x74")]({model:za("0x125"),view:t=>{const{id:e,type:n}=this[za("0x52")](t.markerName),o=[za("0x8d"),za("0x9c")+n];let s=3e3;return this.activeMarkers.includes(t[za("0x3a")])&&(o[za("0x67")](za("0x115")),s=3010),za("0x91")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((e=>{e.on(za("0x65"),((e,n,o)=>{if(!o.options[za("0xbc")])return;const s=n[za("0xc5")];if(!s)return;const r=o[za("0x116")][za("0x113")](s);t[za("0xd2")].schema[za("0x5")](s)&&r&&!r.getCustomProperty(za("0x28"))&&r.is(za("0x33"))&&(0,x.toWidget)(r,o.writer)}),{priority:"high"})})),t.conversion[za("0xf3")](za("0x101"))[za("0x74")]({model:za("0x125"),view:(t,e)=>{if(!e[za("0x81")][za("0xbc")])return null;const{type:n}=this[za("0x52")](t[za("0x3a")]);return{classes:["ck-suggestion-marker",za("0x9c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xc5")].is(za("0x15")))return void s[za("0xf2")][za("0x2f")](o[za("0xc5")],n.name);const r=s.mapper[za("0x113")](o[za("0xc5")]);if(!o[za("0xc5")].is(za("0x17"))||!t.model[za("0x1b")][za("0xa")](o[za("0xc5")])||r[za("0x7b")]("addHighlight"))return;const{id:i}=this[za("0x52")](o[za("0x3a")]);s[za("0x3b")][za("0x22")]([za("0x8d"),za("0x66")],r),s[za("0x3b")][za("0x123")](za("0x7e"),i,r),s[za("0x116")][za("0xb7")](r,o.markerName),e&&(this[za("0xda")].includes(o[za("0x3a")])?s.writer[za("0x22")](za("0x115"),r):s[za("0x3b")].removeClass(za("0x115"),r));for(const e of t.model[za("0xc8")](o.item)[za("0x12a")]())s[za("0xf2")].consume(e,n[za("0xf4")]);s.consumable[za("0x2f")](o[za("0xc5")],n[za("0xf4")])};t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x81")][za("0xbc")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xf3")]("dataDowncast")[za("0x8")]({model:za("0x125"),view:(t,e)=>e[za("0x81")].showSuggestionHighlights?null:{group:za("0x125"),name:t.substr(11)}}),t[za("0x82")][za("0xf3")](za("0x97"))[za("0xde")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x104")+t[za("0x30")](za("0x64"))+":"+t[za("0x30")]("id");return t.getAttribute(za("0x96"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0xe7")](za("0x49"),{"data-name":n})}}),t[za("0x82")].for(za("0x97"))[za("0xa5")]({view:za("0x125")}),t[za("0x82")].for(za("0x112"))[za("0x3c")]((t=>{t.on(za("0xe5"),n(),{priority:za("0x10a")})})),t.conversion[za("0xf3")](za("0x112"))[za("0x3c")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x116")][za("0x27")](e.markerName);if(o)for(const t of o)t[za("0x7b")](za("0x9b"))||(n[za("0x3b")][za("0x11a")](["ck-suggestion-marker",za("0x66"),za("0x115")],t),n[za("0x3b")][za("0x10d")](za("0x7e"),t),n[za("0x116")][za("0x84")](t,e[za("0x3a")]))}),{priority:"high"})})),t.model[za("0xd8")].registerPostFixer((e=>{let n=!1;const o=Array[za("0xa1")](t[za("0xd2")][za("0xd8")].differ[za("0x48")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x52")](x);if(za("0x125")!==o)continue;const u=this[za("0x12c")].get(l);if(null!=a[za("0xdb")])if(za("0x2")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xd2")][za("0x1b")])),a[za("0xdb")][za("0x111")]||za("0x12e")==a.newRange.root[za("0xba")]||"formatBlock"==c&&!Ja(a[za("0xdb")])||"deletion"==c&&(qa(i=a[za("0xdb")])||(r=i)[za("0x69")].parent==r.end[za("0x12b")]&&r[za("0x69")][za("0x90")]))e[za("0x2c")](x),n=!0;else{if(!u||!u[za("0x121")])continue;s.add(u)}}var r,i;return s[za("0x62")]>0&&(n=!!this[za("0xa6")](s)||n),n})),t[za("0xd2")][za("0xd8")][za("0x21")]((e=>{let n=!1;for(const o of t[za("0xd2")][za("0xd8")].differ.getChanges()){if("insert"!=o.type)continue;const s=o[za("0xd4")][za("0x92")](o[za("0xa7")]);if(s[za("0x90")])for(const r of this[za("0x12c")][za("0x11e")]()){if(r[za("0x103")]||!r[za("0x121")])continue;if("formatBlock"!=r[za("0xd0")])continue;const i=r.getFirstRange();if(i[za("0x69")][za("0x7")]!=i.end[za("0x7")]&&i[za("0x0")][za("0x10e")](o[za("0xd4")])){const o=t[za("0xd2")].createRange(i[za("0x69")],s);e[za("0xd")](r[za("0xc6")](),{range:o}),n=!0}}}return n})),t.model.markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x52")](e[za("0xf4")]),n=this._suggestions[za("0x6c")](t);n&&n[za("0xf0")](e[za("0xf4")])}})),t[za("0xd2")][za("0xd8")].on("change:data",(()=>{const e=Array[za("0xa1")](t[za("0xd2")][za("0xd8")][za("0x3")][za("0x48")]())[za("0x55")]((t=>za("0x125")===this._splitMarkerName(t.name)[za("0x130")]));if(0===e[za("0xa7")])return;e[za("0xd9")](((t,e)=>{const n=t[za("0x99")][za("0x129")],o=e[za("0x99")][za("0x129")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x69")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x52")](t);if(null===s[za("0x129")]){const e=this[za("0x119")](t);o[za("0x3c")](e)}else{const t=this[za("0x12c")][za("0x6c")](e);null!==s.newRange||t[za("0x121")]?(n[za("0x3c")](t[za("0x20")]),o.add(t)):this[za("0xbe")](t)}}o[za("0x62")]>0&&this[za("0xf7")](o);for(const t of n)this.fire(za("0xb3"),t)})),t[za("0xd2")].on(za("0xae"),((e,n)=>{const o=n[0];if(!this[za("0x12c")].size)return;if(!o[za("0x136")])return;if(o[za("0xac")].isUndo||!o[za("0xac")][za("0xa9")])return;let s,r;switch(o[za("0xd0")]){case za("0xad"):s=t.model.createPositionAt(o[za("0xd4")]),r=s.getShiftedBy(o[za("0xb5")]);break;case za("0xd7"):s=t[za("0xd2")][za("0x12f")](o[za("0x1e")]),r=t[za("0xd2")][za("0x12f")](o[za("0x10")]);break;case za("0xfd"):s=t.model[za("0x12f")](o[za("0xd3")]),r=s[za("0x92")](o.howMany);break;default:return}const i=t.model.createRange(s,r);t[za("0xd2")][za("0x102")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x1")](i)){if(t[za("0x103")])continue;if("formatInline"==t[za("0xd0")])continue;const n=t[za("0x99")]&&t[za("0x99")][za("0xc9")];(za("0x13b")!=t[za("0xd0")]||za("0xd7")==o[za("0xd0")]&&!n)&&(e.containsRangeInObject||za("0x6f")==t[za("0xd0")]&&e[za("0x1a")]||t[za("0x18")]().containsRange(i)&&this[za("0x19")](t,s,r))}}))}),{priority:"lowest"}),t.model.on(za("0xb6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xab")])return;if(this[za("0x9a")])return;if(!this[za("0xfb")].value)return;if(o[za("0x111")])return;const r=t[za("0xd2")][za("0x1b")],{start:i,end:x}=o[za("0x18")](),a=i[za("0x6b")]&&r.isLimit(i[za("0x6b")])?null:r[za("0x9f")](i,za("0x135")),c=x[za("0x12b")]&&r.isLimit(x.nodeBefore)?null:r[za("0x9f")](x,za("0x6e")),l=t.model[za("0x46")](a?a[za("0x69")]:i,c?c[za("0x0")]:x);t[za("0xd2")][za("0x102")]((e=>{this[za("0x88")](l);const n=t[za("0xd2")].schema[za("0x9f")](l[za("0x69")]);o.is(za("0x6"))?e[za("0x86")](n):o[za("0xa3")](n)})),e[za("0x26")]()}),{priority:e.priorities.normal+10}),t[za("0xd2")].on(za("0x73"),((e,n)=>{const o=n[n[za("0xa7")]-1];o&&o[za("0xab")]||this[za("0x9a")]||this[za("0xfb")][za("0xeb")]&&(t[za("0xd2")][za("0x102")]((()=>{let o=t[za("0xd2")][za("0x73")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x24")]=o[za("0xe4")]();const s=o[za("0x0")][za("0x12b")],r=t.model[za("0x1b")];s&&r[za("0xa")](s)&&!r[za("0x5")](s)&&(o=t[za("0xd2")][za("0x46")](o.start,t[za("0xd2")][za("0x12f")](s,za("0x0")))),this[za("0xe0")](o)})),e[za("0x26")]())}),{priority:za("0x10a")}),this[za("0xb1")][za("0x53")].add(za("0x3f"),this[za("0xfb")]),this.enableCommand("trackChanges");const o=new p(t,this._suggestions);t[za("0x53")][za("0x3c")](za("0x56"),o),this[za("0x39")]("acceptSuggestion");const s=new C(t,this[za("0x12c")]);t[za("0x53")][za("0x3c")](za("0x107"),s),this[za("0x39")](za("0x107")),t.commands[za("0x3c")](za("0x5e"),new F(t,o,this._suggestions)),this[za("0x39")](za("0x5e")),t.commands[za("0x3c")](za("0x4d"),new F(t,s,this._suggestions)),this[za("0x39")](za("0x4d")),t[za("0x53")][za("0x3c")](za("0x35"),new U(t,o,this[za("0x12c")])),this.enableCommand(za("0x35")),t[za("0x53")][za("0x3c")](za("0x76"),new U(t,s,this[za("0x12c")])),this[za("0x39")](za("0x76"));const r=t[za("0xe1")][za("0x6c")](za("0x68"));this[za("0x89")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x12c")][za("0x6c")](e);n&&n[za("0x14")]&&1===n.commentThread[za("0xa7")]&&this[za("0x25")](e,{hasComments:!0})}),{priority:za("0x10f")}),this[za("0x89")](r,za("0xbd"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6c")](e);n&&n[za("0x14")]&&!n[za("0x14")].length&&this[za("0x25")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0xef")])throw new e.CKEditorError(za("0x31"),this);this[za("0xef")]=t}get[za("0xcd")](){return this[za("0xef")]}[za("0xc2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x11e")]())t&&!e[za("0x121")]||n[za("0x67")](e);return e?n[za("0x105")]((t=>t[za("0x110")]())):n}[za("0xaa")](t){const n=this[za("0x12c")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xb8")](t){return this[za("0x12c")][za("0xf6")](t)}[za("0xbb")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xd0")].split(":"),i=this[za("0x12c")][za("0x6c")](n)||this[za("0x5c")](s,r,n,e,o);if(this[za("0xaf")](i),this[za("0x4c")](i,s,r||null,e),i[za("0x47")]=t[za("0x47")],o&&o[za("0x51")]){const t=o[za("0x51")],e=this[za("0xfa")](t[za("0x7f")]);i[za("0x12d")]=t[za("0x47")],i[za("0x11")]=e,i[za("0xed")]=!0}else i.authoredAt=t[za("0x47")];switch(t[za("0x99")]&&(i[za("0x99")]=t[za("0x99")]),t.attributes&&(i[za("0x41")]=t[za("0x41")]),this[za("0xef")]&&this._adapter[za("0x139")]||(i[za("0x132")]=!0),this._suggestionState.get(i)){case"notReady":this[za("0x32")][za("0x126")](i,za("0xa0"));break;case za("0xb4"):i.isInContent?(this[za("0x32")][za("0x126")](i,"ready"),this[za("0x83")](za("0x133"),i)):this[za("0x32")][za("0x126")](i,za("0x45"))}return i}[za("0x56")](t){this.forceDefaultExecution((()=>{this[za("0xb1")].model.change((()=>{for(const e of t[za("0xec")]())e[za("0x138")]()}))}))}[za("0x107")](t){this[za("0xab")]((()=>{this.editor[za("0xd2")][za("0x102")]((()=>{for(const e of t[za("0xec")]())e[za("0xdc")]()}))}))}[za("0x39")](t,n){const o=this[za("0xb1")][za("0x53")][za("0x6c")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x11b")][za("0x3c")](o),n&&o.on(za("0x9"),((t,e)=>{this[za("0xfb")].value&&(this[za("0x9a")]||e[za("0xa7")]>0&&e[e[za("0xa7")]-1]&&e[e[za("0xa7")]-1][za("0xab")]||(n(((...t)=>o[za("0x9")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x10a")})}[za("0xab")](t){let n,o;const s=this[za("0x9a")];this[za("0x9a")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x9d")](o,this),n}[za("0xe0")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me;for(const{suggestion:e,meta:o}of this[za("0x1")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[za("0x44")]&&o[za("0x120")])continue;return e}if(n==e.subType){const n=e[za("0x18")]();return n[za("0x69")].isEqual(t[za("0x0")])?this[za("0x11d")](e,this[za("0xe")][za("0x46")](t[za("0x69")],n[za("0x0")])):this[za("0x11d")](e,this[za("0xe")][za("0x46")](n.start,t[za("0x0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xe9")+n:za("0x6f"),a=this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xb9")](x,r,i,t),a}[za("0xd1")](t,n=za("0xf8"),o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=this[za("0x16")][za("0x124")](za("0x6f"),n,"join");for(const e of this[za("0xc2")]())if(e.author.id==s.id&&za("0x6f")==e[za("0xd0")]&&e.subType==n&&(r(e[za("0x127")](),t)||r(t,e[za("0x127")]()))){for(const n of t)e[za("0xfc")](n);return e}if(this[za("0x44")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0x6f"))){if(!o[za("0x1a")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xf5")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xe9")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xb9")](a,i,x,e,Zo[za("0xd6")]());return c}[za("0xa2")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x8a")===this[za("0x5b")]){const e=this[za("0x16")].getSuggestionCallback(za("0x2"),o,za("0x138"));return this[za("0xab")]((()=>e([t],n,s))),null}const r=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,i=[];if(za("0x2d")!==this[za("0x5b")])for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion"))n.isOwn&&!n.isInsideObject&&i[za("0x67")](...e[za("0x127")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x75")](o);e&&n[za("0x67")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xa7")];){const o=n[e][za("0x131")](t);n[za("0x38")](e,1,...o),e+=o[za("0xa7")]}}return n}(t,i);x[za("0xa7")]&&this._model[za("0x102")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x124")]("formatInline",o,za("0x138"));this[za("0xab")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x69")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x2"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const s=e[za("0x18")]();if(s[za("0xf5")](t,!0))return null;x=x[za("0x3e")](s.start)?x:s[za("0x69")],a=a.isAfter(s[za("0x0")])?a:s[za("0x0")],i?s[za("0x69")][za("0x3e")](i[za("0x18")]()[za("0x69")])?(i[za("0xb")](),i=e):e[za("0xb")]():i=e}const c=this[za("0xe")][za("0x46")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xff")]({id:t,type:za("0x95")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xb9")]("formatInline:"+o,t,i,c)}}return null}[za("0xb0")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0xcc")]),n.multipleBlocks=t.is("range"),s=s||$a(n);const i=o[za("0x105")]((t=>Qa(t,this[za("0xe")]))),x=t.is(za("0x11c"))?t:Qa(t,this[za("0xe")]);if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t([x],n,r))),null}i[za("0x67")](x);let a=!0;for(const t of i)if(!this[za("0xf9")](t)){a=!1;break}if(a&&za("0x2d")!==this._trackFormatChanges){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x69")],u=x[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](x,za("0x13b"))){if(!e[za("0x1a")]||e[za("0x85")]||e[za("0x120")]||e.isInsideObject)continue;if(t[za("0x99")][za("0xca")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x98")]==s){if(o[za("0xf5")](x,!0))return null;l=l[za("0x3e")](o[za("0x69")])?l:o.start,u=u[za("0xc3")](o[za("0x0")])?u:o[za("0x0")],c?o[za("0x69")].isBefore(c.getFirstRange().start)?(c.removeMarkers(),c=t):t[za("0xb")]():c=t}else{const e=x.getIntersection(o);this[za("0xce")](t,e)}}const d=this[za("0xb1")][za("0xe1")].get(za("0x40")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x11d")](c,this[za("0xe")].createRange(l,u)),c;{const t=this[za("0xff")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0xe")][za("0x46")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0xca")]||(n[za("0xca")]=n[za("0xcc")]);const i=t[0];n[za("0xc9")]=i.is(za("0x11c")),s=s||$a(n);const x=o[za("0x105")]((t=>Qa(t,this._model))),a=i.is("range")?t:t.map((t=>Qa(t,this[za("0xe")])));if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")](za("0x13b"),s,"accept");return this[za("0xab")]((()=>t(a,n,r))),null}x[za("0x67")](...a);let c=!0;for(const t of x)if(!this[za("0xf9")](t)){c=!1;break}if(c&&"always"!==this[za("0x5b")]){const t=this._suggestionFactory[za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t(a,n,r))),null}const l=this[za("0xb1")].plugins.get(za("0x40")).me;for(const t of this.getSuggestions()){if(t[za("0x11")].id!=l.id)continue;if("formatBlock"!=t[za("0xd0")]||t[za("0x99")].formatGroupId!=n[za("0xca")])continue;const e=t[za("0x98")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[za("0x10e")](r)){e?(a[za("0x38")](n,1),n--):t[za("0x2c")](s.name);break}}}}if(0==a[za("0xa7")])return null;const u=this[za("0x16")][za("0x124")](za("0x13b"),s,za("0x118"));for(const t of this[za("0xc2")]())if(t[za("0x11")].id==l.id&&za("0x13b")==t[za("0xd0")]&&t[za("0x99")][za("0xca")]==n[za("0xca")]&&t.subType==s&&(u(t[za("0x127")](),a)||u(a,t.getRanges()))){for(const e of a)t[za("0xfc")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x77")+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xb9")](m,d,g,t,Zo.getMultiRangeId());return f}[za("0x88")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")].get("Users").me,r=new i.LiveRange(t[za("0x69")],t.end);for(const{suggestion:t,meta:e}of this[za("0x1")](r,za("0x6f")))if(e[za("0x1a")]&&!e[za("0x85")])if(t.isMultiRange){const e=t.getRanges().filter((t=>"$graveyard"!=t[za("0xcb")][za("0xba")]));if(e[za("0x13e")]((t=>r.containsRange(t,!0)))&&t.discard(),e.some((t=>t[za("0xf5")](r,!0)))){const t=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>t([r],null,o))),null}}else{const e=r[za("0x75")](t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x5a")](),r.isCollapsed||za("0x12e")==r[za("0xcb")].rootName)return null;let x=null,a=r[za("0x69")],c=r[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](r,"deletion"))if(e[za("0x1a")])if(t.isMultiRange&&this[za("0x44")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xf5")](r,!0))return t;r[za("0xf5")](n)||(e=!1)}e&&t[za("0xdc")]()}else{const n=t[za("0x18")]();if(n[za("0xf5")](r,!0)){if(!this[za("0x44")]&&e[za("0x120")])continue;return t}a=a.isBefore(n[za("0x69")])?a:n[za("0x69")],c=c[za("0xc3")](n[za("0x0")])?c:n[za("0x0")],x?n[za("0x69")][za("0x3e")](x[za("0x18")]()[za("0x69")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this._model[za("0x46")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xe")][za("0x46")](a,c),i=s.id,x=n?za("0x63")+n:za("0x91"),l=this[za("0xff")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x7d")](t,n="multi",o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=t.map((t=>new i.LiveRange(t[za("0x69")],t[za("0x0")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x6f")))n.isOwn&&!n[za("0x85")]&&x[za("0x3c")](e);for(const e of x)if(e[za("0x103")]){const s=e[za("0x127")]();if((!e[za("0x41")]||!e.attributes.skipNestingCheck)&&s[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&e[za("0xdc")](),r[za("0x13e")]((t=>s[za("0xf")]((e=>e[za("0xf5")](t,!0)))))){const e=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>e(t,null,o))),null}}else{const t=e[za("0x18")]();if(r[za("0xf")]((e=>e[za("0xf5")](t,!0)))&&e[za("0xdc")](),r[za("0x13e")]((e=>t[za("0xf5")](e,!0)))){const t=this[za("0x16")][za("0x124")]("deletion",n,"accept");return this[za("0xab")]((()=>t(r,null,o))),null}}const a=this[za("0x16")][za("0x124")](za("0x91"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0x11")].id==s.id&&t[za("0x121")]&&za("0x91")==t.type&&t[za("0x98")]==n&&(a(t[za("0x127")](),r)||a(r,t[za("0x127")]())))if(c){if(t.commentThread&&t[za("0x14")][za("0xa7")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[za("0xb")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xfc")](e)}if(c)return c;x[za("0x34")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x91")))n[za("0x1a")]&&x[za("0x3c")](e);for(const t of x){const e=t[za("0x127")]();if((!o||!o[za("0xfe")])&&r[za("0x13e")]((t=>e[za("0xf")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x41")]||!t.attributes[za("0xfe")])&&e[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&t[za("0xdc")]()}const l=(0,e.uid)(),u=s.id,d=za("0x63")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x5a")](),t[za("0x111")]||za("0x12e")==t[za("0xcb")][za("0xba")]||this[za("0xb9")](d,l,u,t,Zo[za("0xd6")]());return g}[za("0x11d")](t,e){const n=t[za("0xc6")]();this[za("0xe")][za("0x102")]((t=>{t[za("0xd")](n,{range:e})}))}[za("0xaf")](t){const e=t.id,n=this[za("0xb1")][za("0x29")].get(za("0x100"));this._commentsRepository[za("0x4a")](e)||this[za("0x87")][za("0x12")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xe8")](e);o[za("0x13c")](za("0xe6")),o.isRemovable=!1,t[za("0x14")]=o}[za("0x4c")](t,n,o,s){if(t[za("0xd0")]!=n||t.subType!=o||t[za("0x134")].id!=s)throw this[za("0xb1")][za("0x37")](za("0xbf")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0xce")](t,n){const o=t[za("0x18")]();if(n[za("0x10e")](o))t.removeMarkers();else if(o[za("0xf5")](n)){const s=this[za("0xe")][za("0x12f")](n.start[za("0x12b")],"end");this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],s));const r=(0,e.uid)(),i=t[za("0x134")].id,x=t[za("0xd0")]+":"+t[za("0x98")];this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x99")],attributes:t[za("0x41")]});const a=this[za("0xe")][za("0x12f")](n.end[za("0x7")],za("0x57")),c=this[za("0xe")].createRange(a,o[za("0x0")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x10b")](n[za("0x69")])){const e=this[za("0xe")][za("0x12f")](n.start.nodeBefore,za("0x0"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],e))}else{const e=this[za("0xe")].createPositionAt(n[za("0x0")][za("0x7")],za("0x57"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](e,o.end))}}[za("0xf9")](t){for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion")){if(!n[za("0x1a")])continue;const o=e[za("0x127")]();for(const e of o)if(!t[za("0x131")](e)[za("0xa7")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0xb1")][za("0xe1")][za("0x6c")]("Users")[za("0x36")](t);if(!n)throw new e.CKEditorError(za("0x137"),this);return n}[za("0xfa")](t){const e=this[za("0xb1")][za("0xe1")].get(za("0x40")),n=(0,r.hashObject)(za("0x13a")+t);return e[za("0x36")](n)||e[za("0x8c")]({id:n,name:t})}[za("0x5c")](t,e,n,o,s){const r=this[za("0x3d")](o),i=this[za("0x16")][za("0x1c")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0x138"),(()=>{this[za("0x25")](n,{state:za("0x61")})}),{priority:"high"}),this[za("0x89")](i,"discard",(()=>{this._updateSuggestionData(n,{state:"rejected"})}),{priority:za("0x10a")}),this[za("0x12c")][za("0x126")](n,i),this[za("0x32")][za("0x126")](i,za("0x7c")),i}_splitMarkerName(t){const e=t[za("0xd7")](":");return{group:e[0],type:e[1],subType:e[za("0xa7")]>=5?e[2]:null,id:e[za("0xa7")]<5?e[2]:e[3],authorId:e[za("0xa7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x19")](t,n,o){const s=t[za("0x18")](),r=s[za("0x69")],i=s.end;this._setSuggestionRange(t,this._model[za("0x46")](r,n));const x=(0,e.uid)(),a=t[za("0x134")].id,c=t[za("0xd0")]+(t[za("0x98")]?":"+t.subType:"");this[za("0xff")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x41")],data:t.data}),za("0x13b")==t[za("0xd0")]&&(o=this[za("0xe")].createPositionBefore(o[za("0x7")])),this._addSuggestionMarker(c,x,a,this._model.createRange(o,i))}[za("0x1")](t,e=null){const n=[],o=this[za("0xe")][za("0x1b")],s=this.editor.plugins[za("0x6c")](za("0x40")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0xd0")]==e))for(const e of r[za("0x127")]()){const i=t[za("0x69")][za("0x10e")](e[za("0x0")])||t[za("0x0")].isEqual(e[za("0x69")]);if(i||t.getIntersection(e)){const x=t[za("0xf5")](e)&&Ka(o,e[za("0x69")],t),a=e[za("0xf5")](t)&&Ka(o,t[za("0x69")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xb9")](t,e,n,o,s){this[za("0xe")][za("0x102")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xbe")](t){const e=t.previous,n=t.next;t[za("0xa4")]=null,null!=e&&(e[za("0xc7")]=null),t[za("0xc7")]=null,null!=n&&(n[za("0xa4")]=null),za("0x94")==this._suggestionState[za("0x6c")](t)&&(this[za("0x32")][za("0x126")](t,"removed"),this[za("0x83")]("suggestionUnloaded",t,e,n))}[za("0xff")](t){const n=t.id,o=this[za("0xbb")](t);if(this[za("0xef")]&&this._adapter[za("0x139")]){const s=this.editor[za("0xe1")].get(za("0x60")),r=o.hasComments,i=o.subType?o.type+":"+o.subType:o[za("0xd0")],x=this[za("0xb1")][za("0x23")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x99")]||null,originalSuggestionId:t[za("0x106")]||null,attributes:o[za("0x41")]};this[za("0xef")].addSuggestion(c).then((t=>{o[za("0x132")]=!0,s[za("0x71")](a),t&&t.createdAt&&(this[za("0x12c")][za("0x6c")](n)[za("0x47")]=t[za("0x47")])}))[za("0x108")]((t=>{throw(0,e.logWarning)(za("0x4e")),this[za("0xb1")].model[za("0x93")]({isUndoable:!1},(()=>{o[za("0xdc")]()})),o.stopListening(),this._suggestions[za("0xdd")](o.id),this[za("0x32")][za("0xdd")](o),t}))}return o}[za("0x25")](t,e){const n=this[za("0xb1")].plugins[za("0x6c")](za("0x60")),o=this.getSuggestion(t);if(this[za("0xef")]&&this[za("0xef")][za("0xa8")])if(o._saved){const o=n[za("0x3c")](Yo(this[za("0xb1")][za("0x23")],za("0x122")));this[za("0xef")][za("0xa8")](t,e).then((()=>{n[za("0x71")](o)}))}else o.on(za("0x2a"),(()=>{this[za("0x25")](t,e)}))}[za("0x13f")](t){if(!this[za("0xef")]||!this._adapter[za("0xaa")])throw new e.CKEditorError(za("0x4b"),this);return this[za("0xef")][za("0xaa")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this._suggestions[za("0x6c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x4c")](r,n,o,s),this._suggestionState.get(r)){case za("0x7c"):this[za("0x13f")](e)[za("0xf1")]((t=>{let n=Promise[za("0x9e")]();t[za("0x6a")]&&(n=this._commentsRepository[za("0x5f")]({channelId:this[za("0xb1")][za("0x29")][za("0x6c")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xbb")](t)._saved=!0}))})),this[za("0x32")].set(r,za("0xb4"));break;case"removed":this._updateSuggestionData(e,{state:za("0x2e")});case za("0xa0"):this[za("0x32")].set(r,za("0x94")),this[za("0x83")](za("0x133"),r);break;case"ready":this.fire(za("0xb3"),r)}return r[za("0xf0")](t),r}[za("0xf7")](t){const e=Array[za("0xa1")](t).filter((t=>!t[za("0x103")])),n=this[za("0xc2")]({skipNotAttached:!0})[za("0x55")]((t=>!t[za("0x103")])),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(n[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[za("0x18")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xa7")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xa7")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xa7")];t++){const n=e[t];!x[za("0xf6")](n)&&n[za("0xa4")]&&(n[za("0xa4")][za("0xc7")]===n&&(n.previous[za("0xc7")]=null),n.previous=null),!i.has(n)&&n.next&&(n[za("0xc7")].previous===n&&(n[za("0xc7")][za("0xa4")]=null),n[za("0xc7")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xa7")];o++){const n=c(t,e[o]);n&&(n[0][za("0xc7")]=n[1],n[1][za("0xa4")]=n[0],i.add(n[0]),x[za("0x3c")](n[1]))}}function c(t,e){if(t[za("0x11")].id!==e[za("0x11")].id)return null;const n=s[za("0x6c")](t)(t,e,r[za("0x6c")](t),r[za("0x6c")](e));return n&&s[za("0x6c")](e)(t,e,r[za("0x6c")](t),r[za("0x6c")](e))?n[1][za("0x14")]&&n[1][za("0x14")].length?null:n:null}}[za("0xa6")](t){const e=Array[za("0xa1")](t),n=this[za("0xc2")]({skipNotAttached:!0}),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(e[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t[za("0x98")],za("0x118"))]))),r=new Map(n[za("0x105")]((t=>[t,t[za("0x127")]()])));for(let t=0;t<e[za("0xa7")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xa7")];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("0xa7")];i++){const o=n[i];if(o[za("0xd0")]!==e[za("0xd0")]||o[za("0x11")].id!==e[za("0x11")].id||o.subType!==e.subType)continue;const x=s.get(e),a=r.get(e),c=r[za("0x6c")](o),l=e[za("0x14")]&&e.commentThread[za("0xa7")],u=o[za("0x14")]&&o[za("0x14")][za("0xa7")];if(!l&&x(c,a))return t[za("0x1d")](o,e),r[za("0xdd")](e),!0;if(!u&&x(a,c))return t[za("0x1d")](e,o),r[za("0xdd")](o),!0}return!1}}[za("0x1d")](t,e){if(t[za("0x103")])for(const n of e[za("0x127")]())t[za("0xfc")](n);else{const n=e[za("0x18")]()[za("0x0")];this._setSuggestionRange(t,this[za("0xe")][za("0x46")](t[za("0x18")]()[za("0x69")],n))}e[za("0xb")]()}}class Va{constructor(t){this[za("0x54")]=t,this[za("0xe")]=t[za("0xd2")],this[za("0x2b")]=new Map,this[za("0x6d")]=new Map,this._registerDefaultCallbacks()}[za("0x1c")](t,e,n,o,s,r){return new Zo(this[za("0xe")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x124")](t,e,za("0x138"))(...n),onDiscard:(...n)=>this[za("0x124")](t,e,za("0xdc"))(...n)})}[za("0xcf")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x2b")][za("0x126")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0x2b")][za("0x6c")](o)||this._defaultCallbacks[za("0x6c")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xd9")](((t,e)=>t.start[za("0x3e")](e[za("0x69")])?1:-1)),this[za("0xe")][za("0x102")]((e=>{for(const n of t){let t;t=n[za("0x0")][za("0x90")]&&n[za("0x0")][za("0x7")]==n[za("0x69")][za("0x6b")]?e.createSelection(n[za("0x69")][za("0x6b")],"on"):e[za("0x109")](n),this[za("0xe")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xe")][za("0x102")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x105")]((t=>(qa(t)&&(t=this[za("0xe")][za("0x46")](t.end)),t)))[za("0x55")]((t=>"$graveyard"!==t[za("0xcb")].rootName));if(r[za("0xa7")]<1)return;const x=Array.from(this._model[za("0xd8")][za("0x15")][za("0x127")]())[za("0x105")]((t=>i.LiveRange[za("0x128")](t)));n[za("0x86")](r);for(const t of this[za("0x54")].commands[za("0x53")]())t[za("0x13")]();s[za("0x67")]({forceDefaultExecution:!0}),this[za("0x54")][za("0x9")](o,...s);const a=x[za("0x55")]((t=>za("0x12e")!=t[za("0xcb")].rootName));a[za("0xa7")]>0&&n[za("0x86")](a);for(const t of x)t[za("0x5a")]()}))},o=(t,e)=>1==t[za("0xa7")]&&1==e[za("0xa7")]&&t[0][za("0x0")][za("0x10e")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0xe")])?[e,t]:null;this[za("0x6d")][za("0x126")](za("0x1f"),t),this._defaultCallbacks[za("0x126")]("insertion:discard",e),this[za("0x6d")][za("0x126")](za("0x8e"),o),this._defaultCallbacks[za("0x126")](za("0x10c"),s),this[za("0x6d")][za("0x126")](za("0x13d"),e),this._defaultCallbacks[za("0x126")](za("0xdf"),t),this[za("0x6d")][za("0x126")]("deletion:join",o),this[za("0x6d")][za("0x126")]("deletion:chain",s),this[za("0x6d")].set(za("0xe3"),n),this[za("0x6d")][za("0x126")](za("0x8b"),t),this[za("0x6d")][za("0x126")](za("0x4f"),o),this[za("0x6d")][za("0x126")](za("0x8f"),t),this[za("0x6d")][za("0x126")](za("0x79"),n),this._defaultCallbacks[za("0x126")](za("0xc"),t),this[za("0x6d")][za("0x126")](za("0x58"),o),this[za("0x6d")][za("0x126")](za("0xd5"),t)}}function Ka(t,e,n){for(const o of e[za("0x7")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xcb")]==o)return!1;if(!n[za("0xee")](o))return!1;if(t[za("0x5")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x0")][za("0x7")]==t[za("0x69")][za("0x6b")]&&t[za("0x0")][za("0xea")]}function Xa(t,e,n,o){const s=t=>!t.item.is("$textProxy")&&!o[za("0x5")](t[za("0xc5")]),r=t[za("0x69")][za("0xc0")](s),i=t.end[za("0xc0")](s,{direction:za("0x6e")});return!(t.start[za("0x10e")](r)&&t.end[za("0x10e")](i)||(r[za("0x3e")](i)?n[za("0xd")](e,{range:n[za("0x46")](r,i)}):n[za("0x2c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x69")][za("0x6b")];return e&&e.is(za("0x17"))}function Qa(t,e){const n=e.schema[za("0x5")](t)||e[za("0x1b")][za("0x4")](t);return e.createRange(e[za("0x12f")](t,za("0x70")),n?e[za("0x50")](t):e[za("0x12f")](t,za("0x0")))}function Za(t,e,n,o,s){if(n[za("0x0")][za("0x10e")](o[za("0x69")]))return!0;if(t[za("0xd0")]!=e[za("0xd0")])return!1;if(!n[za("0x0")][za("0xe2")](o[za("0x69")]))return!1;const r=s[za("0x46")](n[za("0x0")],o[za("0x69")]).getWalker();for(const t of r)if(["elementStart",za("0x59")][za("0x43")](t[za("0xd0")])&&s.schema[za("0xc4")](t.item))return!1;return!0}const Ya=["stopListening","canDiscard","view","destroy","model","bind","_pendingAction","isEnabled","discardSuggestion","_removePendingAction","commands","plugins","unbind","canAccept","_discardCommand","execute","remove","isDirty","PendingActions","canEditAt","_acceptCommand","get","add","commentThreadController","acceptSuggestion","PENDING_ACTION_SUGGESTION","listenTo","_setPendingAction","_editor","getRanges"];var tc,ec;tc=Ya,ec=445,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x7")]=n,this[nc("0x1c")]=o,this[nc("0x3")]=t,this[nc("0x19")]=t.commands[nc("0x1a")](nc("0x1d")),this[nc("0x13")]=t[nc("0xf")][nc("0x1a")](nc("0xd")),this.view[nc("0xa")](nc("0xc")).to(this[nc("0x19")],this._discardCommand,((t,e)=>t||e)),this[nc("0x7")][nc("0xa")](nc("0x12")).to(this._acceptCommand,nc("0xc"),(t=>t&&this[nc("0x3")].model[nc("0x18")](e[nc("0x4")]()))),this[nc("0x7")][nc("0xa")](nc("0x6")).to(this[nc("0x13")],nc("0xc"),(t=>t&&this[nc("0x3")][nc("0x9")][nc("0x18")](e[nc("0x4")]()))),this[nc("0xb")]=null,n[nc("0x16")]&&this[nc("0x2")](),this[nc("0x1")](n,"acceptSuggestion",(()=>this[nc("0x1d")]())),this[nc("0x1")](n,"discardSuggestion",(()=>this[nc("0xd")]())),this[nc("0x1")](n,"change:isDirty",(()=>{n[nc("0x16")]?this._setPendingAction():this[nc("0xe")]()}))}[nc("0x1d")](){this[nc("0x19")].execute(this[nc("0x9")].id)}[nc("0xd")](){this[nc("0x13")][nc("0x14")](this[nc("0x9")].id)}[nc("0x8")](){this[nc("0x7")][nc("0x11")](nc("0xc")),this[nc("0x7")][nc("0x11")]("canAccept"),this.view[nc("0x11")](nc("0x6")),this[nc("0x5")](),this[nc("0x1c")].destroy(),this[nc("0xb")]&&this[nc("0xe")]()}[nc("0x2")](){const t=Yo(this[nc("0x3")].locale,nc("0x0"));this[nc("0xb")]=this[nc("0x3")].plugins[nc("0x1a")](nc("0x17"))[nc("0x1b")](t)}[nc("0xe")](){null!==this[nc("0xb")]&&this[nc("0x3")][nc("0x10")][nc("0x1a")](nc("0x17"))[nc("0x15")](this[nc("0xb")]),this[nc("0xb")]=null}}const sc=["updateComment","commentThreadInputView","canAccept","_localUser","removeComment","isReadOnly","value","editor","destroy","set","focus","delegate","_createCommentViews","element","descriptionParts","cancel","hasDirtyComment","commentThread","isDirty","fire","_model","bind","length","commentInputView","commentsListView","isEnabled","assign","canDiscard","editorConfig","_config","addComment","_createCommentThreadInputView","setData","submit","authoredAt","locale","isActive","showInput"];var rc,ic;rc=sc,ic=379,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x2")]=null,this[xc("0xa")](xc("0x25"),!1),this.set(xc("0x23"),e[xc("0x23")]),this[xc("0x16")](xc("0x23")).to(e),this.set(xc("0xf"),[]),this[xc("0xa")](xc("0x13"),!1),this[xc("0xa")](xc("0x1a"),!1),this.set(xc("0x3"),!1),this[xc("0xa")](xc("0x1c"),!1),this[xc("0x15")]=e,this[xc("0x4")]=n,this[xc("0x1e")]=o,o.disableComments?this.set(xc("0x17"),1):this._createCommentViews()}[xc("0xb")](){this[xc("0xe")][xc("0xb")]()}[xc("0x9")](){this[xc("0x19")]&&this[xc("0x19")].destroy(),this[xc("0x2")]&&this[xc("0x2")][xc("0x9")](),super.destroy()}[xc("0xd")](){const{CommentsListView:t}=this[xc("0x1e")];this.commentsListView=new t(this[xc("0x24")],this[xc("0x15")][xc("0x12")],Object[xc("0x1b")]({CommentView:this._config.CommentView},this[xc("0x1e")])),this[xc("0x19")][xc("0xc")](xc("0x5")).to(this),this[xc("0x19")].delegate(xc("0x1")).to(this),this[xc("0x19")][xc("0x16")](xc("0x25")).to(this),this[xc("0xa")]("length",this[xc("0x19")][xc("0x17")]+1),this[xc("0x16")]("length").to(this[xc("0x19")],xc("0x17"),(t=>t+1)),this[xc("0x2")]=this[xc("0x20")](),this.on(xc("0x5"),(()=>this[xc("0xb")]())),this[xc("0x16")](xc("0x13")).to(this.commentsListView,xc("0x11"),this[xc("0x2")][xc("0x18")],xc("0x7"),((t,e)=>t||!!e))}[xc("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[xc("0x4")],this[xc("0x1e")][xc("0x1d")]),n=e[xc("0x18")];return e.bind(xc("0x0")).to(this,xc("0x25"),this[xc("0x15")][xc("0x12")],xc("0x6"),n,xc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x22"),((t,e)=>{this[xc("0x14")](xc("0x1f"),e),n[xc("0x8")][xc("0x21")]("")})),n.on(xc("0x10"),(()=>this[xc("0xb")]())),n[xc("0x16")]("disabledSubmit").to(this._model[xc("0x12")],xc("0x6")),e}}const cc=["name","span","querySelector","discardButton","locale","getExternalSuggestionNote","EXTERNAL_IMPORT_WORD_AVATAR","<p>",'"></span>',"_model","children","color","discardSuggestion","isActive","check","acceptSuggestion","createElement","attributes","</p>","ck-suggestion--discard","description","bind","Discard suggestion","split","getTemplate","@external","setTemplate","_descriptionElement","ck-suggestion-wrapper","innerHTML","ck-annotation__actions","canAccept","ck-suggestion__info","importWord","disableComments","formatDateTime","EXTERNAL_SUGGESTION","push","userView","author","div","EXTERNAL_IMPORT_WORD_SUGGESTION","creator","isExternal","editorReady","ck-suggestion__info-name","ck-annotation",'<span class="ck-suggestion-type">',"extendTemplate","fire","authoredAt",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__user","ck-suggestion","acceptButton",'" title="',"execute","commentThread","title","set","ck-suggestion--accept","_config","_createButton","element","content","type","delegate","ck-annotation__main","commentThreadInputView","commentsListView","</span>","ck-annotation__info-name","ck-suggestion__actions","innerText","source","editorDestroyed","getUserViewNotificationText","isEnabled"];var lc,uc;lc=cc,uc=158,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x3f"),""),this.bind(dc("0x3f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x3f")]:"")),this[dc("0x13")](dc("0x12")).to(this,"descriptionParts",this,dc("0xb"),((t,e)=>{let n="";for(const e of t)n+=dc("0x5")+mc(e[dc("0x3e")],e[dc("0x9")])+dc("0x10");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x19")]=null,this[dc("0x34")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[dc("0xc")],dc("0x3a"),dc("0xd"),"sw"),this[dc("0x34")][dc("0x13")](dc("0x4b")).to(this,dc("0x1d")),this[dc("0x1")]=this[dc("0x3c")](Yo(e,dc("0x14")),t.icons.cancel,dc("0x11"),dc("0xa"),"sw"),this[dc("0x1")][dc("0x13")](dc("0x4b")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[dc("0x7")][dc("0x25")],this[dc("0x4a")]()),this[dc("0x24")][dc("0x2e")]({attributes:{class:["ck-suggestion__user",dc("0x32")]}}),this[dc("0x18")](this[dc("0x16")]())}[dc("0x16")](){const t=this.bindTemplate,e=[{tag:dc("0x26"),attributes:{class:[dc("0x1e"),"ck-annotation__info"]},children:[{tag:dc("0x4d"),children:[{text:this[dc("0x24")][dc("0x4c")]}],attributes:{class:[dc("0x2b"),dc("0x45")]}},{tag:"time",attributes:{datetime:t.to(dc("0x30")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[dc("0x3b")][dc("0x21")](t)))}]}]},{tag:"div",attributes:{class:[dc("0x46"),dc("0x1c")]},children:[this[dc("0x34")],this.discardButton]},{tag:dc("0x26"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x7")].isExternal&&e[dc("0x23")]({tag:dc("0x26"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3")]()}]});const n={tag:"div",attributes:{class:[dc("0x1a"),t.if(dc("0xb"),"ck-suggestion-wrapper--active"),t.to(dc("0x3f"),(t=>"ck-suggestion-"+t)),this._config[dc("0x20")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[dc("0x7")].id,"data-thread-id":this[dc("0x7")][dc("0x37")].id,"data-author-id":this[dc("0x7")][dc("0x25")].id,tabindex:-1},children:[{tag:dc("0x26"),attributes:{class:[dc("0x33"),dc("0x2c")]},children:[this[dc("0x24")],{tag:"div",attributes:{class:["ck-suggestion__main",dc("0x41")]},children:e}]}]};return this[dc("0x43")]&&this.commentThreadInputView&&(n[dc("0x8")].push(this[dc("0x43")],this[dc("0x42")]),this.commentsListView[dc("0x40")](dc("0x2a")).to(this),this[dc("0x43")][dc("0x40")](dc("0x49")).to(this),this.commentThreadInputView[dc("0x40")]("editorReady").to(this),this[dc("0x42")][dc("0x40")](dc("0x49")).to(this)),n}render(){super.render(),this._descriptionElement=this[dc("0x3d")][dc("0x0")](".ck-annotation__content-wrapper"),this._descriptionElement[dc("0x1b")]=this[dc("0x12")],this.on("change:description",((t,e,n)=>{this[dc("0x19")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2")]);return i[dc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x2e")]({attributes:{class:n}}),i.on(dc("0x36"),(()=>{this[dc("0x2f")](o,this[dc("0x7")].id)})),i}[dc("0x3")](){return"importWord"===this[dc("0x7")][dc("0xf")][dc("0x17")].source?Yo(this[dc("0x2")],dc("0x27")):Yo(this.locale,dc("0x22"))}[dc("0x4a")](){return this[dc("0x7")][dc("0x29")]?dc("0x1f")===this._model[dc("0xf")][dc("0x17")][dc("0x48")]?Yo(this[dc("0x2")],dc("0x4"),this[dc("0x7")][dc("0x28")].name):Yo(this.locale,"EXTERNAL_AVATAR",this[dc("0x7")][dc("0x28")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x15")]("*").map(((t,e)=>e%2!=0?dc("0x2d")+fc(t)+dc("0x44"):fc(t))).join(""),e&&(n+=dc("0x31")+e.value+dc("0x35")+e[dc("0x38")]+dc("0x6")),n}function fc(t){const e=document[dc("0xe")](dc("0x4d"));return e[dc("0x47")]=t,e.innerHTML}const hc=["commentThread","comments.maxCommentCharsWhenCollapsed","type","getByInnerView","isOn","_handleSuggestionControllerDelayed","CommentView","getAllAdjacentSuggestions","head","_descriptionFactory","arrowView","acceptAllSuggestions","model","acceptSelectedSuggestions","getDescriptions","getMarkerNames","innerView","push","acceptButton","descriptionParts","_viewToController","discardSelectedSuggestions","buttonView","_disableComments","commands","createAnnotation","has","change:activeAnnotations","editing","_initializeController","Annotations","init","EditorAnnotations","actionView","_destroyController","destroy","Discard all selected suggestions","_bindAnnotationToEditors","from","mainView","refreshSelectedViews","hasSuggestion","Track changes","lowest","isDirty","get","Accept all selected suggestions","isMultiRange","discardButton","_createUIButton","delete","bind","clear","Accept all suggestions","some","requires","suggestion-","unbind","source","trackChanges.disableComments","getRanges","values","activeMarkers","change:previous","focus","suggestionUnloaded","_suggestionToController","size","registerAnnotation","getSuggestion","trackChanges","locale","config","define","filter","_handleControllerBuffer","TrackChangesUI","comments","createAnnotationView","view","execute","add","length","isEnabled","_updateController","addSourceCollector","CommentsUI","getMarkers","editor","button","_refreshActiveMarkers","plugins","isInContent","activeAnnotations","addComment","commandName","set","SuggestionThreadView","_annotationViews","separator","discardAllSuggestions","listenTo","trackChanges.SuggestionThreadView","map","CommentsRepository","toMany","getJoined","TrackChangesEditing"];var pc,bc;pc=hc,bc=448,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x27")](){return[Wa,r.Users,Ec("0x58"),Ec("0xe"),Ec("0x10")]}static get pluginName(){return Ec("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x4")]=new Map,this[Ec("0x52")]=new Map,this[Ec("0x3b")]=new Map;const e=this[Ec("0x48")][Ec("0x38")];e[Ec("0x39")](Ec("0x56"),gc),e[Ec("0x39")](Ec("0x2b"),!1),this[Ec("0x7")]=e[Ec("0x1d")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x3b")][Ec("0x33")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3b")]){const n=this._suggestionToController[Ec("0xa")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0xd")](t)}this.editor[Ec("0x4b")][Ec("0x1d")](Ec("0x10"))[Ec("0x18")](),this[Ec("0x4a")](),this[Ec("0x3b")][Ec("0x24")]()}),10),this[Ec("0x3b")].set(t,e)}[Ec("0xf")](){const t=this.editor,e=t[Ec("0x4b")].get(Ec("0x5b")),n=t.plugins[Ec("0x1d")](Ec("0xe")),o=t[Ec("0x4b")].get(Ec("0x10")),s=t[Ec("0x4b")][Ec("0x1d")](Ec("0x58"));t.ui.componentFactory[Ec("0x41")](Ec("0x36"),(t=>this[Ec("0x21")](t))),o[Ec("0x45")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x32")])){const o=e[Ec("0x63")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x1f")]){s.push(...t[Ec("0x2c")]());continue}const e=t.getFirstRange();if(s[Ec("0x42")]>0){const t=s[0][Ec("0x5a")](e);if(t){s[0]=t;continue}}s[Ec("0x1")](e)}t[Ec("0x1")]([n.view,s])}return t})),this[Ec("0x55")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x55")](e,Ec("0x2f"),((t,n,o,s)=>{e[Ec("0x4c")]&&(null==o?(this[Ec("0x44")](s[Ec("0x64")]),this[Ec("0x61")](e,!1)):(this[Ec("0x44")](o[Ec("0x64")]),this[Ec("0x61")](e,!0)))})),null===e.previous?this[Ec("0x61")](e,!1):this._updateController(e.head)})),this[Ec("0x55")](e,Ec("0x31"),((t,e,n)=>{this.stopListening(e,Ec("0x2f")),this[Ec("0x3b")][Ec("0x22")](e);const o=n?n[Ec("0x64")]:e,s=this[Ec("0x32")][Ec("0x1d")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x12")](e)})),this[Ec("0x55")](e,"suggestionChanged",((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x55")](n,Ec("0xb"),(()=>{this[Ec("0x4a")]()})),this[Ec("0x55")](s,Ec("0x4e"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x19")](n))return;const s=e[Ec("0x35")](n);this._suggestionToController[Ec("0x1d")](s)[Ec("0x3f")][Ec("0x30")]()}),{priority:Ec("0x1b")})}_refreshActiveMarkers(){const t=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")]("Annotations"),e=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")](Ec("0x5b")),n=Array[Ec("0x16")](t[Ec("0x4d")],(t=>t[Ec("0x0")]))[Ec("0x3a")]((t=>this[Ec("0x4")][Ec("0xa")](t))),o=[];for(const t of n){const e=this[Ec("0x4")][Ec("0x1d")](t)[Ec("0x68")].getAllAdjacentSuggestions();o[Ec("0x1")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6b")]()]),[]))}e[Ec("0x2e")]=o}[Ec("0x21")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x48")][Ec("0x8")][Ec("0x1d")]("trackChanges"),r=Yo(t,Ec("0x1a"));n[Ec("0x6")].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[Ec("0x6")][Ec("0x23")]("isOn").to(o,"value"),n[Ec("0x6")].on(Ec("0x40"),(()=>{o.execute(),this[Ec("0x48")][Ec("0xc")][Ec("0x3f")][Ec("0x30")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x36")}},{type:Ec("0x53")},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x25")),commandName:Ec("0x67")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1e")),commandName:Ec("0x69")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x54")}},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x14")),commandName:Ec("0x5")}}];for(const t of x){let e={type:Ec("0x53")};if(t.model){const n=new s.Model(t[Ec("0x68")]),o=this[Ec("0x48")][Ec("0x8")].get(n.commandName);n[Ec("0x23")](Ec("0x60"),Ec("0x43")).to(o,"value","isEnabled"),e={type:t[Ec("0x5e")],model:n}}i[Ec("0x41")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x68")]))[Ec("0x57")]((t=>this[Ec("0x48")][Ec("0x8")][Ec("0x1d")](t.model[Ec("0x4f")]))),c=n[Ec("0x6")];return c.actionView[Ec("0x29")](Ec("0x43")),c[Ec("0x66")][Ec("0x29")](Ec("0x43")),c[Ec("0x11")][Ec("0x23")](Ec("0x43")).to(o,Ec("0x43")),c[Ec("0x66")].bind("isEnabled")[Ec("0x59")](a,"isEnabled",((...t)=>t[Ec("0x26")]((t=>t)))),n.on("execute",(t=>{this.editor.execute(t[Ec("0x2a")].commandName),this[Ec("0x48")].editing[Ec("0x3f")][Ec("0x30")]()})),n}[Ec("0xd")](t){const e=this[Ec("0x48")],n=e[Ec("0x38")],o=e[Ec("0x4b")].get(Ec("0xe")),s=e[Ec("0x4b")][Ec("0x1d")](Ec("0x58")),i=e[Ec("0x4b")][Ec("0x1d")](Ec("0x10")),x=e[Ec("0x4b")].get(r.Users).me,a=n[Ec("0x1d")](Ec("0x36"))[Ec("0x51")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1d")](Ec("0x46"));let u,d;this[Ec("0x52")][Ec("0xa")](t.id)?(d=this[Ec("0x52")].get(t.id),u=d.mainView):(u=new a(e[Ec("0x37")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x1d")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x1d")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x1d")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x1d")](Ec("0x5d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x1d")]("locale")),CommentView:n.get(Ec("0x3d"))[Ec("0x62")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x2")].on(Ec("0x40"),(()=>{e.editing[Ec("0x3f")][Ec("0x30")]()})),u[Ec("0x20")].on(Ec("0x40"),(()=>{e[Ec("0xc")][Ec("0x3f")].focus()})),d=o[Ec("0x3e")](this[Ec("0x48")][Ec("0x37")],u),d[Ec("0x23")]("isDirty").to(u,Ec("0x1c")),d[Ec("0x23")]("length").to(u),d[Ec("0x23")](Ec("0x5e")).to(u,"type",(t=>Ec("0x28")+t)),this[Ec("0x52")][Ec("0x50")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5c")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x3a")]((t=>t[Ec("0x4c")]));u[Ec("0x3")]=e[Ec("0x4b")][Ec("0x1d")](Ec("0x5b"))._descriptionFactory[Ec("0x6a")](f),this[Ec("0x32")][Ec("0x50")](t,m),this[Ec("0x4")][Ec("0x50")](u,m);const h=o[Ec("0x9")]({view:d,target:()=>{const n=[],o=t[Ec("0x63")]()[Ec("0x3a")]((t=>t[Ec("0x4c")]));for(const t of o)n.push(...t[Ec("0x47")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xc")],n)},type:()=>Ec("0x28")+m[Ec("0x3f")][Ec("0x5e")]});s[Ec("0x15")](u,h),o[Ec("0x41")](h),i[Ec("0x34")](h)}[Ec("0x12")](t){const e=this[Ec("0x48")].plugins[Ec("0x1d")]("Annotations"),n=this._suggestionToController[Ec("0x1d")](t),o=n.view,s=e[Ec("0x5f")](o);s&&e.remove(s),this[Ec("0x32")][Ec("0x22")](t),this[Ec("0x4")][Ec("0x22")](o),n[Ec("0x13")]()}[Ec("0x44")](t){if(!t[Ec("0x4c")]||!this[Ec("0x32")][Ec("0xa")](t))return;const e=this[Ec("0x48")].plugins.get(Ec("0x5b")),n=this._suggestionToController.get(t),o=t[Ec("0x63")]();n.view[Ec("0x3")]=e[Ec("0x65")].getDescriptions(o)}[Ec("0x13")](){for(const t of this[Ec("0x32")].keys())this._destroyController(t);for(const t of this[Ec("0x52")][Ec("0x2d")]())t[Ec("0x17")][Ec("0x13")]();super.destroy()}}var Tc,Cc,yc=["getSuggestion","plugins","editor","adapter","get","addSuggestionData","requires","TrackChanges","addSuggestion","getSuggestions"];Tc=yc,Cc=474,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x2")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x3")}set[kc("0x9")](t){this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x9")]=t}get[kc("0x9")](){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa).adapter}[kc("0x4")](t){return this.editor.plugins[kc("0x0")](Wa)[kc("0x1")](t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x6")](t)}}const Rc=["init","trackChangesData","createElement","set","reduce","editor","editorCreator","Pagination","getRootNames","end","createDocumentFragment","requires","document","data","_adapter","constructor","destroy","config","rootsAttributes","create","acceptAllSuggestions","plugins","getSuggestions","CommentsRepository","div","get","getUser","getDataWithDiscardedSuggestions","getFullData","getDataWithAcceptedSuggestions","getRootsAttributes","TrackChangesEditing","pluginName","model","function","result","map","discardAllSuggestions","Users","useAnonymousUser","users","define","addSuggestionData"];var vc,Ic;vc=Rc,Ic=217,function(t){for(;--t;)vc.push(vc.shift())}(++Ic);const Sc=function(t,e){return Rc[t-=0]},Lc=[Sc("0x5")];class Nc extends t.Plugin{static get[Sc("0x9")](){return[Wa]}static get[Sc("0x1e")](){return"TrackChangesData"}[Sc("0x29")](){const t=this[Sc("0x3")];if(t[Sc("0xf")][Sc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t.model[Sc("0xa")][Sc("0x6")]()[Sc("0x2")](((t,e)=>(t[e]="",t)),{});return t[Sc("0xd")][Sc("0x11")](n,e)})),Sc("0x20")!=typeof t[Sc("0xf")][Sc("0x17")](Sc("0x2a"))[Sc("0x4")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Sc("0x1b")](t){return Oc(this[Sc("0x3")],!0,t)}[Sc("0x19")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Sc("0x1e")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Sc("0x21")]=Sc("0x7")}[Sc("0x29")](){this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x15"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x1d"))[Sc("0xc")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x13")].push(Wa,Mc),o[Sc("0x10")]=wc(t)?t[Sc("0x1c")]():void 0;const s=document[Sc("0x8")](),i=t[Sc("0xf")].get(Sc("0x2a"))[Sc("0x4")],x=await i(o,(()=>function(t){const e=document[Sc("0x0")](Sc("0x16"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x1f")][Sc("0xa")][Sc("0x6")]().reduce(((e,n)=>(e[n]=t[Sc("0xb")][Sc("0x17")]({rootName:n}),e)),{}),o=t[Sc("0x13")][Sc("0x17")]("Users")[Sc("0x26")][Sc("0x22")]((t=>({id:t.id,name:t.name}))),s=t[Sc("0x13")].get(Sc("0x1d"))[Sc("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x13")][Sc("0x17")](Sc("0x24")),i=e[Sc("0x13")][Sc("0x17")](Sc("0x1d"));for(const t of o)r[Sc("0x18")](t.id)||r.addUser(t);r.me||r[Sc("0x25")]();for(const t of s)i[Sc("0x28")](t);e[Sc("0xb")][Sc("0x1")](n)}(t,x),x.execute(Sc(e?"0x12":"0x23"));const a=wc(x)?x[Sc("0x1a")](n):x.data[Sc("0x17")](n);return await x[Sc("0xe")](),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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","has","refresh","value","affectsData","execute","clearForceDisabled","editor","commands","_disableUnsupportedCommands","forceDisabled","isEnabled"];var c,l;c=a,l=438,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this.refresh(),this[u("0xb")]=!1}[u("0x0")](){this[u("0x9")]=!0}[u("0x3")](){this[u("0x1")]=!this.value,this[u("0x1")]?this[u("0x7")]():this[u("0xa")]()}[u("0x7")](){for(const t of this[u("0x5")].commands[u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x8")](u("0xc"))}[u("0xa")](){for(const t of this[u("0x5")][u("0x6")][u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x4")](u("0xc"))}}const g=["getRanges","acceptSuggestion","TrackChangesEditing","editor","plugins","_suggestions","model","_isEnabledBasedOnSelection","canEditAt","isEnabled","execute","refresh"];var m,f;m=g,f=376,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0x7")](),this[h("0x3")]=!1}[h("0x7")](){this[h("0x5")]=!0}[h("0x6")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0xb")][h("0x2")][h("0x4")](o)&&this.editor[h("0x0")].get(h("0xa"))[h("0x9")](n)}}const b=["isEnabled","editor","TrackChangesEditing","execute","getRanges","get","_suggestions","model","track-changes-discard-suggestion-not-found","refresh","_isEnabledBasedOnSelection","canEditAt","discardSuggestion"];var E,_;E=b,_=465,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0xc")](),this[T("0x0")]=!1}[T("0xc")](){this[T("0x3")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x8")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x4")][T("0xa")][T("0x1")](o)&&this[T("0x4")].plugins[T("0x8")](T("0x5"))[T("0x2")](n)}}const y=["start","length","createPositionAfter","change","schema","isArray","map","replace","getRange","isTouching","value","createPositionAt","isInContent","end","createRange"," [color ","isMultiRange","push","type","createPositionBefore","isObject","splice","getMarkers","from","deletion","isIntersecting"];var k,A;k=y,A=171,function(t){for(;--t;)k.push(k.shift())}(++A);const R=function(t,e){return y[t-=0]};function v(t){return t.sort(((t,e)=>R("0x9")==t[R("0x3")]&&R("0x9")!=e[R("0x3")]?-1:R("0x9")!=t[R("0x3")]&&R("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0xf")];for(;o<t[R("0xc")];){const i=t[o],x=t[o+1];n||(n=e[R("0x4")](i)),S(e,i,x)||(s[R("0x2")](e[R("0x19")](n,r[R("0x5")](i)?e[R("0xd")](i):e[R("0x16")](i,R("0x18")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xd")](e),s=t[R("0x4")](n);return o.isTouching(s)}function L(t,e,n){for(;n[R("0xc")];){const o=n[R("0x6")](0,100);t[R("0xe")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["canEditAt","values","_suggestions","_command","isEnabled","execute","_isEnabledBasedOnSelection","editor","model","refresh","isInContent","getRanges"];var w,M;w=N,M=404,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x7")]=e,this[O("0x6")]=n,this[O("0x1")](),this[O("0xa")]=!1}[O("0x1")](){const t=Array.from(this._suggestions[O("0x5")]()).some((t=>t[O("0x2")]));this[O("0x8")]=this[O("0x7")].isEnabled&&t}[O("0x9")](){const t=v(Array.from(this[O("0x6")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xb")][O("0x0")][O("0x4")](t))return}L(this.editor[O("0x0")],this[O("0x7")],t)}}const P=["_command","from","document","execute","isEnabled","selection","refresh","editor","model","values","getRanges","_suggestions","_selectedSuggestions","size"];var D,B;D=P,B=345,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("0x5")]=e,this[j("0x2")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this._isEnabledBasedOnSelection=!1}[j("0xb")](){const t=this[j("0xc")][j("0xd")][j("0x7")][j("0xa")],e=Array.from(this._suggestions[j("0x0")]());this._selectedSuggestions=function(t,e){const n=Array[R("0x8")](t.getRanges()),o=new Set;for(const s of e)if(s[R("0x17")])for(const e of n)for(const n of s[R("0x7")]()){const r=n[R("0x13")]();(e[R("0xa")](r)||t.isCollapsed&&!s[R("0x1")]&&s.next&&r[R("0x18")][R("0x14")](e[R("0xb")]))&&o.add(s)}return o}(t,e),this.isEnabled=this._command[j("0x9")]&&!!this[j("0x3")][j("0x4")]}[j("0x8")](){const t=v(Array[j("0x6")](this[j("0x3")]));for(const e of t){const t=e[j("0x1")]();if(!this[j("0xc")][j("0xd")].canEditAt(t))return}L(this.editor[j("0xd")],this[j("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,Rt=kt.hasOwnProperty,vt=RegExp("^"+At.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?vt: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 zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,ve=Re&&Re.exports===Ae&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),Rn=Tt(hn),vn=gt;(gn&&vn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&vn(new Nt)!=pn||mn&&vn(mn.resolve())!=bn||fn&&vn(new fn)!=En||hn&&vn(new hn)!=_n)&&(vn=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 Rn:return _n}return e});const In=vn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Ro=function(t,e){return t.has(e)};const vo=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!Ro(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=vo(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?vo(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["push","getContainedElement","subType","start","removeAttribute","onAccept","getMarkerNames","getFirstRange","filter","add","commentThread","accept","_markerNames","decorate","onDiscard","nodeAfter","getMultiRangeId","onAttributesChange","getMarkers","attributes","from","_saved","getItems","author","delete","markers","size","_model","substr","getFirstMarker","isInContent","authoredAt","isIntersectingWithRange","next","@external","addMarkerName","getRanges","_onAttributesChange","head","previous","map","_onDiscard","addRange","removeMarker","createdAt","isExternal","get","hasComments","nodeBefore","getAllAdjacentSuggestions","change","getRange","type","removeMarkers","length","discard","creator","setAttribute","set","_onAccept"];var $o,Jo;$o=Xo,Jo=132,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x28")]=e.type,this[Qo("0x32")]=e.subType||null,this[Qo("0xb")]=e[Qo("0xb")],this[Qo("0x2c")]=e[Qo("0x2c")]||e.author,this[Qo("0x21")]=Boolean(e.attributes&&e[Qo("0x7")][Qo("0x16")]),this.data=null,this[Qo("0xf")]=t,this._onAccept=e[Qo("0x35")],this[Qo("0x1d")]=e[Qo("0x2")],this[Qo("0x19")]=e[Qo("0x5")],this._markerNames=new Set,this[Qo("0x20")]=null,this[Qo("0x2e")](Qo("0x13"),null),this.set("attributes",e.attributes||{}),this[Qo("0x2e")](Qo("0x1b"),null),this[Qo("0x2e")](Qo("0x15"),null),this[Qo("0x2e")]("commentThread",null),this.set(Qo("0x9"),!1),this[Qo("0x1")]("accept"),this[Qo("0x1")](Qo("0x2b"))}get[Qo("0x1a")](){let t=this;for(;t[Qo("0x1b")];)t=t[Qo("0x1b")];return t}get[Qo("0x23")](){return!!this[Qo("0x3a")]&&this[Qo("0x3a")][Qo("0x2a")]>0}get isMultiRange(){return 0!=this[Qo("0x0")][Qo("0xe")]&&6==Array[Qo("0x8")](this[Qo("0x0")])[0].split(":")[Qo("0x2a")]}get[Qo("0x12")](){return null!==this.getFirstMarker()}[Qo("0x17")](t){this[Qo("0x0")][Qo("0x39")](t)}[Qo("0x36")](){return Array[Qo("0x8")](this[Qo("0x0")])}[Qo("0x6")](){return this[Qo("0x36")]()[Qo("0x1c")]((t=>this[Qo("0xf")][Qo("0xd")][Qo("0x22")](t)))[Qo("0x38")]((t=>t))}[Qo("0x11")](){return this[Qo("0x6")]()[0]||null}[Qo("0x29")](){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x6")]())t[Qo("0x1f")](e)})),this[Qo("0x0")].clear()}[Qo("0x1f")](t){this._model[Qo("0x26")]((e=>{e.removeMarker(t)})),this[Qo("0x0")][Qo("0xc")](t)}[Qo("0x1e")](t){const e="suggestion:"+this[Qo("0x28")]+":"+this[Qo("0x32")]+":"+this.id+":"+this[Qo("0x2c")].id+":"+Zo[Qo("0x4")]();this.addMarkerName(e),this[Qo("0xf")][Qo("0x26")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x14")](t){for(const e of this[Qo("0x18")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x18")](){return this[Qo("0x6")]().map((t=>t[Qo("0x27")]()))}[Qo("0xa")](){return this[Qo("0x18")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x37")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x27")]())||null}[Qo("0x31")](){const t=this.getRanges();if(1!=t[Qo("0x2a")])return null;const e=t[0],n=e[Qo("0x33")][Qo("0x3")],o=e.end[Qo("0x24")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3b")](){this[Qo("0x2f")](this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x25")](){const t=[];let e=this[Qo("0x1a")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x15")];return t}[Qo("0x2d")](t,e){const n=eo(this[Qo("0x7")]);_o(n,t,e),Go(n,this[Qo("0x7")])||(this.attributes=n,this[Qo("0x19")](n))}[Qo("0x34")](t){const e=eo(this[Qo("0x7")]);qo(e,t),Go(e,this[Qo("0x7")])||(this[Qo("0x7")]=e,this[Qo("0x19")](this.attributes))}toJSON(){return{id:this.id,type:this.subType?this[Qo("0x28")]+":"+this.subType:this[Qo("0x28")],authorId:this[Qo("0x2c")].id,createdAt:this.createdAt,hasComments:this[Qo("0x23")],data:this.data,attributes:this.attributes}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x10")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["getDescriptions","_customCallbacks","elementStart","Container","removeEmptyContainer","Object","_itemLabelsCallbacks","pop","end","removeObject","_itemLabels","addContainer","isEqual","$textProxy","remove","insertion","*Remove:* %0","registerElementLabel","get","getItemLabel","getFirstRange","softBreak","isEmpty","ELEMENT_SPACE","addObject","skip","_schema","quantity","replace","checkChild","type","text","$text","name","isObject","push","addEmptyContainer","indexOf","data","_addDescriptionItems","EmptyContainer","length","function","nextSibling","elementEnd","item","add","_locale","previousSibling","element","REPLACE_TEXT","_resolveDescriptionItems","*Merge:* %0","$1 $2","label","registerDescriptionCallback","set","*Insert:* %0","deletion"];var es,ns;es=ts,ns=434,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("0x27")]=[],this[os("0x30")]=new Map,this[os("0x2c")]=[],this[os("0x5")]=t,this[os("0x1a")]=e}[os("0x26")](t){const e=[];for(let n=0;n<t[os("0x14")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x27")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x3a")]()[os("0x2e")][os("0x32")](s.getFirstRange().start)){const t=e[e.length-1],n=os("0x35")==o[os("0x9")]?os("0x19"):os("0x34");t&&os("0xa")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x22")](t){this._customCallbacks.push(t)}[os("0x37")](t,n,o=e.priorities.normal){os("0x15")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2c")],{matchingCallback:t,label:n,priority:o}):this[os("0x30")][os("0x23")](t,n)}[os("0x39")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x38")](t[os("0xc")])),n?n(e):1!==e?e+" "+t[os("0xc")]+"s":""+t[os("0xc")]}[os("0x12")](t,e){const n=e[os("0x3a")]().getWalker(),o=os("0x35")==e.type?os("0x19"):os("0x34");for(const e of n){const s=e[os("0x18")],r=t[t[os("0x14")]-1];if(s.is(os("0x33")))r&&r[os("0x9")][os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),r&&os("0xa")==r[os("0x9")]?r[o]+=s.data:t[os("0xe")]({type:"text",add:os("0x19")==o?s.data:"",remove:os("0x34")==o?s[os("0x11")]:""});else if(this[os("0x5")][os("0xd")](s)){const i=s;if(r&&r.type[os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),os("0x17")==e[os("0x9")])continue;r&&r.type==o+os("0x2b")&&r[os("0x1c")].name==i.name?r[os("0x6")]++:t[os("0xe")]({type:o+"Object",element:i,quantity:1}),n[os("0x4")]((t=>!(os("0x17")==t[os("0x9")]&&t[os("0x18")]==s)))}else if(this._schema[os("0x8")](s,os("0xb"))||s.is(os("0x1c"),os("0x0"))){const n=s;if(os("0x19")==o&&os("0x28")==e[os("0x9")]||os("0x34")==o&&os("0x17")==e.type)continue;if(r&&-1==r[os("0x9")].indexOf("Container")){os("0xa")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x19")==o?n[os("0x16")]&&!this[os("0x5")][os("0xd")](n[os("0x16")])?n[os("0x16")]:null:n[os("0x1b")]&&!this[os("0x5")][os("0xd")](n[os("0x1b")])?n[os("0x1b")]:null,n[os("0x1")]||i&&i.isEmpty){const e=i&&i[os("0x1")]?i:n;r&&r[os("0x9")]==o+os("0x13")&&r[os("0x1c")][os("0xc")]==e.name?r[os("0x6")]++:t[os("0xe")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x1e")](t){const e=this[os("0x1a")],n=[];for(const o of t){switch(o[os("0x9")]){case"text":if(o.add=o[os("0x19")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),o[os("0x34")]=o.remove.replace(/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),""!=o[os("0x19")]&&""!=o[os("0x34")]){n[os("0xe")]({type:os("0x7"),content:Yo(e,os("0x1d"),['"'+o.remove+'"','"'+o[os("0x19")]+'"'])});continue}if(null!=o[os("0x19")].match(/^ +$/)){n.push({type:os("0x35"),content:Yo(e,os("0x24"),Yo(e,os("0x2"),o[os("0x19")][os("0x14")]))});continue}if(null!=o.remove.match(/^ +$/)){n.push({type:os("0x25"),content:Yo(e,os("0x36"),Yo(e,os("0x2"),o[os("0x34")][os("0x14")]))});continue}if(""!=o[os("0x19")]){n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),'"'+o[os("0x19")]+'"')});continue}n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x36"),'"'+o[os("0x34")]+'"')});continue;case os("0xf"):case os("0x3"):n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue;case os("0x2a"):case os("0x2f"):n[os("0xe")]({type:"deletion",content:Yo(e,os("0x36"),this.getItemLabel(o[os("0x1c")],o.quantity))});continue;case os("0x31"):n[os("0xe")]({type:os("0x35"),content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x1c")],o[os("0x6")]))});continue;case"removeContainer":n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x1f"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue}n[os("0xe")](o)}return n}}const rs=["justify","TrackChangesEditing","center","getSelectedBlocks","getAttribute","locale","ltr","left","value","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","has","commandName","plugins","enableCommand","change","filter","alignment","*Format:* %0","editor","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","from","_descriptionFactory","right","AlignmentEditing","markBlockFormat","model","selection","format"];var is,xs;is=rs,xs=457,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x6")][as("0x4")](as("0x12")))return;const n=t[as("0x6")].get(as("0x18"));n[as("0x7")](as("0xa"),((e,o={})=>{let s=o[as("0x1")];o[as("0x1")]||(s=as("0x1d")===t[as("0x1c")].contentLanguageDirection?"left":as("0x11"));const r=Array[as("0xf")](this[as("0xc")][as("0x14")].document[as("0x15")][as("0x1a")]())[as("0x9")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0xa"))||null;return e.checkAttribute(t,as("0xa"))&&n!=o}(t,this.editor[as("0x14")].schema,s)));t[as("0x14")][as("0x8")]((()=>{for(const t of r)n[as("0x13")](t,{commandName:as("0xa"),commandParams:[{value:s}]})}))})),n[as("0x10")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0x5")]){const t=n.commandParams[0].value;return{type:as("0x16"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x0"):return Yo(e,as("0x2"));case as("0x11"):return Yo(e,as("0x3"));case as("0x19"):return Yo(e,as("0xd"));case as("0x17"):return Yo(e,as("0xe"))}}(t))}}}))}}const ls=["start","toViewElement","TrackChangesEditing","getCustomProperty","consumable","previousPosition","model","type","listItem","span","hasAttribute","plugins","markerRange","isLimit","toViewPosition","writer","getItems","push","createRangeOn","bindElementToMarker","get","elementEnd","mapper","isBlock","markerName","addHighlight","getWalker","item","listIndent","nextSibling","insert","addClass","element"];var us,ds;us=ls,ds=403,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x3")](t)&&o[gs("0xa")](n[gs("0xb")](s));return o}function fs(t){const e=[];if(t.is(gs("0x19"),gs("0x1"))){let n=t[gs("0x16")];for(;n&&n.is(gs("0x19"),gs("0x1"))&&n.getAttribute(gs("0x15"))>0;)e[gs("0xa")](n),n=n[gs("0x16")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0xd")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1e")].test(r.markerRange,s.name))return;const x=r.markerRange[gs("0x13")](),a=r[gs("0x5")][gs("0x1a")],c=t[gs("0x20")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x14")];d=d||c.isContent(e);const n=i[gs("0xf")][gs("0x1b")](e);if(n&&n[gs("0x1d")](gs("0x12")))return;gs("0xe")==t[gs("0x0")]&&c[gs("0x10")](e)&&!c[gs("0x6")](e)&&(e[gs("0x16")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x1f")]),g=!0):u=u||t[gs("0x1f")])}function m(t){const s=i[gs("0x8")].createUIElement(gs("0x2"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0xf")][gs("0x7")](t);n&&o.activeMarkers.includes(r.markerName)&&i[gs("0x8")][gs("0x18")]("ck-suggestion-marker--active",s),i[gs("0x8")][gs("0x17")](x,s),i[gs("0xf")][gs("0xc")](s,r[gs("0x11")])}d||g||!u||m(u)}}const ps=["getRanges","_descriptionFactory","locale","FORMAT_BOLD","UnderlineEditing","commandName","*Format:* %0","toLowerCase","FORMAT_UNDERLINE","selection","code","has","SubscriptEditing","subscript","forceValue","*Remove format:* %0","from","model","strikethrough","document","plugins","FORMAT_SUPERSCRIPT","afterInit","registerDescriptionCallback","format","TrackChangesEditing","FORMAT_STRIKETHROUGH","CodeEditing","BoldEditing","get","change","markInlineFormat","editor","SuperscriptEditing","StrikethroughEditing","value","enableCommand","italic","superscript"];var bs,Es;bs=ps,Es=358,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x15"),"ItalicEditing",_s("0x24"),_s("0x14"),_s("0x1b"),_s("0x5"),_s("0x1a")];class Cs extends t.Plugin{[_s("0xf")](){const t=this[_s("0x19")],e=t[_s("0xa")],n=t.plugins[_s("0x16")](_s("0x12")),o=t[_s("0x22")];for(const o of Ts){if(!t[_s("0xd")][_s("0x4")](o))continue;const s=o.slice(0,-7)[_s("0x0")](),r=t.commands[_s("0x16")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0xc")][_s("0x2")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x7")]?o[_s("0x7")]:!r[_s("0x1c")];e[_s("0x17")]((()=>{const t=Array[_s("0x9")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x18")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")][_s("0x10")]((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s.commandParams[0][_s("0x7")]?{type:"format",content:Yo(o,_s("0x26"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x8"),e)}}))}s("bold",Yo(o,_s("0x23"))),s(_s("0x1e"),Yo(o,"FORMAT_ITALIC")),s("underline",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,"FORMAT_CODE")),s(_s("0xb"),Yo(o,_s("0x13"))),s(_s("0x6"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1f"),Yo(o,_s("0xe")))}}const ys=["blockQuote","locale","document","schema","commands","registerDescriptionCallback","getSelectedBlocks","afterInit","editor","filter","plugins","model","selection","parent","forceValue","$root","_descriptionFactory","ELEMENT_BLOCK_QUOTE","from","TrackChangesEditing","checkChild","commandParams","markBlockFormat","BlockQuoteEditing","get","value","enableCommand","commandName","*Remove format:* %0"];var ks,As;ks=ys,As=290,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return ys[t-=0]};class vs extends t.Plugin{[Rs("0x7")](){const t=this.editor,e=t[Rs("0x1")];if(!t[Rs("0xa")].has(Rs("0x17")))return;const n=t[Rs("0xa")][Rs("0x18")](Rs("0x13")),o=this[Rs("0x8")][Rs("0x4")][Rs("0x18")](Rs("0x0"));n[Rs("0x1a")]("blockQuote",((e,s={})=>{const r=this[Rs("0x8")][Rs("0xb")][Rs("0x2")][Rs("0xc")],i=s&&void 0!==s[Rs("0xe")]?s[Rs("0xe")]:!o[Rs("0x19")];let x=[];if(i){const e=Array[Rs("0x12")](r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,Rs("0x0")),o=e[Rs("0x14")]([Rs("0xf"),Rs("0x0")],t);return n&&o}(t,this[Rs("0x8")][Rs("0xb")][Rs("0x3")])));x=I(e,t[Rs("0xb")])}else{const e=Array.from(r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)));x=I(e,t[Rs("0xb")])}t.model.change((()=>{for(const t of x)n[Rs("0x16")](t,{commandName:Rs("0x0"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x10")][Rs("0x5")]((t=>{const{data:n}=t;if(n&&Rs("0x0")==n[Rs("0x1b")]){const t=Yo(e,Rs("0x11"));return n[Rs("0x15")][0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,Rs("0x1c"),t)}}}))}}function Is(t){return Rs("0x0")==t[Rs("0xd")].name}const Ss=["get","commands","enableCommand","ckbox"];var Ls,Ns;Ls=Ss,Ns=460,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this.editor;t[ws("0x1")][ws("0x0")]("ckbox")&&t.plugins[ws("0x0")]("TrackChangesEditing")[ws("0x2")](ws("0x3"))}}const Os=["formatBlock","value","parent","config","ELEMENT_CODE_BLOCK","editor","change","label","language","_descriptionFactory","isLimit","document","has","registerDescriptionCallback","CodeBlock","getSelectedBlocks","TrackChangesEditing","afterInit","get","indentCodeBlock","enableCommand","model","name","outdentCodeBlock","selection","codeBlock","format","find","commandName","commandParams","forceValue","*Remove format:* %0","from","filter","plugins","languages"];var Fs,Ps;Fs=Os,Ps=242,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1b")](){const t=this[Ds("0xf")];if(!t[Ds("0x8")][Ds("0x16")](Ds("0x18")))return;const e=t[Ds("0x8")][Ds("0x1c")](Ds("0x1a")),n=t.locale,o=t[Ds("0xd")][Ds("0x1c")](Ds("0x23"))[Ds("0x9")],s=t.commands[Ds("0x1c")](Ds("0x23"));e[Ds("0x1e")](Ds("0x1d")),e[Ds("0x1e")](Ds("0x21")),e[Ds("0x1e")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1f")],x=t[Ds("0x1f")][Ds("0x15")][Ds("0x22")],a=r&&void 0!==r.forceValue?r[Ds("0x4")]:!s[Ds("0xb")];let c;r.language||(r[Ds("0x12")]=o[0][Ds("0x12")]),c=a?Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0x14")](e)&&n.checkChild(e[Ds("0xc")],Ds("0x23")));var e,n})):Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>js(t)));const l=I(c,i);i[Ds("0x10")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x23"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x23"),(t=>Yo(n,Ds("0xe"),t))),e._descriptionFactory[Ds("0x17")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xa")==s&&r&&Ds("0x23")==r[Ds("0x2")]){const t=r[Ds("0x3")][0][Ds("0x12")],s=e(o[Ds("0x1")]((e=>e[Ds("0x12")]===t))[Ds("0x11")]);return r[Ds("0x3")][0][Ds("0x4")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0xe"),1)+" ("+s+")")}:{type:Ds("0x0"),content:Yo(n,Ds("0x5"),Yo(n,Ds("0xe"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x20")]}const Us=["has","get","plugins","addCommentThread","CommentsEditing","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=471,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x4")];t.plugins[zs("0x5")](zs("0x2"))&&t[zs("0x0")][zs("0x6")]("TrackChangesEditing")[zs("0x3")](zs("0x1"))}}var Vs=n(181);const Ks=["unit","init","document","enableCommand","$graveyard","data","writer","fromRange","root","modifySelection","remove","rootName","TrackChangesEditing","commands","start","deleteForward","markerNameToElements","markerName","mapper","addMarker:suggestion:deletion","isCollapsed","setSelection","buffer","forward","removeMarker:suggestion:deletion","bind","createRange","showSuggestionHighlights","model","end","editor","high","merge","requires","detach","downcastDispatcher","batch","selection"];var qs,Xs;qs=Ks,Xs=489,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("0x0")](){return[Vs.Delete]}[$s("0x6")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x11"));e[$s("0x8")]("delete");const n=t[$s("0x12")].get($s("0x14"));e[$s("0x8")]("deleteForward",((e,o={})=>{const s=t[$s("0x21")].createSelection(t[$s("0x21")][$s("0x7")][$s("0x4")]);s[$s("0x19")]&&t[$s("0x21")][$s("0xe")](s,{direction:$s("0x1c"),unit:o[$s("0x5")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x9")==x[$s("0xd")][$s("0x10")]?t[$s("0x21")].createRange(r[$s("0x13")]):t[$s("0x21")].createRange(x[$s("0x13")],x[$s("0x22")]),x[$s("0x1")](),t[$s("0x21")].enqueueChange(n[$s("0x1b")][$s("0x3")],(t=>{n.buffer.lock(),t[$s("0x1a")](t[$s("0x1f")](a[$s("0x22")])),n[$s("0x1b")].unlock()}))})),t.editing[$s("0x2")].on("addMarker:suggestion:deletion",hs(t,$s("0x25")),{priority:$s("0x24")}),t[$s("0xa")][$s("0x2")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x20")]&&hs(t,$s("0x25"),{showActiveMarker:!1})[$s("0x1e")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x2")].on($s("0x1d"),((t,e,n)=>{const o=n[$s("0x17")][$s("0x15")](e[$s("0x16")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x16")]),n[$s("0xb")][$s("0xf")](t))}),{priority:"high"})}}const Qs=["execute","createPositionAt","isFirstBlockOfListItem","plugins","documentList","forceValue","outdentList","getAttribute","document","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","*Change to:* %0","indentList","value","splitListItemBefore","has","commands","add","listItemId","deletion","listIndent","model","ELEMENT_NUMBERED_LIST","createRange","numberedList","getFirstRange","commandName","formatBlock","_LIST","*Merge:* %0","mergeListItemBackward","*Format:* insert into %0","setSelection","end","next","accept","registerDescriptionCallback","change","start","nodeAfter","multipleBlocks","DocumentListEditing","selection","from","listType","expandListBlocksToCompleteList","fromRange","markBlockFormat","_suggestionFactory","afterInit","schema","commandParams","toUpperCase","previousSibling","detach","get","splitListItemAfter","push","DocumentListUtils","*Format:* remove from %0","getSelectedBlocks","bulletedList","isObject","enableCommand","markMultiRangeBlockFormat","before","registerCustomCallback","containsItem","editor","after","format","*Outdent:* %0","mergeListItemForward","nextSibling","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x2f")];if(!t.plugins[tr("0x45")](tr("0x14")))return;const e=t.locale,n=t.plugins[tr("0x22")]("TrackChangesEditing"),o=t[tr("0x39")][tr("0x22")](tr("0x25"));function s(e){return()=>{const s=t[tr("0x46")][tr("0x22")](e);let r=Array[tr("0x16")](t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]());if(a(e)){r=o[tr("0x18")](r);const t=[];for(const e of r)o[tr("0x38")](e)&&t.push(e);r=t}t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x2b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:"listType"},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x16")](t);const n=e.findIndex((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x0")][tr("0x3e")].selection[tr("0x27")]()),s=o[o.length-1],r=t[tr("0x0")][tr("0x1d")][tr("0x29")](s)?tr("0x30"):tr("0xc"),i=t.model.createRange(t[tr("0x0")][tr("0x37")](o[0],"before"),t[tr("0x0")][tr("0x37")](s,r));t[tr("0x0")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x34")];for(;t&&t.getAttribute("listIndent")>n[tr("0x3d")](tr("0x4a"));)e[tr("0x47")](t),t=t[tr("0x34")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]()[tr("0xd")]()[tr("0x43")],s=t[tr("0x0")][tr("0x37")](o,tr("0x2c")),r=t[tr("0x0")].createPositionAt(o,0),i=t.model[tr("0x2")](s,r);t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")})}))}}function a(e){const n=t[tr("0x46")][tr("0x22")](tr("0x28"))[tr("0x43")],o=t.commands[tr("0x22")]("numberedList")[tr("0x43")];return tr("0x3")===e?n:o}n.enableCommand(tr("0x3"),s(tr("0x3"))),n[tr("0x2a")](tr("0x28"),s(tr("0x28"))),n.enableCommand("indentList",r(tr("0x42"))),n[tr("0x2a")](tr("0x3c"),r(tr("0x3c"))),n[tr("0x2a")](tr("0x23"),x("splitListItemAfter")),n[tr("0x2a")](tr("0x44"),x("splitListItemBefore")),n[tr("0x35")].registerElementLabel((function(e){const n=!t[tr("0x0")].schema[tr("0x29")](e),o=e[tr("0x20")],s=e[tr("0x34")],r=e[tr("0x3d")]("listItemId"),i=!o||o[tr("0x3d")](tr("0x48"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x40"),t))),n._descriptionFactory[tr("0xf")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x5")]){case tr("0x28"):r=n[tr("0x1e")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x26"),i&&(o=tr("0x41")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x3f")))};break;case tr("0x3"):r=n[tr("0x1e")][0][tr("0x3b")],i=a(n[tr("0x5")]),o=r?tr("0xa"):"*Format:* remove from %0",i&&(o=tr("0x41")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x1")))};break;case tr("0x42"):o="*Indent:* %0",s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x40")))};break;case tr("0x3c"):o=function(t){const e=t[tr("0x4")]();let n=e[tr("0x11")][tr("0x12")];for(;n&&e[tr("0x2e")](n);){if(n[tr("0x3d")]("listIndent")>0)return!1;n=n[tr("0x34")]}return!0}(t)?Yo(e,tr("0x26"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x11")][tr("0x12")][tr("0x3d")](tr("0x17"))[tr("0x1f")]()+tr("0x7"))):Yo(e,tr("0x32"),Yo(e,tr("0x40"))),s={type:tr("0x31"),content:o};break;case tr("0x9"):case tr("0x33"):!1===n[tr("0x13")]&&(o=tr("0x8"),s={type:tr("0x49"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x1b")][tr("0x2d")](tr("0x6"),tr("0x3a"),tr("0xe"),(function(e,n){const o=[];for(let n of e)n[tr("0x11")][tr("0x12")]===n[tr("0xc")].parent&&(n=t[tr("0x0")].createRange(t[tr("0x0")][tr("0x37")](n[tr("0x11")][tr("0x12")],0))),o[tr("0x24")](n);t[tr("0x0")][tr("0x10")]((e=>{const s=t.model[tr("0x3e")][tr("0x15")],r=Array[tr("0x16")](s.getRanges()).map((t=>i.LiveRange[tr("0x19")](t)));e[tr("0xb")](o),t[tr("0x46")][tr("0x22")](n[tr("0x5")]).refresh(),n[tr("0x1e")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x36")](n[tr("0x5")],...n[tr("0x1e")]),e[tr("0xb")](r);for(const t of r)t[tr("0x21")]()}))}))}}var nr=n(331);const or=["enter","requires","markerName","removeMarker:suggestion:insertion","fire","showSuggestionHighlights","writer","remove","editing","markInsertion","detach","bind","options","split","end","editor","high","enableCommand","nextSibling","hasClass","fromRange","addMarker:suggestion:insertion","markerNameToElements","get","model","setSelection","afterExecute","ck-suggestion-marker-split","getFirstRange","init","createRange","data","createPositionAt","downcastDispatcher","mapper","unbindElementFromMarkerName","selection","parent"];var sr,rr;sr=or,rr=296,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("0x9")](){return[nr.Enter]}[ir("0x25")](){const t=this[ir("0x17")],e=t.plugins[ir("0x1f")]("TrackChangesEditing"),n=t.commands[ir("0x1f")](ir("0x8"));e[ir("0x19")](ir("0x8"),(()=>{t[ir("0x20")].change((o=>{const s=t[ir("0x20")].document[ir("0x6")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x1c")](s[ir("0x24")]());if(n.enterBlock(o)){const n=t[ir("0x20")][ir("0x2")](r[ir("0x7")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0x11")](s)}else o[ir("0x21")](o[ir("0x0")](x[ir("0x16")]));x[ir("0x12")](),n[ir("0xc")](ir("0x22"),{writer:o})}))})),t[ir("0x10")][ir("0x3")].on(ir("0x1d"),hs(t,ir("0x15")),{priority:ir("0x18")}),t[ir("0x10")][ir("0x3")].on(ir("0xb"),((t,e,n)=>{const o=n.mapper[ir("0x1e")](e.markerName);if(o)for(const t of o)t[ir("0x1b")](ir("0x23"))&&(n[ir("0x4")][ir("0x5")](t,e[ir("0xa")]),n[ir("0xe")][ir("0xf")](t))}),{priority:ir("0x18")}),t[ir("0x1")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x14")][ir("0xd")]&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0x13")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["replace","findByTextCallback","bind","afterInit","plugins","replaceAll","string","model","getIntersection","editor","end","enableCommand","FindAndReplaceUtils","TrackChangesEditing","findNext","start","item","has","getMarkersGroup","createPositionAt","markers","handleFindCommand","_isInDeletionRange","findPrevious","getRange","get","find"];var cr,lr;cr=ar,lr=134,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x4")](){if(!this[ur("0xa")][ur("0x5")][ur("0x12")]("FindAndReplaceEditing"))return;const t=this[ur("0xa")][ur("0x5")][ur("0x1a")](ur("0xe"));t[ur("0xc")](ur("0x0"),this[ur("0x16")][ur("0x3")](this)),t[ur("0xc")](ur("0xf")),t.enableCommand(ur("0x18")),t[ur("0xc")](ur("0x1")),t[ur("0xc")](ur("0x6"))}handleFindCommand(t,e,n={}){const o=this[ur("0xa")][ur("0x5")].get(ur("0xd"));void 0!==n&&t((t=>(ur("0x7")==typeof e?o[ur("0x2")](e,n):e)(t).filter((e=>!1===this[ur("0x17")](e,t[ur("0x11")])))),n)}[ur("0x17")](t,e){const n=this.editor[ur("0x8")].createRange(this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0x10")]),this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0xb")]));for(const t of this[ur("0xa")][ur("0x8")][ur("0x15")][ur("0x13")]("suggestion:deletion"))if(null!==n[ur("0x9")](t[ur("0x19")]()))return!0;return!1}}const gr=["document","*Reset font color*","*Set font background color:* %0","fontColor","locale","config","get","_enableCommand","fontFamily","FontSize","find","FontSizeEditing","*Set font family:* %0","value","*Reset font background color*","FontFamilyEditing","*Reset font family*","TrackChangesEditing","toLowerCase","fontSize.options","*Set font color:* %0","markInlineFormat","from","trim","fontSize","commandName","format","fontBackgroundColor.colors","normalizeSizeOptions","commandParams","_descriptionFactory","title","afterInit","model","registerDescriptionCallback","getRanges","enableCommand","plugins","editor","FontColorEditing","fontBackgroundColor","fontColor.colors","label"];var mr,fr;mr=gr,fr=418,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x17"),commandName:hr("0x24")},{pluginName:hr("0x1b"),commandName:hr("0x14")},{pluginName:hr("0x8"),commandName:hr("0xf")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1")](){const t=this.editor[hr("0x10")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x7")][hr("0x6")].has(t)&&this[hr("0x13")](e);this[hr("0x7")].plugins[hr("0x12")](hr("0x1d"))[hr("0x2a")][hr("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=n(this[hr("0x7")].plugins[hr("0x12")](hr("0x15"))[hr("0x28")](this[hr("0x7")][hr("0x11")].get(hr("0x1f")))[hr("0x16")]((t=>t[hr("0x2")]==e))[hr("0x0")]).toLowerCase();return{type:hr("0x26"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x14")==o.commandName){const e=o[hr("0x29")][0].value;return e?{type:hr("0x26"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x1c"))}}if("fontColor"==o.commandName){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")].config.get(hr("0xa")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0x20"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,hr("0xd"))}}if(hr("0x9")==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")][hr("0x11")].get(hr("0x27")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0xe"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1a"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0x6")][hr("0x12")](hr("0x1d"))[hr("0x5")](t,((n,o={})=>{const s=e[hr("0x2")][hr("0xc")].selection,r=o.value;s.isCollapsed?n(o):e.model.change((()=>{const n=Array[hr("0x22")](s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x2")]);for(const o of n)e[hr("0x6")].get(hr("0x1d"))[hr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["config","get","enableCommand","from","selection","length","join","modifySelection","_descriptionFactory","fontBackgroundColor","*Set format to:* %0","fontSize.options","find","normalizeSizeOptions","getSelectedBlocks","commandParams","copyFormat","slice","word","plugins","pasteFormat","charAt","title","format","toUpperCase","toLowerCase","getRanges","fontColor.colors","FontSize","label","registerDescriptionCallback","fontColor","change","afterInit","isBlock","schema","*Remove all formatting*","model","createSelection","keys","document","getAttributes","markInlineFormat","isCollapsed","fontSize","getAttributeProperties","boolean","TrackChangesEditing","getFirstPosition","forward","isFormatting","commands"];var _r,Tr;_r=Er,Tr=166,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x17")](){const t=this.editor,n=t[Cr("0x1b")],o=n[Cr("0x1e")][Cr("0x2e")],s=t[Cr("0x9")][Cr("0x2b")](Cr("0x25")),r=t.locale,i=t.commands[Cr("0x2b")](Cr("0x6")),x=t[Cr("0x29")][Cr("0x2b")](Cr("0xa"));i&&x&&(s[Cr("0x2c")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x16")]((()=>{const t=Array[Cr("0x2d")](o[Cr("0x10")]()),r=o[Cr("0x21")]?[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("0x1f")]()){const t=e[Cr("0x23")](n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e.getItems())!n[Cr("0x18")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x19")]))||0!==Object[Cr("0x1d")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x20")](t,{commandName:Cr("0xa"),commandParams:[i]})}))})),s[Cr("0x32")][Cr("0x14")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0xd"),content:Yo(r,Cr("0x0"),e[Cr("0x30")](", "))}:{type:Cr("0xd"),content:Yo(r,Cr("0x1a"))}}})),t[Cr("0x9")].get("TrackChangesEditing")[Cr("0x2c")](Cr("0x6")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:Cr("0x8"),direction:"backward"});const o=n[Cr("0x26")]();t[Cr("0x31")](n,{unit:Cr("0x8"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Cr("0x30")](" "),i=o(r[Cr("0xb")](0)[Cr("0xe")]()+r[Cr("0x7")](1))[Cr("0xf")]();if(Cr("0x24")==typeof n)return i;if(Cr("0x15")===e||Cr("0x33")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2a")][Cr("0x2b")](Cr("0x11"))).find((t=>t[Cr("0x1b")]==n));return i+" ("+(e?o(e[Cr("0x13")])[Cr("0xf")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2b")](Cr("0x12"))[Cr("0x3")](t[Cr("0x2a")][Cr("0x2b")](Cr("0x1")))[Cr("0x2")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0xc")])[Cr("0xf")]():n)+")"}return i+" ("+n+")"}const Rr=["has","_descriptionFactory","from","locale","commandName","registerElementLabel","commandParams","value","blockName","config","editor","ELEMENT_HEADING","get","title","enableCommand","getSelectedBlocks","format","ELEMENT_HEADING_CUSTOM","selection","plugins","heading","*Change to:* %0","filter","markBlockFormat","model","registerDescriptionCallback","document","find","formatBlock"];var vr,Ir;vr=Rr,Ir=302,function(t){for(;--t;)vr.push(vr.shift())}(++Ir);const Sr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Sr("0x1b")],e=t[Sr("0x14")],n=t[Sr("0x1a")][Sr("0x0")]("heading.options");if(!t.plugins[Sr("0x11")]("HeadingEditing"))return;const o=t[Sr("0x7")][Sr("0x0")]("TrackChangesEditing");o[Sr("0x2")](Sr("0x8"),((e,n)=>{const s=n[Sr("0x18")],r=Array[Sr("0x13")](this.editor.model[Sr("0xe")][Sr("0x6")][Sr("0x3")]())[Sr("0xa")]((t=>{return e=t,n=s,(o=this[Sr("0x1b")][Sr("0xc")].schema).checkChild(e.parent,n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Sr("0xc")].change((()=>{for(const t of r)o[Sr("0xb")](t,{commandName:"heading",commandParams:[n],formatGroupId:Sr("0x19")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0xc")]&&o[Sr("0x12")][Sr("0x16")](t[Sr("0xc")],(e=>{const n=Nr(t[Sr("0xc")]);return null!==n?s(e,n):r(e,t[Sr("0x1")])}));function s(t,n){return Yo(e,Sr("0x1c"),[t,n])}function r(t,n){return Yo(e,Sr("0x5"),[t,n])}o[Sr("0x12")][Sr("0xd")]((t=>{const{type:o,data:i}=t;if(Sr("0x10")==o&&i&&Sr("0x8")==i[Sr("0x15")]){const t=i[Sr("0x17")][0][Sr("0x18")],o=Nr(t);if(null!==o)return{type:Sr("0x4"),content:Yo(e,Sr("0x9"),s(1,o))};const x=n[Sr("0xf")]((e=>e[Sr("0xc")]===t))[Sr("0x1")];return{type:Sr("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["highlight.options","config","getAttribute","editor","commandName","toLowerCase","*Set highlight:* %0","HighlightEditing","item","_descriptionFactory","highlight","model","*Remove highlight*","afterInit","registerDescriptionCallback","push","format","TrackChangesEditing","has","isCollapsed","get","value","locale","getLastMatchingPosition","backward","plugins","FORMAT_HIGHLIGHT","markInlineFormat","formatInline","change","color","title","document","getFirstPosition","getRanges","createRange","enableCommand"];var Mr,Or;Mr=wr,Or=106,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x12")](){const t=this[Fr("0x8")];if(!t.plugins[Fr("0x17")](Fr("0xc")))return;const e=t[Fr("0x1e")][Fr("0x19")](Fr("0x16"));e[Fr("0x4")](Fr("0xf"),((n,o={})=>{const s=t[Fr("0x10")][Fr("0x0")].selection,r=s[Fr("0x7")]("highlight");let i=o[Fr("0x1a")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0xd")][Fr("0x7")](Fr("0xf"))===r,o=e[Fr("0x1c")](n,{direction:Fr("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x10")][Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x2")]())i?x[Fr("0x14")](e):x.push(...ms(Fr("0xf"),e,t.model));t[Fr("0x10")][Fr("0x22")]((()=>{for(const t of x)e[Fr("0x20")](t,{commandName:Fr("0xf"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0xe")][Fr("0x13")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0xf")==s[Fr("0x9")]){const e=n.t,o=s.commandParams[0][Fr("0x1a")];if(o){const s=t[Fr("0x6")][Fr("0x19")](Fr("0x5")).find((t=>t[Fr("0x10")]==o)),r=e(s[Fr("0x24")])[Fr("0xa")]();return{type:Fr("0x15"),content:Yo(n,Fr("0xb"),r),color:{value:s[Fr("0x23")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,Fr("0x11"),Yo(n,Fr("0x1f")))}}}))}}const Dr=["for","ELEMENT_HORIZONTAL_LINE","get","editor","enableCommand","afterInit","elementToStructure","_descriptionFactory","createContainerElement","locale","TrackChangesEditing","horizontalLine","dataDowncast","plugins","registerElementLabel","createEmptyElement"];var Br,jr;Br=Dr,jr=233,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this[Ur("0xa")];if(!t[Ur("0x4")].has("HorizontalLineEditing"))return;t[Ur("0x4")][Ur("0x9")](Ur("0x1"))[Ur("0xb")](Ur("0x2"));const e=t[Ur("0x4")][Ur("0x9")](Ur("0x1")),n=t[Ur("0x0")];e[Ur("0xe")][Ur("0x5")](Ur("0x2"),(t=>Yo(n,Ur("0x8"),t))),t.conversion[Ur("0x7")](Ur("0x3"))[Ur("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x6")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["format","value","commandName","plugins","locale","enableCommand","selection","ELEMENT_HTML_EMBED","HtmlEmbed","getAttribute","registerDescriptionCallback","has","rawHtmlApi","editing","_descriptionFactory","getCustomProperty","view","change","htmlEmbed","get","afterInit","element","TrackChangesEditing","model","document","rawHtml","getSelectedElement","cancel","registerElementLabel"];var zr,Wr;zr=Hr,Wr=188,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x12")][Vr("0x1a")](Vr("0x17")))return;const e=t[Vr("0x12")][Vr("0x5")](Vr("0x8")),n=t[Vr("0x13")],o=t[Vr("0x1c")][Vr("0x2")][Vr("0xa")][Vr("0x15")];e._descriptionFactory[Vr("0xe")](Vr("0xb"),(t=>Yo(n,Vr("0x16"),t))),t[Vr("0x12")][Vr("0x5")](Vr("0x8"))[Vr("0x14")](Vr("0x4"),((n,s)=>{const r=t[Vr("0x9")],i=r.document[Vr("0x15")];r[Vr("0x3")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x7"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x18")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0x1b"))[Vr("0xd")]())}))})),e[Vr("0x0")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x11")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xf"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["convertBlockImageToInline","previous","ImageUtils","format","width","ImageEditing","filter","caption","backward","from","author","registerDescriptionCallback","detach","toPrevious","isEqual","getFirstRange","markBlockFormat","ImageUploadEditing","ImageInlineEditing","imageTypeInline","registerPostFixer","discardSuggestion","resizeImage","end","findIndex","deletion","*Remove image text alternative*","markInlineFormat","FORMAT_SIDE_IMAGE","isOwn","imageStylePostApply","head","formatInline","ELEMENT_IMAGE","insertImage","fromPosition","hasSuggestion","getAttribute","imageTypeBlock","refresh","getCaptionFromImageModelElement","newValue","isBefore","imageCaption","length","Block image to inline image","start","discard","editor","schema","selection","*Set image text alternative:* %0","Inline image to block image","type","getSuggestionCallback","has","side","getClosestSelectedImageElement","createRange","change","getSuggestion","_suggestionFactory","_descriptionFactory","commandName","join","commandParams","get","_splitMarkerName","markInsertion","Users","value","name","plugins","document","next","imageStylePreApply","ImageStyleEditing","commandReversedParams","imageBlock","imageStyle","ELEMENT_CAPTION","isBlockImage","ELEMENT_INLINE_IMAGE","newRange","element","getNearestSelectionRange","_findSuggestions","isIntersecting","getChangedMarkers","commands","convertInlineImageToBlock","toggleImageCaption","chain","suggestion","insertion","alt","getSuggestions","forceDefaultExecution","toLowerCase","isInContent","subType","markDeletion","imageTextAlternative","registerElementLabel","shouldConvertImageType","formatBlock","createRangeOn","getContainedElement","ImageResize","*Set image width:* %0","accept","isInlineImage","model","registerCustomCallback","enableCommand"];var Xr,$r;Xr=qr,$r=469,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x27")];if(!t[Jr("0x3f")][Jr("0x2e")](Jr("0x6f")))return;const n=t[Jr("0x3f")].get("TrackChangesEditing"),o=t.plugins[Jr("0x39")](Jr("0x6c")),s={},r=t.locale;if(n.enableCommand(Jr("0x19")),n._descriptionFactory[Jr("0x5e")](Jr("0x45"),(t=>Yo(r,Jr("0x18"),t))),n[Jr("0x35")][Jr("0x5e")]("imageInline",(t=>Yo(r,Jr("0x49"),t))),n._descriptionFactory[Jr("0x5e")](Jr("0x71"),(()=>Yo(r,Jr("0x47")))),t[Jr("0x3f")].has(Jr("0x8"))&&n[Jr("0x69")]("uploadImage"),t[Jr("0x3f")][Jr("0x2e")]("ImageBlockEditing")&&t[Jr("0x3f")][Jr("0x2e")](Jr("0x9"))&&(n[Jr("0x69")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document[Jr("0x29")]);t.model[Jr("0x32")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xa"),commandParams:[s]},[],Jr("0x6a"))}))})),n[Jr("0x69")](Jr("0x1d"),((e,s)=>{t.model[Jr("0x32")]((r=>{let x=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),a=r[Jr("0x61")](x);const c=i.LivePosition[Jr("0x1a")](a.start,Jr("0x4")),l=i.LivePosition[Jr("0x1a")](a.end,"toNext");n[Jr("0x58")]((()=>e(s))),x=o[Jr("0x30")](t.model.document[Jr("0x29")]),a=r[Jr("0x61")](x);const u=r[Jr("0x31")](c,l);c[Jr("0x3")](),l.detach(),n[Jr("0x7")](x,{commandName:Jr("0xa"),commandParams:[]},[],Jr("0x51")),u[Jr("0x25")][Jr("0x21")](a[Jr("0x25")])&&n[Jr("0x3b")](r.createRange(u[Jr("0x25")],a.start),Jr("0x51")),a[Jr("0xe")].isBefore(u.end)&&n.markInsertion(r[Jr("0x31")](a[Jr("0xe")],u[Jr("0xe")]),Jr("0x51"))}))})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),"discard",n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"","accept")),n[Jr("0x34")].registerCustomCallback("insertion",Jr("0x51"),Jr("0x37"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x55"),"convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x34")][Jr("0x2d")]("insertion","",Jr("0x26"));let s=e.start,r=e[Jr("0xe")];const i=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](s,Jr("0x72")),x=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](r,"forward");i.isCollapsed&&(s=i.start),x.isCollapsed&&(r=x[Jr("0xe")]),o([t[Jr("0x67")].createRange(s,r)])})),n[Jr("0x34")][Jr("0x68")]("formatBlock",Jr("0x51"),Jr("0x53"),c),n._suggestionFactory[Jr("0x68")]("insertion","convertInlineImageToBlock",Jr("0x53"),c)),t[Jr("0x3f")].has("ImageCaptionEditing")&&(n.enableCommand(Jr("0x52"),((e,s)=>{const r=t[Jr("0x3f")][Jr("0x39")]("ImageCaptionUtils");let i=o[Jr("0x30")](t.model[Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i);t[Jr("0x67")][Jr("0x32")]((()=>{if(x)return void n[Jr("0x5c")](t.model[Jr("0x61")](x));const a=o[Jr("0x48")](i);e(s),i=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i),n[Jr("0x3b")](t[Jr("0x67")][Jr("0x61")](x),a?null:Jr("0x22"))}))})),n._suggestionFactory[Jr("0x68")](Jr("0x55"),"imageCaption",Jr("0x53"),c)),t.plugins[Jr("0x2e")](Jr("0x43"))){n.enableCommand(Jr("0x46"),((s,r)=>{const i=t[Jr("0x3f")][Jr("0x39")](Jr("0x3c")).me,x=t[Jr("0x50")][Jr("0x39")](Jr("0x46"));let a=o[Jr("0x30")](t.model[Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),l=x[Jr("0x3d")];if(l==r.value)return;const u={commandName:Jr("0x46"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x67")][Jr("0x32")]((()=>{if(n[Jr("0x57")]().filter((t=>t[Jr("0x5a")]&&i==t[Jr("0x1")]&&(Jr("0x60")==t[Jr("0x2c")]||Jr("0x17")==t[Jr("0x2c")])&&(Jr("0x42")==t[Jr("0x5b")]||Jr("0x15")==t[Jr("0x5b")])&&t[Jr("0x6")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x16")]))),a=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),x[Jr("0x1e")](),t[Jr("0x50")][Jr("0x39")](Jr("0xa"))[Jr("0x1e")](),t[Jr("0x50")].get(Jr("0x1d"))[Jr("0x1e")](),l=x.value,l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x5f")](r[Jr("0x3d")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),void n[Jr("0x7")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x48")](a)?n[Jr("0x7")](a,u,[],Jr("0x15")):n[Jr("0x12")](c,u,Jr("0x15")))}))}));for(const e of t.plugins.get(Jr("0x43")).normalizedStyles)s[e[Jr("0x3e")]]=e.title[Jr("0x59")]();n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x42"),"join",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),"imageStylePostApply","join",(()=>{})),n[Jr("0x34")].registerCustomCallback("formatInline","imageStylePostApply",Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),Jr("0x42"),Jr("0x65"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x60"),"imageStylePreApply",Jr("0x26"),((t,e)=>{n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"",Jr("0x65"))(t,{commandName:e[Jr("0x36")],commandParams:e[Jr("0x44")]})})),n._suggestionFactory[Jr("0x68")]("formatBlock",Jr("0x42"),Jr("0x53"),c)}const x=[{type:"formatBlock",subType:Jr("0x42")},{type:"insertion",subType:Jr("0x22")},{type:Jr("0x60"),subType:Jr("0x51")},{type:Jr("0x55"),subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0xf")]((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t.subType==n)),r=x[Jr("0xf")]((({type:t,subType:n})=>e[Jr("0x2c")]==t&&e[Jr("0x5b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x6")]();if((0==s||1==s)&&2==r&&i[Jr("0x4e")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x4d")](i,"insertion")[Jr("0x70")]((({suggestion:t,meta:e})=>e[Jr("0x14")]&&Jr("0x51")==t[Jr("0x5b")]));if(t[Jr("0x23")]>1&&a[Jr("0xe")][Jr("0x5")](i[Jr("0x25")]))return!0;if(1==t[Jr("0x23")]&&(i[Jr("0x25")].isEqual(a[Jr("0xe")])||i[Jr("0xe")][Jr("0x5")](a[Jr("0x25")])))return!0}if(3==s&&3==r&&i[Jr("0x25")].isBefore(a[Jr("0x25")])){const t=i[Jr("0xe")].nodeAfter,e=a[Jr("0x25")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x67")][Jr("0x40")][Jr("0xb")]((()=>{let e=!1;const s=Array[Jr("0x0")](t[Jr("0x67")].document.differ[Jr("0x4f")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x3a")](t);if(Jr("0x54")==s&&n[Jr("0x1b")](a)){if("formatBlock"==i&&(Jr("0x42")==x||Jr("0x15")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t[Jr("0x6")]()[Jr("0x62")]();if(o.isBlockImage(s))continue;n[Jr("0xc")](t),e=!0}}if("insertion"==i&&Jr("0x22")==x&&!r[Jr("0x4a")]){const t=n[Jr("0x33")](a);t[Jr("0x41")]&&t[Jr("0x41")][Jr("0x5a")]&&(n[Jr("0xc")](t[Jr("0x41")]),e=!0)}}}return e})),t[Jr("0x3f")][Jr("0x2e")](Jr("0x63"))&&n[Jr("0x69")](Jr("0xd"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document.selection);r[Jr("0x1c")]("width")!=s[Jr("0x6e")]&&t[Jr("0x67")][Jr("0x32")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0xd"),commandParams:[s]})}))})),t[Jr("0x3f")][Jr("0x2e")]("ImageTextAlternativeEditing")&&n[Jr("0x69")](Jr("0x5d"),((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document.selection);(r.hasAttribute(Jr("0x56"))?r.getAttribute("alt"):"")!=s[Jr("0x20")]&&t[Jr("0x67")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x5d"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x2")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t[Jr("0x5b")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x35")][Jr("0x2")]((t=>{if(Jr("0x55")==t[Jr("0x2c")]||Jr("0x10")==t[Jr("0x2c")]){const e=t[Jr("0x62")]();if(e&&e.is(Jr("0x4b"),Jr("0x71")))return{type:"insertion"==t[Jr("0x2c")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x2")]((t=>Jr("0x60")==t[Jr("0x2c")]&&Jr("0x51")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x2b")}:Jr("0x60")==t[Jr("0x2c")]&&Jr("0x6a")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x24")}:void 0)),n[Jr("0x35")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x46")==e[Jr("0x36")]){const t=e.commandParams[0][Jr("0x3d")];return n=Jr("0x2f")===t?Yo(r,Jr("0x13")):s[t]||t,{type:Jr("0x6d"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5d")==e[Jr("0x36")]){const t=e[Jr("0x38")][0][Jr("0x20")];return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0x6d"),content:Yo(r,Jr("0x11"))}}if(Jr("0xd")==e[Jr("0x36")]){const t=e.commandParams[0].width;return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x64"),t)}:{type:Jr("0x6d"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","TrackChangesEditing","handleSuggestionDescription","handleReplaceImageCommand","_descriptionFactory","source","model","data","editor","replaceImageSource","_suggestionFactory","enableCommand","get","format","change","discard","getSelectedElement","has","getSuggestionCallback","plugins","ImageEditing","getAttribute","document","registerDescriptionCallback","getSuggestions","accept","formatBlock","author","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=108,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x10")].plugins[ei("0x19")](ei("0x1c")))return;const t=this[ei("0x10")][ei("0x1b")][ei("0x14")](ei("0x9"));t[ei("0x13")](ei("0x11"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")].registerCustomCallback(ei("0x5"),ei("0x11"),ei("0x4"),t[ei("0x12")][ei("0x1a")](ei("0x5"),null,ei("0x17"))),t[ei("0x12")][ei("0x7")](ei("0x5"),"replaceImageSource",ei("0x17"),t[ei("0x12")][ei("0x1a")]("formatBlock",null,ei("0x4"))),t[ei("0xc")][ei("0x2")]((t=>this[ei("0xa")](t)))}[ei("0xb")](t,e){const n=this[ei("0x10")].plugins[ei("0x14")](ei("0x9")),o=this[ei("0x10")][ei("0xe")][ei("0x1")].selection[ei("0x18")]();this[ei("0x10")][ei("0xe")][ei("0x16")]((()=>{let s=o[ei("0x0")]("src");const r=this[ei("0x10")][ei("0x1b")][ei("0x14")]("Users").me;for(const t of n[ei("0x3")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x11")===t.subType&&e===o){t[ei("0x6")]!==r&&t[ei("0x17")](),s=t[ei("0xf")].commandParams[0][ei("0xd")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0xa")](t){const{data:e}=t;if(e&&ei("0x11")===e.commandName){const t="*Format:* replace image URL";return{type:ei("0x15"),content:Yo(this[ei("0x10")][ei("0x8")],t)}}}}const oi=["collaboration_features","TrackChangesEditing","dataInsert","track_changes","trackChanges","execute","high","Users","importWord","get","_trackChangesExecuted","lowest","value","_trackChangesValueDuringImport","enableCommand","editor","forEach","_handleImportedData","afterInit","plugins","commands"];var si,ri;si=oi,ri=412,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("0x0")]=!1,this._trackChangesExecuted=!1}[ii("0x5")](){const t=this[ii("0x2")],e=t[ii("0x7")][ii("0x11")]("importWord"),n=t[ii("0x7")][ii("0x11")]("trackChanges");e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x0")]=n[ii("0x14")],e[ii("0x8")][ii("0xb")]=!this[ii("0x0")]}),{priority:ii("0xe")}),this.listenTo(e,ii("0xa"),this[ii("0x4")].bind(this)),this.listenTo(e,ii("0xa"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0x12")]=!1)}),{priority:ii("0x13")}),t[ii("0x6")].get(ii("0x9"))[ii("0x1")](ii("0x10")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x7")][ii("0x11")](ii("0xc")),s=o.value;this[ii("0x0")]!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x6")].get(ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x10")}}};this.editor[ii("0x6")][ii("0x11")](ii("0x9"))._setSuggestionData(s)}))}}const ai=["schema","model","outdentBlock","outdent","from","registerDescriptionCallback","filter","blockIndent","commandName","indent","locale","IndentBlock","getItemLabel","has","getSelectedBlocks","selection","plugins","change","format","editor","_descriptionFactory","*Indent:* %0","document","indentBlock","enableCommand","afterInit","*Outdent:* %0"];var ci,li;ci=ai,li=479,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x5")](){const t=this.editor,e=t[ui("0x17")].get("TrackChangesEditing");t[ui("0x17")][ui("0x14")]("IndentEditing")&&(e[ui("0x4")](ui("0x10")),e.enableCommand(ui("0xa")));const n=t[ui("0x11")];if(t[ui("0x17")][ui("0x14")](ui("0x12"))){for(const n of["indentBlock",ui("0x9")])e[ui("0x4")](n,(()=>{const o=Array[ui("0xb")](this[ui("0x1a")].model[ui("0x2")][ui("0x16")][ui("0x15")]())[ui("0xd")]((t=>this[ui("0x1a")][ui("0x8")][ui("0x7")].checkAttribute(t,ui("0xe"))));t[ui("0x8")][ui("0x18")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x3")})}))}));e._descriptionFactory[ui("0xc")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x9")!=o[ui("0xf")])return;const s=t.getItems()[0],r=e[ui("0x0")][ui("0x13")](s);return"indentBlock"==o[ui("0xf")]?{type:ui("0x19"),content:Yo(n,ui("0x1"),r)}:"outdentBlock"==o[ui("0xf")]?{type:"format",content:Yo(n,ui("0x6"),r)}:void 0}))}}}var gi,mi,fi=["editor","TrackChangesEditing","get","plugins","input","enableCommand"];gi=fi,mi=385,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}init(){this[hi("0x5")][hi("0x2")][hi("0x1")](hi("0x0"))[hi("0x4")](hi("0x3"))}}const bi=["afterInit","getAttribute","getFirstRange","_descriptionFactory","TrackChangesEditing","plugins","linkHref","enableCommand","isCollapsed","markInlineFormat","LinkEditing","getRanges","model","*Remove link*","unlink","editor","link","commandName","document","change","get","*Set link:* %0","commandParams","format","from"];var Ei,_i;Ei=bi,_i=310,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xf")](){const t=this[Ti("0x5")];if(!t[Ti("0x14")].has(Ti("0x0")))return;const e=t[Ti("0x14")][Ti("0xa")](Ti("0x13"));e[Ti("0x16")](Ti("0x6"),((n,o)=>{const s=t[Ti("0x2")].document.selection;let r=[];if(s[Ti("0x17")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x15"),s[Ti("0x10")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array[Ti("0xe")](s[Ti("0x1")]());t[Ti("0x2")][Ti("0x9")]((()=>{for(const t of r)e[Ti("0x18")](t,{commandName:Ti("0x6"),commandParams:[o]})}))})),e[Ti("0x16")]("unlink",(()=>{const n=this.editor[Ti("0x2")],o=n[Ti("0x8")].selection;n[Ti("0x9")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x15"),o.getAttribute(Ti("0x15")),t.model)]:ms(Ti("0x15"),o[Ti("0x11")](),t[Ti("0x2")]);for(const t of n)e[Ti("0x18")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x6")==n[Ti("0x7")]){const t=n[Ti("0xc")][0];return{type:"format",content:Yo(o,Ti("0xb"),'"'+t+'"')}}return Ti("0x4")==n[Ti("0x7")]?{type:Ti("0xd"),content:Yo(o,Ti("0x3"))}:void 0}}))}}const yi=["previousSibling","TodoListEditing","*Uncheck item*","markBlockFormat","*Indent:* %0","*Change to:* %0","*Outdent:* %0","numbered","value","numberedList","_selectedElements","length","commandParams","listType","getSelectedBlocks","blockName","editor","model","execute","outdentList","TrackChangesEditing","document","listItem","selection","slice","registerDescriptionCallback","from","ListEditing","registerElementLabel","ELEMENT_BULLETED_LIST","_descriptionFactory","listIndent","replace","checkTodoList","afterInit","schema","format","change","List","getAttribute","get","filter","element","createPositionAt","paragraph","ELEMENT_LIST_ITEM","commandName","before","indentList","todoList","bulleted","*Check item*","push","enableCommand","plugins","name","locale","forceValue","nextSibling","add","todoListChecked","has"];var ki,Ai;ki=yi,Ai=402,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return yi[t-=0]};class vi extends t.Plugin{[Ri("0x4")](){const t=this[Ri("0x30")],e=t[Ri("0x1a")];if(!t.plugins[Ri("0x1f")](Ri("0x3b")))return;const n=t[Ri("0x18")][Ri("0xa")](Ri("0x34")),o=t.plugins[Ri("0x1f")](Ri("0x21"));function s(e){return()=>{const o=t[Ri("0x31")][Ri("0x35")][Ri("0x37")],s=t.commands.get(e);if(s[Ri("0x28")])return void t[Ri("0x32")](Ri("0xe"),{});const r=e[Ri("0x38")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n).checkChild(e.parent,Ri("0x36"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(Ri("0xc"),Ri("0x36"))||t[Ri("0x9")](Ri("0x2d"))!=e));const s=new Set;for(const t of o)t.is(Ri("0xc"),Ri("0x36"))?s.add(Ii(t)):s.add(t);return Array[Ri("0x3a")](s)}(o[Ri("0x2e")](),r,t[Ri("0x31")][Ri("0x5")]);t[Ri("0x31")][Ri("0x7")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ri("0x28")]}],formatGroupId:Ri("0x2f")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ri("0x3a")](t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[Ri("0x38")](0,n)),e}(t[Ri("0x31")].document[Ri("0x37")][Ri("0x2e")]()),s=t.model.createRange(t[Ri("0x31")][Ri("0xd")](o[0],Ri("0x11")),t[Ri("0x31")][Ri("0xd")](o[o[Ri("0x2b")]-1],"end"));t[Ri("0x31")][Ri("0x7")]((()=>{n[Ri("0x23")](s,{commandName:e,commandParams:[],formatGroupId:Ri("0x1")},function(t){const e=new Set;for(const n of t){let t=n[Ri("0x1c")];for(;t&&t[Ri("0x9")]("listIndent")>n[Ri("0x9")](Ri("0x1"));)e[Ri("0x1d")](t),t=t[Ri("0x1c")]}return Array[Ri("0x3a")](e)}(o))}))}}n[Ri("0x17")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[Ri("0x17")](Ri("0x13"),s("todoList")),n.enableCommand(Ri("0x12"),r(Ri("0x12"))),n[Ri("0x17")](Ri("0x33"),r(Ri("0x33"))),o&&n[Ri("0x17")](Ri("0x3"),(()=>{const e=t.commands[Ri("0xa")]("checkTodoList"),o=Array.from(e[Ri("0x2a")]);o[Ri("0xb")]((t=>t.getAttribute(Ri("0x1e"))!=e[Ri("0x28")])),t.model.change((()=>{for(const t of o)n[Ri("0x23")](t,{commandName:Ri("0x3"),commandParams:[{forceValue:!e[Ri("0x28")]}]})}))})),n[Ri("0x0")][Ri("0x3c")]("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Ri("0x0")][Ri("0x39")]((t=>{const{data:n}=t;if(n){if(Ri("0x29")==n.commandName||"bulletedList"==n.commandName||Ri("0x13")==n[Ri("0x10")])switch(n.commandName[Ri("0x2")](Ri("0x8"),"")){case Ri("0x14"):return o(Yo(e,Ri("0x3d")));case Ri("0x27"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ri("0x12")==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x24"),Yo(e,Ri("0xf")))};if("outdentList"==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x26"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ri("0x3")==n[Ri("0x10")])return n[Ri("0x2c")][0][Ri("0x1b")]?{type:Ri("0x6"),content:Yo(e,Ri("0x15"))}:{type:Ri("0x6"),content:Yo(e,Ri("0x22"))}}function o(t){return{type:Ri("0x6"),content:Yo(e,Ri("0x25"),t)}}}))}}function Ii(t){const e=t[Ri("0x9")](Ri("0x1"));if(0==e)return t;let n=t;for(;t[Ri("0x20")]&&t[Ri("0x20")].is(Ri("0xc"),Ri("0x36"));){const o=t[Ri("0x20")].getAttribute(Ri("0x1"));if(o==e)n=t[Ri("0x20")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(Ri("0xc"),Ri("0x36"))&&t[Ri("0x9")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ri("0x36")==n[Ri("0x19")]&&n.getAttribute(Ri("0x1"))==t[Ri("0x9")]("listIndent");)e[Ri("0x16")](n),n=n[Ri("0x1c")]}return e}const Li=["reversed","getListTypeFromListStyleType","*Format:* set order to reversed","handleDescriptions","editor","plugins","document","listStart","createPositionAt","flat","change","forward","get","_getSuggestionBlocksForListStyle","ListPropertiesEditing","unshift","startIndex","replace","createRange","ELEMENT_","listReversed","_getTranslationKeyForListStyle","bind","length","backward","listStyle","commandParams","listItem","model","*Format:* set order to regular","locale","markMultiRangeBlockFormat","selection","*Format:* set start index to %0","getAttribute","_getSuggestionBlocks","getSelectedBlocks","getFirstPosition","handleListStyleCommand","before","element","TrackChangesEditing","map","_descriptionFactory","handleListReversedCommand","getSiblingNodes","handleListStartCommand","from","getLastPosition","styles","_LIST_","numbered","toUpperCase","format","ListUtils","type","push","enableCommand"];var Ni,wi;Ni=Li,wi=195,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[Mi("0x29")].plugins.has(Mi("0x33")))return;const t=this.editor.config.get("list.properties"),e=this[Mi("0x29")][Mi("0x2a")][Mi("0x31")](Mi("0x14"));t[Mi("0x1c")]&&e.enableCommand(Mi("0x4"),this[Mi("0x11")].bind(this)),t[Mi("0x25")]&&e[Mi("0x24")]("listReversed",this[Mi("0x17")][Mi("0x1")](this)),t[Mi("0x35")]&&e[Mi("0x24")]("listStart",this[Mi("0x19")].bind(this)),e[Mi("0x16")].registerDescriptionCallback(this[Mi("0x28")][Mi("0x1")](this))}[Mi("0x11")](t,e={}){const n=this.editor[Mi("0x2a")][Mi("0x31")](Mi("0x14")),o=this[Mi("0x32")]();this[Mi("0x29")].model[Mi("0x2f")]((()=>{n[Mi("0xa")](o,{commandName:"listStyle",commandParams:[{type:e[Mi("0x22")]}],formatGroupId:"listStyle"})}))}[Mi("0x17")](t,e={}){const n=this.editor.plugins[Mi("0x31")](Mi("0x14")),o=this[Mi("0xe")]((t=>t.is("element","listItem")&&Mi("0x1e")===t[Mi("0xd")]("listType")));if(o.length<1)return;const s=o[Mi("0x15")]((t=>this[Mi("0x29")][Mi("0x7")][Mi("0x37")](this[Mi("0x29")][Mi("0x7")][Mi("0x2d")](t,Mi("0x12")),this[Mi("0x29")].model[Mi("0x2d")](t,0))));this[Mi("0x29")].model[Mi("0x2f")]((()=>{n[Mi("0xa")](s,{commandName:Mi("0x39"),commandParams:[{reversed:e[Mi("0x25")]}],formatGroupId:Mi("0x39")})}))}handleListStartCommand(t,e={}){const n=this[Mi("0x29")][Mi("0x2a")][Mi("0x31")]("TrackChangesEditing"),o=this[Mi("0xe")]((t=>t.is(Mi("0x13"),Mi("0x6"))&&"numbered"===t[Mi("0xd")]("listType")));if(o[Mi("0x2")]<1)return;const s=o[Mi("0x15")]((t=>this[Mi("0x29")][Mi("0x7")][Mi("0x37")](this[Mi("0x29")].model.createPositionAt(t,Mi("0x12")),this[Mi("0x29")][Mi("0x7")][Mi("0x2d")](t,0))));this[Mi("0x29")][Mi("0x7")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:Mi("0x2c")})}))}[Mi("0x28")](t){const e=this[Mi("0x29")][Mi("0x9")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:Mi("0x20"),content:Yo(e,o,Yo(e,this[Mi("0x0")](n[Mi("0x5")][0].type)))};break;case Mi("0x39"):o=n[Mi("0x5")][0][Mi("0x25")]?Mi("0x27"):Mi("0x8"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=Mi("0xc"),s={type:Mi("0x20"),content:Yo(e,o,n[Mi("0x5")][0][Mi("0x35")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Mi("0x29")][Mi("0x2a")][Mi("0x31")](Mi("0x21"));let r=Array.from(this[Mi("0x29")][Mi("0x7")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x13"),Mi("0x6")))&&r[Mi("0x34")](...s[Mi("0x18")](this[Mi("0x29")][Mi("0x7")].document[Mi("0xb")][Mi("0x10")](),Mi("0x3"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",Mi("0x6")))&&r[Mi("0x23")](...s[Mi("0x18")](this.editor[Mi("0x7")][Mi("0x2b")][Mi("0xb")][Mi("0x1b")](),Mi("0x30"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x29")][Mi("0x7")][Mi("0x2b")].selection[Mi("0x10")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Mi("0x13"),Mi("0x6")))&&(r=r.filter((t=>t.is(Mi("0x13"),Mi("0x6"))))),r}[Mi("0xe")](t){const e=this[Mi("0x29")].plugins.get(Mi("0x21"));let n=Array[Mi("0x1a")](this[Mi("0x29")][Mi("0x7")][Mi("0x2b")].selection[Mi("0xf")]()).filter(t).map((t=>{const n=this[Mi("0x29")][Mi("0x7")][Mi("0x2d")](t,0);return[...e[Mi("0x18")](n,Mi("0x3")),...e[Mi("0x18")](n,Mi("0x30"))]}))[Mi("0x2e")]();return n=[...new Set(n)],n}[Mi("0x0")](t){return Mi("0x38")+this[Mi("0x29")][Mi("0x2a")][Mi("0x31")]("ListUtils")[Mi("0x26")](t)[Mi("0x1f")]()+Mi("0x1d")+t.toUpperCase()[Mi("0x36")](/-/g,"_")}}const Fi=["editor","media","get","dataDowncast","MediaEmbedEditing","elementToElement","has","data","high","plugins","mediaEmbed","stop","registerElementLabel","locale","options","downcastDispatcher","ELEMENT_MEDIA","showSuggestionHighlights","conversion","div"];var Pi,Di;Pi=Fi,Di=417,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x3")];if(!t.plugins[Bi("0x9")](Bi("0x7")))return;const e=t[Bi("0xc")][Bi("0x5")]("TrackChangesEditing"),n=t[Bi("0x10")];e.enableCommand(Bi("0xd")),e._descriptionFactory[Bi("0xf")](Bi("0x4"),(t=>Yo(n,Bi("0x13"),t))),t[Bi("0x1")].for(Bi("0x6"))[Bi("0x8")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e.createEmptyElement(Bi("0x2"))},converterPriority:Bi("0xb")}),t[Bi("0xa")][Bi("0x12")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0x0")]&&t[Bi("0xe")]()}),{priority:Bi("0xb")})}}const Ui=["get","afterInit","mention","MentionEditing","enableCommand","plugins"];var Gi,Hi;Gi=Ui,Hi=367,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t[zi("0x4")].has(zi("0x2"))&&t.plugins[zi("0x5")]("TrackChangesEditing")[zi("0x3")](zi("0x1"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","plugins","_descriptionFactory","PageBreakEditing","enableCommand","has","get","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=205,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];if(!t[Xi("0x4")][Xi("0x8")](Xi("0x6")))return;t[Xi("0x4")][Xi("0x0")](Xi("0x1"))[Xi("0x7")]("pageBreak");const e=t[Xi("0x4")][Xi("0x0")](Xi("0x1")),n=t.locale;e[Xi("0x5")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["consume","isObject","nodeAfter","start","activeMarkers","blockName","has","writer","enableCommand","editing","format","afterInit","registerDescriptionCallback","getItemLabel","*Change to:* %0","getFirstRange","ck-suggestion-marker--active","editor","getSelectedBlocks","type","insertParagraph","checkChild","isLimit","filter","schema","data","parent","markerName","registerElementLabel","createUIElement","end","downcastDispatcher","span","selection","addClass","_descriptionFactory","name","showSuggestionHighlights","paragraph","markerRange","mapper","plugins","ck-suggestion-marker-split","$text","highest","isTouching","from","model","locale","insertion","get","TrackChangesEditing","consumable","isBlock","addMarker:suggestion:insertion"];var Qi,Zi;Qi=Ji,Zi=478,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1c")](){const t=this.editor;if(!t.plugins[Yi("0x17")]("Paragraph"))return;const e=t[Yi("0xa")],n=t[Yi("0x3")][Yi("0xc")]("TrackChangesEditing");n[Yi("0x34")][Yi("0x2d")](Yi("0x0"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x19")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x9")].document,r=o.selection||s[Yi("0x32")],i=Array[Yi("0x8")](r[Yi("0x23")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x22")][Yi("0x9")].schema)[Yi("0x26")](e[Yi("0x2b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x0")!=e[Yi("0x35")];var e,n}));t[Yi("0x9")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x16")},fs(t))}))})),n[Yi("0x34")][Yi("0x1d")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x1b"),content:Yo(e,Yi("0x1f"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x25")),t[Yi("0x1a")][Yi("0x30")].on(Yi("0x10"),ex(t),{priority:"highest"}),t[Yi("0x2a")].downcastDispatcher.on(Yi("0x10"),((e,n,o)=>{o.options[Yi("0x36")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x34")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x24")])return;const{start:s,end:r}=n[Yi("0x20")]();if(!s.isTouching(r)||!s[Yi("0x13")])return;const i=t[Yi("0x9")].schema,x=s[Yi("0x13")];return i[Yi("0xf")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x5"))?{type:Yi("0xb"),content:Yo(e,"*Insert:* %0",o[Yi("0x1e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0xc")](Yi("0xd")),i=o.markerRange[Yi("0x14")],x=o[Yi("0x1")][Yi("0x2f")],a=t[Yi("0x9")][Yi("0x29")];if(!i[Yi("0x7")](x)||!i[Yi("0x13")])return;const c=i[Yi("0x13")];if(a[Yi("0xf")](c)&&!a[Yi("0x27")](c)&&a[Yi("0x26")](c,Yi("0x5"))){if(!s[Yi("0xe")][Yi("0x11")](o.markerRange,n.name))return;const t=s[Yi("0x18")][Yi("0x2e")](Yi("0x31"),{class:Yi("0x4")}),i=s[Yi("0x2")].toViewPosition(x);e&&r[Yi("0x15")].includes(o[Yi("0x2c")])&&s[Yi("0x18")][Yi("0x33")](Yi("0x21"),t),s.writer.insert(i,t),s[Yi("0x2")].bindElementToMarker(t,o[Yi("0x2c")])}}}const nx=["selection","schema","model","get","isFormatting","getAttributeProperties","from","registerDescriptionCallback","isCollapsed","commandName","editor","*Remove all formatting*","document","getAttributes","has","removeFormat","TrackChangesEditing","locale","_descriptionFactory","getRanges","plugins","createRangeOn","afterInit"];var ox,sx;ox=nx,sx=472,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xa")](){const t=this[rx("0x15")];if(!t[rx("0x8")][rx("0x2")]("RemoveFormatEditing"))return;const e=t[rx("0x8")][rx("0xe")](rx("0x4"));e.enableCommand(rx("0x3"),(n=>{const o=t.model[rx("0x0")][rx("0xb")];o[rx("0x13")]?n():t[rx("0xd")].change((()=>{const n=Array[rx("0x11")](o[rx("0x7")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xd")][rx("0xc")])&&e.markInlineFormat(t[rx("0xd")][rx("0x9")](n),{commandName:rx("0x3"),commandParams:[]})}))})),e[rx("0x6")][rx("0x12")]((e=>{const{data:n}=e;if(n&&rx("0x3")==n[rx("0x14")])return{type:"format",content:Yo(t[rx("0x5")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0xf")])return!0}return!1}const ax=["trackChanges","plugins","RestrictedEditingModeEditing","discardAllSuggestions","has","enableCommand","acceptSuggestion","get","afterInit","acceptSelectedSuggestions","editor"];var cx,lx;cx=ax,lx=404,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x0")](){const t=this[ux("0x2")];if(!t[ux("0x4")][ux("0x7")](ux("0x5")))return;const e=t[ux("0x4")][ux("0xa")]("TrackChangesEditing");e[ux("0x8")]("goToPreviousRestrictedEditingException"),e[ux("0x8")]("goToNextRestrictedEditingException");const n=t[ux("0x4")].get(ux("0x5"));n.enableCommand(ux("0x3")),n[ux("0x8")](ux("0x9")),n.enableCommand("discardSuggestion"),n[ux("0x8")]("acceptAllSuggestions"),n[ux("0x8")](ux("0x6")),n[ux("0x8")](ux("0x1")),n[ux("0x8")]("discardSelectedSuggestions")}}const gx=["bindElementToMarker","markerName","_descriptionFactory","editing","TrackChangesEditing","showSuggestionHighlights","split","createUIElement","test","plugins","high","addMarker:suggestion:insertion","softBreak","data","shiftEnter","ck-suggestion-marker-","addMarker:suggestion","addClass","insert","writer","locale","createPositionBefore","registerElementLabel","editor","consumable","ELEMENT_LINE_BREAK","enableCommand","mapper","merge","downcastDispatcher","init","markerRange","get","includes","element","model","span","name","ck-suggestion-marker--active","getItems"];var mx,fx;mx=gx,fx=184,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x6")](){const t=this[hx("0x27")],e=t[hx("0x19")][hx("0x8")](hx("0x14"));e[hx("0x2")](hx("0x1e")),t[hx("0x13")][hx("0x5")].on(hx("0x1b"),bx(t),{priority:hx("0x1a")}),t.editing[hx("0x5")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1a")}),t[hx("0x1d")].downcastDispatcher.on(hx("0x20"),((e,n,o)=>{o.options[hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0x26")](hx("0x1c"),(e=>Yo(t[hx("0x24")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x19")][hx("0x8")](hx("0x14"));if(!s[hx("0x0")][hx("0x18")](o[hx("0x7")],n[hx("0xd")]))return;const i=t[hx("0xb")];for(const t of o.markerRange[hx("0xf")]()){if(!t.is(hx("0xa"),hx("0x1c")))continue;const n="deletion"==o[hx("0x11")].split(":")[1]?hx("0x4"):hx("0x16"),x=s[hx("0x23")][hx("0x17")](hx("0xc"),{class:hx("0x1f")+n}),a=s[hx("0x3")].toViewPosition(i[hx("0x25")](t));e&&r.activeMarkers[hx("0x9")](o[hx("0x11")])&&s[hx("0x23")][hx("0x21")](hx("0xe"),x),s.writer[hx("0x22")](a,x),s[hx("0x3")][hx("0x10")](x,o[hx("0x11")])}}}const Ex=["model","TrackChangesEditing","plugins","afterInit","registerDescriptionCallback","getRanges","get","change","has","commandParams","format","selection","_descriptionFactory","forceValue","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","value","markInlineFormat","commandName","commands"];var _x,Tx;_x=Ex,Tx=459,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this.editor,e=t[Cx("0x3")],n=t[Cx("0x11")];if(!t[Cx("0x5")][Cx("0xb")](Cx("0x12")))return;const o=t[Cx("0x5")][Cx("0x9")](Cx("0x4")),s="restrictedEditingException",r=t[Cx("0x2")][Cx("0x9")](s);o.enableCommand(s,((t,n={})=>{const i=e.document[Cx("0xe")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x10")]:!r[Cx("0x15")];e[Cx("0xa")]((()=>{const t=Array.from(i[Cx("0x8")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0x7")]((t=>{const{data:e}=t;if(e&&e[Cx("0x1")]==s)return e[Cx("0xc")][0][Cx("0x10")]?{type:Cx("0xd"),content:Yo(n,Cx("0x13"))}:{type:Cx("0xd"),content:Yo(n,Cx("0x14"))}}))}}const kx=["plugins","DataSchema","style","_descriptionFactory","getItems","getSelectedBlocks","createRangeOn","getDefinitionsForView","value","config","push","styleName","*Format:* %0","from","toLowerCase","element","enabledStyles","inline","name","commandParams","style.definitions","_getRangesWithClasses","includes","format","commandName","afterInit","isBlock","getAttribute","get","model","style:","editor","classes","enableCommand","Style","forceValue","modelElements","document","_getStyleDefinition","change","markInlineFormat","commands","find","registerDescriptionCallback","TrackChangesEditing","StyleUtils"];var Ax,Rx;Ax=kx,Rx=111,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);const vx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[vx("0x6")](){const t=this[vx("0xc")];if(!t[vx("0x1b")].has(vx("0xf")))return;const e=t[vx("0x16")][vx("0x9")](vx("0x1d")),n=t[vx("0x1b")][vx("0x9")](vx("0x19")),o=t.locale,s=t[vx("0x1b")][vx("0x9")](vx("0x1c")),r=t.plugins.get(vx("0x1a")).normalizeConfig(s,t[vx("0x24")].get(vx("0x1")));n[vx("0xe")]("style",((o,{styleName:i})=>{const x=t[vx("0xa")][vx("0x12")].selection,a=this[vx("0x13")](i,r);if(!a)return;if(!e[vx("0x2b")][vx("0x3")](i))return;if(x.isCollapsed&&!a[vx("0x7")])return void o({styleName:i});const c=!e[vx("0x23")][vx("0x3")](a[vx("0x2d")]);if(a[vx("0x7")]){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[vx("0x3")](o[vx("0x2d")])){n.add(o);break}}return n}(x[vx("0x20")](),a[vx("0x11")]);t[vx("0xa")][vx("0x14")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:vx("0x1d"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:vx("0xb")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array[vx("0x28")](s[vx("0x22")](a[vx("0x2a")],!1))[0][vx("0xa")],o=[];for(const s of e){const e=this[vx("0x2")](t.model,s,a[vx("0xd")],n);o[vx("0x25")](...e)}e=o}t[vx("0xa")].change((()=>{for(const t of e)n[vx("0x15")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[vx("0x1e")][vx("0x18")]((t=>{const{data:e}=t;if(e&&"style"===e[vx("0x5")])return e.commandParams[0][vx("0x10")]?{type:vx("0x4"),content:Yo(o,vx("0x27"),e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}}))}[vx("0x13")](t,e){let n=e.block.find((e=>e[vx("0x2d")]===t));return n||(n=e[vx("0x2c")][vx("0x17")]((e=>e[vx("0x2d")]===t))),n}[vx("0x2")](t,e,n,o){const s=[];for(const r of e[vx("0x1f")]()){const e=r[vx("0x8")](o);e&&n.every((t=>e[vx("0xd")][vx("0x3")](t)))&&s[vx("0x25")](t[vx("0x21")](r))}return s}}const Sx=["forceValue","tableRow","getRanges","MAX_SAFE_INTEGER","cell","locale","markMultiRangeDeletion","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","enqueueChange","_setupColumnsRowsFixing","filter","insertTableColumnRight","insertTable","*Insert:* %0","createRangeIn","from","ELEMENT_TABLE","classes","getChanges","has","enableCommand","join","writer","last","findAncestor","end","getChangedMarkers","removeTableRow","getAttribute","isInContent","tableCell","getSuggestion","getRowIndexes","isTouching","includes","minColumn","add","setSelection","getChildren","options","TrackChangesEditing","accept","batch","insertTableRowBelow","mapper","push","removeClass","minRow","execute","editor","getFirstRange","insertTableColumnLeft","insertion","table","rootName","hasAttribute","detach","rowspan","tableColumn","refresh","selectTableRow","registerDescriptionCallback","start","ELEMENT_TABLE_ROW","discard","colspan","addMarker:suggestion","maxRow","TableEditing","_tablePostFixingSubtypes","maxColumn","max","selectTableColumn","isIntersectingWithRange","commands","*Remove:* %0","change:data","map","isArray","span","min","registerCustomCallback","differ","tablePaste","addRange","substr","values","nodeBefore","document","nodeAfter","addClass","toLowerCase","change","TableUtils","selection","_suggestionFactory","_descriptionFactory","_getSuggestionCoords","get","root","$graveyard","ELEMENT_TABLE_WITH_TEXT","type","getItems","isEqual","deletion","afterInit","order","subType","oldRange","low","getColumnIndexes","item","position","_tableSuggestions","createRangeOn","model","removeTableColumn","getCellLocation","length","insert","getSelectionAffectedTableCells","left","fromRange","$textProxy","markMultiRangeInsertion","some","MIN_SAFE_INTEGER","data","createPositionAt","ELEMENT_TABLE_COLUMN_WITH_TEXT","createTableWalker","getContainedElement","name"];var Lx,Nx;Lx=Sx,Nx=460,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("0x13")]=["tableRow",wx("0x8")],this[wx("0x40")]=new Set}[wx("0x38")](){const t=this[wx("0x87")],e=t[wx("0x42")][wx("0x26")].selection;if(!t.plugins[wx("0x69")](wx("0x12")))return;const n=t[wx("0x59")],o=t.plugins[wx("0x30")]("TrackChangesEditing"),s=t[wx("0x5d")].get(wx("0x2b"));o[wx("0x2e")].registerElementLabel("table",(t=>Yo(n,wx("0x66"),t))),this[wx("0x5f")](),o[wx("0x6a")](wx("0x62")),o[wx("0x6a")](wx("0xa")),o[wx("0x6a")](wx("0x16"));for(const n of["insertTableRowAbove",wx("0x81")]){const r=t.commands[wx("0x30")](n);o.enableCommand(n,(n=>{t.model[wx("0x2a")]((t=>{n();const i="above"===r[wx("0x39")],x=s[wx("0x47")](e),a=s.getRowIndexes(x),c=i?a[wx("0x5b")]-1:a[wx("0x6d")]+1,l=x[0][wx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u)[wx("0x1b")]((e=>t[wx("0x41")](e[wx("0x58")])));o[wx("0x4b")](d,wx("0x55"))}))}))}for(const n of[wx("0x1"),wx("0x61")]){const r=t[wx("0x18")].get(n);o[wx("0x6a")](n,(n=>{t[wx("0x42")][wx("0x2a")]((t=>{n();const i=wx("0x48")===r[wx("0x39")],x=s[wx("0x47")](e),a=s[wx("0x3d")](x),c=i?a[wx("0x5b")]-1:a[wx("0x6d")]+1,l=x[0][wx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[wx("0x65")](u)[wx("0x1b")]((e=>t[wx("0x41")](e[wx("0x58")])));o.markMultiRangeInsertion(d,wx("0x8"))}))}))}for(const n of[wx("0x71"),wx("0x43")]){const r=n.substr(11),i=r.toLowerCase(),x=i.substr(0,3)+wx("0x1d"),a=wx("0x3")+r,c="min"+r,l=wx("0x15")+r;o[wx("0x6a")](n,(()=>{t[wx("0x42")].change((t=>{const r=s[wx("0x47")](e),u=r[0][wx("0x6e")](wx("0x3"));let d;if("removeTableRow"==n){const t=s[wx("0x76")](r);d={startRow:t[wx("0x5b")],endRow:t[wx("0x6d")],includeAllSlots:!0}}else{const t=s[wx("0x3d")](r);d={startColumn:t.first,endColumn:t[wx("0x6d")],includeAllSlots:!0}}const g=s[wx("0x51")](u,d),m=Array[wx("0x65")](g)[wx("0x1b")]((({cell:t})=>t)),f=Ox(m[wx("0x60")]((t=>t[wx("0x5")](x)))),h=Ox(m[wx("0x60")]((t=>!t[wx("0x5")](x)))).map((e=>t[wx("0x41")](e))),p=o[wx("0x5a")](h,a);if(p&&(wx("0x55")==p.subType||wx("0x8")==p[wx("0x3a")])){const e=this[wx("0x2f")](p);for(const n of f){const o=t[wx("0x41")](n),r=s.getCellLocation(n),a=n[wx("0x72")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[wx("0x22")](o)}}}))}))}function r(n){const o=Array[wx("0x65")](e[wx("0x56")]())[wx("0x1b")]((t=>i.LiveRange[wx("0x49")](t)));t[wx("0x42")][wx("0x2a")]((e=>{const s=e[wx("0x80")];n=n.filter((t=>wx("0x32")!=t[wx("0x31")][wx("0x4")])),e.setSelection(n),t[wx("0x18")][wx("0x30")](wx("0x71")).refresh(),t.execute(wx("0x71"),{forceDefaultExecution:!0}),t[wx("0x42")][wx("0x5e")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>wx("0x32")!=t[wx("0x31")][wx("0x4")]));e[wx("0x45")]>0&&t[wx("0x7b")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model.change((o=>{const s=Array[wx("0x65")](e.getRanges())[wx("0x1b")]((t=>i.LiveRange[wx("0x49")](t))),r=[];for(const t of n)for(const e of t[wx("0x35")]({shallow:!0}))r[wx("0x83")](e);for(const e of r)"$graveyard"!=e.root.rootName&&(o[wx("0x7b")](o[wx("0x4f")](e,0)),t[wx("0x18")].get(wx("0x43"))[wx("0x9")](),t[wx("0x86")](wx("0x43"),{forceDefaultExecution:!0}));const x=s[wx("0x60")]((t=>wx("0x32")!=t[wx("0x31")][wx("0x4")]));x[wx("0x45")]>0&&o.setSelection(x);for(const t of s)t[wx("0x6")]()}))}function c(t,e){return e.every((e=>t[wx("0x4c")]((t=>t[wx("0x6f")].isEqual(e[wx("0xc")])||e[wx("0x6f")][wx("0x36")](t[wx("0xc")])))))}function l(t,e){return t.some((t=>e.some((e=>t.end[wx("0x77")](e[wx("0xc")])))))}t[wx("0x4e")].downcastDispatcher.on(wx("0x10"),((t,e,n)=>{if(!n[wx("0x7d")].showSuggestionHighlights)return;const o=e[wx("0x3e")];if(!o)return;const s=n[wx("0x82")].toViewElement(o);function r(t){return Array[wx("0x1c")](t)?t:[t]}s&&wx("0x74")===o[wx("0x53")]&&(0,x.setHighlightHandling)(s,n[wx("0x6c")],((t,e,n)=>n[wx("0x28")](r(e[wx("0x67")]),t)),((t,e,n)=>n[wx("0x84")](r(e.classes),t)))}),{priority:"highest"}),o._descriptionFactory[wx("0xb")]((t=>{if("insertion"!=t[wx("0x34")]&&"deletion"!=t[wx("0x34")])return;const e=t[wx("0x52")]();if(null!=e&&e.is("element",wx("0x3"))){if(wx("0x2")==t[wx("0x34")]){const e=t[wx("0x35")]().filter((t=>t.is("$textProxy")))[wx("0x1b")]((t=>t[wx("0x4e")]));if(e[wx("0x45")])return{type:"insertion",content:Yo(n,wx("0x63"),Yo(n,wx("0x33"),'"'+e[wx("0x6b")](" ")+'"'))}}if(wx("0x37")==t[wx("0x34")]){const e=t[wx("0x35")]().filter((t=>t.is(wx("0x4a"))))[wx("0x1b")]((t=>t[wx("0x4e")]));if(e[wx("0x45")])return{type:wx("0x37"),content:Yo(n,wx("0x19"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[wx("0x6b")](" ")+'"'))}}}})),o[wx("0x2e")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[wx("0x60")]((t=>t.is(wx("0x4a"))))[wx("0x1b")]((t=>t[wx("0x4e")])),o=this[wx("0x2f")](t),s=o[wx("0x11")]-o[wx("0x85")]+1;if(wx("0x2")==t[wx("0x34")])return e[wx("0x45")]?{type:wx("0x2"),content:Yo(n,wx("0x63"),Yo(n,wx("0x5c"),[s,'"'+e[wx("0x6b")](" ")+'"']))}:{type:wx("0x2"),content:Yo(n,wx("0x63"),Yo(n,wx("0xd"),s))};if("deletion"==t[wx("0x34")])return e[wx("0x45")]?{type:wx("0x37"),content:Yo(n,wx("0x19"),Yo(n,wx("0x5c"),[s,'"'+e[wx("0x6b")](" ")+'"']))}:{type:wx("0x37"),content:Yo(n,wx("0x19"),Yo(n,wx("0xd"),s))}}if(wx("0x8")==t[wx("0x3a")]){const e=t[wx("0x35")]()[wx("0x60")]((t=>t.is("$textProxy")))[wx("0x1b")]((t=>t[wx("0x4e")])),o=this._getSuggestionCoords(t),s=o[wx("0x14")]-o[wx("0x79")]+1;if(wx("0x2")==t[wx("0x34")])return e.length?{type:wx("0x2"),content:Yo(n,wx("0x63"),Yo(n,wx("0x50"),[s,'"'+e[wx("0x6b")](" ")+'"']))}:{type:wx("0x2"),content:Yo(n,wx("0x63"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(wx("0x37")==t[wx("0x34")])return e[wx("0x45")]?{type:wx("0x37"),content:Yo(n,wx("0x19"),Yo(n,wx("0x50"),[s,'"'+e[wx("0x6b")](" ")+'"']))}:{type:wx("0x37"),content:Yo(n,wx("0x19"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o._suggestionFactory.registerCustomCallback("insertion",wx("0x55"),wx("0xe"),r),o[wx("0x2d")][wx("0x1f")](wx("0x37"),wx("0x55"),"accept",r),o[wx("0x2d")][wx("0x1f")](wx("0x2"),"tableColumn",wx("0xe"),a),o._suggestionFactory[wx("0x1f")](wx("0x37"),wx("0x8"),wx("0x7f"),a),o[wx("0x2d")][wx("0x1f")](wx("0x2"),"tableColumn",wx("0x6b"),c),o[wx("0x2d")][wx("0x1f")]("deletion","tableColumn",wx("0x6b"),c),o[wx("0x2d")][wx("0x1f")](wx("0x2"),wx("0x55"),wx("0x6b"),l),o[wx("0x2d")][wx("0x1f")](wx("0x37"),"tableRow",wx("0x6b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[wx("0x87")],e=t[wx("0x42")][wx("0x26")][wx("0x2c")];return(n,o)=>{t[wx("0x42")][wx("0x2a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x6f")][wx("0x25")];x&&x[0]&&!1===x[0][wx("0x54")]&&(a=n[0].start[wx("0x27")]);const c=s[wx("0x64")](a);if(wx("0x32")==c[wx("0x31")][wx("0x4")])return;const l=Array[wx("0x65")](e.getRanges())[wx("0x1b")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[wx("0x18")].get(r)[wx("0x9")](),x[wx("0x83")]({forceDefaultExecution:!0}),t[wx("0x86")](r,...x);const u=l[wx("0x60")]((t=>wx("0x32")!=t.root[wx("0x4")]));u[wx("0x45")]>0&&s[wx("0x7b")](u);for(const t of l)t[wx("0x6")]()}))}}_getCoordsForCells(t){const e=this[wx("0x87")][wx("0x5d")][wx("0x30")](wx("0x2b"));let n=Number[wx("0x57")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0x57")],r=Number[wx("0x4d")];for(const i of t){if("$graveyard"==i[wx("0x31")][wx("0x4")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x5")](wx("0x7"))?i.getAttribute(wx("0x7"))-1:0,c=i[wx("0x5")](wx("0xf"))?i[wx("0x72")](wx("0xf"))-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}}_setupColumnsRowsFixing(){const t=this[wx("0x87")],e=t[wx("0x5d")][wx("0x30")](wx("0x7e")),n=t.plugins[wx("0x30")]("TableUtils");t[wx("0x42")][wx("0x26")].on(wx("0x1a"),(()=>{const n=Array.from(t[wx("0x42")].document[wx("0x20")][wx("0x70")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[wx("0x3b")])continue;const i=e[wx("0x75")](s);this[wx("0x13")][wx("0x78")](r)&&this[wx("0x40")][wx("0x7a")](i)}}),{priority:wx("0x3c")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(wx("0x3")),i=n[wx("0x44")](t);for(const e of this[wx("0x40")]){const n=e[wx("0x3a")],x=n.startsWith(wx("0x21")),a=n[wx("0x23")](x?10:5),c=a[wx("0x29")](),l=c[wx("0x23")](0,3)+wx("0x1d"),u=wx("0x1e")+a,d=wx("0x15")+a;if(!e[wx("0x73")])continue;if(r!=e[wx("0x0")]()[wx("0xc")][wx("0x6e")]("table"))continue;if(e[wx("0x17")](s))continue;const g=t[wx("0x5")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[wx("0x22")](s),o=!0)}return o};t[wx("0x42")][wx("0x26")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x42")][wx("0x26")][wx("0x20")][wx("0x68")]())if(wx("0x46")==s.type)if("tableRow"==s[wx("0x53")])for(const t of s[wx("0x3f")][wx("0x27")][wx("0x7c")]())n=n||o(t,e);else wx("0x74")==s[wx("0x53")]&&(n=n||o(s[wx("0x3f")].nodeAfter,e));return n}))}[wx("0x2f")](t){return this._getCoordsForCells(t.getRanges()[wx("0x1b")]((t=>t.start[wx("0x27")])))}}function Ox(t){return Array[wx("0x65")](new Set(t)[wx("0x24")]())}const Fx=["getSuggestions","registerCustomCallback","enableCommand","requires","cell","map","_areMergableCells","document","set:isEnabled","getAncestors","$graveyard","splitTableCellHorizontally","insertion","mergeTableCells","_descriptionFactory","TrackChangesEditing","containsRange","getRanges","commandName","markBlockFormat","_acceptFormatSuggestionCallbackFactory","trackChanges","setSelection","selection","get","mergeTableCellLeft","low","value","has","author","getSelectionAffectedTableCells","mergeTableCellDown","_suggestionFactory","add","mergeTableCellRight","locale","from","splitTableCellVertically","markMultiRangeBlockFormat","filter","mergeTableCellUp","find","root","commands","isInContent","afterInit","registerDescriptionCallback","length","*Merge cells*","getFirstPosition","format","createTableWalker","TableEditing","getCellLocation","*Split cell:* vertically","change","push","tableCell","_areSelectedCellsMergable","rootName","editor","deletion","isEnabled","plugins","table","forceDefaultExecution","element","type","*Split cell:* horizontally","refresh","return","size","execute","_tablePostFixingSubtypes","model","direction","createRangeOn","highest","fromRange","formatBlock","subType"];var Px,Dx;Px=Fx,Dx=359,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x31")](){return[Mx]}[Bx("0xa")](){const t=this[Bx("0x19")],e=t[Bx("0x27")][Bx("0x35")].selection,n=t[Bx("0x0")];if(!t.plugins[Bx("0x4a")](Bx("0x11")))return;const o=t[Bx("0x1c")][Bx("0x46")]("TrackChangesEditing"),s=t.plugins.get("TableUtils"),r=t.plugins[Bx("0x46")](Mx);r[Bx("0x26")][Bx("0x15")]("mergeTableCells"),o[Bx("0x30")](Bx("0x3b"),(()=>{const e=s[Bx("0x4c")](t[Bx("0x27")][Bx("0x35")][Bx("0x45")]);t[Bx("0x27")][Bx("0x14")]((()=>{o[Bx("0x3")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x8")][Bx("0x46")](Bx("0x3b")).on(Bx("0x25"),((e,n)=>{t[Bx("0x8")].get(Bx("0x43")).value&&(n[Bx("0xc")]>0&&n[n[Bx("0xc")]-1]&&n[n.length-1][Bx("0x1e")]||o._isForcedDefaultExecutionBlock||this[Bx("0x17")]()||e.stop())}),{priority:Bx("0x2a")});for(const e of[Bx("0x5"),Bx("0x50"),Bx("0x4d"),Bx("0x47")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const e=t.model[Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16")))),s=n[Bx("0x49")];t[Bx("0x27")][Bx("0x14")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x3b"),commandParams:[]},[],Bx("0x3b"))}))}))}for(const e of[Bx("0x2"),Bx("0x39")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const r=s[Bx("0x4c")](t.model[Bx("0x35")][Bx("0x45")])[0],i=r.findAncestor(Bx("0x1d")),{column:x,row:a}=s[Bx("0x12")](r);let c=[];if("horizontally"==n[Bx("0x28")]){const t=s[Bx("0x10")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t.cell))}else{const t=s[Bx("0x10")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t[Bx("0x32")]))}t[Bx("0x27")][Bx("0x14")]((t=>{o[Bx("0x41")](t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x40")]?{type:Bx("0xf"),content:Yo(n,Bx("0xd"))}:void 0})),o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x40")]?{type:"format",content:Yo(n,Bx("0x13"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x21"))}:void 0}));const x=r[Bx("0x42")]();for(const t of["mergeTableCellUp",Bx("0x50"),Bx("0x4d"),Bx("0x47")])o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),t,"accept",x);for(const t of[Bx("0x2"),Bx("0x39")])o[Bx("0x4e")].registerCustomCallback(Bx("0x2c"),t,"accept",x);o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),Bx("0x3b"),"accept",(n=>{t[Bx("0x27")][Bx("0x14")]((o=>{const s=Array.from(e[Bx("0x3f")]()).map((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x44")](n),t[Bx("0x8")][Bx("0x46")](Bx("0x3b"))[Bx("0x22")](),t[Bx("0x25")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x4")]((t=>Bx("0x38")!=t[Bx("0x7")][Bx("0x18")]));r[Bx("0xc")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x5"),Bx("0x4d"),Bx("0x47"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x46")](e);n.on(Bx("0x36"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16"))));this[Bx("0x34")](n.value,o)||(e[Bx("0x23")]=!1,e.stop())}}),{priority:Bx("0x48")})}}[Bx("0x17")](){const t=this[Bx("0x19")].commands[Bx("0x46")](Bx("0x3b")),e=this[Bx("0x19")].plugins.get("TableUtils");if(!t[Bx("0x1b")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x19")][Bx("0x27")][Bx("0x35")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x34")](t,e){const n=this[Bx("0x19")][Bx("0x1c")][Bx("0x46")](Bx("0x3d")),o=this[Bx("0x19")][Bx("0x27")][Bx("0x29")](t),s=this[Bx("0x19")].model[Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2e")]())if((Bx("0x3a")==t.type||Bx("0x1a")==t.type||Bx("0x3b")==t[Bx("0x2d")])&&t[Bx("0x9")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x4f")](t[Bx("0x20")]+":"+t[Bx("0x4b")].id),e[Bx("0x3e")](s,!0)&&i.add(t[Bx("0x20")]+":"+t[Bx("0x4b")].id);if(r[Bx("0x24")]!=i[Bx("0x24")])return!1;for(const t of r)if(!i[Bx("0x4a")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","commandName","TableUtils","parent","setTableRowHeader","bindElementToMarker","markBlockFormat","addClass","createTableWalker","removeMarker:suggestion","mapper","getCellLocation","highest","data-suggestion","FORMAT_HEADER_COLUMN","nodeBefore","_suggestionFactory","model","first","setTableColumnHeader","item","forceValue","_acceptFormatSuggestionCallbackFactory","getChild","FORMAT_HEADER_ROW","requires","commandParams","value","getRowIndexes","selection","editing","createPositionAfter","from","isBefore","table","getSelectionAffectedTableCells","FORMAT_REGULAR_COLUMN","end","createRange","formatBlock","data","last","ck-suggestion-marker--active","consumable","afterInit","enableCommand","registerCustomCallback","plugins","showSuggestionHighlights","stop","removeAttribute","FORMAT_REGULAR_ROW","_splitMarkerName","document","consume","markerName","headingColumns","commands","writer","options","has","getColumnIndexes","getAttribute","*Format:* %0","removeClass","downcastDispatcher","cell","registerDescriptionCallback","childCount","createPositionBefore","markerRange","accept","name","addMarker:suggestion","start","index","setAttribute","nodeAfter","get","findAncestor"];var Gx,Hx;Gx=Ux,Hx=189,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("0x4c")](){return[Mx]}[zx("0xf")](){const t=this.editor;if(!t[zx("0x12")][zx("0x1f")]("TableEditing"))return;const e=t.locale,n=t.plugins.get("TrackChangesEditing"),o=t[zx("0x12")][zx("0x31")]("TableUtils"),s=t[zx("0x12")][zx("0x31")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x17")](r[zx("0x1a")]),c=n.getSuggestion(a);if(!c[zx("0xb")]||zx("0x46")!=c[zx("0xb")][zx("0x34")])return;if(r[zx("0x47")])return void s[zx("0x14")]();if(!i[zx("0xe")][zx("0x19")](r[zx("0x29")],s[zx("0x2b")]))return;const l=r[zx("0x29")][zx("0x2d")][zx("0x30")],u=r.markerRange[zx("0x8")][zx("0x42")],d=l[zx("0x36")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o[zx("0x3e")](u);for(let s=g;s<=m;s++){const c=o[zx("0x3b")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x25")],c=i[zx("0x3d")].toViewElement(s);i[zx("0x1d")][zx("0x3a")](zx("0x33")+x,c),e&&i.writer[zx("0x2f")]("data-suggestion",a,c),i[zx("0x3d")][zx("0x38")](c,r[zx("0x1a")]),t&&(n.activeMarkers.includes(r.markerName)?i[zx("0x1d")][zx("0x3a")]("ck-suggestion-marker--active",c):i[zx("0x1d")][zx("0x23")](zx("0xd"),c))}}}}n.enableCommand(zx("0x37"),((e,s)=>{const r=o[zx("0x6")](t[zx("0x44")][zx("0x18")][zx("0x0")]),i=o[zx("0x4f")](r),x=r[0][zx("0x32")](zx("0x5")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x48")]?s[zx("0x48")]:!t[zx("0x1c")][zx("0x31")]("setTableRowHeader")[zx("0x4e")],l=c?i[zx("0xc")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x2e")]<e[zx("0x2e")])return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](e[zx("0x4a")](0)),t[zx("0x44")].createPositionAfter(u.getChild(u[zx("0x27")]-1)))}else{const e=x[zx("0x4a")](a-1);if(!e)return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](u[zx("0x4a")](0)),t[zx("0x44")][zx("0x2")](e[zx("0x4a")](e[zx("0x27")]-1)))}t[zx("0x44")].change((()=>{n[zx("0x39")](d,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x10")](zx("0x46"),((e,o)=>{const s=t[zx("0x12")][zx("0x31")](zx("0x35")),r=s.getSelectionAffectedTableCells(t[zx("0x44")].document[zx("0x0")]),i=s[zx("0x20")](r),x=r[0][zx("0x32")](zx("0x5")),a=x[zx("0x21")](zx("0x1b"))||0,c=o&&null!==o.forceValue?o[zx("0x48")]:!t[zx("0x1c")][zx("0x31")](zx("0x46"))[zx("0x4e")];let l;const u=x.getChild(0),d=c?i[zx("0xc")]:i[zx("0x45")],g=s[zx("0x3b")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3")](g)[0][zx("0x25")];if(c){const e=u.getChild(a);if(m[zx("0x4")](e))return;l=t[zx("0x44")][zx("0x9")](t[zx("0x44")][zx("0x28")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x4a")](a-1);if(!e)return;l=t[zx("0x44")][zx("0x9")](t.model[zx("0x28")](m),t[zx("0x44")][zx("0x2")](e))}t[zx("0x44")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t[zx("0x1")][zx("0x24")].on(zx("0x2c"),r(),{priority:zx("0x3f")}),t.data[zx("0x24")].on(zx("0x2c"),((t,e,n)=>{n[zx("0x1e")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x3f")}),t[zx("0x1")][zx("0x24")].on(zx("0x3c"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x1a")]),i=n.getSuggestion(r);if(!i[zx("0xb")]||zx("0x46")!=i.data.commandName)return;const x=o[zx("0x3d")].markerNameToElements(e[zx("0x1a")]);if(x)for(const t of x)o.writer[zx("0x23")](zx("0x33")+s,t),o[zx("0x1d")][zx("0x23")]("ck-suggestion-marker--active",t),o.writer[zx("0x15")](zx("0x40"),t),o[zx("0x3d")].unbindElementFromMarkerName(t,e[zx("0x1a")])}),{priority:"highest"}),n._descriptionFactory[zx("0x26")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x34")]){const t=n.commandParams[0][zx("0x48")];return o(Yo(e,zx(t?"0x4b":"0x16")))}if(zx("0x46")==n[zx("0x34")]){const t=n[zx("0x4d")][0][zx("0x48")];return o(Yo(e,zx(t?"0x41":"0x7")))}}function o(t){return{type:"format",content:Yo(e,zx("0x22"),t)}}}));const i=s[zx("0x49")]();n[zx("0x43")][zx("0x11")]("formatBlock","setTableRowHeader",zx("0x2a"),i),n[zx("0x43")][zx("0x11")](zx("0xa"),zx("0x46"),zx("0x2a"),i)}}const Vx=["newRange","length","elementToElement","isEmpty","cells","endColumn","columnInsertionRanges","*Replace table cells*","markMultiRangeDeletion","updateMarker","insert","tablePasteColumn","remove","deletion","createRange","suggestion:formatBlock:tablePasteCell","activeMarkers","name","ck-suggestion-marker-insertion","suggestion-td","markerToHighlight","editingDowncast","getItems","push","reduce","previous","TableClipboard","tableCellBorderColor","register","tableCellSuggestion","commands","element","markerName","subType","suggestionUnloaded","insertion","view","first","tableCellHorizontalAlignment","some","rows","suggestion","removeMarkers","getSuggestion","removeMarker","tablePaste","tableCellVerticalAlignment","createElement","cell","removeColumns","high","map","getRowIndexes","model","removeRows","end","registerPostFixer","editor","getAllAdjacentSuggestions","next","get","find","_getCoordsForCells","getContainedElement","deletionRanges","tableCell","differ","requires","table","getChanges","_descriptionFactory","stop","batch","ck-suggestion-marker","createRangeOn","columns","add","getRange","root","start","nodeAfter","change","join","_suggestionFactory","isEqual","markMultiRangeInsertion","discard","getTableIfOnlyTableInContent","insertColumns","fill","getSuggestions","isInContent","Users","tablePasteRow","conversion","tableCellBorderWidth","type","low","getRows","containsRange","rowInsertionRanges","_tablePostFixingSubtypes","every","createRangeIn","position","from","rowInsertionIndexes","registerCustomCallback","startsWith","fromEntries","set","unwrap","setAttributes","afterInit","getColumnIndexes","markerAttributes","columnInsertionIndexes","getChangedMarkers","getSelectionAffectedTableCells","tablePasteChainId","document","forceDefaultExecution","_replaceTableSlotCell","includes","insertContent","getMarkers","_splitMarkerName","_isForcedDefaultExecutionBlock","$graveyard","getColumns","entries","plugins","_createdBatches","keys","tablePasteCell","tableCellBorderStyle","getRanges","for","getChild","findAncestor","getAttributes","accept","dataDowncast","filter","getChildren","has","wrap","formatBlock","tableCellBackgroundColor","paragraph","oldRange","createTableWalker","insertionRanges","attributes","locale","setAttribute"];var Kx,qx;Kx=Vx,qx=383,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x18"),Xx("0x70"),Xx("0x40"),Xx("0x7b"),Xx("0x83"),Xx("0x4d"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x98")](){return[Mx]}[Xx("0x2a")](){const t=this[Xx("0x8e")];if(!t[Xx("0x3c")][Xx("0x4a")](Xx("0x6f")))return;const n=t[Xx("0x3c")][Xx("0x91")]("TrackChangesEditing"),o=t[Xx("0x3c")][Xx("0x91")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x91")](Mx),r=t[Xx("0x3c")].get(Xx("0x6f"));s[Xx("0x1e")].push(Xx("0x16"),Xx("0x60")),t.model.schema[Xx("0x71")](Xx("0x72"),{allowIn:Xx("0x96"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x17")][Xx("0x57")]({model:Xx("0x72"),view:Xx("0x68")});let i=null;t[Xx("0x8a")].on(Xx("0x35"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x56")]-1];l&&l[Xx("0x32")]||n[Xx("0x38")]||this[Xx("0x8e")][Xx("0x73")].get("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x10")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x2f")](n[Xx("0x31")].selection);if(!i[Xx("0x56")])return!1;const x=i[0].findAncestor(Xx("0x99")),a=o[Xx("0x89")](i),c=o[Xx("0x2b")](i),l={startRow:a[Xx("0x7a")],endRow:a.last,startColumn:c[Xx("0x7a")],endColumn:c.last};return 1==i.length&&(l.endRow+=o[Xx("0x1b")](r)-1,l[Xx("0x5a")]+=o[Xx("0x3a")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x8a")],o,r)&&(s[Xx("0x0")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x8a")].change((()=>{t[Xx("0x8a")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0xe")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x56")]&&n[Xx("0xe")](r,Xx("0x60"),{tablePasteChainId:o}),a[Xx("0x56")]&&n[Xx("0xe")](a,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x5d")](c,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Xx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3f"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x8a")][Xx("0x3")](o),i=e[Xx("0x92")]((t=>t.getRange().isEqual(r)));i&&n[Xx("0x6c")]([i[Xx("0x66")],s])}n[Xx("0x56")]&&u[Xx("0x54")](Xx("0x2c"),Object[Xx("0x26")](n))}i=null})))}),{priority:e.priorities[Xx("0x87")]+10}),t[Xx("0x3c")][Xx("0x91")](Xx("0x6f")).on(Xx("0x33"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x85")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x61")](r[Xx("0x43")](0));for(const t of Array.from(x[Xx("0x49")]()))s[Xx("0x5f")](t,r,"end");const t=i.rowInsertionIndexes.includes(n.row),e=i[Xx("0x2d")][Xx("0x34")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x20")](r));else{const t=s[Xx("0x84")](Xx("0x72")),e=s[Xx("0x84")](Xx("0x72"));s[Xx("0x4b")](s[Xx("0x20")](r),e),s[Xx("0x5f")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x5f")](e,t,Xx("0x8c"));l=s[Xx("0x3")](t),u=s[Xx("0x3")](e)}const d=Array[Xx("0x22")](x[Xx("0x45")]())[Xx("0x48")]((([t])=>$x[Xx("0x34")](t)));i[Xx("0x59")][Xx("0x6c")]({element:r,attributes:d[Xx("0x56")]?Object.fromEntries(d):null}),l&&i[Xx("0x51")][Xx("0x6c")](l),u&&i[Xx("0x95")][Xx("0x6c")](u)}),{priority:Xx("0x87")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4")]||1;i[Xx("0x2d")]=new Array(a).fill(x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5b")].push(t[Xx("0x8a")][Xx("0x3")](e))}),{priority:Xx("0x1a")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7d")]||1;i[Xx("0x23")]=new Array(a)[Xx("0x12")](x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x50")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1d")].push(t[Xx("0x8a")].createRangeOn(e))}),{priority:Xx("0x1a")}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return e[Xx("0x6e")]?{}:{type:Xx("0x78"),content:Yo(t[Xx("0x53")],Xx("0x5c"))}}));const x=()=>{};for(const t of[Xx("0x82"),Xx("0x60"),Xx("0x16"),Xx("0x3f")])n[Xx("0xc")][Xx("0x24")](Xx("0x78"),t,Xx("0xb"),x),n[Xx("0xc")][Xx("0x24")](Xx("0x62"),t,Xx("0xb"),x);n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),Xx("0x3f"),"discard",x),n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),"tablePasteCell",Xx("0x46"),((e,n,o)=>{const s=e[Xx("0x88")]((t=>t[Xx("0x94")]()))[Xx("0x48")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x59")])e&&r[Xx("0x27")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x3b")](o.markerAttributes)){const o=t[Xx("0x8a")].markers[Xx("0x91")](e),s=o?o[Xx("0x6")]()[Xx("0x94")]():null;s&&r.set(s,n)}t[Xx("0x8a")].change((t=>{for(const[e,n]of r)t[Xx("0x29")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0xc")][Xx("0x24")](e,Xx("0x82"),o,((s,r,i)=>{t[Xx("0x8a")][Xx("0xa")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8")][Xx("0x9")];e.is("element",Xx("0x72"))&&x[Xx("0x6c")](e)}n[Xx("0xc")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x39")!=e[Xx("0x7")].rootName&&t.unwrap(e)}))}))};a(Xx("0x78"),Xx("0x46")),a(Xx("0x78"),Xx("0xf")),a(Xx("0x62"),Xx("0x46")),a(Xx("0x62"),Xx("0xf")),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x16"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x8b")](n,{at:r,rows:i-r+1})})),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x60"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0][Xx("0x44")](Xx("0x99")),{minColumn:r,maxColumn:i}=s[Xx("0x93")](e);o[Xx("0x86")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x76")]||!e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return;const o=e[Xx("0x52")][Xx("0x30")],s=n[Xx("0x13")]().filter((t=>t[Xx("0x14")]&&t[Xx("0x52")]&&t[Xx("0x52")][Xx("0x30")]==o));s[Xx("0x56")]&&e.getAllAdjacentSuggestions()[Xx("0x56")]!=s.length&&s[Xx("0x6d")](((t,e)=>(t[Xx("0x90")]=e,e[Xx("0x6e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x37")](t[Xx("0x75")]),s=[Xx("0x2"),Xx("0x67")],r=n[Xx("0x65")].includes(t.markerName);return r&&s[Xx("0x6c")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x87")}),n.on(Xx("0x77"),c,{priority:Xx("0x87")}),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x22")](t[Xx("0x8a")][Xx("0x31")][Xx("0x97")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x37")](s);if("suggestion"!=o||"deletion"!=i||r[Xx("0x4f")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x80")](x)[Xx("0x41")](),c=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me;for(const t of n[Xx("0x13")]())if(t[Xx("0x14")]&&t.author==c&&"formatBlock"==t[Xx("0x19")]&&Xx("0x3f")==t[Xx("0x76")]&&t[Xx("0x41")]()[Xx("0x1f")]((t=>a[Xx("0x7c")]((e=>e[Xx("0x1c")](t,!0))))))for(const n of t[Xx("0x8f")]())n[Xx("0x14")]&&(n[Xx("0xf")](),e=!0)}return e})),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((e=>{const o=t.commands[Xx("0x91")]("redo");if(!o||!o[Xx("0x3d")][Xx("0x4a")](e[Xx("0x1")]))return!1;let s=!1;const r=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me,i=t[Xx("0x8a")].document.differ[Xx("0x9a")](),x=Array[Xx("0x22")](t[Xx("0x8a")].document.differ[Xx("0x2e")]())[Xx("0x48")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x37")](t);return Xx("0x7e")==o&&Xx("0x82")==s&&i==r.id&&!e[Xx("0x4f")]}));for(const t of i){if(Xx("0x5f")!=t.type||Xx("0x72")!=t[Xx("0x66")]||1!=t[Xx("0x56")])continue;const n=e[Xx("0x63")](t[Xx("0x21")],t[Xx("0x21")].getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x55")][Xx("0xd")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x5e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x31")][Xx("0x8d")]((e=>{let o=!1;const s=t[Xx("0x3c")].get(Xx("0x15")).me,r=n[Xx("0x13")]()[Xx("0x48")]((t=>t[Xx("0x14")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x82")==t[Xx("0x76")])for(const e of t[Xx("0x36")]()){const n=e[Xx("0x6")]()[Xx("0x94")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x66")]),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x74"),Xx("0x72")),c=r&&r.is(Xx("0x74"),Xx("0x72"));a&&!i[Xx("0x4a")](s)&&x[Xx("0x5")](s),c&&!i.has(r)&&x[Xx("0x5")](r)}else n.is(Xx("0x74"),Xx("0x4e"))&&n[Xx("0x58")]&&(t[Xx("0x81")](e.name),o=!0)}else if(Xx("0x3f")==t[Xx("0x76")]){if(!t[Xx("0x52")]||!t.attributes[Xx("0x30")])continue;const e=t.attributes[Xx("0x2c")];if(e&&Object[Xx("0x3e")](e)[Xx("0x56")])continue;const n=t.attributes[Xx("0x30")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")]("tablePaste")){if(!e.attributes[Xx("0x30")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x52")][Xx("0x30")]==n){s=!1;break}}i&&s&&(t[Xx("0x7f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x28")](t);return o})),t[Xx("0x17")][Xx("0x42")](Xx("0x6a"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>l(t),converterPriority:Xx("0x87")}),t[Xx("0x17")][Xx("0x42")](Xx("0x47"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t.editing[Xx("0x79")];this.listenTo(u[Xx("0x31")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x20")](e.content)[Xx("0x6b")]())t.is(Xx("0x74"),Xx("0x68"))&&n[Xx("0x6c")](t);u[Xx("0xa")]((t=>{for(const e of n)t.move(t[Xx("0x20")](e),t.createPositionBefore(e)),t[Xx("0x61")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x43")](0);return e.is("element","paragraph")&&e[Xx("0x58")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x50")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_descriptionFactory","columnWidths","formatGroupId","locale","resizeTableWidth","Users","subType","registerCustomCallback","formatBlock","model","has","getContainedElement","plugins","enableCommand","_suggestionFactory","markBlockFormat","resizeColumnWidths","discard","handleSuggestionDescription","getAttribute","format","registerDescriptionCallback","tableWidth","getTableColumnsWidths","handleResizeTableWidthCommand","editor","bind","table","author","getColumnGroupElement","commandParams","accept","*Format:* resize table","resizeTable","get","getSelectedElement","data","selection","change"];var ea,na;ea=ta,na=356,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x1e")].plugins[oa("0xf")]("TableColumnResizeEditing"))return;const t=this[oa("0x1e")].plugins[oa("0x27")]("TrackChangesEditing");t[oa("0x12")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t.enableCommand(oa("0x15"),this[oa("0x1d")].bind(this)),t[oa("0x13")].registerCustomCallback("formatBlock",oa("0x26"),oa("0x24"),t[oa("0x13")].getSuggestionCallback(oa("0xd"),null,oa("0x16"))),t._suggestionFactory[oa("0xc")](oa("0xd"),oa("0x26"),oa("0x16"),t[oa("0x13")].getSuggestionCallback("formatBlock",null,oa("0x24"))),t[oa("0x5")][oa("0x1a")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x1d")](t,e){const n=this[oa("0x1e")][oa("0x11")].get("TrackChangesEditing"),o=this[oa("0x1e")].plugins[oa("0x27")](oa("0x4")),s=e[oa("0x20")]||this[oa("0x1e")][oa("0xe")].document[oa("0x2")][oa("0x0")]();this[oa("0x1e")][oa("0xe")][oa("0x3")]((()=>{const r=o[oa("0x22")](s);let i=r?o[oa("0x1c")](r):null,x=s[oa("0x18")](oa("0x1b"))||null;const a=e.tableWidth||x,c=e[oa("0x6")]||i,l=this[oa("0x1e")].plugins[oa("0x27")](oa("0xa")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x26")===t[oa("0xb")]&&e===s){t[oa("0x21")]!==l&&t[oa("0x16")]();const e=t[oa("0x1")][oa("0x23")];x=e[0][oa("0x1b")],i=e[0][oa("0x6")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x26")},[],oa("0x26"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&oa("0x26")===e[oa("0x7")]){const t=oa("0x25");return{type:oa("0x19"),content:Yo(this[oa("0x1e")][oa("0x8")],t)}}}}const ra=["get","plugins","editor","has","afterInit","enableCommand","insertTemplate"];var ia,xa;ia=ra,xa=139,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x3")];t[aa("0x2")][aa("0x4")]("Template")&&t[aa("0x2")][aa("0x1")]("TrackChangesEditing")[aa("0x6")](aa("0x0"))}}const la=["commands","afterInit","insertTableOfContents","plugins","registerElementLabel","get","_descriptionFactory","TrackChangesEditing"];var ua,da;ua=la,da=456,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this.editor;if(!t[ga("0x0")][ga("0x5")](ga("0x2")))return;t[ga("0x3")][ga("0x5")](ga("0x7")).enableCommand(ga("0x2"));const e=t[ga("0x3")][ga("0x5")](ga("0x7")),n=t.locale;e[ga("0x6")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["registerPostFixer","start","element","end","from","get","title-content","registerElementLabel","suggestion","newRange","model","document","forward","Title","isEqual","differ","schema","locale","afterInit","nodeBefore","getNearestSelectionRange","TrackChangesEditing","plugins","getChangedMarkers","createRange"];var ha,pa;ha=fa,pa=251,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x11")](){const t=this.editor;if(!t[ba("0x15")].has(ba("0xc")))return;const e=t[ba("0x15")][ba("0x4")](ba("0x14"));e._descriptionFactory[ba("0x6")]("title-content",(()=>Yo(t[ba("0x10")],"ELEMENT_TITLE"))),t[ba("0x9")][ba("0xa")][ba("0x18")]((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x9")][ba("0xa")][ba("0xe")][ba("0x16")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x7")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x[ba("0x2")][ba("0x12")];if(!a||!a.is(ba("0x1"),ba("0x5")))continue;if(!x[ba("0x0")].isTouching(x[ba("0x2")]))continue;const c=t[ba("0x9")][ba("0xf")][ba("0x13")](x[ba("0x2")],ba("0xb"));if(c&&c.isCollapsed){const t=n[ba("0x17")](x[ba("0x0")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","editor","TrackChangesEditing","afterInit","redo","enableCommand","undo","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=250,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x3")],e=t[ya("0x2")].get(ya("0x4"));t[ya("0x2")][ya("0x0")](ya("0x1"))&&(e[ya("0x7")](ya("0x8")),e.enableCommand(ya("0x6")))}}const Aa=["has","afterInit","TrackChangesEditing","enableCommand","get","plugins","editor"];var Ra,va;Ra=Aa,va=188,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get requires(){return[Mx]}[Ia("0x2")](){const t=this[Ia("0x0")];t[Ia("0x6")][Ia("0x1")]("TableCaptionEditing")&&t[Ia("0x6")][Ia("0x5")](Ia("0x3"))[Ia("0x4")]("toggleTableCaption")}}const La=["_getSuggestionBlocks","plugins","commandParams","type","model","handleListStyleCommand","selection","TrackChangesEditing","*Format:* set order to reversed","isFirstBlockOfListItem","afterInit","DocumentListUtils","handleListStartCommand","change","*Format:* set start index to %0","listStart","push","config","isListItemBlock","getSelectedBlocks","commandName","_getTranslationKeyForListStyle","reversed","*Change to:* %0","getAttribute","has","handleListReversedCommand","registerDescriptionCallback","format","editor","listStyle","enableCommand","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","_descriptionFactory","document","markMultiRangeBlockFormat","listType","startIndex","styles","bind","get","listReversed","numbered","DocumentListPropertiesUtils","getListTypeFromListStyleType","from","length","toUpperCase","replace","_LIST_","handleDescriptions"];var Na,wa;Na=La,wa=498,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x20")](){if(!this[Ma("0x33")][Ma("0x17")][Ma("0x2f")]("DocumentListPropertiesEditing"))return;const t=this.editor[Ma("0x27")][Ma("0xb")]("list.properties"),e=this.editor[Ma("0x17")][Ma("0xb")](Ma("0x1d"));t[Ma("0x9")]&&e[Ma("0x1")](Ma("0x0"),this.handleListStyleCommand[Ma("0xa")](this)),t.reversed&&e[Ma("0x1")](Ma("0xc"),this.handleListReversedCommand[Ma("0xa")](this)),t[Ma("0x8")]&&e[Ma("0x1")](Ma("0x25"),this[Ma("0x22")][Ma("0xa")](this)),e[Ma("0x4")][Ma("0x31")](this.handleDescriptions[Ma("0xa")](this))}[Ma("0x1b")](t,e={}){const n=this[Ma("0x33")][Ma("0x17")][Ma("0xb")](Ma("0x1d")),o=this[Ma("0x2")]();this[Ma("0x33")][Ma("0x1a")][Ma("0x23")]((()=>{n[Ma("0x6")](o,{commandName:Ma("0x0"),commandParams:[{type:e[Ma("0x19")]}],formatGroupId:Ma("0x0")})}))}[Ma("0x30")](t,e={}){const n=this.editor[Ma("0x17")][Ma("0xb")](Ma("0x1d")),o=this[Ma("0x33")][Ma("0x17")][Ma("0xb")](Ma("0x21")),s=this[Ma("0x16")]((t=>o[Ma("0x28")](t)&&"numbered"===t[Ma("0x2e")]("listType")));null!==s&&this[Ma("0x33")][Ma("0x1a")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0xc"),commandParams:[{reversed:e[Ma("0x2c")]}],formatGroupId:Ma("0xc")})}))}[Ma("0x22")](t,e={}){const n=this.editor[Ma("0x17")][Ma("0xb")](Ma("0x1d")),o=this[Ma("0x33")][Ma("0x17")][Ma("0xb")](Ma("0x21")),s=this[Ma("0x16")]((t=>o.isListItemBlock(t)&&Ma("0xd")===t.getAttribute(Ma("0x7"))));null!==s&&this[Ma("0x33")][Ma("0x1a")][Ma("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x25"),commandParams:[{startIndex:e[Ma("0x8")]}],formatGroupId:Ma("0x25")})}))}[Ma("0x15")](t){const e=this[Ma("0x33")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0x2a")]){case Ma("0x0"):o=Ma("0x2d"),s={type:Ma("0x32"),content:Yo(e,o,Yo(e,this[Ma("0x2b")](n[Ma("0x18")][0].type)))};break;case"listReversed":o=n[Ma("0x18")][0][Ma("0x2c")]?Ma("0x1e"):"*Format:* set order to regular",s={type:Ma("0x32"),content:Yo(e,o)};break;case Ma("0x25"):o=Ma("0x24"),s={type:Ma("0x32"),content:Yo(e,o,n[Ma("0x18")][0].startIndex)}}return s}[Ma("0x2")](){const t=this[Ma("0x33")].plugins.get(Ma("0x21"));let e=Array[Ma("0x10")](this[Ma("0x33")].model[Ma("0x5")][Ma("0x1c")][Ma("0x29")]());return e[Ma("0x26")](...t[Ma("0x3")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[Ma("0x17")][Ma("0xb")](Ma("0x21"));let n=Array.from(this[Ma("0x33")][Ma("0x1a")][Ma("0x5")][Ma("0x1c")].getSelectedBlocks()).filter(t);if(!n[Ma("0x11")])return null;n=e[Ma("0x3")](n);const o=[];for(const t of n)e[Ma("0x1f")](t)&&o[Ma("0x26")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[Ma("0x17")][Ma("0xb")](Ma("0xe"))[Ma("0xf")](t)[Ma("0x12")]()+Ma("0x14")+t[Ma("0x12")]()[Ma("0x13")](/-/g,"_")}}const Fa=["tableAlignment","accept","join","_handlePropertyChange","plugins","registerCustomCallback","tableCellVerticalAlignment","tableCellBorderStyle","subType","tableProperties","markBlockFormat","tableCellBackgroundColor","tableCellBorderWidth","tableBorderWidth","table","tableWidth","_getSuggestion","format","getContainedElement","tableCellHeight","getSelectionAffectedTableCells","tableHeight","start","findAncestor","discard","*Format:* change table cell properties","tableBorderColor","nodeAfter","document","enableCommand","batch","getSuggestions","tableCellProperties","editor","formatBlock","enqueueChange","tableCellBorderColor","get","selection","locale","_descriptionFactory","has","TrackChangesTableProperties","getSuggestionCallback","model","setAttribute","handleDiscardAction","commandParams","tableCellHorizontalAlignment","getAttribute","tableBackgroundColor","TableUtils","TrackChangesEditing","_suggestionFactory"];var Pa,Da;Pa=Fa,Da=264,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("0xf")]=[Ba("0x20"),"tableBorderStyle",Ba("0x13"),Ba("0x6"),Ba("0x15"),Ba("0x1b"),Ba("0x2")],this[Ba("0x26")]=[Ba("0x2a"),Ba("0xd"),Ba("0x12"),"tableCellPadding","tableCellWidth",Ba("0x19"),Ba("0x11"),Ba("0x0"),Ba("0xc")]}static get pluginName(){return Ba("0x30")}afterInit(){const t=this[Ba("0x27")][Ba("0xa")][Ba("0x2b")](Ba("0x4"));if(this[Ba("0x27")][Ba("0xa")][Ba("0x2f")]("TablePropertiesEditing")){for(const e of this[Ba("0xf")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0x32")].document[Ba("0x2c")].getFirstPosition()[Ba("0x1d")](Ba("0x14"));this[Ba("0x9")](e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x5")].registerCustomCallback(Ba("0x28"),Ba("0xf"),Ba("0x7"),t._suggestionFactory.getSuggestionCallback(Ba("0x28"),null,"discard")),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0xf"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this[Ba("0xf")],t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableProperties","join",(()=>!1))}if(this[Ba("0x27")].plugins[Ba("0x2f")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x26")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0xa")].get(Ba("0x3"))[Ba("0x1a")](this.editor[Ba("0x32")][Ba("0x22")][Ba("0x2c")]);this._handlePropertyChange(e,o,this[Ba("0x26")],Ba("0x26"),t,n)}));t[Ba("0x5")][Ba("0xb")](Ba("0x28"),"tableCellProperties","accept",t[Ba("0x5")][Ba("0x31")](Ba("0x28"),null,Ba("0x1e"))),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0x26"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this.tableCellProperties,t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableCellProperties",Ba("0x8"),(()=>!1))}t[Ba("0x2e")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Ba("0x9")](t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x2b")](Ba("0x4"));this[Ba("0x27")][Ba("0x32")][Ba("0x29")](r[Ba("0x24")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x34")](t,e,n){const o=e[0][Ba("0x1c")][Ba("0x21")],s=n[Ba("0x35")][0];this[Ba("0x27")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x33")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0xe")]){case Ba("0xf"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")][Ba("0x2d")],"*Format:* change table properties")};case Ba("0x26"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")].locale,Ba("0x1f"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x27")].plugins[Ba("0x2b")]("TrackChangesEditing");for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["getAttribute","addRange","TrackChangesEditing","trackChanges.trackFormatChanges","getUser","elementToElement","hasComments","insertion:join","after","CommentsRepository","trackChanges","init","refresh","filter","getCommentThread","suggestion:","fromCharCode","deleteContent","multi","removed","createPositionAt","splitPosition","getRange","value","addSuggestion","join","createdAt","ck-suggestion-marker-formatBlock","formatBlock:discard","removeMarkers","track-changes-adapter-missing-getsuggestion","batch","_rangeIsInLocalUserInsertion","getSuggestionCallback","clear","activeMarkers","dataToMarker","_checkSuggestionCorrectness","parent","documentSelection","markerNameToElements","_removeSuggestion","removeComment","formatGroupId","rootName","addMarkerName","applyOperation","_refreshSuggestionsChain","_findSuggestions","notReady","PendingActions","getLastMatchingPosition","addHighlight","position","isDocumentOperation","getSuggestions","splice","every","_customCallbacks","never","start","multipleBlocks","Users","move","lowest","ck-suggestion-marker-","acceptSuggestion","default","_trackFormatChanges","createPositionAfter","fetchCommentThread","discard","updateMarker","dataReady","suggestion","locale","insertion:","_suggestions","getNearestSelectionRange","has","insertion:discard","_suggestionState","track-changes-command-not-found","getFirstMarker","highest","substr","attributes","getIntersection","get","insertion:accept","subType","marker-count","external:","editingDowncast","removeMarker:suggestion:formatBlock","isRemovable","setSelection","isInsideObject","getChangedMarkers","editing","before","options","getChanges","isUndo","registerPostFixer","data","element","getRanges","item","clone","conversion","discardSuggestion","normal","commandName","stopListening","catch","authorName","set","detach","$marker","selection","markDeletion","model","isIntersectingWithRange","_getSuggestionData","writer","next","pluginName","addSuggestionData","isNextTo","insertContent","change:activeMarkers","ck-suggestion-marker--active","_setSuggestionRange","getAncestors","_createSuggestion","isAtEnd","_joinSuggestions","_breakSuggestionMarker","creator","track-changes-suggestion-data-mismatch","isCollapsed","rejected","isInContent","$graveyard","markerName","oldRange","_onDiscard","_splitMarkerName","open","isTouching","collaboration.channelId","deletion:join","from","markerReady","addMarker:suggestion:formatBlock","consume","createSelection","containsRange","previous","getSuggestion","insertion:chain","acceptSelectedSuggestions","deletion","group","isOwn","_adapter","removeClass","removeAttribute","for","_editor","insert","unbind","containsItem","formatInline:","_addSuggestionMarker","formatBlock:join","addCommentThread","@external","commentThread","high","markMultiRangeBlockFormat","getShiftedBy","isExternal","formatInline:accept","always","removeMarker","trackChangesCommand","rethrowUnexpectedError","_commentsRepository","some","unbindElementFromMarkerName","isMultiRange","delete","map","track-changes-suggestion-not-found","elementStart","formatBlock:","error-saving-suggestion-data-suggestion-discarded","update:suggestion","markBlockFormat","markerToHighlight","_getAuthorFromId","markInsertion","toViewElement","markMultiRangeInsertion","createRangeIn","consumable","ready","addMarker","_getExternalAuthor","authoredAt","ck-suggestion-marker","registerCustomCallback","includes","head","_setSuggestionData","skipNestingCheck","data-suggestion","author","isBlock","formatInline","updateSuggestion","discardAllSuggestions","_addThreadToSuggestion","isLimit","change:data","mapper","originalSuggestionId","track-changes-adapter-already-set","end","getWalker","range","add","containsRangeInObject","return","setAttribute","_defaultCallbacks","differ","isBefore","nodeBefore","isAtStart","_handleNewSuggestionMarker","buildSuggestion","suggestion-type","editor","_mergeNestedSuggestions","addMarker:suggestion","isLocal","_suggestionFactory","forward","deletion:","_updateSuggestionData","createRange","upcast","markInlineFormat","getCustomProperty","document","enableReadOnlyMode","remove","getFirstRange","$textProxy","adapter","execute","deletion:chain","forceDefaultExecution","push","root","reconvertMarker","hasCommentThread","suggestionLoaded","listenTo","containerElement","createPositionBefore","createElement","addClass","discardSelectedSuggestions","markers","getMultiRangeId","fire","isAfter","size","setTo","type","suggestionChanged","plugins","sort","length","_isForcedDefaultExecutionBlock","define","stop","suggestionUnloaded","_enabledCommands","nodeAfter","getAllAdjacentSuggestions","enableCommand","commands","values","isEqual","deletion:accept","name","schema","then","_joinWithAdjacentSuggestions","isObject","showSuggestionHighlights","_model","getDifference","formatBlock","getMarkers","_registerDefaultCallbacks","newRange","howMany","config","insertion","accept","change","backward","_saved","trackChanges.mergeNestedSuggestions","formatInline:chain","formatInline:join","split","acceptAllSuggestions"];var Ga,Ha;Ga=Ua,Ha=360,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,vs,Ms,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,vi,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Ix,Mx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x5b")](){return za("0x122")}constructor(t){function e(t){return t.map((t=>String[za("0x130")](t)))[za("0x139")]("")}super(t),this[za("0x51")](za("0x143"),[]),this.on(za("0x5f"),((e,n,o,s)=>{this[za("0x10e")][za("0x118")]((()=>{for(const e of[...s,...o])this[za("0x10e")].markers[za("0x2b")](e)&&t[za("0x3f")][za("0xe8")](e)}))})),this._descriptionFactory=new ss(this.editor[za("0x56")][za("0x109")],this[za("0xd1")][za("0x27")]),this[za("0x82")]=null,this[za("0xd5")]=new Va(this[za("0xd1")]),this[za("0x29")]=new Map,this[za("0x99")]=t[za("0xf9")][za("0x34")]("CommentsRepository"),this[za("0x100")]=new Set,this._model=this[za("0xd1")].model,this[za("0x2d")]=new WeakMap,this[za("0xfc")]=!1,t[za("0x115")][za("0xfd")](za("0x123"),za("0x1f")),this[za("0x20")]=t[za("0x115")][za("0x34")]("trackChanges.trackFormatChanges"),t[za("0x115")][za("0xfd")](za("0x11b"),!0),this[za("0xd2")]=t[za("0x115")][za("0x34")](za("0x11b")),this[za("0x97")]=new d(t,this[za("0x100")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,50,54])}[za("0x12b")](){const t=this[za("0xd1")];t.conversion.for(za("0x39"))[za("0xa5")]({model:za("0x26"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0x6d")]),o=[za("0xb0"),"ck-suggestion-marker-"+n];let s=3e3;return this[za("0x143")][za("0xb2")](t.markerName)&&(o[za("0xe6")](za("0x60")),s=3010),za("0x7f")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x4a")][za("0x85")]("dataDowncast")[za("0xc5")]((e=>{e.on(za("0xd3"),((e,n,o)=>{if(!o[za("0x41")][za("0x10d")])return;const s=n[za("0x48")];if(!s)return;const r=o[za("0xbf")][za("0xa8")](s);t[za("0x56")][za("0x109")][za("0x10c")](s)&&r&&!r.getCustomProperty("widget")&&r.is(za("0xec"))&&(0,x.toWidget)(r,o[za("0x59")])}),{priority:za("0x90")})})),t[za("0x4a")][za("0x85")]("dataDowncast")[za("0xa5")]({model:za("0x26"),view:(t,e)=>{if(!e[za("0x41")][za("0x10d")])return null;const{type:n}=this[za("0x70")](t[za("0x6d")]);return{classes:["ck-suggestion-marker",za("0x1d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x48")])return;if(o[za("0x48")].is(za("0x54")))return void s[za("0xab")][za("0x78")](o[za("0x48")],n[za("0x108")]);const r=s[za("0xbf")][za("0xa8")](o[za("0x48")]);if(!o.item.is(za("0x46"))||!t.model[za("0x109")][za("0xb8")](o[za("0x48")])||r[za("0xdc")](za("0x10")))return;const{id:i}=this[za("0x70")](o.markerName);s.writer[za("0xef")]([za("0xb0"),za("0x13b")],r),s.writer[za("0xc8")](za("0xb6"),i,r),s[za("0xbf")].bindElementToMarker(r,o.markerName),e&&(this[za("0x143")][za("0xb2")](o[za("0x6d")])?s.writer[za("0xef")](za("0x60"),r):s[za("0x59")][za("0x83")](za("0x60"),r));for(const e of t[za("0x56")][za("0xaa")](o[za("0x48")]).getItems())s.consumable[za("0x78")](e,n[za("0x108")]);s[za("0xab")][za("0x78")](o[za("0x48")],n.name)};t[za("0x4a")][za("0x85")]("dataDowncast")[za("0xc5")]((t=>{t.on(za("0x77"),((t,e,o)=>{o[za("0x41")][za("0x10d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x30")})})),t[za("0x4a")][za("0x85")]("dataDowncast").markerToData({model:"suggestion",view:(t,e)=>e.options[za("0x10d")]?null:{group:"suggestion",name:t[za("0x31")](11)}}),t[za("0x4a")].for(za("0xda"))[za("0x125")]({view:{name:za("0x26"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x12f")+t[za("0x120")](za("0xd0"))+":"+t[za("0x120")]("id");return t.getAttribute(za("0x37"))&&(n+=":"+t[za("0x120")](za("0x37"))),e[za("0xee")](za("0x53"),{"data-name":n})}}),t[za("0x4a")][za("0x85")]("upcast")[za("0x0")]({view:"suggestion"}),t[za("0x4a")][za("0x85")](za("0x39"))[za("0xc5")]((t=>{t.on(za("0x77"),n(),{priority:za("0x90")})})),t[za("0x4a")].for(za("0x39")).add((t=>{t.on(za("0x3a"),((t,e,n)=>{const o=n[za("0xbf")][za("0x4")](e[za("0x6d")]);if(o)for(const t of o)t[za("0xdc")](za("0x10"))||(n[za("0x59")][za("0x83")]([za("0xb0"),za("0x13b"),za("0x60")],t),n[za("0x59")][za("0x84")](za("0xb6"),t),n[za("0xbf")][za("0x9b")](t,e.markerName))}),{priority:za("0x90")})})),t[za("0x56")][za("0xdd")][za("0x44")]((e=>{let n=!1;const o=Array[za("0x75")](t[za("0x56")][za("0xdd")][za("0xca")][za("0x3e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x70")](x);if(za("0x26")!==o)continue;const u=this[za("0x29")][za("0x34")](l);if(null!=a.newRange)if("formatInline"==c&&(n=n||Xa(a.newRange,x,e,t[za("0x56")].schema)),a[za("0x113")].isCollapsed||za("0x6c")==a[za("0x113")][za("0xe7")][za("0x8")]||za("0x110")==c&&!Ja(a[za("0x113")])||za("0x7f")==c&&(qa(i=a[za("0x113")])||(r=i)[za("0x18")].parent==r.end[za("0xcc")]&&r[za("0x18")][za("0x64")]))e[za("0x96")](x),n=!0;else{if(!u||!u[za("0x6b")])continue;s.add(u)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t.model[za("0xdd")][za("0x44")]((e=>{let n=!1;for(const o of t.model.document.differ[za("0x42")]()){if("insert"!=o[za("0xf7")])continue;const s=o[za("0x11")][za("0x92")](o[za("0xfb")]);if(s.isAtEnd)for(const r of this[za("0x29")][za("0x105")]()){if(r.isMultiRange||!r[za("0x6b")])continue;if(za("0x110")!=r.type)continue;const i=r.getFirstRange();if(i[za("0x18")][za("0x2")]!=i[za("0xc2")][za("0x2")]&&i[za("0xc2")][za("0x106")](o[za("0x11")])){const o=t[za("0x56")][za("0xd9")](i[za("0x18")],s);e[za("0x24")](r[za("0x2f")](),{range:o}),n=!0}}}return n})),t.model[za("0xf1")].on(za("0xa3"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x70")](e[za("0x108")]),n=this[za("0x29")][za("0x34")](t);n&&n[za("0x9")](e.name)}})),t.model.document.on(za("0xbe"),(()=>{const e=Array[za("0x75")](t[za("0x56")][za("0xdd")][za("0xca")][za("0x3e")]())[za("0x12d")]((t=>za("0x26")===this[za("0x70")](t[za("0x108")])[za("0x80")]));if(0===e[za("0xfb")])return;e[za("0xfa")](((t,e)=>{const n=t[za("0x45")][za("0x6e")],o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x18")][za("0xcb")](o[za("0x18")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x70")](t);if(null===s[za("0x6e")]){const e=this[za("0xce")](t);o[za("0xc5")](e)}else{const t=this[za("0x29")][za("0x34")](e);null!==s[za("0x113")]||t[za("0x6b")]?(n.add(t[za("0xb3")]),o[za("0xc5")](t)):this[za("0x5")](t)}}o[za("0xf5")]>0&&this[za("0xb")](o);for(const t of n)this[za("0xf3")](za("0xf8"),t)})),t.model.on(za("0xa"),((e,n)=>{const o=n[0];if(!this[za("0x29")][za("0xf5")])return;if(!o[za("0x12")])return;if(o[za("0x13f")][za("0x43")]||!o[za("0x13f")][za("0xd4")])return;let s,r;switch(o[za("0xf7")]){case za("0x87"):s=t[za("0x56")][za("0x134")](o[za("0x11")]),r=s[za("0x92")](o[za("0x114")]);break;case za("0x11e"):s=t[za("0x56")][za("0x134")](o[za("0x135")]),r=t[za("0x56")][za("0x134")](o.moveTargetPosition);break;case za("0x1b"):s=t[za("0x56")][za("0x134")](o.targetPosition),r=s[za("0x92")](o[za("0x114")]);break;default:return}const i=t[za("0x56")].createRange(s,r);t[za("0x56")][za("0x118")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0x9c")])continue;if("formatInline"==t[za("0xf7")])continue;const n=t[za("0x45")]&&t[za("0x45")].multipleBlocks;(za("0x110")!=t[za("0xf7")]||za("0x11e")==o[za("0xf7")]&&!n)&&(e[za("0xc6")]||za("0x116")==t[za("0xf7")]&&e.isOwn||t[za("0xe0")]()[za("0x7a")](i)&&this[za("0x66")](t,s,r))}}))}),{priority:za("0x1c")}),t.model.on(za("0x131"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xe5")])return;if(this[za("0xfc")])return;if(!this.trackChangesCommand[za("0x137")])return;if(o[za("0x69")])return;const r=t.model[za("0x109")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x101")]&&r[za("0xbd")](i[za("0x101")])?null:r.getNearestSelectionRange(i,za("0xd6")),c=x[za("0xcc")]&&r[za("0xbd")](x[za("0xcc")])?null:r[za("0x2a")](x,za("0x119")),l=t[za("0x56")].createRange(a?a.start:i,c?c[za("0xc2")]:x);t[za("0x56")][za("0x118")]((e=>{this[za("0x55")](l);const n=t.model.schema[za("0x2a")](l[za("0x18")]);o.is(za("0x3"))?e.setSelection(n):o[za("0xf6")](n)})),e[za("0xfe")]()}),{priority:e.priorities[za("0x4c")]+10}),t.model.on(za("0x5e"),((e,n)=>{const o=n[n.length-1];o&&o[za("0xe5")]||this[za("0xfc")]||this[za("0x97")][za("0x137")]&&(t.model.change((()=>{let o=t.model[za("0x5e")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xc7")]=o[za("0x49")]();const s=o[za("0xc2")][za("0xcc")],r=t.model[za("0x109")];s&&r.isBlock(s)&&!r[za("0x10c")](s)&&(o=t[za("0x56")].createRange(o.start,t[za("0x56")][za("0x134")](s,za("0xc2")))),this[za("0xa7")](o)})),e[za("0xfe")]())}),{priority:za("0x90")}),this[za("0xd1")][za("0x104")][za("0xc5")](za("0x12a"),this.trackChangesCommand),this.enableCommand("trackChanges");const o=new p(t,this[za("0x29")]);t[za("0x104")].add(za("0x1e"),o),this[za("0x103")](za("0x1e"));const s=new C(t,this[za("0x29")]);t[za("0x104")].add(za("0x4b"),s),this.enableCommand(za("0x4b")),t.commands.add(za("0x11f"),new F(t,o,this._suggestions)),this[za("0x103")](za("0x11f")),t[za("0x104")].add(za("0xbb"),new F(t,s,this[za("0x29")])),this.enableCommand(za("0xbb")),t.commands[za("0xc5")](za("0x7e"),new U(t,o,this[za("0x29")])),this.enableCommand("acceptSelectedSuggestions"),t[za("0x104")][za("0xc5")](za("0xf0"),new U(t,s,this[za("0x29")])),this.enableCommand("discardSelectedSuggestions");const r=t.plugins[za("0x34")](za("0x129"));this[za("0xeb")](r,"addComment",((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0x8f")]&&1===n[za("0x8f")][za("0xfb")]&&this[za("0xd8")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(r,za("0x6"),((t,{threadId:e})=>{const n=this[za("0x29")][za("0x34")](e);n&&n[za("0x8f")]&&!n[za("0x8f")][za("0xfb")]&&this[za("0xd8")](e,{hasComments:!1})}),{priority:"low"})}set[za("0xe2")](t){if(this[za("0x82")])throw new e.CKEditorError(za("0xc1"),this);this[za("0x82")]=t}get adapter(){return this[za("0x82")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x29")][za("0x105")]())t&&!e[za("0x6b")]||n[za("0xe6")](e);return e?n.map((t=>t.toJSON())):n}[za("0x7c")](t){const n=this._suggestions[za("0x34")](t);if(!n)throw new e.CKEditorError(za("0x9f"),this);return n}hasSuggestion(t){return this._suggestions.has(t)}[za("0x5c")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[za("0x29")][za("0x34")](n)||this[za("0x63")](s,r,n,e,o);if(this[za("0xbc")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i.createdAt=t[za("0x13a")],o&&o[za("0x8e")]){const t=o["@external"],e=this._getExternalAuthor(t[za("0x50")]);i[za("0xaf")]=t[za("0x13a")],i[za("0xb7")]=e,i[za("0x93")]=!0}else i[za("0xaf")]=t.createdAt;switch(t[za("0x45")]&&(i[za("0x45")]=t[za("0x45")]),t[za("0x32")]&&(i[za("0x32")]=t[za("0x32")]),this[za("0x82")]&&this[za("0x82")][za("0x138")]||(i[za("0x11a")]=!0),this[za("0x2d")][za("0x34")](i)){case za("0xd"):this._suggestionState.set(i,za("0x25"));break;case za("0x76"):i.isInContent?(this[za("0x2d")][za("0x51")](i,za("0xac")),this[za("0xf3")](za("0xea"),i)):this._suggestionState[za("0x51")](i,za("0x133"))}return i}[za("0x1e")](t){this[za("0xe5")]((()=>{this.editor[za("0x56")].change((()=>{for(const e of t[za("0x102")]())e[za("0x117")]()}))}))}[za("0x4b")](t){this.forceDefaultExecution((()=>{this[za("0xd1")][za("0x56")][za("0x118")]((()=>{for(const e of t[za("0x102")]())e.discard()}))}))}[za("0x103")](t,n){const o=this.editor[za("0x104")][za("0x34")](t);if(!o)throw new e.CKEditorError(za("0x2e"),this,{commandName:t});this._enabledCommands.add(o),n&&o.on(za("0xe3"),((t,e)=>{this[za("0x97")].value&&(this[za("0xfc")]||e.length>0&&e[e[za("0xfb")]-1]&&e[e[za("0xfb")]-1][za("0xe5")]||(n(((...t)=>o[za("0xe3")](...t,{forceDefaultExecution:!0})),...e),t[za("0xfe")]()))}),{priority:za("0x90")})}forceDefaultExecution(t){let n,o;const s=this[za("0xfc")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xfc")]=!1),o&&e.CKEditorError[za("0x98")](o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x69")])return null;const s=this[za("0xd1")].plugins[za("0x34")](za("0x1a")).me;for(const{suggestion:e,meta:o}of this[za("0xc")](t,"insertion"))if(o[za("0x81")]){if(!o[za("0x5d")]){if(!this._mergeNestedSuggestions&&o[za("0xc6")])continue;return e}if(n==e[za("0x36")]){const n=e[za("0xe0")]();return n.start[za("0x106")](t.end)?this[za("0x61")](e,this[za("0x10e")][za("0xd9")](t.start,n.end)):this._setSuggestionRange(e,this[za("0x10e")].createRange(n[za("0x18")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x28")+n:"insertion",a=this[za("0xb4")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8b")](x,r,i,t),a}[za("0xa9")](t,n=za("0x132"),o={}){const s=this[za("0xd1")][za("0xf9")][za("0x34")]("Users").me,r=this[za("0xd5")][za("0x141")]("insertion",n,za("0x139"));for(const e of this[za("0x13")]())if(e.author.id==s.id&&"insertion"==e[za("0xf7")]&&e[za("0x36")]==n&&(r(e[za("0x47")](),t)||r(t,e[za("0x47")]()))){for(const n of t)e[za("0x121")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xc")](e,"insertion")){if(!o[za("0x81")])continue;let e=!0;for(const o of n[za("0x47")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x28")+n,c=this[za("0xb4")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x8b")](a,i,x,e,Zo.getMultiRangeId());return c}[za("0xdb")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x17")===this[za("0x20")]){const e=this._suggestionFactory.getSuggestionCallback(za("0xb9"),o,"accept");return this[za("0xe5")]((()=>e([t],n,s))),null}const r=this.editor[za("0xf9")][za("0x34")]("Users").me,i=[];if(za("0x95")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xc")](t,za("0x116")))n[za("0x81")]&&!n.isInsideObject&&i[za("0xe6")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x33")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xfb")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x.length&&this._model[za("0x118")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x141")]("formatInline",o,za("0x117"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x18")],a=t[za("0xc2")];for(const{suggestion:e,meta:n}of this[za("0xc")](t,"formatInline")){if(!n[za("0x81")])continue;if(e.subType!=o)continue;const s=e[za("0xe0")]();if(s[za("0x7a")](t,!0))return null;x=x[za("0xcb")](s[za("0x18")])?x:s[za("0x18")],a=a[za("0xf4")](s.end)?a:s[za("0xc2")],i?s[za("0x18")][za("0xcb")](i[za("0xe0")]()[za("0x18")])?(i[za("0x13d")](),i=e):e[za("0x13d")]():i=e}const c=this[za("0x10e")][za("0xd9")](x,a);if(i)this[za("0x61")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xb4")]({id:t,type:za("0x8a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x8b")](za("0x8a")+o,t,i,c)}}return null}[za("0xa4")](t,n,o=[],s=null,r={}){n[za("0x7")]||(n.formatGroupId=n.commandName),n[za("0x19")]=t.is(za("0xc4")),s=s||$a(n);const i=o[za("0x9e")]((t=>Qa(t,this[za("0x10e")]))),x=t.is(za("0xc4"))?t:Qa(t,this._model);if(za("0x17")===this[za("0x20")]){const t=this[za("0xd5")][za("0x141")](za("0x110"),s,za("0x117"));return this[za("0xe5")]((()=>t([x],n,r))),null}i[za("0xe6")](x);let a=!0;for(const t of i)if(!this[za("0x140")](t)){a=!1;break}if(a&&za("0x95")!==this[za("0x20")]){const t=this[za("0xd5")][za("0x141")](za("0x110"),s,za("0x117"));return this[za("0xe5")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x18")],u=x[za("0xc2")];for(const{suggestion:t,meta:e}of this[za("0xc")](x,za("0x110"))){if(!e.isOwn||e[za("0x5d")]||e.containsRangeInObject||e[za("0x3d")])continue;if(t[za("0x45")][za("0x7")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x36")]==s){if(o[za("0x7a")](x,!0))return null;l=l.isBefore(o[za("0x18")])?l:o[za("0x18")],u=u.isAfter(o[za("0xc2")])?u:o[za("0xc2")],c?o[za("0x18")][za("0xcb")](c[za("0xe0")]()[za("0x18")])?(c[za("0x13d")](),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const d=this[za("0xd1")][za("0xf9")][za("0x34")](za("0x1a")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x61")](c,this[za("0x10e")][za("0xd9")](l,u)),c;{const t=this[za("0xb4")]({id:g,type:za("0xa1")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x8b")](za("0xa1")+s,g,m,this[za("0x10e")][za("0xd9")](l,u)),t}}[za("0x91")](t,n,o=[],s=null,r={}){n[za("0x7")]||(n[za("0x7")]=n[za("0x4d")]);const i=t[0];n[za("0x19")]=i.is(za("0xc4")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x10e")]))),a=i.is(za("0xc4"))?t:t[za("0x9e")]((t=>Qa(t,this._model)));if(za("0x17")===this[za("0x20")]){const t=this[za("0xd5")][za("0x141")](za("0x110"),s,za("0x117"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0xe6")](...a);let c=!0;for(const t of x)if(!this[za("0x140")](t)){c=!1;break}if(c&&za("0x95")!==this[za("0x20")]){const t=this._suggestionFactory[za("0x141")](za("0x110"),s,"accept");return this[za("0xe5")]((()=>t(a,n,r))),null}const l=this.editor[za("0xf9")].get("Users").me;for(const t of this[za("0x13")]()){if(t[za("0xb7")].id!=l.id)continue;if(za("0x110")!=t.type||t[za("0x45")][za("0x7")]!=n[za("0x7")])continue;const e=t[za("0x36")]==s;for(let n=0;n<a[za("0xfb")];n++){const o=a[n];for(const s of t[za("0x111")]()){const r=s[za("0x136")]();if(o[za("0x106")](r)){e?(a[za("0x14")](n,1),n--):t[za("0x96")](s.name);break}}}}if(0==a[za("0xfb")])return null;const u=this[za("0xd5")][za("0x141")](za("0x110"),s,"join");for(const t of this[za("0x13")]())if(t[za("0xb7")].id==l.id&&za("0x110")==t.type&&t[za("0x45")][za("0x7")]==n[za("0x7")]&&t[za("0x36")]==s&&(u(t[za("0x47")](),a)||u(a,t[za("0x47")]()))){for(const e of a)t[za("0x121")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0xa1")+s,f=this[za("0xb4")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x8b")](m,d,g,t,Zo[za("0xf2")]());return f}markDeletion(t,n=null,o={}){if(t[za("0x69")])return null;const s=this[za("0xd1")][za("0xf9")][za("0x34")](za("0x1a")).me,r=new i.LiveRange(t[za("0x18")],t[za("0xc2")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x116")))if(e[za("0x81")]&&!e[za("0x5d")])if(t[za("0x9c")]){const e=t.getRanges()[za("0x12d")]((t=>za("0x6c")!=t.root.rootName));if(e.every((t=>r[za("0x7a")](t,!0)))&&t.discard(),e[za("0x9a")]((t=>t[za("0x7a")](r,!0)))){const t=this[za("0xd5")][za("0x141")](za("0x7f"),n,za("0x117"));return this[za("0xe5")]((()=>t([r],null,o))),null}}else{const e=r[za("0x33")](t[za("0xe0")]());null!==e&&t[za("0x6f")]([e],null,o)}if(r[za("0x52")](),r[za("0x69")]||"$graveyard"==r.root[za("0x8")])return null;let x=null,a=r[za("0x18")],c=r.end;for(const{suggestion:t,meta:e}of this[za("0xc")](r,za("0x7f")))if(e.isOwn)if(t[za("0x9c")]&&this[za("0xd2")]){let e=!0;for(const n of t[za("0x47")]()){if(n[za("0x7a")](r,!0))return t;r[za("0x7a")](n)||(e=!1)}e&&t[za("0x23")]()}else{const n=t[za("0xe0")]();if(n[za("0x7a")](r,!0)){if(!this[za("0xd2")]&&e.containsRangeInObject)continue;return t}a=a.isBefore(n[za("0x18")])?a:n.start,c=c[za("0xf4")](n.end)?c:n[za("0xc2")],x?n[za("0x18")].isBefore(x[za("0xe0")]()[za("0x18")])?(x[za("0x13d")](),x=t):t[za("0x13d")]():x=t}if(x)return this[za("0x61")](x,this[za("0x10e")][za("0xd9")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x10e")][za("0xd9")](a,c),i=s.id,x=n?za("0xd7")+n:za("0x7f"),l=this[za("0xb4")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8b")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0x132"),o={}){const s=this[za("0xd1")].plugins.get(za("0x1a")).me,r=t.map((t=>new i.LiveRange(t[za("0x18")],t[za("0xc2")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xc")](t,za("0x116")))n[za("0x81")]&&!n.isNextTo&&x[za("0xc5")](e);for(const e of x)if(e[za("0x9c")]){const s=e[za("0x47")]();if((!e[za("0x32")]||!e[za("0x32")].skipNestingCheck)&&s[za("0x15")]((t=>r.some((e=>e[za("0x7a")](t,!0)))))&&e[za("0x23")](),r.every((t=>s[za("0x9a")]((e=>e[za("0x7a")](t,!0)))))){const e=this[za("0xd5")][za("0x141")](za("0x7f"),n,"accept");return this[za("0xe5")]((()=>e(t,null,o))),null}}else{const t=e[za("0xe0")]();if(r[za("0x9a")]((e=>e.containsRange(t,!0)))&&e[za("0x23")](),r.every((e=>t.containsRange(e,!0)))){const t=this[za("0xd5")][za("0x141")](za("0x7f"),n,za("0x117"));return this[za("0xe5")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x141")](za("0x7f"),n,"join");let c=null;for(const t of this[za("0x13")]())if(t.author.id==s.id&&t[za("0x6b")]&&za("0x7f")==t[za("0xf7")]&&t.subType==n&&(a(t[za("0x47")](),r)||a(r,t[za("0x47")]())))if(c){if(t[za("0x8f")]&&t[za("0x8f")].length)continue;for(const e of t[za("0x47")]())c[za("0x57")](e)||c[za("0x121")](e);t[za("0x13d")]()}else{c=t;for(const e of r)t[za("0x57")](e)||t[za("0x121")](e)}if(c)return c;x[za("0x142")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x7f")))n.isOwn&&x[za("0xc5")](e);for(const t of x){const e=t[za("0x47")]();if((!o||!o[za("0xb5")])&&r[za("0x15")]((t=>e[za("0x9a")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x32")]||!t[za("0x32")][za("0xb5")])&&e.every((t=>r[za("0x9a")]((e=>e[za("0x7a")](t,!0)))))&&t[za("0x23")]()}const l=(0,e.uid)(),u=s.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x52")](),t[za("0x69")]||"$graveyard"==t[za("0xe7")][za("0x8")]||this[za("0x8b")](d,l,u,t,Zo[za("0xf2")]());return g}[za("0x61")](t,e){const n=t[za("0x2f")]();this[za("0x10e")][za("0x118")]((t=>{t.updateMarker(n,{range:e})}))}[za("0xbc")](t){const e=t.id,n=this[za("0xd1")].config[za("0x34")](za("0x73"));this._commentsRepository[za("0xe9")](e)||this[za("0x99")][za("0x8d")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x99")][za("0x12e")](e);o[za("0x88")](za("0x3b")),o[za("0x3b")]=!1,t[za("0x8f")]=o}[za("0x1")](t,n,o,s){if(t[za("0xf7")]!=n||t[za("0x36")]!=o||t[za("0x67")].id!=s)throw this[za("0xd1")][za("0xde")](za("0x68")),new e.CKEditorError(za("0x68"),this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xe0")]();if(n[za("0x106")](o))t[za("0x13d")]();else if(o.containsRange(n)){const s=this[za("0x10e")][za("0x134")](n.start.nodeBefore,za("0xc2"));this[za("0x61")](t,this[za("0x10e")][za("0xd9")](o[za("0x18")],s));const r=(0,e.uid)(),i=t[za("0x67")].id,x=t[za("0xf7")]+":"+t[za("0x36")];this[za("0xb4")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x45")],attributes:t[za("0x32")]});const a=this[za("0x10e")].createPositionAt(n[za("0xc2")][za("0x2")],za("0x128")),c=this[za("0x10e")][za("0xd9")](a,o[za("0xc2")]);this[za("0x8b")](x,r,i,c)}else if(o.containsPosition(n[za("0x18")])){const e=this[za("0x10e")].createPositionAt(n[za("0x18")][za("0xcc")],za("0xc2"));this[za("0x61")](t,this[za("0x10e")][za("0xd9")](o[za("0x18")],e))}else{const e=this[za("0x10e")][za("0x134")](n[za("0xc2")][za("0x2")],za("0x128"));this._setSuggestionRange(t,this[za("0x10e")].createRange(e,o.end))}}[za("0x140")](t){for(const{suggestion:e,meta:n}of this[za("0xc")](t,"insertion")){if(!n[za("0x81")])continue;const o=e[za("0x47")]();for(const e of o)if(!t[za("0x10f")](e)[za("0xfb")])return!0}return!1}_getAuthorFromId(t){const n=this.editor[za("0xf9")][za("0x34")](za("0x1a"))[za("0x124")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[za("0xae")](t){const e=this[za("0xd1")][za("0xf9")].get(za("0x1a")),n=(0,r.hashObject)(za("0x38")+t);return e[za("0x124")](n)||e.addUser({id:n,name:t})}[za("0x63")](t,e,n,o,s){const r=this[za("0xa6")](o),i=this[za("0xd5")][za("0xcf")](t,e,n,r,s,(t=>this[za("0xd8")](n,{attributes:t})));return this[za("0xeb")](i,za("0x117"),(()=>{this[za("0xd8")](n,{state:"accepted"})}),{priority:za("0x90")}),this[za("0xeb")](i,za("0x23"),(()=>{this._updateSuggestionData(n,{state:za("0x6a")})}),{priority:za("0x90")}),this._suggestions.set(n,i),this[za("0x2d")][za("0x51")](i,za("0xd")),i}[za("0x70")](t){const e=t[za("0x11e")](":");return{group:e[0],type:e[1],subType:e[za("0xfb")]>=5?e[2]:null,id:e[za("0xfb")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0xfb")]?e[5]:null}}[za("0x66")](t,n,o){const s=t.getFirstRange(),r=s[za("0x18")],i=s[za("0xc2")];this[za("0x61")](t,this[za("0x10e")][za("0xd9")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t.type+(t[za("0x36")]?":"+t.subType:"");this[za("0xb4")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x32")],data:t.data}),"formatBlock"==t.type&&(o=this[za("0x10e")][za("0xed")](o[za("0x2")])),this[za("0x8b")](c,x,a,this[za("0x10e")][za("0xd9")](o,i))}[za("0xc")](t,e=null){const n=[],o=this[za("0x10e")][za("0x109")],s=this[za("0xd1")][za("0xf9")][za("0x34")](za("0x1a")).me;for(const r of this[za("0x13")]())if(r.isInContent&&(!e||r[za("0xf7")]==e))for(const e of r[za("0x47")]()){const i=t.start[za("0x106")](e.end)||t[za("0xc2")][za("0x106")](e[za("0x18")]);if(i||t[za("0x33")](e)){const x=t[za("0x7a")](e)&&Ka(o,e[za("0x18")],t),a=e.containsRange(t)&&Ka(o,t[za("0x18")],e);n.push({suggestion:r,meta:{isOwn:s==r[za("0xb7")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x8b")](t,e,n,o,s){this[za("0x10e")][za("0x118")]((r=>{let i=za("0x12f")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xad")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x5")](t){const e=t[za("0x7b")],n=t[za("0x5a")];t[za("0x7b")]=null,null!=e&&(e[za("0x5a")]=null),t[za("0x5a")]=null,null!=n&&(n.previous=null),za("0xac")==this._suggestionState[za("0x34")](t)&&(this._suggestionState[za("0x51")](t,za("0x133")),this.fire(za("0xff"),t,e,n))}[za("0xb4")](t){const n=t.id,o=this[za("0x5c")](t);if(this[za("0x82")]&&this[za("0x82")][za("0x138")]){const s=this.editor[za("0xf9")].get(za("0xe")),r=o[za("0x126")],i=o[za("0x36")]?o.type+":"+o[za("0x36")]:o.type,x=this.editor.locale,a=s[za("0xc5")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x45")]||null,originalSuggestionId:t[za("0xc0")]||null,attributes:o[za("0x32")]};this[za("0x82")][za("0x138")](c)[za("0x10a")]((t=>{o[za("0x11a")]=!0,s.remove(a),t&&t[za("0x13a")]&&(this[za("0x29")].get(n)[za("0x13a")]=t.createdAt)}))[za("0x4f")]((t=>{throw(0,e.logWarning)(za("0xa2")),this[za("0xd1")][za("0x56")].enqueueChange({isUndoable:!1},(()=>{o[za("0x23")]()})),o[za("0x4e")](),this[za("0x29")][za("0x9d")](o.id),this._suggestionState.delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0xd1")][za("0xf9")][za("0x34")](za("0xe")),o=this[za("0x7c")](t);if(this._adapter&&this._adapter[za("0xba")])if(o[za("0x11a")]){const o=n[za("0xc5")](Yo(this.editor[za("0x27")],"PENDING_ACTION_SUGGESTION"));this[za("0x82")][za("0xba")](t,e)[za("0x10a")]((()=>{n[za("0xdf")](o)}))}else o.on("change:_saved",(()=>{this[za("0xd8")](t,e)}))}[za("0x58")](t){if(!this[za("0x82")]||!this[za("0x82")][za("0x7c")])throw new e.CKEditorError(za("0x13e"),this);return this._adapter.getSuggestion(t)}[za("0xce")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x70")](t),r=this[za("0x29")][za("0x34")](e)||this[za("0x63")](n,o,e,s,{});switch(this[za("0x1")](r,n,o,s),this[za("0x2d")][za("0x34")](r)){case za("0xd"):this[za("0x58")](e)[za("0x10a")]((t=>{let n=Promise.resolve();t[za("0x126")]&&(n=this[za("0x99")][za("0x22")]({channelId:this[za("0xd1")].config[za("0x34")](za("0x73")),threadId:e})),n[za("0x10a")]((()=>{this[za("0x5c")](t)[za("0x11a")]=!0}))})),this._suggestionState[za("0x51")](r,za("0x76"));break;case"removed":this._updateSuggestionData(e,{state:za("0x71")});case za("0x25"):this._suggestionState[za("0x51")](r,za("0xac")),this[za("0xf3")]("suggestionLoaded",r);break;case za("0xac"):this[za("0xf3")]("suggestionChanged",r)}return r[za("0x9")](t),r}_refreshSuggestionsChain(t){const e=Array[za("0x75")](t)[za("0x12d")]((t=>!t[za("0x9c")])),n=this.getSuggestions({skipNotAttached:!0})[za("0x12d")]((t=>!t[za("0x9c")])),o=n[za("0x12d")]((e=>!t.has(e))),s=new Map(n.map((t=>[t,this[za("0xd5")].getSuggestionCallback(t[za("0xf7")],t[za("0x36")],"chain")]))),r=new Map(n[za("0x9e")]((t=>[t,t.getFirstRange()]))),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.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0xfb")];t++){const n=e[t];!x[za("0x2b")](n)&&n[za("0x7b")]&&(n[za("0x7b")][za("0x5a")]===n&&(n[za("0x7b")][za("0x5a")]=null),n[za("0x7b")]=null),!i[za("0x2b")](n)&&n.next&&(n.next[za("0x7b")]===n&&(n[za("0x5a")][za("0x7b")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0xfb")];o++){const n=c(t,e[o]);n&&(n[0][za("0x5a")]=n[1],n[1].previous=n[0],i.add(n[0]),x[za("0xc5")](n[1]))}}function c(t,e){if(t[za("0xb7")].id!==e.author.id)return null;const n=s.get(t)(t,e,r.get(t),r[za("0x34")](e));return n&&s[za("0x34")](e)(t,e,r.get(t),r.get(e))?n[1][za("0x8f")]&&n[1][za("0x8f")].length?null:n:null}}[za("0x10b")](t){const e=Array[za("0x75")](t),n=this[za("0x13")]({skipNotAttached:!0}),o=n[za("0x12d")]((e=>!t[za("0x2b")](e))),s=new Map(e[za("0x9e")]((t=>[t,this[za("0xd5")].getSuggestionCallback(t[za("0xf7")],t[za("0x36")],za("0x139"))]))),r=new Map(n[za("0x9e")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0xfb")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xfb")];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("0xfb")];i++){const o=n[i];if(o[za("0xf7")]!==e[za("0xf7")]||o[za("0xb7")].id!==e.author.id||o[za("0x36")]!==e.subType)continue;const x=s[za("0x34")](e),a=r[za("0x34")](e),c=r[za("0x34")](o),l=e.commentThread&&e[za("0x8f")][za("0xfb")],u=o.commentThread&&o[za("0x8f")].length;if(!l&&x(c,a))return t._joinSuggestions(o,e),r.delete(e),!0;if(!u&&x(a,c))return t[za("0x65")](e,o),r[za("0x9d")](o),!0}return!1}}[za("0x65")](t,e){if(t.isMultiRange)for(const n of e[za("0x47")]())t[za("0x121")](n);else{const n=e[za("0xe0")]()[za("0xc2")];this[za("0x61")](t,this[za("0x10e")][za("0xd9")](t[za("0xe0")]().start,n))}e[za("0x13d")]()}}class Va{constructor(t){this[za("0x86")]=t,this._model=t.model,this[za("0x16")]=new Map,this[za("0xc9")]=new Map,this[za("0x112")]()}[za("0xcf")](t,e,n,o,s,r){return new Zo(this[za("0x10e")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x141")](t,e,za("0x117"))(...n),onDiscard:(...n)=>this[za("0x141")](t,e,za("0x23"))(...n)})}[za("0xb1")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0x51")](s,o)}[za("0x141")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x16")].get(o)||this[za("0xc9")][za("0x34")](t+":"+n)}[za("0x112")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0x18")][za("0xcb")](e[za("0x18")])?1:-1)),this[za("0x10e")].change((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n.end[za("0x2")]==n[za("0x18")][za("0x101")]?e.createSelection(n[za("0x18")][za("0x101")],"on"):e[za("0x79")](n),this[za("0x10e")][za("0x131")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x118")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x9e")]((t=>(qa(t)&&(t=this[za("0x10e")][za("0xd9")](t.end)),t)))[za("0x12d")]((t=>za("0x6c")!==t[za("0xe7")].rootName));if(r[za("0xfb")]<1)return;const x=Array[za("0x75")](this[za("0x10e")][za("0xdd")][za("0x54")][za("0x47")]())[za("0x9e")]((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this[za("0x86")][za("0x104")][za("0x104")]())t[za("0x12c")]();s.push({forceDefaultExecution:!0}),this._editor.execute(o,...s);const a=x[za("0x12d")]((t=>za("0x6c")!=t[za("0xe7")][za("0x8")]));a[za("0xfb")]>0&&n[za("0x3c")](a);for(const t of x)t[za("0x52")]()}))},o=(t,e)=>1==t[za("0xfb")]&&1==e[za("0xfb")]&&t[0][za("0xc2")][za("0x106")](e[0][za("0x18")]),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0x10e")])?[e,t]:null;this[za("0xc9")].set(za("0x35"),t),this[za("0xc9")][za("0x51")](za("0x2c"),e),this[za("0xc9")].set(za("0x127"),o),this[za("0xc9")][za("0x51")](za("0x7d"),s),this[za("0xc9")].set(za("0x107"),e),this[za("0xc9")].set("deletion:discard",t),this[za("0xc9")][za("0x51")](za("0x74"),o),this[za("0xc9")][za("0x51")](za("0xe4"),s),this._defaultCallbacks[za("0x51")](za("0x94"),n),this[za("0xc9")][za("0x51")]("formatInline:discard",t),this._defaultCallbacks[za("0x51")](za("0x11d"),o),this._defaultCallbacks[za("0x51")](za("0x11c"),t),this[za("0xc9")][za("0x51")]("formatBlock:accept",n),this._defaultCallbacks[za("0x51")](za("0x13c"),t),this._defaultCallbacks[za("0x51")](za("0x8c"),o),this[za("0xc9")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x2")][za("0x62")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xe7")]==o)return!1;if(!n[za("0x89")](o))return!1;if(t.isObject(o)||t[za("0xbd")](o))return!0}return!1}function qa(t){return t[za("0xc2")].parent==t[za("0x18")][za("0x101")]&&t[za("0xc2")][za("0xcd")]}function Xa(t,e,n,o){const s=t=>!t[za("0x48")].is(za("0xe1"))&&!o.isObject(t[za("0x48")]),r=t[za("0x18")].getLastMatchingPosition(s),i=t[za("0xc2")][za("0xf")](s,{direction:"backward"});return!(t[za("0x18")][za("0x106")](r)&&t.end[za("0x106")](i)||(r[za("0xcb")](i)?n[za("0x24")](e,{range:n[za("0xd9")](r,i)}):n[za("0x96")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x18")][za("0x101")];return e&&e.is(za("0x46"))}function Qa(t,e){const n=e[za("0x109")][za("0x10c")](t)||e.schema.isSelectable(t);return e[za("0xd9")](e[za("0x134")](t,za("0x40")),n?e[za("0x21")](t):e[za("0x134")](t,za("0xc2")))}function Za(t,e,n,o,s){if(n[za("0xc2")][za("0x106")](o[za("0x18")]))return!0;if(t.type!=e.type)return!1;if(!n[za("0xc2")][za("0x72")](o[za("0x18")]))return!1;const r=s[za("0xd9")](n[za("0xc2")],o[za("0x18")])[za("0xc3")]();for(const t of r)if([za("0xa0"),"elementEnd"][za("0xb2")](t[za("0xf7")])&&s.schema[za("0xbd")](t[za("0x48")]))return!1;return!0}const Ya=["stopListening","canDiscard","view","destroy","model","bind","_pendingAction","isEnabled","discardSuggestion","_removePendingAction","commands","plugins","unbind","canAccept","_discardCommand","execute","remove","isDirty","PendingActions","canEditAt","_acceptCommand","get","add","commentThreadController","acceptSuggestion","PENDING_ACTION_SUGGESTION","listenTo","_setPendingAction","_editor","getRanges"];var tc,ec;tc=Ya,ec=445,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x9")]=e,this[nc("0x7")]=n,this[nc("0x1c")]=o,this[nc("0x3")]=t,this[nc("0x19")]=t.commands[nc("0x1a")](nc("0x1d")),this[nc("0x13")]=t[nc("0xf")][nc("0x1a")](nc("0xd")),this.view[nc("0xa")](nc("0xc")).to(this[nc("0x19")],this._discardCommand,((t,e)=>t||e)),this[nc("0x7")][nc("0xa")](nc("0x12")).to(this._acceptCommand,nc("0xc"),(t=>t&&this[nc("0x3")].model[nc("0x18")](e[nc("0x4")]()))),this[nc("0x7")][nc("0xa")](nc("0x6")).to(this[nc("0x13")],nc("0xc"),(t=>t&&this[nc("0x3")][nc("0x9")][nc("0x18")](e[nc("0x4")]()))),this[nc("0xb")]=null,n[nc("0x16")]&&this[nc("0x2")](),this[nc("0x1")](n,"acceptSuggestion",(()=>this[nc("0x1d")]())),this[nc("0x1")](n,"discardSuggestion",(()=>this[nc("0xd")]())),this[nc("0x1")](n,"change:isDirty",(()=>{n[nc("0x16")]?this._setPendingAction():this[nc("0xe")]()}))}[nc("0x1d")](){this[nc("0x19")].execute(this[nc("0x9")].id)}[nc("0xd")](){this[nc("0x13")][nc("0x14")](this[nc("0x9")].id)}[nc("0x8")](){this[nc("0x7")][nc("0x11")](nc("0xc")),this[nc("0x7")][nc("0x11")]("canAccept"),this.view[nc("0x11")](nc("0x6")),this[nc("0x5")](),this[nc("0x1c")].destroy(),this[nc("0xb")]&&this[nc("0xe")]()}[nc("0x2")](){const t=Yo(this[nc("0x3")].locale,nc("0x0"));this[nc("0xb")]=this[nc("0x3")].plugins[nc("0x1a")](nc("0x17"))[nc("0x1b")](t)}[nc("0xe")](){null!==this[nc("0xb")]&&this[nc("0x3")][nc("0x10")][nc("0x1a")](nc("0x17"))[nc("0x15")](this[nc("0xb")]),this[nc("0xb")]=null}}const sc=["updateComment","commentThreadInputView","canAccept","_localUser","removeComment","isReadOnly","value","editor","destroy","set","focus","delegate","_createCommentViews","element","descriptionParts","cancel","hasDirtyComment","commentThread","isDirty","fire","_model","bind","length","commentInputView","commentsListView","isEnabled","assign","canDiscard","editorConfig","_config","addComment","_createCommentThreadInputView","setData","submit","authoredAt","locale","isActive","showInput"];var rc,ic;rc=sc,ic=379,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x2")]=null,this[xc("0xa")](xc("0x25"),!1),this.set(xc("0x23"),e[xc("0x23")]),this[xc("0x16")](xc("0x23")).to(e),this.set(xc("0xf"),[]),this[xc("0xa")](xc("0x13"),!1),this[xc("0xa")](xc("0x1a"),!1),this.set(xc("0x3"),!1),this[xc("0xa")](xc("0x1c"),!1),this[xc("0x15")]=e,this[xc("0x4")]=n,this[xc("0x1e")]=o,o.disableComments?this.set(xc("0x17"),1):this._createCommentViews()}[xc("0xb")](){this[xc("0xe")][xc("0xb")]()}[xc("0x9")](){this[xc("0x19")]&&this[xc("0x19")].destroy(),this[xc("0x2")]&&this[xc("0x2")][xc("0x9")](),super.destroy()}[xc("0xd")](){const{CommentsListView:t}=this[xc("0x1e")];this.commentsListView=new t(this[xc("0x24")],this[xc("0x15")][xc("0x12")],Object[xc("0x1b")]({CommentView:this._config.CommentView},this[xc("0x1e")])),this[xc("0x19")][xc("0xc")](xc("0x5")).to(this),this[xc("0x19")].delegate(xc("0x1")).to(this),this[xc("0x19")][xc("0x16")](xc("0x25")).to(this),this[xc("0xa")]("length",this[xc("0x19")][xc("0x17")]+1),this[xc("0x16")]("length").to(this[xc("0x19")],xc("0x17"),(t=>t+1)),this[xc("0x2")]=this[xc("0x20")](),this.on(xc("0x5"),(()=>this[xc("0xb")]())),this[xc("0x16")](xc("0x13")).to(this.commentsListView,xc("0x11"),this[xc("0x2")][xc("0x18")],xc("0x7"),((t,e)=>t||!!e))}[xc("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[xc("0x4")],this[xc("0x1e")][xc("0x1d")]),n=e[xc("0x18")];return e.bind(xc("0x0")).to(this,xc("0x25"),this[xc("0x15")][xc("0x12")],xc("0x6"),n,xc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x22"),((t,e)=>{this[xc("0x14")](xc("0x1f"),e),n[xc("0x8")][xc("0x21")]("")})),n.on(xc("0x10"),(()=>this[xc("0xb")]())),n[xc("0x16")]("disabledSubmit").to(this._model[xc("0x12")],xc("0x6")),e}}const cc=["name","span","querySelector","discardButton","locale","getExternalSuggestionNote","EXTERNAL_IMPORT_WORD_AVATAR","<p>",'"></span>',"_model","children","color","discardSuggestion","isActive","check","acceptSuggestion","createElement","attributes","</p>","ck-suggestion--discard","description","bind","Discard suggestion","split","getTemplate","@external","setTemplate","_descriptionElement","ck-suggestion-wrapper","innerHTML","ck-annotation__actions","canAccept","ck-suggestion__info","importWord","disableComments","formatDateTime","EXTERNAL_SUGGESTION","push","userView","author","div","EXTERNAL_IMPORT_WORD_SUGGESTION","creator","isExternal","editorReady","ck-suggestion__info-name","ck-annotation",'<span class="ck-suggestion-type">',"extendTemplate","fire","authoredAt",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__user","ck-suggestion","acceptButton",'" title="',"execute","commentThread","title","set","ck-suggestion--accept","_config","_createButton","element","content","type","delegate","ck-annotation__main","commentThreadInputView","commentsListView","</span>","ck-annotation__info-name","ck-suggestion__actions","innerText","source","editorDestroyed","getUserViewNotificationText","isEnabled"];var lc,uc;lc=cc,uc=158,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x3f"),""),this.bind(dc("0x3f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x3f")]:"")),this[dc("0x13")](dc("0x12")).to(this,"descriptionParts",this,dc("0xb"),((t,e)=>{let n="";for(const e of t)n+=dc("0x5")+mc(e[dc("0x3e")],e[dc("0x9")])+dc("0x10");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x19")]=null,this[dc("0x34")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[dc("0xc")],dc("0x3a"),dc("0xd"),"sw"),this[dc("0x34")][dc("0x13")](dc("0x4b")).to(this,dc("0x1d")),this[dc("0x1")]=this[dc("0x3c")](Yo(e,dc("0x14")),t.icons.cancel,dc("0x11"),dc("0xa"),"sw"),this[dc("0x1")][dc("0x13")](dc("0x4b")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[dc("0x7")][dc("0x25")],this[dc("0x4a")]()),this[dc("0x24")][dc("0x2e")]({attributes:{class:["ck-suggestion__user",dc("0x32")]}}),this[dc("0x18")](this[dc("0x16")]())}[dc("0x16")](){const t=this.bindTemplate,e=[{tag:dc("0x26"),attributes:{class:[dc("0x1e"),"ck-annotation__info"]},children:[{tag:dc("0x4d"),children:[{text:this[dc("0x24")][dc("0x4c")]}],attributes:{class:[dc("0x2b"),dc("0x45")]}},{tag:"time",attributes:{datetime:t.to(dc("0x30")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[dc("0x3b")][dc("0x21")](t)))}]}]},{tag:"div",attributes:{class:[dc("0x46"),dc("0x1c")]},children:[this[dc("0x34")],this.discardButton]},{tag:dc("0x26"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x7")].isExternal&&e[dc("0x23")]({tag:dc("0x26"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3")]()}]});const n={tag:"div",attributes:{class:[dc("0x1a"),t.if(dc("0xb"),"ck-suggestion-wrapper--active"),t.to(dc("0x3f"),(t=>"ck-suggestion-"+t)),this._config[dc("0x20")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[dc("0x7")].id,"data-thread-id":this[dc("0x7")][dc("0x37")].id,"data-author-id":this[dc("0x7")][dc("0x25")].id,tabindex:-1},children:[{tag:dc("0x26"),attributes:{class:[dc("0x33"),dc("0x2c")]},children:[this[dc("0x24")],{tag:"div",attributes:{class:["ck-suggestion__main",dc("0x41")]},children:e}]}]};return this[dc("0x43")]&&this.commentThreadInputView&&(n[dc("0x8")].push(this[dc("0x43")],this[dc("0x42")]),this.commentsListView[dc("0x40")](dc("0x2a")).to(this),this[dc("0x43")][dc("0x40")](dc("0x49")).to(this),this.commentThreadInputView[dc("0x40")]("editorReady").to(this),this[dc("0x42")][dc("0x40")](dc("0x49")).to(this)),n}render(){super.render(),this._descriptionElement=this[dc("0x3d")][dc("0x0")](".ck-annotation__content-wrapper"),this._descriptionElement[dc("0x1b")]=this[dc("0x12")],this.on("change:description",((t,e,n)=>{this[dc("0x19")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2")]);return i[dc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x2e")]({attributes:{class:n}}),i.on(dc("0x36"),(()=>{this[dc("0x2f")](o,this[dc("0x7")].id)})),i}[dc("0x3")](){return"importWord"===this[dc("0x7")][dc("0xf")][dc("0x17")].source?Yo(this[dc("0x2")],dc("0x27")):Yo(this.locale,dc("0x22"))}[dc("0x4a")](){return this[dc("0x7")][dc("0x29")]?dc("0x1f")===this._model[dc("0xf")][dc("0x17")][dc("0x48")]?Yo(this[dc("0x2")],dc("0x4"),this[dc("0x7")][dc("0x28")].name):Yo(this.locale,"EXTERNAL_AVATAR",this[dc("0x7")][dc("0x28")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x15")]("*").map(((t,e)=>e%2!=0?dc("0x2d")+fc(t)+dc("0x44"):fc(t))).join(""),e&&(n+=dc("0x31")+e.value+dc("0x35")+e[dc("0x38")]+dc("0x6")),n}function fc(t){const e=document[dc("0xe")](dc("0x4d"));return e[dc("0x47")]=t,e.innerHTML}const hc=["commentThread","comments.maxCommentCharsWhenCollapsed","type","getByInnerView","isOn","_handleSuggestionControllerDelayed","CommentView","getAllAdjacentSuggestions","head","_descriptionFactory","arrowView","acceptAllSuggestions","model","acceptSelectedSuggestions","getDescriptions","getMarkerNames","innerView","push","acceptButton","descriptionParts","_viewToController","discardSelectedSuggestions","buttonView","_disableComments","commands","createAnnotation","has","change:activeAnnotations","editing","_initializeController","Annotations","init","EditorAnnotations","actionView","_destroyController","destroy","Discard all selected suggestions","_bindAnnotationToEditors","from","mainView","refreshSelectedViews","hasSuggestion","Track changes","lowest","isDirty","get","Accept all selected suggestions","isMultiRange","discardButton","_createUIButton","delete","bind","clear","Accept all suggestions","some","requires","suggestion-","unbind","source","trackChanges.disableComments","getRanges","values","activeMarkers","change:previous","focus","suggestionUnloaded","_suggestionToController","size","registerAnnotation","getSuggestion","trackChanges","locale","config","define","filter","_handleControllerBuffer","TrackChangesUI","comments","createAnnotationView","view","execute","add","length","isEnabled","_updateController","addSourceCollector","CommentsUI","getMarkers","editor","button","_refreshActiveMarkers","plugins","isInContent","activeAnnotations","addComment","commandName","set","SuggestionThreadView","_annotationViews","separator","discardAllSuggestions","listenTo","trackChanges.SuggestionThreadView","map","CommentsRepository","toMany","getJoined","TrackChangesEditing"];var pc,bc;pc=hc,bc=448,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x27")](){return[Wa,r.Users,Ec("0x58"),Ec("0xe"),Ec("0x10")]}static get pluginName(){return Ec("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x4")]=new Map,this[Ec("0x52")]=new Map,this[Ec("0x3b")]=new Map;const e=this[Ec("0x48")][Ec("0x38")];e[Ec("0x39")](Ec("0x56"),gc),e[Ec("0x39")](Ec("0x2b"),!1),this[Ec("0x7")]=e[Ec("0x1d")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x3b")][Ec("0x33")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3b")]){const n=this._suggestionToController[Ec("0xa")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0xd")](t)}this.editor[Ec("0x4b")][Ec("0x1d")](Ec("0x10"))[Ec("0x18")](),this[Ec("0x4a")](),this[Ec("0x3b")][Ec("0x24")]()}),10),this[Ec("0x3b")].set(t,e)}[Ec("0xf")](){const t=this.editor,e=t[Ec("0x4b")].get(Ec("0x5b")),n=t.plugins[Ec("0x1d")](Ec("0xe")),o=t[Ec("0x4b")].get(Ec("0x10")),s=t[Ec("0x4b")][Ec("0x1d")](Ec("0x58"));t.ui.componentFactory[Ec("0x41")](Ec("0x36"),(t=>this[Ec("0x21")](t))),o[Ec("0x45")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x32")])){const o=e[Ec("0x63")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x1f")]){s.push(...t[Ec("0x2c")]());continue}const e=t.getFirstRange();if(s[Ec("0x42")]>0){const t=s[0][Ec("0x5a")](e);if(t){s[0]=t;continue}}s[Ec("0x1")](e)}t[Ec("0x1")]([n.view,s])}return t})),this[Ec("0x55")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x55")](e,Ec("0x2f"),((t,n,o,s)=>{e[Ec("0x4c")]&&(null==o?(this[Ec("0x44")](s[Ec("0x64")]),this[Ec("0x61")](e,!1)):(this[Ec("0x44")](o[Ec("0x64")]),this[Ec("0x61")](e,!0)))})),null===e.previous?this[Ec("0x61")](e,!1):this._updateController(e.head)})),this[Ec("0x55")](e,Ec("0x31"),((t,e,n)=>{this.stopListening(e,Ec("0x2f")),this[Ec("0x3b")][Ec("0x22")](e);const o=n?n[Ec("0x64")]:e,s=this[Ec("0x32")][Ec("0x1d")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x12")](e)})),this[Ec("0x55")](e,"suggestionChanged",((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x55")](n,Ec("0xb"),(()=>{this[Ec("0x4a")]()})),this[Ec("0x55")](s,Ec("0x4e"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x19")](n))return;const s=e[Ec("0x35")](n);this._suggestionToController[Ec("0x1d")](s)[Ec("0x3f")][Ec("0x30")]()}),{priority:Ec("0x1b")})}_refreshActiveMarkers(){const t=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")]("Annotations"),e=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")](Ec("0x5b")),n=Array[Ec("0x16")](t[Ec("0x4d")],(t=>t[Ec("0x0")]))[Ec("0x3a")]((t=>this[Ec("0x4")][Ec("0xa")](t))),o=[];for(const t of n){const e=this[Ec("0x4")][Ec("0x1d")](t)[Ec("0x68")].getAllAdjacentSuggestions();o[Ec("0x1")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6b")]()]),[]))}e[Ec("0x2e")]=o}[Ec("0x21")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x48")][Ec("0x8")][Ec("0x1d")]("trackChanges"),r=Yo(t,Ec("0x1a"));n[Ec("0x6")].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[Ec("0x6")][Ec("0x23")]("isOn").to(o,"value"),n[Ec("0x6")].on(Ec("0x40"),(()=>{o.execute(),this[Ec("0x48")][Ec("0xc")][Ec("0x3f")][Ec("0x30")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x36")}},{type:Ec("0x53")},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x25")),commandName:Ec("0x67")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1e")),commandName:Ec("0x69")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x54")}},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x14")),commandName:Ec("0x5")}}];for(const t of x){let e={type:Ec("0x53")};if(t.model){const n=new s.Model(t[Ec("0x68")]),o=this[Ec("0x48")][Ec("0x8")].get(n.commandName);n[Ec("0x23")](Ec("0x60"),Ec("0x43")).to(o,"value","isEnabled"),e={type:t[Ec("0x5e")],model:n}}i[Ec("0x41")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x68")]))[Ec("0x57")]((t=>this[Ec("0x48")][Ec("0x8")][Ec("0x1d")](t.model[Ec("0x4f")]))),c=n[Ec("0x6")];return c.actionView[Ec("0x29")](Ec("0x43")),c[Ec("0x66")][Ec("0x29")](Ec("0x43")),c[Ec("0x11")][Ec("0x23")](Ec("0x43")).to(o,Ec("0x43")),c[Ec("0x66")].bind("isEnabled")[Ec("0x59")](a,"isEnabled",((...t)=>t[Ec("0x26")]((t=>t)))),n.on("execute",(t=>{this.editor.execute(t[Ec("0x2a")].commandName),this[Ec("0x48")].editing[Ec("0x3f")][Ec("0x30")]()})),n}[Ec("0xd")](t){const e=this[Ec("0x48")],n=e[Ec("0x38")],o=e[Ec("0x4b")].get(Ec("0xe")),s=e[Ec("0x4b")][Ec("0x1d")](Ec("0x58")),i=e[Ec("0x4b")][Ec("0x1d")](Ec("0x10")),x=e[Ec("0x4b")].get(r.Users).me,a=n[Ec("0x1d")](Ec("0x36"))[Ec("0x51")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1d")](Ec("0x46"));let u,d;this[Ec("0x52")][Ec("0xa")](t.id)?(d=this[Ec("0x52")].get(t.id),u=d.mainView):(u=new a(e[Ec("0x37")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x1d")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x1d")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x1d")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x1d")](Ec("0x5d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x1d")]("locale")),CommentView:n.get(Ec("0x3d"))[Ec("0x62")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x2")].on(Ec("0x40"),(()=>{e.editing[Ec("0x3f")][Ec("0x30")]()})),u[Ec("0x20")].on(Ec("0x40"),(()=>{e[Ec("0xc")][Ec("0x3f")].focus()})),d=o[Ec("0x3e")](this[Ec("0x48")][Ec("0x37")],u),d[Ec("0x23")]("isDirty").to(u,Ec("0x1c")),d[Ec("0x23")]("length").to(u),d[Ec("0x23")](Ec("0x5e")).to(u,"type",(t=>Ec("0x28")+t)),this[Ec("0x52")][Ec("0x50")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5c")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x3a")]((t=>t[Ec("0x4c")]));u[Ec("0x3")]=e[Ec("0x4b")][Ec("0x1d")](Ec("0x5b"))._descriptionFactory[Ec("0x6a")](f),this[Ec("0x32")][Ec("0x50")](t,m),this[Ec("0x4")][Ec("0x50")](u,m);const h=o[Ec("0x9")]({view:d,target:()=>{const n=[],o=t[Ec("0x63")]()[Ec("0x3a")]((t=>t[Ec("0x4c")]));for(const t of o)n.push(...t[Ec("0x47")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xc")],n)},type:()=>Ec("0x28")+m[Ec("0x3f")][Ec("0x5e")]});s[Ec("0x15")](u,h),o[Ec("0x41")](h),i[Ec("0x34")](h)}[Ec("0x12")](t){const e=this[Ec("0x48")].plugins[Ec("0x1d")]("Annotations"),n=this._suggestionToController[Ec("0x1d")](t),o=n.view,s=e[Ec("0x5f")](o);s&&e.remove(s),this[Ec("0x32")][Ec("0x22")](t),this[Ec("0x4")][Ec("0x22")](o),n[Ec("0x13")]()}[Ec("0x44")](t){if(!t[Ec("0x4c")]||!this[Ec("0x32")][Ec("0xa")](t))return;const e=this[Ec("0x48")].plugins.get(Ec("0x5b")),n=this._suggestionToController.get(t),o=t[Ec("0x63")]();n.view[Ec("0x3")]=e[Ec("0x65")].getDescriptions(o)}[Ec("0x13")](){for(const t of this[Ec("0x32")].keys())this._destroyController(t);for(const t of this[Ec("0x52")][Ec("0x2d")]())t[Ec("0x17")][Ec("0x13")]();super.destroy()}}var Tc,Cc,yc=["getSuggestion","plugins","editor","adapter","get","addSuggestionData","requires","TrackChanges","addSuggestion","getSuggestions"];Tc=yc,Cc=474,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x2")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x3")}set[kc("0x9")](t){this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x9")]=t}get[kc("0x9")](){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa).adapter}[kc("0x4")](t){return this.editor.plugins[kc("0x0")](Wa)[kc("0x1")](t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x6")](t)}}const Rc=["init","trackChangesData","createElement","set","reduce","editor","editorCreator","Pagination","getRootNames","end","createDocumentFragment","requires","document","data","_adapter","constructor","destroy","config","rootsAttributes","create","acceptAllSuggestions","plugins","getSuggestions","CommentsRepository","div","get","getUser","getDataWithDiscardedSuggestions","getFullData","getDataWithAcceptedSuggestions","getRootsAttributes","TrackChangesEditing","pluginName","model","function","result","map","discardAllSuggestions","Users","useAnonymousUser","users","define","addSuggestionData"];var vc,Ic;vc=Rc,Ic=217,function(t){for(;--t;)vc.push(vc.shift())}(++Ic);const Sc=function(t,e){return Rc[t-=0]},Lc=[Sc("0x5")];class Nc extends t.Plugin{static get[Sc("0x9")](){return[Wa]}static get[Sc("0x1e")](){return"TrackChangesData"}[Sc("0x29")](){const t=this[Sc("0x3")];if(t[Sc("0xf")][Sc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t.model[Sc("0xa")][Sc("0x6")]()[Sc("0x2")](((t,e)=>(t[e]="",t)),{});return t[Sc("0xd")][Sc("0x11")](n,e)})),Sc("0x20")!=typeof t[Sc("0xf")][Sc("0x17")](Sc("0x2a"))[Sc("0x4")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Sc("0x1b")](t){return Oc(this[Sc("0x3")],!0,t)}[Sc("0x19")](t){return Oc(this.editor,!1,t)}}class wc extends t.Plugin{static get[Sc("0x1e")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Sc("0x21")]=Sc("0x7")}[Sc("0x29")](){this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x15"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x1d"))[Sc("0xc")]=null}}function Mc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x13")].push(Wa,wc),o[Sc("0x10")]=Mc(t)?t[Sc("0x1c")]():void 0;const s=document[Sc("0x8")](),i=t[Sc("0xf")].get(Sc("0x2a"))[Sc("0x4")],x=await i(o,(()=>function(t){const e=document[Sc("0x0")](Sc("0x16"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x1f")][Sc("0xa")][Sc("0x6")]().reduce(((e,n)=>(e[n]=t[Sc("0xb")][Sc("0x17")]({rootName:n}),e)),{}),o=t[Sc("0x13")][Sc("0x17")]("Users")[Sc("0x26")][Sc("0x22")]((t=>({id:t.id,name:t.name}))),s=t[Sc("0x13")].get(Sc("0x1d"))[Sc("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x13")][Sc("0x17")](Sc("0x24")),i=e[Sc("0x13")][Sc("0x17")](Sc("0x1d"));for(const t of o)r[Sc("0x18")](t.id)||r.addUser(t);r.me||r[Sc("0x25")]();for(const t of s)i[Sc("0x28")](t);e[Sc("0xb")][Sc("0x1")](n)}(t,x),x.execute(Sc(e?"0x12":"0x23"));const a=Mc(x)?x[Sc("0x1a")](n):x.data[Sc("0x17")](n);return await x[Sc("0xe")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();