@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240201.0 → 0.0.0-nightly-20240202.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-2024, 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(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["commands","has","forceDisabled","editor","affectsData","execute","value","TrackChangesCommand","_enabledCommands","refresh","_enableCommands","_disableUnsupportedCommands"];var c,l;c=a,l=355,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0xb")]=!1,this[u("0x2")](),this._isEnabledBasedOnSelection=!1}[u("0x2")](){this.isEnabled=!0}[u("0xa")](){this[u("0xb")]=!this.value,this.value?this[u("0x4")]():this[u("0x3")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands[u("0x5")]())t[u("0x9")]&&!this._enabledCommands[u("0x6")](t)&&t[u("0x7")]("TrackChangesCommand")}[u("0x3")](){for(const t of this[u("0x8")][u("0x5")][u("0x5")]())t[u("0x9")]&&!this[u("0x1")][u("0x6")](t)&&t.clearForceDisabled(u("0x0"))}}const g=["plugins","editor","canEditAt","_suggestions","isEnabled","acceptSuggestion","get","model","_isEnabledBasedOnSelection","execute","track-changes-accept-suggestion-not-found","refresh"];var f,h;f=g,h=139,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x8")]=e,this[m("0x4")](),this[m("0x1")]=!1}[m("0x4")](){this[m("0x9")]=!0}[m("0x2")](t){const n=this._suggestions[m("0xb")](t);if(!n)throw new e.CKEditorError(m("0x3"),this);const r=n.getRanges();this[m("0x6")][m("0x0")][m("0x7")](r)&&this.editor[m("0x5")][m("0xb")]("TrackChangesEditing")[m("0xa")](n)}}const b=["get","track-changes-discard-suggestion-not-found","editor","_suggestions","plugins","model","discardSuggestion","execute","refresh","TrackChangesEditing"];var E,_;E=b,_=189,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x9")](){this.isEnabled=!0}[T("0x8")](t){const n=this[T("0x4")][T("0x1")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const r=n.getRanges();this[T("0x3")][T("0x6")].canEditAt(r)&&this[T("0x3")][T("0x5")][T("0x1")](T("0x0"))[T("0x7")](n)}}const C=["from","map","next","type","color","getRanges","isObject","isInContent","isCollapsed","isTouching","schema","splice","replace","createRange","add","length","createPositionAt","start","deletion","createPositionBefore","execute","push","createPositionAfter","isIntersecting"," [color ","end"];var A,k;A=C,k=368,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t[I("0x19")]&&I("0xe")!=e[I("0x19")]?-1:"deletion"!=t[I("0x19")]&&I("0xe")==e[I("0x19")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e[I("0x6")];for(;r<t.length;){const s=t[r],x=t[r+1];n||(n=e[I("0xf")](s)),v(e,s,x)||(i[I("0x11")](e[I("0x9")](n,o[I("0x2")](s)?e[I("0x12")](s):e[I("0xc")](s,I("0x15")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t[I("0x12")](e),i=t.createPositionBefore(n);return r[I("0x5")](i)}function N(t,e,n){for(;n[I("0xb")];){const r=n[I("0x7")](0,100);t.change((()=>{for(const t of r)t[I("0x3")]&&e[I("0x10")](t.id)}))}}const L=["model","canEditAt","some","from","_suggestions","_command","values","refresh","getRanges","isInContent","isEnabled","execute"];var M,w;M=L,w=493,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x3")]=n,this[O("0x6")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array.from(this[O("0x3")][O("0x5")]())[O("0x1")]((t=>t[O("0x8")]));this.isEnabled=this._command[O("0x9")]&&t}[O("0xa")](){const t=R(Array[O("0x2")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e[O("0x7")]();if(!this.editor[O("0xb")][O("0x0")](t))return}N(this.editor[O("0xb")],this[O("0x4")],t)}}const D=["editor","getRanges","selection","_selectedSuggestions","document","model","values","_suggestions","_isEnabledBasedOnSelection","size","from","refresh","isEnabled","_command","execute"];var B,P;B=D,P=245,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x8")]=e,this[U("0x2")]=n,this[U("0xd")]=new Set,this[U("0x6")](),this[U("0x3")]=!1}[U("0x6")](){const t=this.editor[U("0x0")][U("0xe")][U("0xc")],e=Array[U("0x5")](this[U("0x2")][U("0x1")]());this[U("0xd")]=function(t,e){const n=Array[I("0x16")](t[I("0x1")]()),r=new Set;for(const i of e)if(i[I("0x3")])for(const e of n)for(const n of i[I("0x1")]())(e[I("0x13")](n)||t[I("0x4")]&&!i.isMultiRange&&i[I("0x18")]&&n[I("0x15")][I("0x5")](e[I("0xd")]))&&r[I("0xa")](i);return r}(t,e),this[U("0x7")]=this[U("0x8")].isEnabled&&!!this[U("0xd")][U("0x4")]}[U("0x9")](){const t=R(Array[U("0x5")](this[U("0xd")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xa")][U("0x0")].canEditAt(t))return}N(this.editor.model,this[U("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(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 re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Ye=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const hn=Nt(rt,"Set");const mn=Nt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Ye(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){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||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Jt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Jt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Jt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["getMultiRangeId","onAccept","data","size","@external","split","substr","_model","removeMarker","from","decorate","_onAttributesChange","authoredAt","getRanges","markers","createdAt","author","head","getRange","length","_markerNames","_isDataLoaded","next","toJSON","isIntersectingWithRange","removeMarkers","previous","hasComments","discard","_onAccept","getMarkerNames","filter","addMarker","_saved","onAttributesChange","creator","push","start","onDiscard","set","subType","getItems","change","removeAttribute","getFirstMarker","setAttribute","_onDiscard","get","accept","type","commentThread","isIntersecting","add","attributes","getAllAdjacentSuggestions","isMultiRange","nodeBefore","getMarkers","map","addRange"];var Xr,$r;Xr=qr,$r=204,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Qr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x39")]=!1,this.id=e.id,this[Zr("0x19")]=e.type,this[Zr("0x10")]=e[Zr("0x10")]||null,this.author=e[Zr("0x34")],this[Zr("0xb")]=e[Zr("0xb")]||e[Zr("0x34")],this.isExternal=Boolean(e[Zr("0x1d")]&&e[Zr("0x1d")][Zr("0x28")]),this.data=null,this[Zr("0x2b")]=t,this[Zr("0x5")]=e[Zr("0x25")],this[Zr("0x16")]=e[Zr("0xe")],this[Zr("0x2f")]=e[Zr("0xa")],this[Zr("0x38")]=new Set,this[Zr("0x33")]=null,this.set(Zr("0x30"),null),this[Zr("0xf")](Zr("0x1d"),e.attributes||{}),this[Zr("0xf")]("previous",null),this.set("next",null),this[Zr("0xf")](Zr("0x1a"),null),this[Zr("0xf")](Zr("0x9"),!1),this.decorate(Zr("0x18")),this[Zr("0x2e")](Zr("0x4"))}get[Zr("0x35")](){let t=this;for(;t[Zr("0x2")];)t=t.previous;return t}get[Zr("0x3")](){return!!this[Zr("0x1a")]&&this[Zr("0x1a")].length>0}get[Zr("0x1f")](){return 0!=this[Zr("0x38")][Zr("0x27")]&&6==Array[Zr("0x2d")](this[Zr("0x38")])[0][Zr("0x29")](":").length}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Zr("0x38")][Zr("0x1c")](t)}[Zr("0x6")](){return Array[Zr("0x2d")](this[Zr("0x38")])}getMarkers(){return this[Zr("0x6")]()[Zr("0x22")]((t=>this._model[Zr("0x32")][Zr("0x17")](t)))[Zr("0x7")]((t=>t))}[Zr("0x14")](){return this[Zr("0x21")]()[0]||null}[Zr("0x1")](){this[Zr("0x2b")].change((t=>{for(const e of this[Zr("0x21")]())t.removeMarker(e)})),this[Zr("0x38")].clear()}[Zr("0x2c")](t){this[Zr("0x2b")][Zr("0x12")]((e=>{e[Zr("0x2c")](t)})),this._markerNames.delete(t)}[Zr("0x23")](t){const e="suggestion:"+this[Zr("0x19")]+":"+this[Zr("0x10")]+":"+this.id+":"+this[Zr("0xb")].id+":"+Qr[Zr("0x24")]();this.addMarkerName(e),this[Zr("0x2b")][Zr("0x12")]((n=>{n[Zr("0x8")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x0")](t){for(const e of this[Zr("0x31")]())if(e[Zr("0x1b")](t))return!0;return!1}[Zr("0x31")](){return this[Zr("0x21")]()[Zr("0x22")]((t=>t[Zr("0x36")]()))}getItems(){return this.getRanges().reduce(((t,e)=>[...t,...e[Zr("0x11")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x36")]())||null}getContainedElement(){const t=this[Zr("0x31")]();if(1!=t[Zr("0x37")])return null;const e=t[0],n=e[Zr("0xd")].nodeAfter,r=e.end[Zr("0x20")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x18")](){this[Zr("0x5")](this[Zr("0x31")](),this.data,this.attributes),this[Zr("0x1")]()}[Zr("0x4")](){this[Zr("0x16")](this[Zr("0x31")](),this[Zr("0x26")],this[Zr("0x1d")]),this.removeMarkers()}[Zr("0x1e")](){const t=[];let e=this.head;for(;e;)t[Zr("0xc")](e),e=e[Zr("0x3a")];return t}[Zr("0x15")](t,e){const n=er(this[Zr("0x1d")]);Er(n,t,e),jr(n,this[Zr("0x1d")])||(this[Zr("0x1d")]=n,this[Zr("0x2f")](n))}[Zr("0x13")](t){const e=er(this[Zr("0x1d")]);Kr(e,t),jr(e,this[Zr("0x1d")])||(this.attributes=e,this._onAttributesChange(this[Zr("0x1d")]))}[Zr("0x3b")](){return{id:this.id,type:this[Zr("0x10")]?this[Zr("0x19")]+":"+this[Zr("0x10")]:this[Zr("0x19")],authorId:this[Zr("0xb")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Zr("0x26")],attributes:this[Zr("0x1d")]}}static[Zr("0x24")](){return(0,e.uid)()[Zr("0x2a")](1,5)}}function Yr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Jr=["format","end","elementEnd","registerDescriptionCallback","deletion","key","has","_attributeLabels","_itemLabels","$text","EmptyContainer","attribute","name","start","_handleInsertRemoveSuggestionDescription","type","removeEmptyContainer","add","addEmptyContainer","removeContainer","isObject","removeObject","subType","_locale","softBreak","addContainer","_handleAttributeSuggestionDescription","addFormat","getItemLabel","set","data","_itemLabelsCallbacks","quantity","length","getDescriptions","Object","*Split:* %0","*Remove format:* %0","indexOf","get","_schema","isEmpty","_handleRenameSuggestionDescription","label","*Change to:* %0","insertion","elementStart","join","_addDescriptionItems","element","text","remove","*Remove:* %0","$1 $2","getWalker","getFirstRange","nextSibling","_customCallbacks","_handleCustomCallbackDescription","registerAttributeLabel","pop","*Set format:* %0","$textProxy","isInContent","push","ELEMENT_SPACE","nodeAfter","item","map","*Insert:* %0","previousSibling","Container","match"];var ti,ei;ti=Jr,ei=183,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Jr[t-=0]};class ri{constructor(t,e){this[ni("0x14")]=[],this[ni("0x2c")]=new Map,this[ni("0x43")]=[],this[ni("0x2b")]=new Map,this[ni("0x3")]=t,this[ni("0x3b")]=e}[ni("0x46")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x45")];i++){const o=t[i];if(!o[ni("0x1a")])continue;const s=this[ni("0x15")](o);if(s){if(null!=o.subType){if(n[ni("0x2a")](o[ni("0x3a")]))continue;n[ni("0x35")](o[ni("0x3a")])}e[ni("0x1b")](s)}else if(ni("0x2f")!=o[ni("0x33")])"insertion"!=o[ni("0x33")]&&ni("0x28")!=o.type||this[ni("0x32")](e,o,t[i+1]);else{const t=o[ni("0x42")].key;if(r.has(t))continue;r.add(o[ni("0x42")][ni("0x29")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3e")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x27")](t){this[ni("0x14")].push(t)}registerElementLabel(t,n,r=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x43")],{matchingCallback:t,label:n,priority:r}):this[ni("0x2c")].set(t,n)}[ni("0x16")](t,e){this[ni("0x2b")][ni("0x41")](t,e)}[ni("0x40")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[ni("0x6")];break}return n||(n=this._itemLabels[ni("0x2")](t[ni("0x30")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[ni("0x30")]}_addDescriptionItems(t,e){const n=e[ni("0x12")]()[ni("0x11")](),r=ni("0x8")==e.type?ni("0x35"):ni("0xe");for(const e of n){const i=e[ni("0x1e")],o=t[t.length-1];if(i.is(ni("0x19")))o&&o[ni("0x33")].indexOf(ni("0x22"))>-1&&t[ni("0x17")](),o&&ni("0xd")==o[ni("0x33")]?o[r]+=i[ni("0x42")]:t[ni("0x1b")]({type:ni("0xd"),add:"add"==r?i[ni("0x42")]:"",remove:ni("0xe")==r?i[ni("0x42")]:""});else if(this[ni("0x3")][ni("0x38")](i)){const s=i;if(o&&o[ni("0x33")][ni("0x1")]("Container")>-1&&t[ni("0x17")](),ni("0x26")==e[ni("0x33")])continue;o&&o[ni("0x33")]==r+ni("0x47")&&o[ni("0xc")][ni("0x30")]==s[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x47"),element:s,quantity:1}),n.skip((t=>!(ni("0x26")==t[ni("0x33")]&&t[ni("0x1e")]==i)))}else if(this._schema.checkChild(i,ni("0x2d"))||i.is(ni("0xc"),ni("0x3c"))){const n=i;if(ni("0x35")==r&&ni("0x9")==e[ni("0x33")]||ni("0xe")==r&&ni("0x26")==e[ni("0x33")])continue;if(o&&-1==o[ni("0x33")].indexOf(ni("0x22"))){ni("0xd")==o.type&&(o[r]+="\n");continue}let s;if(s=ni("0x35")==r?n[ni("0x13")]&&!this[ni("0x3")][ni("0x38")](n[ni("0x13")])?n[ni("0x13")]:null:n[ni("0x21")]&&!this[ni("0x3")][ni("0x38")](n.previousSibling)?n[ni("0x21")]:null,n[ni("0x4")]||s&&s[ni("0x4")]){const e=s&&s[ni("0x4")]?s:n;o&&o[ni("0x33")]==r+ni("0x2e")&&o[ni("0xc")][ni("0x30")]==e[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x2e"),element:e,quantity:1})}else t[ni("0x1b")]({type:r+ni("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[ni("0x3b")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x33")]){case ni("0xd"):if(o[ni("0x35")]=o[ni("0x35")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),o.remove=o[ni("0xe")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),""!=o[ni("0x35")]&&""!=o[ni("0xe")]){n.push({type:"replace",content:Yr(e,"REPLACE_TEXT",['"'+o[ni("0xe")]+'"','"'+o[ni("0x35")]+'"'])});continue}if(null!=o[ni("0x35")].match(/^ +$/)){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),Yr(e,ni("0x1c"),o[ni("0x35")].length))});continue}if(null!=o[ni("0xe")][ni("0x23")](/^ +$/)){n[ni("0x1b")]({type:"deletion",content:Yr(e,ni("0xf"),Yr(e,ni("0x1c"),o[ni("0xe")][ni("0x45")]))});continue}if(""!=o[ni("0x35")]){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),'"'+o[ni("0x35")]+'"')});continue}n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,ni("0xf"),'"'+o[ni("0xe")]+'"')});continue;case ni("0x36"):case"addObject":n.push({type:ni("0x8"),content:Yr(e,ni("0x20"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x34"):case ni("0x39"):n.push({type:"deletion",content:Yr(e,ni("0xf"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x3d"):n.push({type:ni("0x8"),content:Yr(e,ni("0x48"),this[ni("0x40")](o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x37"):n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,"*Merge:* %0",this[ni("0x40")](o[ni("0xc")],o.quantity))});continue;case ni("0x3f"):r[ni("0x1b")](o[ni("0x29")]);continue;case"removeFormat":i.push(o[ni("0x29")]);continue;default:n[ni("0x1b")](o)}if(r[ni("0x45")]){const t=r[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")][ni("0x2")](t):t))[ni("0xa")](", ");n.push({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x18"),t)})}if(i[ni("0x45")]){const t=i[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")].get(t):t)).join(", ");n[ni("0x1b")]({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x0"),t)})}return n}[ni("0x15")](t){for(const e of this[ni("0x14")]){const n=e(t);if(n&&ni("0x33")in n)return n}}[ni("0x3e")](t,e){const n=e[ni("0x42")],r=void 0===n.newValue?"removeFormat":ni("0x3f");t[ni("0x1b")]({type:r,key:n[ni("0x29")]})}[ni("0x5")](t,e){t[ni("0x1b")]({type:"format",content:Yr(this[ni("0x3b")],ni("0x7"),this[ni("0x40")](e.getFirstRange()[ni("0x31")][ni("0x1d")],1))})}[ni("0x32")](t,e,n){if(this[ni("0xb")](t,e),n&&n.getFirstRange()&&!e[ni("0x12")]()[ni("0x25")].isEqual(n[ni("0x12")]()[ni("0x31")])){const n=t[t[ni("0x45")]-1],r=ni("0x8")==e[ni("0x33")]?ni("0x35"):ni("0xe");n&&ni("0xd")==n.type&&(n[r]+="\n")}}}const ii=["plugins","commands","afterInit","showAIAssistant","enableCommand","TrackChangesEditing","get"];var oi,si;oi=ii,si=486,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this.editor,e=t[xi("0x4")].get(xi("0x2"));t[xi("0x5")][xi("0x3")]("showAIAssistant")&&e[xi("0x1")](xi("0x0"))}}const ci=["format","editor","_enableDefaultAttributesIntegration","type","TrackChangesEditing","justify","registerDescriptionCallback","plugins","value","*Format:* %0","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","center","FORMAT_JUSTIFY_TEXT","locale","AlignmentEditing","alignment","_descriptionFactory","commandParams","get","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","afterInit"];var li,ui;li=ci,ui=140,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x3")](){const t=this[di("0x5")],e=t[di("0x12")];if(!t[di("0xb")].has(di("0x13")))return;const n=t.plugins[di("0x17")](di("0x8"));n[di("0x6")](di("0x14"),[],[di("0x14")]),n._descriptionFactory.registerAttributeLabel(di("0x14"),Yr(e,di("0xf"))),this[di("0x2")]()}[di("0x2")](){const t=this[di("0x5")],e=t[di("0x12")];t[di("0xb")][di("0x17")](di("0x8"))[di("0x15")][di("0xa")]((t=>{if("formatBlock"!=t[di("0x7")])return;const{data:n}=t;if(n&&di("0x14")==n.commandName){const t=n[di("0x16")][0][di("0xc")];return{type:di("0x4"),content:Yr(e,di("0xd"),function(t){switch(t){case"left":return Yr(e,di("0x1"));case"right":return Yr(e,di("0x0"));case di("0x10"):return Yr(e,di("0xe"));case di("0x9"):return Yr(e,di("0x11"))}}(t))}}}))}}const fi=["_enableDefaultAttributesIntegration","toUpperCase","*Remove format:* %0","_registerLegacyDescription","strikethrough","StrikethroughEditing","FORMAT_SUBSCRIPT","italic","slice","SubscriptEditing","bold","format","afterInit","FORMAT_UNDERLINE","registerAttributeLabel","FORMAT_SUPERSCRIPT","formatInline","code","underline","*Format:* %0","get","FORMAT_CODE","plugins","type","FORMAT_","_descriptionFactory","subscript","commandParams","FORMAT_BOLD","SuperscriptEditing","TrackChangesEditing","locale","registerDescriptionCallback","CodeEditing","editor","UnderlineEditing"];var hi,mi;hi=fi,mi=152,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=["BoldEditing","ItalicEditing",pi("0x1b"),pi("0x19"),pi("0x21"),pi("0x1"),pi("0x15")];class Ei extends t.Plugin{[pi("0x4")](){const t=this[pi("0x1a")],e=t[pi("0xe")][pi("0xc")](pi("0x16")),n=t[pi("0x17")];for(const r of bi){if(!t[pi("0xe")].has(r))continue;const i=r[pi("0x0")](0,-7).toLowerCase(),o=pi("0x10")+i[pi("0x1d")]();e[pi("0x1c")](i,[i]),e._descriptionFactory[pi("0x6")](i,Yr(n,o))}this[pi("0x1f")]()}[pi("0x1f")](){const t=this[pi("0x1a")],e=t[pi("0x17")],n=t[pi("0xe")][pi("0xc")](pi("0x16"));function r(t,r){n[pi("0x11")][pi("0x18")]((n=>{if(pi("0x8")!=n[pi("0xf")])return;const{data:i}=n;return i&&i.commandName===t?i[pi("0x13")][0].forceValue?{type:pi("0x3"),content:Yr(e,pi("0xb"),r)}:{type:pi("0x3"),content:Yr(e,pi("0x1e"),r)}:void 0}))}r(pi("0x2"),Yr(e,pi("0x14"))),r(pi("0x23"),Yr(e,"FORMAT_ITALIC")),r(pi("0xa"),Yr(e,pi("0x5"))),r(pi("0x9"),Yr(e,pi("0xd"))),r(pi("0x20"),Yr(e,"FORMAT_STRIKETHROUGH")),r(pi("0x12"),Yr(e,pi("0x22"))),r("superscript",Yr(e,pi("0x7")))}}const _i=["registerDescriptionCallback","schema","enableCommand","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","*Remove format:* %0","from","checkChild","editor","filter","locale","format","has","commandName","parent","blockQuote","value","_descriptionFactory","BlockQuoteEditing","afterInit","*Set format:* %0","get","forceValue","change","document","plugins","model","commands"];var Ti,yi;Ti=_i,yi=198,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x11")](){const t=this[Ci("0x6")],e=t[Ci("0x8")];if(!t[Ci("0x17")][Ci("0xa")](Ci("0x10")))return;const n=t[Ci("0x17")][Ci("0x13")]("TrackChangesEditing"),r=this.editor[Ci("0x19")][Ci("0x13")]("blockQuote");n[Ci("0x0")](Ci("0xd"),((e,i={})=>{const o=this[Ci("0x6")].model[Ci("0x16")].selection,s=i&&void 0!==i[Ci("0x14")]?i[Ci("0x14")]:!r[Ci("0xe")];let x=[];if(s){const e=Array[Ci("0x4")](o[Ci("0x2")]()).filter((t=>ki(t)||function(t,e){const n=e.checkChild(t[Ci("0xc")],Ci("0xd")),r=e[Ci("0x5")](["$root","blockQuote"],t);return n&&r}(t,this[Ci("0x6")][Ci("0x18")][Ci("0x1b")])));x=S(e,t[Ci("0x18")])}else{const e=Array[Ci("0x4")](o[Ci("0x2")]())[Ci("0x7")]((t=>ki(t)));x=S(e,t[Ci("0x18")])}t[Ci("0x18")][Ci("0x15")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0xd"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xf")][Ci("0x1a")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ci("0xb")]){const t=Yr(e,Ci("0x1"));return n.commandParams[0][Ci("0x14")]?{type:Ci("0x9"),content:Yr(e,Ci("0x12"),t)}:{type:Ci("0x9"),content:Yr(e,Ci("0x3"),t)}}}))}}function ki(t){return Ci("0xd")==t.parent.name}const Ii=["get","TrackChangesEditing","changeCaseTitle","afterInit","changeCaseLower","plugins","CaseChange","has","enableCommand","editor"];var Ri,Si;Ri=Ii,Si=348,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x5")](){const t=this[vi("0x1")];t.plugins[vi("0x9")](vi("0x8"))&&(t[vi("0x7")].get(vi("0x3")).enableCommand("changeCaseUpper"),t[vi("0x7")].get(vi("0x3"))[vi("0x0")](vi("0x6")),t[vi("0x7")][vi("0x2")](vi("0x3"))[vi("0x0")](vi("0x4")))}}const Li=["ckbox","TrackChangesEditing","afterInit","enableCommand","plugins","commands"];var Mi,wi;Mi=Li,wi=295,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x1")](){const t=this.editor;t[Oi("0x4")].get(Oi("0x5"))&&t[Oi("0x3")].get(Oi("0x0"))[Oi("0x2")](Oi("0x5"))}}const Di=["registerElementLabel","selection","has","registerDescriptionCallback","value","language","editor","find","change","afterInit","*Remove format:* %0","commandParams","schema","markBlockFormat","from","parent","outdentCodeBlock","locale","commandName","forceValue","document","filter","formatBlock","TrackChangesEditing","getSelectedBlocks","model","languages","codeBlock","get","_descriptionFactory","checkChild","rootElement","toLowerCase","format","isLimit","blockName","plugins","ELEMENT_CODE_BLOCK","enableCommand","type"];var Bi,Pi;Bi=Di,Pi=123,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x6")](){const t=this[Ui("0x3")];if(!t[Ui("0x21")][Ui("0x27")]("CodeBlock"))return;const e=t[Ui("0x21")].get(Ui("0x14")),n=t[Ui("0xe")],r=t.config[Ui("0x19")]("codeBlock")[Ui("0x17")],i=t.commands[Ui("0x19")]("codeBlock");e[Ui("0x23")]("indentCodeBlock"),e[Ui("0x23")](Ui("0xd")),e[Ui("0x23")](Ui("0x18"),((n,o={})=>{const s=t[Ui("0x16")],x=t[Ui("0x16")][Ui("0x11")][Ui("0x26")],a=o&&void 0!==o[Ui("0x10")]?o.forceValue:!i[Ui("0x1")];let c;o[Ui("0x2")]||(o.language=r[0][Ui("0x2")]),c=a?Array.from(x[Ui("0x15")]())[Ui("0x12")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x9")],!e.is(Ui("0x1c"))&&!n[Ui("0x1f")](e)&&n[Ui("0x1b")](e[Ui("0xc")],Ui("0x18")));var e,n})):Array[Ui("0xb")](x[Ui("0x15")]())[Ui("0x12")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x5")]((()=>{for(const t of l)e[Ui("0xa")](t,{commandName:Ui("0x18"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x20")})}))})),e[Ui("0x1a")][Ui("0x25")](Ui("0x18"),(t=>Yr(n,Ui("0x22"),t))),e._descriptionFactory[Ui("0x0")]((t=>{if(Ui("0x13")!=t[Ui("0x24")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x18")!=i[Ui("0xf")])return;const o=i[Ui("0x8")][0][Ui("0x2")],s=e(r[Ui("0x4")]((t=>t[Ui("0x2")]===o)).label)[Ui("0x1d")]();return i[Ui("0x8")][0].forceValue?{type:Ui("0x1e"),content:Yr(n,"*Set format:* %0",Yr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x1e"),content:Yr(n,Ui("0x7"),Yr(n,Ui("0x22"),1))}}))}}function Gi(t){return Ui("0x18")==t.name}const Vi=["CommentsEditing","has","enableCommand","afterInit","addCommentThread","plugins"];var Hi,zi;Hi=Vi,zi=117,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x0")](){const t=this.editor;t[Wi("0x2")][Wi("0x4")](Wi("0x3"))&&t[Wi("0x2")].get("TrackChangesEditing")[Wi("0x5")](Wi("0x1"))}}var qi=n(181);const Xi=["get","getCustomProperty","type","name","listIndent","isLimit","parent","isContent","test","item","includes","addHighlight","markerRange","mapper","span","markerName","previousPosition","toViewElement","isBlock","activeMarkers","toViewPosition","push","isAtEnd","getItems","nextSibling","consumable","element","addClass","start","hasAttribute","ck-suggestion-marker-","TrackChangesEditing","writer","schema","getAttribute","elementEnd","listItem"];var $i,Zi;$i=Xi,Zi=291,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Qi=function(t,e){return Xi[t-=0]};function Yi(t,e,n){const r=[];for(const i of e[Qi("0x1c")]())i[Qi("0x22")](t)&&r[Qi("0x1a")](n.createRangeOn(i));return r}function Ji(t,e,{showActiveMarker:n=!0}={}){const r=t.plugins[Qi("0x5")](Qi("0x24"));return(i,o,s)=>{if(!s[Qi("0x1e")][Qi("0xd")](o[Qi("0x11")],i[Qi("0x8")]))return;const x=o[Qi("0x11")].getWalker(),a=o.markerRange[Qi("0x21")],c=t.model[Qi("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Qi("0xe")];d=d||c[Qi("0xc")](e);const n=s[Qi("0x12")][Qi("0x16")](e);if(n&&n[Qi("0x6")](Qi("0x10")))return;Qi("0x3")==t[Qi("0x7")]&&c[Qi("0x17")](e)&&!c[Qi("0xa")](e)&&(e[Qi("0x1d")]||a[Qi("0x1b")]?l&&l[Qi("0xb")]==e||(l=e,f(t[Qi("0x15")]),g=!0):u=u||t[Qi("0x15")])}function f(t){const i=s[Qi("0x0")].createUIElement(Qi("0x13"),{class:Qi("0x23")+e}),x=s[Qi("0x12")][Qi("0x19")](t);n&&r[Qi("0x18")][Qi("0xf")](o[Qi("0x14")])&&s[Qi("0x0")][Qi("0x20")]("ck-suggestion-marker--active",i),s.writer.insert(x,i),s.mapper.bindElementToMarker(i,o.markerName)}d||g||!u||f(u)}}const to=["createRange","enableCommand","bind","requires","lock","get","remove","buffer","commands","deleteForward","createSelection","unbindElementFromMarkerName","document","data","start","batch","addMarker:suggestion:deletion","options","merge","forward","downcastDispatcher","high","unit","writer","mapper","showSuggestionHighlights","modifySelection","enqueueChange","editor","model","selection","fromRange","rootName","removeMarker:suggestion:deletion","isCollapsed","editing","markerName","init","$graveyard","end","markerNameToElements","plugins","TrackChangesEditing"];var eo,no;eo=to,no=166,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x9")](){return[qi.Delete]}[ro("0x0")](){const t=this[ro("0x22")],e=t[ro("0x4")][ro("0xb")](ro("0x5"));e[ro("0x7")]("delete");const n=t[ro("0xe")][ro("0xb")](ro("0xf"));e[ro("0x7")](ro("0xf"),((e,r={})=>{const i=t[ro("0x23")][ro("0x10")](t.model[ro("0x12")][ro("0x24")]);i[ro("0x28")]&&t.model[ro("0x20")](i,{direction:ro("0x19"),unit:r[ro("0x1c")]});const o=i.getFirstRange(),x=s.LiveRange[ro("0x25")](o);let a;e(r),a=ro("0x1")==x.root[ro("0x26")]?t.model[ro("0x6")](o[ro("0x14")]):t[ro("0x23")][ro("0x6")](x[ro("0x14")],x[ro("0x2")]),x.detach(),t.model[ro("0x21")](n.buffer[ro("0x15")],(t=>{n[ro("0xd")][ro("0xa")](),t.setSelection(t[ro("0x6")](a[ro("0x2")])),n[ro("0xd")].unlock()}))})),t[ro("0x29")][ro("0x1a")].on(ro("0x16"),Ji(t,ro("0x18")),{priority:ro("0x1b")}),t[ro("0x13")].downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,r)=>{r[ro("0x17")][ro("0x1f")]&&Ji(t,ro("0x18"),{showActiveMarker:!1})[ro("0x8")](this)(e,n,r)}),{priority:ro("0x1b")}),t[ro("0x29")][ro("0x1a")].on(ro("0x27"),((t,e,n)=>{const r=n.mapper[ro("0x3")](e[ro("0x2a")]);if(r)for(const t of r)t.is("uiElement")&&(n[ro("0x1e")][ro("0x11")](t,e[ro("0x2a")]),n[ro("0x1d")][ro("0xc")](t))}),{priority:ro("0x1b")})}}const oo=["value","TrackChangesEditing","commandParams","plugins","suggestion","_descriptionFactory","ELEMENT_TODO_LIST","forceValue","toUpperCase","filter","has","config","multipleBlocks","oldValue","TodoListEditing","splitListItemAfter","commands","getSuggestions","list.multiBlock","getRanges","listType","start","ELEMENT_LIST_ITEM","key","schema","todo","*Outdent:* %0","registerPostFixer","isUndo","listStyle","FORMAT_INDENT","getFirstRange","assureChains","indentList","length","*Split:* list item","_getAttributeKey","listIndent","setSelection","todoList","type","isLocal","previousSibling","listReversed","locale","getChanges","find","range","model","listStart","listItemId","_findSuggestions","format","mergeListItemBackward","*Set format:* %0","detach","ELEMENT_","outdentList","*Indent:* %0","newValue","todoListCheck","documentList","nodeAfter","_registerLegacyDescription","registerAttributeLabel","attribute","*Format:* insert into %0","ELEMENT_BULLETED_LIST","registerElementLabel","*Merge:* list item","batch","setAttribute","*Format:* remove from %0","getFirstMarker","registerDescriptionCallback","trackChangesCommand","todoListChecked","execute","differ","attributes","*Merge:* %0","push","next","get","map","document","editor","head","removeMarker","commandName","containsItem","parent","noTrackChangesFixer","*Check item*","_suggestionFactory","*Remove format:* %0","nextSibling","registerCustomCallback","ELEMENT_NUMBERED_LIST","_supportLegacySuggestions","getAttribute","bulletedList","formatBlock","bulleted","mergeListItemForward","end","_enableDefaultAttributesIntegration","every","afterInit","from","numbered","numberedList","deletion","isNextTo","data","groupId","includes","_LIST","isObject"];var so,xo;so=oo,xo=431,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x22")](){const t=this[ao("0xc")];if(!t[ao("0x30")][ao("0x37")]("ListEditing"))return;const e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e")),r=t[ao("0x30")][ao("0x37")](ao("0x3b")),i=!!t.config[ao("0x9")](ao("0x3f"));function o(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x15"),t)}}n[ao("0x20")]("numberedList",[],[ao("0x5f"),ao("0x41"),ao("0x52")]),n[ao("0x20")]("bulletedList"),n[ao("0x20")](ao("0x4e")),n[ao("0x20")](ao("0x66")),n._enableDefaultAttributesIntegration(ao("0x3c")),n[ao("0x20")]("splitListItemBefore"),i&&(n[ao("0x20")](ao("0x62")),n._enableDefaultAttributesIntegration(ao("0x1e"))),r&&(n[ao("0x20")](ao("0x54")),n._enableDefaultAttributesIntegration("checkTodoList",[],["todoListChecked"]),n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(n&&ao("0x2")==n[ao("0x44")])return{type:"format",content:n.newValue?Yr(e,ao("0x13")):Yr(e,"*Uncheck item*")}})),this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x48")]((t=>{if(t[ao("0x73")][ao("0x49")])return!1;let e=!1;const r=n[ao("0x3e")]({skipNotAttached:!0}).filter((t=>"todoListChecked"===n[ao("0x51")](t)));for(const i of r)"todo"!=i[ao("0x4c")]()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))&&(n[ao("0x60")](i[ao("0x4c")](),ao("0x6e"))[ao("0x5b")]((t=>ao("0x41")===n[ao("0x51")](t[ao("0x31")])))||(t[ao("0xe")](i.getFirstMarker()),e=!0));return e}))),n[ao("0x32")][ao("0x6d")](ao("0x52"),Yr(e,ao("0x4b")));const x={type:"format",content:""};n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(!n||"listType"!=n[ao("0x44")])return;let r=t[ao("0xd")];for(;r;){if(r[ao("0x28")]&&(ao("0x4a")==r[ao("0x28")][ao("0x44")]&&(r[ao("0x28")].newValue&&"default"!=r[ao("0x28")][ao("0x68")]||"default"!=r[ao("0x28")].oldValue&&!n[ao("0x68")])||!i&&r[ao("0x28")][ao("0x44")]==Cc))return x;r=r[ao("0x8")]}if(null==n[ao("0x68")])switch(n.oldValue){case ao("0x1d"):return s(Yr(e,ao("0x70")));case"numbered":return s(Yr(e,ao("0x18")));case"todo":return s(Yr(e,ao("0x33")))}switch(n[ao("0x68")]){case ao("0x1d"):return o(Yr(e,ao("0x70")));case ao("0x24"):return o(Yr(e,ao("0x18")));case ao("0x46"):return o(Yr(e,ao("0x33")))}})),n._descriptionFactory[ao("0x0")]((t=>{const{data:e}=t;if(e&&ao("0x52")==e.key)return null==e[ao("0x68")]||null==e.oldValue&&0==e[ao("0x68")]?x:void 0})),n[ao("0x32")][ao("0x0")]((t=>{if(ao("0x6e")!=t[ao("0x55")])return;const{data:n}=t;if(!n||ao("0x5f")!=n.key)return;const r=lo(t);return r?ao("0x68")==r?{type:ao("0x61"),content:Yr(e,ao("0x72"))}:"oldValue"==r?{type:ao("0x61"),content:Yr(e,ao("0x50"))}:x:x})),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this.listItemIdFixer(t))),t.model[ao("0xb")].registerPostFixer((t=>this.noTrackChangesFixer(t))),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this[ao("0x4d")](t))),this[ao("0x19")]()}listItemIdFixer(t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")].isLocal)return!1;let e=!1;const n=this[ao("0xc")][ao("0x30")].get(ao("0x2e"))[ao("0x3e")]({skipNotAttached:!0}).filter((t=>t.data&&ao("0x5f")==t[ao("0x28")][ao("0x44")]))[ao("0x36")]((t=>t[ao("0x28")][ao("0x68")]&&t[ao("0x28")][ao("0x3a")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x76")]()),e=!0);return e}[ao("0x12")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));if(e[ao("0x1")][ao("0x2d")])return!1;let n=!1;const r=[ao("0x41"),"listStyle","listItemId",ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")],i=this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x4")][ao("0x5a")]().filter((t=>"attribute"==t[ao("0x55")]))[ao("0x36")]((t=>r.includes(t.attributeKey)));if(0==i[ao("0x4f")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x5c")],"attribute")[ao("0x36")]((t=>!t.meta[ao("0x27")]))[ao("0xa")]((t=>t.suggestion))[ao("0x36")]((t=>{const n=e._getAttributeKey(t);return r.includes(n)}));if(i[ao("0x4f")]){for(const e of i)t[ao("0xe")](e.getFirstMarker());n=!0}}return n}[ao("0x4d")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));let n=!1;const r=[ao("0x41"),"listStyle",ao("0x5f"),ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")];for(const t of e[ao("0x3e")]({skipNotAttached:!0})){const i=e._findSuggestions(t[ao("0x4c")](),ao("0x6e"))[ao("0xa")]((t=>t[ao("0x31")])).filter((t=>t.data&&r[ao("0x2a")](t.data[ao("0x44")])));if(!i.length)continue;const s=i[0].head[ao("0x5")][ao("0x29")];if(!i[ao("0x21")]((t=>t[ao("0x5")][ao("0x29")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0})[ao("0x36")]((e=>ao("0x6e")==e[ao("0x55")]&&e[ao("0x5")][ao("0x29")]==t)))r[ao("0x74")]("groupId",n)}function o(t,e){let n=t[ao("0xd")],r=!1;for(;n;)n[ao("0x5")][ao("0x29")]!=e&&(i(n[ao("0x5")][ao("0x29")],e),n[ao("0x74")](ao("0x29"),e),r=!0),n=n.next;return r}}_supportLegacySuggestions(){const t=this[ao("0xc")],e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e"));this[ao("0x6c")](),n[ao("0x14")][ao("0x17")](ao("0x1c"),ao("0x6a"),"accept",(function(e,n){const r=[];for(let n of e)n.start[ao("0x6b")]===n[ao("0x1f")][ao("0x11")]&&(n=t[ao("0x5d")].createRange(t[ao("0x5d")].createPositionAt(n.start[ao("0x6b")],0))),r[ao("0x7")](n);t.model.change((e=>{const i=t[ao("0x5d")][ao("0xb")].selection,o=Array[ao("0x23")](i[ao("0x40")]())[ao("0xa")]((t=>s.LiveRange.fromRange(t)));e.setSelection(r),t.commands[ao("0x9")](n[ao("0xf")]).refresh(),n[ao("0x2f")].push({forceDefaultExecution:!0}),t[ao("0x3")](n[ao("0xf")],...n.commandParams),e[ao("0x53")](o);for(const t of o)t[ao("0x64")]()}))})),n[ao("0x32")][ao("0x71")]((function(e){const n=!t.model[ao("0x45")][ao("0x2c")](e),r=e[ao("0x57")],i=e[ao("0x16")],o=e[ao("0x1a")]("listItemId"),s=!r||r.getAttribute(ao("0x5f"))!==o,x=!i||i.getAttribute(ao("0x5f"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Yr(e,ao("0x43"),t)))}_registerLegacyDescription(){const t=this[ao("0xc")],e=t[ao("0x59")];function n(e){const n=t[ao("0x3d")][ao("0x9")](ao("0x1b")).value,r=t[ao("0x3d")][ao("0x9")]("numberedList")[ao("0x2d")];return ao("0x25")===e?n:r}t[ao("0x30")].get(ao("0x2e"))[ao("0x32")][ao("0x0")]((function(r){if(ao("0x1c")!=r[ao("0x55")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0xf")]){case ao("0x1b"):x=i[ao("0x2f")][0][ao("0x34")],a=n(i.commandName),o=ao(x?"0x6f":"0x75"),!a&&t[ao("0x38")][ao("0x9")](ao("0x3f"))||(o="*Change to:* %0"),s={type:"format",content:Yr(e,o,Yr(e,ao("0x70")))};break;case ao("0x25"):x=i[ao("0x2f")][0].forceValue,a=n(i[ao("0xf")]),o=ao(x?"0x6f":"0x75"),!a&&t.config[ao("0x9")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x18")))};break;case ao("0x4e"):o=ao("0x67"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x43")))};break;case ao("0x66"):o=function(t){const e=t[ao("0x4c")]();let n=e[ao("0x42")][ao("0x6b")];for(;n&&e[ao("0x10")](n);){if(n[ao("0x1a")](ao("0x52"))>0)return!1;n=n[ao("0x16")]}return!0}(r)?Yr(e,ao("0x75"),Yr(e,(c=r,ao("0x65")+c.getFirstRange()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))[ao("0x35")]()+ao("0x2b")))):Yr(e,ao("0x47"),Yr(e,ao("0x43"))),s={type:ao("0x61"),content:o};break;case ao("0x62"):case"mergeListItemForward":!1===i[ao("0x39")]&&(o=ao("0x6"),s={type:ao("0x26"),content:Yr(e,o,Yr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x4c")]()[ao("0x42")].nodeAfter[ao("0x57")];for(;e;){const n=e[ao("0x1a")](ao("0x5f"));if(!n)return!1;if(n==t[ao("0x28")][ao("0x68")])return"newValue";if(n==t[ao("0x28")][ao("0x3a")])return ao("0x3a");e=e[ao("0x57")]}return!1}const uo=["startIndex","attribute","newValue","head","_registerLegacyDescription","_LIST_DEFAULT","_descriptionFactory","commandParams","*Format:* set order to reversed","registerAttributeLabel","plugins","ELEMENT_","TrackChangesEditing","includes","oldValue","afterInit","*Set format:* %0","bulleted","start","handleDescriptions","filter","listType","locale","registerDescriptionCallback","data","list.properties","format","_getTranslationKeyForListStyle","FORMAT_LIST_REVERSED","default","has","*Format:* set order to regular","key","numbered","toUpperCase","nodeAfter","removeMarker","upper-latin","*Change to:* %0","_LIST_","find","suggestion","config","*Remove format:* %0","next","document","FORMAT_LIST_START","get","_getAttributeKey","*Format:* set start index to %0","decimal-leading-zero","getFirstRange","editor","listStyle","isUndo","_enableDefaultAttributesIntegration","listStart","reversed","model","bind","listReversed","_findSuggestions","type"];var go,fo;go=uo,fo=458,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3d")](){if(!this.editor[ho("0x38")][ho("0xd")]("ListPropertiesEditing"))return;const t=this[ho("0x23")][ho("0x19")].get(ho("0x8")),e=this[ho("0x23")][ho("0x38")][ho("0x1e")](ho("0x3a"));t.styles&&e[ho("0x26")](ho("0x24"),[],[ho("0x24")]),t[ho("0x28")]&&e[ho("0x26")](ho("0x2b"),[],[ho("0x2b")]),t[ho("0x2e")]&&e[ho("0x26")](ho("0x27"),[],[ho("0x27")]);const n={type:"format",content:""};e[ho("0x34")].registerDescriptionCallback(this[ho("0x2")][ho("0x2a")](this));const r=this[ho("0x23")].locale;e[ho("0x34")].registerAttributeLabel(ho("0x2b"),Yr(r,ho("0xb"))),e._descriptionFactory[ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x2b")==e[ho("0xf")])return null==e.newValue||0==e.newValue&&null==e[ho("0x3c")]?n:void 0})),e[ho("0x34")][ho("0x37")](ho("0x27"),Yr(r,ho("0x1d"))),e[ho("0x34")][ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x27")==e.key)return null==e[ho("0x30")]||1==e[ho("0x30")]&&null==e[ho("0x3c")]?n:void 0})),this[ho("0x23")][ho("0x29")][ho("0x1c")].registerPostFixer((t=>{if(t.batch[ho("0x25")])return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0})[ho("0x3")]((t=>{const n=e[ho("0x1f")](t);return ho("0x27")==n||ho("0x2b")==n}));for(const i of r)"numbered"!=i[ho("0x22")]()[ho("0x1")][ho("0x12")].getAttribute(ho("0x4"))&&(e[ho("0x2c")](i[ho("0x22")](),ho("0x2f"))[ho("0x17")]((t=>"listType"==e[ho("0x1f")](t[ho("0x18")])))||(t[ho("0x13")](i.getFirstMarker()),n=!0));return n})),this[ho("0x32")]()}[ho("0x2")](t){const e=this[ho("0x23")].locale,{data:n}=t,r={type:ho("0x9"),content:""};if(!n||ho("0x24")!=n[ho("0xf")])return;if(!n[ho("0x3c")])return ho("0xc")==n[ho("0x30")]?r:{type:ho("0x9"),content:""+Yr(e,"*Set format:* %0",Yr(e,this[ho("0xa")](n[ho("0x30")])))};if(!n[ho("0x30")]){if(ho("0xc")==n[ho("0x3c")])return r;let i=t[ho("0x31")];for(;i;){if(i[ho("0x7")]&&ho("0x4")==i.data.key&&i[ho("0x7")][ho("0x30")])return r;i=i.next}return{type:ho("0x9"),content:""+Yr(e,ho("0x1a"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x3c")])))}}if(ho("0xc")!=n.newValue)return{type:"format",content:""+Yr(e,ho("0x3e"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x30")])))};let i=t.head;for(;i;){if(i[ho("0x7")]&&ho("0x4")==i[ho("0x7")][ho("0xf")]&&i[ho("0x7")][ho("0x30")]&&i[ho("0x7")].oldValue)return r;i=i[ho("0x1b")]}const o=t[ho("0x22")]()[ho("0x1")].nodeAfter.getAttribute(ho("0x4"));return{type:ho("0x9"),content:Yr(e,"*Set format:* %0",Yr(e,ho("0x39")+o[ho("0x11")]()+ho("0x33")))}}[ho("0x32")](){const t=this.editor,e=t[ho("0x5")];t[ho("0x38")].get("TrackChangesEditing")._descriptionFactory[ho("0x6")]((t=>{if("formatBlock"!=t[ho("0x2d")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x24"):r=ho("0x15"),i={type:ho("0x9"),content:Yr(e,r,Yr(e,this[ho("0xa")](n[ho("0x35")][0][ho("0x2d")])))};break;case ho("0x2b"):r=n[ho("0x35")][0][ho("0x28")]?ho("0x36"):ho("0xe"),i={type:ho("0x9"),content:Yr(e,r)};break;case"listStart":r=ho("0x20"),i={type:ho("0x9"),content:Yr(e,r,n.commandParams[0].startIndex)}}return i}))}[ho("0xa")](t){return ho("0x39")+(e=t,po[ho("0x3b")](e)?ho("0x0"):bo.includes(e)?ho("0x10"):null).toUpperCase()+ho("0x16")+t[ho("0x11")]().replace(/-/g,"_");var e}}const po=["disc","circle","square"],bo=["decimal",ho("0x21"),"lower-roman","upper-roman","lower-latin",ho("0x14")];var Eo=n(331);const _o=["enableCommand","hasClass","requires","parent","mapper","data","downcastDispatcher","markerNameToElements","remove","getFirstPosition","change","markerName","fire","TrackChangesEditing","enterBlock","document","enter","unbindElementFromMarkerName","writer","getFirstRange","showSuggestionHighlights","get","editing","addMarker:suggestion:insertion","bind","split","init","selection","high","options","removeMarker:suggestion:insertion","createRange","nextSibling","model","fromRange"];var To,yo;To=_o,yo=397,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x19")](){return[Eo.Enter]}[Co("0xe")](){const t=this.editor,e=t.plugins[Co("0x9")](Co("0x1")),n=t.commands[Co("0x9")]("enter");e[Co("0x17")](Co("0x4"),(()=>{t[Co("0x15")][Co("0x21")]((r=>{const i=t.model[Co("0x3")][Co("0xf")],o=i[Co("0x20")](),x=s.LiveRange[Co("0x16")](i[Co("0x7")]());if(n[Co("0x2")](r)){const n=t[Co("0x15")].createPositionAt(o[Co("0x1a")][Co("0x14")],0),i=r[Co("0x13")](o,n);e.markInsertion(i)}else r.setSelection(r[Co("0x13")](x.end));x.detach(),n[Co("0x0")]("afterExecute",{writer:r})}))})),t.editing[Co("0x1d")].on(Co("0xb"),Ji(t,Co("0xd")),{priority:Co("0x10")}),t[Co("0xa")][Co("0x1d")].on(Co("0x12"),((t,e,n)=>{const r=n[Co("0x1b")][Co("0x1e")](e[Co("0x22")]);if(r)for(const t of r)t[Co("0x18")]("ck-suggestion-marker-split")&&(n[Co("0x1b")][Co("0x5")](t,e.markerName),n[Co("0x6")][Co("0x1f")](t))}),{priority:Co("0x10")}),t[Co("0x1c")][Co("0x1d")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x11")][Co("0x8")]&&Ji(t,Co("0xd"),{showActiveMarker:!1})[Co("0xc")](this)(e,n,r)}),{priority:"high"})}}const ko=["get","FindAndReplaceEditing","find","model","handleFindCommand","editor","bind","FindAndReplaceUtils","TrackChangesEditing","getRange","has","replace","filter","end","markers","findNext","createRange","_isInDeletionRange","findPrevious","plugins","getMarkersGroup","enableCommand","afterInit","start","getIntersection","createPositionAt"];var Io,Ro;Io=ko,Ro=346,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[So("0xe")](){if(!this[So("0x17")].plugins[So("0x2")](So("0x13")))return;const t=this[So("0x17")][So("0xb")][So("0x12")](So("0x0"));t[So("0xd")](So("0x14"),this[So("0x16")][So("0x18")](this)),t[So("0xd")](So("0x7")),t.enableCommand(So("0xa")),t[So("0xd")](So("0x3")),t[So("0xd")]("replaceAll")}[So("0x16")](t,e,n={}){const r=this.editor.plugins.get(So("0x19"));return t((t=>("string"==typeof e?r.findByTextCallback(e,n):e)(t)[So("0x4")]((e=>!1===this[So("0x9")](e,t.item)))),n)}[So("0x9")](t,e){const n=this[So("0x17")].model[So("0x8")](this[So("0x17")][So("0x15")][So("0x11")](e,t[So("0xf")]),this[So("0x17")][So("0x15")][So("0x11")](e,t[So("0x5")]));for(const t of this[So("0x17")][So("0x15")][So("0x6")][So("0xc")]("suggestion:deletion"))if(null!==n[So("0x10")](t[So("0x1")]()))return!0;return!1}}const No=["FORMAT_FONT_SIZE","_enableDefaultAttributesIntegration","find","locale","*Reset font size*","*Set font family:* %0","trim","fontFamily","type","has","FORMAT_FONT_COLOR","registerDescriptionCallback","*Set font background color:* %0","fontColor.colors","FontFamilyEditing","FontSizeEditing","value","label","config","title","registerAttributeLabel","fontSize","afterInit","*Set font color:* %0","toLowerCase","_descriptionFactory","commandParams","_registerLegacyDescription","*Reset font color*","editor","fontSize.options","TrackChangesEditing","fontBackgroundColor","get","commandName","plugins","FORMAT_FONT_FAMILY","formatInline","fontColor","format","FontBackgroundColorEditing","*Reset font family*"];var Lo,Mo;Lo=No,Mo=233,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x22"),commandName:"fontSize"},{pluginName:wo("0x21"),commandName:wo("0x1a")},{pluginName:"FontColorEditing",commandName:wo("0xf")},{pluginName:wo("0x11"),commandName:"fontBackgroundColor"}];class Fo extends t.Plugin{[wo("0x29")](){const t=this[wo("0x6")][wo("0x16")],e=this.editor[wo("0xc")][wo("0xa")](wo("0x8"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x6")].plugins[wo("0x1c")](t)&&e[wo("0x14")](n,[n]);t.t,e[wo("0x2")][wo("0x27")]("fontSize",Yr(t,wo("0x13"))),e[wo("0x2")][wo("0x27")]("fontFamily",Yr(t,wo("0xd"))),e._descriptionFactory[wo("0x27")](wo("0xf"),Yr(t,wo("0x1d"))),e[wo("0x2")][wo("0x27")](wo("0x9"),Yr(t,"FORMAT_FONT_BACKGROUND")),this._registerLegacyDescription()}[wo("0x4")](){const t=this[wo("0x6")],e=t.locale;t[wo("0xc")].get(wo("0x8"))[wo("0x2")][wo("0x1e")]((t=>{const n=e.t;if(wo("0xe")!=t[wo("0x1b")])return;const{data:r}=t;if(null!=r){if(wo("0x28")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=n(this[wo("0x6")][wo("0xc")][wo("0xa")]("FontSize").normalizeSizeOptions(this[wo("0x6")][wo("0x25")].get(wo("0x7")))[wo("0x15")]((e=>e.model==t))[wo("0x26")])[wo("0x1")]();return{type:wo("0x10"),content:Yr(e,"*Set font size:* %0",r)}}return{type:wo("0x10"),content:Yr(e,wo("0x17"))}}if("fontFamily"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];return t?{type:wo("0x10"),content:Yr(e,wo("0x18"),t)}:{type:"format",content:Yr(e,wo("0x12"))}}if(wo("0xf")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0xa")](wo("0x20")))[wo("0x15")]((e=>e.model==t));let o=t,s="";return r&&(o=r.label,s=n(o)[wo("0x1")]()),{type:"format",content:Yr(e,wo("0x0"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:"format",content:Yr(e,wo("0x5"))}}if("fontBackgroundColor"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x6")][wo("0x25")][wo("0xa")]("fontBackgroundColor.colors")).find((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x10"),content:Yr(e,wo("0x1f"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:wo("0x10"),content:Yr(e,"*Reset font background color*")}}}}))}}const Do=["fontColor.colors","_registerLegacyDescription","toUpperCase","*Set format to:* %0","fontBackgroundColor","toLowerCase","title","config","label","fontSize","join","push","commandName","formatBlock","find","length","FontSize","get","type","model","commandParams","*Remove all formatting*","format","fontSize.options","TrackChangesEditing","pasteFormat","commands","_enableDefaultAttributesIntegration","split","boolean","slice","copyFormat","locale","entries","normalizeSizeOptions","charAt","editor"];var Bo,Po;Bo=Do,Po=468,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[Uo("0x1e")]("TrackChangesEditing"),n=t[Uo("0x2")][Uo("0x1e")](Uo("0x7")),r=t[Uo("0x2")][Uo("0x1e")](Uo("0x1"));n&&r&&(e[Uo("0x3")](Uo("0x1")),e.enableCommand("copyFormat"),this[Uo("0xe")]())}_registerLegacyDescription(){const t=this[Uo("0xc")],e=t[Uo("0x8")];t.plugins.get(Uo("0x0"))._descriptionFactory.registerDescriptionCallback((n=>{if(Uo("0x1a")!=n[Uo("0x1f")]&&"formatInline"!=n[Uo("0x1f")])return;const{data:r}=n;if(r&&Uo("0x1")===r[Uo("0x19")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object[Uo("0x9")](i))n[Uo("0x18")](Go(t,e,r));return n[Uo("0x1c")]?{type:Uo("0x23"),content:Yr(e,Uo("0x10"),n[Uo("0x17")](", "))}:{type:Uo("0x23"),content:Yr(e,Uo("0x22"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0x4")](/(?=[A-Z])/).join(" "),s=r(o[Uo("0xb")](0)[Uo("0xf")]()+o[Uo("0x6")](1))[Uo("0x12")]();if(Uo("0x5")==typeof n)return s;if("fontColor"===e||Uo("0x11")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x14")][Uo("0x1e")](Uo("0xd")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x15")]).toLowerCase():n)+")"}if(Uo("0x16")===e&&isNaN(parseFloat(n))){const e=t.plugins[Uo("0x1e")](Uo("0x1d"))[Uo("0xa")](t[Uo("0x14")][Uo("0x1e")](Uo("0x24")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x13")])[Uo("0x12")]():n)+")"}return s+" ("+n+")"}const Vo=["match","_getHeadingLevel","type","ELEMENT_HEADING","_enableDefaultAttributesIntegration","_headingOptions","plugins","find","get","editor","formatBlock","*Change to:* %0","ELEMENT_HEADING_CUSTOM","heading.options","title","commandParams","locale","value","paragraph","config","TrackChangesEditing","commandName","view","has","model","afterInit","registerDescriptionCallback","_descriptionFactory","format","heading"];var Ho,zo;Ho=Vo,zo=194,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xb")](){const t=this[Wo("0x19")];if(!t[Wo("0x16")][Wo("0x9")]("HeadingEditing"))return;this[Wo("0x15")]=t[Wo("0x5")][Wo("0x18")](Wo("0x1d"));const e=t[Wo("0x2")],n=t[Wo("0x16")].get(Wo("0x6"));n[Wo("0x14")](Wo("0xf"));for(const t of this[Wo("0x15")])Wo("0x4")!=t[Wo("0xa")]&&n._descriptionFactory.registerElementLabel(t.model,(n=>{const r=this[Wo("0x11")](t[Wo("0xa")]);return null!==r?Yr(e,"ELEMENT_HEADING",[n,r]):(i=n,o=t[Wo("0x0")],Yr(e,Wo("0x1c"),[i,o]));var i,o}));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Wo("0x2")];t[Wo("0x16")][Wo("0x18")](Wo("0x6"))[Wo("0xd")][Wo("0xc")]((t=>{if(Wo("0x1a")!=t[Wo("0x12")])return;const{data:n}=t;if(n&&Wo("0xf")==n[Wo("0x7")]){const t=n[Wo("0x1")][0][Wo("0x3")],s=this[Wo("0x11")](t);if(null!==s)return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(1,o=s,Yr(e,Wo("0x13"),[1,o])))};const x=this[Wo("0x15")].find((e=>e[Wo("0xa")]===t)).title;return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(r=1,i=x,Yr(e,Wo("0x1c"),[r,i])))}}var r,i,o}))}[Wo("0x11")](t){var e,n;const r=t[Wo("0x10")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x17")]((e=>e.model==t));if(i&&i.view){const t=i[Wo("0x8")],e=(null!==(n=t.name)&&void 0!==n?n:t)[Wo("0x10")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["type","color","get","plugins","highlight","*Remove highlight*","find","has","commandParams","_descriptionFactory","model","toLowerCase","commandName","HighlightEditing","afterInit","locale","registerAttributeLabel","_registerLegacyDescription","value","editor","TrackChangesEditing","title","formatInline","*Set highlight:* %0","registerDescriptionCallback","format","_enableDefaultAttributesIntegration"];var Xo,$o;Xo=qo,$o=313,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Qo extends t.Plugin{[Zo("0x19")](){const t=this[Zo("0x3")];if(!t.plugins[Zo("0x12")](Zo("0x18")))return;const e=t.plugins[Zo("0xd")](Zo("0x4")),n=t[Zo("0x1a")];e[Zo("0xa")](Zo("0xf"),[Zo("0xf")]),e[Zo("0x14")][Zo("0x0")]("highlight",Yr(n,"FORMAT_HIGHLIGHT")),this[Zo("0x1")]()}_registerLegacyDescription(){const t=this[Zo("0x3")],e=t[Zo("0x1a")];t[Zo("0xe")].get(Zo("0x4"))._descriptionFactory[Zo("0x8")]((n=>{if(Zo("0x6")!=n[Zo("0xb")])return;const{data:r}=n;if(r&&Zo("0xf")==r[Zo("0x17")]){const n=e.t,i=r[Zo("0x13")][0][Zo("0x2")];if(i){const r=t.config[Zo("0xd")]("highlight.options")[Zo("0x11")]((t=>t[Zo("0x15")]==i)),o=n(r[Zo("0x5")])[Zo("0x16")]();return{type:Zo("0x9"),content:Yr(e,Zo("0x7"),o),color:{value:r[Zo("0xc")],title:r[Zo("0x5")]}}}return{type:Zo("0x9"),content:Yr(e,Zo("0x10"),Yr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Yo=["createContainerElement","afterInit","get","ELEMENT_HORIZONTAL_LINE","horizontalLine","addClass","ck-horizontal-line","TrackChangesEditing","HorizontalLineEditing","registerElementLabel","elementToStructure","has","_descriptionFactory","conversion","plugins","enableCommand","createPositionAt","div","high","dataDowncast","insert","editor"];var Jo,ts;Jo=Yo,ts=272,function(t){for(;--t;)Jo.push(Jo.shift())}(++ts);const es=function(t,e){return Yo[t-=0]};class ns extends t.Plugin{[es("0xf")](){const t=this[es("0xd")];if(!t.plugins[es("0x3")](es("0x0")))return;t.plugins.get(es("0x15"))[es("0x7")](es("0x12"));const e=t[es("0x6")][es("0x10")]("TrackChangesEditing"),n=t.locale;e[es("0x4")][es("0x1")](es("0x12"),(t=>Yr(n,es("0x11"),t))),t[es("0x5")].for(es("0xb"))[es("0x2")]({model:es("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0xe")](es("0x9")),i=e.createEmptyElement("hr");return e[es("0x13")](es("0x14"),r),e[es("0xc")](e[es("0x8")](r,0),i),r},converterPriority:es("0xa")})}}const rs=["locale","rawHtml","afterInit","attribute","type","element","_descriptionFactory","plugins","editor","registerElementLabel","_enableDefaultAttributesIntegration","htmlEmbed","commandName","get","registerDescriptionCallback","ELEMENT_HTML_EMBED","format","nodeAfter","_registerLegacyDescription","*Change %0 content*","HtmlEmbed","start","TrackChangesEditing","value"];var is,os;is=rs,os=186,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x8")](){const t=this[ss("0xe")];if(!t.plugins.has(ss("0x2")))return;const e=t.plugins[ss("0x13")](ss("0x4")),n=t[ss("0x6")];e[ss("0xc")][ss("0xf")]("rawHtml",(t=>Yr(n,ss("0x15"),t))),e[ss("0x10")]("htmlEmbed",[],[ss("0x5")]),e[ss("0xc")][ss("0x14")]((t=>{if(ss("0x9")!=t.type)return;const{data:e}=t;if(e&&ss("0x5")==e.key&&t.getFirstRange()[ss("0x3")][ss("0x17")].is(ss("0xb"),ss("0x7"))){const t=Yr(n,"ELEMENT_HTML_EMBED");return{type:ss("0x16"),content:Yr(n,ss("0x1"),t)}}})),this[ss("0x0")]()}[ss("0x0")](){const t=this.editor,e=t[ss("0x6")];t[ss("0xd")][ss("0x13")]("TrackChangesEditing")[ss("0xc")][ss("0x14")]((t=>{if("formatBlock"!=t[ss("0xa")])return;const{data:n}=t;if(n&&ss("0x11")==n[ss("0x12")]){const t=Yr(e,ss("0x15"));return{type:ss("0x16"),content:Yr(e,ss("0x1"),t)}}}))}}const as=["editor","getContainedElement","accept","selection","resizedWidth","insertion","imageCaption","ImageTextAlternativeEditing","Block image to inline image","end","convertBlockImageToInline","caption","createRange","discard","formatBlock","imageTypeBlock","registerCustomCallback","imageTypeInline","isCollapsed","getFirstRange","locale","ImageEditing","isOwn","filter","deletion","imageStylePreApply","nodeAfter","uploadImage","resizeImage","change","previous","alt","createRangeOn","ELEMENT_IMAGE","*Remove image text alternative*","markInsertion","get","getClosestSelectedImageElement","insertImage","_registerLegacyDescription","*Set image text alternative:* %0","ImageCaptionUtils","element","imageInline","enableCommand","markBlockFormat","isBlockImage","model","_enableDefaultAttributesIntegration","fromPosition","registerElementLabel","commandParams","getSuggestionCallback","commandName","forceDefaultExecution","newValue","find","Inline image to block image","getCaptionFromImageModelElement","ELEMENT_CAPTION","plugins","convertInlineImageToBlock","has","ImageBlockEditing","chain","subType","getNearestSelectionRange","format","addObject","findIndex","key","type","imageTextAlternative","length","attribute","ImageUtils","_descriptionFactory","document","isEqual","join","isBefore","ELEMENT_INLINE_IMAGE","FORMAT_IMAGE_SIZE","schema","TrackChangesEditing","_suggestionFactory","registerDescriptionCallback","width","markDeletion","*Set image width:* %0","toggleImageCaption","start","ImageCaptionEditing","toPrevious"];var cs,ls;cs=as,ls=365,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{afterInit(){const t=this[us("0xb")];if(!t[us("0x47")][us("0x49")](us("0x20")))return;const e=t[us("0x47")][us("0x2f")](us("0x1")),n=t[us("0x47")][us("0x2f")](us("0x56")),r=t.locale;e[us("0x37")](us("0x31")),e[us("0x57")][us("0x3d")]("imageBlock",(t=>Yr(r,us("0x2c"),t))),e[us("0x57")][us("0x3d")](us("0x36"),(t=>Yr(r,us("0x5c"),t))),e[us("0x57")].registerElementLabel(us("0x16"),(()=>Yr(r,us("0x46")))),t.plugins[us("0x49")]("ImageUploadEditing")&&e[us("0x37")](us("0x26")),t[us("0x47")][us("0x49")](us("0x4a"))&&t[us("0x47")][us("0x49")]("ImageInlineEditing")&&(e[us("0x37")](us("0x1c"),((r,i)=>{const o=n[us("0x30")](t.model[us("0x58")][us("0xe")]);t[us("0x3a")][us("0x28")]((()=>{e[us("0x38")](o,{commandName:us("0x1c"),commandParams:[i]},[],us("0x15"))}))})),e[us("0x37")](us("0x1a"),((r,i)=>{t[us("0x3a")][us("0x28")]((o=>{let x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const c=s.LivePosition.fromPosition(a.start,us("0xa")),l=s.LivePosition[us("0x3c")](a[us("0x14")],"toNext");e[us("0x41")]((()=>r(i))),x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const u=o[us("0x17")](c,l);c.detach(),l.detach(),e[us("0x38")](x,{commandName:"imageTypeInline",commandParams:[i]},[],us("0x48")),u.start[us("0x5b")](a[us("0x8")])&&e.markInsertion(o.createRange(u[us("0x8")],a[us("0x8")]),us("0x48")),a[us("0x14")][us("0x5b")](u[us("0x14")])&&e[us("0x2e")](o[us("0x17")](a[us("0x14")],u[us("0x14")]),us("0x48"))}))})),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0xd"),(()=>!1)),e[us("0x2")][us("0x1b")](us("0x19"),"convertInlineImageToBlock",us("0x18"),e[us("0x2")][us("0x3f")]("formatBlock","",us("0xd"))),e[us("0x2")][us("0x1b")](us("0x10"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e._suggestionFactory.registerCustomCallback("insertion",us("0x48"),us("0x18"),(([n])=>{const r=e._suggestionFactory[us("0x3f")](us("0x10"),"",us("0x18"));let i=n[us("0x8")],o=n[us("0x14")];const s=t[us("0x3a")][us("0x0")][us("0x4d")](i,"backward"),x=t.model[us("0x0")][us("0x4d")](o,"forward");s[us("0x1d")]&&(i=s[us("0x8")]),x[us("0x1d")]&&(o=x[us("0x14")]),r([t[us("0x3a")][us("0x17")](i,o)])})),e[us("0x2")][us("0x1b")](us("0x19"),us("0x48"),us("0x4b"),x),e[us("0x2")][us("0x1b")]("insertion","convertInlineImageToBlock","chain",x)),t[us("0x47")][us("0x49")](us("0x9"))&&(e.enableCommand(us("0x7"),((r,i)=>{const o=t[us("0x47")][us("0x2f")](us("0x34"));let s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s);t[us("0x3a")][us("0x28")]((()=>{if(x)return void e[us("0x5")](t[us("0x3a")].createRangeOn(x));const a=n[us("0x39")](s);r(i),s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s),e[us("0x2e")](t[us("0x3a")][us("0x2b")](x),a?null:us("0x11"))}))})),e[us("0x2")][us("0x1b")](us("0x10"),us("0x11"),"chain",x));const i=[{type:"formatBlock",subType:us("0x24")},{type:us("0x10"),subType:us("0x11")},{type:us("0x19"),subType:us("0x48")},{type:us("0x10"),subType:us("0x48")}];function o(t,r){const o=i[us("0x50")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x50")]((({type:t,subType:e})=>r[us("0x52")]==t&&r[us("0x4c")]==e));if(o<0||s<0)return!1;const x=t[us("0x1e")](),a=r[us("0x1e")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x10"))[us("0x22")]((({suggestion:t,meta:e})=>e[us("0x21")]&&us("0x48")==t[us("0x4c")]));if(t[us("0x54")]>1&&a.end.isEqual(x[us("0x8")]))return!0;if(1==t.length&&(x[us("0x8")][us("0x59")](a[us("0x14")])||x[us("0x14")].isEqual(a[us("0x8")])))return!0}if(3==o&&3==s&&x.start[us("0x5b")](a.start)){const t=x[us("0x14")][us("0x25")],e=a[us("0x8")].nodeBefore;return n[us("0x39")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x47")][us("0x49")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],["resizedWidth"]),e[us("0x57")].registerAttributeLabel(us("0xf"),Yr(r,us("0x5d")))),t[us("0x47")][us("0x49")](us("0x12"))&&e[us("0x3b")]("imageTextAlternative",[],["alt"]),e[us("0x57")].registerDescriptionCallback((t=>{if(i[us("0x43")]((({type:e,subType:n})=>t.type==e&&t[us("0x4c")]==n)))return t[us("0x29")]?{}:void 0})),e[us("0x57")].registerDescriptionCallback((t=>{if("insertion"==t.type||us("0x23")==t[us("0x52")]){const e=t[us("0xc")]();if(e&&e.is(us("0x35"),"caption"))return{type:"insertion"==t[us("0x52")]?us("0x4f"):"removeObject",element:e,quantity:1}}})),e[us("0x57")][us("0x3")]((t=>us("0x19")==t[us("0x52")]&&us("0x48")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x44")}:us("0x19")==t[us("0x52")]&&us("0x15")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x13")}:void 0)),e[us("0x57")][us("0x3")]((t=>{if(us("0x55")!=t[us("0x52")])return;const{data:e}=t;if(!e||us("0x2a")!=e[us("0x51")])return;const n=e[us("0x42")];return n?{type:us("0x4e"),content:Yr(r,us("0x33"),'"'+n+'"')}:{type:us("0x4e"),content:Yr(r,us("0x2d"))}})),this[us("0x32")]()}_registerLegacyDescription(){const t=this[us("0xb")],e=t[us("0x1f")];t[us("0x47")].get(us("0x1"))._descriptionFactory[us("0x3")]((t=>{if(us("0x19")!=t.type&&"formatInline"!=t[us("0x52")])return;const{data:n}=t;if(n){if(us("0x53")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x42")];return t?{type:"format",content:Yr(e,us("0x33"),'"'+t+'"')}:{type:"format",content:Yr(e,us("0x2d"))}}if(us("0x27")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x4")];return t?{type:us("0x4e"),content:Yr(e,us("0x6"),t)}:{type:"format",content:Yr(e,"*Reset image width*")}}}}))}}const gs=["key","plugins","commandName","src","registerDescriptionCallback","_handleLegacySuggestions","TrackChangesEditing","_registerLegacyDescription","get","accept","_descriptionFactory","formatInline","has","replaceImageSource","format","*Format:* replace image URL","_suggestionFactory","type","newValue","getSuggestionCallback","*Replace image URL*","oldValue","formatBlock","attribute","locale","afterInit","discard","editor"];var fs,hs;fs=gs,hs=141,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x18")](){if(!this[ms("0x1a")][ms("0x0")][ms("0xb")]("ImageEditing"))return;const t=this.editor[ms("0x17")],e=this[ms("0x1a")][ms("0x0")][ms("0x7")](ms("0x5"));e._enableDefaultAttributesIntegration(ms("0xc"),[],[ms("0x2")]),e[ms("0x9")].registerDescriptionCallback((e=>{if(ms("0x16")!=e.type)return;const{data:n}=e;return n&&ms("0x2")==n[ms("0x1b")]?n[ms("0x11")]&&n[ms("0x14")]?{type:ms("0xd"),content:Yr(t,ms("0x13"))}:{type:ms("0xd"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x1a")].plugins[ms("0x7")](ms("0x5"));t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x8"),t[ms("0xf")][ms("0x12")](ms("0x15"),null,ms("0x19"))),t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x19"),t[ms("0xf")].getSuggestionCallback(ms("0x15"),null,ms("0x8"))),this[ms("0x6")]()}[ms("0x6")](){const t=this[ms("0x1a")],e=t.locale;t[ms("0x0")][ms("0x7")](ms("0x5"))[ms("0x9")][ms("0x3")]((t=>{if(ms("0x15")!=t[ms("0x10")]&&ms("0xa")!=t[ms("0x10")])return;const{data:n}=t;return n&&ms("0xc")==n[ms("0x1")]?{type:ms("0xd"),content:Yr(e,ms("0xe"))}:void 0}))}}const bs=["getFirstRange","accept","formatBlock","registerDescriptionCallback","chain","imageCaption","_registerLegacyDescription","head","model","_splitMarkerName","has","createRangeOn","locale","getContainedElement","get","filter","*Format:* %0","getSuggestionCallback","getClosestSelectedImageElement","forEach","_suggestionFactory","value","end","format","isEqual","enableCommand","isInlineImage","subType","setImageNaturalSizeAttributes","isBlockImage","ImageStyleEditing","shouldConvertImageType","commands","formatInline","insertion","discardSuggestion","document","imageStyle","plugins","title","ImageUtils","suggestion","TrackChangesEditing","selection","afterInit","start","isBefore","imageStylePostApply","newRange","join","differ","length","change","findIndex","convertInlineImageToBlock","markBlockFormat","imageStylePreApply","type","commandName","imageTypeInline","commandParams","next","editor","imageTypeBlock","refresh","getSuggestion","nodeAfter","registerCustomCallback"];var Es,_s;Es=bs,_s=409,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x2b")](){const t=this.editor;if(!t[Ts("0x25")][Ts("0x9")](Ts("0x1d")))return;const n=t[Ts("0x25")][Ts("0xd")](Ts("0x29")),r=t[Ts("0x25")][Ts("0xd")](Ts("0x27")),i={};n[Ts("0x18")]("imageStyle",((i,o)=>{const s=t[Ts("0x25")].get("Users").me,x=t[Ts("0x1f")][Ts("0xd")](Ts("0x24"));let a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),l=x[Ts("0x14")];if(l==o[Ts("0x14")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x7")][Ts("0x33")]((()=>{if(n.getSuggestions()[Ts("0xe")]((t=>t.isInContent&&s==t.author&&(Ts("0x1")==t[Ts("0x38")]||"formatInline"==t.type)&&(Ts("0x37")==t[Ts("0x1a")]||Ts("0x2e")==t[Ts("0x1a")])&&t[Ts("0x43")]()[Ts("0x17")](c)))[Ts("0x12")]((t=>n[Ts("0x22")](t[Ts("0x6")]))),a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),x[Ts("0x3f")](),t[Ts("0x1f")][Ts("0xd")](Ts("0x3a")).refresh(),t[Ts("0x1f")][Ts("0xd")](Ts("0x3e"))[Ts("0x3f")](),l=x[Ts("0x14")],l!=o[Ts("0x14")])return r[Ts("0x19")](a)&&x[Ts("0x1e")](o[Ts("0x14")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x11")](t.model[Ts("0x23")][Ts("0x2a")]),void n[Ts("0x36")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x37"))):void(r[Ts("0x1c")](a)?n[Ts("0x36")](a,u,[],Ts("0x2e")):n.markInlineFormat(c,u,Ts("0x2e")))}))}));for(const e of t[Ts("0x25")][Ts("0xd")]("ImageStyleEditing").normalizedStyles)i[e.name]=e[Ts("0x26")].toLowerCase();n[Ts("0x13")][Ts("0x42")]("formatBlock","imageStylePreApply",Ts("0x30"),(()=>!1)),n._suggestionFactory[Ts("0x42")](Ts("0x1"),Ts("0x2e"),"join",(()=>!1)),n[Ts("0x13")][Ts("0x42")](Ts("0x20"),Ts("0x2e"),Ts("0x30"),(()=>!1)),n[Ts("0x13")][Ts("0x42")]("formatBlock",Ts("0x37"),Ts("0x0"),(([t])=>{r[Ts("0x1b")](t.getContainedElement())})),n[Ts("0x13")][Ts("0x42")](Ts("0x1"),Ts("0x37"),"discard",((t,e)=>{n[Ts("0x13")][Ts("0x10")](Ts("0x1"),"",Ts("0x0"))(t,{commandName:e[Ts("0x39")],commandParams:e.commandReversedParams})})),n[Ts("0x13")].registerCustomCallback(Ts("0x1"),Ts("0x37"),Ts("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x1"),subType:Ts("0x37")},{type:Ts("0x21"),subType:Ts("0x4")},{type:"formatBlock",subType:Ts("0x35")},{type:Ts("0x21"),subType:Ts("0x35")}];function s(t,e){const i=o[Ts("0x34")]((({type:e,subType:n})=>t.type==e&&t[Ts("0x1a")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x38")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[Ts("0x43")](),a=e[Ts("0x43")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,Ts("0x21"))[Ts("0xe")]((({suggestion:t,meta:e})=>e.isOwn&&Ts("0x35")==t.subType));if(t.length>1&&a.end[Ts("0x17")](x.start))return!0;if(1==t[Ts("0x32")]&&(x[Ts("0x2c")][Ts("0x17")](a.end)||x[Ts("0x15")][Ts("0x17")](a[Ts("0x2c")])))return!0}if(3==i&&3==s&&x.start[Ts("0x2d")](a.start)){const t=x[Ts("0x15")][Ts("0x41")],e=a.start.nodeBefore;return r[Ts("0x1c")](t)&&t===e}return!1}t.model[Ts("0x23")].registerPostFixer((()=>{let e=!1;const i=Array.from(t[Ts("0x7")].document[Ts("0x31")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x8")](t);if(Ts("0x28")==i&&n.hasSuggestion(a)){if(Ts("0x1")==s&&(Ts("0x37")==x||Ts("0x2e")==x)){const t=n[Ts("0x40")](a);if(o[Ts("0x2f")]){const i=t[Ts("0x43")]()[Ts("0xc")]();if(r.isBlockImage(i))continue;n[Ts("0x22")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!o[Ts("0x2f")]){const t=n[Ts("0x40")](a);t[Ts("0x3c")]&&t.next.isInContent&&(n[Ts("0x22")](t[Ts("0x3c")]),e=!0)}}}return e})),this[Ts("0x5")](i)}[Ts("0x5")](t){const e=this[Ts("0x3d")],n=e[Ts("0xb")];e.plugins[Ts("0xd")](Ts("0x29"))._descriptionFactory[Ts("0x2")]((e=>{if(Ts("0x1")!=e.type&&Ts("0x20")!=e[Ts("0x38")])return;const{data:r}=e;if(!r||Ts("0x24")!=r.commandName)return;const i=r[Ts("0x3b")][0][Ts("0x14")];return o="side"===i?Yr(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:Ts("0x16"),content:Yr(n,Ts("0xf"),o)};var o}))}}const Cs=["forEach","listenTo","_handleImportedData","importWord","trackChanges","get","_setSuggestionData","dataInsert","TrackChangesEditing","editor","plugins","lowest","bind","track_changes","value","high","collaboration_features","commands","_trackChangesExecuted","execute","_trackChangesValueDuringImport"];var As,ks;As=Cs,ks=473,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x9")]=!1,this[Is("0x7")]=!1}afterInit(){const t=this[Is("0x13")],e=t.commands.get("importWord"),n=t[Is("0x6")][Is("0xf")](Is("0xe"));e&&(e.on(Is("0x8"),((t,[,e])=>{this[Is("0x9")]=n[Is("0x3")],e[Is("0x5")][Is("0x2")]=!this._trackChangesValueDuringImport}),{priority:Is("0x4")}),this.listenTo(e,Is("0x11"),this[Is("0xc")][Is("0x1")](this)),this[Is("0xb")](e,Is("0x11"),(()=>{this[Is("0x7")]&&(n.execute(),this[Is("0x7")]=!1)}),{priority:Is("0x0")}),t[Is("0x14")][Is("0xf")](Is("0x12")).enableCommand(Is("0xd")))}[Is("0xc")](t,e){const{suggestions:n}=e,r=this[Is("0x13")][Is("0x6")][Is("0xf")](Is("0xe")),i=r[Is("0x3")];this[Is("0x9")]!==i&&(r[Is("0x8")](),this[Is("0x7")]=!0),n&&n[Is("0xa")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x13")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this.editor[Is("0x14")][Is("0xf")]("TrackChangesEditing")[Is("0x10")](i)}))}}const Ss=["registerDescriptionCallback","indent","outdentBlock","registerAttributeLabel","get","TrackChangesEditing","getItemLabel","*Indent:* %0","has","indentBlock","type","_descriptionFactory","IndentBlock","locale","format","enableCommand","formatBlock","IndentEditing","commandName","FORMAT_INDENT","outdent","getItems","_registerBlockAttribute","afterInit","plugins","_registerLegacyDescription","editor"];var vs,Ns;vs=Ss,Ns=378,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ls("0x17")](){const t=this[Ls("0x1a")],e=t[Ls("0x18")].get(Ls("0x5"));if(t[Ls("0x18")][Ls("0x8")](Ls("0x11"))&&(e.enableCommand(Ls("0x1")),e[Ls("0xf")](Ls("0x14"))),t.plugins.has(Ls("0xc")))for(const t of[Ls("0x9"),Ls("0x2")])e._enableDefaultAttributesIntegration(t);const n=t[Ls("0xd")];e[Ls("0x16")]("blockIndent"),e[Ls("0xb")][Ls("0x3")]("blockIndent",Yr(n,Ls("0x13"))),this[Ls("0x19")]()}_registerLegacyDescription(){const t=this[Ls("0x1a")],e=t[Ls("0xd")],n=t[Ls("0x18")][Ls("0x4")]("TrackChangesEditing");n[Ls("0xb")][Ls("0x0")]((t=>{if(Ls("0x10")!=t[Ls("0xa")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Ls("0x12")]&&Ls("0x2")!=r[Ls("0x12")])return;const i=t[Ls("0x15")]()[0],o=n._descriptionFactory[Ls("0x6")](i);return Ls("0x9")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,Ls("0x7"),o)}:Ls("0x2")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["input","plugins","TrackChangesEditing","init","enableCommand","editor","requires"];ws=Fs,Os=426,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x0")](){return[qi.Input]}[Ds("0x4")](){this[Ds("0x6")][Ds("0x2")].get(Ds("0x3"))[Ds("0x5")](Ds("0x1"))}}const Ps=["_registerLegacyDescription","has","locale","unlink","attribute","map","plugins","_descriptionFactory","link (","label","format","toLowerCase","_enableDefaultAttributesIntegration","manualDecorators","TrackChangesEditing","get","*Remove link*","linkHref","type","editor","link","*Set link:* %0","commandName","registerDescriptionCallback","afterInit"];var Us,js;Us=Ps,js=415,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0x9")](){const t=this[Gs("0x4")];if(!t[Gs("0x10")][Gs("0xb")]("LinkEditing"))return;const e=t.plugins[Gs("0x0")](Gs("0x18")),n=t.commands[Gs("0x0")]("link");e[Gs("0x16")](Gs("0x5"),[Gs("0x2"),...n[Gs("0x17")][Gs("0xf")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n[Gs("0x17")])e[Gs("0x11")].registerAttributeLabel(t.id,Gs("0x12")+t[Gs("0x13")][Gs("0x15")]()+")");e[Gs("0x11")].registerDescriptionCallback((e=>{if(Gs("0xe")!=e[Gs("0x3")])return;const{data:n}=e;if(!n||Gs("0x2")!=n.key)return;const r=n.newValue,i=t[Gs("0xc")];return{type:Gs("0x14"),content:null==r?Yr(i,Gs("0x1")):Yr(i,Gs("0x6"),'"'+r+'"')}})),this[Gs("0xa")]()}[Gs("0xa")](){const t=this[Gs("0x4")],e=t.locale;t[Gs("0x10")][Gs("0x0")](Gs("0x18"))[Gs("0x11")][Gs("0x8")]((t=>{if("formatInline"!=t[Gs("0x3")])return;const{data:n}=t;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:Gs("0x14"),content:Yr(e,"*Set link:* %0",'"'+t+'"')}}return Gs("0xd")==n[Gs("0x7")]?{type:"format",content:Yr(e,Gs("0x1"))}:void 0}}))}}const Hs=["previousSibling","LegacyTodoListEditing","length","registerDescriptionCallback","commands","execute","slice","name","listType","TrackChangesEditing","locale","bulletedList","getAttribute","numberedList","editor","checkTodoList","numbered","indentList","format","listIndent","add","end","change","*Uncheck item*","_descriptionFactory","todoList","ELEMENT_TODO_LIST","plugins","get","selection","formatInline","blockName","schema","createPositionAt","filter","*Change to:* %0","*Outdent:* %0","element","markBlockFormat","isObject","*Indent:* %0","todo","from","outdentList","nextSibling","afterInit","ELEMENT_NUMBERED_LIST","document","paragraph","forceValue","getSelectedBlocks","bulleted","ELEMENT_LIST_ITEM","listItem","findIndex","commandName","model","has","value","createRange","enableCommand","commandParams","type"];var zs,Ws;zs=Hs,Ws=121,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x32")](){const t=this[Ks("0x13")],e=t[Ks("0xf")];if(!t[Ks("0x20")][Ks("0x3e")]("LegacyListEditing"))return;const n=t.plugins[Ks("0x21")](Ks("0xe")),r=t[Ks("0x20")][Ks("0x3e")](Ks("0x6"));function i(e){return()=>{const r=t[Ks("0x3d")][Ks("0x34")][Ks("0x22")],i=t[Ks("0x9")][Ks("0x21")](e);if(i[Ks("0x0")])return void t[Ks("0xa")](Ks("0x35"),{});const o=e[Ks("0xb")](0,-4),s=function(t,e,n){let r=Array[Ks("0x2f")](t).filter((t=>{return e=t,(r=n).checkChild(e.parent,Ks("0x3a"))&&!r[Ks("0x2c")](e);var e,r}));r=r[Ks("0x27")]((t=>!t.is(Ks("0x2a"),"listItem")||t[Ks("0x11")](Ks("0xd"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x2a"),Ks("0x3a"))?i[Ks("0x19")](Xs(t)):i[Ks("0x19")](t);return Array[Ks("0x2f")](i)}(r[Ks("0x37")](),o,t[Ks("0x3d")][Ks("0x25")]);t.model[Ks("0x1b")]((()=>{for(const t of s)n[Ks("0x2b")](t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x0")]}],formatGroupId:Ks("0x24")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x3b")]((t=>Ks("0x3a")!=t[Ks("0xc")]));return n>-1&&(e=e[Ks("0xb")](0,n)),e}(t.model[Ks("0x34")][Ks("0x22")][Ks("0x37")]()),i=t[Ks("0x3d")][Ks("0x1")](t.model[Ks("0x26")](r[0],"before"),t[Ks("0x3d")][Ks("0x26")](r[r[Ks("0x7")]-1],Ks("0x1a")));t[Ks("0x3d")][Ks("0x1b")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0x18")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x31")];for(;t&&t[Ks("0x11")](Ks("0x18"))>n[Ks("0x11")](Ks("0x18"));)e[Ks("0x19")](t),t=t[Ks("0x31")]}return Array[Ks("0x2f")](e)}(r))}))}}n[Ks("0x2")]("numberedList",i("numberedList")),n.enableCommand(Ks("0x10"),i(Ks("0x10"))),r&&n[Ks("0x2")](Ks("0x1e"),i("todoList")),n[Ks("0x2")](Ks("0x16"),o(Ks("0x16"))),n[Ks("0x2")](Ks("0x30"),o(Ks("0x30"))),r&&n[Ks("0x2")]("checkTodoList",(()=>{const e=t[Ks("0x9")][Ks("0x21")](Ks("0x14")),r=Array[Ks("0x2f")](e._selectedElements);r[Ks("0x27")]((t=>t[Ks("0x11")]("todoListChecked")!=e[Ks("0x0")])),t.model[Ks("0x1b")]((()=>{for(const t of r)n[Ks("0x2b")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x0")]}]})}))})),n[Ks("0x1d")].registerElementLabel(Ks("0x3a"),(t=>Yr(e,Ks("0x39"),t))),n._descriptionFactory[Ks("0x8")]((t=>{if("formatBlock"!=t[Ks("0x4")]&&Ks("0x23")!=t[Ks("0x4")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x3c")]||Ks("0x10")==n[Ks("0x3c")]||Ks("0x1e")==n[Ks("0x3c")])switch(n[Ks("0x3c")].replace("List","")){case Ks("0x38"):return r(Yr(e,"ELEMENT_BULLETED_LIST"));case Ks("0x15"):return r(Yr(e,Ks("0x33")));case Ks("0x2e"):return r(Yr(e,Ks("0x1f")))}if("indentList"==n[Ks("0x3c")])return{type:"format",content:Yr(e,Ks("0x2d"),Yr(e,Ks("0x39")))};if(Ks("0x30")==n[Ks("0x3c")])return{type:Ks("0x17"),content:Yr(e,Ks("0x29"),Yr(e,Ks("0x39")))};if(Ks("0x14")==n[Ks("0x3c")])return n[Ks("0x3")][0][Ks("0x36")]?{type:"format",content:Yr(e,"*Check item*")}:{type:"format",content:Yr(e,Ks("0x1c"))}}function r(t){return{type:Ks("0x17"),content:Yr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x11")](Ks("0x18"));if(0==e)return t;let n=t;for(;t[Ks("0x5")]&&t.previousSibling.is(Ks("0x2a"),Ks("0x3a"));){const r=t.previousSibling[Ks("0x11")](Ks("0x18"));if(r==e)n=t[Ks("0x5")];else if(r<e)break;t=t[Ks("0x5")]}return n}function $s(t){const e=[];if(t.is("element","listItem")&&t[Ks("0x11")]("listIndent")>0){let n=t[Ks("0x31")];for(;n&&Ks("0x3a")==n.name&&n.getAttribute(Ks("0x18"))==t[Ks("0x11")](Ks("0x18"));)e.push(n),n=n[Ks("0x31")]}return e}const Zs=["createPositionAt","listStyle","TrackChangesEditing","locale","listStart","LegacyListUtils","forward","*Format:* set order to reversed","reversed","getSelectedBlocks","handleDescriptions","*Change to:* %0","enableCommand","listItem","listType","editor","list.properties","model","*Format:* set order to regular","_LIST_","document","length","getFirstPosition","startIndex","handleListStyleCommand","_descriptionFactory","toUpperCase","unshift","plugins","backward","from","type","getLastPosition","selection","config","replace","parent","getAttribute","get","bind","format","formatInline","markMultiRangeBlockFormat","handleListStartCommand","listReversed","getListTypeFromListStyleType","change","_getSuggestionBlocks","*Format:* set start index to %0","getSiblingNodes","before","flat","_getTranslationKeyForListStyle","element","map","commandParams","ELEMENT_","handleListReversedCommand","afterInit","commandName","styles","numbered"];var Qs,Ys;Qs=Zs,Ys=105,function(t){for(;--t;)Qs.push(Qs.shift())}(++Ys);const Js=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Js("0xf")](){if(!this[Js("0x22")][Js("0x2f")].has("LegacyListPropertiesEditing"))return;const t=this[Js("0x22")][Js("0x35")][Js("0x39")](Js("0x23")),e=this[Js("0x22")][Js("0x2f")].get(Js("0x15"));t[Js("0x11")]&&e[Js("0x1f")](Js("0x14"),this[Js("0x2b")][Js("0x3a")](this)),t[Js("0x1b")]&&e[Js("0x1f")](Js("0x1"),this[Js("0xe")][Js("0x3a")](this)),t.startIndex&&e[Js("0x1f")](Js("0x17"),this[Js("0x0")][Js("0x3a")](this)),e[Js("0x2c")].registerDescriptionCallback(this[Js("0x1d")][Js("0x3a")](this))}[Js("0x2b")](t,e={}){const n=this[Js("0x22")][Js("0x2f")].get(Js("0x15")),r=this._getSuggestionBlocksForListStyle();this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](r,{commandName:Js("0x14"),commandParams:[{type:e[Js("0x32")]}],formatGroupId:Js("0x14")})}))}[Js("0xe")](t,e={}){const n=this[Js("0x22")][Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is(Js("0xa"),"listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this[Js("0x22")].model.createRange(this[Js("0x22")].model.createPositionAt(t,"before"),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](i,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:Js("0x1")})}))}[Js("0x0")](t,e={}){const n=this.editor[Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is("element","listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this.editor[Js("0x24")].createRange(this.editor[Js("0x24")][Js("0x13")](t,Js("0x7")),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this.editor[Js("0x24")].change((()=>{n[Js("0x3d")](i,{commandName:Js("0x17"),commandParams:[{startIndex:e[Js("0x2a")]}],formatGroupId:"listStart"})}))}[Js("0x1d")](t){if("formatBlock"!=t[Js("0x32")]&&Js("0x3c")!=t.type)return;const e=this[Js("0x22")][Js("0x16")],{data:n}=t;if(!n)return;let r,i;switch(n[Js("0x10")]){case"listStyle":r=Js("0x1e"),i={type:Js("0x3b"),content:Yr(e,r,Yr(e,this[Js("0x9")](n.commandParams[0][Js("0x32")])))};break;case Js("0x1"):r=n[Js("0xc")][0][Js("0x1b")]?Js("0x1a"):Js("0x25"),i={type:Js("0x3b"),content:Yr(e,r)};break;case Js("0x17"):r=Js("0x5"),i={type:Js("0x3b"),content:Yr(e,r,n[Js("0xc")][0][Js("0x2a")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,r;const i=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let o=Array[Js("0x31")](this[Js("0x22")].model.document.selection[Js("0x1c")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Js("0xa"),Js("0x20")))&&o[Js("0x2e")](...i[Js("0x6")](this.editor[Js("0x24")].document.selection[Js("0x29")](),"backward")),(null===(e=o[o[Js("0x28")]-1])||void 0===e?void 0:e.is(Js("0xa"),Js("0x20")))&&o.push(...i.getSiblingNodes(this.editor[Js("0x24")][Js("0x27")].selection[Js("0x33")](),Js("0x19"))),o=[...new Set(o)],(null===(r=null===(n=this[Js("0x22")].model.document[Js("0x34")][Js("0x29")]())||void 0===n?void 0:n[Js("0x37")])||void 0===r?void 0:r.is(Js("0xa"),Js("0x20")))&&(o=o.filter((t=>t.is("element",Js("0x20"))))),o}[Js("0x4")](t){const e=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let n=Array.from(this[Js("0x22")][Js("0x24")].document.selection[Js("0x1c")]()).filter(t).map((t=>{const n=this[Js("0x22")][Js("0x24")][Js("0x13")](t,0);return[...e[Js("0x6")](n,Js("0x30")),...e[Js("0x6")](n,Js("0x19"))]}))[Js("0x8")]();return n=[...new Set(n)],n}[Js("0x9")](t){return Js("0xd")+this[Js("0x22")][Js("0x2f")].get(Js("0x18"))[Js("0x2")](t)[Js("0x2d")]()+Js("0x26")+t[Js("0x2d")]()[Js("0x36")](/-/g,"_")}}const ex=["options","elementToElement","stop","enableCommand","plugins","TrackChangesEditing","editor","afterInit","mediaEmbed","_descriptionFactory","createEmptyElement","div","high","locale","conversion","has","attribute:url:media","downcastDispatcher","registerElementLabel","showSuggestionHighlights","media","for","ELEMENT_MEDIA"];var nx,rx;nx=ex,rx=442,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x2")](){const t=this[ix("0x1")];if(!t[ix("0x16")][ix("0xa")]("MediaEmbedEditing"))return;const e=t[ix("0x16")].get(ix("0x0")),n=t[ix("0x8")];e[ix("0x15")](ix("0x3")),e[ix("0x4")][ix("0xd")](ix("0xf"),(t=>Yr(n,ix("0x11"),t))),t[ix("0x9")][ix("0x10")]("dataDowncast")[ix("0x13")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[ix("0xe")])return e[ix("0x5")](ix("0x6"))},converterPriority:ix("0x7")}),t.data[ix("0xc")].on(ix("0xb"),((t,e,n)=>{n[ix("0x12")][ix("0xe")]&&t[ix("0x14")]()}),{priority:ix("0x7")})}}const sx=["plugins","enableCommand","editor","has","TrackChangesEditing","mention","MentionEditing"];var xx,ax;xx=sx,ax=179,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x5")];t.plugins[cx("0x6")](cx("0x2"))&&t[cx("0x3")].get(cx("0x0"))[cx("0x4")](cx("0x1"))}}const ux=["ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","enableCommand","registerElementLabel","has","_descriptionFactory","plugins","locale","pageBreak","get","editor"];var dx,gx;dx=ux,gx=305,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{afterInit(){const t=this[fx("0x6")];if(!t[fx("0x2")][fx("0x0")](fx("0x8")))return;t[fx("0x2")][fx("0x5")](fx("0x9"))[fx("0xa")](fx("0x4"));const e=t[fx("0x2")].get(fx("0x9")),n=t[fx("0x3")];e[fx("0x1")][fx("0xb")]("pageBreak",(t=>Yr(n,fx("0x7"),t)))}}const mx=["_registerLegacyDescription","formatBlock","isBlock","name","enableCommand","afterInit","addClass","activeMarkers","type","markerRange","ck-suggestion-marker-split","registerDescriptionCallback","data","schema","registerElementLabel","addMarker:suggestion:insertion","showSuggestionHighlights","TrackChangesEditing","includes","end","paragraph","format","mapper","plugins","isTouching","markerName","$text","insertion","highest","*Insert:* %0","downcastDispatcher","_enableDefaultAttributesIntegration","_descriptionFactory","createUIElement","*Change to:* %0","model","nodeAfter","get","insertParagraph","editor","options","commandName","writer","isLimit","ELEMENT_PARAGRAPH","consume","Paragraph","span","getItemLabel","checkChild","locale","toViewPosition","start","insert"];var px,bx;px=mx,bx=470,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x15")](){const t=this[Ex("0x1")];if(!t.plugins.has(Ex("0x8")))return;const e=t[Ex("0xc")],n=t[Ex("0x27")][Ex("0x35")](Ex("0x21"));n[Ex("0x30")][Ex("0x1e")](Ex("0x24"),(t=>Yr(e,Ex("0x6"),t))),n[Ex("0x2f")](Ex("0x24")),n[Ex("0x14")](Ex("0x0")),t.editing[Ex("0x2e")].on(Ex("0x1f"),Tx(t),{priority:Ex("0x2c")}),t[Ex("0x1c")].downcastDispatcher.on(Ex("0x1f"),((e,n,r)=>{r[Ex("0x2")][Ex("0x20")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x2c")});const r=n[Ex("0x30")];r[Ex("0x1b")]((n=>{if("insertion"!==n[Ex("0x18")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x28")](o)||!i[Ex("0x34")])return;const s=t[Ex("0x33")][Ex("0x1d")],x=i[Ex("0x34")];return s[Ex("0x12")](x)&&!s[Ex("0x5")](x)&&s[Ex("0xb")](x,Ex("0x2a"))?{type:Ex("0x2b"),content:Yr(e,Ex("0x2d"),r[Ex("0xa")](x,1))}:void 0})),this._registerLegacyDescription()}[Ex("0x10")](){const t=this.editor,e=t[Ex("0xc")];t[Ex("0x27")][Ex("0x35")]("TrackChangesEditing")[Ex("0x30")][Ex("0x1b")]((t=>{if(Ex("0x11")!=t[Ex("0x18")])return;const{data:n}=t;return n&&Ex("0x24")==n[Ex("0x3")]?{type:Ex("0x25"),content:Yr(e,Ex("0x32"),Yr(e,Ex("0x6")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x27")].get(Ex("0x21")),s=r[Ex("0x19")][Ex("0xe")],x=r.markerRange[Ex("0x23")],a=t.model.schema;if(!s[Ex("0x28")](x)||!s.nodeAfter)return;const c=s[Ex("0x34")];if(a[Ex("0x12")](c)&&!a.isLimit(c)&&a[Ex("0xb")](c,Ex("0x2a"))){if(!i.consumable[Ex("0x7")](r[Ex("0x19")],n[Ex("0x13")]))return;const t=i.writer[Ex("0x31")](Ex("0x9"),{class:Ex("0x1a")}),s=i[Ex("0x26")][Ex("0xd")](x);e&&o[Ex("0x17")][Ex("0x22")](r.markerName)&&i[Ex("0x4")][Ex("0x16")]("ck-suggestion-marker--active",t),i.writer[Ex("0xf")](s,t),i[Ex("0x26")].bindElementToMarker(t,r[Ex("0x29")])}}}const yx=["get","editor","*Remove all formatting*","TrackChangesEditing","_enableDefaultAttributesIntegration","afterInit","removeFormat","commandName","_descriptionFactory","registerDescriptionCallback","format","has","_registerLegacyDescription","formatBlock","plugins","type","locale","formatInline"];var Cx,Ax;Cx=yx,Ax=155,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0xc")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x0")]("RemoveFormatEditing")&&(t.plugins.get("TrackChangesEditing")[kx("0xb")]("removeFormat"),this[kx("0x1")]())}[kx("0x1")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x7")](kx("0xa"))[kx("0xf")][kx("0x10")]((e=>{if(kx("0x2")!=e[kx("0x4")]&&kx("0x6")!=e[kx("0x4")])return;const{data:n}=e;return n&&kx("0xd")==n[kx("0xe")]?{type:kx("0x11"),content:Yr(t[kx("0x5")],kx("0x9"))}:void 0}))}}const Rx=["discardSelectedSuggestions","plugins","goToNextRestrictedEditingException","trackChanges","get","RestrictedEditingModeEditing","discardSuggestion","acceptSelectedSuggestions","editor","discardAllSuggestions","enableCommand"];var Sx,vx;Sx=Rx,vx=302,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{afterInit(){const t=this[Nx("0x3")];if(!t[Nx("0x7")].has(Nx("0x0")))return;const e=t[Nx("0x7")][Nx("0xa")]("TrackChangesEditing");e.enableCommand("goToPreviousRestrictedEditingException"),e[Nx("0x5")](Nx("0x8"));const n=t[Nx("0x7")][Nx("0xa")](Nx("0x0"));n.enableCommand(Nx("0x9")),n[Nx("0x5")]("acceptSuggestion"),n.enableCommand(Nx("0x1")),n[Nx("0x5")]("acceptAllSuggestions"),n[Nx("0x5")](Nx("0x4")),n[Nx("0x5")](Nx("0x2")),n.enableCommand(Nx("0x6"))}}const Mx=["plugins","insert","registerElementLabel","markerRange","toViewPosition","enableCommand","TrackChangesEditing","merge","addMarker:suggestion:insertion","addMarker:suggestion","high","downcastDispatcher","softBreak","get","getItems","split","editing","addClass","createPositionBefore","writer","_descriptionFactory","options","test","markerName","locale","includes","init","shiftEnter","mapper","ck-suggestion-marker--active","createUIElement","editor","consumable","name"];var wx,Ox;wx=Mx,Ox=226,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x4")](){const t=this[Fx("0x9")],e=t.plugins[Fx("0x19")](Fx("0x12"));e[Fx("0x11")](Fx("0x5")),t[Fx("0x1c")].downcastDispatcher.on(Fx("0x14"),Bx(t),{priority:Fx("0x16")}),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",Bx(t),{priority:Fx("0x16")}),t.data[Fx("0x17")].on(Fx("0x15"),((e,n,r)=>{r[Fx("0x21")].showSuggestionHighlights&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x20")][Fx("0xe")]("softBreak",(e=>Yr(t[Fx("0x2")],"ELEMENT_LINE_BREAK",e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0xc")][Fx("0x19")](Fx("0x12"));if(!i[Fx("0xa")][Fx("0x0")](r.markerRange,n[Fx("0xb")]))return;const s=t.model;for(const t of r[Fx("0xf")][Fx("0x1a")]()){if(!t.is("element",Fx("0x18")))continue;const n="deletion"==r[Fx("0x1")][Fx("0x1b")](":")[1]?Fx("0x13"):"split",x=i.writer[Fx("0x8")]("span",{class:"ck-suggestion-marker-"+n}),a=i[Fx("0x6")][Fx("0x10")](s[Fx("0x1e")](t));e&&o.activeMarkers[Fx("0x3")](r[Fx("0x1")])&&i[Fx("0x1f")][Fx("0x1d")](Fx("0x7"),x),i[Fx("0x1f")][Fx("0xd")](a,x),i[Fx("0x6")].bindElementToMarker(x,r[Fx("0x1")])}}}const Px=["restrictedEditingException","has","enableCommand","from","editor","change","formatBlock","commandParams","_descriptionFactory","selection","markInlineFormat","formatInline","registerDescriptionCallback","type","StandardEditingModeEditing","getRanges","value","get","forceValue","commandName","afterInit","plugins","FORMAT_RESTRICTED_ENABLED"];var Ux,jx;Ux=Px,jx=337,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xc")],e=t.model,n=t.locale;if(!t[Gx("0x6")][Gx("0x9")](Gx("0x16")))return;const r=t[Gx("0x6")][Gx("0x2")]("TrackChangesEditing"),i=Gx("0x8"),o=t.commands[Gx("0x2")](i);r[Gx("0xa")](i,((t,n={})=>{const s=e.document[Gx("0x11")];if(s.isCollapsed)return void t(n);const x=void 0!==n[Gx("0x3")]?n[Gx("0x3")]:!o[Gx("0x1")];e[Gx("0xd")]((()=>{const t=Array[Gx("0xb")](s[Gx("0x0")]());for(const n of t){const t=x?[n]:Yi(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x10")][Gx("0x14")]((t=>{if(Gx("0xe")!=t[Gx("0x15")]&&Gx("0x13")!=t[Gx("0x15")])return;const{data:e}=t;return e&&e[Gx("0x4")]==i?e[Gx("0xf")][0].forceValue?{type:"format",content:Yr(n,Gx("0x7"))}:{type:"format",content:Yr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Hx=["_descriptionFactory","_registerInlineAttribute","config","commandParams","locale","afterInit","has","normalizeConfig","registerDescriptionCallback","styleName","format","registerAttributeLabel","_registerBlockAttribute","getGhsAttributeNameForElement","style","*Remove format:* %0","inline","plugins","type","block","formatBlock","GeneralHtmlSupport","ghsAttributes","_registerLegacyDescription","DataSchema","editor","formatInline","FORMAT_STYLE","element","get","toLowerCase","*Set format:* %0","add","forceValue","definitions","TrackChangesEditing"];var zx,Wx;zx=Hx,Wx=186,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x23")](){const t=this.editor;if(!t[Kx("0xb")][Kx("0x0")]("Style")||!t[Kx("0xb")][Kx("0x0")](Kx("0x12")))return;const e=t[Kx("0xb")][Kx("0x17")](Kx("0x1d")),n=t[Kx("0x22")],r=t[Kx("0x20")][Kx("0x17")](Kx("0x8")),i=t[Kx("0xb")][Kx("0x17")](Kx("0xf")),o=t[Kx("0xb")].get("StyleUtils")[Kx("0x1")](t[Kx("0xb")][Kx("0x17")](Kx("0x12")),r[Kx("0x1c")]);e._enableDefaultAttributesIntegration(Kx("0x8"));const s=new Set;for(const t of o[Kx("0xd")]){const e=i[Kx("0x7")](t[Kx("0x16")]);s[Kx("0x1a")](e)}const x=new Set;for(const t of o[Kx("0xa")]){const e=i[Kx("0x7")](t[Kx("0x16")]);x.add(e);for(const e of t[Kx("0x10")])x[Kx("0x1a")](e)}for(const t of s)e[Kx("0x6")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));for(const t of x)e[Kx("0x1f")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));this._registerLegacyDescription()}[Kx("0x11")](){const t=this[Kx("0x13")],e=t[Kx("0x22")];t.plugins[Kx("0x17")](Kx("0x1d"))[Kx("0x1e")][Kx("0x2")]((t=>{if(Kx("0xe")!=t[Kx("0xc")]&&Kx("0x14")!=t[Kx("0xc")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x21")][0][Kx("0x1b")]?{type:Kx("0x4"),content:Yr(e,Kx("0x19"),n[Kx("0x21")][0][Kx("0x3")][Kx("0x18")]())}:{type:Kx("0x4"),content:Yr(e,Kx("0x9"),n[Kx("0x21")][0][Kx("0x3")].toLowerCase())}:void 0}))}}const Xx=["writer","ELEMENT_TABLE","tableCell","afterInit","add","classes","last","insertTableColumnRight","insertTableColumnLeft","max","ELEMENT_TABLE_ROW","ELEMENT_TABLE_WITH_TEXT","registerPostFixer","$textProxy","MAX_SAFE_INTEGER","insertion","MIN_SAFE_INTEGER","removeClass","getFirstRange","removeTableRow","insertTableRowAbove","rootName","position","plugins","rowspan","end","ELEMENT_TABLE_COLUMN_WITH_TEXT","length","getItems","TableEditing","getSelectionAffectedTableCells","$graveyard","getChanges","name","minColumn","enqueueChange","push","getChildren","execute","order","cell","data","startsWith","minRow","item","substr","TableUtils","_descriptionFactory","root","colspan","change:data","accept","get","insertTableRowBelow","document","getContainedElement","nodeBefore","getAttribute","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","insertTable","TrackChangesEditing","getColumnIndexes","detach","maxRow","registerElementLabel","insert","locale","hasAttribute","createTableWalker","*Remove:* %0","tableRow","refresh","filter","discard","tableColumn","above","addClass","start","table","options","registerDescriptionCallback","setSelection","addMarker:suggestion","_tableSuggestions","some","_getCoordsForCells","editor","toLowerCase","getCellLocation","isTouching","join","_getSuggestionCoords","mapper","min","registerCustomCallback","findAncestor","deletion","left","values","removeTableColumn","_tablePostFixingSubtypes","maxColumn","_suggestionFactory","change","isIntersectingWithRange","type","_setupColumnsRowsFixing","createRangeOn","showSuggestionHighlights","downcastDispatcher","suggestion","fromRange","element","tablePaste","getRowIndexes","commands","isInContent","model","*Insert:* %0","includes","from","getChangedMarkers","selection","forceValue","getSuggestion","createRangeIn","selectTableColumn","enableCommand","first","addRange","markMultiRangeInsertion","_splitMarkerName","differ","map","subType","low","span","ELEMENT_TABLE_COLUMN","nodeAfter","selectTableRow"];var $x,Zx;$x=Xx,Zx=139,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Qx=function(t,e){return Xx[t-=0]};class Yx extends t.Plugin{constructor(t){super(t),this[Qx("0x67")]=[Qx("0x49"),Qx("0x4d")],this[Qx("0x56")]=new Set}[Qx("0x5")](){const t=this[Qx("0x59")],e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];if(!t.plugins.has(Qx("0x1f")))return;const n=t[Qx("0x45")],r=t.plugins.get(Qx("0x3f")),i=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));r[Qx("0x31")][Qx("0x43")]("table",(t=>Yr(n,Qx("0x3"),t))),this[Qx("0x6d")](),r[Qx("0x82")](Qx("0x3e")),r[Qx("0x82")](Qx("0x1")),r.enableCommand(Qx("0x81"));for(const n of[Qx("0x16"),Qx("0x37")]){const o=t[Qx("0x76")][Qx("0x36")](n);r[Qx("0x82")](n,(n=>{t[Qx("0x78")].change((t=>{n();const s=Qx("0x4e")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x75")](x),c=s?a.first-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:c,endRow:c}),d=Array[Qx("0x7b")](u).map((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x49"))}))}))}for(const n of[Qx("0xa"),Qx("0x9")]){const o=t[Qx("0x76")][Qx("0x36")](n);r.enableCommand(n,(n=>{t[Qx("0x78")][Qx("0x6a")]((t=>{n();const s=Qx("0x64")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x40")](x),c=s?a[Qx("0x83")]-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Qx("0x88")]((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x4d"))}))}))}for(const n of[Qx("0x15"),Qx("0x66")]){const o=n.substr(11),s=o[Qx("0x5a")](),x=s[Qx("0x2f")](0,3)+Qx("0x8b"),a=Qx("0x51")+o,c="min"+o,l=Qx("0xb")+o;r[Qx("0x82")](n,(()=>{t[Qx("0x78")][Qx("0x6a")]((t=>{const o=i[Qx("0x20")](e),u=o[0][Qx("0x62")](Qx("0x51"));let d;if(Qx("0x15")==n){const t=i[Qx("0x75")](o);d={startRow:t[Qx("0x83")],endRow:t[Qx("0x8")],includeAllSlots:!0}}else{const t=i[Qx("0x40")](o);d={startColumn:t[Qx("0x83")],endColumn:t[Qx("0x8")],includeAllSlots:!0}}const g=i[Qx("0x47")](u,d),f=Array[Qx("0x7b")](g).map((({cell:t})=>t)),h=Jx(f[Qx("0x4b")]((t=>t[Qx("0x46")](x)))),m=Jx(f[Qx("0x4b")]((t=>!t[Qx("0x46")](x)))).map((e=>t[Qx("0x6e")](e))),p=r.markMultiRangeDeletion(m,a);if(p&&(Qx("0x49")==p[Qx("0x89")]||Qx("0x4d")==p[Qx("0x89")])){const e=this[Qx("0x5e")](p);for(const n of h){const r=t[Qx("0x6e")](n),o=i[Qx("0x5b")](n),a=n[Qx("0x3b")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Qx("0x84")](r)}}}))}))}function o(n){const r=Array[Qx("0x7b")](e.getRanges()).map((t=>s.LiveRange.fromRange(t)));t[Qx("0x78")][Qx("0x6a")]((e=>{const i=e.batch;n=n.filter((t=>Qx("0x21")!=t[Qx("0x32")].rootName)),e[Qx("0x54")](n),t[Qx("0x76")][Qx("0x36")]("removeTableRow")[Qx("0x4a")](),t[Qx("0x28")](Qx("0x15"),{forceDefaultExecution:!0}),t[Qx("0x78")].enqueueChange((()=>{t.model[Qx("0x25")](i,(t=>{const e=r[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));e.length>0&&t[Qx("0x54")](e);for(const t of r)t[Qx("0x41")]()}))}))}))}function a(n){t[Qx("0x78")][Qx("0x6a")]((r=>{const i=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange.fromRange(t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o[Qx("0x26")](e);for(const e of o)Qx("0x21")!=e[Qx("0x32")][Qx("0x17")]&&(r.setSelection(r.createPositionAt(e,0)),t[Qx("0x76")][Qx("0x36")](Qx("0x66")).refresh(),t[Qx("0x28")](Qx("0x66"),{forceDefaultExecution:!0}));const x=i.filter((t=>Qx("0x21")!=t.root[Qx("0x17")]));x.length>0&&r[Qx("0x54")](x);for(const t of i)t[Qx("0x41")]()}))}function c(t,e){return e.every((e=>t[Qx("0x57")]((t=>t[Qx("0x1b")].isEqual(e.start)||e.end.isEqual(t[Qx("0x50")])))))}function l(t,e){return t[Qx("0x57")]((t=>e.some((e=>t.end[Qx("0x5c")](e.start)))))}t[Qx("0x2b")][Qx("0x70")].on(Qx("0x55"),((t,e,n)=>{if(!n[Qx("0x52")][Qx("0x6f")])return;const r=e[Qx("0x2e")];if(!r)return;const i=n[Qx("0x5f")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&"tableCell"===r[Qx("0x23")]&&(0,x.setHighlightHandling)(i,n[Qx("0x2")],((t,e,n)=>n[Qx("0x4f")](o(e[Qx("0x7")]),t)),((t,e,n)=>n[Qx("0x13")](o(e.classes),t)))}),{priority:"highest"}),r._descriptionFactory[Qx("0x53")]((t=>{if("insertion"!=t[Qx("0x6c")]&&Qx("0x63")!=t[Qx("0x6c")])return;const e=t[Qx("0x39")]();if(null!=e&&e.is(Qx("0x73"),Qx("0x51"))){if(Qx("0x11")==t.type){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf")))).map((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x11"),content:Yr(n,"*Insert:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}if("deletion"==t[Qx("0x6c")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}}})),r[Qx("0x31")][Qx("0x53")]((t=>{if(Qx("0x49")==t[Qx("0x89")]){const e=t.getItems()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t.data)),r=this[Qx("0x5e")](t),i=r[Qx("0x42")]-r[Qx("0x2d")]+1;if(Qx("0x11")==t.type)return e[Qx("0x1d")]?{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0xc"),i))};if(Qx("0x63")==t.type)return e[Qx("0x1d")]?{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,Qx("0xc"),i))}}if(Qx("0x4d")==t[Qx("0x89")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")])),r=this[Qx("0x5e")](t),i=r[Qx("0x68")]-r[Qx("0x24")]+1;if(Qx("0x11")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"insertion",content:Yr(n,Qx("0x79"),Yr(n,Qx("0x1c"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"insertion",content:Yr(n,"*Insert:* %0",Yr(n,Qx("0x8c"),i))};if(Qx("0x63")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x8c"),i))}}})),r._suggestionFactory[Qx("0x61")]("insertion",Qx("0x49"),Qx("0x4c"),o),r._suggestionFactory[Qx("0x61")](Qx("0x63"),"tableRow",Qx("0x35"),o),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x4c"),a),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),"accept",a),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")].registerCustomCallback(Qx("0x11"),"tableRow",Qx("0x5d"),l),r[Qx("0x69")][Qx("0x61")]("deletion",Qx("0x49"),Qx("0x5d"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];return(n,r)=>{t[Qx("0x78")][Qx("0x6a")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Qx("0x1b")][Qx("0x3a")];x&&x[0]&&!1===x[0][Qx("0x7e")]&&(a=n[0][Qx("0x50")][Qx("0x0")]);const c=i[Qx("0x80")](a);if(Qx("0x21")==c[Qx("0x32")].rootName)return;const l=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange[Qx("0x72")](t)));i.setSelection(c),t[Qx("0x76")][Qx("0x36")](o)[Qx("0x4a")](),x[Qx("0x26")]({forceDefaultExecution:!0}),t.execute(o,...x);const u=l[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));u[Qx("0x1d")]>0&&i[Qx("0x54")](u);for(const t of l)t[Qx("0x41")]()}))}}[Qx("0x58")](t){const e=this[Qx("0x59")][Qx("0x19")][Qx("0x36")](Qx("0x30"));let n=Number[Qx("0x10")],r=Number[Qx("0x12")],i=Number[Qx("0x10")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Qx("0x21")==s.root[Qx("0x17")])continue;const{row:t,column:x}=e[Qx("0x5b")](s),a=s[Qx("0x46")](Qx("0x1a"))?s[Qx("0x3b")](Qx("0x1a"))-1:0,c=s.hasAttribute(Qx("0x33"))?s[Qx("0x3b")]("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Qx("0x6d")](){const t=this.editor,e=t[Qx("0x19")][Qx("0x36")](Qx("0x3f")),n=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));t[Qx("0x78")][Qx("0x38")].on(Qx("0x34"),(()=>{const n=Array[Qx("0x7b")](t[Qx("0x78")].document[Qx("0x87")][Qx("0x7c")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Qx("0x86")](t);if(Qx("0x71")!=n)continue;if(null!=r.oldRange)continue;const s=e[Qx("0x7f")](i);this[Qx("0x67")][Qx("0x7a")](o)&&this[Qx("0x56")][Qx("0x6")](s)}}),{priority:Qx("0x8a")});const r=(t,e)=>{let r=!1;const i=e[Qx("0x6e")](t),o=t[Qx("0x62")](Qx("0x51")),s=n[Qx("0x5b")](t);for(const e of this[Qx("0x56")]){const n=e[Qx("0x89")],x=n[Qx("0x2c")](Qx("0x74")),a=n.substr(x?10:5),c=a[Qx("0x5a")](),l=c[Qx("0x2f")](0,3)+Qx("0x8b"),u=Qx("0x60")+a,d=Qx("0xb")+a;if(!e[Qx("0x77")])continue;if(o!=e[Qx("0x14")]()[Qx("0x50")][Qx("0x62")]("table"))continue;if(e[Qx("0x6b")](i))continue;const g=t[Qx("0x46")](l)?t.getAttribute(l)-1:0,f=this[Qx("0x5e")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model[Qx("0x38")][Qx("0xe")]((e=>{let n=!1;for(const i of t.model[Qx("0x38")].differ[Qx("0x22")]())if(Qx("0x44")==i[Qx("0x6c")])if(Qx("0x49")==i[Qx("0x23")])for(const t of i[Qx("0x18")][Qx("0x0")][Qx("0x27")]())n=n||r(t,e);else Qx("0x4")==i.name&&(n=n||r(i[Qx("0x18")][Qx("0x0")],e));return n}))}[Qx("0x5e")](t){return this._getCoordsForCells(t.getRanges()[Qx("0x88")]((t=>t[Qx("0x50")][Qx("0x0")])))}}function Jx(t){return Array[Qx("0x7b")](new Set(t)[Qx("0x65")]())}const ta=["plugins","get","value","getSelectionAffectedTableCells","stop","afterInit","isInContent","_descriptionFactory","registerCustomCallback","locale","detach","accept","commands","getAncestors","splitTableCellHorizontally","findAncestor","has","mergeTableCellLeft","getCellLocation","requires","length","model","containsRange","root","mergeTableCells","formatInline","createTableWalker","direction","_suggestionFactory","registerDescriptionCallback","_isForcedDefaultExecutionBlock","_tablePostFixingSubtypes","format","add","_areMergableCells","_areSelectedCellsMergable","from","getRanges","*Merge cells*","map","TrackChangesEditing","TableUtils","fromRange","trackChanges","formatBlock","table","size","getSuggestions","subType","$graveyard","*Split cell:* vertically","document","commandName","push","deletion","find","low","execute","insertion","setSelection","selection","cell","type","element","*Split cell:* horizontally","markBlockFormat","markMultiRangeBlockFormat","_acceptFormatSuggestionCallbackFactory","return","forceDefaultExecution","tableCell","mergeTableCellRight","set:isEnabled","mergeTableCellDown","author","highest","enableCommand","splitTableCellVertically","editor","filter","change"];var ea,na;ea=ta,na=298,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x2d")](){return[Yx]}[ra("0x1f")](){const t=this.editor,e=t[ra("0x2f")][ra("0x4d")].selection,n=t[ra("0x23")];if(!t[ra("0x1a")][ra("0x2a")]("TableEditing"))return;const r=t[ra("0x1a")].get(ra("0x42")),i=t[ra("0x1a")][ra("0x1b")](ra("0x43")),o=t[ra("0x1a")].get(Yx);o[ra("0x39")][ra("0x4f")](ra("0x32")),r[ra("0x15")]("mergeTableCells",(()=>{const e=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")][ra("0x5")]);t[ra("0x2f")][ra("0x19")]((()=>{r[ra("0xb")](e,{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))})),t[ra("0x26")][ra("0x1b")]("mergeTableCells").on(ra("0x2"),((e,n)=>{t[ra("0x26")][ra("0x1b")](ra("0x45"))[ra("0x1c")]&&(n[ra("0x2e")]>0&&n[n[ra("0x2e")]-1]&&n[n.length-1][ra("0xe")]||r[ra("0x38")]||this[ra("0x3d")]()||e[ra("0x1e")]())}),{priority:ra("0x14")});for(const e of["mergeTableCellUp","mergeTableCellRight",ra("0x12"),ra("0x2b")]){const n=t[ra("0x26")].get(e);r[ra("0x15")](e,(()=>{const e=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf")))),i=n[ra("0x1c")];t[ra("0x2f")][ra("0x19")]((()=>{r.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))}))}for(const e of["splitTableCellVertically",ra("0x28")]){const n=t[ra("0x26")][ra("0x1b")](e);r.enableCommand(e,(()=>{const o=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")].selection)[0],s=o[ra("0x29")](ra("0x47")),{column:x,row:a}=i[ra("0x2c")](o);let c=[];if("horizontally"==n[ra("0x35")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[ra("0x6")]))}else{const t=i[ra("0x34")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3e")](t).map((t=>t[ra("0x6")]))}t[ra("0x2f")][ra("0x19")]((t=>{r[ra("0xa")](t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x21")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x7")]&&"formatInline"!=t[ra("0x7")])return;const{data:e}=t;return e&&ra("0x32")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x40"))}:void 0})),r._descriptionFactory[ra("0x37")]((t=>{if(ra("0x46")!=t.type&&ra("0x33")!=t.type)return;const{data:e}=t;return e?ra("0x16")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x4c"))}:ra("0x28")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x9"))}:void 0:void 0}));const x=o[ra("0xc")]();for(const t of["mergeTableCellUp",ra("0x10"),ra("0x12"),"mergeTableCellLeft"])r[ra("0x36")][ra("0x22")](ra("0x46"),t,ra("0x25"),x);for(const t of[ra("0x16"),ra("0x28")])r._suggestionFactory[ra("0x22")](ra("0x46"),t,"accept",x);r._suggestionFactory[ra("0x22")]("formatBlock",ra("0x32"),ra("0x25"),(n=>{t[ra("0x2f")][ra("0x19")]((r=>{const i=Array.from(e[ra("0x3f")]())[ra("0x41")]((t=>s.LiveRange[ra("0x44")](t)));r.setSelection(n),t[ra("0x26")][ra("0x1b")](ra("0x32")).refresh(),t[ra("0x2")](ra("0x32"),{forceDefaultExecution:!0});const o=i[ra("0x18")]((t=>ra("0x4b")!=t[ra("0x31")].rootName));o.length>0&&r[ra("0x4")](o);for(const t of i)t[ra("0x24")]()}))}));for(const e of["mergeTableCellUp",ra("0x12"),"mergeTableCellLeft",ra("0x10")]){const n=t[ra("0x26")][ra("0x1b")](e);n.on(ra("0x11"),((e,r,i)=>{if(i){const r=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf"))));this._areMergableCells(n[ra("0x1c")],r)||(e[ra("0xd")]=!1,e[ra("0x1e")]())}}),{priority:ra("0x1")})}}[ra("0x3d")](){const t=this[ra("0x17")].commands[ra("0x1b")](ra("0x32")),e=this[ra("0x17")][ra("0x1a")].get(ra("0x43"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[ra("0x17")][ra("0x2f")][ra("0x4d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x3c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[ra("0x17")][ra("0x1a")][ra("0x1b")](ra("0x42")),r=this.editor.model.createRangeOn(t),i=this[ra("0x17")][ra("0x2f")].createRangeOn(e),o=new Set,s=new Set;for(const t of n[ra("0x49")]())if((ra("0x3")==t.type||ra("0x50")==t[ra("0x7")]||ra("0x32")==t[ra("0x4a")])&&t[ra("0x20")])for(const e of t[ra("0x3f")]())e[ra("0x30")](r,!0)&&o[ra("0x3b")](t.type+":"+t[ra("0x13")].id),e.containsRange(i,!0)&&s[ra("0x3b")](t[ra("0x7")]+":"+t.author.id);if(o[ra("0x48")]!=s[ra("0x48")])return!1;for(const t of o)if(!s[ra("0x2a")](t))return!1;return!0}}const oa=["setTableColumnHeader","_handleLegacySuggestions","editing","mapper","_acceptFormatSuggestionCallbackFactory","setAttribute","createTableWalker","locale","_suggestionFactory","type","name","get","formatBlock","writer","requires","ck-suggestion-marker-","commandName","addMarker:suggestion","_descriptionFactory","removeAttribute","data","registerDescriptionCallback","removeMarker:suggestion","registerCustomCallback","forceValue","addClass","downcastDispatcher","_enableDefaultAttributesIntegration","getSuggestion","activeMarkers","format","setTableRowHeader","nodeBefore","FORMAT_HEADER_ROW","registerAttributeLabel","FORMAT_HEADER_COLUMN","removeClass","headingRows","commandParams","plugins","stop","_splitMarkerName","bindElementToMarker","consume","ck-suggestion-marker--active","parent","FORMAT_REGULAR_ROW","end","toViewElement","has","cell","getCellLocation","options","start","includes","headingColumns","accept","_registerLegacyDescription","markerName","item","afterInit","highest","data-suggestion","*Format:* %0","unbindElementFromMarkerName","TrackChangesEditing","editor","markerRange","TableUtils"];var sa,xa;sa=oa,xa=194,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x1b")](){return[Yx]}[aa("0x4")](){const t=this[aa("0xa")];if(!t[aa("0x34")][aa("0x3e")]("TableEditing"))return;const e=t[aa("0x14")],n=t.plugins[aa("0x18")](aa("0x9"));n[aa("0x28")](aa("0x2c"),[],[aa("0x32")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[aa("0x44")]),n[aa("0x1f")][aa("0x2f")](aa("0x32"),Yr(e,aa("0x2e"))),n[aa("0x1f")][aa("0x2f")]("headingColumns",Yr(e,aa("0x30"))),this[aa("0xe")]()}[aa("0xe")](){const t=this[aa("0xa")].plugins[aa("0x18")](aa("0x9")),e=this[aa("0xa")][aa("0x34")].get(aa("0xc")),n=this[aa("0xa")][aa("0x34")][aa("0x18")](Yx)[aa("0x11")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x36")](o[aa("0x2")]),c=t[aa("0x29")](a),l=c[aa("0x21")];if(aa("0x19")!=c[aa("0x16")]||!l||aa("0xd")!=l[aa("0x1d")])return;if(o[aa("0x3")])return void i[aa("0x35")]();if(!s.consumable[aa("0x38")](o[aa("0xb")],i[aa("0x17")]))return;const u=o[aa("0xb")][aa("0x42")].nodeAfter,d=o.markerRange[aa("0x3c")][aa("0x2d")],g=u[aa("0x3a")][aa("0x3a")],{column:f}=e.getCellLocation(u),{column:h}=e[aa("0x40")](d);for(let i=f;i<=h;i++){const c=e[aa("0x13")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x3f")],c=s[aa("0x10")][aa("0x3d")](i);s[aa("0x1a")][aa("0x26")](aa("0x1c")+x,c),r&&s[aa("0x1a")][aa("0x12")](aa("0x6"),a,c),s[aa("0x10")][aa("0x37")](c,o[aa("0x2")]),n&&(t[aa("0x2a")][aa("0x43")](o[aa("0x2")])?s[aa("0x1a")][aa("0x26")](aa("0x39"),c):s[aa("0x1a")].removeClass(aa("0x39"),c))}}}}t._suggestionFactory[aa("0x24")](aa("0x19"),aa("0x2c"),aa("0x0"),n),t[aa("0x15")][aa("0x24")]("formatBlock",aa("0xd"),aa("0x0"),n),this[aa("0xa")][aa("0xf")].downcastDispatcher.on(aa("0x1e"),r(),{priority:aa("0x5")}),this[aa("0xa")].data[aa("0x27")].on(aa("0x1e"),((t,e,n)=>{n[aa("0x41")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x5")}),this[aa("0xa")][aa("0xf")][aa("0x27")].on(aa("0x23"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x36")](n[aa("0x2")]),s=t[aa("0x29")](o),x=s.data;if(aa("0x19")!=s[aa("0x16")]||!x||aa("0xd")!=x[aa("0x1d")])return;const a=r[aa("0x10")].markerNameToElements(n[aa("0x2")]);if(a)for(const t of a)r[aa("0x1a")][aa("0x31")](aa("0x1c")+i,t),r[aa("0x1a")][aa("0x31")](aa("0x39"),t),r[aa("0x1a")][aa("0x20")]("data-suggestion",t),r.mapper[aa("0x8")](t,n[aa("0x2")])}),{priority:"highest"}),this[aa("0x1")]()}[aa("0x1")](){const t=this[aa("0xa")],e=t[aa("0x14")];function n(t){return{type:aa("0x2b"),content:Yr(e,aa("0x7"),t)}}t[aa("0x34")][aa("0x18")](aa("0x9"))[aa("0x1f")][aa("0x22")]((t=>{if(aa("0x19")!=t[aa("0x16")])return;const{data:r}=t;if(r){if(aa("0x2c")==r[aa("0x1d")]){const t=r[aa("0x33")][0][aa("0x25")];return n(Yr(e,aa(t?"0x2e":"0x3b")))}if(aa("0xd")==r.commandName){const t=r.commandParams[0][aa("0x25")];return n(Yr(e,t?aa("0x30"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["$graveyard","getMarkers","removeRows","tablePasteColumn","getRanges","tableCellBackgroundColor","selection","content","schema","markMultiRangeInsertion","startsWith","position","tableCellPadding","push","root","accept","deletionRanges","previousSibling","start","previous","has","includes","getSuggestions","isInContent","model","markerAttributes","getChildren","getShiftedBy","fill","conversion","columnInsertionIndexes","insertRows","_getCoordsForCells","subType","activeMarkers","differ","getChild","nodeAfter","isEqual","endRow","hasSuggestion","change","deletion","nextSibling","discard","insertion","forceDefaultExecution","getAttributes","createElement","afterInit","rowInsertionIndexes","_replaceTableSlotCell","getColumns","setAttribute","insertContent","updateMarker","type","_isForcedDefaultExecutionBlock","tablePasteChainId","TableClipboard","tableCellBorderWidth","cell","find","_tablePostFixingSubtypes","newRange","editor","name","suggestionUnloaded","tableCellBorderColor","batch","ck-suggestion-marker","removeMarkers","getRows","paragraph","end","isEmpty","some","suggestion:formatBlock:tablePasteCell","markerToHighlight","join","createRangeOn","value","editingDowncast","first","editing","ck-suggestion-marker--active","markerName","table","attributes","add","remove","stop","ck-suggestion-marker-insertion","columnInsertionRanges","map","tableCellBorderStyle","endColumn","tablePasteCell","filter","getRange","last","tableCellSuggestion","tablePasteRow","wrap","registerPostFixer","*Replace table cells*","suggestion-td","getSuggestion","getSuggestionCallback","high","trackChanges","clipboardOutput","containsRange","columns","dataDowncast","insert","findAncestor","row","markMultiRangeDeletion","TrackChangesEditing","fromEntries","getItems","low","getSelectionAffectedTableCells","_splitMarkerName","getAllAdjacentSuggestions","createPositionBefore","formatBlock","markMultiRangeBlockFormat","removeMarker","for","createRangeIn","setAttributes","insertionRanges","createTableWalker","elementToElement","rowInsertionRanges","getRowIndexes","oldRange","keys","documentSelection","plugins","view","element","getTableIfOnlyTableInContent","insertColumns","listenTo","set","get","_suggestionFactory","entries","suggestion","author","options","getContainedElement","Users","from","removeColumns","registerCustomCallback","createRange","length","locale","registerDescriptionCallback","document","commands","tablePaste","_createdBatches"];var ua,da;ua=la,da=323,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x47"),ga("0x4f"),ga("0x6a"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",ga("0x10"),ga("0x17")],ha=Object[ga("0x83")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Yx]}[ga("0x3c")](){const t=this.editor;if(!t[ga("0x98")][ga("0x1f")]("TableClipboard"))return;const n=t.plugins[ga("0x9f")](ga("0x82")),r=t[ga("0x98")][ga("0x9f")]("TableUtils"),i=t[ga("0x98")].get(Yx),o=t[ga("0x98")].get("TableClipboard");i[ga("0x4a")].push(ga("0x71"),ga("0xe")),t[ga("0x23")][ga("0x13")].register("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t.conversion[ga("0x92")]({model:ga("0x70"),view:ga("0x75")});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x4")]-1];l&&l[ga("0x39")]||n[ga("0x44")]||this[ga("0x4c")].commands[ga("0x9f")](ga("0x79"))[ga("0x5c")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x97")))return!1;const o=i[ga("0x9b")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x86")](n.document[ga("0x11")]);if(!s[ga("0x4")])return!1;const x=s[0][ga("0x7f")](ga("0x62")),a=r[ga("0x94")](s),c=r.getColumnIndexes(s),l={startRow:a[ga("0x5e")],endRow:a.last,startColumn:c.first,endColumn:c[ga("0x6f")]};return 1==s[ga("0x4")]&&(l[ga("0x32")]+=r[ga("0x53")](o)-1,l[ga("0x6b")]+=r[ga("0x3f")](o)-1),ba(x,l,r)}(a,c,t[ga("0x23")],r,o)&&(i[ga("0x66")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x23")][ga("0x34")]((()=>{t[ga("0x23")][ga("0x41")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x4")]&&n[ga("0x14")](i,"tablePasteRow",{tablePasteChainId:r}),o[ga("0x4")]&&n[ga("0x14")](o,ga("0xe"),{tablePasteChainId:r}),a.length&&n[ga("0x14")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x4")]&&n[ga("0x81")](c,ga("0x9"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x8b")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x6c"),{tablePasteChainId:r});if(u){const e=u[ga("0xc")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x23")][ga("0x5b")](r),s=e[ga("0x49")]((t=>t[ga("0x6e")]().isEqual(o)));s&&n[ga("0x18")]([s.name,i])}n[ga("0x4")]&&u[ga("0x40")](ga("0x24"),Object[ga("0x83")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x98")].get(ga("0x46")).on(ga("0x3e"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t.stop();const o=n[ga("0x48")],x=r,a=pa(o),c=pa(x);t.return=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o[ga("0x2f")](0));for(const t of Array[ga("0x0")](x[ga("0x25")]()))i[ga("0x7e")](t,o,ga("0x55"));const t=s[ga("0x3d")][ga("0x20")](n[ga("0x80")]),e=s[ga("0x29")].includes(n.column);t||e||(l=i[ga("0x8e")](o))}else c&&!a&&(u=i[ga("0x8e")](o));else{const t=i[ga("0x3b")](ga("0x70")),e=i.createElement(ga("0x70"));i[ga("0x72")](i.createRangeIn(o),e),i[ga("0x7e")](t,o,0);for(const e of Array.from(x[ga("0x25")]()))i[ga("0x7e")](e,t,"end");l=i[ga("0x5b")](t),u=i.createRangeOn(e)}const d=Array.from(x[ga("0x3a")]())[ga("0x6d")]((([t])=>fa[ga("0x20")](t)));s.cells[ga("0x18")]({element:o,attributes:d[ga("0x4")]?Object.fromEntries(d):null}),l&&s[ga("0x90")].push(l),u&&s[ga("0x1b")][ga("0x18")](u)}),{priority:ga("0x78")}),r.on(ga("0x9c"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x7c")]||1;s[ga("0x29")]=new Array(a)[ga("0x27")](x)[ga("0x69")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x68")][ga("0x18")](t[ga("0x23")].createRangeOn(e))}),{priority:ga("0x85")}),r.on(ga("0x2a"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x3d")]=new Array(a)[ga("0x27")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startRow:x,endRow:x+a-1}))s[ga("0x93")][ga("0x18")](t[ga("0x23")][ga("0x5b")](e))}),{priority:ga("0x85")}),n._descriptionFactory[ga("0x6")]((e=>{if(e[ga("0x2c")]&&e.subType[ga("0x15")](ga("0x9")))return e.previous?{}:{type:"insertion",content:Yr(t[ga("0x5")],ga("0x74"))}}));const x=()=>!1;for(const t of[ga("0x9"),ga("0xe"),ga("0x71"),ga("0x6c")])n._suggestionFactory[ga("0x2")]("insertion",t,ga("0x5a"),x),n[ga("0xa0")].registerCustomCallback(ga("0x35"),t,ga("0x5a"),x),n[ga("0xa0")][ga("0x2")](ga("0x8a"),t,ga("0x5a"),x);n._suggestionFactory.registerCustomCallback(ga("0x8a"),"tablePasteCell",ga("0x37"),x),n[ga("0xa0")][ga("0x2")]("formatBlock",ga("0x6c"),"accept",((e,n,r)=>{const i=e[ga("0x69")]((t=>t.getContainedElement()))[ga("0x6d")]((t=>t)),o=new Map(i[ga("0x69")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o.set(t,e);else if(r&&r[ga("0x24")])for(const[e,n]of Object[ga("0xa1")](r[ga("0x24")])){const r=t[ga("0x23")].markers[ga("0x9f")](e),i=r?r.getRange()[ga("0xa5")]():null;i&&o[ga("0x9e")](i,n)}t[ga("0x23")][ga("0x34")]((t=>{for(const[e,n]of o)t[ga("0x8f")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0xa0")][ga("0x2")](e,ga("0x9"),r,((i,o,s)=>{t[ga("0x23")][ga("0x34")]((t=>{const x=[];for(const t of i){const e=t[ga("0x1d")][ga("0x30")];e.is(ga("0x9a"),ga("0x70"))&&x.push(e)}n[ga("0xa0")][ga("0x77")](e,null,r)(i,o,s);for(const e of x)ga("0xb")!=e[ga("0x19")].rootName&&t.unwrap(e)}))}))};a(ga("0x38"),ga("0x1a")),a("insertion",ga("0x37")),a(ga("0x35"),"accept"),a(ga("0x35"),ga("0x37")),n[ga("0xa0")].registerCustomCallback(ga("0x38"),ga("0x71"),ga("0x37"),(t=>{const e=t.map((t=>t[ga("0xa5")]())),n=e[0][ga("0x7f")]("table"),{minRow:o,maxRow:s}=i[ga("0x2b")](e);r[ga("0xd")](n,{at:o,rows:s-o+1})})),n._suggestionFactory.registerCustomCallback(ga("0x38"),"tablePasteColumn","discard",(t=>{const e=t[ga("0x69")]((t=>t.getContainedElement())),n=e[0].findAncestor(ga("0x62")),{minColumn:o,maxColumn:s}=i[ga("0x2b")](e);r[ga("0x1")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x2c")]||!e.subType[ga("0x15")](ga("0x9")))return;const r=e[ga("0x63")][ga("0x45")],i=n[ga("0x21")]()[ga("0x6d")]((t=>t[ga("0x22")]&&t[ga("0x63")]&&t.attributes[ga("0x45")]==r));i[ga("0x4")]&&e.getAllAdjacentSuggestions().length!=i[ga("0x4")]&&i.reduce(((t,e)=>(t.next=e,e[ga("0x1e")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t.markerName),i=[ga("0x51"),ga("0x67")],o=n[ga("0x2d")][ga("0x20")](t[ga("0x61")]);return o&&i[ga("0x18")](ga("0x60")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ga("0x78")}),n.on(ga("0x4e"),c,{priority:"high"}),t[ga("0x23")][ga("0x7")][ga("0x73")]((()=>{let e=!1;const r=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x87")](i);if(ga("0xa2")!=r||"deletion"!=s||o[ga("0x95")])continue;if(!n[ga("0x33")](x))continue;const a=n[ga("0x76")](x)[ga("0xf")](),c=t[ga("0x98")][ga("0x9f")](ga("0xa6")).me;for(const t of n[ga("0x21")]())if(t[ga("0x22")]&&t[ga("0xa3")]==c&&ga("0x8a")==t[ga("0x43")]&&ga("0x6c")==t[ga("0x2c")]&&t[ga("0xf")]().every((t=>a[ga("0x57")]((e=>e[ga("0x7b")](t,!0))))))for(const n of t[ga("0x88")]())n[ga("0x22")]&&(n[ga("0x37")](),e=!0)}return e})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{const r=t[ga("0x8")][ga("0x9f")]("redo");if(!r||!r[ga("0xa")].has(e[ga("0x50")]))return!1;let i=!1;const o=t[ga("0x98")][ga("0x9f")]("Users").me,s=t[ga("0x23")].document[ga("0x2e")].getChanges(),x=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers())[ga("0x6d")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x87")](t);return ga("0xa2")==r&&ga("0x9")==i&&s==o.id&&!e[ga("0x95")]}));for(const t of s){if(ga("0x7e")!=t[ga("0x43")]||ga("0x70")!=t.name||1!=t[ga("0x4")])continue;const n=e[ga("0x3")](t[ga("0x16")],t[ga("0x16")][ga("0x26")](1));if(!x[ga("0x49")]((({data:t})=>t[ga("0x4b")][ga("0x31")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ga("0x4b")])){e[ga("0x42")](t,{range:n}),i=!0;break}}return i})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{let r=!1;const i=t.plugins[ga("0x9f")]("Users").me,o=n.getSuggestions()[ga("0x6d")]((t=>t[ga("0x22")]&&t.author==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x9")==t[ga("0x2c")])for(const e of t[ga("0xc")]()){const n=e[ga("0x6e")]()[ga("0xa5")]();if(n)if(n.is(ga("0x9a"),ga("0x70"))&&pa(n)){t[ga("0x8c")](e[ga("0x4d")]),s[ga("0x64")](n),r=!0;const i=n[ga("0x36")],o=n[ga("0x1c")],a=i&&i.is("element","tableCellSuggestion"),c=o&&o.is(ga("0x9a"),ga("0x70"));a&&!s.has(i)&&x.add(i),c&&!s.has(o)&&x[ga("0x64")](o)}else n.is(ga("0x9a"),"paragraph")&&n[ga("0x56")]&&(t[ga("0x8c")](e[ga("0x4d")]),r=!0)}else if(ga("0x6c")==t[ga("0x2c")]){if(!t[ga("0x63")]||!t.attributes[ga("0x45")])continue;const e=t[ga("0x63")][ga("0x24")];if(e&&Object[ga("0x96")](e)[ga("0x4")])continue;const n=t[ga("0x63")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x2c")]&&e[ga("0x2c")][ga("0x15")]("tablePaste")){if(!e[ga("0x63")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0x63")].tablePasteChainId==n){i=!1;break}}s&&i&&(t[ga("0x52")](),r=!0)}for(const t of s)e[ga("0x65")](t);for(const t of x)e.unwrap(t);return r})),t[ga("0x28")][ga("0x8d")](ga("0x5d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>l(t),converterPriority:ga("0x78")}),t[ga("0x28")][ga("0x8d")](ga("0x7d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>e[ga("0xa4")].showSuggestionHighlights?l(t,!1):null,converterPriority:ga("0x78")});const u=t[ga("0x5f")][ga("0x99")];this[ga("0x9d")](u[ga("0x7")],ga("0x7a"),((t,e)=>{const n=[];for(const t of u[ga("0x8e")](e[ga("0x12")])[ga("0x84")]())t.is(ga("0x9a"),ga("0x75"))&&n.push(t);u[ga("0x34")]((t=>{for(const e of n)t.move(t[ga("0x8e")](e),t[ga("0x89")](e)),t.remove(e)}))}))}}function pa(t){if(t[ga("0x56")])return!0;const e=t[ga("0x2f")](0);return e.is(ga("0x9a"),ga("0x54"))&&e[ga("0x56")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["resizeTable","resizeTableWidth","registerCustomCallback","has","get","handleSuggestionDescription","document","getSuggestionCallback","TableColumnResizeEditing","handleResizeTableWidthCommand","TrackChangesEditing","subType","getSuggestions","columnWidths","table","plugins","afterInit","*Format:* resize table","bind","tableWidth","getTableColumnsWidths","change","discard","format","getColumnGroupElement","markBlockFormat","_descriptionFactory","formatBlock","_suggestionFactory","data","commandParams","accept","formatInline","getSelectedElement","type","enableCommand","author","model","locale","editor"];var _a,Ta;_a=Ea,Ta=251,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x5")](){if(!this[ya("0x1c")][ya("0x4")][ya("0x20")](ya("0x25")))return;const t=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TrackChangesEditing");t[ya("0x18")](ya("0x1e"),this.handleResizeTableWidthCommand[ya("0x7")](this)),t[ya("0x11")][ya("0x1f")]("formatBlock",ya("0x1d"),ya("0x14"),t[ya("0x11")].getSuggestionCallback(ya("0x10"),null,ya("0xb"))),t[ya("0x11")][ya("0x1f")](ya("0x10"),ya("0x1d"),ya("0xb"),t[ya("0x11")][ya("0x24")](ya("0x10"),null,ya("0x14"))),t[ya("0xf")].registerDescriptionCallback(this[ya("0x22")][ya("0x7")](this))}[ya("0x26")](t,e){const n=this[ya("0x1c")].plugins.get(ya("0x27")),r=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TableColumnResizeEditing"),i=e[ya("0x3")]||this.editor.model[ya("0x23")].selection[ya("0x16")]();this.editor[ya("0x1a")][ya("0xa")]((()=>{const o=r[ya("0xd")](i);let s=o?r[ya("0x9")](o):null,x=i.getAttribute(ya("0x8"))||null;const a=e[ya("0x8")]||x,c=e.columnWidths||s,l=this[ya("0x1c")].plugins.get("Users").me;for(const t of n[ya("0x1")]()){const e=t.getContainedElement();if(ya("0x1d")===t[ya("0x0")]&&e===i){t[ya("0x19")]!==l&&t[ya("0xb")]();const e=t[ya("0x12")][ya("0x13")];x=e[0][ya("0x8")],s=e[0][ya("0x2")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0xe")](i,{commandName:ya("0x1e"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1d")},[],ya("0x1d"))}))}handleSuggestionDescription(t){if(ya("0x10")!=t[ya("0x17")]&&ya("0x15")!=t[ya("0x17")])return;const{data:e}=t;if(e&&ya("0x1d")===e.formatGroupId){const t=ya("0x6");return{type:ya("0xc"),content:Yr(this[ya("0x1c")][ya("0x1b")],t)}}}}const Aa=["insertTemplate","get","plugins","TrackChangesEditing","editor"];var ka,Ia;ka=Aa,Ia=176,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{afterInit(){const t=this[Ra("0x3")];t[Ra("0x1")].has("Template")&&t[Ra("0x1")][Ra("0x0")](Ra("0x2")).enableCommand(Ra("0x4"))}}const va=["insertTableOfContents","registerElementLabel","plugins","ELEMENT_TABLE_OF_CONTENTS","locale","tableOfContents","get","afterInit","TrackChangesEditing","enableCommand"];var Na,La;Na=va,La=258,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x9")](){const t=this.editor;if(!t.commands[Ma("0x8")](Ma("0x2")))return;t[Ma("0x4")].get("TrackChangesEditing")[Ma("0x1")]("insertTableOfContents");const e=t.plugins[Ma("0x8")](Ma("0x0")),n=t[Ma("0x6")];e._descriptionFactory[Ma("0x3")](Ma("0x7"),(t=>Yr(n,Ma("0x5"),t)))}}const Oa=["isEqual","document","start","getNearestSelectionRange","forward","plugins","registerElementLabel","newRange","differ","_splitMarkerName","afterInit","has","TrackChangesEditing","model","end","registerPostFixer","nodeBefore","title-content","removeMarker","get","from","Title","locale","isTouching","isCollapsed","suggestion"];var Fa,Da;Fa=Oa,Da=332,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0x10")](){const t=this.editor;if(!t[Ba("0xb")][Ba("0x11")](Ba("0x1")))return;const e=t[Ba("0xb")][Ba("0x19")](Ba("0x12"));e._descriptionFactory[Ba("0xc")](Ba("0x17"),(()=>Yr(t[Ba("0x2")],"ELEMENT_TITLE"))),t[Ba("0x13")][Ba("0x7")][Ba("0x15")]((n=>{let r=!1;const i=Array[Ba("0x0")](t[Ba("0x13")][Ba("0x7")][Ba("0xe")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Ba("0xf")](o);if(Ba("0x5")!==i||!s[Ba("0xd")])continue;const x=s[Ba("0xd")],a=x[Ba("0x14")][Ba("0x16")];if(!a||!a.is("element",Ba("0x17")))continue;if(!x[Ba("0x8")][Ba("0x3")](x[Ba("0x14")]))continue;const c=t.model.schema[Ba("0x9")](x[Ba("0x14")],Ba("0xa"));if(c&&c[Ba("0x4")]){const t=n.createRange(x[Ba("0x8")],c[Ba("0x8")]);t[Ba("0x6")](x)||(n.updateMarker(o,{range:t}),r=!0)}r||(n[Ba("0x18")](o),r=!0)}return r}))}}const Ua=["afterInit","redo","editor","plugins","get"];var ja,Ga;ja=Ua,Ga=402,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this[Va("0x0")],e=t[Va("0x1")][Va("0x2")]("TrackChangesEditing");t.plugins.has("UndoEditing")&&(e.enableCommand("undo"),e.enableCommand(Va("0x4")))}}const za=["enableCommand","plugins","has","requires","TrackChangesEditing","editor","get","afterInit","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=198,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x3")](){return[Yx]}[qa("0x7")](){const t=this[qa("0x5")];t.plugins[qa("0x2")]("TableCaptionEditing")&&t[qa("0x1")][qa("0x6")](qa("0x4"))[qa("0x0")](qa("0x8"))}}const $a=["findAncestor","editor","TrackChangesEditing","getAttribute","tableCellProperties","TableUtils","table","pluginName","setAttribute","tableProperties","_descriptionFactory","getSuggestionCallback","tableCellBorderColor","tableBorderStyle","formatBlock","handleDiscardAction","_getSuggestion","*Format:* change table properties","afterInit","change","_handlePropertyChange","_suggestionFactory","nodeAfter","format","plugins","registerDescriptionCallback","TrackChangesTableProperties","tableCellVerticalAlignment","subType","join","getSelectionAffectedTableCells","discard","tableCellBorderStyle","locale","get","registerCustomCallback","tableCellHeight","document","handleSuggestionDescription","tableHeight","enqueueChange","getContainedElement","tableCellBorderWidth","getSuggestions","tableCellPadding","accept","tableBackgroundColor","TablePropertiesEditing","model","enableCommand","tableCellHorizontalAlignment","getFirstPosition"];var Za,Qa;Za=$a,Qa=182,function(t){for(;--t;)Za.push(Za.shift())}(++Qa);const Ya=function(t,e){return $a[t-=0]};class Ja extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",Ya("0x27"),"tableBorderWidth","tableAlignment","tableWidth",Ya("0xd"),Ya("0x14")],this[Ya("0x1e")]=[Ya("0x26"),Ya("0x6"),Ya("0x10"),Ya("0x12"),"tableCellWidth",Ya("0xa"),"tableCellBackgroundColor",Ya("0x18"),Ya("0x1")]}static get[Ya("0x21")](){return Ya("0x0")}[Ya("0x2c")](){const t=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));if(this.editor[Ya("0x32")].has(Ya("0x15"))){for(const e of this[Ya("0x23")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection[Ya("0x19")]()[Ya("0x1a")](Ya("0x20"));this[Ya("0x2e")](e,[r],this[Ya("0x23")],Ya("0x23"),t,n)}));t[Ya("0x2f")].registerCustomCallback("formatBlock",Ya("0x23"),Ya("0x13"),t[Ya("0x2f")][Ya("0x25")](Ya("0x28"),null,"discard")),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x23"),Ya("0x5"),((t,e)=>this.handleDiscardAction(this[Ya("0x23")],t,e))),t[Ya("0x2f")].registerCustomCallback(Ya("0x28"),"tableProperties",Ya("0x3"),(()=>!1))}if(this[Ya("0x1b")][Ya("0x32")].has("TableCellPropertiesEditing")){for(const e of this[Ya("0x1e")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1f"))[Ya("0x4")](this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection);this[Ya("0x2e")](e,r,this[Ya("0x1e")],Ya("0x1e"),t,n)}));t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),"accept",t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t[Ya("0x2f")][Ya("0x9")](Ya("0x28"),"tableCellProperties","discard",((t,e)=>this[Ya("0x29")](this[Ya("0x1e")],t,e))),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),Ya("0x3"),(()=>!1))}t[Ya("0x24")][Ya("0x33")]((t=>this[Ya("0xc")](t)))}[Ya("0x2e")](t,e,n,r,i,o){const s=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));this[Ya("0x1b")][Ya("0x16")][Ya("0xe")](o.batch,(()=>{for(const t of e)if(this[Ya("0x2a")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ya("0x1d")](r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}[Ya("0x29")](t,e,n){const r=e[0].start[Ya("0x30")],i=n.commandParams[0];this[Ya("0x1b")][Ya("0x16")][Ya("0x2d")]((e=>{for(const n of t)void 0!==i[n]?e[Ya("0x22")](n,i[n],r):e.removeAttribute(n,r)}))}[Ya("0xc")](t){if(t.data)switch(t[Ya("0x2")]){case"tableProperties":return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")][Ya("0x7")],Ya("0x2b"))};case Ya("0x1e"):return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")].locale,"*Format:* change table cell properties")}}}[Ya("0x2a")](t,e){const n=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1c"));for(const r of n[Ya("0x11")]({skipNotAttached:!0})){const n=r[Ya("0xf")]();if(r[Ya("0x2")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["hasSuggestion","substring","keys","batch","attributeOldValue","ck-suggestion-marker-formatInline","always","getLastMatchingPosition","_addSuggestionMarker","start","notReady","ck-suggestion-marker","_editor","registerCustomCallback","isIntersecting","author","unshift","isArray","markInsertion","getWalker","formatInline:discard","formatBlock:accept","stopListening","_blockAttributeKeys","define","addMarkerName","splitPosition","isAtEnd","default","end","isTouching","attributeNewValue","attribute:","_checkSuggestionCorrectness","addClass","_inlineAttributeKeys","toJSON","addRange","some","_defaultCallbacks","setSelection","value","has","catch","isOwn","_getSuggestionData","isBefore","getDifference","mapper","formatInline:","registerPostFixer","rename","trackChanges.mergeNestedSuggestions","detach","deletion:chain","assign","_trackFormatChanges","accepted","_breakSuggestionMarker","getAttribute","$elementName","isAfter","set","dataToMarker","markerNameToElements","getSuggestions","_suggestions","_updateSuggestionData","chain","startsWith","getChangedMarkers","removeClass","backward","insertion:accept","addMarker","addHighlight","formatInline:chain","_cutOutSuggestionMarker","before","formatBlock:join","splice","schema","toUpperCase","getRange","join","lowest","_mergeNestedSuggestions","targetPosition","delete","createPositionBefore","elementToElement","moveTargetPosition","markerName","_joinSuggestions","_descriptionFactory","_findSuggestions","_afterChanges","substr","fire","formatBlock:chain","markers","every","adapter","updateMarker","differ","getRanges","parent","marker-count","addComment","CommentsRepository","discardSuggestion","for","sort","ck-suggestion-marker-","addCommentThread","_customCallbacks","_commentsRepository","enableReadOnlyMode","unbind","hasCommentThread","isInsideObject","never","plugins","track-changes-suggestion-not-found","discardSelectedSuggestions","_isBlockAttribute","insertion:","previous","deletion:accept","key","_setSuggestionRange","high","getSuggestionCallback","low","requires","external:","getNearestSelectionRange","acceptSuggestion","concat","getMarkers","values","elementStart","from","forEach","_suggestionState","markerReady","$text","multi","remove","next","multipleBlocks","fromCharCode","documentSelection","isMultiRange","_handleNewSuggestionMarker","type","data-suggestion","rootName","execute","track-changes-adapter-missing-getsuggestion","_saved","widget","isUndo","groupId","move","getAncestors","activeMarkers","acceptSelectedSuggestions","_registerBlockAttribute","dataDowncast","name","find","LEAVE","@external","fromRange","_setSuggestionData","newRange","fetchCommentThread","isBlock","createPositionAt","markInlineFormat","trackChangesCommand","commands","getMultiRangeId","ck-suggestion-marker-formatBlock","consumable","push","clone","_createSuggestion","createSelection","bindElementToMarker","filter","removeMarker","accept","attributes","suggestion","upcast","writer","discardAllSuggestions","rejected","_reduceSuggestionAttributeRange","_onDiscard","formatInline:join","consume","createRange","markMultiRangeInsertion","addMarker:suggestion:formatBlock","suggestion-type","_suggestionFactory","_getExternalAuthor","formatBlock","collaboration.channelId","buildSuggestion","formatBlock:","getFirstMarker","deletion","nodeBefore","acceptAllSuggestions","get","init","_enabledCommands","_isDataLoaded","_removeSuggestion","track-changes-suggestion-data-mismatch","highest","normal","isLimit","error-saving-suggestion-data-suggestion-discarded","Users","authorName","removeAttribute","newValue","_rangeIsInLocalUserInsertion","_joinWithAdjacentSuggestions","createdAt","howMany","isNextTo","comments","containsPosition","element","createRangeIn","head","trackChanges.trackFormatChanges","subType","editingDowncast","root","removeMarkers","insert","return","suggestionUnloaded","containsRange","TrackChangesEditing","oldValue","PendingActions","format","map","options","PENDING_ACTION_SUGGESTION","document","_refreshSuggestionsChain","ENTER","creator","setAttribute","getCommentThread","_model","authoredAt","skipNestingCheck","suggestionChanged","removed","locale","isEqual","addSuggestionData","suggestion:","$marker","track-changes-enable-command-twice","$graveyard","refresh","range","getUser","attribute:discard","dataReady","insertion:chain","insertion","forceDefaultExecution","_getMarkerAnnouncementText","oldRange","add","attribute","stop","attributeKey","_enableDefaultAttributesIntegration","discard","trackChanges","_getAuthorFromId","formatBlock:discard","deletion:discard","size","hasComments","_adapter","isObject","change:_saved","createRangeOn","addSuggestion","markerToHighlight","containsRangeInObject","length","formatGroupId","position","_addThreadToSuggestion","enqueueChange","insertion:discard","ck-suggestion-marker--active","getIntersection","_splitMarkerName","_processAttributeSuggestions","item","updateSuggestion","unbindElementFromMarkerName","deletion:join","_SUGGESTION_ANNOUNCEMENT","_element","tablePasteChainId","forward","includes","_isForcedDefaultExecutionBlock","originalSuggestionId","_refreshAttributeSuggestionsChain","deleteContent","group","_recordAttributeChanges","getAllAdjacentSuggestions","_getAttributeKey","suggestion:attribute:","config","toViewElement","track-changes-user-not-found","markDeletion","change","removeMarker:suggestion:formatBlock","data","insertContent","addMarker:suggestion:attribute","isAtStart","enableCommand","isCollapsed","meta","_recordAttributeSuggestions","track-changes-adapter-already-set","markBlockFormat","showSuggestionHighlights","ready","conversion","applyOperation","markMultiRangeBlockFormat","commandName","change:data","update:suggestion","commentThread","editor","isIntersectingWithRange","getCustomProperty","getSuggestion","split","markAttributeChange","isInContent","attribute:join","elementEnd","getChanges","getFirstRange","listenTo","_isRegisteredAttribute","formatInline","then","nodeAfter","_registerDefaultCallbacks","_reduceExistingSuggestions","createElement","suggestionLoaded","model"];var _c,Tc;_c=Ec,Tc=142,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x129");class Ac extends t.Plugin{static get[yc("0x173")](){return[yc("0x15a"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Qo,ns,xs,ds,ys,ps,Rs,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Yx,ia,ca,Xa,ma,Ca,wa,Ja,Sa,Pa,Ha]}static get pluginName(){return yc("0x6d")}constructor(t){function e(t){return t[yc("0x71")]((t=>String[yc("0x9")](t)))[yc("0x141")]("")}super(t),this._recordAttributeSuggestions=!1,this.set(yc("0x18"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this[yc("0x7a")][yc("0xc3")]((()=>{for(const e of[...i,...r])this[yc("0x7a")][yc("0x151")][yc("0x117")](e)&&t.editing.reconvertMarker(e)}))})),this[yc("0x14b")]=new ri(this[yc("0xd8")].model[yc("0x13e")],this[yc("0xd8")][yc("0x7f")]),this._adapter=null,this[yc("0x42")]=new kc(this[yc("0xd8")]),this[yc("0x12f")]=new Map,this[yc("0x161")]=t.plugins.get(yc("0x15a")),this._enabledCommands=new Set,this._model=this.editor[yc("0xec")],this[yc("0x2")]=new WeakMap,this[yc("0xb6")]=!1,this[yc("0x104")]=new Set(["$elementName"]),this._inlineAttributeKeys=new Set,t[yc("0xbf")][yc("0x105")](yc("0x64"),yc("0x109")),this[yc("0x125")]=t[yc("0xbf")].get(yc("0x64")),t[yc("0xbf")].define(yc("0x121"),!0),this._mergeNestedSuggestions=t.config[yc("0x4c")](yc("0x121")),this[yc("0x27")]=new d(t,this[yc("0x4e")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,48,50])}[yc("0x4d")](){const t=this[yc("0xd8")],n=(t,e)=>{if(yc("0x91")!=t)return yc("0x15e")+t;const n=e[yc("0xdc")]("|")[0];return this._isBlockAttribute(n)?yc("0x2a"):yc("0xf2")};t[yc("0xd1")][yc("0x15c")]("editingDowncast")[yc("0xa1")]({model:yc("0x35"),view:t=>{const{id:e,type:r,subType:i}=this._splitMarkerName(t.markerName),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this.activeMarkers.includes(t[yc("0x149")])&&(o.push("ck-suggestion-marker--active"),s=3010),yc("0x49")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0xd1")][yc("0x15c")](yc("0x1b"))[yc("0x90")]((e=>{e.on("addMarker:suggestion",((e,n,r)=>{if(!r.options[yc("0xcf")])return;const i=n.item;if(!i)return;const o=r[yc("0x11d")].toViewElement(i);t.model[yc("0x13e")][yc("0x9d")](i)&&o&&!o[yc("0xda")](yc("0x13"))&&o.is("containerElement")&&(0,x.toWidget)(o,r[yc("0x37")])}),{priority:"high"})})),t[yc("0xd1")][yc("0x15c")](yc("0x1b"))[yc("0xa1")]({model:yc("0x35"),view:(t,e)=>{if(!e[yc("0x72")][yc("0xcf")])return null;const{type:r,subType:i}=this[yc("0xab")](t[yc("0x149")]);return{classes:[yc("0xf8"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0xad")])return;const{id:s}=this[yc("0xab")](i.markerName);if(n){const t=this._suggestions[yc("0x4c")](s),e=this[yc("0xbd")](t);if(!this[yc("0x16a")](e))return}if(i[yc("0xad")].is("selection"))return void o.consumable[yc("0x3d")](i.item,r[yc("0x1c")]);const x=o[yc("0x11d")][yc("0xc0")](i.item);if(i.item.is(yc("0x61"))&&t[yc("0xec")].schema[yc("0x24")](i[yc("0xad")])&&!x[yc("0xda")](yc("0x138"))){o[yc("0x37")][yc("0x10f")](["ck-suggestion-marker",yc("0x2a")],x),o[yc("0x37")][yc("0x78")](yc("0xe"),s,x),o[yc("0x11d")][yc("0x30")](x,i.markerName),e&&(this[yc("0x18")][yc("0xb5")](i[yc("0x149")])?o[yc("0x37")][yc("0x10f")](yc("0xa9"),x):o.writer[yc("0x134")](yc("0xa9"),x));for(const e of t[yc("0xec")][yc("0x62")](i[yc("0xad")]).getItems())o[yc("0x2b")][yc("0x3d")](e,r[yc("0x1c")]);o[yc("0x2b")][yc("0x3d")](i[yc("0xad")],r.name)}};t[yc("0xd1")][yc("0x15c")]("dataDowncast")[yc("0x90")]((t=>{t.on(yc("0x40"),((t,e,n)=>{n[yc("0x72")][yc("0xcf")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x52")})})),t[yc("0xd1")][yc("0x15c")](yc("0x1b"))[yc("0x90")]((t=>{t.on(yc("0xc7"),((t,e,n)=>{n[yc("0x72")][yc("0xcf")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t.conversion[yc("0x15c")](yc("0x1b")).markerToData({model:"suggestion",view:(t,e)=>e[yc("0x72")][yc("0xcf")]?null:{group:yc("0x35"),name:t[yc("0x14e")](11)}}),t[yc("0xd1")][yc("0x15c")](yc("0x36"))[yc("0x147")]({view:{name:yc("0x35"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x82")+t.getAttribute(yc("0x41"))+":"+t[yc("0x128")]("id");return t[yc("0x128")](yc("0x158"))&&(n+=":"+t.getAttribute(yc("0x158"))),e[yc("0xea")](yc("0x83"),{"data-name":n})}}),t[yc("0xd1")][yc("0x15c")](yc("0x36"))[yc("0x12c")]({view:yc("0x35")}),t.conversion[yc("0x15c")](yc("0x66")).add((t=>{t.on(yc("0x40"),r(),{priority:yc("0x170")})})),t.conversion[yc("0x15c")]("editingDowncast").add((t=>{t.on(yc("0xc7"),r({isAttributeSuggestion:!0}),{priority:yc("0x170")})})),t[yc("0xd1")][yc("0x15c")](yc("0x66"))[yc("0x90")]((t=>{t.on(yc("0xc4"),((t,e,n)=>{const r=n.mapper[yc("0x12d")](e[yc("0x149")]);if(r)for(const t of r)t[yc("0xda")]("addHighlight")||(n[yc("0x37")][yc("0x134")]([yc("0xf8"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[yc("0x37")][yc("0x58")](yc("0xe"),t),n[yc("0x11d")][yc("0xaf")](t,e[yc("0x149")]))}),{priority:yc("0x170")})})),t[yc("0xd1")][yc("0x15c")]("editingDowncast")[yc("0x90")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const r=n[yc("0x11d")].markerNameToElements(e[yc("0x149")]);if(!r)return;const{id:i}=this[yc("0xab")](e[yc("0x149")]),o=this[yc("0x12f")][yc("0x4c")](i),s=this[yc("0xbd")](o);if(this[yc("0x16a")](s))for(const t of r)t.getCustomProperty(yc("0x138"))||(n[yc("0x37")][yc("0x134")](["ck-suggestion-marker",yc("0x2a"),"ck-suggestion-marker--active"],t),n.writer[yc("0x58")]("data-suggestion",t),n[yc("0x11d")][yc("0xaf")](t,e.markerName))}),{priority:yc("0x170")})})),t.model[yc("0x74")][yc("0x11f")]((e=>{let n=!1;const r=Array[yc("0x0")](t[yc("0xec")].document[yc("0x155")][yc("0x133")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this._splitMarkerName(x);if(yc("0x35")!==r)continue;const d=this[yc("0x12f")][yc("0x4c")](u);if(null!=a.newRange){yc("0xe5")==c&&(n=n||Sc(a[yc("0x22")],x,e,t[yc("0xec")][yc("0x13e")]));const r="attribute"==c&&this[yc("0x16a")](l.split("|")[0]);if(a[yc("0x22")].isCollapsed||yc("0x85")==a[yc("0x22")][yc("0x67")][yc("0xf")]||yc("0x44")==c&&!Nc(a[yc("0x22")])||r&&!Nc(a[yc("0x22")])||"deletion"==c&&(Rc(s=a[yc("0x22")])||(o=s)[yc("0xf6")][yc("0x157")]==o[yc("0x10a")][yc("0x4a")]&&o[yc("0xf6")].isAtEnd))e[yc("0x32")](x),n=!0;else{if(!d||!d[yc("0xde")])continue;i[yc("0x90")](d)}}}var o,s;return i.size>0&&(n=!!this[yc("0x5b")](i)||n),n})),t[yc("0xec")][yc("0x74")][yc("0x11f")]((e=>{let n=!1;for(const r of t[yc("0xec")][yc("0x74")][yc("0x155")][yc("0xe1")]())if(yc("0x69")==r[yc("0xd")])for(const r of this._suggestions[yc("0x179")]()){if(r[yc("0xb")]||!r[yc("0xde")])continue;const i=yc("0x44")==r[yc("0xd")],o=this[yc("0xbd")](r),s=o&&this._isBlockAttribute(o);if(!i&&!s)continue;const x=r[yc("0xe2")]();if(x[yc("0xf6")].parent!=x[yc("0x10a")][yc("0x157")]&&!x[yc("0x10a")][yc("0x108")]){const i=t[yc("0xec")][yc("0x25")](x[yc("0xf6")][yc("0xe7")],"end"),o=t[yc("0xec")][yc("0x3e")](x.start,i);e.updateMarker(r[yc("0x48")](),{range:o}),n=!0}}return n})),t[yc("0xec")][yc("0x74")].registerPostFixer((t=>this._processAttributeChanges(t))),t[yc("0xec")].document.registerPostFixer((t=>!t[yc("0xf0")].isLocal&&this[yc("0xac")](t))),t[yc("0xec")].on(yc("0x14d"),(()=>{this[yc("0xcc")]=!1})),t[yc("0xec")][yc("0x74")].on(yc("0xd5"),((n,r)=>{if(!r.isLocal||r.isUndo)return;if(!this[yc("0xcc")])return;const i=t[yc("0xec")][yc("0x74")].differ[yc("0xe1")]();if(0==i[yc("0xa3")])return;const o=[],s=i[yc("0x31")]((t=>"attribute"==t.type)),x=i[yc("0x31")]((t=>"insert"==t.type&&yc("0x4")!=t[yc("0x1c")])),a=i[yc("0x31")]((t=>yc("0x6")==t.type&&yc("0x4")!=t.name));for(const e of s)this[yc("0xe4")](e[yc("0x93")])&&o.push({key:e[yc("0x93")],newValue:e[yc("0x10c")],oldValue:e[yc("0xf1")],range:Lc(e[yc("0x87")],t.model)});for(const e of x){const n=a[yc("0x1d")]((t=>t[yc("0xb2")]===e[yc("0xb2")]));if(n){const r=Mc(e[yc("0xa5")][yc("0xe7")],t.model);n[yc("0x1c")]!==e[yc("0x1c")]&&o.push({key:yc("0x129"),newValue:e[yc("0x1c")],oldValue:n.name,range:r});for(const[t,i]of n[yc("0x34")]){if(!this[yc("0xe4")](t))continue;const n=e[yc("0x34")][yc("0x4c")](t);i!==n&&o[yc("0x2c")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x34")])this[yc("0xe4")](t)&&(n[yc("0x34")][yc("0x117")](t)||o[yc("0x2c")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0xa3")]&&t[yc("0xec")][yc("0xa7")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0xdd")](t,e,r,i,{groupId:n});this[yc("0xe9")](t,o)}))}),{priority:yc("0x142")}),t[yc("0xec")].markers.on(yc("0xd6"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0xab")](e.name),n=this[yc("0x12f")][yc("0x4c")](t);n&&n[yc("0x106")](e[yc("0x1c")])}})),t[yc("0xec")][yc("0x74")].on(yc("0xd5"),(()=>{const e=Array[yc("0x0")](t.model[yc("0x74")][yc("0x155")][yc("0x133")]()).filter((t=>yc("0x35")===this[yc("0xab")](t.name)[yc("0xba")]));if(0===e[yc("0xa3")])return;e[yc("0x15d")](((t,e)=>{const n=t[yc("0xc5")][yc("0x8f")],r=e[yc("0xc5")][yc("0x8f")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0xf6")][yc("0x11b")](r[yc("0xf6")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this._splitMarkerName(t);if(null===i[yc("0x8f")]){const e=this[yc("0xc")](t);r.add(e)}else{const t=this._suggestions[yc("0x4c")](e);null!==i[yc("0x22")]||t[yc("0xde")]?(n[yc("0x90")](t[yc("0x63")]),r.add(t)):this[yc("0x50")](t)}}r.size>0&&this[yc("0x75")](r);for(const t of n)this[yc("0x14f")](yc("0x7d"),t)})),t[yc("0xec")].on(yc("0xd2"),((e,n)=>{const r=n[0];if(!this[yc("0x12f")][yc("0x9a")])return;if(!r.isDocumentOperation)return;if(r[yc("0xf0")][yc("0x14")]||!r[yc("0xf0")].isLocal)return;let i,o;switch(r[yc("0xd")]){case yc("0x69"):i=t.model[yc("0x25")](r.position),o=i.getShiftedBy(r[yc("0x5d")]);break;case yc("0xdc"):i=t[yc("0xec")][yc("0x25")](r[yc("0x107")]),o=t.model[yc("0x25")](r[yc("0x148")]);break;case yc("0x16"):i=t.model[yc("0x25")](r[yc("0x144")]),o=i.getShiftedBy(r.howMany);break;default:return}const s=t[yc("0xec")][yc("0x3e")](i,o);t[yc("0xec")][yc("0xc3")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x14c")](s)){if(t[yc("0xb")])continue;if(yc("0xe5")==t.type)continue;const n=this._getAttributeKey(t);if(n&&this._isBlockAttribute(n)&&yc("0xdc")!=r[yc("0xd")])continue;const x=t[yc("0xc5")]&&t[yc("0xc5")][yc("0x8")];("formatBlock"!=t[yc("0xd")]||yc("0xdc")==r[yc("0xd")]&&!x)&&(e.containsRangeInObject||yc("0x8c")==t[yc("0xd")]&&e[yc("0x119")]||t[yc("0xe2")]()[yc("0x6c")](s)&&this[yc("0x127")](t,i,o))}}))}),{priority:yc("0x142")}),t[yc("0xec")].on(yc("0xb9"),((e,n)=>{const r=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[yc("0xb6")])return;if(!this.trackChangesCommand[yc("0x116")])return;if(r.isCollapsed)return;const o=t[yc("0xec")][yc("0x13e")],{start:s,end:x}=r[yc("0xe2")](),a=s[yc("0xe7")]&&o[yc("0x54")](s[yc("0xe7")])?null:o[yc("0x175")](s,yc("0xb4")),c=x[yc("0x4a")]&&o[yc("0x54")](x[yc("0x4a")])?null:o[yc("0x175")](x,yc("0x135")),l=t[yc("0xec")][yc("0x3e")](a?a[yc("0xf6")]:s,c?c.end:x);t.model[yc("0xc3")]((e=>{this[yc("0xc2")](l);const n=t[yc("0xec")][yc("0x13e")].getNearestSelectionRange(l[yc("0xf6")]);r.is(yc("0xa"))?e[yc("0x115")](n):r.setTo(n)})),e.stop()}),{priority:e.priorities[yc("0x53")]+10}),t[yc("0xec")].on(yc("0xc6"),((e,n)=>{const r=n[n[yc("0xa3")]-1];r&&r[yc("0x8d")]||this[yc("0xb6")]||this[yc("0x27")].value&&(t[yc("0xec")][yc("0xc3")]((()=>{let r=t[yc("0xec")][yc("0xc6")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x6a")]=r[yc("0x2d")]();const i=r.end[yc("0x4a")],o=t[yc("0xec")][yc("0x13e")];i&&o[yc("0x24")](i)&&!o.isObject(i)&&(r=t[yc("0xec")].createRange(r[yc("0xf6")],t[yc("0xec")][yc("0x25")](i,yc("0x10a")))),this[yc("0xff")](r)})),e[yc("0x92")]())}),{priority:yc("0x170")}),this[yc("0xd8")][yc("0x28")].add(yc("0x96"),this[yc("0x27")]),this[yc("0xc9")](yc("0x96"));const i=new p(t,this._suggestions);t[yc("0x28")][yc("0x90")]("acceptSuggestion",i),this[yc("0xc9")](yc("0x176"));const o=new y(t,this[yc("0x12f")]);t[yc("0x28")][yc("0x90")](yc("0x15b"),o),this[yc("0xc9")]("discardSuggestion"),t.commands.add(yc("0x4b"),new F(t,i,this._suggestions)),this[yc("0xc9")](yc("0x4b")),t[yc("0x28")].add(yc("0x38"),new F(t,o,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[yc("0x28")].add("acceptSelectedSuggestions",new j(t,i,this[yc("0x12f")])),this[yc("0xc9")](yc("0x19")),t.commands[yc("0x90")](yc("0x169"),new j(t,o,this[yc("0x12f")])),this[yc("0xc9")]("discardSelectedSuggestions");const s=t[yc("0x167")][yc("0x4c")](yc("0x15a"));this.listenTo(s,yc("0x159"),((t,{threadId:e})=>{const n=this[yc("0x12f")][yc("0x4c")](e);n&&n.commentThread&&1===n[yc("0xd7")][yc("0xa3")]&&this[yc("0x130")](e,{hasComments:!0})}),{priority:yc("0x172")}),this[yc("0xe3")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x12f")].get(e);n&&n.commentThread&&!n[yc("0xd7")][yc("0xa3")]&&this[yc("0x130")](e,{hasComments:!1})}),{priority:yc("0x172")})}set[yc("0x153")](t){if(this[yc("0x9c")])throw new e.CKEditorError(yc("0xcd"),this);this._adapter=t}get[yc("0x153")](){return this._adapter}[yc("0x12e")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x12f")][yc("0x179")]())t&&!e.isInContent||n.push(e);return e?n.map((t=>t[yc("0x111")]())):n}[yc("0xdb")](t){const n=this[yc("0x12f")][yc("0x4c")](t);if(!n)throw new e.CKEditorError(yc("0x168"),this);return n}[yc("0xed")](t){return this[yc("0x12f")].has(t)}[yc("0x81")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type[yc("0xdc")](":"),s=this[yc("0x12f")][yc("0x4c")](n)||this._createSuggestion(i,o,n,e,r);if(this[yc("0xa6")](s),this[yc("0x10e")](s,i,o||null,e),s[yc("0x5c")]=t[yc("0x5c")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[yc("0x1f")],e=this[yc("0x43")](t[yc("0x57")]);s[yc("0x7b")]=t[yc("0x5c")],s[yc("0xfc")]=e,s.isExternal=!0}else s[yc("0x7b")]=t[yc("0x5c")];switch(t[yc("0xc5")]&&(s.data=t[yc("0xc5")]),t[yc("0x34")]&&(s[yc("0x34")]=t[yc("0x34")]),this[yc("0x9c")]&&this[yc("0x9c")][yc("0xa0")]||(s._saved=!0),this._suggestionState.get(s)){case yc("0xf7"):this[yc("0x2")][yc("0x12b")](s,yc("0x8a"));break;case yc("0x3"):s[yc("0xde")]?(this._joinWithAdjacentSuggestions(new Set([s])),this._refreshSuggestionsChain(new Set([s])),this[yc("0x2")][yc("0x12b")](s,yc("0xd0")),this[yc("0x14f")](yc("0xeb"),s)):this[yc("0x2")].set(s,yc("0x7e"))}return s}[yc("0x176")](t){this.forceDefaultExecution((()=>{this[yc("0xd8")][yc("0xec")][yc("0xc3")]((()=>{for(const e of t[yc("0xbc")]())e[yc("0x33")]()}))}))}[yc("0x15b")](t){this.forceDefaultExecution((()=>{this[yc("0xd8")][yc("0xec")][yc("0xc3")]((()=>{for(const e of t[yc("0xbc")]())e[yc("0x95")]()}))}))}[yc("0xc9")](t,n){const r=this[yc("0xd8")][yc("0x28")].get(t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0x4e")][yc("0x117")](r))throw new e.CKEditorError(yc("0x84"),this,{commandName:t});this[yc("0x4e")][yc("0x90")](r),n&&r.on("execute",((t,e)=>{this.trackChangesCommand[yc("0x116")]&&(this[yc("0xb6")]||(e.length>0&&e[e[yc("0xa3")]-1]&&e[e[yc("0xa3")]-1][yc("0x8d")]?e.pop():(t[yc("0x6a")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t[yc("0x92")]())))}),{priority:yc("0x170")})}forceDefaultExecution(t){let n,r;const i=this[yc("0xb6")];this[yc("0xb6")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0xb6")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}[yc("0xff")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this.editor[yc("0x167")][yc("0x4c")](yc("0x56")).me;for(const{suggestion:e,meta:i}of this[yc("0x14c")](t,yc("0x8c")))if(i.isOwn){if(!i[yc("0x5e")]){if(i[yc("0xa2")]){if(!this[yc("0x143")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t.start,t[yc("0x10a")]);break}if(n==e[yc("0x65")]&&Fc(e,r)){const n=e.getFirstRange();return n[yc("0xf6")][yc("0x80")](t.end)?this[yc("0x16f")](e,this[yc("0x7a")][yc("0x3e")](t[yc("0xf6")],n[yc("0x10a")])):this[yc("0x16f")](e,this[yc("0x7a")][yc("0x3e")](n[yc("0xf6")],t[yc("0x10a")])),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:yc("0x8c"),a=this[yc("0x21")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xf5")](x,o,s,t),a}[yc("0x3f")](t,n=yc("0x5"),r={}){const i=this[yc("0xd8")][yc("0x167")].get(yc("0x56")).me,o=this[yc("0x42")][yc("0x171")](yc("0x8c"),n,yc("0x141"));for(const e of this[yc("0x12e")]())if(e.author.id==i.id&&yc("0x8c")==e[yc("0xd")]&&e.subType==n&&Fc(e,r)&&(o(e[yc("0x156")](),t)||o(t,e[yc("0x156")]()))){for(const n of t)e[yc("0x112")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x14c")](t,yc("0x8c"))){if(!n.isOwn)continue;if(!this._mergeNestedSuggestions&&n[yc("0xa2")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x156")]())for(const e of t)if(!n.containsRange(e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0x16b")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xf5")](a,s,x,e,Qr[yc("0x29")]());return c}[yc("0x26")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0xca")])return null;if("never"===this[yc("0x125")]){const e=this[yc("0x42")][yc("0x171")](yc("0xe5"),r,yc("0x33"));return this[yc("0x8d")]((()=>e([t],n,i))),null}const o=this[yc("0xd8")][yc("0x167")].get(yc("0x56")).me,s=[];if(yc("0xf3")!==this[yc("0x125")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x8c")))n[yc("0x119")]&&!n.isInsideObject&&s[yc("0x2c")](...e[yc("0x156")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0xaa")](r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0xa3")];){const r=n[e][yc("0x11c")](t);n[yc("0x13d")](e,1,...r),e+=r[yc("0xa3")]}}return n}(t,s);x[yc("0xa3")]&&this[yc("0x7a")].change((()=>{for(const t of x){const e=this[yc("0x42")].getSuggestionCallback("formatInline",r,"accept");this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0xf6")],a=t[yc("0x10a")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xe5"))){if(!n[yc("0x119")])continue;if(e[yc("0x65")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0xe2")]();if(o[yc("0x6c")](t,!0))return null;x=x.isBefore(o[yc("0xf6")])?x:o[yc("0xf6")],a=a[yc("0x12a")](o[yc("0x10a")])?a:o[yc("0x10a")],s?o[yc("0xf6")][yc("0x11b")](s[yc("0xe2")]()[yc("0xf6")])?(s[yc("0x68")](),s=e):e.removeMarkers():s=e}const c=this[yc("0x7a")][yc("0x3e")](x,a);if(s)this[yc("0x16f")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x21")]({id:t,type:yc("0x11e")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0xf5")](yc("0x11e")+r,t,s,c)}}return null}[yc("0xce")](t,n,r=[],i=null,o={}){n[yc("0xa4")]||(n[yc("0xa4")]=n[yc("0xd4")]),n.multipleBlocks=t.is(yc("0x87")),i=i||vc(n);const s=r[yc("0x71")]((t=>Mc(t,this._model))),x=t.is(yc("0x87"))?t:Mc(t,this._model);if(yc("0x166")===this[yc("0x125")]){const t=this[yc("0x42")][yc("0x171")](yc("0x44"),i,yc("0x33"));return this[yc("0x8d")]((()=>t([x],n,o))),null}s[yc("0x2c")](x);let a=!0;for(const t of s)if(!this[yc("0x5a")](t)){a=!1;break}if(a&&yc("0xf3")!==this[yc("0x125")]){const t=this[yc("0x42")].getSuggestionCallback(yc("0x44"),i,yc("0x33"));return this[yc("0x8d")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0xf6")],u=x[yc("0x10a")];for(const{suggestion:t,meta:e}of this[yc("0x14c")](x,"formatBlock")){if(!e[yc("0x119")])continue;if(e[yc("0x5e")]||e[yc("0xa2")]||e.isInsideObject)continue;if(t[yc("0xc5")][yc("0xa4")]!=n[yc("0xa4")])continue;if(!Fc(t,o))continue;const r=t[yc("0xe2")]();if(t[yc("0x65")]==i){if(r[yc("0x6c")](x,!0))return null;l=l[yc("0x11b")](r[yc("0xf6")])?l:r[yc("0xf6")],u=u[yc("0x12a")](r.end)?u:r[yc("0x10a")],c?r[yc("0xf6")][yc("0x11b")](c[yc("0xe2")]().start)?(c[yc("0x68")](),c=t):t.removeMarkers():c=t}else{const e=x[yc("0xaa")](r);this[yc("0x13a")](t,e)}}const d=this.editor.plugins[yc("0x4c")](yc("0x56")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x16f")](c,this[yc("0x7a")][yc("0x3e")](l,u)),c;{const t=this[yc("0x21")]({id:g,type:yc("0x47")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xf5")](yc("0x47")+i,g,f,this[yc("0x7a")][yc("0x3e")](l,u)),t}}[yc("0xd3")](t,n,r=[],i=null,o={}){n[yc("0xa4")]||(n[yc("0xa4")]=n.commandName);const s=t[0];n[yc("0x8")]=s.is(yc("0x87")),i=i||vc(n);const x=r[yc("0x71")]((t=>Mc(t,this[yc("0x7a")]))),a=s.is(yc("0x87"))?t:t.map((t=>Mc(t,this._model)));if(yc("0x166")===this._trackFormatChanges){const t=this[yc("0x42")].getSuggestionCallback("formatBlock",i,yc("0x33"));return this[yc("0x8d")]((()=>t(a,n,o))),null}x[yc("0x2c")](...a);let c=!0;for(const t of x)if(!this[yc("0x5a")](t)){c=!1;break}if(c&&yc("0xf3")!==this[yc("0x125")]){const t=this[yc("0x42")][yc("0x171")]("formatBlock",i,"accept");return this[yc("0x8d")]((()=>t(a,n,o))),null}const l=this[yc("0xd8")][yc("0x167")].get(yc("0x56")).me;for(const t of this[yc("0x12e")]()){if(t[yc("0xfc")].id!=l.id)continue;if("formatBlock"!=t.type||t.data[yc("0xa4")]!=n[yc("0xa4")])continue;if(!Fc(t,o))continue;const e=t[yc("0x65")]==i;for(let n=0;n<a[yc("0xa3")];n++){const r=a[n];for(const i of t[yc("0x178")]()){const o=i[yc("0x140")]();if(r.isEqual(o)){e?(a.splice(n,1),n--):t[yc("0x32")](i[yc("0x1c")]);break}}}}if(0==a[yc("0xa3")])return null;const u=this._suggestionFactory[yc("0x171")](yc("0x44"),i,yc("0x141"));for(const t of this[yc("0x12e")]())if(t[yc("0xfc")].id==l.id&&yc("0x44")==t[yc("0xd")]&&t[yc("0xc5")][yc("0xa4")]==n[yc("0xa4")]&&t[yc("0x65")]==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x156")]()))){for(const e of a)t[yc("0x112")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x47")+i,h=this[yc("0x21")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0xf5")](f,d,g,t,Qr.getMultiRangeId());return h}markDeletion(t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0xd8")][yc("0x167")][yc("0x4c")](yc("0x56")).me,o=new s.LiveRange(t[yc("0xf6")],t[yc("0x10a")]);for(const{suggestion:t,meta:e}of this[yc("0x14c")](o,yc("0x8c")))if(e[yc("0x119")]&&!e[yc("0x5e")])if(t[yc("0xb")]){const e=t[yc("0x156")]()[yc("0x31")]((t=>yc("0x85")!=t[yc("0x67")][yc("0xf")]));if(e[yc("0x152")]((t=>o[yc("0x6c")](t,!0)))&&t[yc("0x95")](),e[yc("0x113")]((t=>t[yc("0x6c")](o,!0)))){const t=this[yc("0x42")][yc("0x171")](yc("0x49"),n,yc("0x33"));return this[yc("0x8d")]((()=>t([o],null,r))),null}}else{const e=o.getIntersection(t.getFirstRange());null!==e&&t[yc("0x3b")]([e],null,r)}if(o[yc("0x122")](),o[yc("0xca")]||"$graveyard"==o[yc("0x67")][yc("0xf")])return null;let x=null,a=o[yc("0xf6")],c=o[yc("0x10a")];const l=this._findSuggestions(o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x7a")][yc("0x3e")](a,c);if(e[yc("0x119")]&&(this[yc("0x143")]||!e[yc("0xa2")]&&!e[yc("0x165")]))if(t[yc("0xb")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x156")]()){if(r[yc("0x6c")](n,!0))return t;n.containsRange(r)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[yc("0x6c")](n,!0))return t;if(!Fc(t,r)){n[yc("0x6c")](e)?t[yc("0x68")]():e.containsPosition(a)?a=e.end:e[yc("0x60")](c)&&(c=e.start);continue}a=a.isBefore(e[yc("0xf6")])?a:e[yc("0xf6")],c=c[yc("0x12a")](e[yc("0x10a")])?c:e.end,r=Object[yc("0x124")]({},t.attributes),x?e[yc("0xf6")][yc("0x11b")](x[yc("0xe2")]()[yc("0xf6")])?(x[yc("0x68")](),x=t):t[yc("0x68")]():x=t}}if(x)return this[yc("0x16f")](x,this[yc("0x7a")][yc("0x3e")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x7a")][yc("0x3e")](a,c),s=i.id,x=n?"deletion:"+n:yc("0x49"),l=this[yc("0x21")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xf5")](x,t,s,o),l}}markMultiRangeDeletion(t,n="multi",r={}){const i=this.editor[yc("0x167")].get(yc("0x56")).me,o=t[yc("0x71")]((t=>new s.LiveRange(t[yc("0xf6")],t[yc("0x10a")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x14c")](o,yc("0x8c")))e[yc("0x119")]&&!e[yc("0x5e")]&&x[yc("0x90")](t);for(const e of x)if(e[yc("0xb")]){const i=e.getRanges();if((!e[yc("0x34")]||!e[yc("0x34")].skipNestingCheck)&&i[yc("0x152")]((t=>o[yc("0x113")]((e=>e.containsRange(t,!0)))))&&e[yc("0x95")](),o[yc("0x152")]((t=>i[yc("0x113")]((e=>e[yc("0x6c")](t,!0)))))){const e=this._suggestionFactory[yc("0x171")]("deletion",n,yc("0x33"));return this[yc("0x8d")]((()=>e(t,null,r))),null}}else{const t=e.getFirstRange();if(o[yc("0x113")]((e=>e.containsRange(t,!0)))&&e[yc("0x95")](),o[yc("0x152")]((e=>t.containsRange(e,!0)))){const t=this[yc("0x42")][yc("0x171")](yc("0x49"),n,yc("0x33"));return this[yc("0x8d")]((()=>t(o,null,r))),null}}const a=this[yc("0x42")][yc("0x171")](yc("0x49"),n,"join");let c=null;for(const t of this[yc("0x12e")]())if(t[yc("0xfc")].id==i.id&&t[yc("0xde")]&&yc("0x49")==t[yc("0xd")]&&t.subType==n&&Fc(t,r)&&(a(t[yc("0x156")](),o)||a(o,t[yc("0x156")]())))if(c){if(t[yc("0xd7")]&&t[yc("0xd7")].length)continue;for(const e of t.getRanges())c[yc("0xd9")](e)||c[yc("0x112")](e);t.removeMarkers()}else{c=t;for(const e of o)t[yc("0xd9")](e)||t[yc("0x112")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[yc("0x14c")](o,yc("0x49")))e[yc("0x119")]&&(this[yc("0x143")]||!e[yc("0xa2")]&&!e[yc("0x165")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t.getRanges();if((!r||!r[yc("0x7c")])&&o.every((t=>e.some((e=>e[yc("0x6c")](t,!0))))))return t;(!t.attributes||!t[yc("0x34")][yc("0x7c")])&&e.every((t=>o[yc("0x113")]((e=>e[yc("0x6c")](t,!0)))))&&t[yc("0x95")]()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0x21")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x122")](),t[yc("0xca")]||yc("0x85")==t[yc("0x67")].rootName||this[yc("0xf5")](d,l,u,t,Qr[yc("0x29")]());return g}[yc("0xdd")](t,n,r,i,o){if(t[yc("0xca")])return[];if(yc("0x166")===this._trackFormatChanges)return[];const s=this[yc("0xd8")].plugins[yc("0x4c")](yc("0x56")).me.id,x=Array[yc("0x0")](this[yc("0x12f")][yc("0x179")]()).filter((e=>yc("0x91")==e[yc("0xd")]&&e[yc("0xc5")][yc("0x16e")]==n&&e[yc("0xd9")](t)));if("default"===this[yc("0x125")]){const e=this[yc("0x14c")](t,"insertion")[yc("0x31")]((({meta:t})=>t[yc("0x119")]&&!t[yc("0x165")]&&!t.isNextTo))[yc("0x71")]((({suggestion:t})=>t));x[yc("0xfd")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t[yc("0xd")]?t[yc("0xc5")][yc("0x6e")]:void 0,o=t.getFirstRange(),s=Array[yc("0x0")](a[yc("0xef")]())[yc("0x1d")]((t=>t.isIntersecting(o)));if(!s)continue;const x=s[yc("0x11c")](o);this[yc("0x16a")](n)&&"insertion"==t[yc("0xd")]&&0!=x[yc("0xa3")]||(a[yc("0x145")](s),x.forEach((t=>{a[yc("0x12b")](t,r)})),yc("0x8c")!=t[yc("0xd")]&&e!=i&&a.set(s[yc("0xaa")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n.length>37&&console.warn("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0x10d")+(n+"|")+vc({newValue:i}))[yc("0xee")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c.push(u),this[yc("0xf5")](l,x,s,t)}return c}[yc("0x1a")](t){this[yc("0x104")][yc("0x90")](t)}_registerInlineAttribute(t){this._inlineAttributeKeys[yc("0x90")](t)}[yc("0x94")](t,e=[],n=[]){this[yc("0xc9")](t,((t,...e)=>{this[yc("0xbb")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x1a")](t)}[yc("0xbd")](t){return"attribute"==t[yc("0xd")]?t[yc("0x65")][yc("0xdc")]("|")[0]:null}[yc("0x16f")](t,e){const n=t.getFirstMarker();this[yc("0x7a")][yc("0xc3")]((t=>{t[yc("0x154")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[yc("0xd8")][yc("0xbf")][yc("0x4c")](yc("0x45"));this[yc("0x161")][yc("0x164")](e)||this[yc("0x161")][yc("0x15f")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x161")][yc("0x79")](e);r[yc("0x163")]("isRemovable"),r.isRemovable=!1,t[yc("0xd7")]=r}[yc("0x10e")](t,n,r,i){if(t.type!=n||t[yc("0x65")]!=r||t.creator.id!=i)throw this[yc("0xd8")][yc("0x162")](yc("0x51")),new e.CKEditorError(yc("0x51"),this)}[yc("0x13a")](t,n){const r=t[yc("0xe2")]();if(n[yc("0x80")](r))t[yc("0x68")]();else if(r[yc("0x6c")](n)){const i=this[yc("0x7a")][yc("0x25")](n.start[yc("0x4a")],yc("0x10a"));this[yc("0x16f")](t,this[yc("0x7a")][yc("0x3e")](r[yc("0xf6")],i));const o=(0,e.uid)(),s=t[yc("0x77")].id,x=t[yc("0xd")]+":"+t[yc("0x65")];this[yc("0x21")]({id:o,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[yc("0x34")]});const a=this[yc("0x7a")][yc("0x25")](n.end[yc("0x157")],"after"),c=this[yc("0x7a")].createRange(a,r[yc("0x10a")]);this[yc("0xf5")](x,o,s,c)}else if(r[yc("0x60")](n[yc("0xf6")])){const e=this._model[yc("0x25")](n.start[yc("0x4a")],yc("0x10a"));this[yc("0x16f")](t,this._model[yc("0x3e")](r[yc("0xf6")],e))}else{const e=this._model.createPositionAt(n[yc("0x10a")][yc("0x157")],"after");this._setSuggestionRange(t,this[yc("0x7a")][yc("0x3e")](e,r.end))}}[yc("0x5a")](t){for(const{suggestion:e,meta:n}of this[yc("0x14c")](t,"insertion")){if(!n[yc("0x119")])continue;const r=e[yc("0x156")]();for(const e of r)if(!t[yc("0x11c")](e).length)return!0}return!1}[yc("0x97")](t){const n=this[yc("0xd8")].plugins[yc("0x4c")](yc("0x56"))[yc("0x88")](t);if(!n)throw new e.CKEditorError(yc("0xc1"),this);return n}[yc("0x43")](t){const e=this[yc("0xd8")][yc("0x167")][yc("0x4c")]("Users"),n=(0,o.hashObject)(yc("0x174")+t);return e[yc("0x88")](n)||e.addUser({id:n,name:t})}[yc("0x2e")](t,e,n,r,i){const o=this[yc("0x97")](r),s=this[yc("0x42")][yc("0x46")](t,e,n,o,i,(t=>{this._updateSuggestionData(n,{attributes:t});const e=this[yc("0xdb")](n);this[yc("0x5b")](new Set([e])),this[yc("0x75")](new Set([e]))}));return this[yc("0xe3")](s,"accept",(()=>{this[yc("0x130")](n,{state:yc("0x126")})}),{priority:yc("0x170")}),this.listenTo(s,yc("0x95"),(()=>{this[yc("0x130")](n,{state:yc("0x39")})}),{priority:yc("0x170")}),this[yc("0x12f")][yc("0x12b")](n,s),this[yc("0x2")][yc("0x12b")](s,yc("0xf7")),s}[yc("0xab")](t){const e=t[yc("0xdc")](":");return{group:e[0],type:e[1],subType:e[yc("0xa3")]>=5?e[2]:null,id:e[yc("0xa3")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[yc("0xa3")]?e[5]:null}}[yc("0x127")](t,n,r){const i=t[yc("0xe2")](),o=i[yc("0xf6")],s=i[yc("0x10a")];this[yc("0x16f")](t,this[yc("0x7a")][yc("0x3e")](o,n));const x=(0,e.uid)(),a=t[yc("0x77")].id,c=t.type+(t[yc("0x65")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0xc5")]});const l=this[yc("0xbd")](t);(yc("0x44")==t.type||l&&this[yc("0x16a")](l))&&(r=this[yc("0x7a")][yc("0x146")](r[yc("0x157")])),this[yc("0xf5")](c,x,a,this[yc("0x7a")][yc("0x3e")](r,s))}[yc("0x14c")](t,e=null){const n=[],r=this[yc("0xd8")][yc("0x167")][yc("0x4c")]("Users").me;Array[yc("0xfe")](t)||(t=[t]);for(const i of this[yc("0x12e")]()){if(!i[yc("0xde")])continue;if(e&&i[yc("0xd")]!=e)continue;let o=!1;for(const e of i[yc("0x156")]()){for(const s of t){const t=s[yc("0xf6")].isEqual(e.end)||s.end[yc("0x80")](e[yc("0xf6")]);if(t||s.getIntersection(e)){const x=s[yc("0x6c")](e)&&Ic(this[yc("0x7a")][yc("0x13e")],e[yc("0xf6")],s),a=e.containsRange(s)&&Ic(this[yc("0x7a")][yc("0x13e")],s.start,e);n[yc("0x2c")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xf5")](t,e,n,r,i){this[yc("0x7a")].change((o=>{let s=yc("0x82")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x137")](s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[yc("0x16c")],n=t[yc("0x7")];t[yc("0x16c")]=null,t[yc("0x7")]=null,null!=e&&e[yc("0x7")]==t&&(e.next=n),null!=n&&n[yc("0x16c")]==t&&(n[yc("0x16c")]=e),"ready"==this[yc("0x2")][yc("0x4c")](t)&&(this[yc("0x2")].set(t,"removed"),this[yc("0x14f")](yc("0x6b"),t,e,n))}[yc("0x21")](t){const n=t.id,r=this.addSuggestionData(t);if(this[yc("0x9c")]&&this[yc("0x9c")][yc("0xa0")]){const i=this[yc("0xd8")][yc("0x167")][yc("0x4c")](yc("0x6f")),o=r[yc("0x9b")],s=r.subType?r[yc("0xd")]+":"+r[yc("0x65")]:r[yc("0xd")],x=this[yc("0xd8")][yc("0x7f")],a=i[yc("0x90")](Yr(x,yc("0x73"))),c={id:n,type:s,hasComments:o,data:t[yc("0xc5")]||null,originalSuggestionId:t[yc("0xb7")]||null,attributes:r.attributes};this[yc("0x9c")].addSuggestion(c)[yc("0xe6")]((t=>{r[yc("0x12")]=!0,i[yc("0x6")](a),t&&t.createdAt&&(this[yc("0x12f")][yc("0x4c")](n)[yc("0x5c")]=t.createdAt)}))[yc("0x118")]((t=>{throw(0,e.logWarning)(yc("0x55")),this[yc("0xd8")].model[yc("0xa7")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0x103")](),this._suggestions.delete(r.id),this[yc("0x2")].delete(r),t}))}return r}[yc("0x16a")](t){return this[yc("0x104")].has(t)}[yc("0x130")](t,e){const n=this[yc("0xd8")][yc("0x167")][yc("0x4c")](yc("0x6f")),r=this[yc("0xdb")](t);if(this[yc("0x9c")]&&this._adapter.updateSuggestion)if(r._saved){const r=n.add(Yr(this[yc("0xd8")][yc("0x7f")],yc("0x73")));this._adapter[yc("0xae")](t,e)[yc("0xe6")]((()=>{n[yc("0x6")](r)}))}else r.on(yc("0x9e"),(()=>{this._updateSuggestionData(t,e)}))}[yc("0x11a")](t){if(!this[yc("0x9c")]||!this._adapter[yc("0xdb")])throw new e.CKEditorError(yc("0x11"),this);return this[yc("0x9c")].getSuggestion(t)}[yc("0xc")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0xab")](t),o=this[yc("0x12f")][yc("0x4c")](e)||this[yc("0x2e")](n,r,e,i,{});switch(this[yc("0x10e")](o,n,r,i),this._suggestionState[yc("0x4c")](o)){case yc("0xf7"):this[yc("0x11a")](e)[yc("0xe6")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this._commentsRepository[yc("0x23")]({channelId:this[yc("0xd8")][yc("0xbf")][yc("0x4c")](yc("0x45")),threadId:e})),n[yc("0xe6")]((()=>{this[yc("0x81")](t)[yc("0x12")]=!0}))})),this._suggestionState[yc("0x12b")](o,yc("0x3"));break;case yc("0x7e"):this[yc("0x130")](e,{state:"open"});case yc("0x8a"):this[yc("0x2")][yc("0x12b")](o,yc("0xd0")),this.fire("suggestionLoaded",o);break;case"ready":this[yc("0x14f")](yc("0x7d"),o)}return o[yc("0x106")](t),o}[yc("0x75")](t){const e=Array.from(t),n=e.filter((t=>yc("0x91")==t[yc("0xd")]));this[yc("0xb8")](n);const r=e[yc("0x31")]((t=>!t.isMultiRange&&yc("0x91")!=t[yc("0xd")])),i=this[yc("0x12e")]({skipNotAttached:!0})[yc("0x31")]((t=>!t.isMultiRange&&yc("0x91")!=t[yc("0xd")])),o=i[yc("0x31")]((e=>!t[yc("0x117")](e))),s=new Map(i[yc("0x71")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[yc("0xd")],t.subType,yc("0x131"))]))),x=new Map(i[yc("0x71")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0xa3")];t++)u(r[t],r,t+1);for(let t=0;t<r.length;t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0xa3")];t++){const e=r[t];!c[yc("0x117")](e)&&e.previous&&(l[yc("0x90")](e[yc("0x16c")]),e.previous.next===e&&(e.previous[yc("0x7")]=null),e[yc("0x16c")]=null),!a.has(e)&&e[yc("0x7")]&&(l[yc("0x90")](e[yc("0x7")]),e[yc("0x7")][yc("0x16c")]===e&&(e[yc("0x7")][yc("0x16c")]=null),e[yc("0x7")]=null)}function u(t,e,n){for(let r=n;r<e.length;r++){const n=d(t,e[r]);n&&(n[0][yc("0x7")]=n[1],n[1].previous=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t[yc("0xfc")].id!==e.author.id)return null;const n=s[yc("0x4c")](t)(t,e,x[yc("0x4c")](t),x.get(e));return n&&s[yc("0x4c")](e)(t,e,x.get(t),x[yc("0x4c")](e))?n[1][yc("0xd7")]&&n[1][yc("0xd7")][yc("0xa3")]?null:n:null}l[yc("0x9a")]&&this[yc("0x75")](l)}[yc("0xb8")](t){if(0==t.length)return;const e=this.getSuggestions({skipNotAttached:!0})[yc("0x31")]((t=>"attribute"==t.type&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x34")]);r[yc("0x117")](e)||(r[yc("0x12b")](e,n[yc("0xa3")]),n.push([]));const i=r[yc("0x4c")](e);n[i].push(t)}!function(){n[yc("0x15d")](((t,e)=>{const n=t[0][yc("0x5c")],r=e[0][yc("0x5c")];return n==r?t[0].attributes[yc("0x15")]<e[0].attributes.groupId?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x15d")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0xa3")];t++){if(0==n[t][yc("0xa3")])continue;const e=[];for(let r=t+1;r<n[yc("0xa3")];r++)0!=n[r][yc("0xa3")]&&i(n[t],n[r])&&e[yc("0x2c")](r);for(const r of e)n[t]=n[t][yc("0x177")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0xa3")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x16c")]=t[e-1]||null;function i(t,e){if(t[0].attributes.groupId!==e[0][yc("0x34")][yc("0x15")]&&t[0][yc("0xfc")]!==e[0].author)return!1;if(n=t[0],r=e[0],(n.hasComments||r[yc("0x9b")])&&(n[yc("0x9b")]&&r[yc("0x9b")]||!(n[yc("0x9b")]&&r[yc("0x5c")]<n[yc("0xd7")][yc("0x5f")][yc("0x4c")](0)[yc("0x5c")]||r[yc("0x9b")]&&n[yc("0x5c")]<r[yc("0xd7")][yc("0x5f")][yc("0x4c")](0)[yc("0x5c")])))return!1;var n,r;const i=bc(t[0][yc("0x34")],"groupId"),o=bc(e[0][yc("0x34")],yc("0x15"));return!!jr(i,o)&&(!!t[yc("0x152")]((t=>e[yc("0x113")]((e=>t[yc("0xe2")]()[yc("0x80")](e[yc("0xe2")]())))))&&e[yc("0x152")]((e=>t[yc("0x113")]((t=>e[yc("0xe2")]().isEqual(t[yc("0xe2")]()))))))}}[yc("0x5b")](t){const e=Array[yc("0x0")](t),n=this[yc("0x12e")]({skipNotAttached:!0}),r=n.filter((e=>!t[yc("0x117")](e))),i=new Map(e[yc("0x71")]((t=>[t,this[yc("0x42")][yc("0x171")](t[yc("0xd")],t[yc("0x65")],"join")]))),o=new Map(n.map((t=>[t,t[yc("0x156")]()])));for(let t=0;t<e[yc("0xa3")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0xa3")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0xa3")];s++){const r=n[s];if(r[yc("0xd")]!==e[yc("0xd")]||r.author.id!==e[yc("0xfc")].id||r[yc("0x65")]!==e[yc("0x65")])continue;if(!Oc(e,r,["groupId"]))continue;if(yc("0x91")==e[yc("0xd")]&&e.data[yc("0x6e")]!=r.data[yc("0x6e")])continue;if(yc("0x91")==e.type&&t[yc("0x16a")](e.data[yc("0x16e")]))continue;if("formatBlock"==e[yc("0xd")]){const n=t[yc("0xd8")][yc("0xec")],r=e.getContainedElement();if(r&&(n[yc("0x13e")].isObject(r)||n.schema[yc("0x54")](r)))continue}const x=i[yc("0x4c")](e),a=o[yc("0x4c")](e),c=o[yc("0x4c")](r),l=e[yc("0xd7")]&&e[yc("0xd7")][yc("0xa3")],u=r[yc("0xd7")]&&r[yc("0xd7")].length;if(!l&&x(c,a))return t[yc("0x14a")](r,e),o.delete(e),!0;if(!u&&x(a,c))return t[yc("0x14a")](e,r),o[yc("0x145")](r),!0}return!1}}[yc("0x14a")](t,e){if(t[yc("0xb")])for(const n of e.getRanges())t.addRange(n);else{const n=e[yc("0xe2")]()[yc("0x10a")];this[yc("0x16f")](t,this._model[yc("0x3e")](t[yc("0xe2")]().start,n))}e[yc("0x68")]()}[yc("0x8e")](t,e){const n=t[yc("0x132")](yc("0x70"))||t.startsWith(yc("0x91"))?"FORMATTING":t[yc("0x13f")]();return Yr(this[yc("0xd8")][yc("0x7f")],e+"_"+n+yc("0xb1"))}_initAriaMarkerChangeAnnouncements(){const t=this[yc("0xd8")];(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[yc("0x1c")]);if(yc("0x35")===e){r.push(this[yc("0x8e")](n,yc("0x1e")));break}}for(const t of n){const{group:e,type:n}=this[yc("0xab")](t[yc("0x1c")]);if(yc("0x35")===e){r[yc("0x2c")](this[yc("0x8e")](n,yc("0x76")));break}}r[yc("0xa3")]&&t.ui.ariaLiveAnnouncer.announce(yc("0x96"),r[yc("0x141")](" "))}))}_processAttributeChanges(t){if(this._recordAttributeSuggestions)return!1;const e=this.editor,n=e[yc("0xec")][yc("0x74")][yc("0x155")][yc("0xe1")]();if(0==n[yc("0xa3")])return!1;const r=[],i=n.filter((t=>yc("0x91")==t[yc("0xd")])),o=n[yc("0x31")]((t=>yc("0x69")==t.type&&yc("0x4")!=t[yc("0x1c")])),s=n[yc("0x31")]((t=>yc("0x6")==t[yc("0xd")]&&yc("0x4")!=t[yc("0x1c")]));for(const t of i)r[yc("0x2c")]({key:t[yc("0x93")],newValue:t[yc("0x10c")],oldValue:t.attributeOldValue,range:Lc(t[yc("0x87")],e[yc("0xec")])});for(const t of o){const n=s[yc("0x1d")]((e=>e.position[yc("0x80")](t[yc("0xa5")])));n&&r.push({key:yc("0x129"),newValue:t[yc("0x1c")],oldValue:n[yc("0x1c")],range:e.model[yc("0x9f")](t.position[yc("0xe7")])})}return 0!=r.length&&this[yc("0xe9")](t,r)}[yc("0xac")](t){let e=!1;const n=this.editor.model.document[yc("0x155")].getChangedMarkers()[yc("0x31")]((t=>t[yc("0xc5")].newRange&&t[yc("0x1c")].startsWith(yc("0xbe"))));for(const r of n){const{subType:n,id:i}=this._splitMarkerName(r[yc("0x1c")]),o=n.split("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&"attribute"==n[yc("0xd")]&&n[yc("0xc5")]&&n[yc("0xc5")][yc("0x16e")]==o&&n.getFirstRange()[yc("0xfb")](r.data[yc("0x22")])&&(this[yc("0x3a")](n,r[yc("0xc5")][yc("0x22")],t),e=!0)}return e}[yc("0xbb")](t){this[yc("0xd8")],this[yc("0xcc")]=!0,t()}[yc("0xe4")](t){const e=this[yc("0x16a")](t),n=this[yc("0x110")][yc("0x117")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x14c")](r.range,"attribute")[yc("0x31")]((t=>!t[yc("0xcb")][yc("0x5e")]))[yc("0x71")]((t=>t[yc("0x35")])),i=(0,o.hashObject)({newValue:r[yc("0x59")]});e.filter((t=>{const[e,n]=t[yc("0x65")][yc("0xdc")]("|");return e==r[yc("0x16e")]&&n!=i}))[yc("0x1")]((e=>{this[yc("0x3a")](e,r[yc("0x87")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t.getFirstRange().getDifference(e);0!==r[yc("0xa3")]?1!==r[yc("0xa3")]?this[yc("0x127")](t,e[yc("0xf6")],e.end):this[yc("0x16f")](t,r[0]):n[yc("0x32")](t[yc("0x48")]())}}class kc{constructor(t){this[yc("0xf9")]=t,this[yc("0x7a")]=t[yc("0xec")],this[yc("0x160")]=new Map,this._defaultCallbacks=new Map,this[yc("0xe8")]()}[yc("0x46")](t,e,n,r,i,o){return new Qr(this._model,{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x171")](t,e,yc("0x33"))(...n),onDiscard:(...n)=>this[yc("0x171")](t,e,yc("0x95"))(...n)})}[yc("0xfa")](t,e,n,r){const i=t+":"+e+":"+n;this._customCallbacks[yc("0x12b")](i,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this._customCallbacks.get(r)||this[yc("0x114")][yc("0x4c")](t+":"+n)}[yc("0xe8")](){const t=()=>!1,e=t=>{t[yc("0x15d")](((t,e)=>t[yc("0xf6")][yc("0x11b")](e[yc("0xf6")])?1:-1)),this[yc("0x7a")].change((e=>{for(const n of t){let t;t=n[yc("0x10a")].isAtEnd&&n.end[yc("0x157")]==n[yc("0xf6")].nodeAfter?e.createSelection(n[yc("0xf6")][yc("0xe7")],"on"):e[yc("0x2f")](n),this._model[yc("0xb9")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x7a")][yc("0xc3")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x71")]((t=>(Rc(t)&&(t=this[yc("0x7a")][yc("0x3e")](t[yc("0x10a")])),t)))[yc("0x31")]((t=>yc("0x85")!==t[yc("0x67")][yc("0xf")]));if(o[yc("0xa3")]<1)return;const x=Array[yc("0x0")](this[yc("0x7a")][yc("0x74")].selection[yc("0x156")]()).map((t=>s.LiveRange[yc("0x20")](t)));n[yc("0x115")](o);for(const t of this._editor[yc("0x28")][yc("0x28")]())t[yc("0x86")]();i[yc("0x2c")]({forceDefaultExecution:!0}),this[yc("0xf9")][yc("0x10")](r,...i);const a=x.filter((t=>yc("0x85")!=t.root.rootName));a[yc("0xa3")]>0&&n[yc("0x115")](a);for(const t of x)t[yc("0x122")]()}))},r=(t,e)=>1==t.length&&1==e[yc("0xa3")]&&t[0][yc("0x10a")][yc("0x80")](e[0][yc("0xf6")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x7a")])?[t,e]:wc(e,t,r,n,this[yc("0x7a")])?[e,t]:null;this._defaultCallbacks[yc("0x12b")](yc("0x136"),t),this[yc("0x114")].set(yc("0xa8"),e),this[yc("0x114")].set("insertion:join",r),this._defaultCallbacks.set(yc("0x8b"),i),this._defaultCallbacks.set(yc("0x16d"),e),this._defaultCallbacks[yc("0x12b")](yc("0x99"),t),this[yc("0x114")][yc("0x12b")](yc("0xb0"),r),this._defaultCallbacks[yc("0x12b")](yc("0x123"),i),this[yc("0x114")][yc("0x12b")]("formatInline:accept",n),this[yc("0x114")][yc("0x12b")](yc("0x101"),t),this[yc("0x114")][yc("0x12b")](yc("0x3c"),r),this[yc("0x114")][yc("0x12b")](yc("0x139"),t),this[yc("0x114")][yc("0x12b")](yc("0x102"),n),this[yc("0x114")][yc("0x12b")](yc("0x98"),t),this[yc("0x114")][yc("0x12b")](yc("0x13c"),r),this[yc("0x114")][yc("0x12b")](yc("0x150"),t),this[yc("0x114")].set("attribute:accept",t),this[yc("0x114")][yc("0x12b")](yc("0x89"),((t,e)=>{if(!e)return;const n=this[yc("0xf9")][yc("0x167")][yc("0x4c")](Ac);this[yc("0x7a")][yc("0xc3")]((r=>{if(yc("0x129")==e[yc("0x16e")])for(const n of t){const t=n.start.nodeAfter,i=e[yc("0x6e")];r[yc("0x120")](t,i)}else if(n[yc("0x16a")](e[yc("0x16e")]))for(const n of t)void 0!==e[yc("0x6e")]?r[yc("0x78")](e[yc("0x16e")],e[yc("0x6e")],n.start.nodeAfter):r[yc("0x58")](e[yc("0x16e")],n[yc("0xf6")][yc("0xe7")]);else for(const n of t)e.oldValue?r[yc("0x78")](e.key,e[yc("0x6e")],n):r[yc("0x58")](e.key,n)}))})),this[yc("0x114")][yc("0x12b")](yc("0xdf"),r)}}function Ic(t,e,n){for(const r of e[yc("0x157")][yc("0x17")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0x67")]==r)return!1;if(!n.containsItem(r))return!1;if(t[yc("0x9d")](r)||t[yc("0x54")](r))return!0}return!1}function Rc(t){return t[yc("0x10a")][yc("0x157")]==t[yc("0xf6")].nodeAfter&&t[yc("0x10a")][yc("0xc8")]}function Sc(t,e,n,r){const i=t=>!t[yc("0xad")].is("$textProxy")&&!r[yc("0x9d")](t[yc("0xad")]),o=t[yc("0xf6")][yc("0xf4")](i),s=t[yc("0x10a")][yc("0xf4")](i,{direction:yc("0x135")});return!(t.start[yc("0x80")](o)&&t[yc("0x10a")][yc("0x80")](s)||(o[yc("0x11b")](s)?n.updateMarker(e,{range:n[yc("0x3e")](o,s)}):n[yc("0x32")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0xf6")][yc("0xe7")];return e&&e.is("element")}function Lc(t,e){return null==t[yc("0x10a")][yc("0x4a")]&&t[yc("0x10a")][yc("0x157")]==t[yc("0xf6")][yc("0xe7")]?Mc(t[yc("0xf6")][yc("0xe7")],e):t}function Mc(t,e){const n=e.schema[yc("0x9d")](t)||e[yc("0x13e")].isSelectable(t);return e[yc("0x3e")](e[yc("0x25")](t,yc("0x13b")),n?e.createPositionAfter(t):e.createPositionAt(t,yc("0x10a")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x10a")].isEqual(r[yc("0xf6")]))return!0;if(t[yc("0xd")]!=e[yc("0xd")])return!1;if(!n[yc("0x10a")][yc("0x10b")](r[yc("0xf6")]))return!1;const o=i[yc("0x3e")](n[yc("0x10a")],r[yc("0xf6")])[yc("0x100")]();for(const t of o)if([yc("0x17a"),yc("0xe0")][yc("0xb5")](t[yc("0xd")])&&i[yc("0x13e")].isLimit(t[yc("0xad")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x4f")]||!e._isDataLoaded)&&jr(bc(t.attributes,n),bc(e[yc("0x34")],n))}function Fc(t,e){const n=Dc(t[yc("0x34")]),r=Dc(e);if(!t[yc("0x4f")])return!1;for(const t of Object[yc("0xef")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x124")]({},t);return delete e[yc("0x7c")],delete e[yc("0xb3")],e}const Bc=["commands","add","_pendingAction","destroy","_editor","listenTo","canAccept","plugins","model","unbind","_setPendingAction","canDiscard","acceptSuggestion","isDirty","discardSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","view","_removePendingAction","commentThreadController","canEditAt","getRanges","_discardCommand","get","isEnabled","PendingActions","remove","execute","bind"];var Pc,Uc;Pc=Bc,Uc=235,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x5")]=e,this[jc("0xe")]=n,this.commentThreadController=r,this[jc("0x1")]=t,this[jc("0xc")]=t[jc("0x1a")][jc("0x14")](jc("0x9")),this._discardCommand=t[jc("0x1a")].get("discardSuggestion"),this[jc("0xe")].bind("isEnabled").to(this[jc("0xc")],this._discardCommand,((t,e)=>t||e)),this[jc("0xe")][jc("0x19")](jc("0x3")).to(this._acceptCommand,jc("0x15"),(t=>t&&this._editor.model[jc("0x11")](e[jc("0x12")]()))),this.view[jc("0x19")](jc("0x8")).to(this[jc("0x13")],jc("0x15"),(t=>t&&this[jc("0x1")][jc("0x5")][jc("0x11")](e[jc("0x12")]()))),this._pendingAction=null,n[jc("0xa")]&&this[jc("0x7")](),this[jc("0x2")](n,"acceptSuggestion",(()=>this[jc("0x9")]())),this[jc("0x2")](n,jc("0xb"),(()=>this[jc("0xb")]())),this.listenTo(n,"change:isDirty",(()=>{n.isDirty?this[jc("0x7")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}[jc("0xb")](){this[jc("0x13")][jc("0x18")](this.model.id)}[jc("0x0")](){this[jc("0xe")].unbind(jc("0x15")),this[jc("0xe")][jc("0x6")](jc("0x3")),this[jc("0xe")].unbind("canDiscard"),this.stopListening(),this[jc("0x10")].destroy(),this._pendingAction&&this[jc("0xf")]()}[jc("0x7")](){const t=Yr(this[jc("0x1")].locale,jc("0xd"));this[jc("0x1c")]=this[jc("0x1")][jc("0x4")][jc("0x14")](jc("0x16"))[jc("0x1b")](t)}[jc("0xf")](){null!==this._pendingAction&&this[jc("0x1")].plugins[jc("0x14")]("PendingActions")[jc("0x17")](this[jc("0x1c")]),this._pendingAction=null}}const Vc=["editor","isEnabled","bind","showInput","set","fire","isActive","setData","commentsListView","disabledSubmit","commentThreadInputView","length","commentInputView","removeComment","cancel","value","_localUser","isDirty","isReadOnly","destroy","addComment","_model","_createCommentViews","canDiscard","_createCommentThreadInputView","CommentView","focus","delegate","disableComments","hasDirtyComment","locale","editorConfig","commentThread","element","_config","authoredAt"];var Hc,zc;Hc=Vc,zc=221,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0x5")]=null,this[Wc("0x23")](Wc("0x1"),!1),this.set(Wc("0x1e"),e[Wc("0x1e")]),this[Wc("0x21")](Wc("0x1e")).to(e),this[Wc("0x23")]("descriptionParts",[]),this.set(Wc("0xc"),!1),this.set(Wc("0x20"),!1),this.set("canAccept",!1),this.set(Wc("0x12"),!1),this[Wc("0x10")]=e,this._localUser=n,this[Wc("0x1d")]=r,r[Wc("0x17")]?this[Wc("0x23")]("length",1):this[Wc("0x11")]()}[Wc("0x15")](){this[Wc("0x1c")].focus()}destroy(){this.commentsListView&&this[Wc("0x3")][Wc("0xe")](),this[Wc("0x5")]&&this[Wc("0x5")].destroy(),super.destroy()}[Wc("0x11")](){const{CommentsListView:t}=this[Wc("0x1d")];this[Wc("0x3")]=new t(this[Wc("0x19")],this[Wc("0x10")][Wc("0x1b")],Object.assign({CommentView:this[Wc("0x1d")][Wc("0x14")]},this._config)),this[Wc("0x3")].delegate(Wc("0x8")).to(this),this[Wc("0x3")][Wc("0x16")]("updateComment").to(this),this[Wc("0x3")][Wc("0x21")](Wc("0x1")).to(this),this[Wc("0x23")](Wc("0x6"),this[Wc("0x3")][Wc("0x6")]+1),this.bind("length").to(this[Wc("0x3")],Wc("0x6"),(t=>t+1)),this[Wc("0x5")]=this[Wc("0x13")](),this.on(Wc("0x8"),(()=>this[Wc("0x15")]())),this[Wc("0x21")](Wc("0xc")).to(this[Wc("0x3")],Wc("0x18"),this[Wc("0x5")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x13")](){const{CommentThreadInputView:t}=this[Wc("0x1d")],e=new t(this.locale,this[Wc("0xb")],this[Wc("0x1d")][Wc("0x1a")]),n=e[Wc("0x7")];return e.bind(Wc("0x22")).to(this,Wc("0x1"),this._model[Wc("0x1b")],"isReadOnly",n,Wc("0xa"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x0")](Wc("0xf"),e),n[Wc("0x1f")][Wc("0x2")]("")})),n.on(Wc("0x9"),(()=>this[Wc("0x15")]())),n[Wc("0x21")](Wc("0x4")).to(this._model.commentThread,Wc("0xd")),e}}const qc=["acceptSuggestion","source","isActive","@external","type","</p>","commentsListView","ck-suggestion-wrapper","join","innerText","canDiscard","ck-comment__info-time","children","getExternalSuggestionNote","ck-suggestion__user","ck-annotation","author","editorReady","render",'" title="',"set","_config","createElement","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__actions","change:description","_model","ck-suggestion--disabled-comments","map","div","Accept suggestion","color","description","check","userView","ck-suggestion--accept","ck-suggestion__info-name","ck-suggestion-","push","acceptButton","importWord","ck-annotation__info","delegate","element","getUserViewNotificationText","locale","bind",".ck-annotation__content-wrapper","ck-suggestion__actions","discardSuggestion","discardButton","_createButton","getTemplate","commentThreadInputView","ck-annotation__user","ck-annotation__info-name","ck-suggestion-wrapper--active","name","commentThread","time","ck-suggestion--discard","Discard suggestion","isExternal","innerHTML","setTemplate","attributes","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","isEnabled","ck-annotation__info-time","EXTERNAL_IMPORT_WORD_AVATAR","fire","formatDateTime","ck-annotation__main","editorDestroyed","descriptionParts",'"></span>',"value","EXTERNAL_AVATAR","span","_descriptionElement","EXTERNAL_SUGGESTION","content","creator","extendTemplate","<p>"];var Xc,$c;Xc=qc,$c=162,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Qc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x20")]("type",""),this[Zc("0x3b")]("type").to(this,Zc("0x1"),(t=>t&&t[0]?t[0][Zc("0x10")]:"")),this[Zc("0x3b")](Zc("0x2d")).to(this,Zc("0x1"),this,Zc("0xe"),((t,e)=>{let n="";for(const e of t)n+=Zc("0xb")+Yc(e[Zc("0x8")],e[Zc("0x2c")])+Zc("0x11");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x6")]=null,this.acceptButton=this._createButton(Yr(e,Zc("0x2b")),t.icons[Zc("0x2e")],Zc("0x30"),Zc("0xc"),"sw"),this[Zc("0x34")][Zc("0x3b")](Zc("0x51")).to(this,"canAccept"),this[Zc("0x3f")]=this[Zc("0x40")](Yr(e,Zc("0x4a")),t.icons.cancel,Zc("0x49"),Zc("0x3e"),"sw"),this.discardButton[Zc("0x3b")](Zc("0x51")).to(this,Zc("0x16")),this[Zc("0x2f")]=new o.UserView(e,this._model[Zc("0x1c")],this[Zc("0x39")]()),this[Zc("0x2f")][Zc("0xa")]({attributes:{class:[Zc("0x1a"),Zc("0x43")]}}),this[Zc("0x4d")](this.getTemplate())}[Zc("0x41")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info",Zc("0x36")]},children:[{tag:Zc("0x5"),children:[{text:this[Zc("0x2f")].name}],attributes:{class:[Zc("0x31"),Zc("0x44")]}},{tag:Zc("0x48"),attributes:{datetime:t.to("authoredAt"),class:[Zc("0x17"),Zc("0x52")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x21")][Zc("0x55")](t)))}]}]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x3d"),Zc("0x25")]},children:[this.acceptButton,this[Zc("0x3f")]]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x4f")]}}];this[Zc("0x27")][Zc("0x4b")]&&e[Zc("0x33")]({tag:Zc("0x2a"),attributes:{class:[Zc("0x23")]},children:[{text:this[Zc("0x19")]()}]});const n={tag:Zc("0x2a"),attributes:{class:[Zc("0x13"),t.if(Zc("0xe"),Zc("0x45")),t.to(Zc("0x10"),(t=>Zc("0x32")+t)),this[Zc("0x21")].disableComments&&Zc("0x28")],"data-suggestion-id":this[Zc("0x27")].id,"data-thread-id":this[Zc("0x27")][Zc("0x47")].id,"data-author-id":this[Zc("0x27")][Zc("0x1c")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Zc("0x1b")]},children:[this.userView,{tag:Zc("0x2a"),attributes:{class:["ck-suggestion__main",Zc("0x56")]},children:e}]}]};return this[Zc("0x12")]&&this[Zc("0x42")]&&(n[Zc("0x18")][Zc("0x33")](this.commentsListView,this[Zc("0x42")]),this[Zc("0x12")].delegate(Zc("0x1d")).to(this),this.commentsListView[Zc("0x37")](Zc("0x0")).to(this),this[Zc("0x42")].delegate("editorReady").to(this),this[Zc("0x42")][Zc("0x37")]("editorDestroyed").to(this)),n}[Zc("0x1e")](){super.render(),this[Zc("0x6")]=this[Zc("0x38")].querySelector(Zc("0x3c")),this._descriptionElement[Zc("0x4c")]=this[Zc("0x2d")],this.on(Zc("0x26"),((t,e,n)=>{this[Zc("0x6")][Zc("0x4c")]=n}))}[Zc("0x40")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x3a")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0xa")]({attributes:{class:n}}),s.on("execute",(()=>{this[Zc("0x54")](r,this[Zc("0x27")].id)})),s}[Zc("0x19")](){return Zc("0x35")===this._model[Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x50")):Yr(this[Zc("0x3a")],Zc("0x7"))}[Zc("0x39")](){return this[Zc("0x27")][Zc("0x4b")]?Zc("0x35")===this[Zc("0x27")][Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x53"),this[Zc("0x27")][Zc("0x9")][Zc("0x46")]):Yr(this.locale,Zc("0x4"),this[Zc("0x27")].creator.name):null}}function Yc(t,e){let n="";return n+=t.split("*")[Zc("0x29")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Jc(t)+"</span>":Jc(t)))[Zc("0x14")](""),e&&(n+=Zc("0x24")+e[Zc("0x3")]+Zc("0x1f")+e.title+Zc("0x2")),n}function Jc(t){const e=document[Zc("0x22")]("span");return e[Zc("0x15")]=t,e[Zc("0x4c")]}const tl=["add","isDirty","addSourceCollector","_createUIButton","get","filter","_refreshActiveMarkers","head","comments","_initializeController","activeAnnotations","requires","previous","destroy","trackChanges.disableComments","comments.maxCommentCharsWhenCollapsed","suggestionChanged","isInContent","unbind","CommentsUI","execute","_disableComments","toMany","comments.maxCommentsWhenCollapsed","separator","Discard all selected suggestions","_handleSuggestionControllerDelayed","hasSuggestion","pluginName","clear","source","focus","Annotations","acceptSelectedSuggestions","SuggestionThreadView","some","Discard all suggestions","commands","_destroyController","plugins","config","createAnnotation","editor","change:activeAnnotations","suggestionLoaded","_suggestionToController","trackChanges","value","keys","_annotationViews","init","TrackChangesEditing","delete","editing","getMarkers","_descriptionFactory","acceptButton","CommentsRepository","isMultiRange","change:previous","length","_viewToController","type","_handleControllerBuffer","switchbutton","map","CommentView","Accept all selected suggestions","Track changes","_bindAnnotationToEditors","from","locale","acceptAllSuggestions","lowest","commentThread","buttonView","push","set","descriptionParts","define","_updateController","button","EditorAnnotations","getFirstRange","suggestion-","Accept all suggestions","view","has","suggestionUnloaded","isEnabled","createCommentThreadController","getAllAdjacentSuggestions","comments.editorConfig","actionView","TrackChangesUI","activeMarkers","refreshSelectedViews","innerView","getSuggestion","commandName","comments.maxThreadTotalWeight","discardButton","addComment","bind","discardSelectedSuggestions","arrowView","createAnnotationView","listenTo","mainView","model"];var el,nl;el=tl,nl=431,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x14")](){return[Ac,o.Users,rl("0x42"),rl("0x29"),rl("0x5b")]}static get[rl("0x25")](){return rl("0x67")}constructor(t){super(t),this[rl("0x36")]=new Map,this._viewToController=new Map,this[rl("0x3a")]=new Map,this[rl("0x48")]=new Map;const e=this.editor[rl("0x31")];e[rl("0x58")]("trackChanges.SuggestionThreadView",Qc),e[rl("0x58")](rl("0x17"),!1),this[rl("0x1e")]=e.get("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x48")].size&&setTimeout((()=>{for(const[t,e]of this[rl("0x48")]){const n=this[rl("0x36")].has(t);n||e?n&&e&&this[rl("0x2f")](t):this[rl("0x12")](t)}this._handleControllerBuffer[rl("0x26")](),this.editor[rl("0x30")][rl("0xd")]("EditorAnnotations")[rl("0x69")](),this[rl("0xf")]()}),10),this[rl("0x48")].set(t,e)}[rl("0x3b")](){const t=this[rl("0x33")],e=t[rl("0x30")][rl("0xd")](rl("0x3c")),n=t[rl("0x30")][rl("0xd")]("Annotations"),r=t[rl("0x30")][rl("0xd")](rl("0x5b")),i=t[rl("0x30")][rl("0xd")]("CommentsRepository");t.ui.componentFactory.add(rl("0x37"),(t=>this[rl("0xc")](t))),r[rl("0xb")]((()=>{const t=[];for(const[e,n]of Array[rl("0x4f")](this._suggestionToController)){const r=e[rl("0x64")](),i=[];for(const t of r){if(!t[rl("0x1a")])continue;if(t[rl("0x43")]){i.push(...t.getRanges());continue}const e=t[rl("0x5c")]();if(i.length>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i.push(e)}t[rl("0x55")]([n[rl("0x5f")],i])}return t})),this[rl("0x6")](e,rl("0x35"),((t,e)=>{this[rl("0x6")](e,"change:previous",((t,n,r,i)=>{e[rl("0x1a")]&&(null==r?(this[rl("0x59")](i.head),this[rl("0x23")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x23")](e,!0)))})),null!==e[rl("0x15")]?this[rl("0x59")](e[rl("0x10")]):this._handleSuggestionControllerDelayed(e,!1)})),this.listenTo(e,rl("0x61"),((t,e,n)=>{this.stopListening(e,rl("0x44")),this[rl("0x48")][rl("0x3d")](e),this[rl("0x36")][rl("0x60")](e)&&this[rl("0x2f")](e),n&&this[rl("0x59")](n[rl("0x10")])})),this[rl("0x6")](e,rl("0x19"),((t,e)=>{this._updateController(e)})),this[rl("0x6")](n,rl("0x34"),(()=>{this[rl("0xf")]()})),this[rl("0x6")](i,rl("0x1"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x24")](n))return;const i=e[rl("0x6b")](n);this._suggestionToController[rl("0xd")](i)[rl("0x5f")][rl("0x28")]()}),{priority:rl("0x52")})}_refreshActiveMarkers(){const t=this.editor[rl("0x30")][rl("0xd")](rl("0x29")),e=this[rl("0x33")][rl("0x30")].get(rl("0x3c")),n=Array.from(t[rl("0x13")],(t=>t[rl("0x6a")])).filter((t=>this[rl("0x46")][rl("0x60")](t))),r=[];for(const t of n){const e=this[rl("0x46")].get(t)[rl("0x8")][rl("0x64")]();r.push(...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[rl("0x68")]=r}[rl("0xc")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor[rl("0x2e")][rl("0xd")](rl("0x37")),o=Yr(t,rl("0x4d"));n[rl("0x54")].set({tooltip:o,label:o,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-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind("isOn").to(r,rl("0x38")),n[rl("0x54")].on(rl("0x1d"),(()=>{r.execute(),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()}));const s=new e.Collection,x=[{type:rl("0x49"),model:{withText:!0,label:o,commandName:rl("0x37")}},{type:"separator"},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x5e")),commandName:rl("0x51")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x4c")),commandName:rl("0x2a")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x2d")),commandName:"discardAllSuggestions"}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x22")),commandName:rl("0x3")}}];for(const t of x){let e={type:rl("0x21")};if(t.model){const n=new i.ViewModel(t[rl("0x8")]),r=this[rl("0x33")][rl("0x2e")].get(n[rl("0x6c")]);n[rl("0x2")]("isOn",rl("0x62")).to(r,rl("0x38"),"isEnabled"),e={type:t.type,model:n}}s[rl("0x9")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0xe")]((t=>null!=t.model))[rl("0x4a")]((t=>this[rl("0x33")][rl("0x2e")][rl("0xd")](t.model[rl("0x6c")]))),c=n[rl("0x54")];return c.actionView.unbind("isEnabled"),c[rl("0x4")][rl("0x1b")](rl("0x62")),c[rl("0x66")].bind(rl("0x62")).to(r,rl("0x62")),c.arrowView[rl("0x2")](rl("0x62"))[rl("0x1f")](a,rl("0x62"),((...t)=>t[rl("0x2c")]((t=>t)))),n.on(rl("0x1d"),(t=>{this[rl("0x33")].execute(t[rl("0x27")][rl("0x6c")]),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()})),n}_initializeController(t){const e=this[rl("0x33")],n=e[rl("0x31")],r=e.plugins[rl("0xd")](rl("0x29")),i=e[rl("0x30")][rl("0xd")]("CommentsRepository"),s=e[rl("0x30")][rl("0xd")](rl("0x5b")),x=e.plugins[rl("0xd")](o.Users).me,a=n[rl("0xd")]("trackChanges")[rl("0x2b")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x30")][rl("0xd")](rl("0x1c"));let u,d;this[rl("0x3a")][rl("0x60")](t.id)?(d=this[rl("0x3a")][rl("0xd")](t.id),u=d[rl("0x7")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x1e")],editorConfig:n[rl("0xd")](rl("0x65")),maxCommentsWhenCollapsed:n[rl("0xd")](rl("0x20")),maxThreadTotalWeight:n[rl("0xd")](rl("0x6d")),maxCommentCharsWhenCollapsed:n[rl("0xd")](rl("0x18")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0xd")](rl("0x50"))),CommentView:n[rl("0xd")](rl("0x11"))[rl("0x4b")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x41")].on(rl("0x1d"),(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),u[rl("0x0")].on("execute",(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),d=r[rl("0x5")](this[rl("0x33")].locale,u),d.bind(rl("0xa")).to(u,rl("0xa")),d[rl("0x2")](rl("0x45")).to(u),d[rl("0x2")](rl("0x47")).to(u,"type",(t=>rl("0x5d")+t)),this[rl("0x3a")][rl("0x56")](t.id,d));const g=i[rl("0x63")](t[rl("0x53")],u),f=new Gc(e,t,u,g),h=t[rl("0x64")]().filter((t=>t.isInContent));u[rl("0x57")]=e[rl("0x30")][rl("0xd")](rl("0x3c"))[rl("0x40")].getDescriptions(h),this[rl("0x36")].set(t,f),this[rl("0x46")][rl("0x56")](u,f);const m=r[rl("0x32")]({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0xe")]((t=>t[rl("0x1a")]));for(const t of r)n[rl("0x55")](...t[rl("0x3f")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x3e")],n)},type:()=>"suggestion-"+f[rl("0x5f")][rl("0x47")]});i[rl("0x4e")](u,m),r[rl("0x9")](m),s.registerAnnotation(m)}[rl("0x2f")](t){const e=this[rl("0x33")][rl("0x30")][rl("0xd")](rl("0x42")),n=this[rl("0x33")].plugins.get(rl("0x29")),r=this[rl("0x36")].get(t),i=r.view,o=n.getByInnerView(i);e._unbindEditors(i),o&&n.remove(o),this._suggestionToController[rl("0x3d")](t),this[rl("0x46")][rl("0x3d")](i),r[rl("0x16")]()}[rl("0x59")](t){if(!t[rl("0x1a")]||!this[rl("0x36")][rl("0x60")](t))return;const e=this[rl("0x33")][rl("0x30")].get("TrackChangesEditing"),n=this[rl("0x36")].get(t),r=t[rl("0x64")]();n.view[rl("0x57")]=e[rl("0x40")].getDescriptions(r)}[rl("0x16")](){for(const t of this[rl("0x36")][rl("0x39")]())this[rl("0x2f")](t);for(const t of this[rl("0x3a")].values())t[rl("0x7")].destroy();super[rl("0x16")]()}}var ol,sl,xl=["requires","TrackChanges","adapter","addSuggestion","editor","pluginName","getSuggestion","addSuggestionData","get","plugins","getSuggestions"];ol=xl,sl=131,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x1")](){return[Ac,il,"Comments"]}static get[al("0x6")](){return al("0x2")}set[al("0x3")](t){this.editor[al("0xa")].get(Ac)[al("0x3")]=t}get[al("0x3")](){return this.editor[al("0xa")][al("0x9")](Ac).adapter}[al("0x4")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac)[al("0x8")](t)}[al("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x5")].plugins.get(Ac)[al("0x0")]({skipNotAttached:t,toJSON:e})}[al("0x7")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac).getSuggestion(t)}}const ll=["addUser","getRootsAttributes","getUser","createDocumentFragment","useAnonymousUser","rootsAttributes","getDataWithAcceptedSuggestions","getRootNames","model","pluginName","getSuggestions","Users","trackChangesData.editorCreator","init","trackChangesData","div","reduce","createElement","constructor","create","config","get","TrackChangesData","name","execute","define","Pagination","acceptAllSuggestions","CommentsRepository","result","push","plugins","editorCreator","track-changes-data-invalid-editor-creator","discardAllSuggestions","function","set","TrackChangesEditing","_adapter","users","appendChild","data","getDataWithDiscardedSuggestions","requires","editor"];var ul,dl;ul=ll,dl=303,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x26")];class hl extends t.Plugin{static get[gl("0xa")](){return[Ac]}static get[gl("0x15")](){return gl("0x22")}init(){const t=this[gl("0xb")];if(t[gl("0x20")][gl("0x25")](gl("0x18"),(e=>{const n=t[gl("0x14")].document[gl("0x13")]().reduce(((t,e)=>(t[e]="",t)),{});return t[gl("0x1e")][gl("0x1f")](n,e)})),gl("0x2")!=typeof t[gl("0x20")][gl("0x21")](gl("0x1a")).editorCreator)throw new e.CKEditorError(gl("0x0"))}[gl("0x12")](t){return bl(this[gl("0xb")],!0,t)}[gl("0x9")](t){return bl(this[gl("0xb")],!1,t)}}class ml extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[gl("0x29")]="end"}[gl("0x19")](){this[gl("0xb")].plugins[gl("0x21")](gl("0x28"))._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[gl("0xb")][gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x5")]=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2b")][gl("0x2a")](Ac,ml),r[gl("0x11")]=pl(t)?t[gl("0xd")]():void 0;const i=document[gl("0xf")](),s=t[gl("0x20")][gl("0x21")](gl("0x1a"))[gl("0x2c")],x=await s(r,(()=>function(t){const e=document[gl("0x1d")](gl("0x1b"));return t[gl("0x7")](e),e}(i)));!function(t,e){const n=t[gl("0x14")].document[gl("0x13")]()[gl("0x1c")](((e,n)=>(e[n]=t[gl("0x8")].get({rootName:n}),e)),{}),r=t[gl("0x2b")].get(gl("0x17"))[gl("0x6")].map((t=>({id:t.id,name:t[gl("0x23")]}))),i=t[gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x16")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x2b")][gl("0x21")](gl("0x17")),s=e[gl("0x2b")][gl("0x21")](gl("0x4"));for(const t of r)o[gl("0xe")](t.id)||o[gl("0xc")](t);o.me||o[gl("0x10")]();for(const t of i)s.addSuggestionData(t);e[gl("0x8")][gl("0x3")](n)}(t,x),x[gl("0x24")](gl(e?"0x27":"0x1"));const a=pl(x)?x.getFullData(n):x[gl("0x8")][gl("0x21")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
5
+ */(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["commands","has","forceDisabled","editor","affectsData","execute","value","TrackChangesCommand","_enabledCommands","refresh","_enableCommands","_disableUnsupportedCommands"];var c,l;c=a,l=355,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0xb")]=!1,this[u("0x2")](),this._isEnabledBasedOnSelection=!1}[u("0x2")](){this.isEnabled=!0}[u("0xa")](){this[u("0xb")]=!this.value,this.value?this[u("0x4")]():this[u("0x3")]()}_disableUnsupportedCommands(){for(const t of this.editor.commands[u("0x5")]())t[u("0x9")]&&!this._enabledCommands[u("0x6")](t)&&t[u("0x7")]("TrackChangesCommand")}[u("0x3")](){for(const t of this[u("0x8")][u("0x5")][u("0x5")]())t[u("0x9")]&&!this[u("0x1")][u("0x6")](t)&&t.clearForceDisabled(u("0x0"))}}const g=["plugins","editor","canEditAt","_suggestions","isEnabled","acceptSuggestion","get","model","_isEnabledBasedOnSelection","execute","track-changes-accept-suggestion-not-found","refresh"];var f,h;f=g,h=139,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x8")]=e,this[m("0x4")](),this[m("0x1")]=!1}[m("0x4")](){this[m("0x9")]=!0}[m("0x2")](t){const n=this._suggestions[m("0xb")](t);if(!n)throw new e.CKEditorError(m("0x3"),this);const r=n.getRanges();this[m("0x6")][m("0x0")][m("0x7")](r)&&this.editor[m("0x5")][m("0xb")]("TrackChangesEditing")[m("0xa")](n)}}const b=["get","track-changes-discard-suggestion-not-found","editor","_suggestions","plugins","model","discardSuggestion","execute","refresh","TrackChangesEditing"];var E,_;E=b,_=189,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x9")](){this.isEnabled=!0}[T("0x8")](t){const n=this[T("0x4")][T("0x1")](t);if(!n)throw new e.CKEditorError(T("0x2"),this);const r=n.getRanges();this[T("0x3")][T("0x6")].canEditAt(r)&&this[T("0x3")][T("0x5")][T("0x1")](T("0x0"))[T("0x7")](n)}}const C=["from","map","next","type","color","getRanges","isObject","isInContent","isCollapsed","isTouching","schema","splice","replace","createRange","add","length","createPositionAt","start","deletion","createPositionBefore","execute","push","createPositionAfter","isIntersecting"," [color ","end"];var A,k;A=C,k=368,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>"deletion"==t[I("0x19")]&&I("0xe")!=e[I("0x19")]?-1:"deletion"!=t[I("0x19")]&&I("0xe")==e[I("0x19")]?1:0))}function R(t,e){let n,r=0;const i=[],o=e[I("0x6")];for(;r<t.length;){const s=t[r],x=t[r+1];n||(n=e[I("0xf")](s)),v(e,s,x)||(i[I("0x11")](e[I("0x9")](n,o[I("0x2")](s)?e[I("0x12")](s):e[I("0xc")](s,I("0x15")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t[I("0x12")](e),i=t.createPositionBefore(n);return r[I("0x5")](i)}function N(t,e,n){for(;n[I("0xb")];){const r=n[I("0x7")](0,100);t.change((()=>{for(const t of r)t[I("0x3")]&&e[I("0x10")](t.id)}))}}const L=["model","canEditAt","some","from","_suggestions","_command","values","refresh","getRanges","isInContent","isEnabled","execute"];var M,w;M=L,w=493,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x3")]=n,this[O("0x6")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array.from(this[O("0x3")][O("0x5")]())[O("0x1")]((t=>t[O("0x8")]));this.isEnabled=this._command[O("0x9")]&&t}[O("0xa")](){const t=S(Array[O("0x2")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e[O("0x7")]();if(!this.editor[O("0xb")][O("0x0")](t))return}N(this.editor[O("0xb")],this[O("0x4")],t)}}const D=["editor","getRanges","selection","_selectedSuggestions","document","model","values","_suggestions","_isEnabledBasedOnSelection","size","from","refresh","isEnabled","_command","execute"];var P,B;P=D,B=245,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x8")]=e,this[U("0x2")]=n,this[U("0xd")]=new Set,this[U("0x6")](),this[U("0x3")]=!1}[U("0x6")](){const t=this.editor[U("0x0")][U("0xe")][U("0xc")],e=Array[U("0x5")](this[U("0x2")][U("0x1")]());this[U("0xd")]=function(t,e){const n=Array[I("0x16")](t[I("0x1")]()),r=new Set;for(const i of e)if(i[I("0x3")])for(const e of n)for(const n of i[I("0x1")]())(e[I("0x13")](n)||t[I("0x4")]&&!i.isMultiRange&&i[I("0x18")]&&n[I("0x15")][I("0x5")](e[I("0xd")]))&&r[I("0xa")](i);return r}(t,e),this[U("0x7")]=this[U("0x8")].isEnabled&&!!this[U("0xd")][U("0x4")]}[U("0x9")](){const t=S(Array[U("0x5")](this[U("0xd")]));for(const e of t){const t=e[U("0xb")]();if(!this[U("0xa")][U("0x0")].canEditAt(t))return}N(this.editor.model,this[U("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(ht(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const Ut=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 jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(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 re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Ye=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const hn=Nt(rt,"Set");const mn=Nt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||hn&&Sn(new hn)!=En||mn&&Sn(new mn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Ye(e,x)}else{var d=Rn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){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||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Sr;case"[object Set]":var a=1&r;if(x||(x=Rr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Rn(t),c=x?Fr:Rn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Jt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Jt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Jt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["getMultiRangeId","onAccept","data","size","@external","split","substr","_model","removeMarker","from","decorate","_onAttributesChange","authoredAt","getRanges","markers","createdAt","author","head","getRange","length","_markerNames","_isDataLoaded","next","toJSON","isIntersectingWithRange","removeMarkers","previous","hasComments","discard","_onAccept","getMarkerNames","filter","addMarker","_saved","onAttributesChange","creator","push","start","onDiscard","set","subType","getItems","change","removeAttribute","getFirstMarker","setAttribute","_onDiscard","get","accept","type","commentThread","isIntersecting","add","attributes","getAllAdjacentSuggestions","isMultiRange","nodeBefore","getMarkers","map","addRange"];var Xr,$r;Xr=qr,$r=204,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Qr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x39")]=!1,this.id=e.id,this[Zr("0x19")]=e.type,this[Zr("0x10")]=e[Zr("0x10")]||null,this.author=e[Zr("0x34")],this[Zr("0xb")]=e[Zr("0xb")]||e[Zr("0x34")],this.isExternal=Boolean(e[Zr("0x1d")]&&e[Zr("0x1d")][Zr("0x28")]),this.data=null,this[Zr("0x2b")]=t,this[Zr("0x5")]=e[Zr("0x25")],this[Zr("0x16")]=e[Zr("0xe")],this[Zr("0x2f")]=e[Zr("0xa")],this[Zr("0x38")]=new Set,this[Zr("0x33")]=null,this.set(Zr("0x30"),null),this[Zr("0xf")](Zr("0x1d"),e.attributes||{}),this[Zr("0xf")]("previous",null),this.set("next",null),this[Zr("0xf")](Zr("0x1a"),null),this[Zr("0xf")](Zr("0x9"),!1),this.decorate(Zr("0x18")),this[Zr("0x2e")](Zr("0x4"))}get[Zr("0x35")](){let t=this;for(;t[Zr("0x2")];)t=t.previous;return t}get[Zr("0x3")](){return!!this[Zr("0x1a")]&&this[Zr("0x1a")].length>0}get[Zr("0x1f")](){return 0!=this[Zr("0x38")][Zr("0x27")]&&6==Array[Zr("0x2d")](this[Zr("0x38")])[0][Zr("0x29")](":").length}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(t){this[Zr("0x38")][Zr("0x1c")](t)}[Zr("0x6")](){return Array[Zr("0x2d")](this[Zr("0x38")])}getMarkers(){return this[Zr("0x6")]()[Zr("0x22")]((t=>this._model[Zr("0x32")][Zr("0x17")](t)))[Zr("0x7")]((t=>t))}[Zr("0x14")](){return this[Zr("0x21")]()[0]||null}[Zr("0x1")](){this[Zr("0x2b")].change((t=>{for(const e of this[Zr("0x21")]())t.removeMarker(e)})),this[Zr("0x38")].clear()}[Zr("0x2c")](t){this[Zr("0x2b")][Zr("0x12")]((e=>{e[Zr("0x2c")](t)})),this._markerNames.delete(t)}[Zr("0x23")](t){const e="suggestion:"+this[Zr("0x19")]+":"+this[Zr("0x10")]+":"+this.id+":"+this[Zr("0xb")].id+":"+Qr[Zr("0x24")]();this.addMarkerName(e),this[Zr("0x2b")][Zr("0x12")]((n=>{n[Zr("0x8")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x0")](t){for(const e of this[Zr("0x31")]())if(e[Zr("0x1b")](t))return!0;return!1}[Zr("0x31")](){return this[Zr("0x21")]()[Zr("0x22")]((t=>t[Zr("0x36")]()))}getItems(){return this.getRanges().reduce(((t,e)=>[...t,...e[Zr("0x11")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x36")]())||null}getContainedElement(){const t=this[Zr("0x31")]();if(1!=t[Zr("0x37")])return null;const e=t[0],n=e[Zr("0xd")].nodeAfter,r=e.end[Zr("0x20")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x18")](){this[Zr("0x5")](this[Zr("0x31")](),this.data,this.attributes),this[Zr("0x1")]()}[Zr("0x4")](){this[Zr("0x16")](this[Zr("0x31")](),this[Zr("0x26")],this[Zr("0x1d")]),this.removeMarkers()}[Zr("0x1e")](){const t=[];let e=this.head;for(;e;)t[Zr("0xc")](e),e=e[Zr("0x3a")];return t}[Zr("0x15")](t,e){const n=er(this[Zr("0x1d")]);Er(n,t,e),jr(n,this[Zr("0x1d")])||(this[Zr("0x1d")]=n,this[Zr("0x2f")](n))}[Zr("0x13")](t){const e=er(this[Zr("0x1d")]);Kr(e,t),jr(e,this[Zr("0x1d")])||(this.attributes=e,this._onAttributesChange(this[Zr("0x1d")]))}[Zr("0x3b")](){return{id:this.id,type:this[Zr("0x10")]?this[Zr("0x19")]+":"+this[Zr("0x10")]:this[Zr("0x19")],authorId:this[Zr("0xb")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Zr("0x26")],attributes:this[Zr("0x1d")]}}static[Zr("0x24")](){return(0,e.uid)()[Zr("0x2a")](1,5)}}function Yr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Jr=["format","end","elementEnd","registerDescriptionCallback","deletion","key","has","_attributeLabels","_itemLabels","$text","EmptyContainer","attribute","name","start","_handleInsertRemoveSuggestionDescription","type","removeEmptyContainer","add","addEmptyContainer","removeContainer","isObject","removeObject","subType","_locale","softBreak","addContainer","_handleAttributeSuggestionDescription","addFormat","getItemLabel","set","data","_itemLabelsCallbacks","quantity","length","getDescriptions","Object","*Split:* %0","*Remove format:* %0","indexOf","get","_schema","isEmpty","_handleRenameSuggestionDescription","label","*Change to:* %0","insertion","elementStart","join","_addDescriptionItems","element","text","remove","*Remove:* %0","$1 $2","getWalker","getFirstRange","nextSibling","_customCallbacks","_handleCustomCallbackDescription","registerAttributeLabel","pop","*Set format:* %0","$textProxy","isInContent","push","ELEMENT_SPACE","nodeAfter","item","map","*Insert:* %0","previousSibling","Container","match"];var ti,ei;ti=Jr,ei=183,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Jr[t-=0]};class ri{constructor(t,e){this[ni("0x14")]=[],this[ni("0x2c")]=new Map,this[ni("0x43")]=[],this[ni("0x2b")]=new Map,this[ni("0x3")]=t,this[ni("0x3b")]=e}[ni("0x46")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x45")];i++){const o=t[i];if(!o[ni("0x1a")])continue;const s=this[ni("0x15")](o);if(s){if(null!=o.subType){if(n[ni("0x2a")](o[ni("0x3a")]))continue;n[ni("0x35")](o[ni("0x3a")])}e[ni("0x1b")](s)}else if(ni("0x2f")!=o[ni("0x33")])"insertion"!=o[ni("0x33")]&&ni("0x28")!=o.type||this[ni("0x32")](e,o,t[i+1]);else{const t=o[ni("0x42")].key;if(r.has(t))continue;r.add(o[ni("0x42")][ni("0x29")]),t==Cc?this[ni("0x5")](e,o):this[ni("0x3e")](e,o)}}return this._resolveDescriptionItems(e)}[ni("0x27")](t){this[ni("0x14")].push(t)}registerElementLabel(t,n,r=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[ni("0x43")],{matchingCallback:t,label:n,priority:r}):this[ni("0x2c")].set(t,n)}[ni("0x16")](t,e){this[ni("0x2b")][ni("0x41")](t,e)}[ni("0x40")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[ni("0x6")];break}return n||(n=this._itemLabels[ni("0x2")](t[ni("0x30")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[ni("0x30")]}_addDescriptionItems(t,e){const n=e[ni("0x12")]()[ni("0x11")](),r=ni("0x8")==e.type?ni("0x35"):ni("0xe");for(const e of n){const i=e[ni("0x1e")],o=t[t.length-1];if(i.is(ni("0x19")))o&&o[ni("0x33")].indexOf(ni("0x22"))>-1&&t[ni("0x17")](),o&&ni("0xd")==o[ni("0x33")]?o[r]+=i[ni("0x42")]:t[ni("0x1b")]({type:ni("0xd"),add:"add"==r?i[ni("0x42")]:"",remove:ni("0xe")==r?i[ni("0x42")]:""});else if(this[ni("0x3")][ni("0x38")](i)){const s=i;if(o&&o[ni("0x33")][ni("0x1")]("Container")>-1&&t[ni("0x17")](),ni("0x26")==e[ni("0x33")])continue;o&&o[ni("0x33")]==r+ni("0x47")&&o[ni("0xc")][ni("0x30")]==s[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x47"),element:s,quantity:1}),n.skip((t=>!(ni("0x26")==t[ni("0x33")]&&t[ni("0x1e")]==i)))}else if(this._schema.checkChild(i,ni("0x2d"))||i.is(ni("0xc"),ni("0x3c"))){const n=i;if(ni("0x35")==r&&ni("0x9")==e[ni("0x33")]||ni("0xe")==r&&ni("0x26")==e[ni("0x33")])continue;if(o&&-1==o[ni("0x33")].indexOf(ni("0x22"))){ni("0xd")==o.type&&(o[r]+="\n");continue}let s;if(s=ni("0x35")==r?n[ni("0x13")]&&!this[ni("0x3")][ni("0x38")](n[ni("0x13")])?n[ni("0x13")]:null:n[ni("0x21")]&&!this[ni("0x3")][ni("0x38")](n.previousSibling)?n[ni("0x21")]:null,n[ni("0x4")]||s&&s[ni("0x4")]){const e=s&&s[ni("0x4")]?s:n;o&&o[ni("0x33")]==r+ni("0x2e")&&o[ni("0xc")][ni("0x30")]==e[ni("0x30")]?o[ni("0x44")]++:t[ni("0x1b")]({type:r+ni("0x2e"),element:e,quantity:1})}else t[ni("0x1b")]({type:r+ni("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[ni("0x3b")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x33")]){case ni("0xd"):if(o[ni("0x35")]=o[ni("0x35")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),o.remove=o[ni("0xe")].replace(/(\S)\u000A+(\S)/g,ni("0x10")).replace(/\u000A/g,""),""!=o[ni("0x35")]&&""!=o[ni("0xe")]){n.push({type:"replace",content:Yr(e,"REPLACE_TEXT",['"'+o[ni("0xe")]+'"','"'+o[ni("0x35")]+'"'])});continue}if(null!=o[ni("0x35")].match(/^ +$/)){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),Yr(e,ni("0x1c"),o[ni("0x35")].length))});continue}if(null!=o[ni("0xe")][ni("0x23")](/^ +$/)){n[ni("0x1b")]({type:"deletion",content:Yr(e,ni("0xf"),Yr(e,ni("0x1c"),o[ni("0xe")][ni("0x45")]))});continue}if(""!=o[ni("0x35")]){n[ni("0x1b")]({type:ni("0x8"),content:Yr(e,ni("0x20"),'"'+o[ni("0x35")]+'"')});continue}n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,ni("0xf"),'"'+o[ni("0xe")]+'"')});continue;case ni("0x36"):case"addObject":n.push({type:ni("0x8"),content:Yr(e,ni("0x20"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x34"):case ni("0x39"):n.push({type:"deletion",content:Yr(e,ni("0xf"),this.getItemLabel(o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x3d"):n.push({type:ni("0x8"),content:Yr(e,ni("0x48"),this[ni("0x40")](o[ni("0xc")],o[ni("0x44")]))});continue;case ni("0x37"):n[ni("0x1b")]({type:ni("0x28"),content:Yr(e,"*Merge:* %0",this[ni("0x40")](o[ni("0xc")],o.quantity))});continue;case ni("0x3f"):r[ni("0x1b")](o[ni("0x29")]);continue;case"removeFormat":i.push(o[ni("0x29")]);continue;default:n[ni("0x1b")](o)}if(r[ni("0x45")]){const t=r[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")][ni("0x2")](t):t))[ni("0xa")](", ");n.push({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x18"),t)})}if(i[ni("0x45")]){const t=i[ni("0x1f")]((t=>this[ni("0x2b")][ni("0x2a")](t)?this[ni("0x2b")].get(t):t)).join(", ");n[ni("0x1b")]({type:ni("0x24"),content:Yr(this[ni("0x3b")],ni("0x0"),t)})}return n}[ni("0x15")](t){for(const e of this[ni("0x14")]){const n=e(t);if(n&&ni("0x33")in n)return n}}[ni("0x3e")](t,e){const n=e[ni("0x42")],r=void 0===n.newValue?"removeFormat":ni("0x3f");t[ni("0x1b")]({type:r,key:n[ni("0x29")]})}[ni("0x5")](t,e){t[ni("0x1b")]({type:"format",content:Yr(this[ni("0x3b")],ni("0x7"),this[ni("0x40")](e.getFirstRange()[ni("0x31")][ni("0x1d")],1))})}[ni("0x32")](t,e,n){if(this[ni("0xb")](t,e),n&&n.getFirstRange()&&!e[ni("0x12")]()[ni("0x25")].isEqual(n[ni("0x12")]()[ni("0x31")])){const n=t[t[ni("0x45")]-1],r=ni("0x8")==e[ni("0x33")]?ni("0x35"):ni("0xe");n&&ni("0xd")==n.type&&(n[r]+="\n")}}}const ii=["plugins","commands","afterInit","showAIAssistant","enableCommand","TrackChangesEditing","get"];var oi,si;oi=ii,si=486,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{[xi("0x6")](){const t=this.editor,e=t[xi("0x4")].get(xi("0x2"));t[xi("0x5")][xi("0x3")]("showAIAssistant")&&e[xi("0x1")](xi("0x0"))}}const ci=["format","editor","_enableDefaultAttributesIntegration","type","TrackChangesEditing","justify","registerDescriptionCallback","plugins","value","*Format:* %0","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGNMENT","center","FORMAT_JUSTIFY_TEXT","locale","AlignmentEditing","alignment","_descriptionFactory","commandParams","get","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","afterInit"];var li,ui;li=ci,ui=140,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x3")](){const t=this[di("0x5")],e=t[di("0x12")];if(!t[di("0xb")].has(di("0x13")))return;const n=t.plugins[di("0x17")](di("0x8"));n[di("0x6")](di("0x14"),[],[di("0x14")]),n._descriptionFactory.registerAttributeLabel(di("0x14"),Yr(e,di("0xf"))),this[di("0x2")]()}[di("0x2")](){const t=this[di("0x5")],e=t[di("0x12")];t[di("0xb")][di("0x17")](di("0x8"))[di("0x15")][di("0xa")]((t=>{if("formatBlock"!=t[di("0x7")])return;const{data:n}=t;if(n&&di("0x14")==n.commandName){const t=n[di("0x16")][0][di("0xc")];return{type:di("0x4"),content:Yr(e,di("0xd"),function(t){switch(t){case"left":return Yr(e,di("0x1"));case"right":return Yr(e,di("0x0"));case di("0x10"):return Yr(e,di("0xe"));case di("0x9"):return Yr(e,di("0x11"))}}(t))}}}))}}const fi=["_enableDefaultAttributesIntegration","toUpperCase","*Remove format:* %0","_registerLegacyDescription","strikethrough","StrikethroughEditing","FORMAT_SUBSCRIPT","italic","slice","SubscriptEditing","bold","format","afterInit","FORMAT_UNDERLINE","registerAttributeLabel","FORMAT_SUPERSCRIPT","formatInline","code","underline","*Format:* %0","get","FORMAT_CODE","plugins","type","FORMAT_","_descriptionFactory","subscript","commandParams","FORMAT_BOLD","SuperscriptEditing","TrackChangesEditing","locale","registerDescriptionCallback","CodeEditing","editor","UnderlineEditing"];var hi,mi;hi=fi,mi=152,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=["BoldEditing","ItalicEditing",pi("0x1b"),pi("0x19"),pi("0x21"),pi("0x1"),pi("0x15")];class Ei extends t.Plugin{[pi("0x4")](){const t=this[pi("0x1a")],e=t[pi("0xe")][pi("0xc")](pi("0x16")),n=t[pi("0x17")];for(const r of bi){if(!t[pi("0xe")].has(r))continue;const i=r[pi("0x0")](0,-7).toLowerCase(),o=pi("0x10")+i[pi("0x1d")]();e[pi("0x1c")](i,[i]),e._descriptionFactory[pi("0x6")](i,Yr(n,o))}this[pi("0x1f")]()}[pi("0x1f")](){const t=this[pi("0x1a")],e=t[pi("0x17")],n=t[pi("0xe")][pi("0xc")](pi("0x16"));function r(t,r){n[pi("0x11")][pi("0x18")]((n=>{if(pi("0x8")!=n[pi("0xf")])return;const{data:i}=n;return i&&i.commandName===t?i[pi("0x13")][0].forceValue?{type:pi("0x3"),content:Yr(e,pi("0xb"),r)}:{type:pi("0x3"),content:Yr(e,pi("0x1e"),r)}:void 0}))}r(pi("0x2"),Yr(e,pi("0x14"))),r(pi("0x23"),Yr(e,"FORMAT_ITALIC")),r(pi("0xa"),Yr(e,pi("0x5"))),r(pi("0x9"),Yr(e,pi("0xd"))),r(pi("0x20"),Yr(e,"FORMAT_STRIKETHROUGH")),r(pi("0x12"),Yr(e,pi("0x22"))),r("superscript",Yr(e,pi("0x7")))}}const _i=["registerDescriptionCallback","schema","enableCommand","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","*Remove format:* %0","from","checkChild","editor","filter","locale","format","has","commandName","parent","blockQuote","value","_descriptionFactory","BlockQuoteEditing","afterInit","*Set format:* %0","get","forceValue","change","document","plugins","model","commands"];var Ti,yi;Ti=_i,yi=198,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x11")](){const t=this[Ci("0x6")],e=t[Ci("0x8")];if(!t[Ci("0x17")][Ci("0xa")](Ci("0x10")))return;const n=t[Ci("0x17")][Ci("0x13")]("TrackChangesEditing"),r=this.editor[Ci("0x19")][Ci("0x13")]("blockQuote");n[Ci("0x0")](Ci("0xd"),((e,i={})=>{const o=this[Ci("0x6")].model[Ci("0x16")].selection,s=i&&void 0!==i[Ci("0x14")]?i[Ci("0x14")]:!r[Ci("0xe")];let x=[];if(s){const e=Array[Ci("0x4")](o[Ci("0x2")]()).filter((t=>ki(t)||function(t,e){const n=e.checkChild(t[Ci("0xc")],Ci("0xd")),r=e[Ci("0x5")](["$root","blockQuote"],t);return n&&r}(t,this[Ci("0x6")][Ci("0x18")][Ci("0x1b")])));x=R(e,t[Ci("0x18")])}else{const e=Array[Ci("0x4")](o[Ci("0x2")]())[Ci("0x7")]((t=>ki(t)));x=R(e,t[Ci("0x18")])}t[Ci("0x18")][Ci("0x15")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0xd"),commandParams:[{forceValue:s}]})}))})),n[Ci("0xf")][Ci("0x1a")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ci("0xb")]){const t=Yr(e,Ci("0x1"));return n.commandParams[0][Ci("0x14")]?{type:Ci("0x9"),content:Yr(e,Ci("0x12"),t)}:{type:Ci("0x9"),content:Yr(e,Ci("0x3"),t)}}}))}}function ki(t){return Ci("0xd")==t.parent.name}const Ii=["get","TrackChangesEditing","changeCaseTitle","afterInit","changeCaseLower","plugins","CaseChange","has","enableCommand","editor"];var Si,Ri;Si=Ii,Ri=348,function(t){for(;--t;)Si.push(Si.shift())}(++Ri);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x5")](){const t=this[vi("0x1")];t.plugins[vi("0x9")](vi("0x8"))&&(t[vi("0x7")].get(vi("0x3")).enableCommand("changeCaseUpper"),t[vi("0x7")].get(vi("0x3"))[vi("0x0")](vi("0x6")),t[vi("0x7")][vi("0x2")](vi("0x3"))[vi("0x0")](vi("0x4")))}}const Li=["ckbox","TrackChangesEditing","afterInit","enableCommand","plugins","commands"];var Mi,wi;Mi=Li,wi=295,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x1")](){const t=this.editor;t[Oi("0x4")].get(Oi("0x5"))&&t[Oi("0x3")].get(Oi("0x0"))[Oi("0x2")](Oi("0x5"))}}const Di=["registerElementLabel","selection","has","registerDescriptionCallback","value","language","editor","find","change","afterInit","*Remove format:* %0","commandParams","schema","markBlockFormat","from","parent","outdentCodeBlock","locale","commandName","forceValue","document","filter","formatBlock","TrackChangesEditing","getSelectedBlocks","model","languages","codeBlock","get","_descriptionFactory","checkChild","rootElement","toLowerCase","format","isLimit","blockName","plugins","ELEMENT_CODE_BLOCK","enableCommand","type"];var Pi,Bi;Pi=Di,Bi=123,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x6")](){const t=this[Ui("0x3")];if(!t[Ui("0x21")][Ui("0x27")]("CodeBlock"))return;const e=t[Ui("0x21")].get(Ui("0x14")),n=t[Ui("0xe")],r=t.config[Ui("0x19")]("codeBlock")[Ui("0x17")],i=t.commands[Ui("0x19")]("codeBlock");e[Ui("0x23")]("indentCodeBlock"),e[Ui("0x23")](Ui("0xd")),e[Ui("0x23")](Ui("0x18"),((n,o={})=>{const s=t[Ui("0x16")],x=t[Ui("0x16")][Ui("0x11")][Ui("0x26")],a=o&&void 0!==o[Ui("0x10")]?o.forceValue:!i[Ui("0x1")];let c;o[Ui("0x2")]||(o.language=r[0][Ui("0x2")]),c=a?Array.from(x[Ui("0x15")]())[Ui("0x12")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x9")],!e.is(Ui("0x1c"))&&!n[Ui("0x1f")](e)&&n[Ui("0x1b")](e[Ui("0xc")],Ui("0x18")));var e,n})):Array[Ui("0xb")](x[Ui("0x15")]())[Ui("0x12")]((t=>Gi(t)));const l=R(c,s);s[Ui("0x5")]((()=>{for(const t of l)e[Ui("0xa")](t,{commandName:Ui("0x18"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x20")})}))})),e[Ui("0x1a")][Ui("0x25")](Ui("0x18"),(t=>Yr(n,Ui("0x22"),t))),e._descriptionFactory[Ui("0x0")]((t=>{if(Ui("0x13")!=t[Ui("0x24")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x18")!=i[Ui("0xf")])return;const o=i[Ui("0x8")][0][Ui("0x2")],s=e(r[Ui("0x4")]((t=>t[Ui("0x2")]===o)).label)[Ui("0x1d")]();return i[Ui("0x8")][0].forceValue?{type:Ui("0x1e"),content:Yr(n,"*Set format:* %0",Yr(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ui("0x1e"),content:Yr(n,Ui("0x7"),Yr(n,Ui("0x22"),1))}}))}}function Gi(t){return Ui("0x18")==t.name}const Vi=["CommentsEditing","has","enableCommand","afterInit","addCommentThread","plugins"];var Hi,zi;Hi=Vi,zi=117,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x0")](){const t=this.editor;t[Wi("0x2")][Wi("0x4")](Wi("0x3"))&&t[Wi("0x2")].get("TrackChangesEditing")[Wi("0x5")](Wi("0x1"))}}var qi=n(500);const Xi=["get","getCustomProperty","type","name","listIndent","isLimit","parent","isContent","test","item","includes","addHighlight","markerRange","mapper","span","markerName","previousPosition","toViewElement","isBlock","activeMarkers","toViewPosition","push","isAtEnd","getItems","nextSibling","consumable","element","addClass","start","hasAttribute","ck-suggestion-marker-","TrackChangesEditing","writer","schema","getAttribute","elementEnd","listItem"];var $i,Zi;$i=Xi,Zi=291,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Qi=function(t,e){return Xi[t-=0]};function Yi(t,e,n){const r=[];for(const i of e[Qi("0x1c")]())i[Qi("0x22")](t)&&r[Qi("0x1a")](n.createRangeOn(i));return r}function Ji(t,e,{showActiveMarker:n=!0}={}){const r=t.plugins[Qi("0x5")](Qi("0x24"));return(i,o,s)=>{if(!s[Qi("0x1e")][Qi("0xd")](o[Qi("0x11")],i[Qi("0x8")]))return;const x=o[Qi("0x11")].getWalker(),a=o.markerRange[Qi("0x21")],c=t.model[Qi("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Qi("0xe")];d=d||c[Qi("0xc")](e);const n=s[Qi("0x12")][Qi("0x16")](e);if(n&&n[Qi("0x6")](Qi("0x10")))return;Qi("0x3")==t[Qi("0x7")]&&c[Qi("0x17")](e)&&!c[Qi("0xa")](e)&&(e[Qi("0x1d")]||a[Qi("0x1b")]?l&&l[Qi("0xb")]==e||(l=e,f(t[Qi("0x15")]),g=!0):u=u||t[Qi("0x15")])}function f(t){const i=s[Qi("0x0")].createUIElement(Qi("0x13"),{class:Qi("0x23")+e}),x=s[Qi("0x12")][Qi("0x19")](t);n&&r[Qi("0x18")][Qi("0xf")](o[Qi("0x14")])&&s[Qi("0x0")][Qi("0x20")]("ck-suggestion-marker--active",i),s.writer.insert(x,i),s.mapper.bindElementToMarker(i,o.markerName)}d||g||!u||f(u)}}const to=["createRange","enableCommand","bind","requires","lock","get","remove","buffer","commands","deleteForward","createSelection","unbindElementFromMarkerName","document","data","start","batch","addMarker:suggestion:deletion","options","merge","forward","downcastDispatcher","high","unit","writer","mapper","showSuggestionHighlights","modifySelection","enqueueChange","editor","model","selection","fromRange","rootName","removeMarker:suggestion:deletion","isCollapsed","editing","markerName","init","$graveyard","end","markerNameToElements","plugins","TrackChangesEditing"];var eo,no;eo=to,no=166,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x9")](){return[qi.Delete]}[ro("0x0")](){const t=this[ro("0x22")],e=t[ro("0x4")][ro("0xb")](ro("0x5"));e[ro("0x7")]("delete");const n=t[ro("0xe")][ro("0xb")](ro("0xf"));e[ro("0x7")](ro("0xf"),((e,r={})=>{const i=t[ro("0x23")][ro("0x10")](t.model[ro("0x12")][ro("0x24")]);i[ro("0x28")]&&t.model[ro("0x20")](i,{direction:ro("0x19"),unit:r[ro("0x1c")]});const o=i.getFirstRange(),x=s.LiveRange[ro("0x25")](o);let a;e(r),a=ro("0x1")==x.root[ro("0x26")]?t.model[ro("0x6")](o[ro("0x14")]):t[ro("0x23")][ro("0x6")](x[ro("0x14")],x[ro("0x2")]),x.detach(),t.model[ro("0x21")](n.buffer[ro("0x15")],(t=>{n[ro("0xd")][ro("0xa")](),t.setSelection(t[ro("0x6")](a[ro("0x2")])),n[ro("0xd")].unlock()}))})),t[ro("0x29")][ro("0x1a")].on(ro("0x16"),Ji(t,ro("0x18")),{priority:ro("0x1b")}),t[ro("0x13")].downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,r)=>{r[ro("0x17")][ro("0x1f")]&&Ji(t,ro("0x18"),{showActiveMarker:!1})[ro("0x8")](this)(e,n,r)}),{priority:ro("0x1b")}),t[ro("0x29")][ro("0x1a")].on(ro("0x27"),((t,e,n)=>{const r=n.mapper[ro("0x3")](e[ro("0x2a")]);if(r)for(const t of r)t.is("uiElement")&&(n[ro("0x1e")][ro("0x11")](t,e[ro("0x2a")]),n[ro("0x1d")][ro("0xc")](t))}),{priority:ro("0x1b")})}}const oo=["value","TrackChangesEditing","commandParams","plugins","suggestion","_descriptionFactory","ELEMENT_TODO_LIST","forceValue","toUpperCase","filter","has","config","multipleBlocks","oldValue","TodoListEditing","splitListItemAfter","commands","getSuggestions","list.multiBlock","getRanges","listType","start","ELEMENT_LIST_ITEM","key","schema","todo","*Outdent:* %0","registerPostFixer","isUndo","listStyle","FORMAT_INDENT","getFirstRange","assureChains","indentList","length","*Split:* list item","_getAttributeKey","listIndent","setSelection","todoList","type","isLocal","previousSibling","listReversed","locale","getChanges","find","range","model","listStart","listItemId","_findSuggestions","format","mergeListItemBackward","*Set format:* %0","detach","ELEMENT_","outdentList","*Indent:* %0","newValue","todoListCheck","documentList","nodeAfter","_registerLegacyDescription","registerAttributeLabel","attribute","*Format:* insert into %0","ELEMENT_BULLETED_LIST","registerElementLabel","*Merge:* list item","batch","setAttribute","*Format:* remove from %0","getFirstMarker","registerDescriptionCallback","trackChangesCommand","todoListChecked","execute","differ","attributes","*Merge:* %0","push","next","get","map","document","editor","head","removeMarker","commandName","containsItem","parent","noTrackChangesFixer","*Check item*","_suggestionFactory","*Remove format:* %0","nextSibling","registerCustomCallback","ELEMENT_NUMBERED_LIST","_supportLegacySuggestions","getAttribute","bulletedList","formatBlock","bulleted","mergeListItemForward","end","_enableDefaultAttributesIntegration","every","afterInit","from","numbered","numberedList","deletion","isNextTo","data","groupId","includes","_LIST","isObject"];var so,xo;so=oo,xo=431,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x22")](){const t=this[ao("0xc")];if(!t[ao("0x30")][ao("0x37")]("ListEditing"))return;const e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e")),r=t[ao("0x30")][ao("0x37")](ao("0x3b")),i=!!t.config[ao("0x9")](ao("0x3f"));function o(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x63"),t)}}function s(t){return{type:ao("0x61"),content:""+Yr(e,ao("0x15"),t)}}n[ao("0x20")]("numberedList",[],[ao("0x5f"),ao("0x41"),ao("0x52")]),n[ao("0x20")]("bulletedList"),n[ao("0x20")](ao("0x4e")),n[ao("0x20")](ao("0x66")),n._enableDefaultAttributesIntegration(ao("0x3c")),n[ao("0x20")]("splitListItemBefore"),i&&(n[ao("0x20")](ao("0x62")),n._enableDefaultAttributesIntegration(ao("0x1e"))),r&&(n[ao("0x20")](ao("0x54")),n._enableDefaultAttributesIntegration("checkTodoList",[],["todoListChecked"]),n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(n&&ao("0x2")==n[ao("0x44")])return{type:"format",content:n.newValue?Yr(e,ao("0x13")):Yr(e,"*Uncheck item*")}})),this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x48")]((t=>{if(t[ao("0x73")][ao("0x49")])return!1;let e=!1;const r=n[ao("0x3e")]({skipNotAttached:!0}).filter((t=>"todoListChecked"===n[ao("0x51")](t)));for(const i of r)"todo"!=i[ao("0x4c")]()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))&&(n[ao("0x60")](i[ao("0x4c")](),ao("0x6e"))[ao("0x5b")]((t=>ao("0x41")===n[ao("0x51")](t[ao("0x31")])))||(t[ao("0xe")](i.getFirstMarker()),e=!0));return e}))),n[ao("0x32")][ao("0x6d")](ao("0x52"),Yr(e,ao("0x4b")));const x={type:"format",content:""};n[ao("0x32")][ao("0x0")]((t=>{const{data:n}=t;if(!n||"listType"!=n[ao("0x44")])return;let r=t[ao("0xd")];for(;r;){if(r[ao("0x28")]&&(ao("0x4a")==r[ao("0x28")][ao("0x44")]&&(r[ao("0x28")].newValue&&"default"!=r[ao("0x28")][ao("0x68")]||"default"!=r[ao("0x28")].oldValue&&!n[ao("0x68")])||!i&&r[ao("0x28")][ao("0x44")]==Cc))return x;r=r[ao("0x8")]}if(null==n[ao("0x68")])switch(n.oldValue){case ao("0x1d"):return s(Yr(e,ao("0x70")));case"numbered":return s(Yr(e,ao("0x18")));case"todo":return s(Yr(e,ao("0x33")))}switch(n[ao("0x68")]){case ao("0x1d"):return o(Yr(e,ao("0x70")));case ao("0x24"):return o(Yr(e,ao("0x18")));case ao("0x46"):return o(Yr(e,ao("0x33")))}})),n._descriptionFactory[ao("0x0")]((t=>{const{data:e}=t;if(e&&ao("0x52")==e.key)return null==e[ao("0x68")]||null==e.oldValue&&0==e[ao("0x68")]?x:void 0})),n[ao("0x32")][ao("0x0")]((t=>{if(ao("0x6e")!=t[ao("0x55")])return;const{data:n}=t;if(!n||ao("0x5f")!=n.key)return;const r=lo(t);return r?ao("0x68")==r?{type:ao("0x61"),content:Yr(e,ao("0x72"))}:"oldValue"==r?{type:ao("0x61"),content:Yr(e,ao("0x50"))}:x:x})),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this.listItemIdFixer(t))),t.model[ao("0xb")].registerPostFixer((t=>this.noTrackChangesFixer(t))),t[ao("0x5d")][ao("0xb")][ao("0x48")]((t=>this[ao("0x4d")](t))),this[ao("0x19")]()}listItemIdFixer(t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")].isLocal)return!1;let e=!1;const n=this[ao("0xc")][ao("0x30")].get(ao("0x2e"))[ao("0x3e")]({skipNotAttached:!0}).filter((t=>t.data&&ao("0x5f")==t[ao("0x28")][ao("0x44")]))[ao("0x36")]((t=>t[ao("0x28")][ao("0x68")]&&t[ao("0x28")][ao("0x3a")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x76")]()),e=!0);return e}[ao("0x12")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));if(e[ao("0x1")][ao("0x2d")])return!1;let n=!1;const r=[ao("0x41"),"listStyle","listItemId",ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")],i=this[ao("0xc")][ao("0x5d")][ao("0xb")][ao("0x4")][ao("0x5a")]().filter((t=>"attribute"==t[ao("0x55")]))[ao("0x36")]((t=>r.includes(t.attributeKey)));if(0==i[ao("0x4f")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x5c")],"attribute")[ao("0x36")]((t=>!t.meta[ao("0x27")]))[ao("0xa")]((t=>t.suggestion))[ao("0x36")]((t=>{const n=e._getAttributeKey(t);return r.includes(n)}));if(i[ao("0x4f")]){for(const e of i)t[ao("0xe")](e.getFirstMarker());n=!0}}return n}[ao("0x4d")](t){if(t[ao("0x73")][ao("0x49")]||!t[ao("0x73")][ao("0x56")])return!1;const e=this[ao("0xc")].plugins[ao("0x9")](ao("0x2e"));let n=!1;const r=[ao("0x41"),"listStyle",ao("0x5f"),ao("0x52"),ao("0x5e"),ao("0x58"),ao("0x69")];for(const t of e[ao("0x3e")]({skipNotAttached:!0})){const i=e._findSuggestions(t[ao("0x4c")](),ao("0x6e"))[ao("0xa")]((t=>t[ao("0x31")])).filter((t=>t.data&&r[ao("0x2a")](t.data[ao("0x44")])));if(!i.length)continue;const s=i[0].head[ao("0x5")][ao("0x29")];if(!i[ao("0x21")]((t=>t[ao("0x5")][ao("0x29")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0})[ao("0x36")]((e=>ao("0x6e")==e[ao("0x55")]&&e[ao("0x5")][ao("0x29")]==t)))r[ao("0x74")]("groupId",n)}function o(t,e){let n=t[ao("0xd")],r=!1;for(;n;)n[ao("0x5")][ao("0x29")]!=e&&(i(n[ao("0x5")][ao("0x29")],e),n[ao("0x74")](ao("0x29"),e),r=!0),n=n.next;return r}}_supportLegacySuggestions(){const t=this[ao("0xc")],e=t[ao("0x59")],n=t[ao("0x30")][ao("0x9")](ao("0x2e"));this[ao("0x6c")](),n[ao("0x14")][ao("0x17")](ao("0x1c"),ao("0x6a"),"accept",(function(e,n){const r=[];for(let n of e)n.start[ao("0x6b")]===n[ao("0x1f")][ao("0x11")]&&(n=t[ao("0x5d")].createRange(t[ao("0x5d")].createPositionAt(n.start[ao("0x6b")],0))),r[ao("0x7")](n);t.model.change((e=>{const i=t[ao("0x5d")][ao("0xb")].selection,o=Array[ao("0x23")](i[ao("0x40")]())[ao("0xa")]((t=>s.LiveRange.fromRange(t)));e.setSelection(r),t.commands[ao("0x9")](n[ao("0xf")]).refresh(),n[ao("0x2f")].push({forceDefaultExecution:!0}),t[ao("0x3")](n[ao("0xf")],...n.commandParams),e[ao("0x53")](o);for(const t of o)t[ao("0x64")]()}))})),n[ao("0x32")][ao("0x71")]((function(e){const n=!t.model[ao("0x45")][ao("0x2c")](e),r=e[ao("0x57")],i=e[ao("0x16")],o=e[ao("0x1a")]("listItemId"),s=!r||r.getAttribute(ao("0x5f"))!==o,x=!i||i.getAttribute(ao("0x5f"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Yr(e,ao("0x43"),t)))}_registerLegacyDescription(){const t=this[ao("0xc")],e=t[ao("0x59")];function n(e){const n=t[ao("0x3d")][ao("0x9")](ao("0x1b")).value,r=t[ao("0x3d")][ao("0x9")]("numberedList")[ao("0x2d")];return ao("0x25")===e?n:r}t[ao("0x30")].get(ao("0x2e"))[ao("0x32")][ao("0x0")]((function(r){if(ao("0x1c")!=r[ao("0x55")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0xf")]){case ao("0x1b"):x=i[ao("0x2f")][0][ao("0x34")],a=n(i.commandName),o=ao(x?"0x6f":"0x75"),!a&&t[ao("0x38")][ao("0x9")](ao("0x3f"))||(o="*Change to:* %0"),s={type:"format",content:Yr(e,o,Yr(e,ao("0x70")))};break;case ao("0x25"):x=i[ao("0x2f")][0].forceValue,a=n(i[ao("0xf")]),o=ao(x?"0x6f":"0x75"),!a&&t.config[ao("0x9")]("list.multiBlock")||(o="*Change to:* %0"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x18")))};break;case ao("0x4e"):o=ao("0x67"),s={type:ao("0x61"),content:Yr(e,o,Yr(e,ao("0x43")))};break;case ao("0x66"):o=function(t){const e=t[ao("0x4c")]();let n=e[ao("0x42")][ao("0x6b")];for(;n&&e[ao("0x10")](n);){if(n[ao("0x1a")](ao("0x52"))>0)return!1;n=n[ao("0x16")]}return!0}(r)?Yr(e,ao("0x75"),Yr(e,(c=r,ao("0x65")+c.getFirstRange()[ao("0x42")][ao("0x6b")].getAttribute(ao("0x41"))[ao("0x35")]()+ao("0x2b")))):Yr(e,ao("0x47"),Yr(e,ao("0x43"))),s={type:ao("0x61"),content:o};break;case ao("0x62"):case"mergeListItemForward":!1===i[ao("0x39")]&&(o=ao("0x6"),s={type:ao("0x26"),content:Yr(e,o,Yr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x4c")]()[ao("0x42")].nodeAfter[ao("0x57")];for(;e;){const n=e[ao("0x1a")](ao("0x5f"));if(!n)return!1;if(n==t[ao("0x28")][ao("0x68")])return"newValue";if(n==t[ao("0x28")][ao("0x3a")])return ao("0x3a");e=e[ao("0x57")]}return!1}const uo=["startIndex","attribute","newValue","head","_registerLegacyDescription","_LIST_DEFAULT","_descriptionFactory","commandParams","*Format:* set order to reversed","registerAttributeLabel","plugins","ELEMENT_","TrackChangesEditing","includes","oldValue","afterInit","*Set format:* %0","bulleted","start","handleDescriptions","filter","listType","locale","registerDescriptionCallback","data","list.properties","format","_getTranslationKeyForListStyle","FORMAT_LIST_REVERSED","default","has","*Format:* set order to regular","key","numbered","toUpperCase","nodeAfter","removeMarker","upper-latin","*Change to:* %0","_LIST_","find","suggestion","config","*Remove format:* %0","next","document","FORMAT_LIST_START","get","_getAttributeKey","*Format:* set start index to %0","decimal-leading-zero","getFirstRange","editor","listStyle","isUndo","_enableDefaultAttributesIntegration","listStart","reversed","model","bind","listReversed","_findSuggestions","type"];var go,fo;go=uo,fo=458,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x3d")](){if(!this.editor[ho("0x38")][ho("0xd")]("ListPropertiesEditing"))return;const t=this[ho("0x23")][ho("0x19")].get(ho("0x8")),e=this[ho("0x23")][ho("0x38")][ho("0x1e")](ho("0x3a"));t.styles&&e[ho("0x26")](ho("0x24"),[],[ho("0x24")]),t[ho("0x28")]&&e[ho("0x26")](ho("0x2b"),[],[ho("0x2b")]),t[ho("0x2e")]&&e[ho("0x26")](ho("0x27"),[],[ho("0x27")]);const n={type:"format",content:""};e[ho("0x34")].registerDescriptionCallback(this[ho("0x2")][ho("0x2a")](this));const r=this[ho("0x23")].locale;e[ho("0x34")].registerAttributeLabel(ho("0x2b"),Yr(r,ho("0xb"))),e._descriptionFactory[ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x2b")==e[ho("0xf")])return null==e.newValue||0==e.newValue&&null==e[ho("0x3c")]?n:void 0})),e[ho("0x34")][ho("0x37")](ho("0x27"),Yr(r,ho("0x1d"))),e[ho("0x34")][ho("0x6")]((t=>{const{data:e}=t;if(e&&ho("0x27")==e.key)return null==e[ho("0x30")]||1==e[ho("0x30")]&&null==e[ho("0x3c")]?n:void 0})),this[ho("0x23")][ho("0x29")][ho("0x1c")].registerPostFixer((t=>{if(t.batch[ho("0x25")])return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0})[ho("0x3")]((t=>{const n=e[ho("0x1f")](t);return ho("0x27")==n||ho("0x2b")==n}));for(const i of r)"numbered"!=i[ho("0x22")]()[ho("0x1")][ho("0x12")].getAttribute(ho("0x4"))&&(e[ho("0x2c")](i[ho("0x22")](),ho("0x2f"))[ho("0x17")]((t=>"listType"==e[ho("0x1f")](t[ho("0x18")])))||(t[ho("0x13")](i.getFirstMarker()),n=!0));return n})),this[ho("0x32")]()}[ho("0x2")](t){const e=this[ho("0x23")].locale,{data:n}=t,r={type:ho("0x9"),content:""};if(!n||ho("0x24")!=n[ho("0xf")])return;if(!n[ho("0x3c")])return ho("0xc")==n[ho("0x30")]?r:{type:ho("0x9"),content:""+Yr(e,"*Set format:* %0",Yr(e,this[ho("0xa")](n[ho("0x30")])))};if(!n[ho("0x30")]){if(ho("0xc")==n[ho("0x3c")])return r;let i=t[ho("0x31")];for(;i;){if(i[ho("0x7")]&&ho("0x4")==i.data.key&&i[ho("0x7")][ho("0x30")])return r;i=i.next}return{type:ho("0x9"),content:""+Yr(e,ho("0x1a"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x3c")])))}}if(ho("0xc")!=n.newValue)return{type:"format",content:""+Yr(e,ho("0x3e"),Yr(e,this._getTranslationKeyForListStyle(n[ho("0x30")])))};let i=t.head;for(;i;){if(i[ho("0x7")]&&ho("0x4")==i[ho("0x7")][ho("0xf")]&&i[ho("0x7")][ho("0x30")]&&i[ho("0x7")].oldValue)return r;i=i[ho("0x1b")]}const o=t[ho("0x22")]()[ho("0x1")].nodeAfter.getAttribute(ho("0x4"));return{type:ho("0x9"),content:Yr(e,"*Set format:* %0",Yr(e,ho("0x39")+o[ho("0x11")]()+ho("0x33")))}}[ho("0x32")](){const t=this.editor,e=t[ho("0x5")];t[ho("0x38")].get("TrackChangesEditing")._descriptionFactory[ho("0x6")]((t=>{if("formatBlock"!=t[ho("0x2d")])return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x24"):r=ho("0x15"),i={type:ho("0x9"),content:Yr(e,r,Yr(e,this[ho("0xa")](n[ho("0x35")][0][ho("0x2d")])))};break;case ho("0x2b"):r=n[ho("0x35")][0][ho("0x28")]?ho("0x36"):ho("0xe"),i={type:ho("0x9"),content:Yr(e,r)};break;case"listStart":r=ho("0x20"),i={type:ho("0x9"),content:Yr(e,r,n.commandParams[0].startIndex)}}return i}))}[ho("0xa")](t){return ho("0x39")+(e=t,po[ho("0x3b")](e)?ho("0x0"):bo.includes(e)?ho("0x10"):null).toUpperCase()+ho("0x16")+t[ho("0x11")]().replace(/-/g,"_");var e}}const po=["disc","circle","square"],bo=["decimal",ho("0x21"),"lower-roman","upper-roman","lower-latin",ho("0x14")];var Eo=n(976);const _o=["enableCommand","hasClass","requires","parent","mapper","data","downcastDispatcher","markerNameToElements","remove","getFirstPosition","change","markerName","fire","TrackChangesEditing","enterBlock","document","enter","unbindElementFromMarkerName","writer","getFirstRange","showSuggestionHighlights","get","editing","addMarker:suggestion:insertion","bind","split","init","selection","high","options","removeMarker:suggestion:insertion","createRange","nextSibling","model","fromRange"];var To,yo;To=_o,yo=397,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x19")](){return[Eo.Enter]}[Co("0xe")](){const t=this.editor,e=t.plugins[Co("0x9")](Co("0x1")),n=t.commands[Co("0x9")]("enter");e[Co("0x17")](Co("0x4"),(()=>{t[Co("0x15")][Co("0x21")]((r=>{const i=t.model[Co("0x3")][Co("0xf")],o=i[Co("0x20")](),x=s.LiveRange[Co("0x16")](i[Co("0x7")]());if(n[Co("0x2")](r)){const n=t[Co("0x15")].createPositionAt(o[Co("0x1a")][Co("0x14")],0),i=r[Co("0x13")](o,n);e.markInsertion(i)}else r.setSelection(r[Co("0x13")](x.end));x.detach(),n[Co("0x0")]("afterExecute",{writer:r})}))})),t.editing[Co("0x1d")].on(Co("0xb"),Ji(t,Co("0xd")),{priority:Co("0x10")}),t[Co("0xa")][Co("0x1d")].on(Co("0x12"),((t,e,n)=>{const r=n[Co("0x1b")][Co("0x1e")](e[Co("0x22")]);if(r)for(const t of r)t[Co("0x18")]("ck-suggestion-marker-split")&&(n[Co("0x1b")][Co("0x5")](t,e.markerName),n[Co("0x6")][Co("0x1f")](t))}),{priority:Co("0x10")}),t[Co("0x1c")][Co("0x1d")].on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x11")][Co("0x8")]&&Ji(t,Co("0xd"),{showActiveMarker:!1})[Co("0xc")](this)(e,n,r)}),{priority:"high"})}}const ko=["get","FindAndReplaceEditing","find","model","handleFindCommand","editor","bind","FindAndReplaceUtils","TrackChangesEditing","getRange","has","replace","filter","end","markers","findNext","createRange","_isInDeletionRange","findPrevious","plugins","getMarkersGroup","enableCommand","afterInit","start","getIntersection","createPositionAt"];var Io,So;Io=ko,So=346,function(t){for(;--t;)Io.push(Io.shift())}(++So);const Ro=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[Ro("0xe")](){if(!this[Ro("0x17")].plugins[Ro("0x2")](Ro("0x13")))return;const t=this[Ro("0x17")][Ro("0xb")][Ro("0x12")](Ro("0x0"));t[Ro("0xd")](Ro("0x14"),this[Ro("0x16")][Ro("0x18")](this)),t[Ro("0xd")](Ro("0x7")),t.enableCommand(Ro("0xa")),t[Ro("0xd")](Ro("0x3")),t[Ro("0xd")]("replaceAll")}[Ro("0x16")](t,e,n={}){const r=this.editor.plugins.get(Ro("0x19"));return t((t=>("string"==typeof e?r.findByTextCallback(e,n):e)(t)[Ro("0x4")]((e=>!1===this[Ro("0x9")](e,t.item)))),n)}[Ro("0x9")](t,e){const n=this[Ro("0x17")].model[Ro("0x8")](this[Ro("0x17")][Ro("0x15")][Ro("0x11")](e,t[Ro("0xf")]),this[Ro("0x17")][Ro("0x15")][Ro("0x11")](e,t[Ro("0x5")]));for(const t of this[Ro("0x17")][Ro("0x15")][Ro("0x6")][Ro("0xc")]("suggestion:deletion"))if(null!==n[Ro("0x10")](t[Ro("0x1")]()))return!0;return!1}}const No=["FORMAT_FONT_SIZE","_enableDefaultAttributesIntegration","find","locale","*Reset font size*","*Set font family:* %0","trim","fontFamily","type","has","FORMAT_FONT_COLOR","registerDescriptionCallback","*Set font background color:* %0","fontColor.colors","FontFamilyEditing","FontSizeEditing","value","label","config","title","registerAttributeLabel","fontSize","afterInit","*Set font color:* %0","toLowerCase","_descriptionFactory","commandParams","_registerLegacyDescription","*Reset font color*","editor","fontSize.options","TrackChangesEditing","fontBackgroundColor","get","commandName","plugins","FORMAT_FONT_FAMILY","formatInline","fontColor","format","FontBackgroundColorEditing","*Reset font family*"];var Lo,Mo;Lo=No,Mo=233,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:wo("0x22"),commandName:"fontSize"},{pluginName:wo("0x21"),commandName:wo("0x1a")},{pluginName:"FontColorEditing",commandName:wo("0xf")},{pluginName:wo("0x11"),commandName:"fontBackgroundColor"}];class Fo extends t.Plugin{[wo("0x29")](){const t=this[wo("0x6")][wo("0x16")],e=this.editor[wo("0xc")][wo("0xa")](wo("0x8"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x6")].plugins[wo("0x1c")](t)&&e[wo("0x14")](n,[n]);t.t,e[wo("0x2")][wo("0x27")]("fontSize",Yr(t,wo("0x13"))),e[wo("0x2")][wo("0x27")]("fontFamily",Yr(t,wo("0xd"))),e._descriptionFactory[wo("0x27")](wo("0xf"),Yr(t,wo("0x1d"))),e[wo("0x2")][wo("0x27")](wo("0x9"),Yr(t,"FORMAT_FONT_BACKGROUND")),this._registerLegacyDescription()}[wo("0x4")](){const t=this[wo("0x6")],e=t.locale;t[wo("0xc")].get(wo("0x8"))[wo("0x2")][wo("0x1e")]((t=>{const n=e.t;if(wo("0xe")!=t[wo("0x1b")])return;const{data:r}=t;if(null!=r){if(wo("0x28")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=n(this[wo("0x6")][wo("0xc")][wo("0xa")]("FontSize").normalizeSizeOptions(this[wo("0x6")][wo("0x25")].get(wo("0x7")))[wo("0x15")]((e=>e.model==t))[wo("0x26")])[wo("0x1")]();return{type:wo("0x10"),content:Yr(e,"*Set font size:* %0",r)}}return{type:wo("0x10"),content:Yr(e,wo("0x17"))}}if("fontFamily"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];return t?{type:wo("0x10"),content:Yr(e,wo("0x18"),t)}:{type:"format",content:Yr(e,wo("0x12"))}}if(wo("0xf")==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0xa")](wo("0x20")))[wo("0x15")]((e=>e.model==t));let o=t,s="";return r&&(o=r.label,s=n(o)[wo("0x1")]()),{type:"format",content:Yr(e,wo("0x0"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:"format",content:Yr(e,wo("0x5"))}}if("fontBackgroundColor"==r[wo("0xb")]){const t=r[wo("0x3")][0][wo("0x23")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0x6")][wo("0x25")][wo("0xa")]("fontBackgroundColor.colors")).find((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x24")],s=n(o).toLowerCase()),{type:wo("0x10"),content:Yr(e,wo("0x1f"),s)[wo("0x19")](),color:{value:t,title:s||o}}}return{type:wo("0x10"),content:Yr(e,"*Reset font background color*")}}}}))}}const Do=["fontColor.colors","_registerLegacyDescription","toUpperCase","*Set format to:* %0","fontBackgroundColor","toLowerCase","title","config","label","fontSize","join","push","commandName","formatBlock","find","length","FontSize","get","type","model","commandParams","*Remove all formatting*","format","fontSize.options","TrackChangesEditing","pasteFormat","commands","_enableDefaultAttributesIntegration","split","boolean","slice","copyFormat","locale","entries","normalizeSizeOptions","charAt","editor"];var Po,Bo;Po=Do,Bo=468,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[Uo("0x1e")]("TrackChangesEditing"),n=t[Uo("0x2")][Uo("0x1e")](Uo("0x7")),r=t[Uo("0x2")][Uo("0x1e")](Uo("0x1"));n&&r&&(e[Uo("0x3")](Uo("0x1")),e.enableCommand("copyFormat"),this[Uo("0xe")]())}_registerLegacyDescription(){const t=this[Uo("0xc")],e=t[Uo("0x8")];t.plugins.get(Uo("0x0"))._descriptionFactory.registerDescriptionCallback((n=>{if(Uo("0x1a")!=n[Uo("0x1f")]&&"formatInline"!=n[Uo("0x1f")])return;const{data:r}=n;if(r&&Uo("0x1")===r[Uo("0x19")]){const n=[],i=r[Uo("0x21")][0];for(const[e,r]of Object[Uo("0x9")](i))n[Uo("0x18")](Go(t,e,r));return n[Uo("0x1c")]?{type:Uo("0x23"),content:Yr(e,Uo("0x10"),n[Uo("0x17")](", "))}:{type:Uo("0x23"),content:Yr(e,Uo("0x22"))}}}))}}function Go(t,e,n){const r=t.locale.t,o=e[Uo("0x4")](/(?=[A-Z])/).join(" "),s=r(o[Uo("0xb")](0)[Uo("0xf")]()+o[Uo("0x6")](1))[Uo("0x12")]();if(Uo("0x5")==typeof n)return s;if("fontColor"===e||Uo("0x11")===e){const e=(0,i.normalizeColorOptions)(t[Uo("0x14")][Uo("0x1e")](Uo("0xd")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x15")]).toLowerCase():n)+")"}if(Uo("0x16")===e&&isNaN(parseFloat(n))){const e=t.plugins[Uo("0x1e")](Uo("0x1d"))[Uo("0xa")](t[Uo("0x14")][Uo("0x1e")](Uo("0x24")))[Uo("0x1b")]((t=>t[Uo("0x20")]==n));return s+" ("+(e?r(e[Uo("0x13")])[Uo("0x12")]():n)+")"}return s+" ("+n+")"}const Vo=["match","_getHeadingLevel","type","ELEMENT_HEADING","_enableDefaultAttributesIntegration","_headingOptions","plugins","find","get","editor","formatBlock","*Change to:* %0","ELEMENT_HEADING_CUSTOM","heading.options","title","commandParams","locale","value","paragraph","config","TrackChangesEditing","commandName","view","has","model","afterInit","registerDescriptionCallback","_descriptionFactory","format","heading"];var Ho,zo;Ho=Vo,zo=194,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xb")](){const t=this[Wo("0x19")];if(!t[Wo("0x16")][Wo("0x9")]("HeadingEditing"))return;this[Wo("0x15")]=t[Wo("0x5")][Wo("0x18")](Wo("0x1d"));const e=t[Wo("0x2")],n=t[Wo("0x16")].get(Wo("0x6"));n[Wo("0x14")](Wo("0xf"));for(const t of this[Wo("0x15")])Wo("0x4")!=t[Wo("0xa")]&&n._descriptionFactory.registerElementLabel(t.model,(n=>{const r=this[Wo("0x11")](t[Wo("0xa")]);return null!==r?Yr(e,"ELEMENT_HEADING",[n,r]):(i=n,o=t[Wo("0x0")],Yr(e,Wo("0x1c"),[i,o]));var i,o}));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[Wo("0x2")];t[Wo("0x16")][Wo("0x18")](Wo("0x6"))[Wo("0xd")][Wo("0xc")]((t=>{if(Wo("0x1a")!=t[Wo("0x12")])return;const{data:n}=t;if(n&&Wo("0xf")==n[Wo("0x7")]){const t=n[Wo("0x1")][0][Wo("0x3")],s=this[Wo("0x11")](t);if(null!==s)return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(1,o=s,Yr(e,Wo("0x13"),[1,o])))};const x=this[Wo("0x15")].find((e=>e[Wo("0xa")]===t)).title;return{type:Wo("0xe"),content:Yr(e,Wo("0x1b"),(r=1,i=x,Yr(e,Wo("0x1c"),[r,i])))}}var r,i,o}))}[Wo("0x11")](t){var e,n;const r=t[Wo("0x10")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x17")]((e=>e.model==t));if(i&&i.view){const t=i[Wo("0x8")],e=(null!==(n=t.name)&&void 0!==n?n:t)[Wo("0x10")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["type","color","get","plugins","highlight","*Remove highlight*","find","has","commandParams","_descriptionFactory","model","toLowerCase","commandName","HighlightEditing","afterInit","locale","registerAttributeLabel","_registerLegacyDescription","value","editor","TrackChangesEditing","title","formatInline","*Set highlight:* %0","registerDescriptionCallback","format","_enableDefaultAttributesIntegration"];var Xo,$o;Xo=qo,$o=313,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Qo extends t.Plugin{[Zo("0x19")](){const t=this[Zo("0x3")];if(!t.plugins[Zo("0x12")](Zo("0x18")))return;const e=t.plugins[Zo("0xd")](Zo("0x4")),n=t[Zo("0x1a")];e[Zo("0xa")](Zo("0xf"),[Zo("0xf")]),e[Zo("0x14")][Zo("0x0")]("highlight",Yr(n,"FORMAT_HIGHLIGHT")),this[Zo("0x1")]()}_registerLegacyDescription(){const t=this[Zo("0x3")],e=t[Zo("0x1a")];t[Zo("0xe")].get(Zo("0x4"))._descriptionFactory[Zo("0x8")]((n=>{if(Zo("0x6")!=n[Zo("0xb")])return;const{data:r}=n;if(r&&Zo("0xf")==r[Zo("0x17")]){const n=e.t,i=r[Zo("0x13")][0][Zo("0x2")];if(i){const r=t.config[Zo("0xd")]("highlight.options")[Zo("0x11")]((t=>t[Zo("0x15")]==i)),o=n(r[Zo("0x5")])[Zo("0x16")]();return{type:Zo("0x9"),content:Yr(e,Zo("0x7"),o),color:{value:r[Zo("0xc")],title:r[Zo("0x5")]}}}return{type:Zo("0x9"),content:Yr(e,Zo("0x10"),Yr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Yo=["createContainerElement","afterInit","get","ELEMENT_HORIZONTAL_LINE","horizontalLine","addClass","ck-horizontal-line","TrackChangesEditing","HorizontalLineEditing","registerElementLabel","elementToStructure","has","_descriptionFactory","conversion","plugins","enableCommand","createPositionAt","div","high","dataDowncast","insert","editor"];var Jo,ts;Jo=Yo,ts=272,function(t){for(;--t;)Jo.push(Jo.shift())}(++ts);const es=function(t,e){return Yo[t-=0]};class ns extends t.Plugin{[es("0xf")](){const t=this[es("0xd")];if(!t.plugins[es("0x3")](es("0x0")))return;t.plugins.get(es("0x15"))[es("0x7")](es("0x12"));const e=t[es("0x6")][es("0x10")]("TrackChangesEditing"),n=t.locale;e[es("0x4")][es("0x1")](es("0x12"),(t=>Yr(n,es("0x11"),t))),t[es("0x5")].for(es("0xb"))[es("0x2")]({model:es("0x12"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e[es("0xe")](es("0x9")),i=e.createEmptyElement("hr");return e[es("0x13")](es("0x14"),r),e[es("0xc")](e[es("0x8")](r,0),i),r},converterPriority:es("0xa")})}}const rs=["locale","rawHtml","afterInit","attribute","type","element","_descriptionFactory","plugins","editor","registerElementLabel","_enableDefaultAttributesIntegration","htmlEmbed","commandName","get","registerDescriptionCallback","ELEMENT_HTML_EMBED","format","nodeAfter","_registerLegacyDescription","*Change %0 content*","HtmlEmbed","start","TrackChangesEditing","value"];var is,os;is=rs,os=186,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x8")](){const t=this[ss("0xe")];if(!t.plugins.has(ss("0x2")))return;const e=t.plugins[ss("0x13")](ss("0x4")),n=t[ss("0x6")];e[ss("0xc")][ss("0xf")]("rawHtml",(t=>Yr(n,ss("0x15"),t))),e[ss("0x10")]("htmlEmbed",[],[ss("0x5")]),e[ss("0xc")][ss("0x14")]((t=>{if(ss("0x9")!=t.type)return;const{data:e}=t;if(e&&ss("0x5")==e.key&&t.getFirstRange()[ss("0x3")][ss("0x17")].is(ss("0xb"),ss("0x7"))){const t=Yr(n,"ELEMENT_HTML_EMBED");return{type:ss("0x16"),content:Yr(n,ss("0x1"),t)}}})),this[ss("0x0")]()}[ss("0x0")](){const t=this.editor,e=t[ss("0x6")];t[ss("0xd")][ss("0x13")]("TrackChangesEditing")[ss("0xc")][ss("0x14")]((t=>{if("formatBlock"!=t[ss("0xa")])return;const{data:n}=t;if(n&&ss("0x11")==n[ss("0x12")]){const t=Yr(e,ss("0x15"));return{type:ss("0x16"),content:Yr(e,ss("0x1"),t)}}}))}}const as=["editor","getContainedElement","accept","selection","resizedWidth","insertion","imageCaption","ImageTextAlternativeEditing","Block image to inline image","end","convertBlockImageToInline","caption","createRange","discard","formatBlock","imageTypeBlock","registerCustomCallback","imageTypeInline","isCollapsed","getFirstRange","locale","ImageEditing","isOwn","filter","deletion","imageStylePreApply","nodeAfter","uploadImage","resizeImage","change","previous","alt","createRangeOn","ELEMENT_IMAGE","*Remove image text alternative*","markInsertion","get","getClosestSelectedImageElement","insertImage","_registerLegacyDescription","*Set image text alternative:* %0","ImageCaptionUtils","element","imageInline","enableCommand","markBlockFormat","isBlockImage","model","_enableDefaultAttributesIntegration","fromPosition","registerElementLabel","commandParams","getSuggestionCallback","commandName","forceDefaultExecution","newValue","find","Inline image to block image","getCaptionFromImageModelElement","ELEMENT_CAPTION","plugins","convertInlineImageToBlock","has","ImageBlockEditing","chain","subType","getNearestSelectionRange","format","addObject","findIndex","key","type","imageTextAlternative","length","attribute","ImageUtils","_descriptionFactory","document","isEqual","join","isBefore","ELEMENT_INLINE_IMAGE","FORMAT_IMAGE_SIZE","schema","TrackChangesEditing","_suggestionFactory","registerDescriptionCallback","width","markDeletion","*Set image width:* %0","toggleImageCaption","start","ImageCaptionEditing","toPrevious"];var cs,ls;cs=as,ls=365,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{afterInit(){const t=this[us("0xb")];if(!t[us("0x47")][us("0x49")](us("0x20")))return;const e=t[us("0x47")][us("0x2f")](us("0x1")),n=t[us("0x47")][us("0x2f")](us("0x56")),r=t.locale;e[us("0x37")](us("0x31")),e[us("0x57")][us("0x3d")]("imageBlock",(t=>Yr(r,us("0x2c"),t))),e[us("0x57")][us("0x3d")](us("0x36"),(t=>Yr(r,us("0x5c"),t))),e[us("0x57")].registerElementLabel(us("0x16"),(()=>Yr(r,us("0x46")))),t.plugins[us("0x49")]("ImageUploadEditing")&&e[us("0x37")](us("0x26")),t[us("0x47")][us("0x49")](us("0x4a"))&&t[us("0x47")][us("0x49")]("ImageInlineEditing")&&(e[us("0x37")](us("0x1c"),((r,i)=>{const o=n[us("0x30")](t.model[us("0x58")][us("0xe")]);t[us("0x3a")][us("0x28")]((()=>{e[us("0x38")](o,{commandName:us("0x1c"),commandParams:[i]},[],us("0x15"))}))})),e[us("0x37")](us("0x1a"),((r,i)=>{t[us("0x3a")][us("0x28")]((o=>{let x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const c=s.LivePosition.fromPosition(a.start,us("0xa")),l=s.LivePosition[us("0x3c")](a[us("0x14")],"toNext");e[us("0x41")]((()=>r(i))),x=n[us("0x30")](t[us("0x3a")].document[us("0xe")]),a=o[us("0x2b")](x);const u=o[us("0x17")](c,l);c.detach(),l.detach(),e[us("0x38")](x,{commandName:"imageTypeInline",commandParams:[i]},[],us("0x48")),u.start[us("0x5b")](a[us("0x8")])&&e.markInsertion(o.createRange(u[us("0x8")],a[us("0x8")]),us("0x48")),a[us("0x14")][us("0x5b")](u[us("0x14")])&&e[us("0x2e")](o[us("0x17")](a[us("0x14")],u[us("0x14")]),us("0x48"))}))})),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e[us("0x2")].registerCustomCallback(us("0x19"),"convertInlineImageToBlock",us("0xd"),(()=>!1)),e[us("0x2")][us("0x1b")](us("0x19"),"convertInlineImageToBlock",us("0x18"),e[us("0x2")][us("0x3f")]("formatBlock","",us("0xd"))),e[us("0x2")][us("0x1b")](us("0x10"),"convertInlineImageToBlock",us("0x5a"),(()=>!1)),e._suggestionFactory.registerCustomCallback("insertion",us("0x48"),us("0x18"),(([n])=>{const r=e._suggestionFactory[us("0x3f")](us("0x10"),"",us("0x18"));let i=n[us("0x8")],o=n[us("0x14")];const s=t[us("0x3a")][us("0x0")][us("0x4d")](i,"backward"),x=t.model[us("0x0")][us("0x4d")](o,"forward");s[us("0x1d")]&&(i=s[us("0x8")]),x[us("0x1d")]&&(o=x[us("0x14")]),r([t[us("0x3a")][us("0x17")](i,o)])})),e[us("0x2")][us("0x1b")](us("0x19"),us("0x48"),us("0x4b"),x),e[us("0x2")][us("0x1b")]("insertion","convertInlineImageToBlock","chain",x)),t[us("0x47")][us("0x49")](us("0x9"))&&(e.enableCommand(us("0x7"),((r,i)=>{const o=t[us("0x47")][us("0x2f")](us("0x34"));let s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s);t[us("0x3a")][us("0x28")]((()=>{if(x)return void e[us("0x5")](t[us("0x3a")].createRangeOn(x));const a=n[us("0x39")](s);r(i),s=n[us("0x30")](t[us("0x3a")][us("0x58")][us("0xe")]),x=o[us("0x45")](s),e[us("0x2e")](t[us("0x3a")][us("0x2b")](x),a?null:us("0x11"))}))})),e[us("0x2")][us("0x1b")](us("0x10"),us("0x11"),"chain",x));const i=[{type:"formatBlock",subType:us("0x24")},{type:us("0x10"),subType:us("0x11")},{type:us("0x19"),subType:us("0x48")},{type:us("0x10"),subType:us("0x48")}];function o(t,r){const o=i[us("0x50")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[us("0x50")]((({type:t,subType:e})=>r[us("0x52")]==t&&r[us("0x4c")]==e));if(o<0||s<0)return!1;const x=t[us("0x1e")](),a=r[us("0x1e")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,us("0x10"))[us("0x22")]((({suggestion:t,meta:e})=>e[us("0x21")]&&us("0x48")==t[us("0x4c")]));if(t[us("0x54")]>1&&a.end.isEqual(x[us("0x8")]))return!0;if(1==t.length&&(x[us("0x8")][us("0x59")](a[us("0x14")])||x[us("0x14")].isEqual(a[us("0x8")])))return!0}if(3==o&&3==s&&x.start[us("0x5b")](a.start)){const t=x[us("0x14")][us("0x25")],e=a[us("0x8")].nodeBefore;return n[us("0x39")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x47")][us("0x49")]("ImageResize")&&(e._enableDefaultAttributesIntegration("resizeImage",[],["resizedWidth"]),e[us("0x57")].registerAttributeLabel(us("0xf"),Yr(r,us("0x5d")))),t[us("0x47")][us("0x49")](us("0x12"))&&e[us("0x3b")]("imageTextAlternative",[],["alt"]),e[us("0x57")].registerDescriptionCallback((t=>{if(i[us("0x43")]((({type:e,subType:n})=>t.type==e&&t[us("0x4c")]==n)))return t[us("0x29")]?{}:void 0})),e[us("0x57")].registerDescriptionCallback((t=>{if("insertion"==t.type||us("0x23")==t[us("0x52")]){const e=t[us("0xc")]();if(e&&e.is(us("0x35"),"caption"))return{type:"insertion"==t[us("0x52")]?us("0x4f"):"removeObject",element:e,quantity:1}}})),e[us("0x57")][us("0x3")]((t=>us("0x19")==t[us("0x52")]&&us("0x48")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x44")}:us("0x19")==t[us("0x52")]&&us("0x15")==t[us("0x4c")]?{type:us("0x4e"),content:us("0x13")}:void 0)),e[us("0x57")][us("0x3")]((t=>{if(us("0x55")!=t[us("0x52")])return;const{data:e}=t;if(!e||us("0x2a")!=e[us("0x51")])return;const n=e[us("0x42")];return n?{type:us("0x4e"),content:Yr(r,us("0x33"),'"'+n+'"')}:{type:us("0x4e"),content:Yr(r,us("0x2d"))}})),this[us("0x32")]()}_registerLegacyDescription(){const t=this[us("0xb")],e=t[us("0x1f")];t[us("0x47")].get(us("0x1"))._descriptionFactory[us("0x3")]((t=>{if(us("0x19")!=t.type&&"formatInline"!=t[us("0x52")])return;const{data:n}=t;if(n){if(us("0x53")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x42")];return t?{type:"format",content:Yr(e,us("0x33"),'"'+t+'"')}:{type:"format",content:Yr(e,us("0x2d"))}}if(us("0x27")==n[us("0x40")]){const t=n[us("0x3e")][0][us("0x4")];return t?{type:us("0x4e"),content:Yr(e,us("0x6"),t)}:{type:"format",content:Yr(e,"*Reset image width*")}}}}))}}const gs=["key","plugins","commandName","src","registerDescriptionCallback","_handleLegacySuggestions","TrackChangesEditing","_registerLegacyDescription","get","accept","_descriptionFactory","formatInline","has","replaceImageSource","format","*Format:* replace image URL","_suggestionFactory","type","newValue","getSuggestionCallback","*Replace image URL*","oldValue","formatBlock","attribute","locale","afterInit","discard","editor"];var fs,hs;fs=gs,hs=141,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x18")](){if(!this[ms("0x1a")][ms("0x0")][ms("0xb")]("ImageEditing"))return;const t=this.editor[ms("0x17")],e=this[ms("0x1a")][ms("0x0")][ms("0x7")](ms("0x5"));e._enableDefaultAttributesIntegration(ms("0xc"),[],[ms("0x2")]),e[ms("0x9")].registerDescriptionCallback((e=>{if(ms("0x16")!=e.type)return;const{data:n}=e;return n&&ms("0x2")==n[ms("0x1b")]?n[ms("0x11")]&&n[ms("0x14")]?{type:ms("0xd"),content:Yr(t,ms("0x13"))}:{type:ms("0xd"),content:""}:void 0})),this[ms("0x4")]()}[ms("0x4")](){const t=this[ms("0x1a")].plugins[ms("0x7")](ms("0x5"));t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x8"),t[ms("0xf")][ms("0x12")](ms("0x15"),null,ms("0x19"))),t[ms("0xf")].registerCustomCallback(ms("0x15"),ms("0xc"),ms("0x19"),t[ms("0xf")].getSuggestionCallback(ms("0x15"),null,ms("0x8"))),this[ms("0x6")]()}[ms("0x6")](){const t=this[ms("0x1a")],e=t.locale;t[ms("0x0")][ms("0x7")](ms("0x5"))[ms("0x9")][ms("0x3")]((t=>{if(ms("0x15")!=t[ms("0x10")]&&ms("0xa")!=t[ms("0x10")])return;const{data:n}=t;return n&&ms("0xc")==n[ms("0x1")]?{type:ms("0xd"),content:Yr(e,ms("0xe"))}:void 0}))}}const bs=["getFirstRange","accept","formatBlock","registerDescriptionCallback","chain","imageCaption","_registerLegacyDescription","head","model","_splitMarkerName","has","createRangeOn","locale","getContainedElement","get","filter","*Format:* %0","getSuggestionCallback","getClosestSelectedImageElement","forEach","_suggestionFactory","value","end","format","isEqual","enableCommand","isInlineImage","subType","setImageNaturalSizeAttributes","isBlockImage","ImageStyleEditing","shouldConvertImageType","commands","formatInline","insertion","discardSuggestion","document","imageStyle","plugins","title","ImageUtils","suggestion","TrackChangesEditing","selection","afterInit","start","isBefore","imageStylePostApply","newRange","join","differ","length","change","findIndex","convertInlineImageToBlock","markBlockFormat","imageStylePreApply","type","commandName","imageTypeInline","commandParams","next","editor","imageTypeBlock","refresh","getSuggestion","nodeAfter","registerCustomCallback"];var Es,_s;Es=bs,_s=409,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{[Ts("0x2b")](){const t=this.editor;if(!t[Ts("0x25")][Ts("0x9")](Ts("0x1d")))return;const n=t[Ts("0x25")][Ts("0xd")](Ts("0x29")),r=t[Ts("0x25")][Ts("0xd")](Ts("0x27")),i={};n[Ts("0x18")]("imageStyle",((i,o)=>{const s=t[Ts("0x25")].get("Users").me,x=t[Ts("0x1f")][Ts("0xd")](Ts("0x24"));let a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),l=x[Ts("0x14")];if(l==o[Ts("0x14")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x7")][Ts("0x33")]((()=>{if(n.getSuggestions()[Ts("0xe")]((t=>t.isInContent&&s==t.author&&(Ts("0x1")==t[Ts("0x38")]||"formatInline"==t.type)&&(Ts("0x37")==t[Ts("0x1a")]||Ts("0x2e")==t[Ts("0x1a")])&&t[Ts("0x43")]()[Ts("0x17")](c)))[Ts("0x12")]((t=>n[Ts("0x22")](t[Ts("0x6")]))),a=r[Ts("0x11")](t[Ts("0x7")][Ts("0x23")][Ts("0x2a")]),c=t[Ts("0x7")][Ts("0xa")](a),x[Ts("0x3f")](),t[Ts("0x1f")][Ts("0xd")](Ts("0x3a")).refresh(),t[Ts("0x1f")][Ts("0xd")](Ts("0x3e"))[Ts("0x3f")](),l=x[Ts("0x14")],l!=o[Ts("0x14")])return r[Ts("0x19")](a)&&x[Ts("0x1e")](o[Ts("0x14")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x11")](t.model[Ts("0x23")][Ts("0x2a")]),void n[Ts("0x36")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x37"))):void(r[Ts("0x1c")](a)?n[Ts("0x36")](a,u,[],Ts("0x2e")):n.markInlineFormat(c,u,Ts("0x2e")))}))}));for(const e of t[Ts("0x25")][Ts("0xd")]("ImageStyleEditing").normalizedStyles)i[e.name]=e[Ts("0x26")].toLowerCase();n[Ts("0x13")][Ts("0x42")]("formatBlock","imageStylePreApply",Ts("0x30"),(()=>!1)),n._suggestionFactory[Ts("0x42")](Ts("0x1"),Ts("0x2e"),"join",(()=>!1)),n[Ts("0x13")][Ts("0x42")](Ts("0x20"),Ts("0x2e"),Ts("0x30"),(()=>!1)),n[Ts("0x13")][Ts("0x42")]("formatBlock",Ts("0x37"),Ts("0x0"),(([t])=>{r[Ts("0x1b")](t.getContainedElement())})),n[Ts("0x13")][Ts("0x42")](Ts("0x1"),Ts("0x37"),"discard",((t,e)=>{n[Ts("0x13")][Ts("0x10")](Ts("0x1"),"",Ts("0x0"))(t,{commandName:e[Ts("0x39")],commandParams:e.commandReversedParams})})),n[Ts("0x13")].registerCustomCallback(Ts("0x1"),Ts("0x37"),Ts("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x1"),subType:Ts("0x37")},{type:Ts("0x21"),subType:Ts("0x4")},{type:"formatBlock",subType:Ts("0x35")},{type:Ts("0x21"),subType:Ts("0x35")}];function s(t,e){const i=o[Ts("0x34")]((({type:e,subType:n})=>t.type==e&&t[Ts("0x1a")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x38")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[Ts("0x43")](),a=e[Ts("0x43")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,Ts("0x21"))[Ts("0xe")]((({suggestion:t,meta:e})=>e.isOwn&&Ts("0x35")==t.subType));if(t.length>1&&a.end[Ts("0x17")](x.start))return!0;if(1==t[Ts("0x32")]&&(x[Ts("0x2c")][Ts("0x17")](a.end)||x[Ts("0x15")][Ts("0x17")](a[Ts("0x2c")])))return!0}if(3==i&&3==s&&x.start[Ts("0x2d")](a.start)){const t=x[Ts("0x15")][Ts("0x41")],e=a.start.nodeBefore;return r[Ts("0x1c")](t)&&t===e}return!1}t.model[Ts("0x23")].registerPostFixer((()=>{let e=!1;const i=Array.from(t[Ts("0x7")].document[Ts("0x31")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x8")](t);if(Ts("0x28")==i&&n.hasSuggestion(a)){if(Ts("0x1")==s&&(Ts("0x37")==x||Ts("0x2e")==x)){const t=n[Ts("0x40")](a);if(o[Ts("0x2f")]){const i=t[Ts("0x43")]()[Ts("0xc")]();if(r.isBlockImage(i))continue;n[Ts("0x22")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!o[Ts("0x2f")]){const t=n[Ts("0x40")](a);t[Ts("0x3c")]&&t.next.isInContent&&(n[Ts("0x22")](t[Ts("0x3c")]),e=!0)}}}return e})),this[Ts("0x5")](i)}[Ts("0x5")](t){const e=this[Ts("0x3d")],n=e[Ts("0xb")];e.plugins[Ts("0xd")](Ts("0x29"))._descriptionFactory[Ts("0x2")]((e=>{if(Ts("0x1")!=e.type&&Ts("0x20")!=e[Ts("0x38")])return;const{data:r}=e;if(!r||Ts("0x24")!=r.commandName)return;const i=r[Ts("0x3b")][0][Ts("0x14")];return o="side"===i?Yr(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:Ts("0x16"),content:Yr(n,Ts("0xf"),o)};var o}))}}const Cs=["forEach","listenTo","_handleImportedData","importWord","trackChanges","get","_setSuggestionData","dataInsert","TrackChangesEditing","editor","plugins","lowest","bind","track_changes","value","high","collaboration_features","commands","_trackChangesExecuted","execute","_trackChangesValueDuringImport"];var As,ks;As=Cs,ks=473,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Ss extends t.Plugin{constructor(t){super(t),this[Is("0x9")]=!1,this[Is("0x7")]=!1}afterInit(){const t=this[Is("0x13")],e=t.commands.get("importWord"),n=t[Is("0x6")][Is("0xf")](Is("0xe"));e&&(e.on(Is("0x8"),((t,[,e])=>{this[Is("0x9")]=n[Is("0x3")],e[Is("0x5")][Is("0x2")]=!this._trackChangesValueDuringImport}),{priority:Is("0x4")}),this.listenTo(e,Is("0x11"),this[Is("0xc")][Is("0x1")](this)),this[Is("0xb")](e,Is("0x11"),(()=>{this[Is("0x7")]&&(n.execute(),this[Is("0x7")]=!1)}),{priority:Is("0x0")}),t[Is("0x14")][Is("0xf")](Is("0x12")).enableCommand(Is("0xd")))}[Is("0xc")](t,e){const{suggestions:n}=e,r=this[Is("0x13")][Is("0x6")][Is("0xf")](Is("0xe")),i=r[Is("0x3")];this[Is("0x9")]!==i&&(r[Is("0x8")](),this[Is("0x7")]=!0),n&&n[Is("0xa")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this[Is("0x13")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:"importWord"}}};this.editor[Is("0x14")][Is("0xf")]("TrackChangesEditing")[Is("0x10")](i)}))}}const Rs=["registerDescriptionCallback","indent","outdentBlock","registerAttributeLabel","get","TrackChangesEditing","getItemLabel","*Indent:* %0","has","indentBlock","type","_descriptionFactory","IndentBlock","locale","format","enableCommand","formatBlock","IndentEditing","commandName","FORMAT_INDENT","outdent","getItems","_registerBlockAttribute","afterInit","plugins","_registerLegacyDescription","editor"];var vs,Ns;vs=Rs,Ns=378,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Rs[t-=0]};class Ms extends t.Plugin{[Ls("0x17")](){const t=this[Ls("0x1a")],e=t[Ls("0x18")].get(Ls("0x5"));if(t[Ls("0x18")][Ls("0x8")](Ls("0x11"))&&(e.enableCommand(Ls("0x1")),e[Ls("0xf")](Ls("0x14"))),t.plugins.has(Ls("0xc")))for(const t of[Ls("0x9"),Ls("0x2")])e._enableDefaultAttributesIntegration(t);const n=t[Ls("0xd")];e[Ls("0x16")]("blockIndent"),e[Ls("0xb")][Ls("0x3")]("blockIndent",Yr(n,Ls("0x13"))),this[Ls("0x19")]()}_registerLegacyDescription(){const t=this[Ls("0x1a")],e=t[Ls("0xd")],n=t[Ls("0x18")][Ls("0x4")]("TrackChangesEditing");n[Ls("0xb")][Ls("0x0")]((t=>{if(Ls("0x10")!=t[Ls("0xa")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Ls("0x12")]&&Ls("0x2")!=r[Ls("0x12")])return;const i=t[Ls("0x15")]()[0],o=n._descriptionFactory[Ls("0x6")](i);return Ls("0x9")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,Ls("0x7"),o)}:Ls("0x2")==r[Ls("0x12")]?{type:Ls("0xe"),content:Yr(e,"*Outdent:* %0",o)}:void 0}))}}var ws,Os,Fs=["input","plugins","TrackChangesEditing","init","enableCommand","editor","requires"];ws=Fs,Os=426,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get[Ds("0x0")](){return[qi.Input]}[Ds("0x4")](){this[Ds("0x6")][Ds("0x2")].get(Ds("0x3"))[Ds("0x5")](Ds("0x1"))}}const Bs=["_registerLegacyDescription","has","locale","unlink","attribute","map","plugins","_descriptionFactory","link (","label","format","toLowerCase","_enableDefaultAttributesIntegration","manualDecorators","TrackChangesEditing","get","*Remove link*","linkHref","type","editor","link","*Set link:* %0","commandName","registerDescriptionCallback","afterInit"];var Us,js;Us=Bs,js=415,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0x9")](){const t=this[Gs("0x4")];if(!t[Gs("0x10")][Gs("0xb")]("LinkEditing"))return;const e=t.plugins[Gs("0x0")](Gs("0x18")),n=t.commands[Gs("0x0")]("link");e[Gs("0x16")](Gs("0x5"),[Gs("0x2"),...n[Gs("0x17")][Gs("0xf")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n[Gs("0x17")])e[Gs("0x11")].registerAttributeLabel(t.id,Gs("0x12")+t[Gs("0x13")][Gs("0x15")]()+")");e[Gs("0x11")].registerDescriptionCallback((e=>{if(Gs("0xe")!=e[Gs("0x3")])return;const{data:n}=e;if(!n||Gs("0x2")!=n.key)return;const r=n.newValue,i=t[Gs("0xc")];return{type:Gs("0x14"),content:null==r?Yr(i,Gs("0x1")):Yr(i,Gs("0x6"),'"'+r+'"')}})),this[Gs("0xa")]()}[Gs("0xa")](){const t=this[Gs("0x4")],e=t.locale;t[Gs("0x10")][Gs("0x0")](Gs("0x18"))[Gs("0x11")][Gs("0x8")]((t=>{if("formatInline"!=t[Gs("0x3")])return;const{data:n}=t;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:Gs("0x14"),content:Yr(e,"*Set link:* %0",'"'+t+'"')}}return Gs("0xd")==n[Gs("0x7")]?{type:"format",content:Yr(e,Gs("0x1"))}:void 0}}))}}const Hs=["previousSibling","LegacyTodoListEditing","length","registerDescriptionCallback","commands","execute","slice","name","listType","TrackChangesEditing","locale","bulletedList","getAttribute","numberedList","editor","checkTodoList","numbered","indentList","format","listIndent","add","end","change","*Uncheck item*","_descriptionFactory","todoList","ELEMENT_TODO_LIST","plugins","get","selection","formatInline","blockName","schema","createPositionAt","filter","*Change to:* %0","*Outdent:* %0","element","markBlockFormat","isObject","*Indent:* %0","todo","from","outdentList","nextSibling","afterInit","ELEMENT_NUMBERED_LIST","document","paragraph","forceValue","getSelectedBlocks","bulleted","ELEMENT_LIST_ITEM","listItem","findIndex","commandName","model","has","value","createRange","enableCommand","commandParams","type"];var zs,Ws;zs=Hs,Ws=121,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x32")](){const t=this[Ks("0x13")],e=t[Ks("0xf")];if(!t[Ks("0x20")][Ks("0x3e")]("LegacyListEditing"))return;const n=t.plugins[Ks("0x21")](Ks("0xe")),r=t[Ks("0x20")][Ks("0x3e")](Ks("0x6"));function i(e){return()=>{const r=t[Ks("0x3d")][Ks("0x34")][Ks("0x22")],i=t[Ks("0x9")][Ks("0x21")](e);if(i[Ks("0x0")])return void t[Ks("0xa")](Ks("0x35"),{});const o=e[Ks("0xb")](0,-4),s=function(t,e,n){let r=Array[Ks("0x2f")](t).filter((t=>{return e=t,(r=n).checkChild(e.parent,Ks("0x3a"))&&!r[Ks("0x2c")](e);var e,r}));r=r[Ks("0x27")]((t=>!t.is(Ks("0x2a"),"listItem")||t[Ks("0x11")](Ks("0xd"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x2a"),Ks("0x3a"))?i[Ks("0x19")](Xs(t)):i[Ks("0x19")](t);return Array[Ks("0x2f")](i)}(r[Ks("0x37")](),o,t[Ks("0x3d")][Ks("0x25")]);t.model[Ks("0x1b")]((()=>{for(const t of s)n[Ks("0x2b")](t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x0")]}],formatGroupId:Ks("0x24")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array.from(t);const n=e[Ks("0x3b")]((t=>Ks("0x3a")!=t[Ks("0xc")]));return n>-1&&(e=e[Ks("0xb")](0,n)),e}(t.model[Ks("0x34")][Ks("0x22")][Ks("0x37")]()),i=t[Ks("0x3d")][Ks("0x1")](t.model[Ks("0x26")](r[0],"before"),t[Ks("0x3d")][Ks("0x26")](r[r[Ks("0x7")]-1],Ks("0x1a")));t[Ks("0x3d")][Ks("0x1b")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0x18")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x31")];for(;t&&t[Ks("0x11")](Ks("0x18"))>n[Ks("0x11")](Ks("0x18"));)e[Ks("0x19")](t),t=t[Ks("0x31")]}return Array[Ks("0x2f")](e)}(r))}))}}n[Ks("0x2")]("numberedList",i("numberedList")),n.enableCommand(Ks("0x10"),i(Ks("0x10"))),r&&n[Ks("0x2")](Ks("0x1e"),i("todoList")),n[Ks("0x2")](Ks("0x16"),o(Ks("0x16"))),n[Ks("0x2")](Ks("0x30"),o(Ks("0x30"))),r&&n[Ks("0x2")]("checkTodoList",(()=>{const e=t[Ks("0x9")][Ks("0x21")](Ks("0x14")),r=Array[Ks("0x2f")](e._selectedElements);r[Ks("0x27")]((t=>t[Ks("0x11")]("todoListChecked")!=e[Ks("0x0")])),t.model[Ks("0x1b")]((()=>{for(const t of r)n[Ks("0x2b")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x0")]}]})}))})),n[Ks("0x1d")].registerElementLabel(Ks("0x3a"),(t=>Yr(e,Ks("0x39"),t))),n._descriptionFactory[Ks("0x8")]((t=>{if("formatBlock"!=t[Ks("0x4")]&&Ks("0x23")!=t[Ks("0x4")])return;const{data:n}=t;if(n){if(Ks("0x12")==n[Ks("0x3c")]||Ks("0x10")==n[Ks("0x3c")]||Ks("0x1e")==n[Ks("0x3c")])switch(n[Ks("0x3c")].replace("List","")){case Ks("0x38"):return r(Yr(e,"ELEMENT_BULLETED_LIST"));case Ks("0x15"):return r(Yr(e,Ks("0x33")));case Ks("0x2e"):return r(Yr(e,Ks("0x1f")))}if("indentList"==n[Ks("0x3c")])return{type:"format",content:Yr(e,Ks("0x2d"),Yr(e,Ks("0x39")))};if(Ks("0x30")==n[Ks("0x3c")])return{type:Ks("0x17"),content:Yr(e,Ks("0x29"),Yr(e,Ks("0x39")))};if(Ks("0x14")==n[Ks("0x3c")])return n[Ks("0x3")][0][Ks("0x36")]?{type:"format",content:Yr(e,"*Check item*")}:{type:"format",content:Yr(e,Ks("0x1c"))}}function r(t){return{type:Ks("0x17"),content:Yr(e,Ks("0x28"),t)}}}))}}function Xs(t){const e=t[Ks("0x11")](Ks("0x18"));if(0==e)return t;let n=t;for(;t[Ks("0x5")]&&t.previousSibling.is(Ks("0x2a"),Ks("0x3a"));){const r=t.previousSibling[Ks("0x11")](Ks("0x18"));if(r==e)n=t[Ks("0x5")];else if(r<e)break;t=t[Ks("0x5")]}return n}function $s(t){const e=[];if(t.is("element","listItem")&&t[Ks("0x11")]("listIndent")>0){let n=t[Ks("0x31")];for(;n&&Ks("0x3a")==n.name&&n.getAttribute(Ks("0x18"))==t[Ks("0x11")](Ks("0x18"));)e.push(n),n=n[Ks("0x31")]}return e}const Zs=["createPositionAt","listStyle","TrackChangesEditing","locale","listStart","LegacyListUtils","forward","*Format:* set order to reversed","reversed","getSelectedBlocks","handleDescriptions","*Change to:* %0","enableCommand","listItem","listType","editor","list.properties","model","*Format:* set order to regular","_LIST_","document","length","getFirstPosition","startIndex","handleListStyleCommand","_descriptionFactory","toUpperCase","unshift","plugins","backward","from","type","getLastPosition","selection","config","replace","parent","getAttribute","get","bind","format","formatInline","markMultiRangeBlockFormat","handleListStartCommand","listReversed","getListTypeFromListStyleType","change","_getSuggestionBlocks","*Format:* set start index to %0","getSiblingNodes","before","flat","_getTranslationKeyForListStyle","element","map","commandParams","ELEMENT_","handleListReversedCommand","afterInit","commandName","styles","numbered"];var Qs,Ys;Qs=Zs,Ys=105,function(t){for(;--t;)Qs.push(Qs.shift())}(++Ys);const Js=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Js("0xf")](){if(!this[Js("0x22")][Js("0x2f")].has("LegacyListPropertiesEditing"))return;const t=this[Js("0x22")][Js("0x35")][Js("0x39")](Js("0x23")),e=this[Js("0x22")][Js("0x2f")].get(Js("0x15"));t[Js("0x11")]&&e[Js("0x1f")](Js("0x14"),this[Js("0x2b")][Js("0x3a")](this)),t[Js("0x1b")]&&e[Js("0x1f")](Js("0x1"),this[Js("0xe")][Js("0x3a")](this)),t.startIndex&&e[Js("0x1f")](Js("0x17"),this[Js("0x0")][Js("0x3a")](this)),e[Js("0x2c")].registerDescriptionCallback(this[Js("0x1d")][Js("0x3a")](this))}[Js("0x2b")](t,e={}){const n=this[Js("0x22")][Js("0x2f")].get(Js("0x15")),r=this._getSuggestionBlocksForListStyle();this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](r,{commandName:Js("0x14"),commandParams:[{type:e[Js("0x32")]}],formatGroupId:Js("0x14")})}))}[Js("0xe")](t,e={}){const n=this[Js("0x22")][Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is(Js("0xa"),"listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this[Js("0x22")].model.createRange(this[Js("0x22")].model.createPositionAt(t,"before"),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this[Js("0x22")][Js("0x24")][Js("0x3")]((()=>{n[Js("0x3d")](i,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:Js("0x1")})}))}[Js("0x0")](t,e={}){const n=this.editor[Js("0x2f")][Js("0x39")](Js("0x15")),r=this[Js("0x4")]((t=>t.is("element","listItem")&&Js("0x12")===t[Js("0x38")](Js("0x21"))));if(r[Js("0x28")]<1)return;const i=r[Js("0xb")]((t=>this.editor[Js("0x24")].createRange(this.editor[Js("0x24")][Js("0x13")](t,Js("0x7")),this[Js("0x22")][Js("0x24")][Js("0x13")](t,0))));this.editor[Js("0x24")].change((()=>{n[Js("0x3d")](i,{commandName:Js("0x17"),commandParams:[{startIndex:e[Js("0x2a")]}],formatGroupId:"listStart"})}))}[Js("0x1d")](t){if("formatBlock"!=t[Js("0x32")]&&Js("0x3c")!=t.type)return;const e=this[Js("0x22")][Js("0x16")],{data:n}=t;if(!n)return;let r,i;switch(n[Js("0x10")]){case"listStyle":r=Js("0x1e"),i={type:Js("0x3b"),content:Yr(e,r,Yr(e,this[Js("0x9")](n.commandParams[0][Js("0x32")])))};break;case Js("0x1"):r=n[Js("0xc")][0][Js("0x1b")]?Js("0x1a"):Js("0x25"),i={type:Js("0x3b"),content:Yr(e,r)};break;case Js("0x17"):r=Js("0x5"),i={type:Js("0x3b"),content:Yr(e,r,n[Js("0xc")][0][Js("0x2a")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,r;const i=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let o=Array[Js("0x31")](this[Js("0x22")].model.document.selection[Js("0x1c")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Js("0xa"),Js("0x20")))&&o[Js("0x2e")](...i[Js("0x6")](this.editor[Js("0x24")].document.selection[Js("0x29")](),"backward")),(null===(e=o[o[Js("0x28")]-1])||void 0===e?void 0:e.is(Js("0xa"),Js("0x20")))&&o.push(...i.getSiblingNodes(this.editor[Js("0x24")][Js("0x27")].selection[Js("0x33")](),Js("0x19"))),o=[...new Set(o)],(null===(r=null===(n=this[Js("0x22")].model.document[Js("0x34")][Js("0x29")]())||void 0===n?void 0:n[Js("0x37")])||void 0===r?void 0:r.is(Js("0xa"),Js("0x20")))&&(o=o.filter((t=>t.is("element",Js("0x20"))))),o}[Js("0x4")](t){const e=this[Js("0x22")].plugins[Js("0x39")](Js("0x18"));let n=Array.from(this[Js("0x22")][Js("0x24")].document.selection[Js("0x1c")]()).filter(t).map((t=>{const n=this[Js("0x22")][Js("0x24")][Js("0x13")](t,0);return[...e[Js("0x6")](n,Js("0x30")),...e[Js("0x6")](n,Js("0x19"))]}))[Js("0x8")]();return n=[...new Set(n)],n}[Js("0x9")](t){return Js("0xd")+this[Js("0x22")][Js("0x2f")].get(Js("0x18"))[Js("0x2")](t)[Js("0x2d")]()+Js("0x26")+t[Js("0x2d")]()[Js("0x36")](/-/g,"_")}}const ex=["options","elementToElement","stop","enableCommand","plugins","TrackChangesEditing","editor","afterInit","mediaEmbed","_descriptionFactory","createEmptyElement","div","high","locale","conversion","has","attribute:url:media","downcastDispatcher","registerElementLabel","showSuggestionHighlights","media","for","ELEMENT_MEDIA"];var nx,rx;nx=ex,rx=442,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x2")](){const t=this[ix("0x1")];if(!t[ix("0x16")][ix("0xa")]("MediaEmbedEditing"))return;const e=t[ix("0x16")].get(ix("0x0")),n=t[ix("0x8")];e[ix("0x15")](ix("0x3")),e[ix("0x4")][ix("0xd")](ix("0xf"),(t=>Yr(n,ix("0x11"),t))),t[ix("0x9")][ix("0x10")]("dataDowncast")[ix("0x13")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[ix("0xe")])return e[ix("0x5")](ix("0x6"))},converterPriority:ix("0x7")}),t.data[ix("0xc")].on(ix("0xb"),((t,e,n)=>{n[ix("0x12")][ix("0xe")]&&t[ix("0x14")]()}),{priority:ix("0x7")})}}const sx=["plugins","enableCommand","editor","has","TrackChangesEditing","mention","MentionEditing"];var xx,ax;xx=sx,ax=179,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x5")];t.plugins[cx("0x6")](cx("0x2"))&&t[cx("0x3")].get(cx("0x0"))[cx("0x4")](cx("0x1"))}}const ux=["ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","enableCommand","registerElementLabel","has","_descriptionFactory","plugins","locale","pageBreak","get","editor"];var dx,gx;dx=ux,gx=305,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{afterInit(){const t=this[fx("0x6")];if(!t[fx("0x2")][fx("0x0")](fx("0x8")))return;t[fx("0x2")][fx("0x5")](fx("0x9"))[fx("0xa")](fx("0x4"));const e=t[fx("0x2")].get(fx("0x9")),n=t[fx("0x3")];e[fx("0x1")][fx("0xb")]("pageBreak",(t=>Yr(n,fx("0x7"),t)))}}const mx=["_registerLegacyDescription","formatBlock","isBlock","name","enableCommand","afterInit","addClass","activeMarkers","type","markerRange","ck-suggestion-marker-split","registerDescriptionCallback","data","schema","registerElementLabel","addMarker:suggestion:insertion","showSuggestionHighlights","TrackChangesEditing","includes","end","paragraph","format","mapper","plugins","isTouching","markerName","$text","insertion","highest","*Insert:* %0","downcastDispatcher","_enableDefaultAttributesIntegration","_descriptionFactory","createUIElement","*Change to:* %0","model","nodeAfter","get","insertParagraph","editor","options","commandName","writer","isLimit","ELEMENT_PARAGRAPH","consume","Paragraph","span","getItemLabel","checkChild","locale","toViewPosition","start","insert"];var px,bx;px=mx,bx=470,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x15")](){const t=this[Ex("0x1")];if(!t.plugins.has(Ex("0x8")))return;const e=t[Ex("0xc")],n=t[Ex("0x27")][Ex("0x35")](Ex("0x21"));n[Ex("0x30")][Ex("0x1e")](Ex("0x24"),(t=>Yr(e,Ex("0x6"),t))),n[Ex("0x2f")](Ex("0x24")),n[Ex("0x14")](Ex("0x0")),t.editing[Ex("0x2e")].on(Ex("0x1f"),Tx(t),{priority:Ex("0x2c")}),t[Ex("0x1c")].downcastDispatcher.on(Ex("0x1f"),((e,n,r)=>{r[Ex("0x2")][Ex("0x20")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x2c")});const r=n[Ex("0x30")];r[Ex("0x1b")]((n=>{if("insertion"!==n[Ex("0x18")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x28")](o)||!i[Ex("0x34")])return;const s=t[Ex("0x33")][Ex("0x1d")],x=i[Ex("0x34")];return s[Ex("0x12")](x)&&!s[Ex("0x5")](x)&&s[Ex("0xb")](x,Ex("0x2a"))?{type:Ex("0x2b"),content:Yr(e,Ex("0x2d"),r[Ex("0xa")](x,1))}:void 0})),this._registerLegacyDescription()}[Ex("0x10")](){const t=this.editor,e=t[Ex("0xc")];t[Ex("0x27")][Ex("0x35")]("TrackChangesEditing")[Ex("0x30")][Ex("0x1b")]((t=>{if(Ex("0x11")!=t[Ex("0x18")])return;const{data:n}=t;return n&&Ex("0x24")==n[Ex("0x3")]?{type:Ex("0x25"),content:Yr(e,Ex("0x32"),Yr(e,Ex("0x6")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x27")].get(Ex("0x21")),s=r[Ex("0x19")][Ex("0xe")],x=r.markerRange[Ex("0x23")],a=t.model.schema;if(!s[Ex("0x28")](x)||!s.nodeAfter)return;const c=s[Ex("0x34")];if(a[Ex("0x12")](c)&&!a.isLimit(c)&&a[Ex("0xb")](c,Ex("0x2a"))){if(!i.consumable[Ex("0x7")](r[Ex("0x19")],n[Ex("0x13")]))return;const t=i.writer[Ex("0x31")](Ex("0x9"),{class:Ex("0x1a")}),s=i[Ex("0x26")][Ex("0xd")](x);e&&o[Ex("0x17")][Ex("0x22")](r.markerName)&&i[Ex("0x4")][Ex("0x16")]("ck-suggestion-marker--active",t),i.writer[Ex("0xf")](s,t),i[Ex("0x26")].bindElementToMarker(t,r[Ex("0x29")])}}}const yx=["get","editor","*Remove all formatting*","TrackChangesEditing","_enableDefaultAttributesIntegration","afterInit","removeFormat","commandName","_descriptionFactory","registerDescriptionCallback","format","has","_registerLegacyDescription","formatBlock","plugins","type","locale","formatInline"];var Cx,Ax;Cx=yx,Ax=155,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0xc")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x0")]("RemoveFormatEditing")&&(t.plugins.get("TrackChangesEditing")[kx("0xb")]("removeFormat"),this[kx("0x1")]())}[kx("0x1")](){const t=this[kx("0x8")];t[kx("0x3")][kx("0x7")](kx("0xa"))[kx("0xf")][kx("0x10")]((e=>{if(kx("0x2")!=e[kx("0x4")]&&kx("0x6")!=e[kx("0x4")])return;const{data:n}=e;return n&&kx("0xd")==n[kx("0xe")]?{type:kx("0x11"),content:Yr(t[kx("0x5")],kx("0x9"))}:void 0}))}}const Sx=["discardSelectedSuggestions","plugins","goToNextRestrictedEditingException","trackChanges","get","RestrictedEditingModeEditing","discardSuggestion","acceptSelectedSuggestions","editor","discardAllSuggestions","enableCommand"];var Rx,vx;Rx=Sx,vx=302,function(t){for(;--t;)Rx.push(Rx.shift())}(++vx);const Nx=function(t,e){return Sx[t-=0]};class Lx extends t.Plugin{afterInit(){const t=this[Nx("0x3")];if(!t[Nx("0x7")].has(Nx("0x0")))return;const e=t[Nx("0x7")][Nx("0xa")]("TrackChangesEditing");e.enableCommand("goToPreviousRestrictedEditingException"),e[Nx("0x5")](Nx("0x8"));const n=t[Nx("0x7")][Nx("0xa")](Nx("0x0"));n.enableCommand(Nx("0x9")),n[Nx("0x5")]("acceptSuggestion"),n.enableCommand(Nx("0x1")),n[Nx("0x5")]("acceptAllSuggestions"),n[Nx("0x5")](Nx("0x4")),n[Nx("0x5")](Nx("0x2")),n.enableCommand(Nx("0x6"))}}const Mx=["plugins","insert","registerElementLabel","markerRange","toViewPosition","enableCommand","TrackChangesEditing","merge","addMarker:suggestion:insertion","addMarker:suggestion","high","downcastDispatcher","softBreak","get","getItems","split","editing","addClass","createPositionBefore","writer","_descriptionFactory","options","test","markerName","locale","includes","init","shiftEnter","mapper","ck-suggestion-marker--active","createUIElement","editor","consumable","name"];var wx,Ox;wx=Mx,Ox=226,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x4")](){const t=this[Fx("0x9")],e=t.plugins[Fx("0x19")](Fx("0x12"));e[Fx("0x11")](Fx("0x5")),t[Fx("0x1c")].downcastDispatcher.on(Fx("0x14"),Px(t),{priority:Fx("0x16")}),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",Px(t),{priority:Fx("0x16")}),t.data[Fx("0x17")].on(Fx("0x15"),((e,n,r)=>{r[Fx("0x21")].showSuggestionHighlights&&Px(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0x20")][Fx("0xe")]("softBreak",(e=>Yr(t[Fx("0x2")],"ELEMENT_LINE_BREAK",e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0xc")][Fx("0x19")](Fx("0x12"));if(!i[Fx("0xa")][Fx("0x0")](r.markerRange,n[Fx("0xb")]))return;const s=t.model;for(const t of r[Fx("0xf")][Fx("0x1a")]()){if(!t.is("element",Fx("0x18")))continue;const n="deletion"==r[Fx("0x1")][Fx("0x1b")](":")[1]?Fx("0x13"):"split",x=i.writer[Fx("0x8")]("span",{class:"ck-suggestion-marker-"+n}),a=i[Fx("0x6")][Fx("0x10")](s[Fx("0x1e")](t));e&&o.activeMarkers[Fx("0x3")](r[Fx("0x1")])&&i[Fx("0x1f")][Fx("0x1d")](Fx("0x7"),x),i[Fx("0x1f")][Fx("0xd")](a,x),i[Fx("0x6")].bindElementToMarker(x,r[Fx("0x1")])}}}const Bx=["restrictedEditingException","has","enableCommand","from","editor","change","formatBlock","commandParams","_descriptionFactory","selection","markInlineFormat","formatInline","registerDescriptionCallback","type","StandardEditingModeEditing","getRanges","value","get","forceValue","commandName","afterInit","plugins","FORMAT_RESTRICTED_ENABLED"];var Ux,jx;Ux=Bx,jx=337,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x5")](){const t=this[Gx("0xc")],e=t.model,n=t.locale;if(!t[Gx("0x6")][Gx("0x9")](Gx("0x16")))return;const r=t[Gx("0x6")][Gx("0x2")]("TrackChangesEditing"),i=Gx("0x8"),o=t.commands[Gx("0x2")](i);r[Gx("0xa")](i,((t,n={})=>{const s=e.document[Gx("0x11")];if(s.isCollapsed)return void t(n);const x=void 0!==n[Gx("0x3")]?n[Gx("0x3")]:!o[Gx("0x1")];e[Gx("0xd")]((()=>{const t=Array[Gx("0xb")](s[Gx("0x0")]());for(const n of t){const t=x?[n]:Yi(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0x10")][Gx("0x14")]((t=>{if(Gx("0xe")!=t[Gx("0x15")]&&Gx("0x13")!=t[Gx("0x15")])return;const{data:e}=t;return e&&e[Gx("0x4")]==i?e[Gx("0xf")][0].forceValue?{type:"format",content:Yr(n,Gx("0x7"))}:{type:"format",content:Yr(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Hx=["_descriptionFactory","_registerInlineAttribute","config","commandParams","locale","afterInit","has","normalizeConfig","registerDescriptionCallback","styleName","format","registerAttributeLabel","_registerBlockAttribute","getGhsAttributeNameForElement","style","*Remove format:* %0","inline","plugins","type","block","formatBlock","GeneralHtmlSupport","ghsAttributes","_registerLegacyDescription","DataSchema","editor","formatInline","FORMAT_STYLE","element","get","toLowerCase","*Set format:* %0","add","forceValue","definitions","TrackChangesEditing"];var zx,Wx;zx=Hx,Wx=186,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x23")](){const t=this.editor;if(!t[Kx("0xb")][Kx("0x0")]("Style")||!t[Kx("0xb")][Kx("0x0")](Kx("0x12")))return;const e=t[Kx("0xb")][Kx("0x17")](Kx("0x1d")),n=t[Kx("0x22")],r=t[Kx("0x20")][Kx("0x17")](Kx("0x8")),i=t[Kx("0xb")][Kx("0x17")](Kx("0xf")),o=t[Kx("0xb")].get("StyleUtils")[Kx("0x1")](t[Kx("0xb")][Kx("0x17")](Kx("0x12")),r[Kx("0x1c")]);e._enableDefaultAttributesIntegration(Kx("0x8"));const s=new Set;for(const t of o[Kx("0xd")]){const e=i[Kx("0x7")](t[Kx("0x16")]);s[Kx("0x1a")](e)}const x=new Set;for(const t of o[Kx("0xa")]){const e=i[Kx("0x7")](t[Kx("0x16")]);x.add(e);for(const e of t[Kx("0x10")])x[Kx("0x1a")](e)}for(const t of s)e[Kx("0x6")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));for(const t of x)e[Kx("0x1f")](t),e[Kx("0x1e")][Kx("0x5")](t,Yr(n,Kx("0x15")));this._registerLegacyDescription()}[Kx("0x11")](){const t=this[Kx("0x13")],e=t[Kx("0x22")];t.plugins[Kx("0x17")](Kx("0x1d"))[Kx("0x1e")][Kx("0x2")]((t=>{if(Kx("0xe")!=t[Kx("0xc")]&&Kx("0x14")!=t[Kx("0xc")])return;const{data:n}=t;return n&&Kx("0x8")===n.commandName?n[Kx("0x21")][0][Kx("0x1b")]?{type:Kx("0x4"),content:Yr(e,Kx("0x19"),n[Kx("0x21")][0][Kx("0x3")][Kx("0x18")]())}:{type:Kx("0x4"),content:Yr(e,Kx("0x9"),n[Kx("0x21")][0][Kx("0x3")].toLowerCase())}:void 0}))}}const Xx=["writer","ELEMENT_TABLE","tableCell","afterInit","add","classes","last","insertTableColumnRight","insertTableColumnLeft","max","ELEMENT_TABLE_ROW","ELEMENT_TABLE_WITH_TEXT","registerPostFixer","$textProxy","MAX_SAFE_INTEGER","insertion","MIN_SAFE_INTEGER","removeClass","getFirstRange","removeTableRow","insertTableRowAbove","rootName","position","plugins","rowspan","end","ELEMENT_TABLE_COLUMN_WITH_TEXT","length","getItems","TableEditing","getSelectionAffectedTableCells","$graveyard","getChanges","name","minColumn","enqueueChange","push","getChildren","execute","order","cell","data","startsWith","minRow","item","substr","TableUtils","_descriptionFactory","root","colspan","change:data","accept","get","insertTableRowBelow","document","getContainedElement","nodeBefore","getAttribute","getRanges","ELEMENT_TABLE_ROW_WITH_TEXT","insertTable","TrackChangesEditing","getColumnIndexes","detach","maxRow","registerElementLabel","insert","locale","hasAttribute","createTableWalker","*Remove:* %0","tableRow","refresh","filter","discard","tableColumn","above","addClass","start","table","options","registerDescriptionCallback","setSelection","addMarker:suggestion","_tableSuggestions","some","_getCoordsForCells","editor","toLowerCase","getCellLocation","isTouching","join","_getSuggestionCoords","mapper","min","registerCustomCallback","findAncestor","deletion","left","values","removeTableColumn","_tablePostFixingSubtypes","maxColumn","_suggestionFactory","change","isIntersectingWithRange","type","_setupColumnsRowsFixing","createRangeOn","showSuggestionHighlights","downcastDispatcher","suggestion","fromRange","element","tablePaste","getRowIndexes","commands","isInContent","model","*Insert:* %0","includes","from","getChangedMarkers","selection","forceValue","getSuggestion","createRangeIn","selectTableColumn","enableCommand","first","addRange","markMultiRangeInsertion","_splitMarkerName","differ","map","subType","low","span","ELEMENT_TABLE_COLUMN","nodeAfter","selectTableRow"];var $x,Zx;$x=Xx,Zx=139,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Qx=function(t,e){return Xx[t-=0]};class Yx extends t.Plugin{constructor(t){super(t),this[Qx("0x67")]=[Qx("0x49"),Qx("0x4d")],this[Qx("0x56")]=new Set}[Qx("0x5")](){const t=this[Qx("0x59")],e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];if(!t.plugins.has(Qx("0x1f")))return;const n=t[Qx("0x45")],r=t.plugins.get(Qx("0x3f")),i=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));r[Qx("0x31")][Qx("0x43")]("table",(t=>Yr(n,Qx("0x3"),t))),this[Qx("0x6d")](),r[Qx("0x82")](Qx("0x3e")),r[Qx("0x82")](Qx("0x1")),r.enableCommand(Qx("0x81"));for(const n of[Qx("0x16"),Qx("0x37")]){const o=t[Qx("0x76")][Qx("0x36")](n);r[Qx("0x82")](n,(n=>{t[Qx("0x78")].change((t=>{n();const s=Qx("0x4e")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x75")](x),c=s?a.first-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:c,endRow:c}),d=Array[Qx("0x7b")](u).map((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x49"))}))}))}for(const n of[Qx("0xa"),Qx("0x9")]){const o=t[Qx("0x76")][Qx("0x36")](n);r.enableCommand(n,(n=>{t[Qx("0x78")][Qx("0x6a")]((t=>{n();const s=Qx("0x64")===o[Qx("0x29")],x=i[Qx("0x20")](e),a=i[Qx("0x40")](x),c=s?a[Qx("0x83")]-1:a[Qx("0x8")]+1,l=x[0][Qx("0x62")](Qx("0x51")),u=i[Qx("0x47")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Qx("0x88")]((e=>t[Qx("0x6e")](e[Qx("0x2a")])));r[Qx("0x85")](d,Qx("0x4d"))}))}))}for(const n of[Qx("0x15"),Qx("0x66")]){const o=n.substr(11),s=o[Qx("0x5a")](),x=s[Qx("0x2f")](0,3)+Qx("0x8b"),a=Qx("0x51")+o,c="min"+o,l=Qx("0xb")+o;r[Qx("0x82")](n,(()=>{t[Qx("0x78")][Qx("0x6a")]((t=>{const o=i[Qx("0x20")](e),u=o[0][Qx("0x62")](Qx("0x51"));let d;if(Qx("0x15")==n){const t=i[Qx("0x75")](o);d={startRow:t[Qx("0x83")],endRow:t[Qx("0x8")],includeAllSlots:!0}}else{const t=i[Qx("0x40")](o);d={startColumn:t[Qx("0x83")],endColumn:t[Qx("0x8")],includeAllSlots:!0}}const g=i[Qx("0x47")](u,d),f=Array[Qx("0x7b")](g).map((({cell:t})=>t)),h=Jx(f[Qx("0x4b")]((t=>t[Qx("0x46")](x)))),m=Jx(f[Qx("0x4b")]((t=>!t[Qx("0x46")](x)))).map((e=>t[Qx("0x6e")](e))),p=r.markMultiRangeDeletion(m,a);if(p&&(Qx("0x49")==p[Qx("0x89")]||Qx("0x4d")==p[Qx("0x89")])){const e=this[Qx("0x5e")](p);for(const n of h){const r=t[Qx("0x6e")](n),o=i[Qx("0x5b")](n),a=n[Qx("0x3b")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Qx("0x84")](r)}}}))}))}function o(n){const r=Array[Qx("0x7b")](e.getRanges()).map((t=>s.LiveRange.fromRange(t)));t[Qx("0x78")][Qx("0x6a")]((e=>{const i=e.batch;n=n.filter((t=>Qx("0x21")!=t[Qx("0x32")].rootName)),e[Qx("0x54")](n),t[Qx("0x76")][Qx("0x36")]("removeTableRow")[Qx("0x4a")](),t[Qx("0x28")](Qx("0x15"),{forceDefaultExecution:!0}),t[Qx("0x78")].enqueueChange((()=>{t.model[Qx("0x25")](i,(t=>{const e=r[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));e.length>0&&t[Qx("0x54")](e);for(const t of r)t[Qx("0x41")]()}))}))}))}function a(n){t[Qx("0x78")][Qx("0x6a")]((r=>{const i=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange.fromRange(t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o[Qx("0x26")](e);for(const e of o)Qx("0x21")!=e[Qx("0x32")][Qx("0x17")]&&(r.setSelection(r.createPositionAt(e,0)),t[Qx("0x76")][Qx("0x36")](Qx("0x66")).refresh(),t[Qx("0x28")](Qx("0x66"),{forceDefaultExecution:!0}));const x=i.filter((t=>Qx("0x21")!=t.root[Qx("0x17")]));x.length>0&&r[Qx("0x54")](x);for(const t of i)t[Qx("0x41")]()}))}function c(t,e){return e.every((e=>t[Qx("0x57")]((t=>t[Qx("0x1b")].isEqual(e.start)||e.end.isEqual(t[Qx("0x50")])))))}function l(t,e){return t[Qx("0x57")]((t=>e.some((e=>t.end[Qx("0x5c")](e.start)))))}t[Qx("0x2b")][Qx("0x70")].on(Qx("0x55"),((t,e,n)=>{if(!n[Qx("0x52")][Qx("0x6f")])return;const r=e[Qx("0x2e")];if(!r)return;const i=n[Qx("0x5f")].toViewElement(r);function o(t){return Array.isArray(t)?t:[t]}i&&"tableCell"===r[Qx("0x23")]&&(0,x.setHighlightHandling)(i,n[Qx("0x2")],((t,e,n)=>n[Qx("0x4f")](o(e[Qx("0x7")]),t)),((t,e,n)=>n[Qx("0x13")](o(e.classes),t)))}),{priority:"highest"}),r._descriptionFactory[Qx("0x53")]((t=>{if("insertion"!=t[Qx("0x6c")]&&Qx("0x63")!=t[Qx("0x6c")])return;const e=t[Qx("0x39")]();if(null!=e&&e.is(Qx("0x73"),Qx("0x51"))){if(Qx("0x11")==t.type){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf")))).map((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x11"),content:Yr(n,"*Insert:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}if("deletion"==t[Qx("0x6c")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")]));if(e[Qx("0x1d")])return{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0xd"),'"'+e[Qx("0x5d")](" ")+'"'))}}}})),r[Qx("0x31")][Qx("0x53")]((t=>{if(Qx("0x49")==t[Qx("0x89")]){const e=t.getItems()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t.data)),r=this[Qx("0x5e")](t),i=r[Qx("0x42")]-r[Qx("0x2d")]+1;if(Qx("0x11")==t.type)return e[Qx("0x1d")]?{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x11"),content:Yr(n,Qx("0x79"),Yr(n,Qx("0xc"),i))};if(Qx("0x63")==t.type)return e[Qx("0x1d")]?{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x3d"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,Qx("0xc"),i))}}if(Qx("0x4d")==t[Qx("0x89")]){const e=t[Qx("0x1e")]()[Qx("0x4b")]((t=>t.is(Qx("0xf"))))[Qx("0x88")]((t=>t[Qx("0x2b")])),r=this[Qx("0x5e")](t),i=r[Qx("0x68")]-r[Qx("0x24")]+1;if(Qx("0x11")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"insertion",content:Yr(n,Qx("0x79"),Yr(n,Qx("0x1c"),[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:"insertion",content:Yr(n,"*Insert:* %0",Yr(n,Qx("0x8c"),i))};if(Qx("0x63")==t[Qx("0x6c")])return e[Qx("0x1d")]?{type:"deletion",content:Yr(n,Qx("0x48"),Yr(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Qx("0x5d")](" ")+'"']))}:{type:Qx("0x63"),content:Yr(n,"*Remove:* %0",Yr(n,Qx("0x8c"),i))}}})),r._suggestionFactory[Qx("0x61")]("insertion",Qx("0x49"),Qx("0x4c"),o),r._suggestionFactory[Qx("0x61")](Qx("0x63"),"tableRow",Qx("0x35"),o),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x4c"),a),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),"accept",a),r[Qx("0x69")][Qx("0x61")]("insertion",Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")][Qx("0x61")](Qx("0x63"),Qx("0x4d"),Qx("0x5d"),c),r[Qx("0x69")].registerCustomCallback(Qx("0x11"),"tableRow",Qx("0x5d"),l),r[Qx("0x69")][Qx("0x61")]("deletion",Qx("0x49"),Qx("0x5d"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Qx("0x78")][Qx("0x38")][Qx("0x7d")];return(n,r)=>{t[Qx("0x78")][Qx("0x6a")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Qx("0x1b")][Qx("0x3a")];x&&x[0]&&!1===x[0][Qx("0x7e")]&&(a=n[0][Qx("0x50")][Qx("0x0")]);const c=i[Qx("0x80")](a);if(Qx("0x21")==c[Qx("0x32")].rootName)return;const l=Array.from(e[Qx("0x3c")]())[Qx("0x88")]((t=>s.LiveRange[Qx("0x72")](t)));i.setSelection(c),t[Qx("0x76")][Qx("0x36")](o)[Qx("0x4a")](),x[Qx("0x26")]({forceDefaultExecution:!0}),t.execute(o,...x);const u=l[Qx("0x4b")]((t=>Qx("0x21")!=t[Qx("0x32")][Qx("0x17")]));u[Qx("0x1d")]>0&&i[Qx("0x54")](u);for(const t of l)t[Qx("0x41")]()}))}}[Qx("0x58")](t){const e=this[Qx("0x59")][Qx("0x19")][Qx("0x36")](Qx("0x30"));let n=Number[Qx("0x10")],r=Number[Qx("0x12")],i=Number[Qx("0x10")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Qx("0x21")==s.root[Qx("0x17")])continue;const{row:t,column:x}=e[Qx("0x5b")](s),a=s[Qx("0x46")](Qx("0x1a"))?s[Qx("0x3b")](Qx("0x1a"))-1:0,c=s.hasAttribute(Qx("0x33"))?s[Qx("0x3b")]("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}[Qx("0x6d")](){const t=this.editor,e=t[Qx("0x19")][Qx("0x36")](Qx("0x3f")),n=t[Qx("0x19")][Qx("0x36")](Qx("0x30"));t[Qx("0x78")][Qx("0x38")].on(Qx("0x34"),(()=>{const n=Array[Qx("0x7b")](t[Qx("0x78")].document[Qx("0x87")][Qx("0x7c")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Qx("0x86")](t);if(Qx("0x71")!=n)continue;if(null!=r.oldRange)continue;const s=e[Qx("0x7f")](i);this[Qx("0x67")][Qx("0x7a")](o)&&this[Qx("0x56")][Qx("0x6")](s)}}),{priority:Qx("0x8a")});const r=(t,e)=>{let r=!1;const i=e[Qx("0x6e")](t),o=t[Qx("0x62")](Qx("0x51")),s=n[Qx("0x5b")](t);for(const e of this[Qx("0x56")]){const n=e[Qx("0x89")],x=n[Qx("0x2c")](Qx("0x74")),a=n.substr(x?10:5),c=a[Qx("0x5a")](),l=c[Qx("0x2f")](0,3)+Qx("0x8b"),u=Qx("0x60")+a,d=Qx("0xb")+a;if(!e[Qx("0x77")])continue;if(o!=e[Qx("0x14")]()[Qx("0x50")][Qx("0x62")]("table"))continue;if(e[Qx("0x6b")](i))continue;const g=t[Qx("0x46")](l)?t.getAttribute(l)-1:0,f=this[Qx("0x5e")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e.addRange(i),r=!0)}return r};t.model[Qx("0x38")][Qx("0xe")]((e=>{let n=!1;for(const i of t.model[Qx("0x38")].differ[Qx("0x22")]())if(Qx("0x44")==i[Qx("0x6c")])if(Qx("0x49")==i[Qx("0x23")])for(const t of i[Qx("0x18")][Qx("0x0")][Qx("0x27")]())n=n||r(t,e);else Qx("0x4")==i.name&&(n=n||r(i[Qx("0x18")][Qx("0x0")],e));return n}))}[Qx("0x5e")](t){return this._getCoordsForCells(t.getRanges()[Qx("0x88")]((t=>t[Qx("0x50")][Qx("0x0")])))}}function Jx(t){return Array[Qx("0x7b")](new Set(t)[Qx("0x65")]())}const ta=["plugins","get","value","getSelectionAffectedTableCells","stop","afterInit","isInContent","_descriptionFactory","registerCustomCallback","locale","detach","accept","commands","getAncestors","splitTableCellHorizontally","findAncestor","has","mergeTableCellLeft","getCellLocation","requires","length","model","containsRange","root","mergeTableCells","formatInline","createTableWalker","direction","_suggestionFactory","registerDescriptionCallback","_isForcedDefaultExecutionBlock","_tablePostFixingSubtypes","format","add","_areMergableCells","_areSelectedCellsMergable","from","getRanges","*Merge cells*","map","TrackChangesEditing","TableUtils","fromRange","trackChanges","formatBlock","table","size","getSuggestions","subType","$graveyard","*Split cell:* vertically","document","commandName","push","deletion","find","low","execute","insertion","setSelection","selection","cell","type","element","*Split cell:* horizontally","markBlockFormat","markMultiRangeBlockFormat","_acceptFormatSuggestionCallbackFactory","return","forceDefaultExecution","tableCell","mergeTableCellRight","set:isEnabled","mergeTableCellDown","author","highest","enableCommand","splitTableCellVertically","editor","filter","change"];var ea,na;ea=ta,na=298,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x2d")](){return[Yx]}[ra("0x1f")](){const t=this.editor,e=t[ra("0x2f")][ra("0x4d")].selection,n=t[ra("0x23")];if(!t[ra("0x1a")][ra("0x2a")]("TableEditing"))return;const r=t[ra("0x1a")].get(ra("0x42")),i=t[ra("0x1a")][ra("0x1b")](ra("0x43")),o=t[ra("0x1a")].get(Yx);o[ra("0x39")][ra("0x4f")](ra("0x32")),r[ra("0x15")]("mergeTableCells",(()=>{const e=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")][ra("0x5")]);t[ra("0x2f")][ra("0x19")]((()=>{r[ra("0xb")](e,{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))})),t[ra("0x26")][ra("0x1b")]("mergeTableCells").on(ra("0x2"),((e,n)=>{t[ra("0x26")][ra("0x1b")](ra("0x45"))[ra("0x1c")]&&(n[ra("0x2e")]>0&&n[n[ra("0x2e")]-1]&&n[n.length-1][ra("0xe")]||r[ra("0x38")]||this[ra("0x3d")]()||e[ra("0x1e")]())}),{priority:ra("0x14")});for(const e of["mergeTableCellUp","mergeTableCellRight",ra("0x12"),ra("0x2b")]){const n=t[ra("0x26")].get(e);r[ra("0x15")](e,(()=>{const e=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf")))),i=n[ra("0x1c")];t[ra("0x2f")][ra("0x19")]((()=>{r.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],ra("0x32"))}))}))}for(const e of["splitTableCellVertically",ra("0x28")]){const n=t[ra("0x26")][ra("0x1b")](e);r.enableCommand(e,(()=>{const o=i[ra("0x1d")](t[ra("0x2f")][ra("0x4d")].selection)[0],s=o[ra("0x29")](ra("0x47")),{column:x,row:a}=i[ra("0x2c")](o);let c=[];if("horizontally"==n[ra("0x35")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[ra("0x6")]))}else{const t=i[ra("0x34")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x3e")](t).map((t=>t[ra("0x6")]))}t[ra("0x2f")][ra("0x19")]((t=>{r[ra("0xa")](t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x21")].registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x7")]&&"formatInline"!=t[ra("0x7")])return;const{data:e}=t;return e&&ra("0x32")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x40"))}:void 0})),r._descriptionFactory[ra("0x37")]((t=>{if(ra("0x46")!=t.type&&ra("0x33")!=t.type)return;const{data:e}=t;return e?ra("0x16")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x4c"))}:ra("0x28")==e[ra("0x4e")]?{type:ra("0x3a"),content:Yr(n,ra("0x9"))}:void 0:void 0}));const x=o[ra("0xc")]();for(const t of["mergeTableCellUp",ra("0x10"),ra("0x12"),"mergeTableCellLeft"])r[ra("0x36")][ra("0x22")](ra("0x46"),t,ra("0x25"),x);for(const t of[ra("0x16"),ra("0x28")])r._suggestionFactory[ra("0x22")](ra("0x46"),t,"accept",x);r._suggestionFactory[ra("0x22")]("formatBlock",ra("0x32"),ra("0x25"),(n=>{t[ra("0x2f")][ra("0x19")]((r=>{const i=Array.from(e[ra("0x3f")]())[ra("0x41")]((t=>s.LiveRange[ra("0x44")](t)));r.setSelection(n),t[ra("0x26")][ra("0x1b")](ra("0x32")).refresh(),t[ra("0x2")](ra("0x32"),{forceDefaultExecution:!0});const o=i[ra("0x18")]((t=>ra("0x4b")!=t[ra("0x31")].rootName));o.length>0&&r[ra("0x4")](o);for(const t of i)t[ra("0x24")]()}))}));for(const e of["mergeTableCellUp",ra("0x12"),"mergeTableCellLeft",ra("0x10")]){const n=t[ra("0x26")][ra("0x1b")](e);n.on(ra("0x11"),((e,r,i)=>{if(i){const r=t[ra("0x2f")][ra("0x4d")][ra("0x5")].getFirstPosition()[ra("0x27")]()[ra("0x0")]((t=>t.is(ra("0x8"),ra("0xf"))));this._areMergableCells(n[ra("0x1c")],r)||(e[ra("0xd")]=!1,e[ra("0x1e")]())}}),{priority:ra("0x1")})}}[ra("0x3d")](){const t=this[ra("0x17")].commands[ra("0x1b")](ra("0x32")),e=this[ra("0x17")][ra("0x1a")].get(ra("0x43"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[ra("0x17")][ra("0x2f")][ra("0x4d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x3c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[ra("0x17")][ra("0x1a")][ra("0x1b")](ra("0x42")),r=this.editor.model.createRangeOn(t),i=this[ra("0x17")][ra("0x2f")].createRangeOn(e),o=new Set,s=new Set;for(const t of n[ra("0x49")]())if((ra("0x3")==t.type||ra("0x50")==t[ra("0x7")]||ra("0x32")==t[ra("0x4a")])&&t[ra("0x20")])for(const e of t[ra("0x3f")]())e[ra("0x30")](r,!0)&&o[ra("0x3b")](t.type+":"+t[ra("0x13")].id),e.containsRange(i,!0)&&s[ra("0x3b")](t[ra("0x7")]+":"+t.author.id);if(o[ra("0x48")]!=s[ra("0x48")])return!1;for(const t of o)if(!s[ra("0x2a")](t))return!1;return!0}}const oa=["setTableColumnHeader","_handleLegacySuggestions","editing","mapper","_acceptFormatSuggestionCallbackFactory","setAttribute","createTableWalker","locale","_suggestionFactory","type","name","get","formatBlock","writer","requires","ck-suggestion-marker-","commandName","addMarker:suggestion","_descriptionFactory","removeAttribute","data","registerDescriptionCallback","removeMarker:suggestion","registerCustomCallback","forceValue","addClass","downcastDispatcher","_enableDefaultAttributesIntegration","getSuggestion","activeMarkers","format","setTableRowHeader","nodeBefore","FORMAT_HEADER_ROW","registerAttributeLabel","FORMAT_HEADER_COLUMN","removeClass","headingRows","commandParams","plugins","stop","_splitMarkerName","bindElementToMarker","consume","ck-suggestion-marker--active","parent","FORMAT_REGULAR_ROW","end","toViewElement","has","cell","getCellLocation","options","start","includes","headingColumns","accept","_registerLegacyDescription","markerName","item","afterInit","highest","data-suggestion","*Format:* %0","unbindElementFromMarkerName","TrackChangesEditing","editor","markerRange","TableUtils"];var sa,xa;sa=oa,xa=194,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x1b")](){return[Yx]}[aa("0x4")](){const t=this[aa("0xa")];if(!t[aa("0x34")][aa("0x3e")]("TableEditing"))return;const e=t[aa("0x14")],n=t.plugins[aa("0x18")](aa("0x9"));n[aa("0x28")](aa("0x2c"),[],[aa("0x32")]),n._enableDefaultAttributesIntegration("setTableColumnHeader",[],[aa("0x44")]),n[aa("0x1f")][aa("0x2f")](aa("0x32"),Yr(e,aa("0x2e"))),n[aa("0x1f")][aa("0x2f")]("headingColumns",Yr(e,aa("0x30"))),this[aa("0xe")]()}[aa("0xe")](){const t=this[aa("0xa")].plugins[aa("0x18")](aa("0x9")),e=this[aa("0xa")][aa("0x34")].get(aa("0xc")),n=this[aa("0xa")][aa("0x34")][aa("0x18")](Yx)[aa("0x11")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x36")](o[aa("0x2")]),c=t[aa("0x29")](a),l=c[aa("0x21")];if(aa("0x19")!=c[aa("0x16")]||!l||aa("0xd")!=l[aa("0x1d")])return;if(o[aa("0x3")])return void i[aa("0x35")]();if(!s.consumable[aa("0x38")](o[aa("0xb")],i[aa("0x17")]))return;const u=o[aa("0xb")][aa("0x42")].nodeAfter,d=o.markerRange[aa("0x3c")][aa("0x2d")],g=u[aa("0x3a")][aa("0x3a")],{column:f}=e.getCellLocation(u),{column:h}=e[aa("0x40")](d);for(let i=f;i<=h;i++){const c=e[aa("0x13")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x3f")],c=s[aa("0x10")][aa("0x3d")](i);s[aa("0x1a")][aa("0x26")](aa("0x1c")+x,c),r&&s[aa("0x1a")][aa("0x12")](aa("0x6"),a,c),s[aa("0x10")][aa("0x37")](c,o[aa("0x2")]),n&&(t[aa("0x2a")][aa("0x43")](o[aa("0x2")])?s[aa("0x1a")][aa("0x26")](aa("0x39"),c):s[aa("0x1a")].removeClass(aa("0x39"),c))}}}}t._suggestionFactory[aa("0x24")](aa("0x19"),aa("0x2c"),aa("0x0"),n),t[aa("0x15")][aa("0x24")]("formatBlock",aa("0xd"),aa("0x0"),n),this[aa("0xa")][aa("0xf")].downcastDispatcher.on(aa("0x1e"),r(),{priority:aa("0x5")}),this[aa("0xa")].data[aa("0x27")].on(aa("0x1e"),((t,e,n)=>{n[aa("0x41")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x5")}),this[aa("0xa")][aa("0xf")][aa("0x27")].on(aa("0x23"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x36")](n[aa("0x2")]),s=t[aa("0x29")](o),x=s.data;if(aa("0x19")!=s[aa("0x16")]||!x||aa("0xd")!=x[aa("0x1d")])return;const a=r[aa("0x10")].markerNameToElements(n[aa("0x2")]);if(a)for(const t of a)r[aa("0x1a")][aa("0x31")](aa("0x1c")+i,t),r[aa("0x1a")][aa("0x31")](aa("0x39"),t),r[aa("0x1a")][aa("0x20")]("data-suggestion",t),r.mapper[aa("0x8")](t,n[aa("0x2")])}),{priority:"highest"}),this[aa("0x1")]()}[aa("0x1")](){const t=this[aa("0xa")],e=t[aa("0x14")];function n(t){return{type:aa("0x2b"),content:Yr(e,aa("0x7"),t)}}t[aa("0x34")][aa("0x18")](aa("0x9"))[aa("0x1f")][aa("0x22")]((t=>{if(aa("0x19")!=t[aa("0x16")])return;const{data:r}=t;if(r){if(aa("0x2c")==r[aa("0x1d")]){const t=r[aa("0x33")][0][aa("0x25")];return n(Yr(e,aa(t?"0x2e":"0x3b")))}if(aa("0xd")==r.commandName){const t=r.commandParams[0][aa("0x25")];return n(Yr(e,t?aa("0x30"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["$graveyard","getMarkers","removeRows","tablePasteColumn","getRanges","tableCellBackgroundColor","selection","content","schema","markMultiRangeInsertion","startsWith","position","tableCellPadding","push","root","accept","deletionRanges","previousSibling","start","previous","has","includes","getSuggestions","isInContent","model","markerAttributes","getChildren","getShiftedBy","fill","conversion","columnInsertionIndexes","insertRows","_getCoordsForCells","subType","activeMarkers","differ","getChild","nodeAfter","isEqual","endRow","hasSuggestion","change","deletion","nextSibling","discard","insertion","forceDefaultExecution","getAttributes","createElement","afterInit","rowInsertionIndexes","_replaceTableSlotCell","getColumns","setAttribute","insertContent","updateMarker","type","_isForcedDefaultExecutionBlock","tablePasteChainId","TableClipboard","tableCellBorderWidth","cell","find","_tablePostFixingSubtypes","newRange","editor","name","suggestionUnloaded","tableCellBorderColor","batch","ck-suggestion-marker","removeMarkers","getRows","paragraph","end","isEmpty","some","suggestion:formatBlock:tablePasteCell","markerToHighlight","join","createRangeOn","value","editingDowncast","first","editing","ck-suggestion-marker--active","markerName","table","attributes","add","remove","stop","ck-suggestion-marker-insertion","columnInsertionRanges","map","tableCellBorderStyle","endColumn","tablePasteCell","filter","getRange","last","tableCellSuggestion","tablePasteRow","wrap","registerPostFixer","*Replace table cells*","suggestion-td","getSuggestion","getSuggestionCallback","high","trackChanges","clipboardOutput","containsRange","columns","dataDowncast","insert","findAncestor","row","markMultiRangeDeletion","TrackChangesEditing","fromEntries","getItems","low","getSelectionAffectedTableCells","_splitMarkerName","getAllAdjacentSuggestions","createPositionBefore","formatBlock","markMultiRangeBlockFormat","removeMarker","for","createRangeIn","setAttributes","insertionRanges","createTableWalker","elementToElement","rowInsertionRanges","getRowIndexes","oldRange","keys","documentSelection","plugins","view","element","getTableIfOnlyTableInContent","insertColumns","listenTo","set","get","_suggestionFactory","entries","suggestion","author","options","getContainedElement","Users","from","removeColumns","registerCustomCallback","createRange","length","locale","registerDescriptionCallback","document","commands","tablePaste","_createdBatches"];var ua,da;ua=la,da=323,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x47"),ga("0x4f"),ga("0x6a"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",ga("0x10"),ga("0x17")],ha=Object[ga("0x83")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get requires(){return[Yx]}[ga("0x3c")](){const t=this.editor;if(!t[ga("0x98")][ga("0x1f")]("TableClipboard"))return;const n=t.plugins[ga("0x9f")](ga("0x82")),r=t[ga("0x98")][ga("0x9f")]("TableUtils"),i=t[ga("0x98")].get(Yx),o=t[ga("0x98")].get("TableClipboard");i[ga("0x4a")].push(ga("0x71"),ga("0xe")),t[ga("0x23")][ga("0x13")].register("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t.conversion[ga("0x92")]({model:ga("0x70"),view:ga("0x75")});let s=null;t.model.on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x4")]-1];l&&l[ga("0x39")]||n[ga("0x44")]||this[ga("0x4c")].commands[ga("0x9f")](ga("0x79"))[ga("0x5c")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x97")))return!1;const o=i[ga("0x9b")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x86")](n.document[ga("0x11")]);if(!s[ga("0x4")])return!1;const x=s[0][ga("0x7f")](ga("0x62")),a=r[ga("0x94")](s),c=r.getColumnIndexes(s),l={startRow:a[ga("0x5e")],endRow:a.last,startColumn:c.first,endColumn:c[ga("0x6f")]};return 1==s[ga("0x4")]&&(l[ga("0x32")]+=r[ga("0x53")](o)-1,l[ga("0x6b")]+=r[ga("0x3f")](o)-1),ba(x,l,r)}(a,c,t[ga("0x23")],r,o)&&(i[ga("0x66")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x23")][ga("0x34")]((()=>{t[ga("0x23")][ga("0x41")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x4")]&&n[ga("0x14")](i,"tablePasteRow",{tablePasteChainId:r}),o[ga("0x4")]&&n[ga("0x14")](o,ga("0xe"),{tablePasteChainId:r}),a.length&&n[ga("0x14")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x4")]&&n[ga("0x81")](c,ga("0x9"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x8b")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x6c"),{tablePasteChainId:r});if(u){const e=u[ga("0xc")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x23")][ga("0x5b")](r),s=e[ga("0x49")]((t=>t[ga("0x6e")]().isEqual(o)));s&&n[ga("0x18")]([s.name,i])}n[ga("0x4")]&&u[ga("0x40")](ga("0x24"),Object[ga("0x83")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ga("0x98")].get(ga("0x46")).on(ga("0x3e"),((t,e)=>{const[n,r,,i]=e;if(!s)return;t.stop();const o=n[ga("0x48")],x=r,a=pa(o),c=pa(x);t.return=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o[ga("0x2f")](0));for(const t of Array[ga("0x0")](x[ga("0x25")]()))i[ga("0x7e")](t,o,ga("0x55"));const t=s[ga("0x3d")][ga("0x20")](n[ga("0x80")]),e=s[ga("0x29")].includes(n.column);t||e||(l=i[ga("0x8e")](o))}else c&&!a&&(u=i[ga("0x8e")](o));else{const t=i[ga("0x3b")](ga("0x70")),e=i.createElement(ga("0x70"));i[ga("0x72")](i.createRangeIn(o),e),i[ga("0x7e")](t,o,0);for(const e of Array.from(x[ga("0x25")]()))i[ga("0x7e")](e,t,"end");l=i[ga("0x5b")](t),u=i.createRangeOn(e)}const d=Array.from(x[ga("0x3a")]())[ga("0x6d")]((([t])=>fa[ga("0x20")](t)));s.cells[ga("0x18")]({element:o,attributes:d[ga("0x4")]?Object.fromEntries(d):null}),l&&s[ga("0x90")].push(l),u&&s[ga("0x1b")][ga("0x18")](u)}),{priority:ga("0x78")}),r.on(ga("0x9c"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x7c")]||1;s[ga("0x29")]=new Array(a)[ga("0x27")](x)[ga("0x69")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x68")][ga("0x18")](t[ga("0x23")].createRangeOn(e))}),{priority:ga("0x85")}),r.on(ga("0x2a"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x3d")]=new Array(a)[ga("0x27")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x91")](i,{startRow:x,endRow:x+a-1}))s[ga("0x93")][ga("0x18")](t[ga("0x23")][ga("0x5b")](e))}),{priority:ga("0x85")}),n._descriptionFactory[ga("0x6")]((e=>{if(e[ga("0x2c")]&&e.subType[ga("0x15")](ga("0x9")))return e.previous?{}:{type:"insertion",content:Yr(t[ga("0x5")],ga("0x74"))}}));const x=()=>!1;for(const t of[ga("0x9"),ga("0xe"),ga("0x71"),ga("0x6c")])n._suggestionFactory[ga("0x2")]("insertion",t,ga("0x5a"),x),n[ga("0xa0")].registerCustomCallback(ga("0x35"),t,ga("0x5a"),x),n[ga("0xa0")][ga("0x2")](ga("0x8a"),t,ga("0x5a"),x);n._suggestionFactory.registerCustomCallback(ga("0x8a"),"tablePasteCell",ga("0x37"),x),n[ga("0xa0")][ga("0x2")]("formatBlock",ga("0x6c"),"accept",((e,n,r)=>{const i=e[ga("0x69")]((t=>t.getContainedElement()))[ga("0x6d")]((t=>t)),o=new Map(i[ga("0x69")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o.set(t,e);else if(r&&r[ga("0x24")])for(const[e,n]of Object[ga("0xa1")](r[ga("0x24")])){const r=t[ga("0x23")].markers[ga("0x9f")](e),i=r?r.getRange()[ga("0xa5")]():null;i&&o[ga("0x9e")](i,n)}t[ga("0x23")][ga("0x34")]((t=>{for(const[e,n]of o)t[ga("0x8f")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0xa0")][ga("0x2")](e,ga("0x9"),r,((i,o,s)=>{t[ga("0x23")][ga("0x34")]((t=>{const x=[];for(const t of i){const e=t[ga("0x1d")][ga("0x30")];e.is(ga("0x9a"),ga("0x70"))&&x.push(e)}n[ga("0xa0")][ga("0x77")](e,null,r)(i,o,s);for(const e of x)ga("0xb")!=e[ga("0x19")].rootName&&t.unwrap(e)}))}))};a(ga("0x38"),ga("0x1a")),a("insertion",ga("0x37")),a(ga("0x35"),"accept"),a(ga("0x35"),ga("0x37")),n[ga("0xa0")].registerCustomCallback(ga("0x38"),ga("0x71"),ga("0x37"),(t=>{const e=t.map((t=>t[ga("0xa5")]())),n=e[0][ga("0x7f")]("table"),{minRow:o,maxRow:s}=i[ga("0x2b")](e);r[ga("0xd")](n,{at:o,rows:s-o+1})})),n._suggestionFactory.registerCustomCallback(ga("0x38"),"tablePasteColumn","discard",(t=>{const e=t[ga("0x69")]((t=>t.getContainedElement())),n=e[0].findAncestor(ga("0x62")),{minColumn:o,maxColumn:s}=i[ga("0x2b")](e);r[ga("0x1")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x2c")]||!e.subType[ga("0x15")](ga("0x9")))return;const r=e[ga("0x63")][ga("0x45")],i=n[ga("0x21")]()[ga("0x6d")]((t=>t[ga("0x22")]&&t[ga("0x63")]&&t.attributes[ga("0x45")]==r));i[ga("0x4")]&&e.getAllAdjacentSuggestions().length!=i[ga("0x4")]&&i.reduce(((t,e)=>(t.next=e,e[ga("0x1e")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t.markerName),i=[ga("0x51"),ga("0x67")],o=n[ga("0x2d")][ga("0x20")](t[ga("0x61")]);return o&&i[ga("0x18")](ga("0x60")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ga("0x78")}),n.on(ga("0x4e"),c,{priority:"high"}),t[ga("0x23")][ga("0x7")][ga("0x73")]((()=>{let e=!1;const r=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x87")](i);if(ga("0xa2")!=r||"deletion"!=s||o[ga("0x95")])continue;if(!n[ga("0x33")](x))continue;const a=n[ga("0x76")](x)[ga("0xf")](),c=t[ga("0x98")][ga("0x9f")](ga("0xa6")).me;for(const t of n[ga("0x21")]())if(t[ga("0x22")]&&t[ga("0xa3")]==c&&ga("0x8a")==t[ga("0x43")]&&ga("0x6c")==t[ga("0x2c")]&&t[ga("0xf")]().every((t=>a[ga("0x57")]((e=>e[ga("0x7b")](t,!0))))))for(const n of t[ga("0x88")]())n[ga("0x22")]&&(n[ga("0x37")](),e=!0)}return e})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{const r=t[ga("0x8")][ga("0x9f")]("redo");if(!r||!r[ga("0xa")].has(e[ga("0x50")]))return!1;let i=!1;const o=t[ga("0x98")][ga("0x9f")]("Users").me,s=t[ga("0x23")].document[ga("0x2e")].getChanges(),x=Array[ga("0x0")](t[ga("0x23")][ga("0x7")].differ.getChangedMarkers())[ga("0x6d")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x87")](t);return ga("0xa2")==r&&ga("0x9")==i&&s==o.id&&!e[ga("0x95")]}));for(const t of s){if(ga("0x7e")!=t[ga("0x43")]||ga("0x70")!=t.name||1!=t[ga("0x4")])continue;const n=e[ga("0x3")](t[ga("0x16")],t[ga("0x16")][ga("0x26")](1));if(!x[ga("0x49")]((({data:t})=>t[ga("0x4b")][ga("0x31")](n))))for(const{name:t,data:r}of x)if(n.containsRange(r[ga("0x4b")])){e[ga("0x42")](t,{range:n}),i=!0;break}}return i})),t[ga("0x23")][ga("0x7")][ga("0x73")]((e=>{let r=!1;const i=t.plugins[ga("0x9f")]("Users").me,o=n.getSuggestions()[ga("0x6d")]((t=>t[ga("0x22")]&&t.author==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x9")==t[ga("0x2c")])for(const e of t[ga("0xc")]()){const n=e[ga("0x6e")]()[ga("0xa5")]();if(n)if(n.is(ga("0x9a"),ga("0x70"))&&pa(n)){t[ga("0x8c")](e[ga("0x4d")]),s[ga("0x64")](n),r=!0;const i=n[ga("0x36")],o=n[ga("0x1c")],a=i&&i.is("element","tableCellSuggestion"),c=o&&o.is(ga("0x9a"),ga("0x70"));a&&!s.has(i)&&x.add(i),c&&!s.has(o)&&x[ga("0x64")](o)}else n.is(ga("0x9a"),"paragraph")&&n[ga("0x56")]&&(t[ga("0x8c")](e[ga("0x4d")]),r=!0)}else if(ga("0x6c")==t[ga("0x2c")]){if(!t[ga("0x63")]||!t.attributes[ga("0x45")])continue;const e=t[ga("0x63")][ga("0x24")];if(e&&Object[ga("0x96")](e)[ga("0x4")])continue;const n=t[ga("0x63")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x2c")]&&e[ga("0x2c")][ga("0x15")]("tablePaste")){if(!e[ga("0x63")][ga("0x45")]){s=!1;break}if(e.id!=t.id&&e[ga("0x63")].tablePasteChainId==n){i=!1;break}}s&&i&&(t[ga("0x52")](),r=!0)}for(const t of s)e[ga("0x65")](t);for(const t of x)e.unwrap(t);return r})),t[ga("0x28")][ga("0x8d")](ga("0x5d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>l(t),converterPriority:ga("0x78")}),t[ga("0x28")][ga("0x8d")](ga("0x7d"))[ga("0x59")]({model:ga("0x58"),view:(t,e)=>e[ga("0xa4")].showSuggestionHighlights?l(t,!1):null,converterPriority:ga("0x78")});const u=t[ga("0x5f")][ga("0x99")];this[ga("0x9d")](u[ga("0x7")],ga("0x7a"),((t,e)=>{const n=[];for(const t of u[ga("0x8e")](e[ga("0x12")])[ga("0x84")]())t.is(ga("0x9a"),ga("0x75"))&&n.push(t);u[ga("0x34")]((t=>{for(const e of n)t.move(t[ga("0x8e")](e),t[ga("0x89")](e)),t.remove(e)}))}))}}function pa(t){if(t[ga("0x56")])return!0;const e=t[ga("0x2f")](0);return e.is(ga("0x9a"),ga("0x54"))&&e[ga("0x56")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["resizeTable","resizeTableWidth","registerCustomCallback","has","get","handleSuggestionDescription","document","getSuggestionCallback","TableColumnResizeEditing","handleResizeTableWidthCommand","TrackChangesEditing","subType","getSuggestions","columnWidths","table","plugins","afterInit","*Format:* resize table","bind","tableWidth","getTableColumnsWidths","change","discard","format","getColumnGroupElement","markBlockFormat","_descriptionFactory","formatBlock","_suggestionFactory","data","commandParams","accept","formatInline","getSelectedElement","type","enableCommand","author","model","locale","editor"];var _a,Ta;_a=Ea,Ta=251,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x5")](){if(!this[ya("0x1c")][ya("0x4")][ya("0x20")](ya("0x25")))return;const t=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TrackChangesEditing");t[ya("0x18")](ya("0x1e"),this.handleResizeTableWidthCommand[ya("0x7")](this)),t[ya("0x11")][ya("0x1f")]("formatBlock",ya("0x1d"),ya("0x14"),t[ya("0x11")].getSuggestionCallback(ya("0x10"),null,ya("0xb"))),t[ya("0x11")][ya("0x1f")](ya("0x10"),ya("0x1d"),ya("0xb"),t[ya("0x11")][ya("0x24")](ya("0x10"),null,ya("0x14"))),t[ya("0xf")].registerDescriptionCallback(this[ya("0x22")][ya("0x7")](this))}[ya("0x26")](t,e){const n=this[ya("0x1c")].plugins.get(ya("0x27")),r=this[ya("0x1c")][ya("0x4")][ya("0x21")]("TableColumnResizeEditing"),i=e[ya("0x3")]||this.editor.model[ya("0x23")].selection[ya("0x16")]();this.editor[ya("0x1a")][ya("0xa")]((()=>{const o=r[ya("0xd")](i);let s=o?r[ya("0x9")](o):null,x=i.getAttribute(ya("0x8"))||null;const a=e[ya("0x8")]||x,c=e.columnWidths||s,l=this[ya("0x1c")].plugins.get("Users").me;for(const t of n[ya("0x1")]()){const e=t.getContainedElement();if(ya("0x1d")===t[ya("0x0")]&&e===i){t[ya("0x19")]!==l&&t[ya("0xb")]();const e=t[ya("0x12")][ya("0x13")];x=e[0][ya("0x8")],s=e[0][ya("0x2")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0xe")](i,{commandName:ya("0x1e"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1d")},[],ya("0x1d"))}))}handleSuggestionDescription(t){if(ya("0x10")!=t[ya("0x17")]&&ya("0x15")!=t[ya("0x17")])return;const{data:e}=t;if(e&&ya("0x1d")===e.formatGroupId){const t=ya("0x6");return{type:ya("0xc"),content:Yr(this[ya("0x1c")][ya("0x1b")],t)}}}}const Aa=["insertTemplate","get","plugins","TrackChangesEditing","editor"];var ka,Ia;ka=Aa,Ia=176,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Sa=function(t,e){return Aa[t-=0]};class Ra extends t.Plugin{afterInit(){const t=this[Sa("0x3")];t[Sa("0x1")].has("Template")&&t[Sa("0x1")][Sa("0x0")](Sa("0x2")).enableCommand(Sa("0x4"))}}const va=["insertTableOfContents","registerElementLabel","plugins","ELEMENT_TABLE_OF_CONTENTS","locale","tableOfContents","get","afterInit","TrackChangesEditing","enableCommand"];var Na,La;Na=va,La=258,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x9")](){const t=this.editor;if(!t.commands[Ma("0x8")](Ma("0x2")))return;t[Ma("0x4")].get("TrackChangesEditing")[Ma("0x1")]("insertTableOfContents");const e=t.plugins[Ma("0x8")](Ma("0x0")),n=t[Ma("0x6")];e._descriptionFactory[Ma("0x3")](Ma("0x7"),(t=>Yr(n,Ma("0x5"),t)))}}const Oa=["isEqual","document","start","getNearestSelectionRange","forward","plugins","registerElementLabel","newRange","differ","_splitMarkerName","afterInit","has","TrackChangesEditing","model","end","registerPostFixer","nodeBefore","title-content","removeMarker","get","from","Title","locale","isTouching","isCollapsed","suggestion"];var Fa,Da;Fa=Oa,Da=332,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0x10")](){const t=this.editor;if(!t[Pa("0xb")][Pa("0x11")](Pa("0x1")))return;const e=t[Pa("0xb")][Pa("0x19")](Pa("0x12"));e._descriptionFactory[Pa("0xc")](Pa("0x17"),(()=>Yr(t[Pa("0x2")],"ELEMENT_TITLE"))),t[Pa("0x13")][Pa("0x7")][Pa("0x15")]((n=>{let r=!1;const i=Array[Pa("0x0")](t[Pa("0x13")][Pa("0x7")][Pa("0xe")].getChangedMarkers());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0xf")](o);if(Pa("0x5")!==i||!s[Pa("0xd")])continue;const x=s[Pa("0xd")],a=x[Pa("0x14")][Pa("0x16")];if(!a||!a.is("element",Pa("0x17")))continue;if(!x[Pa("0x8")][Pa("0x3")](x[Pa("0x14")]))continue;const c=t.model.schema[Pa("0x9")](x[Pa("0x14")],Pa("0xa"));if(c&&c[Pa("0x4")]){const t=n.createRange(x[Pa("0x8")],c[Pa("0x8")]);t[Pa("0x6")](x)||(n.updateMarker(o,{range:t}),r=!0)}r||(n[Pa("0x18")](o),r=!0)}return r}))}}const Ua=["afterInit","redo","editor","plugins","get"];var ja,Ga;ja=Ua,Ga=402,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this[Va("0x0")],e=t[Va("0x1")][Va("0x2")]("TrackChangesEditing");t.plugins.has("UndoEditing")&&(e.enableCommand("undo"),e.enableCommand(Va("0x4")))}}const za=["enableCommand","plugins","has","requires","TrackChangesEditing","editor","get","afterInit","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=198,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x3")](){return[Yx]}[qa("0x7")](){const t=this[qa("0x5")];t.plugins[qa("0x2")]("TableCaptionEditing")&&t[qa("0x1")][qa("0x6")](qa("0x4"))[qa("0x0")](qa("0x8"))}}const $a=["findAncestor","editor","TrackChangesEditing","getAttribute","tableCellProperties","TableUtils","table","pluginName","setAttribute","tableProperties","_descriptionFactory","getSuggestionCallback","tableCellBorderColor","tableBorderStyle","formatBlock","handleDiscardAction","_getSuggestion","*Format:* change table properties","afterInit","change","_handlePropertyChange","_suggestionFactory","nodeAfter","format","plugins","registerDescriptionCallback","TrackChangesTableProperties","tableCellVerticalAlignment","subType","join","getSelectionAffectedTableCells","discard","tableCellBorderStyle","locale","get","registerCustomCallback","tableCellHeight","document","handleSuggestionDescription","tableHeight","enqueueChange","getContainedElement","tableCellBorderWidth","getSuggestions","tableCellPadding","accept","tableBackgroundColor","TablePropertiesEditing","model","enableCommand","tableCellHorizontalAlignment","getFirstPosition"];var Za,Qa;Za=$a,Qa=182,function(t){for(;--t;)Za.push(Za.shift())}(++Qa);const Ya=function(t,e){return $a[t-=0]};class Ja extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",Ya("0x27"),"tableBorderWidth","tableAlignment","tableWidth",Ya("0xd"),Ya("0x14")],this[Ya("0x1e")]=[Ya("0x26"),Ya("0x6"),Ya("0x10"),Ya("0x12"),"tableCellWidth",Ya("0xa"),"tableCellBackgroundColor",Ya("0x18"),Ya("0x1")]}static get[Ya("0x21")](){return Ya("0x0")}[Ya("0x2c")](){const t=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));if(this.editor[Ya("0x32")].has(Ya("0x15"))){for(const e of this[Ya("0x23")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection[Ya("0x19")]()[Ya("0x1a")](Ya("0x20"));this[Ya("0x2e")](e,[r],this[Ya("0x23")],Ya("0x23"),t,n)}));t[Ya("0x2f")].registerCustomCallback("formatBlock",Ya("0x23"),Ya("0x13"),t[Ya("0x2f")][Ya("0x25")](Ya("0x28"),null,"discard")),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x23"),Ya("0x5"),((t,e)=>this.handleDiscardAction(this[Ya("0x23")],t,e))),t[Ya("0x2f")].registerCustomCallback(Ya("0x28"),"tableProperties",Ya("0x3"),(()=>!1))}if(this[Ya("0x1b")][Ya("0x32")].has("TableCellPropertiesEditing")){for(const e of this[Ya("0x1e")])t[Ya("0x17")](e,((t,n)=>{const r=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1f"))[Ya("0x4")](this[Ya("0x1b")][Ya("0x16")][Ya("0xb")].selection);this[Ya("0x2e")](e,r,this[Ya("0x1e")],Ya("0x1e"),t,n)}));t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),"accept",t._suggestionFactory.getSuggestionCallback("formatBlock",null,"discard")),t[Ya("0x2f")][Ya("0x9")](Ya("0x28"),"tableCellProperties","discard",((t,e)=>this[Ya("0x29")](this[Ya("0x1e")],t,e))),t._suggestionFactory[Ya("0x9")](Ya("0x28"),Ya("0x1e"),Ya("0x3"),(()=>!1))}t[Ya("0x24")][Ya("0x33")]((t=>this[Ya("0xc")](t)))}[Ya("0x2e")](t,e,n,r,i,o){const s=this[Ya("0x1b")].plugins[Ya("0x8")](Ya("0x1c"));this[Ya("0x1b")][Ya("0x16")][Ya("0xe")](o.batch,(()=>{for(const t of e)if(this[Ya("0x2a")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ya("0x1d")](r);void 0!==n&&(e[r]=n)}i(o),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}[Ya("0x29")](t,e,n){const r=e[0].start[Ya("0x30")],i=n.commandParams[0];this[Ya("0x1b")][Ya("0x16")][Ya("0x2d")]((e=>{for(const n of t)void 0!==i[n]?e[Ya("0x22")](n,i[n],r):e.removeAttribute(n,r)}))}[Ya("0xc")](t){if(t.data)switch(t[Ya("0x2")]){case"tableProperties":return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")][Ya("0x7")],Ya("0x2b"))};case Ya("0x1e"):return{type:Ya("0x31"),content:Yr(this[Ya("0x1b")].locale,"*Format:* change table cell properties")}}}[Ya("0x2a")](t,e){const n=this[Ya("0x1b")][Ya("0x32")][Ya("0x8")](Ya("0x1c"));for(const r of n[Ya("0x11")]({skipNotAttached:!0})){const n=r[Ya("0xf")]();if(r[Ya("0x2")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["substr","track-changes-suggestion-data-mismatch","marker-count","_isDataLoaded","get","consume","_getMarkerAnnouncementText","containsRange","addComment","_updateSuggestionData","editing","removeMarkers","plugins","acceptSelectedSuggestions","trackChanges.mergeNestedSuggestions","data-suggestion","set","formatInline:","isIntersecting","documentSelection","isOwn","oldValue","getItems","_splitMarkerName","batch","filter","insertion:join","_suggestionFactory","announce","toJSON","config","_addThreadToSuggestion","deletion:join","@external","containsPosition","commands","parent","removeComment","attributeKey","lowest","clone","document","from","_suggestions","suggestion:","length","_commentsRepository","getAllAdjacentSuggestions","_adapter","isNextTo","for","markerReady","attributeOldValue","addClass","model","_getAttributeKey","markMultiRangeInsertion","backward","createRangeIn","comments","markInlineFormat","getCommentThread","addMarker:suggestion:formatBlock","_isForcedDefaultExecutionBlock","after","createElement","newRange","markInsertion","subType","accept","PendingActions","change:data","multi","_afterChanges","_SUGGESTION_ANNOUNCEMENT","isUndo","createRangeOn","init","low","then","change:_saved","isBlock","discardSuggestion","_getExternalAuthor","addSuggestionData","addMarker:suggestion:attribute","markers","end","addMarker","highest","pop","setSelection","dataReady","_mergeNestedSuggestions","change:activeMarkers","listenTo","getRange","isLimit","ck-suggestion-marker","default","attributeNewValue","PENDING_ACTION_SUGGESTION","skipNestingCheck","includes","unbindElementFromMarkerName","range","formatGroupId","attribute:join","attribute","addHighlight","_refreshSuggestionsChain","_onDiscard","rootName","setTo","format","trackChangesCommand","insert","element","oldRange","_setSuggestionData","multipleBlocks","forEach","attribute:","type","addRange","getSuggestion","isRemovable","move","markMultiRangeDeletion","delete","trackChanges","_handleNewSuggestionMarker","_isBlockAttribute","fire","forceDefaultExecution","define","return","reconvertMarker","push","editingDowncast","head","suggestionLoaded","catch","isBefore","unshift","getChangedMarkers","deleteContent","splice","isTouching","showSuggestionHighlights","previous","ready","_removeSuggestion","writer","containsRangeInObject","elementStart","_rangeIsInLocalUserInsertion","schema","adapter","registerPostFixer","$text","formatInline:accept","getMultiRangeId","insertion:accept","external:","dataToMarker","addMarkerName","attribute:discard","createRange","tablePasteChainId","change","data","options","discardAllSuggestions","Users","elementEnd","keys","_suggestionState","formatInline:chain","createPositionAfter","_initAriaMarkerChangeAnnouncements","mapper","refresh","_findSuggestions","howMany","map","enqueueChange","getAttribute","suggestionUnloaded","substring","elementToElement","meta","_element","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","commentThread","ck-suggestion-marker-formatBlock","addCommentThread","nodeAfter","_checkSuggestionCorrectness","markDeletion","_saved","getRanges","always","high","_recordAttributeSuggestions","unbind","add","removed","before","forward","toViewElement","isLocal","isAfter","deletion:","isInContent","discardSelectedSuggestions","_model","buildSuggestion","getUser","never","activeMarkers","getDifference","$elementName","getCustomProperty","attribute:accept","formatBlock:","_recordAttributeChanges","getFirstMarker","selection","_setSuggestionRange","editor","commandName","removeMarker","sort","getWalker","join","containsItem","group","isArray","consumable","suggestion","_addSuggestionMarker","acceptSuggestion","_registerBlockAttribute","_inlineAttributeKeys","LEAVE","_joinSuggestions","formatInline:join","ariaLiveAnnouncer","hasComments","removeClass","formatBlock","every","attributes","updateMarker","originalSuggestionId","_descriptionFactory","stopListening","createPositionAt","getIntersection","addSuggestion","getLastMatchingPosition","creator","_editor","author","isObject","values","$graveyard","updateSuggestion","root","isMultiRange","pluginName","_blockAttributeKeys","assign","createdAt","_refreshAttributeSuggestionsChain","removeMarker:suggestion:formatBlock","_joinWithAdjacentSuggestions","key","size","getSuggestions","notReady","differ","enableCommand","_enableDefaultAttributesIntegration","nodeBefore","upcast","_registerInlineAttribute","_getSuggestionData","isAtEnd","track-changes-command-not-found","registerCustomCallback","execute","getContainedElement","getSuggestionCallback","addMarker:suggestion","trackChanges.trackFormatChanges","requires","rejected","isInsideObject","suggestionChanged","_reduceExistingSuggestions","formatInline","normal","insertion","deletion:chain","find","markAttributeChange","enableReadOnlyMode","start","item","getAncestors","discard","locale","_breakSuggestionMarker","isDocumentOperation","track-changes-adapter-already-set","has","value","rename","_cutOutSuggestionMarker","ck-suggestion-marker-formatInline","formatBlock:discard","setAttribute","newValue","getChanges","isSelectable","stop","_enabledCommands","position","isIntersectingWithRange","_reduceSuggestionAttributeRange","_trackFormatChanges","toUpperCase","insertContent","resolve","isEqual","FORMATTING","formatBlock:accept","detach","removeMarker:suggestion:attribute","ck-suggestion-marker--active","_createSuggestion","$textProxy","markBlockFormat","acceptAllSuggestions","markerName","widget","_processAttributeSuggestions","insertion:","_customCallbacks","split","conversion","concat","chain","rethrowUnexpectedError","groupId","isCollapsed","markerNameToElements","CommentsRepository","name","getFirstRange","_defaultCallbacks","next","deletion","collaboration.channelId","remove","insertion:discard","fromCharCode","removeAttribute","createSelection","dataDowncast","startsWith","markerToHighlight","some","isAtStart"];var _c,Tc;_c=Ec,Tc=433,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc="$elementName";class Ac extends t.Plugin{static get[yc("0xf0")](){return[yc("0x12e"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Qo,ns,xs,ds,ys,ps,Ss,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Yx,ia,ca,Xa,ma,Ca,wa,Ja,Ra,Ba,Ha]}static get[yc("0xd6")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[yc("0x80")]((t=>String[yc("0x137")](t)))[yc("0xb2")]("")}super(t),this[yc("0x93")]=!1,this.set(yc("0xa3"),[]),this.on(yc("0x25"),((e,n,r,i)=>{this._model[yc("0x71")]((()=>{for(const e of[...i,...r])this[yc("0x9f")][yc("0x1d")][yc("0x104")](e)&&t[yc("0x149")][yc("0x50")](e)}))})),this[yc("0xc7")]=new ri(this.editor.model[yc("0x64")],this[yc("0xad")].locale),this[yc("0x16f")]=null,this._suggestionFactory=new kc(this[yc("0xad")]),this[yc("0x16a")]=new Map,this[yc("0x16d")]=t[yc("0x14b")][yc("0x143")](yc("0x12e")),this[yc("0x10f")]=new Set,this[yc("0x9f")]=this[yc("0xad")][yc("0x175")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([yc("0xa5")]),this[yc("0xbb")]=new Set,t[yc("0x15d")][yc("0x4e")](yc("0xef"),yc("0x2a")),this[yc("0x113")]=t[yc("0x15d")][yc("0x143")](yc("0xef")),t[yc("0x15d")][yc("0x4e")](yc("0x14d"),!0),this[yc("0x24")]=t.config.get("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[yc("0x10f")]),this[yc("0x7b")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,48,52])}[yc("0x14")](){const t=this.editor,n=(t,e)=>{if(yc("0x33")!=t)return"ck-suggestion-marker-"+t;const n=e[yc("0x126")]("|")[0];return this[yc("0x4b")](n)?yc("0x8a"):yc("0x108")};t[yc("0x127")][yc("0x171")](yc("0x52"))[yc("0x13c")]({model:yc("0xb7"),view:t=>{const{id:e,type:r,subType:i}=this._splitMarkerName(t[yc("0x121")]),o=["ck-suggestion-marker",n(r,i)];let s=3e3;return this[yc("0xa3")][yc("0x2e")](t[yc("0x121")])&&(o[yc("0x51")](yc("0x11c")),s=3010),"deletion"==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x127")][yc("0x171")](yc("0x13a")).add((e=>{e.on(yc("0xee"),((e,n,r)=>{if(!r[yc("0x73")][yc("0x5c")])return;const i=n[yc("0xfd")];if(!i)return;const o=r[yc("0x7c")][yc("0x99")](i);t[yc("0x175")][yc("0x64")][yc("0xd0")](i)&&o&&!o[yc("0xa6")](yc("0x122"))&&o.is("containerElement")&&(0,x.toWidget)(o,r[yc("0x60")])}),{priority:yc("0x92")})})),t.conversion[yc("0x171")]("dataDowncast")[yc("0x13c")]({model:yc("0xb7"),view:(t,e)=>{if(!e[yc("0x73")][yc("0x5c")])return null;const{type:r,subType:i}=this[yc("0x156")](t[yc("0x121")]);return{classes:["ck-suggestion-marker",n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0xfd")])return;const{id:s}=this[yc("0x156")](i.markerName);if(n){const t=this[yc("0x16a")].get(s),e=this[yc("0x176")](t);if(!this[yc("0x4b")](e))return}if(i[yc("0xfd")].is(yc("0xab")))return void o[yc("0xb6")][yc("0x144")](i[yc("0xfd")],r.name);const x=o[yc("0x7c")][yc("0x99")](i[yc("0xfd")]);if(i.item.is(yc("0x3c"))&&t[yc("0x175")].schema[yc("0x18")](i.item)&&!x.getCustomProperty(yc("0x34"))){o[yc("0x60")][yc("0x174")]([yc("0x29"),yc("0x8a")],x),o.writer[yc("0x10a")](yc("0x14e"),s,x),o[yc("0x7c")].bindElementToMarker(x,i[yc("0x121")]),e&&(this[yc("0xa3")][yc("0x2e")](i.markerName)?o[yc("0x60")].addClass("ck-suggestion-marker--active",x):o[yc("0x60")][yc("0xc1")](yc("0x11c"),x));for(const e of t[yc("0x175")][yc("0x1")](i[yc("0xfd")])[yc("0x155")]())o[yc("0xb6")].consume(e,r[yc("0x12f")]);o.consumable.consume(i[yc("0xfd")],r.name)}};t[yc("0x127")][yc("0x171")](yc("0x13a"))[yc("0x95")]((t=>{t.on(yc("0x5"),((t,e,n)=>{n[yc("0x73")][yc("0x5c")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[yc("0x127")].for(yc("0x13a"))[yc("0x95")]((t=>{t.on(yc("0x1c"),((t,e,n)=>{n[yc("0x73")].showSuggestionHighlights&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x20")})})),t[yc("0x127")][yc("0x171")]("dataDowncast").markerToData({model:yc("0xb7"),view:(t,e)=>e[yc("0x73")].showSuggestionHighlights?null:{group:yc("0xb7"),name:t[yc("0x13f")](11)}}),t.conversion[yc("0x171")](yc("0xe5"))[yc("0x85")]({view:{name:yc("0xb7"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x16b")+t[yc("0x82")]("suggestion-type")+":"+t[yc("0x82")]("id");return t[yc("0x82")](yc("0x141"))&&(n+=":"+t.getAttribute(yc("0x141"))),e[yc("0x8")]("$marker",{"data-name":n})}}),t[yc("0x127")].for(yc("0xe5"))[yc("0x6c")]({view:yc("0xb7")}),t[yc("0x127")][yc("0x171")](yc("0x52"))[yc("0x95")]((t=>{t.on(yc("0x5"),r(),{priority:yc("0x92")})})),t[yc("0x127")].for(yc("0x52")).add((t=>{t.on(yc("0x1c"),r({isAttributeSuggestion:!0}),{priority:"high"})})),t[yc("0x127")][yc("0x171")]("editingDowncast").add((t=>{t.on(yc("0xdb"),((t,e,n)=>{const r=n[yc("0x7c")].markerNameToElements(e[yc("0x121")]);if(r)for(const t of r)t.getCustomProperty(yc("0x34"))||(n[yc("0x60")].removeClass(["ck-suggestion-marker",yc("0x8a"),yc("0x11c")],t),n.writer[yc("0x138")](yc("0x14e"),t),n[yc("0x7c")].unbindElementFromMarkerName(t,e[yc("0x121")]))}),{priority:"high"})})),t[yc("0x127")].for("editingDowncast")[yc("0x95")]((t=>{t.on(yc("0x11b"),((t,e,n)=>{const r=n.mapper[yc("0x12d")](e.markerName);if(!r)return;const{id:i}=this[yc("0x156")](e.markerName),o=this[yc("0x16a")][yc("0x143")](i),s=this._getAttributeKey(o);if(this[yc("0x4b")](s))for(const t of r)t[yc("0xa6")](yc("0x34"))||(n.writer[yc("0xc1")]([yc("0x29"),yc("0x8a"),yc("0x11c")],t),n.writer.removeAttribute(yc("0x14e"),t),n[yc("0x7c")][yc("0x2f")](t,e[yc("0x121")]))}),{priority:yc("0x92")})})),t[yc("0x175")].document[yc("0x66")]((e=>{let n=!1;const r=Array.from(t.model.document[yc("0xe1")][yc("0x58")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x156")](x);if("suggestion"!==r)continue;const d=this[yc("0x16a")][yc("0x143")](u);if(null!=a.newRange){yc("0xf5")==c&&(n=n||Rc(a[yc("0x9")],x,e,t[yc("0x175")][yc("0x64")]));const r=yc("0x33")==c&&this[yc("0x4b")](l[yc("0x126")]("|")[0]);if(a[yc("0x9")].isCollapsed||yc("0xd2")==a.newRange[yc("0xd4")][yc("0x37")]||yc("0xc2")==c&&!Nc(a[yc("0x9")])||r&&!Nc(a[yc("0x9")])||yc("0x133")==c&&(Sc(s=a[yc("0x9")])||(o=s)[yc("0xfc")].parent==o.end.nodeBefore&&o[yc("0xfc")][yc("0xe8")]))e[yc("0xaf")](x),n=!0;else{if(!d||!d[yc("0x9d")])continue;i[yc("0x95")](d)}}}var o,s;return i[yc("0xde")]>0&&(n=!!this[yc("0xdc")](i)||n),n})),t.model[yc("0x168")].registerPostFixer((e=>{let n=!1;for(const r of t[yc("0x175")][yc("0x168")][yc("0xe1")][yc("0x10c")]())if(yc("0x3b")==r[yc("0x42")])for(const r of this[yc("0x16a")].values()){if(r[yc("0xd5")]||!r[yc("0x9d")])continue;const i=yc("0xc2")==r.type,o=this._getAttributeKey(r),s=o&&this[yc("0x4b")](o);if(!i&&!s)continue;const x=r[yc("0x130")]();if(x[yc("0xfc")][yc("0x163")]!=x[yc("0x1e")][yc("0x163")]&&!x[yc("0x1e")][yc("0xe8")]){const i=t[yc("0x175")][yc("0xc9")](x[yc("0xfc")][yc("0x8c")],yc("0x1e")),o=t[yc("0x175")][yc("0x6f")](x.start,i);e[yc("0xc5")](r.getFirstMarker(),{range:o}),n=!0}}return n})),t[yc("0x175")].document[yc("0x66")]((t=>this._processAttributeChanges(t))),t[yc("0x175")].document[yc("0x66")]((t=>!t[yc("0x157")][yc("0x9a")]&&this[yc("0x123")](t))),t[yc("0x175")].on(yc("0x10"),(()=>{this[yc("0x93")]=!1})),t[yc("0x175")][yc("0x168")].on(yc("0xe"),((n,r)=>{if(!r[yc("0x9a")]||r.isUndo)return;if(!this[yc("0x93")])return;const i=t[yc("0x175")].document[yc("0xe1")].getChanges();if(0==i[yc("0x16c")])return;const o=[],s=i[yc("0x158")]((t=>yc("0x33")==t[yc("0x42")])),x=i[yc("0x158")]((t=>yc("0x3b")==t[yc("0x42")]&&yc("0x67")!=t[yc("0x12f")])),a=i[yc("0x158")]((t=>yc("0x135")==t[yc("0x42")]&&"$text"!=t[yc("0x12f")]));for(const e of s)this._isRegisteredAttribute(e.attributeKey)&&o[yc("0x51")]({key:e[yc("0x165")],newValue:e[yc("0x2b")],oldValue:e.attributeOldValue,range:Lc(e[yc("0x30")],t[yc("0x175")])});for(const e of x){const n=a[yc("0xf9")]((t=>t._element===e[yc("0x87")]));if(n){const r=Mc(e[yc("0x110")].nodeAfter,t[yc("0x175")]);n[yc("0x12f")]!==e[yc("0x12f")]&&o[yc("0x51")]({key:yc("0xa5"),newValue:e.name,oldValue:n[yc("0x12f")],range:r});for(const[t,i]of n.attributes){if(!this._isRegisteredAttribute(t))continue;const n=e[yc("0xc4")][yc("0x143")](t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0xc4")])this._isRegisteredAttribute(t)&&(n.attributes[yc("0x104")](t)||o.push({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x16c")]&&t[yc("0x175")][yc("0x81")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this.markAttributeChange(t,e,r,i,{groupId:n});this[yc("0xf4")](t,o)}))}),{priority:yc("0x166")}),t[yc("0x175")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x156")](e.name),n=this[yc("0x16a")][yc("0x143")](t);n&&n.addMarkerName(e[yc("0x12f")])}})),t[yc("0x175")].document.on("change:data",(()=>{const e=Array[yc("0x169")](t.model[yc("0x168")][yc("0xe1")][yc("0x58")]())[yc("0x158")]((t=>yc("0xb7")===this[yc("0x156")](t.name)[yc("0xb4")]));if(0===e[yc("0x16c")])return;e[yc("0xb0")](((t,e)=>{const n=t[yc("0x72")][yc("0x3d")],r=e[yc("0x72")][yc("0x3d")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n.start[yc("0x56")](r[yc("0xfc")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this._splitMarkerName(t);if(null===i[yc("0x3d")]){const e=this._handleNewSuggestionMarker(t);r.add(e)}else{const t=this[yc("0x16a")][yc("0x143")](e);null!==i.newRange||t[yc("0x9d")]?(n[yc("0x95")](t[yc("0x53")]),r[yc("0x95")](t)):this._removeSuggestion(t)}}r.size>0&&this._refreshSuggestionsChain(r);for(const t of n)this[yc("0x4c")](yc("0xf3"),t)})),t[yc("0x175")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x16a")][yc("0xde")])return;if(!r[yc("0x102")])return;if(r.batch[yc("0x12")]||!r[yc("0x157")][yc("0x9a")])return;let i,o;switch(r[yc("0x42")]){case yc("0x3b"):i=t.model[yc("0xc9")](r.position),o=i.getShiftedBy(r[yc("0x7f")]);break;case yc("0x126"):i=t.model.createPositionAt(r.splitPosition),o=t.model[yc("0xc9")](r.moveTargetPosition);break;case yc("0x46"):i=t[yc("0x175")][yc("0xc9")](r.targetPosition),o=i.getShiftedBy(r[yc("0x7f")]);break;default:return}const s=t.model.createRange(i,o);t[yc("0x175")][yc("0x71")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x7e")](s)){if(t[yc("0xd5")])continue;if(yc("0xf5")==t.type)continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x4b")](n)&&"split"!=r[yc("0x42")])continue;const x=t.data&&t[yc("0x72")][yc("0x3f")];(yc("0xc2")!=t[yc("0x42")]||"split"==r[yc("0x42")]&&!x)&&(e[yc("0x61")]||"insertion"==t.type&&e.isOwn||t[yc("0x130")]()[yc("0x146")](s)&&this._breakSuggestionMarker(t,i,o))}}))}),{priority:"lowest"}),t.model.on(yc("0x59"),((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x4d")])return;if(this[yc("0x6")])return;if(!this[yc("0x3a")].value)return;if(r[yc("0x12c")])return;const o=t[yc("0x175")][yc("0x64")],{start:s,end:x}=r[yc("0x130")](),a=s.nodeAfter&&o[yc("0x28")](s.nodeAfter)?null:o.getNearestSelectionRange(s,yc("0x98")),c=x[yc("0xe4")]&&o[yc("0x28")](x[yc("0xe4")])?null:o.getNearestSelectionRange(x,yc("0x0")),l=t[yc("0x175")][yc("0x6f")](a?a.start:s,c?c.end:x);t[yc("0x175")][yc("0x71")]((e=>{this[yc("0x8e")](l);const n=t[yc("0x175")][yc("0x64")].getNearestSelectionRange(l[yc("0xfc")]);r.is(yc("0x152"))?e.setSelection(n):r[yc("0x38")](n)})),e[yc("0x10e")]()}),{priority:e.priorities[yc("0xf6")]+10}),t[yc("0x175")].on(yc("0x115"),((e,n)=>{const r=n[n[yc("0x16c")]-1];r&&r.forceDefaultExecution||this[yc("0x6")]||this[yc("0x3a")][yc("0x105")]&&(t[yc("0x175")][yc("0x71")]((()=>{let r=t.model[yc("0x115")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x4f")]=r[yc("0x167")]();const i=r[yc("0x1e")].nodeBefore,o=t.model[yc("0x64")];i&&o[yc("0x18")](i)&&!o[yc("0xd0")](i)&&(r=t[yc("0x175")][yc("0x6f")](r[yc("0xfc")],t.model.createPositionAt(i,"end"))),this.markInsertion(r)})),e[yc("0x10e")]())}),{priority:yc("0x92")}),this[yc("0xad")][yc("0x162")][yc("0x95")](yc("0x49"),this.trackChangesCommand),this.enableCommand(yc("0x49"));const i=new p(t,this[yc("0x16a")]);t.commands[yc("0x95")](yc("0xb9"),i),this[yc("0xe2")](yc("0xb9"));const o=new y(t,this[yc("0x16a")]);t[yc("0x162")][yc("0x95")](yc("0x19"),o),this.enableCommand(yc("0x19")),t.commands[yc("0x95")]("acceptAllSuggestions",new F(t,i,this[yc("0x16a")])),this[yc("0xe2")](yc("0x120")),t[yc("0x162")][yc("0x95")](yc("0x74"),new F(t,o,this[yc("0x16a")])),this[yc("0xe2")]("discardAllSuggestions"),t[yc("0x162")].add(yc("0x14c"),new j(t,i,this[yc("0x16a")])),this[yc("0xe2")]("acceptSelectedSuggestions"),t[yc("0x162")].add(yc("0x9e"),new j(t,o,this[yc("0x16a")])),this[yc("0xe2")](yc("0x9e"));const s=t.plugins[yc("0x143")](yc("0x12e"));this[yc("0x26")](s,yc("0x147"),((t,{threadId:e})=>{const n=this[yc("0x16a")].get(e);n&&n.commentThread&&1===n[yc("0x89")].length&&this[yc("0x148")](e,{hasComments:!0})}),{priority:yc("0x15")}),this[yc("0x26")](s,yc("0x164"),((t,{threadId:e})=>{const n=this[yc("0x16a")][yc("0x143")](e);n&&n[yc("0x89")]&&!n[yc("0x89")][yc("0x16c")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:yc("0x15")})}set[yc("0x65")](t){if(this[yc("0x16f")])throw new e.CKEditorError(yc("0x103"),this);this[yc("0x16f")]=t}get[yc("0x65")](){return this[yc("0x16f")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x16a")].values())t&&!e[yc("0x9d")]||n[yc("0x51")](e);return e?n[yc("0x80")]((t=>t[yc("0x15c")]())):n}[yc("0x44")](t){const n=this[yc("0x16a")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[yc("0x16a")].has(t)}[yc("0x1b")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0x42")][yc("0x126")](":"),s=this._suggestions[yc("0x143")](n)||this[yc("0x11d")](i,o,n,e,r);if(this[yc("0x15e")](s),this._checkSuggestionCorrectness(s,i,o||null,e),s[yc("0xd9")]=t[yc("0xd9")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[yc("0x160")],e=this[yc("0x1a")](t.authorName);s.authoredAt=t[yc("0xd9")],s[yc("0xcf")]=e,s.isExternal=!0}else s.authoredAt=t[yc("0xd9")];switch(t[yc("0x72")]&&(s[yc("0x72")]=t[yc("0x72")]),t[yc("0xc4")]&&(s.attributes=t[yc("0xc4")]),this[yc("0x16f")]&&this._adapter[yc("0xcb")]||(s._saved=!0),this[yc("0x78")][yc("0x143")](s)){case"notReady":this._suggestionState[yc("0x14f")](s,yc("0x23"));break;case"markerReady":s[yc("0x9d")]?(this._joinWithAdjacentSuggestions(new Set([s])),this[yc("0x35")](new Set([s])),this[yc("0x78")][yc("0x14f")](s,yc("0x5e")),this[yc("0x4c")](yc("0x54"),s)):this[yc("0x78")][yc("0x14f")](s,yc("0x96"))}return s}[yc("0xb9")](t){this[yc("0x4d")]((()=>{this[yc("0xad")][yc("0x175")][yc("0x71")]((()=>{for(const e of t[yc("0x16e")]())e.accept()}))}))}discardSuggestion(t){this[yc("0x4d")]((()=>{this[yc("0xad")][yc("0x175")][yc("0x71")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0xff")]()}))}))}enableCommand(t,n){const r=this[yc("0xad")][yc("0x162")][yc("0x143")](t);if(!r)throw new e.CKEditorError(yc("0xe9"),this,{commandName:t});if(this._enabledCommands.has(r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[yc("0x10f")][yc("0x95")](r),n&&r.on(yc("0xeb"),((t,e)=>{this.trackChangesCommand.value&&(this[yc("0x6")]||(e[yc("0x16c")]>0&&e[e.length-1]&&e[e[yc("0x16c")]-1][yc("0x4d")]?e[yc("0x21")]():(t[yc("0x4f")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:yc("0x92")})}[yc("0x4d")](t){let n,r;const i=this[yc("0x6")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x6")]=!1),r&&e.CKEditorError[yc("0x12a")](r,this),n}[yc("0xa")](t,n=null,r={}){if(t[yc("0x12c")])return null;const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,"insertion"))if(i[yc("0x153")]){if(!i[yc("0x170")]){if(i[yc("0x61")]){if(!this[yc("0x24")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t[yc("0xfc")],t[yc("0x1e")]);break}if(n==e[yc("0xb")]&&Fc(e,r)){const n=e.getFirstRange();return n[yc("0xfc")][yc("0x117")](t[yc("0x1e")])?this[yc("0xac")](e,this[yc("0x9f")][yc("0x6f")](t[yc("0xfc")],n[yc("0x1e")])):this._setSuggestionRange(e,this[yc("0x9f")].createRange(n[yc("0xfc")],t.end)),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0x124")+n:"insertion",a=this[yc("0x3e")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,o,s,t),a}[yc("0x177")](t,n=yc("0xf"),r={}){const i=this.editor[yc("0x14b")][yc("0x143")](yc("0x75")).me,o=this[yc("0x15a")][yc("0xed")](yc("0xf7"),n,yc("0xb2"));for(const e of this[yc("0xdf")]())if(e[yc("0xcf")].id==i.id&&yc("0xf7")==e[yc("0x42")]&&e[yc("0xb")]==n&&Fc(e,r)&&(o(e[yc("0x90")](),t)||o(t,e[yc("0x90")]()))){for(const n of t)e[yc("0x43")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,yc("0xf7"))){if(!n[yc("0x153")])continue;if(!this._mergeNestedSuggestions&&n.containsRangeInObject)continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x90")]())for(const e of t)if(!n[yc("0x146")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xb8")](a,s,x,e,Qr[yc("0x69")]());return c}[yc("0x3")](t,n,r=null,i={}){if(r=r||vc(n),t[yc("0x12c")])return null;if(yc("0xa2")===this[yc("0x113")]){const e=this[yc("0x15a")].getSuggestionCallback(yc("0xf5"),r,yc("0xc"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const o=this[yc("0xad")][yc("0x14b")].get(yc("0x75")).me,s=[];if("always"!==this[yc("0x113")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0xf7")))n[yc("0x153")]&&!n[yc("0xf2")]&&s.push(...e[yc("0x90")]());const x=function(t,e){const n=[];for(const r of e){const e=t.getIntersection(r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x16c")];){const r=n[e][yc("0xa4")](t);n[yc("0x5a")](e,1,...r),e+=r[yc("0x16c")]}}return n}(t,s);x[yc("0x16c")]&&this._model.change((()=>{for(const t of x){const e=this._suggestionFactory[yc("0xed")](yc("0xf5"),r,yc("0xc"));this[yc("0x4d")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,yc("0xf5"))){if(!n.isOwn)continue;if(e[yc("0xb")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x130")]();if(o[yc("0x146")](t,!0))return null;x=x[yc("0x56")](o[yc("0xfc")])?x:o.start,a=a[yc("0x9b")](o[yc("0x1e")])?a:o.end,s?o[yc("0xfc")][yc("0x56")](s[yc("0x130")]()[yc("0xfc")])?(s.removeMarkers(),s=e):e[yc("0x14a")]():s=e}const c=this[yc("0x9f")][yc("0x6f")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0x150")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(yc("0x150")+r,t,s,c)}}return null}[yc("0x11f")](t,n,r=[],i=null,o={}){n[yc("0x31")]||(n[yc("0x31")]=n[yc("0xae")]),n.multipleBlocks=t.is(yc("0x30")),i=i||vc(n);const s=r[yc("0x80")]((t=>Mc(t,this[yc("0x9f")]))),x=t.is("range")?t:Mc(t,this[yc("0x9f")]);if(yc("0xa2")===this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this.forceDefaultExecution((()=>t([x],n,o))),null}s[yc("0x51")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0x91")!==this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x[yc("0xfc")],u=x[yc("0x1e")];for(const{suggestion:t,meta:e}of this[yc("0x7e")](x,yc("0xc2"))){if(!e[yc("0x153")])continue;if(e[yc("0x170")]||e[yc("0x61")]||e[yc("0xf2")])continue;if(t.data.formatGroupId!=n.formatGroupId)continue;if(!Fc(t,o))continue;const r=t[yc("0x130")]();if(t[yc("0xb")]==i){if(r.containsRange(x,!0))return null;l=l[yc("0x56")](r.start)?l:r[yc("0xfc")],u=u[yc("0x9b")](r[yc("0x1e")])?u:r.end,c?r[yc("0xfc")].isBefore(c.getFirstRange()[yc("0xfc")])?(c.removeMarkers(),c=t):t[yc("0x14a")]():c=t}else{const e=x[yc("0xca")](r);this[yc("0x107")](t,e)}}const d=this[yc("0xad")].plugins[yc("0x143")](yc("0x75")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xac")](c,this._model.createRange(l,u)),c;{const t=this[yc("0x3e")]({id:g,type:yc("0xa8")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xb8")](yc("0xa8")+i,g,f,this[yc("0x9f")][yc("0x6f")](l,u)),t}}markMultiRangeBlockFormat(t,n,r=[],i=null,o={}){n.formatGroupId||(n[yc("0x31")]=n[yc("0xae")]);const s=t[0];n[yc("0x3f")]=s.is(yc("0x30")),i=i||vc(n);const x=r[yc("0x80")]((t=>Mc(t,this[yc("0x9f")]))),a=s.is(yc("0x30"))?t:t[yc("0x80")]((t=>Mc(t,this._model)));if("never"===this._trackFormatChanges){const t=this[yc("0x15a")][yc("0xed")](yc("0xc2"),i,yc("0xc"));return this[yc("0x4d")]((()=>t(a,n,o))),null}x.push(...a);let c=!0;for(const t of x)if(!this[yc("0x63")](t)){c=!1;break}if(c&&"always"!==this[yc("0x113")]){const t=this[yc("0x15a")][yc("0xed")]("formatBlock",i,"accept");return this[yc("0x4d")]((()=>t(a,n,o))),null}const l=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;for(const t of this.getSuggestions()){if(t[yc("0xcf")].id!=l.id)continue;if(yc("0xc2")!=t.type||t[yc("0x72")][yc("0x31")]!=n[yc("0x31")])continue;if(!Fc(t,o))continue;const e=t[yc("0xb")]==i;for(let n=0;n<a[yc("0x16c")];n++){const r=a[n];for(const i of t.getMarkers()){const o=i[yc("0x27")]();if(r.isEqual(o)){e?(a[yc("0x5a")](n,1),n--):t[yc("0xaf")](i[yc("0x12f")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[yc("0xed")](yc("0xc2"),i,"join");for(const t of this[yc("0xdf")]())if(t[yc("0xcf")].id==l.id&&yc("0xc2")==t[yc("0x42")]&&t[yc("0x72")][yc("0x31")]==n[yc("0x31")]&&t[yc("0xb")]==i&&Fc(t,o)&&(u(t[yc("0x90")](),a)||u(a,t[yc("0x90")]()))){for(const e of a)t[yc("0x43")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0xa8")+i,h=this[yc("0x3e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Qr.getMultiRangeId());return h}[yc("0x8e")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0xad")][yc("0x14b")].get(yc("0x75")).me,o=new s.LiveRange(t[yc("0xfc")],t[yc("0x1e")]);for(const{suggestion:t,meta:e}of this[yc("0x7e")](o,yc("0xf7")))if(e[yc("0x153")]&&!e[yc("0x170")])if(t[yc("0xd5")]){const e=t.getRanges()[yc("0x158")]((t=>yc("0xd2")!=t.root[yc("0x37")]));if(e.every((t=>o[yc("0x146")](t,!0)))&&t.discard(),e.some((t=>t[yc("0x146")](o,!0)))){const t=this[yc("0x15a")].getSuggestionCallback(yc("0x133"),n,yc("0xc"));return this[yc("0x4d")]((()=>t([o],null,r))),null}}else{const e=o[yc("0xca")](t[yc("0x130")]());null!==e&&t[yc("0x36")]([e],null,r)}if(o[yc("0x11a")](),o[yc("0x12c")]||"$graveyard"==o.root[yc("0x37")])return null;let x=null,a=o[yc("0xfc")],c=o[yc("0x1e")];const l=this[yc("0x7e")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x9f")][yc("0x6f")](a,c);if(e[yc("0x153")]&&(this[yc("0x24")]||!e[yc("0x61")]&&!e.isInsideObject))if(t[yc("0xd5")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x90")]()){if(r[yc("0x146")](n,!0))return t;n[yc("0x146")](r)||(e=!1)}e&&t.discard()}else{const e=t[yc("0x130")]();if(e.containsRange(n,!0))return t;if(!Fc(t,r)){n[yc("0x146")](e)?t.removeMarkers():e[yc("0x161")](a)?a=e[yc("0x1e")]:e[yc("0x161")](c)&&(c=e[yc("0xfc")]);continue}a=a[yc("0x56")](e.start)?a:e[yc("0xfc")],c=c[yc("0x9b")](e[yc("0x1e")])?c:e[yc("0x1e")],r=Object[yc("0xd8")]({},t[yc("0xc4")]),x?e[yc("0xfc")][yc("0x56")](x[yc("0x130")]().start)?(x[yc("0x14a")](),x=t):t[yc("0x14a")]():x=t}}if(x)return this._setSuggestionRange(x,this[yc("0x9f")].createRange(a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x9f")].createRange(a,c),s=i.id,x=n?yc("0x9c")+n:yc("0x133"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb8")](x,t,s,o),l}}[yc("0x47")](t,n=yc("0xf"),r={}){const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me,o=t[yc("0x80")]((t=>new s.LiveRange(t[yc("0xfc")],t[yc("0x1e")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x7e")](o,"insertion"))e[yc("0x153")]&&!e[yc("0x170")]&&x.add(t);for(const e of x)if(e[yc("0xd5")]){const i=e.getRanges();if((!e[yc("0xc4")]||!e.attributes[yc("0x2d")])&&i[yc("0xc3")]((t=>o[yc("0x13d")]((e=>e.containsRange(t,!0)))))&&e[yc("0xff")](),o[yc("0xc3")]((t=>i[yc("0x13d")]((e=>e.containsRange(t,!0)))))){const e=this[yc("0x15a")][yc("0xed")](yc("0x133"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0x130")]();if(o[yc("0x13d")]((e=>e.containsRange(t,!0)))&&e[yc("0xff")](),o[yc("0xc3")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(yc("0x133"),n,yc("0xc"));return this[yc("0x4d")]((()=>t(o,null,r))),null}}const a=this[yc("0x15a")][yc("0xed")]("deletion",n,yc("0xb2"));let c=null;for(const t of this[yc("0xdf")]())if(t[yc("0xcf")].id==i.id&&t[yc("0x9d")]&&yc("0x133")==t[yc("0x42")]&&t[yc("0xb")]==n&&Fc(t,r)&&(a(t.getRanges(),o)||a(o,t[yc("0x90")]())))if(c){if(t[yc("0x89")]&&t.commentThread[yc("0x16c")])continue;for(const e of t[yc("0x90")]())c[yc("0x111")](e)||c[yc("0x43")](e);t.removeMarkers()}else{c=t;for(const e of o)t[yc("0x111")](e)||t[yc("0x43")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x133")))e[yc("0x153")]&&(this[yc("0x24")]||!e[yc("0x61")]&&!e[yc("0xf2")])&&Fc(t,r)&&x.add(t);for(const t of x){const e=t[yc("0x90")]();if((!r||!r[yc("0x2d")])&&o[yc("0xc3")]((t=>e[yc("0x13d")]((e=>e[yc("0x146")](t,!0))))))return t;(!t[yc("0xc4")]||!t[yc("0xc4")].skipNestingCheck)&&e[yc("0xc3")]((t=>o.some((e=>e[yc("0x146")](t,!0)))))&&t[yc("0xff")]()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0x3e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0x11a")](),t.isCollapsed||yc("0xd2")==t.root[yc("0x37")]||this[yc("0xb8")](d,l,u,t,Qr.getMultiRangeId());return g}[yc("0xfa")](t,n,r,i,o){if(t[yc("0x12c")])return[];if(yc("0xa2")===this[yc("0x113")])return[];const s=this.editor[yc("0x14b")][yc("0x143")](yc("0x75")).me.id,x=Array[yc("0x169")](this[yc("0x16a")][yc("0xd1")]()).filter((e=>"attribute"==e[yc("0x42")]&&e[yc("0x72")].key==n&&e[yc("0x111")](t)));if("default"===this[yc("0x113")]){const e=this[yc("0x7e")](t,yc("0xf7"))[yc("0x158")]((({meta:t})=>t[yc("0x153")]&&!t.isInsideObject&&!t.isNextTo))[yc("0x80")]((({suggestion:t})=>t));x[yc("0x57")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x33")==t[yc("0x42")]?t.data[yc("0x154")]:void 0,o=t[yc("0x130")](),s=Array.from(a[yc("0x77")]())[yc("0xf9")]((t=>t[yc("0x151")](o)));if(!s)continue;const x=s.getDifference(o);this[yc("0x4b")](n)&&yc("0xf7")==t.type&&0!=x.length||(a[yc("0x48")](s),x[yc("0x40")]((t=>{a[yc("0x14f")](t,r)})),yc("0xf7")!=t.type&&e!=i&&a.set(s[yc("0xca")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0x16c")]>37&&console.warn(yc("0x88"),{key:n});const l=(yc("0x41")+(n+"|")+vc({newValue:i}))[yc("0x84")](0,60),u=this[yc("0x3e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x51")](u),this[yc("0xb8")](l,x,s,t)}return c}_registerBlockAttribute(t){this[yc("0xd7")][yc("0x95")](t)}_registerInlineAttribute(t){this[yc("0xbb")][yc("0x95")](t)}[yc("0xe3")](t,e=[],n=[]){this[yc("0xe2")](t,((t,...e)=>{this[yc("0xa9")]((()=>{t(...e)}))}));for(const t of e)this[yc("0xe6")](t);for(const t of n)this[yc("0xba")](t)}[yc("0x176")](t){return yc("0x33")==t[yc("0x42")]?t[yc("0xb")][yc("0x126")]("|")[0]:null}[yc("0xac")](t,e){const n=t[yc("0xaa")]();this[yc("0x9f")][yc("0x71")]((t=>{t.updateMarker(n,{range:e})}))}[yc("0x15e")](t){const e=t.id,n=this[yc("0xad")][yc("0x15d")][yc("0x143")]("collaboration.channelId");this._commentsRepository.hasCommentThread(e)||this[yc("0x16d")][yc("0x8b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0x16d")][yc("0x4")](e);r[yc("0x94")]("isRemovable"),r[yc("0x45")]=!1,t[yc("0x89")]=r}[yc("0x8d")](t,n,r,i){if(t[yc("0x42")]!=n||t.subType!=r||t.creator.id!=i)throw this.editor[yc("0xfb")](yc("0x140")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[yc("0x107")](t,n){const r=t[yc("0x130")]();if(n[yc("0x117")](r))t[yc("0x14a")]();else if(r[yc("0x146")](n)){const i=this[yc("0x9f")][yc("0xc9")](n.start[yc("0xe4")],yc("0x1e"));this._setSuggestionRange(t,this[yc("0x9f")][yc("0x6f")](r[yc("0xfc")],i));const o=(0,e.uid)(),s=t[yc("0xcd")].id,x=t[yc("0x42")]+":"+t[yc("0xb")];this[yc("0x3e")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x72")],attributes:t[yc("0xc4")]});const a=this[yc("0x9f")][yc("0xc9")](n[yc("0x1e")][yc("0x163")],yc("0x7")),c=this[yc("0x9f")][yc("0x6f")](a,r[yc("0x1e")]);this._addSuggestionMarker(x,o,s,c)}else if(r.containsPosition(n[yc("0xfc")])){const e=this._model[yc("0xc9")](n[yc("0xfc")][yc("0xe4")],"end");this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](r[yc("0xfc")],e))}else{const e=this[yc("0x9f")][yc("0xc9")](n[yc("0x1e")][yc("0x163")],yc("0x7"));this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](e,r[yc("0x1e")]))}}[yc("0x63")](t){for(const{suggestion:e,meta:n}of this[yc("0x7e")](t,"insertion")){if(!n[yc("0x153")])continue;const r=e.getRanges();for(const e of r)if(!t[yc("0xa4")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75"))[yc("0xa1")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[yc("0x1a")](t){const e=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")),n=(0,o.hashObject)(yc("0x6b")+t);return e[yc("0xa1")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this._getAuthorFromId(r),s=this[yc("0x15a")][yc("0xa0")](t,e,n,o,i,(t=>{this[yc("0x148")](n,{attributes:t});const e=this.getSuggestion(n);this._joinWithAdjacentSuggestions(new Set([e])),this[yc("0x35")](new Set([e]))}));return this[yc("0x26")](s,yc("0xc"),(()=>{this[yc("0x148")](n,{state:"accepted"})}),{priority:yc("0x92")}),this[yc("0x26")](s,"discard",(()=>{this[yc("0x148")](n,{state:yc("0xf1")})}),{priority:yc("0x92")}),this._suggestions[yc("0x14f")](n,s),this[yc("0x78")][yc("0x14f")](s,"notReady"),s}[yc("0x156")](t){const e=t[yc("0x126")](":");return{group:e[0],type:e[1],subType:e[yc("0x16c")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[yc("0x16c")]<5?e[3]:e[4],markerCount:6==e[yc("0x16c")]?e[5]:null}}[yc("0x101")](t,n,r){const i=t[yc("0x130")](),o=i[yc("0xfc")],s=i[yc("0x1e")];this._setSuggestionRange(t,this[yc("0x9f")][yc("0x6f")](o,n));const x=(0,e.uid)(),a=t.creator.id,c=t[yc("0x42")]+(t[yc("0xb")]?":"+t[yc("0xb")]:"");this[yc("0x3e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0xc4")],data:t[yc("0x72")]});const l=this[yc("0x176")](t);(yc("0xc2")==t.type||l&&this[yc("0x4b")](l))&&(r=this[yc("0x9f")].createPositionBefore(r.parent)),this[yc("0xb8")](c,x,a,this[yc("0x9f")][yc("0x6f")](r,s))}_findSuggestions(t,e=null){const n=[],r=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0x75")).me;Array[yc("0xb5")](t)||(t=[t]);for(const i of this[yc("0xdf")]()){if(!i[yc("0x9d")])continue;if(e&&i.type!=e)continue;let o=!1;for(const e of i[yc("0x90")]()){for(const s of t){const t=s.start[yc("0x117")](e[yc("0x1e")])||s.end[yc("0x117")](e.start);if(t||s[yc("0xca")](e)){const x=s[yc("0x146")](e)&&Ic(this[yc("0x9f")][yc("0x64")],e[yc("0xfc")],s),a=e[yc("0x146")](s)&&Ic(this[yc("0x9f")].schema,s[yc("0xfc")],e);n[yc("0x51")]({suggestion:i,meta:{isOwn:r==i[yc("0xcf")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xb8")](t,e,n,r,i){this._model[yc("0x71")]((o=>{let s=yc("0x16b")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x1f")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x5f")](t){const e=t[yc("0x5d")],n=t[yc("0x132")];t[yc("0x5d")]=null,t[yc("0x132")]=null,null!=e&&e[yc("0x132")]==t&&(e.next=n),null!=n&&n[yc("0x5d")]==t&&(n[yc("0x5d")]=e),yc("0x5e")==this._suggestionState[yc("0x143")](t)&&(this[yc("0x78")][yc("0x14f")](t,yc("0x96")),this[yc("0x4c")](yc("0x83"),t,e,n))}[yc("0x3e")](t){const n=t.id,r=this[yc("0x1b")](t);if(this[yc("0x16f")]&&this[yc("0x16f")][yc("0xcb")]){const i=this[yc("0xad")][yc("0x14b")][yc("0x143")](yc("0xd")),o=r[yc("0xc0")],s=r.subType?r.type+":"+r[yc("0xb")]:r[yc("0x42")],x=this.editor[yc("0x100")],a=i[yc("0x95")](Yr(x,yc("0x2c"))),c={id:n,type:s,hasComments:o,data:t[yc("0x72")]||null,originalSuggestionId:t[yc("0xc6")]||null,attributes:r[yc("0xc4")]};this._adapter[yc("0xcb")](c).then((t=>{r[yc("0x8f")]=!0,i.remove(a),t&&t[yc("0xd9")]&&(this[yc("0x16a")].get(n)[yc("0xd9")]=t.createdAt)}))[yc("0x55")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[yc("0x175")][yc("0x81")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0xc8")](),this[yc("0x16a")][yc("0x48")](r.id),this[yc("0x78")][yc("0x48")](r),t}))}return r}_isBlockAttribute(t){return this[yc("0xd7")].has(t)}[yc("0x148")](t,e){const n=this[yc("0xad")][yc("0x14b")].get(yc("0xd")),r=this[yc("0x44")](t);if(this[yc("0x16f")]&&this[yc("0x16f")][yc("0xd3")])if(r._saved){const r=n.add(Yr(this[yc("0xad")][yc("0x100")],"PENDING_ACTION_SUGGESTION"));this[yc("0x16f")][yc("0xd3")](t,e)[yc("0x16")]((()=>{n[yc("0x135")](r)}))}else r.on(yc("0x17"),(()=>{this[yc("0x148")](t,e)}))}[yc("0xe7")](t){if(!this[yc("0x16f")]||!this[yc("0x16f")][yc("0x44")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[yc("0x44")](t)}[yc("0x4a")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x156")](t),o=this._suggestions[yc("0x143")](e)||this[yc("0x11d")](n,r,e,i,{});switch(this[yc("0x8d")](o,n,r,i),this[yc("0x78")].get(o)){case yc("0xe0"):this._getSuggestionData(e)[yc("0x16")]((t=>{let n=Promise[yc("0x116")]();t[yc("0xc0")]&&(n=this[yc("0x16d")].fetchCommentThread({channelId:this[yc("0xad")][yc("0x15d")][yc("0x143")](yc("0x134")),threadId:e})),n[yc("0x16")]((()=>{this[yc("0x1b")](t)[yc("0x8f")]=!0}))})),this[yc("0x78")][yc("0x14f")](o,yc("0x172"));break;case yc("0x96"):this._updateSuggestionData(e,{state:"open"});case yc("0x23"):this[yc("0x78")][yc("0x14f")](o,yc("0x5e")),this[yc("0x4c")](yc("0x54"),o);break;case yc("0x5e"):this[yc("0x4c")](yc("0xf3"),o)}return o[yc("0x6d")](t),o}[yc("0x35")](t){const e=Array[yc("0x169")](t),n=e[yc("0x158")]((t=>yc("0x33")==t.type));this[yc("0xda")](n);const r=e.filter((t=>!t[yc("0xd5")]&&yc("0x33")!=t[yc("0x42")])),i=this[yc("0xdf")]({skipNotAttached:!0})[yc("0x158")]((t=>!t[yc("0xd5")]&&"attribute"!=t[yc("0x42")])),o=i[yc("0x158")]((e=>!t[yc("0x104")](e))),s=new Map(i[yc("0x80")]((t=>[t,this[yc("0x15a")][yc("0xed")](t.type,t.subType,yc("0x129"))]))),x=new Map(i[yc("0x80")]((t=>[t,t[yc("0x130")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x16c")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0x16c")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c.has(e)&&e[yc("0x5d")]&&(l[yc("0x95")](e[yc("0x5d")]),e[yc("0x5d")][yc("0x132")]===e&&(e[yc("0x5d")].next=null),e[yc("0x5d")]=null),!a[yc("0x104")](e)&&e[yc("0x132")]&&(l[yc("0x95")](e.next),e[yc("0x132")][yc("0x5d")]===e&&(e[yc("0x132")].previous=null),e[yc("0x132")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x16c")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1][yc("0x5d")]=n[0],a[yc("0x95")](n[0]),c.add(n[1]))}}function d(t,e){if(t[yc("0xcf")].id!==e[yc("0xcf")].id)return null;const n=s[yc("0x143")](t)(t,e,x[yc("0x143")](t),x[yc("0x143")](e));return n&&s[yc("0x143")](e)(t,e,x.get(t),x[yc("0x143")](e))?n[1][yc("0x89")]&&n[1][yc("0x89")][yc("0x16c")]?null:n:null}l[yc("0xde")]&&this[yc("0x35")](l)}[yc("0xda")](t){if(0==t[yc("0x16c")])return;const e=this[yc("0xdf")]({skipNotAttached:!0}).filter((t=>yc("0x33")==t[yc("0x42")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0xc4")]);r[yc("0x104")](e)||(r[yc("0x14f")](e,n[yc("0x16c")]),n[yc("0x51")]([]));const i=r[yc("0x143")](e);n[i].push(t)}!function(){n[yc("0xb0")](((t,e)=>{const n=t[0][yc("0xd9")],r=e[0][yc("0xd9")];return n==r?t[0][yc("0xc4")][yc("0x12b")]<e[0][yc("0xc4")][yc("0x12b")]?-1:1:n<r?-1:1}));for(const t of n)t[yc("0xb0")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x16c")];t++){if(0==n[t][yc("0x16c")])continue;const e=[];for(let r=t+1;r<n[yc("0x16c")];r++)0!=n[r].length&&i(n[t],n[r])&&e[yc("0x51")](r);for(const r of e)n[t]=n[t][yc("0x128")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x132")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x5d")]=t[e-1]||null;function i(t,e){if(t[0][yc("0xc4")][yc("0x12b")]!==e[0][yc("0xc4")].groupId&&t[0][yc("0xcf")]!==e[0][yc("0xcf")])return!1;if(n=t[0],r=e[0],(n[yc("0xc0")]||r.hasComments)&&(n[yc("0xc0")]&&r[yc("0xc0")]||!(n.hasComments&&r[yc("0xd9")]<n[yc("0x89")][yc("0x2")][yc("0x143")](0)[yc("0xd9")]||r.hasComments&&n[yc("0xd9")]<r[yc("0x89")][yc("0x2")][yc("0x143")](0)[yc("0xd9")])))return!1;var n,r;const i=bc(t[0].attributes,"groupId"),o=bc(e[0][yc("0xc4")],yc("0x12b"));return!!jr(i,o)&&(!!t[yc("0xc3")]((t=>e[yc("0x13d")]((e=>t.getFirstRange().isEqual(e[yc("0x130")]())))))&&e[yc("0xc3")]((e=>t.some((t=>e.getFirstRange()[yc("0x117")](t[yc("0x130")]()))))))}}[yc("0xdc")](t){const e=Array[yc("0x169")](t),n=this[yc("0xdf")]({skipNotAttached:!0}),r=n[yc("0x158")]((e=>!t[yc("0x104")](e))),i=new Map(e.map((t=>[t,this._suggestionFactory[yc("0xed")](t[yc("0x42")],t[yc("0xb")],yc("0xb2"))]))),o=new Map(n[yc("0x80")]((t=>[t,t[yc("0x90")]()])));for(let t=0;t<e[yc("0x16c")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x16c")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x16c")];s++){const r=n[s];if(r[yc("0x42")]!==e[yc("0x42")]||r[yc("0xcf")].id!==e[yc("0xcf")].id||r[yc("0xb")]!==e[yc("0xb")])continue;if(!Oc(e,r,["groupId"]))continue;if(yc("0x33")==e[yc("0x42")]&&e[yc("0x72")][yc("0x154")]!=r[yc("0x72")][yc("0x154")])continue;if(yc("0x33")==e[yc("0x42")]&&t[yc("0x4b")](e[yc("0x72")][yc("0xdd")]))continue;if(yc("0xc2")==e[yc("0x42")]){const n=t[yc("0xad")][yc("0x175")],r=e[yc("0xec")]();if(r&&(n[yc("0x64")][yc("0xd0")](r)||n[yc("0x64")][yc("0x28")](r)))continue}const x=i.get(e),a=o[yc("0x143")](e),c=o[yc("0x143")](r),l=e[yc("0x89")]&&e[yc("0x89")][yc("0x16c")],u=r[yc("0x89")]&&r[yc("0x89")].length;if(!l&&x(c,a))return t[yc("0xbd")](r,e),o[yc("0x48")](e),!0;if(!u&&x(a,c))return t[yc("0xbd")](e,r),o.delete(r),!0}return!1}}[yc("0xbd")](t,e){if(t[yc("0xd5")])for(const n of e[yc("0x90")]())t[yc("0x43")](n);else{const n=e[yc("0x130")]()[yc("0x1e")];this[yc("0xac")](t,this[yc("0x9f")][yc("0x6f")](t[yc("0x130")]()[yc("0xfc")],n))}e[yc("0x14a")]()}[yc("0x145")](t,e){const n=t[yc("0x13b")](yc("0x39"))||t[yc("0x13b")](yc("0x33"))?yc("0x118"):t[yc("0x114")]();return Yr(this[yc("0xad")][yc("0x100")],e+"_"+n+yc("0x11"))}_initAriaMarkerChangeAnnouncements(){const t=this.editor;(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x156")](t[yc("0x12f")]);if(yc("0xb7")===e){r[yc("0x51")](this[yc("0x145")](n,yc("0xbc")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x156")](t[yc("0x12f")]);if("suggestion"===e){r[yc("0x51")](this._getMarkerAnnouncementText(n,"ENTER"));break}}r[yc("0x16c")]&&t.ui[yc("0xbf")][yc("0x15b")](yc("0x49"),r.join(" "))}))}_processAttributeChanges(t){if(this._recordAttributeSuggestions)return!1;const e=this[yc("0xad")],n=e[yc("0x175")][yc("0x168")][yc("0xe1")][yc("0x10c")]();if(0==n[yc("0x16c")])return!1;const r=[],i=n.filter((t=>"attribute"==t[yc("0x42")])),o=n[yc("0x158")]((t=>"insert"==t.type&&"$text"!=t[yc("0x12f")])),s=n.filter((t=>"remove"==t[yc("0x42")]&&yc("0x67")!=t[yc("0x12f")]));for(const t of i)r[yc("0x51")]({key:t[yc("0x165")],newValue:t[yc("0x2b")],oldValue:t[yc("0x173")],range:Lc(t[yc("0x30")],e[yc("0x175")])});for(const t of o){const n=s[yc("0xf9")]((e=>e[yc("0x110")][yc("0x117")](t[yc("0x110")])));n&&r[yc("0x51")]({key:"$elementName",newValue:t[yc("0x12f")],oldValue:n[yc("0x12f")],range:e.model[yc("0x13")](t[yc("0x110")][yc("0x8c")])})}return 0!=r.length&&this[yc("0xf4")](t,r)}[yc("0x123")](t){let e=!1;const n=this[yc("0xad")].model.document[yc("0xe1")][yc("0x58")]().filter((t=>t[yc("0x72")][yc("0x9")]&&t[yc("0x12f")][yc("0x13b")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:i}=this[yc("0x156")](r[yc("0x12f")]),o=n[yc("0x126")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&"attribute"==n.type&&n[yc("0x72")]&&n[yc("0x72")].key==o&&n.getFirstRange()[yc("0x151")](r.data[yc("0x9")])&&(this[yc("0x112")](n,r.data[yc("0x9")],t),e=!0)}return e}[yc("0xa9")](t){this[yc("0xad")],this[yc("0x93")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x4b")](t),n=this[yc("0xbb")][yc("0x104")](t);return e||n}[yc("0xf4")](t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x7e")](r[yc("0x30")],yc("0x33"))[yc("0x158")]((t=>!t[yc("0x86")][yc("0x170")]))[yc("0x80")]((t=>t[yc("0xb7")])),i=(0,o.hashObject)({newValue:r[yc("0x10b")]});e[yc("0x158")]((t=>{const[e,n]=t[yc("0xb")][yc("0x126")]("|");return e==r[yc("0xdd")]&&n!=i}))[yc("0x40")]((e=>{this._reduceSuggestionAttributeRange(e,r[yc("0x30")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t.getFirstRange()[yc("0xa4")](e);0!==r[yc("0x16c")]?1!==r[yc("0x16c")]?this[yc("0x101")](t,e.start,e[yc("0x1e")]):this[yc("0xac")](t,r[0]):n.removeMarker(t.getFirstMarker())}}class kc{constructor(t){this[yc("0xce")]=t,this[yc("0x9f")]=t[yc("0x175")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,r,i,o){return new Qr(this[yc("0x9f")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0xed")](t,e,yc("0xc"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,yc("0xff"))(...n)})}[yc("0xea")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x125")][yc("0x14f")](i,r)}getSuggestionCallback(t,e,n){const r=t+":"+e+":"+n;return this[yc("0x125")][yc("0x143")](r)||this[yc("0x131")][yc("0x143")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[yc("0xb0")](((t,e)=>t[yc("0xfc")][yc("0x56")](e[yc("0xfc")])?1:-1)),this[yc("0x9f")][yc("0x71")]((e=>{for(const n of t){let t;t=n[yc("0x1e")][yc("0xe8")]&&n[yc("0x1e")][yc("0x163")]==n[yc("0xfc")].nodeAfter?e[yc("0x139")](n.start[yc("0x8c")],"on"):e[yc("0x139")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x9f")][yc("0x71")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x80")]((t=>(Sc(t)&&(t=this._model[yc("0x6f")](t[yc("0x1e")])),t)))[yc("0x158")]((t=>yc("0xd2")!==t[yc("0xd4")][yc("0x37")]));if(o.length<1)return;const x=Array.from(this[yc("0x9f")][yc("0x168")][yc("0xab")][yc("0x90")]()).map((t=>s.LiveRange.fromRange(t)));n.setSelection(o);for(const t of this[yc("0xce")][yc("0x162")][yc("0x162")]())t[yc("0x7d")]();i[yc("0x51")]({forceDefaultExecution:!0}),this._editor[yc("0xeb")](r,...i);const a=x.filter((t=>yc("0xd2")!=t[yc("0xd4")].rootName));a.length>0&&n[yc("0x22")](a);for(const t of x)t[yc("0x11a")]()}))},r=(t,e)=>1==t[yc("0x16c")]&&1==e[yc("0x16c")]&&t[0][yc("0x1e")][yc("0x117")](e[0][yc("0xfc")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x9f")])?[t,e]:wc(e,t,r,n,this[yc("0x9f")])?[e,t]:null;this._defaultCallbacks.set(yc("0x6a"),t),this[yc("0x131")][yc("0x14f")](yc("0x136"),e),this[yc("0x131")][yc("0x14f")](yc("0x159"),r),this[yc("0x131")][yc("0x14f")]("insertion:chain",i),this[yc("0x131")][yc("0x14f")]("deletion:accept",e),this._defaultCallbacks.set("deletion:discard",t),this._defaultCallbacks[yc("0x14f")](yc("0x15f"),r),this[yc("0x131")].set(yc("0xf8"),i),this[yc("0x131")][yc("0x14f")](yc("0x68"),n),this._defaultCallbacks[yc("0x14f")]("formatInline:discard",t),this[yc("0x131")][yc("0x14f")](yc("0xbe"),r),this._defaultCallbacks.set(yc("0x79"),t),this[yc("0x131")].set(yc("0x119"),n),this._defaultCallbacks[yc("0x14f")](yc("0x109"),t),this[yc("0x131")][yc("0x14f")]("formatBlock:join",r),this[yc("0x131")][yc("0x14f")]("formatBlock:chain",t),this[yc("0x131")][yc("0x14f")](yc("0xa7"),t),this[yc("0x131")][yc("0x14f")](yc("0x6e"),((t,e)=>{if(!e)return;const n=this[yc("0xce")][yc("0x14b")].get(Ac);this._model[yc("0x71")]((r=>{if(yc("0xa5")==e.key)for(const n of t){const t=n[yc("0xfc")][yc("0x8c")],i=e[yc("0x154")];r[yc("0x106")](t,i)}else if(n._isBlockAttribute(e[yc("0xdd")]))for(const n of t)void 0!==e[yc("0x154")]?r[yc("0x10a")](e[yc("0xdd")],e[yc("0x154")],n.start.nodeAfter):r[yc("0x138")](e[yc("0xdd")],n.start.nodeAfter);else for(const n of t)e.oldValue?r[yc("0x10a")](e[yc("0xdd")],e[yc("0x154")],n):r[yc("0x138")](e.key,n)}))})),this[yc("0x131")].set(yc("0x32"),r)}}function Ic(t,e,n){for(const r of e[yc("0x163")][yc("0xfe")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0xd4")]==r)return!1;if(!n[yc("0xb3")](r))return!1;if(t[yc("0xd0")](r)||t.isLimit(r))return!0}return!1}function Sc(t){return t.end[yc("0x163")]==t[yc("0xfc")][yc("0x8c")]&&t[yc("0x1e")][yc("0x13e")]}function Rc(t,e,n,r){const i=t=>!t[yc("0xfd")].is(yc("0x11e"))&&!r[yc("0xd0")](t[yc("0xfd")]),o=t.start.getLastMatchingPosition(i),s=t[yc("0x1e")][yc("0xcc")](i,{direction:"backward"});return!(t[yc("0xfc")][yc("0x117")](o)&&t[yc("0x1e")][yc("0x117")](s)||(o[yc("0x56")](s)?n.updateMarker(e,{range:n[yc("0x6f")](o,s)}):n[yc("0xaf")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0xfc")][yc("0x8c")];return e&&e.is("element")}function Lc(t,e){return null==t[yc("0x1e")][yc("0xe4")]&&t[yc("0x1e")][yc("0x163")]==t[yc("0xfc")][yc("0x8c")]?Mc(t[yc("0xfc")][yc("0x8c")],e):t}function Mc(t,e){const n=e[yc("0x64")][yc("0xd0")](t)||e.schema[yc("0x10d")](t);return e[yc("0x6f")](e.createPositionAt(t,yc("0x97")),n?e[yc("0x7a")](t):e[yc("0xc9")](t,"end"))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x1e")][yc("0x117")](r[yc("0xfc")]))return!0;if(t[yc("0x42")]!=e[yc("0x42")])return!1;if(!n[yc("0x1e")][yc("0x5b")](r.start))return!1;const o=i[yc("0x6f")](n[yc("0x1e")],r.start)[yc("0xb1")]();for(const t of o)if([yc("0x62"),yc("0x76")][yc("0x2e")](t[yc("0x42")])&&i[yc("0x64")][yc("0x28")](t.item))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x142")]||!e._isDataLoaded)&&jr(bc(t.attributes,n),bc(e[yc("0xc4")],n))}function Fc(t,e){const n=Dc(t[yc("0xc4")]),r=Dc(e);if(!t[yc("0x142")])return!1;for(const t of Object[yc("0x77")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0xd8")]({},t);return delete e[yc("0x2d")],delete e[yc("0x70")],e}const Pc=["commands","add","_pendingAction","destroy","_editor","listenTo","canAccept","plugins","model","unbind","_setPendingAction","canDiscard","acceptSuggestion","isDirty","discardSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","view","_removePendingAction","commentThreadController","canEditAt","getRanges","_discardCommand","get","isEnabled","PendingActions","remove","execute","bind"];var Bc,Uc;Bc=Pc,Uc=235,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x5")]=e,this[jc("0xe")]=n,this.commentThreadController=r,this[jc("0x1")]=t,this[jc("0xc")]=t[jc("0x1a")][jc("0x14")](jc("0x9")),this._discardCommand=t[jc("0x1a")].get("discardSuggestion"),this[jc("0xe")].bind("isEnabled").to(this[jc("0xc")],this._discardCommand,((t,e)=>t||e)),this[jc("0xe")][jc("0x19")](jc("0x3")).to(this._acceptCommand,jc("0x15"),(t=>t&&this._editor.model[jc("0x11")](e[jc("0x12")]()))),this.view[jc("0x19")](jc("0x8")).to(this[jc("0x13")],jc("0x15"),(t=>t&&this[jc("0x1")][jc("0x5")][jc("0x11")](e[jc("0x12")]()))),this._pendingAction=null,n[jc("0xa")]&&this[jc("0x7")](),this[jc("0x2")](n,"acceptSuggestion",(()=>this[jc("0x9")]())),this[jc("0x2")](n,jc("0xb"),(()=>this[jc("0xb")]())),this.listenTo(n,"change:isDirty",(()=>{n.isDirty?this[jc("0x7")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand.execute(this.model.id)}[jc("0xb")](){this[jc("0x13")][jc("0x18")](this.model.id)}[jc("0x0")](){this[jc("0xe")].unbind(jc("0x15")),this[jc("0xe")][jc("0x6")](jc("0x3")),this[jc("0xe")].unbind("canDiscard"),this.stopListening(),this[jc("0x10")].destroy(),this._pendingAction&&this[jc("0xf")]()}[jc("0x7")](){const t=Yr(this[jc("0x1")].locale,jc("0xd"));this[jc("0x1c")]=this[jc("0x1")][jc("0x4")][jc("0x14")](jc("0x16"))[jc("0x1b")](t)}[jc("0xf")](){null!==this._pendingAction&&this[jc("0x1")].plugins[jc("0x14")]("PendingActions")[jc("0x17")](this[jc("0x1c")]),this._pendingAction=null}}const Vc=["editor","isEnabled","bind","showInput","set","fire","isActive","setData","commentsListView","disabledSubmit","commentThreadInputView","length","commentInputView","removeComment","cancel","value","_localUser","isDirty","isReadOnly","destroy","addComment","_model","_createCommentViews","canDiscard","_createCommentThreadInputView","CommentView","focus","delegate","disableComments","hasDirtyComment","locale","editorConfig","commentThread","element","_config","authoredAt"];var Hc,zc;Hc=Vc,zc=221,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0x5")]=null,this[Wc("0x23")](Wc("0x1"),!1),this.set(Wc("0x1e"),e[Wc("0x1e")]),this[Wc("0x21")](Wc("0x1e")).to(e),this[Wc("0x23")]("descriptionParts",[]),this.set(Wc("0xc"),!1),this.set(Wc("0x20"),!1),this.set("canAccept",!1),this.set(Wc("0x12"),!1),this[Wc("0x10")]=e,this._localUser=n,this[Wc("0x1d")]=r,r[Wc("0x17")]?this[Wc("0x23")]("length",1):this[Wc("0x11")]()}[Wc("0x15")](){this[Wc("0x1c")].focus()}destroy(){this.commentsListView&&this[Wc("0x3")][Wc("0xe")](),this[Wc("0x5")]&&this[Wc("0x5")].destroy(),super.destroy()}[Wc("0x11")](){const{CommentsListView:t}=this[Wc("0x1d")];this[Wc("0x3")]=new t(this[Wc("0x19")],this[Wc("0x10")][Wc("0x1b")],Object.assign({CommentView:this[Wc("0x1d")][Wc("0x14")]},this._config)),this[Wc("0x3")].delegate(Wc("0x8")).to(this),this[Wc("0x3")][Wc("0x16")]("updateComment").to(this),this[Wc("0x3")][Wc("0x21")](Wc("0x1")).to(this),this[Wc("0x23")](Wc("0x6"),this[Wc("0x3")][Wc("0x6")]+1),this.bind("length").to(this[Wc("0x3")],Wc("0x6"),(t=>t+1)),this[Wc("0x5")]=this[Wc("0x13")](),this.on(Wc("0x8"),(()=>this[Wc("0x15")]())),this[Wc("0x21")](Wc("0xc")).to(this[Wc("0x3")],Wc("0x18"),this[Wc("0x5")].commentInputView,"value",((t,e)=>t||!!e))}[Wc("0x13")](){const{CommentThreadInputView:t}=this[Wc("0x1d")],e=new t(this.locale,this[Wc("0xb")],this[Wc("0x1d")][Wc("0x1a")]),n=e[Wc("0x7")];return e.bind(Wc("0x22")).to(this,Wc("0x1"),this._model[Wc("0x1b")],"isReadOnly",n,Wc("0xa"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x0")](Wc("0xf"),e),n[Wc("0x1f")][Wc("0x2")]("")})),n.on(Wc("0x9"),(()=>this[Wc("0x15")]())),n[Wc("0x21")](Wc("0x4")).to(this._model.commentThread,Wc("0xd")),e}}const qc=["acceptSuggestion","source","isActive","@external","type","</p>","commentsListView","ck-suggestion-wrapper","join","innerText","canDiscard","ck-comment__info-time","children","getExternalSuggestionNote","ck-suggestion__user","ck-annotation","author","editorReady","render",'" title="',"set","_config","createElement","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__actions","change:description","_model","ck-suggestion--disabled-comments","map","div","Accept suggestion","color","description","check","userView","ck-suggestion--accept","ck-suggestion__info-name","ck-suggestion-","push","acceptButton","importWord","ck-annotation__info","delegate","element","getUserViewNotificationText","locale","bind",".ck-annotation__content-wrapper","ck-suggestion__actions","discardSuggestion","discardButton","_createButton","getTemplate","commentThreadInputView","ck-annotation__user","ck-annotation__info-name","ck-suggestion-wrapper--active","name","commentThread","time","ck-suggestion--discard","Discard suggestion","isExternal","innerHTML","setTemplate","attributes","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","isEnabled","ck-annotation__info-time","EXTERNAL_IMPORT_WORD_AVATAR","fire","formatDateTime","ck-annotation__main","editorDestroyed","descriptionParts",'"></span>',"value","EXTERNAL_AVATAR","span","_descriptionElement","EXTERNAL_SUGGESTION","content","creator","extendTemplate","<p>"];var Xc,$c;Xc=qc,$c=162,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Qc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x20")]("type",""),this[Zc("0x3b")]("type").to(this,Zc("0x1"),(t=>t&&t[0]?t[0][Zc("0x10")]:"")),this[Zc("0x3b")](Zc("0x2d")).to(this,Zc("0x1"),this,Zc("0xe"),((t,e)=>{let n="";for(const e of t)n+=Zc("0xb")+Yc(e[Zc("0x8")],e[Zc("0x2c")])+Zc("0x11");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x6")]=null,this.acceptButton=this._createButton(Yr(e,Zc("0x2b")),t.icons[Zc("0x2e")],Zc("0x30"),Zc("0xc"),"sw"),this[Zc("0x34")][Zc("0x3b")](Zc("0x51")).to(this,"canAccept"),this[Zc("0x3f")]=this[Zc("0x40")](Yr(e,Zc("0x4a")),t.icons.cancel,Zc("0x49"),Zc("0x3e"),"sw"),this.discardButton[Zc("0x3b")](Zc("0x51")).to(this,Zc("0x16")),this[Zc("0x2f")]=new o.UserView(e,this._model[Zc("0x1c")],this[Zc("0x39")]()),this[Zc("0x2f")][Zc("0xa")]({attributes:{class:[Zc("0x1a"),Zc("0x43")]}}),this[Zc("0x4d")](this.getTemplate())}[Zc("0x41")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:["ck-suggestion__info",Zc("0x36")]},children:[{tag:Zc("0x5"),children:[{text:this[Zc("0x2f")].name}],attributes:{class:[Zc("0x31"),Zc("0x44")]}},{tag:Zc("0x48"),attributes:{datetime:t.to("authoredAt"),class:[Zc("0x17"),Zc("0x52")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x21")][Zc("0x55")](t)))}]}]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x3d"),Zc("0x25")]},children:[this.acceptButton,this[Zc("0x3f")]]},{tag:Zc("0x2a"),attributes:{class:[Zc("0x4f")]}}];this[Zc("0x27")][Zc("0x4b")]&&e[Zc("0x33")]({tag:Zc("0x2a"),attributes:{class:[Zc("0x23")]},children:[{text:this[Zc("0x19")]()}]});const n={tag:Zc("0x2a"),attributes:{class:[Zc("0x13"),t.if(Zc("0xe"),Zc("0x45")),t.to(Zc("0x10"),(t=>Zc("0x32")+t)),this[Zc("0x21")].disableComments&&Zc("0x28")],"data-suggestion-id":this[Zc("0x27")].id,"data-thread-id":this[Zc("0x27")][Zc("0x47")].id,"data-author-id":this[Zc("0x27")][Zc("0x1c")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Zc("0x1b")]},children:[this.userView,{tag:Zc("0x2a"),attributes:{class:["ck-suggestion__main",Zc("0x56")]},children:e}]}]};return this[Zc("0x12")]&&this[Zc("0x42")]&&(n[Zc("0x18")][Zc("0x33")](this.commentsListView,this[Zc("0x42")]),this[Zc("0x12")].delegate(Zc("0x1d")).to(this),this.commentsListView[Zc("0x37")](Zc("0x0")).to(this),this[Zc("0x42")].delegate("editorReady").to(this),this[Zc("0x42")][Zc("0x37")]("editorDestroyed").to(this)),n}[Zc("0x1e")](){super.render(),this[Zc("0x6")]=this[Zc("0x38")].querySelector(Zc("0x3c")),this._descriptionElement[Zc("0x4c")]=this[Zc("0x2d")],this.on(Zc("0x26"),((t,e,n)=>{this[Zc("0x6")][Zc("0x4c")]=n}))}[Zc("0x40")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x3a")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0xa")]({attributes:{class:n}}),s.on("execute",(()=>{this[Zc("0x54")](r,this[Zc("0x27")].id)})),s}[Zc("0x19")](){return Zc("0x35")===this._model[Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x50")):Yr(this[Zc("0x3a")],Zc("0x7"))}[Zc("0x39")](){return this[Zc("0x27")][Zc("0x4b")]?Zc("0x35")===this[Zc("0x27")][Zc("0x4e")][Zc("0xf")][Zc("0xd")]?Yr(this[Zc("0x3a")],Zc("0x53"),this[Zc("0x27")][Zc("0x9")][Zc("0x46")]):Yr(this.locale,Zc("0x4"),this[Zc("0x27")].creator.name):null}}function Yc(t,e){let n="";return n+=t.split("*")[Zc("0x29")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Jc(t)+"</span>":Jc(t)))[Zc("0x14")](""),e&&(n+=Zc("0x24")+e[Zc("0x3")]+Zc("0x1f")+e.title+Zc("0x2")),n}function Jc(t){const e=document[Zc("0x22")]("span");return e[Zc("0x15")]=t,e[Zc("0x4c")]}const tl=["add","isDirty","addSourceCollector","_createUIButton","get","filter","_refreshActiveMarkers","head","comments","_initializeController","activeAnnotations","requires","previous","destroy","trackChanges.disableComments","comments.maxCommentCharsWhenCollapsed","suggestionChanged","isInContent","unbind","CommentsUI","execute","_disableComments","toMany","comments.maxCommentsWhenCollapsed","separator","Discard all selected suggestions","_handleSuggestionControllerDelayed","hasSuggestion","pluginName","clear","source","focus","Annotations","acceptSelectedSuggestions","SuggestionThreadView","some","Discard all suggestions","commands","_destroyController","plugins","config","createAnnotation","editor","change:activeAnnotations","suggestionLoaded","_suggestionToController","trackChanges","value","keys","_annotationViews","init","TrackChangesEditing","delete","editing","getMarkers","_descriptionFactory","acceptButton","CommentsRepository","isMultiRange","change:previous","length","_viewToController","type","_handleControllerBuffer","switchbutton","map","CommentView","Accept all selected suggestions","Track changes","_bindAnnotationToEditors","from","locale","acceptAllSuggestions","lowest","commentThread","buttonView","push","set","descriptionParts","define","_updateController","button","EditorAnnotations","getFirstRange","suggestion-","Accept all suggestions","view","has","suggestionUnloaded","isEnabled","createCommentThreadController","getAllAdjacentSuggestions","comments.editorConfig","actionView","TrackChangesUI","activeMarkers","refreshSelectedViews","innerView","getSuggestion","commandName","comments.maxThreadTotalWeight","discardButton","addComment","bind","discardSelectedSuggestions","arrowView","createAnnotationView","listenTo","mainView","model"];var el,nl;el=tl,nl=431,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x14")](){return[Ac,o.Users,rl("0x42"),rl("0x29"),rl("0x5b")]}static get[rl("0x25")](){return rl("0x67")}constructor(t){super(t),this[rl("0x36")]=new Map,this._viewToController=new Map,this[rl("0x3a")]=new Map,this[rl("0x48")]=new Map;const e=this.editor[rl("0x31")];e[rl("0x58")]("trackChanges.SuggestionThreadView",Qc),e[rl("0x58")](rl("0x17"),!1),this[rl("0x1e")]=e.get("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x48")].size&&setTimeout((()=>{for(const[t,e]of this[rl("0x48")]){const n=this[rl("0x36")].has(t);n||e?n&&e&&this[rl("0x2f")](t):this[rl("0x12")](t)}this._handleControllerBuffer[rl("0x26")](),this.editor[rl("0x30")][rl("0xd")]("EditorAnnotations")[rl("0x69")](),this[rl("0xf")]()}),10),this[rl("0x48")].set(t,e)}[rl("0x3b")](){const t=this[rl("0x33")],e=t[rl("0x30")][rl("0xd")](rl("0x3c")),n=t[rl("0x30")][rl("0xd")]("Annotations"),r=t[rl("0x30")][rl("0xd")](rl("0x5b")),i=t[rl("0x30")][rl("0xd")]("CommentsRepository");t.ui.componentFactory.add(rl("0x37"),(t=>this[rl("0xc")](t))),r[rl("0xb")]((()=>{const t=[];for(const[e,n]of Array[rl("0x4f")](this._suggestionToController)){const r=e[rl("0x64")](),i=[];for(const t of r){if(!t[rl("0x1a")])continue;if(t[rl("0x43")]){i.push(...t.getRanges());continue}const e=t[rl("0x5c")]();if(i.length>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i.push(e)}t[rl("0x55")]([n[rl("0x5f")],i])}return t})),this[rl("0x6")](e,rl("0x35"),((t,e)=>{this[rl("0x6")](e,"change:previous",((t,n,r,i)=>{e[rl("0x1a")]&&(null==r?(this[rl("0x59")](i.head),this[rl("0x23")](e,!1)):(this._updateController(r.head),null==i&&this[rl("0x23")](e,!0)))})),null!==e[rl("0x15")]?this[rl("0x59")](e[rl("0x10")]):this._handleSuggestionControllerDelayed(e,!1)})),this.listenTo(e,rl("0x61"),((t,e,n)=>{this.stopListening(e,rl("0x44")),this[rl("0x48")][rl("0x3d")](e),this[rl("0x36")][rl("0x60")](e)&&this[rl("0x2f")](e),n&&this[rl("0x59")](n[rl("0x10")])})),this[rl("0x6")](e,rl("0x19"),((t,e)=>{this._updateController(e)})),this[rl("0x6")](n,rl("0x34"),(()=>{this[rl("0xf")]()})),this[rl("0x6")](i,rl("0x1"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x24")](n))return;const i=e[rl("0x6b")](n);this._suggestionToController[rl("0xd")](i)[rl("0x5f")][rl("0x28")]()}),{priority:rl("0x52")})}_refreshActiveMarkers(){const t=this.editor[rl("0x30")][rl("0xd")](rl("0x29")),e=this[rl("0x33")][rl("0x30")].get(rl("0x3c")),n=Array.from(t[rl("0x13")],(t=>t[rl("0x6a")])).filter((t=>this[rl("0x46")][rl("0x60")](t))),r=[];for(const t of n){const e=this[rl("0x46")].get(t)[rl("0x8")][rl("0x64")]();r.push(...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[rl("0x68")]=r}[rl("0xc")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this.editor[rl("0x2e")][rl("0xd")](rl("0x37")),o=Yr(t,rl("0x4d"));n[rl("0x54")].set({tooltip:o,label:o,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-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind("isOn").to(r,rl("0x38")),n[rl("0x54")].on(rl("0x1d"),(()=>{r.execute(),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()}));const s=new e.Collection,x=[{type:rl("0x49"),model:{withText:!0,label:o,commandName:rl("0x37")}},{type:"separator"},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x5e")),commandName:rl("0x51")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x4c")),commandName:rl("0x2a")}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x2d")),commandName:"discardAllSuggestions"}},{type:rl("0x5a"),model:{withText:!0,label:Yr(t,rl("0x22")),commandName:rl("0x3")}}];for(const t of x){let e={type:rl("0x21")};if(t.model){const n=new i.ViewModel(t[rl("0x8")]),r=this[rl("0x33")][rl("0x2e")].get(n[rl("0x6c")]);n[rl("0x2")]("isOn",rl("0x62")).to(r,rl("0x38"),"isEnabled"),e={type:t.type,model:n}}s[rl("0x9")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0xe")]((t=>null!=t.model))[rl("0x4a")]((t=>this[rl("0x33")][rl("0x2e")][rl("0xd")](t.model[rl("0x6c")]))),c=n[rl("0x54")];return c.actionView.unbind("isEnabled"),c[rl("0x4")][rl("0x1b")](rl("0x62")),c[rl("0x66")].bind(rl("0x62")).to(r,rl("0x62")),c.arrowView[rl("0x2")](rl("0x62"))[rl("0x1f")](a,rl("0x62"),((...t)=>t[rl("0x2c")]((t=>t)))),n.on(rl("0x1d"),(t=>{this[rl("0x33")].execute(t[rl("0x27")][rl("0x6c")]),this[rl("0x33")][rl("0x3e")][rl("0x5f")].focus()})),n}_initializeController(t){const e=this[rl("0x33")],n=e[rl("0x31")],r=e.plugins[rl("0xd")](rl("0x29")),i=e[rl("0x30")][rl("0xd")]("CommentsRepository"),s=e[rl("0x30")][rl("0xd")](rl("0x5b")),x=e.plugins[rl("0xd")](o.Users).me,a=n[rl("0xd")]("trackChanges")[rl("0x2b")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x30")][rl("0xd")](rl("0x1c"));let u,d;this[rl("0x3a")][rl("0x60")](t.id)?(d=this[rl("0x3a")][rl("0xd")](t.id),u=d[rl("0x7")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x1e")],editorConfig:n[rl("0xd")](rl("0x65")),maxCommentsWhenCollapsed:n[rl("0xd")](rl("0x20")),maxThreadTotalWeight:n[rl("0xd")](rl("0x6d")),maxCommentCharsWhenCollapsed:n[rl("0xd")](rl("0x18")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0xd")](rl("0x50"))),CommentView:n[rl("0xd")](rl("0x11"))[rl("0x4b")],CommentsListView:c,CommentThreadInputView:l}),u[rl("0x41")].on(rl("0x1d"),(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),u[rl("0x0")].on("execute",(()=>{e[rl("0x3e")][rl("0x5f")][rl("0x28")]()})),d=r[rl("0x5")](this[rl("0x33")].locale,u),d.bind(rl("0xa")).to(u,rl("0xa")),d[rl("0x2")](rl("0x45")).to(u),d[rl("0x2")](rl("0x47")).to(u,"type",(t=>rl("0x5d")+t)),this[rl("0x3a")][rl("0x56")](t.id,d));const g=i[rl("0x63")](t[rl("0x53")],u),f=new Gc(e,t,u,g),h=t[rl("0x64")]().filter((t=>t.isInContent));u[rl("0x57")]=e[rl("0x30")][rl("0xd")](rl("0x3c"))[rl("0x40")].getDescriptions(h),this[rl("0x36")].set(t,f),this[rl("0x46")][rl("0x56")](u,f);const m=r[rl("0x32")]({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0xe")]((t=>t[rl("0x1a")]));for(const t of r)n[rl("0x55")](...t[rl("0x3f")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x3e")],n)},type:()=>"suggestion-"+f[rl("0x5f")][rl("0x47")]});i[rl("0x4e")](u,m),r[rl("0x9")](m),s.registerAnnotation(m)}[rl("0x2f")](t){const e=this[rl("0x33")][rl("0x30")][rl("0xd")](rl("0x42")),n=this[rl("0x33")].plugins.get(rl("0x29")),r=this[rl("0x36")].get(t),i=r.view,o=n.getByInnerView(i);e._unbindEditors(i),o&&n.remove(o),this._suggestionToController[rl("0x3d")](t),this[rl("0x46")][rl("0x3d")](i),r[rl("0x16")]()}[rl("0x59")](t){if(!t[rl("0x1a")]||!this[rl("0x36")][rl("0x60")](t))return;const e=this[rl("0x33")][rl("0x30")].get("TrackChangesEditing"),n=this[rl("0x36")].get(t),r=t[rl("0x64")]();n.view[rl("0x57")]=e[rl("0x40")].getDescriptions(r)}[rl("0x16")](){for(const t of this[rl("0x36")][rl("0x39")]())this[rl("0x2f")](t);for(const t of this[rl("0x3a")].values())t[rl("0x7")].destroy();super[rl("0x16")]()}}var ol,sl,xl=["requires","TrackChanges","adapter","addSuggestion","editor","pluginName","getSuggestion","addSuggestionData","get","plugins","getSuggestions"];ol=xl,sl=131,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x1")](){return[Ac,il,"Comments"]}static get[al("0x6")](){return al("0x2")}set[al("0x3")](t){this.editor[al("0xa")].get(Ac)[al("0x3")]=t}get[al("0x3")](){return this.editor[al("0xa")][al("0x9")](Ac).adapter}[al("0x4")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac)[al("0x8")](t)}[al("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x5")].plugins.get(Ac)[al("0x0")]({skipNotAttached:t,toJSON:e})}[al("0x7")](t){return this[al("0x5")][al("0xa")][al("0x9")](Ac).getSuggestion(t)}}const ll=["addUser","getRootsAttributes","getUser","createDocumentFragment","useAnonymousUser","rootsAttributes","getDataWithAcceptedSuggestions","getRootNames","model","pluginName","getSuggestions","Users","trackChangesData.editorCreator","init","trackChangesData","div","reduce","createElement","constructor","create","config","get","TrackChangesData","name","execute","define","Pagination","acceptAllSuggestions","CommentsRepository","result","push","plugins","editorCreator","track-changes-data-invalid-editor-creator","discardAllSuggestions","function","set","TrackChangesEditing","_adapter","users","appendChild","data","getDataWithDiscardedSuggestions","requires","editor"];var ul,dl;ul=ll,dl=303,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x26")];class hl extends t.Plugin{static get[gl("0xa")](){return[Ac]}static get[gl("0x15")](){return gl("0x22")}init(){const t=this[gl("0xb")];if(t[gl("0x20")][gl("0x25")](gl("0x18"),(e=>{const n=t[gl("0x14")].document[gl("0x13")]().reduce(((t,e)=>(t[e]="",t)),{});return t[gl("0x1e")][gl("0x1f")](n,e)})),gl("0x2")!=typeof t[gl("0x20")][gl("0x21")](gl("0x1a")).editorCreator)throw new e.CKEditorError(gl("0x0"))}[gl("0x12")](t){return bl(this[gl("0xb")],!0,t)}[gl("0x9")](t){return bl(this[gl("0xb")],!1,t)}}class ml extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[gl("0x29")]="end"}[gl("0x19")](){this[gl("0xb")].plugins[gl("0x21")](gl("0x28"))._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[gl("0xb")][gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x5")]=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x2b")][gl("0x2a")](Ac,ml),r[gl("0x11")]=pl(t)?t[gl("0xd")]():void 0;const i=document[gl("0xf")](),s=t[gl("0x20")][gl("0x21")](gl("0x1a"))[gl("0x2c")],x=await s(r,(()=>function(t){const e=document[gl("0x1d")](gl("0x1b"));return t[gl("0x7")](e),e}(i)));!function(t,e){const n=t[gl("0x14")].document[gl("0x13")]()[gl("0x1c")](((e,n)=>(e[n]=t[gl("0x8")].get({rootName:n}),e)),{}),r=t[gl("0x2b")].get(gl("0x17"))[gl("0x6")].map((t=>({id:t.id,name:t[gl("0x23")]}))),i=t[gl("0x2b")][gl("0x21")](gl("0x4"))[gl("0x16")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x2b")][gl("0x21")](gl("0x17")),s=e[gl("0x2b")][gl("0x21")](gl("0x4"));for(const t of r)o[gl("0xe")](t.id)||o[gl("0xc")](t);o.me||o[gl("0x10")]();for(const t of i)s.addSuggestionData(t);e[gl("0x8")][gl("0x3")](n)}(t,x),x[gl("0x24")](gl(e?"0x27":"0x1"));const a=pl(x)?x.getFullData(n):x[gl("0x8")][gl("0x21")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();