@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231126.0 → 0.0.0-nightly-20231127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["editor","value","refresh","has","affectsData","execute","TrackChangesCommand","_enabledCommands","clearForceDisabled","_isEnabledBasedOnSelection","forceDisabled","commands","_disableUnsupportedCommands","_enableCommands"];var c,l;c=a,l=120,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x7")]=!1,this[u("0x8")](),this[u("0x1")]=!1}refresh(){this.isEnabled=!0}[u("0xb")](){this[u("0x7")]=!this[u("0x7")],this[u("0x7")]?this[u("0x4")]():this[u("0x5")]()}[u("0x4")](){for(const t of this[u("0x6")][u("0x3")][u("0x3")]())t[u("0xa")]&&!this[u("0xd")][u("0x9")](t)&&t[u("0x2")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0x6")][u("0x3")].commands())t.affectsData&&!this[u("0xd")][u("0x9")](t)&&t[u("0x0")](u("0xc"))}}const g=["plugins","_suggestions","refresh","TrackChangesEditing","get","canEditAt","acceptSuggestion","isEnabled","model","editor","execute"];var f,m;f=g,m=235,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x8")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}[h("0x9")](){this[h("0x3")]=!0}[h("0x6")](t){const n=this[h("0x8")][h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this.editor[h("0x4")][h("0x1")](o)&&this[h("0x5")][h("0x7")][h("0x0")](h("0xa"))[h("0x2")](n)}}const b=["refresh","get","_isEnabledBasedOnSelection","execute","editor","track-changes-discard-suggestion-not-found","TrackChangesEditing","canEditAt","plugins","_suggestions","discardSuggestion"];var E,_;E=b,_=436,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[T("0x4")](),this[T("0x6")]=!1}[T("0x4")](){this.isEnabled=!0}[T("0x7")](t){const n=this[T("0x2")][T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const o=n.getRanges();this[T("0x8")].model[T("0x0")](o)&&this[T("0x8")][T("0x1")][T("0x5")](T("0xa"))[T("0x3")](n)}}const C=["isMultiRange","start","type","length","value","map","push","createPositionAt","isArray","join","deletion","next","schema","createPositionBefore","add","end","change","getRanges","color","splice","createPositionAfter","execute","isCollapsed","isObject","replace","from","isIntersecting"];var A,k;A=C,k=352,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("0x1")]&&I("0x9")!=e[I("0x1")]?-1:I("0x9")!=t[I("0x1")]&&I("0x9")==e.type?1:0))}function R(t,e){let n,o=0;const r=[],i=e[I("0xb")];for(;o<t[I("0x2")];){const s=t[o],x=t[o+1];n||(n=e[I("0xc")](s)),v(e,s,x)||(r[I("0x5")](e.createRange(n,i[I("0x16")](s)?e.createPositionAfter(s):e[I("0x6")](s,I("0xe")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x13")](e),r=t[I("0xc")](n);return o.isTouching(r)}function N(t,e,n){for(;n[I("0x2")];){const o=n[I("0x12")](0,100);t[I("0xf")]((()=>{for(const t of o)t.isInContent&&e[I("0x14")](t.id)}))}}const L=["_command","execute","some","model","from","editor","_isEnabledBasedOnSelection","isEnabled","canEditAt","_suggestions","values","refresh"];var M,w;M=L,w=141,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._command=e,this[O("0x0")]=n,this[O("0x2")](),this[O("0x9")]=!1}refresh(){const t=Array[O("0x7")](this._suggestions[O("0x1")]())[O("0x5")]((t=>t.isInContent));this[O("0xa")]=this._command[O("0xa")]&&t}[O("0x4")](){const t=S(Array[O("0x7")](this[O("0x0")][O("0x1")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x8")][O("0x6")][O("0xb")](t))return}N(this[O("0x8")].model,this[O("0x3")],t)}}const D=["from","document","refresh","_selectedSuggestions","editor","_command","size","selection","isEnabled","model","canEditAt","_isEnabledBasedOnSelection","execute","values","_suggestions"];var B,P;B=D,P=401,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._command=e,this[U("0x3")]=n,this[U("0x7")]=new Set,this[U("0x6")](),this[U("0x0")]=!1}refresh(){const t=this[U("0x8")].model[U("0x5")][U("0xb")],e=Array[U("0x4")](this._suggestions[U("0x2")]());this[U("0x7")]=function(t,e){const n=Array[I("0x18")](t.getRanges()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[I("0x10")]())(e[I("0x19")](n)||t[I("0x15")]&&!r[I("0x1a")]&&r[I("0xa")]&&n[I("0xe")].isTouching(e[I("0x0")]))&&o[I("0xd")](r);return o}(t,e),this[U("0xc")]=this._command[U("0xc")]&&!!this[U("0x7")][U("0xa")]}[U("0x1")](){const t=S(Array[U("0x4")](this[U("0x7")]));for(const e of t){const t=e.getRanges();if(!this[U("0x8")][U("0xd")][U("0xe")](t))return}N(this[U("0x8")][U("0xd")],this[U("0x9")],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__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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))&&(mt(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(ot,"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 o=t[e];this.set(o[0],o[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),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=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 oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var 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),o=!n&&de(t),r=!n&&!o&&be(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("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)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(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 o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"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(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){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=ot.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=rt?rt.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 o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return 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]"==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]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=po(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,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||!i(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=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){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:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===p?m===h||r(m,h,n,o,i):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 i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?So(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["onAccept","onDiscard","substr","creator","data","nodeAfter","getRange","getMarkers","discard","getAllAdjacentSuggestions","size","from","getMarkerNames","add","attributes","previous","isIntersecting","getContainedElement","start","addMarkerName","hasComments","getFirstMarker","split","_onDiscard","decorate","createdAt","filter","suggestion:","set","end","onAttributesChange","commentThread","_markerNames","clear","nodeBefore","toJSON","push","change","removeMarkers","_model","delete","type","subType","length","removeMarker","getRanges","isExternal","isInContent","author","authoredAt","next","_onAccept","map","accept","@external","head","getItems","_onAttributesChange","markers"];var $o,Zo;$o=Xo,Zo=244,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Yo("0x21")]=e[Yo("0x21")],this[Yo("0x22")]=e[Yo("0x22")]||null,this.author=e[Yo("0x28")],this[Yo("0x36")]=e[Yo("0x36")]||e.author,this[Yo("0x26")]=Boolean(e.attributes&&e[Yo("0x6")][Yo("0x2e")]),this[Yo("0x37")]=null,this[Yo("0x1f")]=t,this[Yo("0x2b")]=e[Yo("0x33")],this[Yo("0xf")]=e[Yo("0x34")],this[Yo("0x31")]=e[Yo("0x16")],this[Yo("0x18")]=new Set,this[Yo("0x11")]=null,this[Yo("0x14")](Yo("0x29"),null),this[Yo("0x14")](Yo("0x6"),e[Yo("0x6")]||{}),this[Yo("0x14")](Yo("0x7"),null),this[Yo("0x14")](Yo("0x2a"),null),this[Yo("0x14")]("commentThread",null),this[Yo("0x14")]("_saved",!1),this[Yo("0x10")](Yo("0x2d")),this[Yo("0x10")]("discard")}get[Yo("0x2f")](){let t=this;for(;t.previous;)t=t[Yo("0x7")];return t}get[Yo("0xc")](){return!!this[Yo("0x17")]&&this[Yo("0x17")][Yo("0x23")]>0}get isMultiRange(){return 0!=this[Yo("0x18")][Yo("0x2")]&&6==Array.from(this[Yo("0x18")])[0][Yo("0xe")](":")[Yo("0x23")]}get[Yo("0x27")](){return null!==this[Yo("0xd")]()}addMarkerName(t){this[Yo("0x18")][Yo("0x5")](t)}[Yo("0x4")](){return Array[Yo("0x3")](this[Yo("0x18")])}[Yo("0x3a")](){return this[Yo("0x4")]()[Yo("0x2c")]((t=>this._model[Yo("0x32")].get(t)))[Yo("0x12")]((t=>t))}getFirstMarker(){return this[Yo("0x3a")]()[0]||null}[Yo("0x1e")](){this[Yo("0x1f")].change((t=>{for(const e of this[Yo("0x3a")]())t[Yo("0x24")](e)})),this[Yo("0x18")][Yo("0x19")]()}[Yo("0x24")](t){this[Yo("0x1f")].change((e=>{e[Yo("0x24")](t)})),this[Yo("0x18")][Yo("0x20")](t)}addRange(t){const e=Yo("0x13")+this[Yo("0x21")]+":"+this.subType+":"+this.id+":"+this[Yo("0x36")].id+":"+Jo.getMultiRangeId();this[Yo("0xb")](e),this[Yo("0x1f")][Yo("0x1d")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Yo("0x25")]())if(e[Yo("0x8")](t))return!0;return!1}[Yo("0x25")](){return this.getMarkers()[Yo("0x2c")]((t=>t[Yo("0x39")]()))}getItems(){return this[Yo("0x25")]().reduce(((t,e)=>[...t,...e[Yo("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this[Yo("0xd")]())||void 0===t?void 0:t[Yo("0x39")]())||null}[Yo("0x9")](){const t=this[Yo("0x25")]();if(1!=t[Yo("0x23")])return null;const e=t[0],n=e[Yo("0xa")][Yo("0x38")],o=e[Yo("0x15")][Yo("0x1a")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x2d")](){this[Yo("0x2b")](this.getRanges(),this[Yo("0x37")],this[Yo("0x6")]),this[Yo("0x1e")]()}[Yo("0x0")](){this[Yo("0xf")](this[Yo("0x25")](),this[Yo("0x37")],this[Yo("0x6")]),this[Yo("0x1e")]()}[Yo("0x1")](){const t=[];let e=this[Yo("0x2f")];for(;e;)t[Yo("0x1c")](e),e=e.next;return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Yo("0x6")])||(this.attributes=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this[Yo("0x6")])||(this.attributes=e,this[Yo("0x31")](this[Yo("0x6")]))}[Yo("0x1b")](){return{id:this.id,type:this[Yo("0x22")]?this[Yo("0x21")]+":"+this[Yo("0x22")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Yo("0xc")],data:this[Yo("0x37")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x35")](1,5)}}function Qo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["Object","_resolveDescriptionItems","key","data","removeFormat","push","addContainer","_itemLabelsCallbacks","previousSibling","replace","removeContainer","addEmptyContainer","_locale","_handleRenameSuggestionDescription","insertion","subType","isEmpty","element","attribute","set","isObject","indexOf","_customCallbacks","checkChild","nextSibling","add","getFirstRange","isInContent","length","function","type","addFormat","addObject","_handleInsertRemoveSuggestionDescription","remove","format","elementStart","skip","*Remove:* %0","nodeAfter","*Merge:* %0","elementEnd","_attributeLabels","normal","pop","item","registerDescriptionCallback","map","match","start","quantity","getWalker","_addDescriptionItems","newValue","has","ELEMENT_SPACE","end","*Insert:* %0","getItemLabel","Container","name","_schema","join","matchingCallback","get","_itemLabels","_handleCustomCallbackDescription","_handleAttributeSuggestionDescription","EmptyContainer","getDescriptions","REPLACE_TEXT","*Change to:* %0","*Split:* %0","text","deletion","$text","$textProxy"];var er,nr;er=tr,nr=172,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this._customCallbacks=[],this[or("0x2f")]=new Map,this[or("0x42")]=[],this[or("0x18")]=new Map,this._schema=t,this[or("0x47")]=e}[or("0x33")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t[or("0xa")];r++){const i=t[r];if(!i[or("0x9")])continue;const s=this[or("0x30")](i);if(s){if(null!=i[or("0x4a")]){if(n[or("0x24")](i[or("0x4a")]))continue;n[or("0x7")](i[or("0x4a")])}e[or("0x40")](s)}else if(or("0x0")!=i.type)or("0x49")!=i[or("0xc")]&&or("0x38")!=i[or("0xc")]||this._handleInsertRemoveSuggestionDescription(e,i,t[r+1]);else{const t=i[or("0x3e")][or("0x3d")];if(o[or("0x24")](t))continue;o[or("0x7")](i[or("0x3e")].key),t==mc?this._handleRenameSuggestionDescription(e,i):this[or("0x31")](e,i)}}return this._resolveDescriptionItems(e)}[or("0x1c")](t){this[or("0x4")].push(t)}registerElementLabel(t,n,o=e.priorities[or("0x19")]){or("0xb")==typeof t?(0,e.insertToPriorityArray)(this[or("0x42")],{matchingCallback:t,label:n,priority:o}):this[or("0x2f")][or("0x1")](t,n)}registerAttributeLabel(t,e){this[or("0x18")][or("0x1")](t,e)}[or("0x28")](t,e=1){let n;for(const e of this[or("0x42")])if(e[or("0x2d")](t)){n=e.label;break}return n||(n=this[or("0x2f")][or("0x2e")](t[or("0x2a")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x2a")]}[or("0x22")](t,e){const n=e.getFirstRange()[or("0x21")](),o=or("0x49")==e[or("0xc")]?or("0x7"):or("0x10");for(const e of n){const r=e[or("0x1b")],i=t[t[or("0xa")]-1];if(r.is(or("0x3a")))i&&i.type[or("0x3")](or("0x29"))>-1&&t[or("0x1a")](),i&&or("0x37")==i[or("0xc")]?i[o]+=r[or("0x3e")]:t.push({type:or("0x37"),add:or("0x7")==o?r[or("0x3e")]:"",remove:or("0x10")==o?r[or("0x3e")]:""});else if(this._schema.isObject(r)){const s=r;if(i&&i[or("0xc")][or("0x3")](or("0x29"))>-1&&t[or("0x1a")](),or("0x17")==e[or("0xc")])continue;i&&i[or("0xc")]==o+or("0x3b")&&i.element[or("0x2a")]==s.name?i[or("0x20")]++:t[or("0x40")]({type:o+or("0x3b"),element:s,quantity:1}),n[or("0x13")]((t=>!(or("0x17")==t[or("0xc")]&&t.item==r)))}else if(this._schema[or("0x5")](r,or("0x39"))||r.is("element","softBreak")){const n=r;if("add"==o&&or("0x12")==e[or("0xc")]||"remove"==o&&"elementEnd"==e.type)continue;if(i&&-1==i.type.indexOf(or("0x29"))){or("0x37")==i[or("0xc")]&&(i[o]+="\n");continue}let s;if(s=or("0x7")==o?n[or("0x6")]&&!this[or("0x2b")][or("0x2")](n[or("0x6")])?n[or("0x6")]:null:n.previousSibling&&!this[or("0x2b")].isObject(n[or("0x43")])?n[or("0x43")]:null,n[or("0x4b")]||s&&s.isEmpty){const e=s&&s[or("0x4b")]?s:n;i&&i[or("0xc")]==o+or("0x32")&&i[or("0x4c")][or("0x2a")]==e[or("0x2a")]?i[or("0x20")]++:t.push({type:o+or("0x32"),element:e,quantity:1})}else t[or("0x40")]({type:o+or("0x29"),element:n})}}}[or("0x3c")](t){const e=this[or("0x47")],n=[],o=[],r=[];for(const i of t)switch(i[or("0xc")]){case"text":if(i[or("0x7")]=i.add.replace(/(\S)\u000A+(\S)/g,"$1 $2")[or("0x44")](/\u000A/g,""),i.remove=i[or("0x10")][or("0x44")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x44")](/\u000A/g,""),""!=i[or("0x7")]&&""!=i.remove){n[or("0x40")]({type:"replace",content:Qo(e,or("0x34"),['"'+i[or("0x10")]+'"','"'+i[or("0x7")]+'"'])});continue}if(null!=i.add.match(/^ +$/)){n.push({type:or("0x49"),content:Qo(e,or("0x27"),Qo(e,or("0x25"),i.add[or("0xa")]))});continue}if(null!=i.remove[or("0x1e")](/^ +$/)){n[or("0x40")]({type:or("0x38"),content:Qo(e,or("0x14"),Qo(e,or("0x25"),i[or("0x10")][or("0xa")]))});continue}if(""!=i[or("0x7")]){n.push({type:or("0x49"),content:Qo(e,or("0x27"),'"'+i.add+'"')});continue}n[or("0x40")]({type:or("0x38"),content:Qo(e,or("0x14"),'"'+i[or("0x10")]+'"')});continue;case or("0x46"):case or("0xe"):n.push({type:"insertion",content:Qo(e,or("0x27"),this[or("0x28")](i.element,i[or("0x20")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:or("0x38"),content:Qo(e,"*Remove:* %0",this[or("0x28")](i[or("0x4c")],i[or("0x20")]))});continue;case or("0x41"):n[or("0x40")]({type:"insertion",content:Qo(e,or("0x36"),this.getItemLabel(i[or("0x4c")],i[or("0x20")]))});continue;case or("0x45"):n[or("0x40")]({type:"deletion",content:Qo(e,or("0x16"),this.getItemLabel(i[or("0x4c")],i[or("0x20")]))});continue;case or("0xd"):o.push(i[or("0x3d")]);continue;case or("0x3f"):r[or("0x40")](i[or("0x3d")]);continue;default:n[or("0x40")](i)}if(o[or("0xa")]){const t=o[or("0x1d")]((t=>this[or("0x18")][or("0x24")](t)?this[or("0x18")][or("0x2e")](t):t))[or("0x2c")](", ");n[or("0x40")]({type:or("0x11"),content:Qo(this._locale,"*Set format:* %0",t)})}if(r[or("0xa")]){const t=r[or("0x1d")]((t=>this[or("0x18")][or("0x24")](t)?this._attributeLabels.get(t):t))[or("0x2c")](", ");n[or("0x40")]({type:or("0x11"),content:Qo(this[or("0x47")],"*Remove format:* %0",t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[or("0x4")]){const n=e(t);if(n&&or("0xc")in n)return n}}[or("0x31")](t,e){const n=e.data,o=void 0===n[or("0x23")]?or("0x3f"):or("0xd");t[or("0x40")]({type:o,key:n[or("0x3d")]})}[or("0x48")](t,e){t[or("0x40")]({type:or("0x11"),content:Qo(this._locale,or("0x35"),this[or("0x28")](e[or("0x8")]()[or("0x1f")][or("0x15")],1))})}[or("0xf")](t,e,n){if(this[or("0x22")](t,e),n&&n[or("0x8")]()&&!e.getFirstRange()[or("0x26")].isEqual(n.getFirstRange()[or("0x1f")])){const n=t[t[or("0xa")]-1],o=or("0x49")==e[or("0xc")]?or("0x7"):or("0x10");n&&or("0x37")==n[or("0xc")]&&(n[o]+="\n")}}}const ir=["commands","TrackChangesEditing","plugins","get","afterInit","showAIAssistant","enableCommand"];var sr,xr;sr=ir,xr=150,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x1")](){const t=this.editor,e=t[ar("0x6")][ar("0x0")](ar("0x5"));t[ar("0x4")].get(ar("0x2"))&&e[ar("0x3")](ar("0x2"))}}const lr=["TrackChangesEditing","get","registerDescriptionCallback","commandName","*Format:* %0","FORMAT_ALIGNMENT","locale","afterInit","FORMAT_ALIGN_TO_LEFT","right","justify","plugins","AlignmentEditing","value","_registerLegacyDescription","_descriptionFactory","_enableDefaultAttributesIntegration","format","has","FORMAT_ALIGN_TO_RIGHT","alignment"];var ur,dr;ur=lr,dr=445,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x3")](){const t=this.editor,e=t.locale;if(!t.plugins[gr("0xe")](gr("0x8")))return;const n=t[gr("0x7")][gr("0x12")](gr("0x11"));n[gr("0xc")](gr("0x10"),[],["alignment"]),n[gr("0xb")].registerAttributeLabel(gr("0x10"),Qo(e,gr("0x1"))),this[gr("0xa")]()}[gr("0xa")](){const t=this.editor,e=t[gr("0x2")];t[gr("0x7")][gr("0x12")]("TrackChangesEditing")[gr("0xb")][gr("0x13")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&"alignment"==n[gr("0x14")]){const t=n.commandParams[0][gr("0x9")];return{type:gr("0xd"),content:Qo(e,gr("0x0"),function(t){switch(t){case"left":return Qo(e,gr("0x4"));case gr("0x5"):return Qo(e,gr("0xf"));case"center":return Qo(e,"FORMAT_ALIGN_TO_CENTER");case gr("0x6"):return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["subscript","FORMAT_BOLD","FORMAT_UNDERLINE","italic","BoldEditing","type","_enableDefaultAttributesIntegration","FORMAT_SUPERSCRIPT","code","*Format:* %0","strikethrough","_registerLegacyDescription","SuperscriptEditing","TrackChangesEditing","FORMAT_SUBSCRIPT","toUpperCase","FORMAT_","_descriptionFactory","ItalicEditing","FORMAT_STRIKETHROUGH","toLowerCase","CodeEditing","format","has","underline","StrikethroughEditing","afterInit","locale","bold","registerDescriptionCallback","commandName","SubscriptEditing","*Remove format:* %0","plugins","FORMAT_ITALIC","slice","get","editor","superscript"];var hr,pr;hr=mr,pr=177,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=[br("0x16"),br("0x24"),"UnderlineEditing",br("0x0"),br("0x4"),br("0xa"),br("0x1e")];class _r extends t.Plugin{[br("0x5")](){const t=this[br("0x10")],e=t.plugins.get("TrackChangesEditing"),n=t[br("0x6")];for(const o of Er){if(!t[br("0xc")][br("0x2")](o))continue;const r=o[br("0xe")](0,-7)[br("0x26")](),i=br("0x22")+r[br("0x21")]();e[br("0x18")](r,[r]),e[br("0x23")].registerAttributeLabel(r,Qo(n,i))}this[br("0x1d")]()}_registerLegacyDescription(){const t=this.editor,e=t[br("0x6")],n=t[br("0xc")][br("0xf")](br("0x1f"));function o(t,o){n._descriptionFactory[br("0x8")]((n=>{if("formatInline"!=n[br("0x17")])return;const{data:r}=n;return r&&r[br("0x9")]===t?r.commandParams[0].forceValue?{type:br("0x1"),content:Qo(e,br("0x1b"),o)}:{type:br("0x1"),content:Qo(e,br("0xb"),o)}:void 0}))}o(br("0x7"),Qo(e,br("0x13"))),o(br("0x15"),Qo(e,br("0xd"))),o(br("0x3"),Qo(e,br("0x14"))),o(br("0x1a"),Qo(e,"FORMAT_CODE")),o(br("0x1c"),Qo(e,br("0x25"))),o(br("0x12"),Qo(e,br("0x20"))),o(br("0x11"),Qo(e,br("0x19")))}}const Tr=["name","commands","format","filter","$root","_descriptionFactory","plugins","enableCommand","change","blockQuote","getSelectedBlocks","commandParams","markBlockFormat","checkChild","model","forceValue","parent","document","selection","has","schema","BlockQuoteEditing","locale","get","editor","registerDescriptionCallback","afterInit"];var yr,Cr;yr=Tr,Cr=167,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x15")](){const t=this[Ar("0x13")],e=t[Ar("0x11")];if(!t[Ar("0x1")][Ar("0xe")](Ar("0x10")))return;const n=t[Ar("0x1")][Ar("0x12")]("TrackChangesEditing"),o=this.editor[Ar("0x17")][Ar("0x12")](Ar("0x4"));n[Ar("0x2")](Ar("0x4"),((e,r={})=>{const i=this[Ar("0x13")][Ar("0x9")][Ar("0xc")][Ar("0xd")],s=r&&void 0!==r[Ar("0xa")]?r[Ar("0xa")]:!o.value;let x=[];if(s){const e=Array.from(i[Ar("0x5")]())[Ar("0x19")]((t=>Ir(t)||function(t,e){const n=e[Ar("0x8")](t.parent,"blockQuote"),o=e[Ar("0x8")]([Ar("0x1a"),"blockQuote"],t);return n&&o}(t,this[Ar("0x13")].model[Ar("0xf")])));x=R(e,t[Ar("0x9")])}else{const e=Array.from(i[Ar("0x5")]())[Ar("0x19")]((t=>Ir(t)));x=R(e,t.model)}t[Ar("0x9")][Ar("0x3")]((()=>{for(const t of x)n[Ar("0x7")](t,{commandName:Ar("0x4"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x0")][Ar("0x14")]((t=>{const{data:n}=t;if(n&&Ar("0x4")==n.commandName){const t=Qo(e,"ELEMENT_BLOCK_QUOTE");return n[Ar("0x6")][0][Ar("0xa")]?{type:"format",content:Qo(e,"*Set format:* %0",t)}:{type:Ar("0x18"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return Ar("0x4")==t[Ar("0xb")][Ar("0x16")]}const Sr=["plugins","TrackChangesEditing","commands","ckbox"];var Rr,vr;Rr=Sr,vr=369,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Nr=function(t,e){return Sr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this.editor;t[Nr("0x1")].get(Nr("0x2"))&&t[Nr("0x3")].get(Nr("0x0")).enableCommand(Nr("0x2"))}}const Mr=["CodeBlock","selection","schema","*Set format:* %0","from","locale","registerElementLabel","plugins","format","toLowerCase","parent","_descriptionFactory","get","type","getSelectedBlocks","afterInit","commandParams","ELEMENT_CODE_BLOCK","markBlockFormat","model","TrackChangesEditing","find","registerDescriptionCallback","languages","language","editor","label","isLimit","filter","config","enableCommand","commandName","change","codeBlock","value","name","rootElement","has","indentCodeBlock","forceValue"];var wr,Or;wr=Mr,Or=446,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x9")](){const t=this[Fr("0x13")];if(!t[Fr("0x1")][Fr("0x1f")](Fr("0x22")))return;const e=t[Fr("0x1")].get(Fr("0xe")),n=t[Fr("0x27")],o=t[Fr("0x17")][Fr("0x6")](Fr("0x1b"))[Fr("0x11")],r=t.commands[Fr("0x6")](Fr("0x1b"));e.enableCommand(Fr("0x20")),e[Fr("0x18")]("outdentCodeBlock"),e.enableCommand(Fr("0x1b"),((n,i={})=>{const s=t[Fr("0xd")],x=t[Fr("0xd")].document[Fr("0x23")],a=i&&void 0!==i.forceValue?i[Fr("0x21")]:!r[Fr("0x1c")];let c;i[Fr("0x12")]||(i[Fr("0x12")]=o[0][Fr("0x12")]),c=a?Array[Fr("0x26")](x[Fr("0x8")]())[Fr("0x16")]((t=>{return Br(t)||(e=t,n=s[Fr("0x24")],!e.is(Fr("0x1e"))&&!n[Fr("0x15")](e)&&n.checkChild(e[Fr("0x4")],Fr("0x1b")));var e,n})):Array[Fr("0x26")](x[Fr("0x8")]())[Fr("0x16")]((t=>Br(t)));const l=R(c,s);s[Fr("0x1a")]((()=>{for(const t of l)e[Fr("0xc")](t,{commandName:Fr("0x1b"),commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fr("0x5")][Fr("0x0")](Fr("0x1b"),(t=>Qo(n,Fr("0xb"),t))),e._descriptionFactory[Fr("0x10")]((t=>{if("formatBlock"!=t[Fr("0x7")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x1b")!=r[Fr("0x19")])return;const i=r.commandParams[0][Fr("0x12")],s=e(o[Fr("0xf")]((t=>t.language===i))[Fr("0x14")])[Fr("0x3")]();return r[Fr("0xa")][0][Fr("0x21")]?{type:Fr("0x2"),content:Qo(n,Fr("0x25"),Qo(n,Fr("0xb"),1)+" ("+s+")")}:{type:Fr("0x2"),content:Qo(n,"*Remove format:* %0",Qo(n,Fr("0xb"),1))}}))}}function Br(t){return Fr("0x1b")==t[Fr("0x1d")]}const Pr=["TrackChangesEditing","get","addCommentThread","has","afterInit","CommentsEditing","enableCommand","editor","plugins"];var Ur,jr;Ur=Pr,jr=331,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{[Gr("0x6")](){const t=this[Gr("0x0")];t[Gr("0x1")][Gr("0x5")](Gr("0x7"))&&t[Gr("0x1")][Gr("0x3")](Gr("0x2"))[Gr("0x8")](Gr("0x4"))}}var Hr=n(181);const zr=["ck-suggestion-marker-","addHighlight","TrackChangesEditing","hasAttribute","plugins","createUIElement","test","listItem","createRangeOn","markerName","getAttribute","elementEnd","getCustomProperty","bindElementToMarker","schema","get","push","span","markerRange","isAtEnd","isLimit","consumable","previousPosition","ck-suggestion-marker--active","addClass","getWalker","element","includes","isBlock","model","writer","nextSibling"];var Wr,Kr;Wr=zr,Kr=415,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e.getItems())r[qr("0x4")](t)&&o[qr("0x11")](n[qr("0x9")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x5")][qr("0x10")](qr("0x3"));return(r,i,s)=>{if(!s[qr("0x16")][qr("0x7")](i.markerRange,r.name))return;const x=i[qr("0x13")][qr("0x1a")](),a=i[qr("0x13")].start,c=t[qr("0x1e")][qr("0xf")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s.mapper.toViewElement(e);if(n&&n[qr("0xd")](qr("0x2")))return;qr("0xc")==t.type&&c[qr("0x1d")](e)&&!c[qr("0x15")](e)&&(e[qr("0x0")]||a[qr("0x14")]?l&&l.parent==e||(l=e,f(t[qr("0x17")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s.writer[qr("0x6")](qr("0x12"),{class:qr("0x1")+e}),x=s.mapper.toViewPosition(t);n&&o.activeMarkers[qr("0x1c")](i[qr("0xa")])&&s.writer[qr("0x19")](qr("0x18"),r),s[qr("0x1f")].insert(x,r),s.mapper[qr("0xe")](r,i[qr("0xa")])}d||g||!u||f(u)}}const Zr=["editing","getFirstRange","high","get","document","mapper","isCollapsed","showSuggestionHighlights","downcastDispatcher","model","unbindElementFromMarkerName","requires","forward","createRange","merge","enableCommand","editor","deleteForward","root","buffer","addMarker:suggestion:deletion","options","writer","remove","selection","batch","start","enqueueChange","commands","bind","delete","TrackChangesEditing","init","setSelection","markerName","modifySelection","end"];var Yr,Jr;Yr=Zr,Jr=162,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x22")](){return[Hr.Delete]}[Qr("0x12")](){const t=this[Qr("0x2")],e=t.plugins[Qr("0x1a")](Qr("0x11"));e[Qr("0x1")](Qr("0x10"));const n=t[Qr("0xe")][Qr("0x1a")](Qr("0x3"));e.enableCommand(Qr("0x3"),((e,o={})=>{const r=t[Qr("0x20")].createSelection(t.model[Qr("0x1b")][Qr("0xa")]);r[Qr("0x1d")]&&t[Qr("0x20")][Qr("0x15")](r,{direction:Qr("0x23"),unit:o.unit});const i=r[Qr("0x18")](),x=s.LiveRange.fromRange(i);let a;e(o),a="$graveyard"==x[Qr("0x4")].rootName?t[Qr("0x20")][Qr("0x24")](i[Qr("0xc")]):t[Qr("0x20")][Qr("0x24")](x.start,x[Qr("0x16")]),x.detach(),t[Qr("0x20")][Qr("0xd")](n[Qr("0x5")][Qr("0xb")],(t=>{n.buffer.lock(),t[Qr("0x13")](t[Qr("0x24")](a.end)),n[Qr("0x5")].unlock()}))})),t[Qr("0x17")][Qr("0x1f")].on(Qr("0x6"),$r(t,Qr("0x0")),{priority:Qr("0x19")}),t.data[Qr("0x1f")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Qr("0x7")][Qr("0x1e")]&&$r(t,Qr("0x0"),{showActiveMarker:!1})[Qr("0xf")](this)(e,n,o)}),{priority:Qr("0x19")}),t.editing[Qr("0x1f")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[Qr("0x1c")][Qr("0x21")](t,e[Qr("0x14")]),n[Qr("0x8")][Qr("0x9")](t))}),{priority:"high"})}}const ei=["deletion","createPositionAt","getAttribute","toUpperCase","has","after","getRanges","end","getSelectedBlocks","listIndent","type","from","markMultiRangeBlockFormat","*Change to:* %0","selection","findIndex","registerDescriptionCallback","list.multiBlock","detach","paragraph","listItemId","isObject","DocumentListEditing","document","commands","getFirstRange","isFirstBlockOfListItem","push","numberedList","splitListItemBefore","createRange","commandParams","ELEMENT_","nodeAfter","*Merge:* %0","editor","formatInline","splitListItemAfter","accept","next","config","commandName","*Format:* remove from %0","get","fromRange","multipleBlocks","add","_LIST","map","setSelection","ELEMENT_BULLETED_LIST","model","*Indent:* %0","change","DocumentListUtils","indentList","_suggestionFactory","registerElementLabel","outdentList","ELEMENT_NUMBERED_LIST","enableCommand","hasAttribute","formatBlock","nextSibling","_descriptionFactory","value","mergeListItemBackward","schema","execute","format","markBlockFormat","locale","start","plugins","*Outdent:* %0","documentList","refresh","TrackChangesEditing","listType","before","bulletedList"];var ni,oi;ni=ei,oi=474,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[ri("0x2f")];if(!t[ri("0x4")][ri("0x10")](ri("0x22")))return;const e=t[ri("0x2")],n=t[ri("0x4")][ri("0x37")](ri("0x8")),o=t[ri("0x4")][ri("0x37")](ri("0x42"));function r(e){return()=>{const r=t.commands[ri("0x37")](e);if(r.value&&!t[ri("0x34")][ri("0x37")](ri("0x1d")))return void t[ri("0x50")](ri("0x1f"),{});let i=Array[ri("0x17")](t[ri("0x3f")][ri("0x23")][ri("0x1a")][ri("0x14")]());if(a(e)){i=o.expandListBlocksToCompleteList(i);const t=[];for(const e of i)o[ri("0x26")](e)&&t.push(e);i=t}t[ri("0x3f")].change((()=>{n[ri("0x18")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x4d")]}],formatGroupId:ri("0x9")},[],"documentList")}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x17")](t);const n=e[ri("0x1b")]((t=>!t[ri("0x49")](ri("0x20"))));return n>-1&&(e=e.slice(0,n)),e}(t[ri("0x3f")][ri("0x23")][ri("0x1a")][ri("0x14")]()),r=o[o.length-1],i=t[ri("0x3f")].schema[ri("0x21")](r)?ri("0x11"):ri("0x13"),s=t[ri("0x3f")][ri("0x2a")](t[ri("0x3f")].createPositionAt(o[0],ri("0xa")),t[ri("0x3f")][ri("0xd")](r,i));t.model[ri("0x41")]((()=>{n[ri("0x1")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x9")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x4b")];for(;t&&t.getAttribute(ri("0x15"))>n[ri("0xe")](ri("0x15"));)e[ri("0x3a")](t),t=t[ri("0x4b")]}return Array[ri("0x17")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x3f")][ri("0x23")][ri("0x1a")][ri("0x14")]()[ri("0x33")]()[ri("0x4d")],r=t[ri("0x3f")][ri("0xd")](o,ri("0xa")),i=t[ri("0x3f")].createPositionAt(o,0),s=t[ri("0x3f")][ri("0x2a")](r,i);t[ri("0x3f")][ri("0x41")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x9")})}))}}function a(e){const n=t[ri("0x24")][ri("0x37")](ri("0xb")).value,o=t[ri("0x24")][ri("0x37")](ri("0x28"))[ri("0x4d")];return ri("0x28")===e?n:o}n[ri("0x48")](ri("0x28"),r(ri("0x28"))),n.enableCommand(ri("0xb"),r("bulletedList")),n[ri("0x48")](ri("0x43"),i(ri("0x43"))),n[ri("0x48")]("outdentList",i(ri("0x46"))),n[ri("0x48")](ri("0x31"),x(ri("0x31"))),n[ri("0x48")](ri("0x29"),x(ri("0x29"))),n[ri("0x4c")][ri("0x45")]((function(e){const n=!t[ri("0x3f")][ri("0x4f")][ri("0x21")](e),o=e.previousSibling,r=e[ri("0x4b")],i=e.getAttribute(ri("0x20")),s=!o||o[ri("0xe")]("listItemId")!==i,x=!r||r[ri("0xe")](ri("0x20"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[ri("0x1c")]((function(n){if("formatBlock"!=n[ri("0x16")]&&ri("0x30")!=n[ri("0x16")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x35")]){case ri("0xb"):s=o.commandParams[0].forceValue,x=a(o[ri("0x35")]),r=s?"*Format:* insert into %0":ri("0x36"),!x&&t[ri("0x34")][ri("0x37")]("list.multiBlock")||(r=ri("0x19")),i={type:ri("0x0"),content:Qo(e,r,Qo(e,ri("0x3e")))};break;case ri("0x28"):s=o.commandParams[0].forceValue,x=a(o[ri("0x35")]),r=s?"*Format:* insert into %0":ri("0x36"),!x&&t[ri("0x34")][ri("0x37")](ri("0x1d"))||(r=ri("0x19")),i={type:"format",content:Qo(e,r,Qo(e,ri("0x47")))};break;case"indentList":r=ri("0x40"),i={type:ri("0x0"),content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))};break;case ri("0x46"):r=function(t){const e=t[ri("0x25")]();let n=e[ri("0x3")][ri("0x2d")];for(;n&&e.containsItem(n);){if(n.getAttribute(ri("0x15"))>0)return!1;n=n[ri("0x4b")]}return!0}(n)?Qo(e,ri("0x36"),Qo(e,function(t){const e=t.getFirstRange()[ri("0x3")].nodeAfter;return ri("0x2c")+e[ri("0xe")](ri("0x9"))[ri("0xf")]()+ri("0x3b")}(n))):Qo(e,ri("0x5"),Qo(e,"ELEMENT_LIST_ITEM")),i={type:ri("0x0"),content:r};break;case ri("0x4e"):case"mergeListItemForward":!1===o[ri("0x39")]&&(r=ri("0x2e"),i={type:ri("0xc"),content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))})}return i})),n[ri("0x44")].registerCustomCallback(ri("0x4a"),ri("0x6"),ri("0x32"),(function(e,n){const o=[];for(let n of e)n[ri("0x3")][ri("0x2d")]===n[ri("0x13")].parent&&(n=t[ri("0x3f")][ri("0x2a")](t[ri("0x3f")][ri("0xd")](n.start[ri("0x2d")],0))),o[ri("0x27")](n);t[ri("0x3f")][ri("0x41")]((e=>{const r=t[ri("0x3f")][ri("0x23")][ri("0x1a")],i=Array[ri("0x17")](r[ri("0x12")]())[ri("0x3c")]((t=>s.LiveRange[ri("0x38")](t)));e[ri("0x3d")](o),t[ri("0x24")][ri("0x37")](n[ri("0x35")])[ri("0x7")](),n[ri("0x2b")][ri("0x27")]({forceDefaultExecution:!0}),t[ri("0x50")](n.commandName,...n[ri("0x2b")]),e.setSelection(i);for(const t of i)t[ri("0x1e")]()}))}))}}const si=["commandParams","bind","DocumentListUtils","startIndex","get","_descriptionFactory","handleDescriptions","DocumentListPropertiesEditing","listReversed","_getTranslationKeyForListStyle","numbered","document","getListTypeFromListStyleType","handleListStyleCommand","isListItemBlock","replace","listStyle","*Format:* set order to reversed","TrackChangesEditing","afterInit","enableCommand","DocumentListPropertiesUtils","format","*Format:* set order to regular","locale","has","from","toUpperCase","model","_getSuggestionBlocks","handleListReversedCommand","filter","*Format:* set start index to %0","expandListBlocksToCompleteList","_getSuggestionBlocksForListStyle","*Change to:* %0","editor","styles","listStart","_LIST_","change","plugins","getAttribute","length","selection","config","push","handleListStartCommand","registerDescriptionCallback","commandName","reversed","type"];var xi,ai;xi=si,ai=374,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x9")](){if(!this.editor[ci("0x1f")][ci("0xf")](ci("0x31")))return;const t=this[ci("0x1a")][ci("0x23")].get("list.properties"),e=this[ci("0x1a")].plugins[ci("0x2e")](ci("0x8"));t[ci("0x1b")]&&e[ci("0xa")]("listStyle",this[ci("0x3")][ci("0x2b")](this)),t[ci("0x28")]&&e[ci("0xa")](ci("0x32"),this[ci("0x14")][ci("0x2b")](this)),t[ci("0x2d")]&&e[ci("0xa")](ci("0x1c"),this[ci("0x25")][ci("0x2b")](this)),e[ci("0x2f")][ci("0x26")](this[ci("0x30")][ci("0x2b")](this))}[ci("0x3")](t,e={}){const n=this.editor[ci("0x1f")][ci("0x2e")](ci("0x8")),o=this[ci("0x18")]();this[ci("0x1a")][ci("0x12")][ci("0x1e")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:ci("0x6"),commandParams:[{type:e[ci("0x29")]}],formatGroupId:"listStyle"})}))}[ci("0x14")](t,e={}){const n=this.editor[ci("0x1f")].get(ci("0x8")),o=this.editor[ci("0x1f")][ci("0x2e")](ci("0x2c")),r=this._getSuggestionBlocks((t=>o[ci("0x4")](t)&&ci("0x0")===t[ci("0x20")]("listType")));null!==r&&this.editor[ci("0x12")][ci("0x1e")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listReversed",commandParams:[{reversed:e[ci("0x28")]}],formatGroupId:"listReversed"})}))}[ci("0x25")](t,e={}){const n=this[ci("0x1a")][ci("0x1f")].get("TrackChangesEditing"),o=this[ci("0x1a")][ci("0x1f")].get("DocumentListUtils"),r=this[ci("0x13")]((t=>o[ci("0x4")](t)&&ci("0x0")===t[ci("0x20")]("listType")));null!==r&&this[ci("0x1a")][ci("0x12")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x1c"),commandParams:[{startIndex:e[ci("0x2d")]}],formatGroupId:ci("0x1c")})}))}[ci("0x30")](t){if("formatBlock"!=t.type&&"formatInline"!=t[ci("0x29")])return;const e=this[ci("0x1a")][ci("0xe")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x27")]){case ci("0x6"):o=ci("0x19"),r={type:ci("0xc"),content:Qo(e,o,Qo(e,this[ci("0x33")](n[ci("0x2a")][0][ci("0x29")])))};break;case ci("0x32"):o=n.commandParams[0][ci("0x28")]?ci("0x7"):ci("0xd"),r={type:ci("0xc"),content:Qo(e,o)};break;case ci("0x1c"):o=ci("0x16"),r={type:ci("0xc"),content:Qo(e,o,n[ci("0x2a")][0][ci("0x2d")])}}return r}_getSuggestionBlocksForListStyle(){const t=this[ci("0x1a")][ci("0x1f")][ci("0x2e")](ci("0x2c"));let e=Array[ci("0x10")](this.editor[ci("0x12")][ci("0x1")][ci("0x22")].getSelectedBlocks());return e[ci("0x24")](...t[ci("0x17")](e)),e=[...new Set(e)],e}[ci("0x13")](t){const e=this.editor[ci("0x1f")].get("DocumentListUtils");let n=Array[ci("0x10")](this[ci("0x1a")][ci("0x12")][ci("0x1")].selection.getSelectedBlocks())[ci("0x15")](t);if(!n[ci("0x21")])return null;n=e[ci("0x17")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[ci("0x24")](t);return o}[ci("0x33")](t){return"ELEMENT_"+this[ci("0x1a")].plugins.get(ci("0xb"))[ci("0x2")](t)[ci("0x11")]()+ci("0x1d")+t[ci("0x11")]()[ci("0x5")](/-/g,"_")}}var ui=n(331);const di=["markerName","writer","data","setSelection","editing","fromRange","createRange","remove","parent","document","hasClass","getFirstRange","end","change","high","enterBlock","afterExecute","markerNameToElements","plugins","ck-suggestion-marker-split","createPositionAt","unbindElementFromMarkerName","mapper","addMarker:suggestion:insertion","get","fire","enableCommand","editor","showSuggestionHighlights","getFirstPosition","model","commands","requires","TrackChangesEditing","selection","split","enter","nextSibling","downcastDispatcher"];var gi,fi;gi=di,fi=190,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x25")](){return[ui.Enter]}init(){const t=this[mi("0x20")],e=t[mi("0x17")][mi("0x1d")](mi("0x26")),n=t[mi("0x24")][mi("0x1d")](mi("0x2"));e[mi("0x1f")](mi("0x2"),(()=>{t.model[mi("0x12")]((o=>{const r=t[mi("0x23")][mi("0xe")][mi("0x0")],i=r[mi("0x22")](),x=s.LiveRange[mi("0xa")](r[mi("0x10")]());if(n[mi("0x14")](o)){const n=t[mi("0x23")][mi("0x19")](i[mi("0xd")][mi("0x3")],0),r=o[mi("0xb")](i,n);e.markInsertion(r)}else o[mi("0x8")](o.createRange(x[mi("0x11")]));x.detach(),n[mi("0x1e")](mi("0x15"),{writer:o})}))})),t[mi("0x9")][mi("0x4")].on(mi("0x1c"),$r(t,mi("0x1")),{priority:"high"}),t[mi("0x9")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[mi("0x1b")][mi("0x16")](e[mi("0x5")]);if(o)for(const t of o)t[mi("0xf")](mi("0x18"))&&(n[mi("0x1b")][mi("0x1a")](t,e[mi("0x5")]),n[mi("0x6")][mi("0xc")](t))}),{priority:mi("0x13")}),t[mi("0x7")][mi("0x4")].on(mi("0x1c"),((e,n,o)=>{o.options[mi("0x21")]&&$r(t,mi("0x1"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const pi=["get","TrackChangesEditing","createPositionAt","plugins","findPrevious","findByTextCallback","getMarkersGroup","model","replaceAll","FindAndReplaceEditing","end","item","afterInit","start","editor","string","handleFindCommand","filter","suggestion:deletion","enableCommand","markers","_isInDeletionRange","has","getIntersection","getRange","FindAndReplaceUtils","findNext"];var bi,Ei;bi=pi,Ei=483,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0xf")](){if(!this[_i("0x11")][_i("0x6")][_i("0x19")](_i("0xc")))return;const t=this[_i("0x11")].plugins[_i("0x3")](_i("0x4"));t[_i("0x16")]("find",this[_i("0x13")].bind(this)),t[_i("0x16")](_i("0x2")),t[_i("0x16")](_i("0x7")),t.enableCommand("replace"),t[_i("0x16")](_i("0xb"))}[_i("0x13")](t,e,n={}){const o=this[_i("0x11")][_i("0x6")][_i("0x3")](_i("0x1"));if(void 0!==n)return t((t=>(_i("0x12")==typeof e?o[_i("0x8")](e,n):e)(t)[_i("0x14")]((e=>!1===this[_i("0x18")](e,t[_i("0xe")])))),n)}[_i("0x18")](t,e){const n=this[_i("0x11")].model.createRange(this[_i("0x11")][_i("0xa")][_i("0x5")](e,t[_i("0x10")]),this[_i("0x11")].model[_i("0x5")](e,t[_i("0xd")]));for(const t of this[_i("0x11")][_i("0xa")][_i("0x17")][_i("0x9")](_i("0x15")))if(null!==n[_i("0x1a")](t[_i("0x0")]()))return!0;return!1}}const yi=["get","FORMAT_FONT_SIZE","FontSize","*Set font background color:* %0","config","locale","FontFamilyEditing","trim","_descriptionFactory","fontSize","*Set font color:* %0","commandName","FORMAT_FONT_BACKGROUND","TrackChangesEditing","toLowerCase","fontColor","afterInit","format","registerAttributeLabel","normalizeSizeOptions","fontBackgroundColor","*Reset font family*","model","_registerLegacyDescription","FontColorEditing","fontBackgroundColor.colors","commandParams","value","*Set font family:* %0","editor","FontBackgroundColorEditing","_enableDefaultAttributesIntegration","FORMAT_FONT_FAMILY","*Reset font size*","FontSizeEditing","fontFamily","find","label","fontSize.options","plugins"];var Ci,Ai;Ci=yi,Ai=334,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x14"),commandName:ki("0x23")},{pluginName:ki("0x20"),commandName:ki("0x15")},{pluginName:ki("0xa"),commandName:ki("0x1")},{pluginName:ki("0x10"),commandName:ki("0x6")}];class Si extends t.Plugin{[ki("0x2")](){const t=this.editor[ki("0x1f")],e=this[ki("0xf")][ki("0x19")][ki("0x1a")](ki("0x27"));for(const{pluginName:t,commandName:n}of Ii)this[ki("0xf")][ki("0x19")].has(t)&&e[ki("0x11")](n,[n]);t.t,e[ki("0x22")][ki("0x4")](ki("0x23"),Qo(t,ki("0x1b"))),e._descriptionFactory.registerAttributeLabel("fontFamily",Qo(t,ki("0x12"))),e._descriptionFactory[ki("0x4")](ki("0x1"),Qo(t,"FORMAT_FONT_COLOR")),e._descriptionFactory[ki("0x4")]("fontBackgroundColor",Qo(t,ki("0x26"))),this[ki("0x9")]()}[ki("0x9")](){const t=this[ki("0xf")],e=t[ki("0x1f")];t.plugins[ki("0x1a")](ki("0x27"))[ki("0x22")].registerDescriptionCallback((t=>{const n=e.t;if("formatInline"!=t.type)return;const{data:o}=t;if(null!=o){if("fontSize"==o[ki("0x25")]){const t=o[ki("0xc")][0][ki("0xd")];if(t){const o=n(this.editor[ki("0x19")][ki("0x1a")](ki("0x1c"))[ki("0x5")](this[ki("0xf")][ki("0x1e")][ki("0x1a")](ki("0x18")))[ki("0x16")]((e=>e.model==t)).title)[ki("0x0")]();return{type:ki("0x3"),content:Qo(e,"*Set font size:* %0",o)}}return{type:ki("0x3"),content:Qo(e,ki("0x13"))}}if(ki("0x15")==o.commandName){const t=o[ki("0xc")][0].value;return t?{type:"format",content:Qo(e,ki("0xe"),t)}:{type:ki("0x3"),content:Qo(e,ki("0x7"))}}if(ki("0x1")==o[ki("0x25")]){const t=o[ki("0xc")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this.editor[ki("0x1e")].get("fontColor.colors"))[ki("0x16")]((e=>e[ki("0x8")]==t));let i=t,s="";return o&&(i=o[ki("0x17")],s=n(i)[ki("0x0")]()),{type:ki("0x3"),content:Qo(e,ki("0x24"),s)[ki("0x21")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font color*")}}if(ki("0x6")==o[ki("0x25")]){const t=o[ki("0xc")][0][ki("0xd")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0xf")][ki("0x1e")][ki("0x1a")](ki("0xb")))[ki("0x16")]((e=>e[ki("0x8")]==t));let i=t,s="";return o&&(i=o[ki("0x17")],s=n(i)[ki("0x0")]()),{type:"format",content:Qo(e,ki("0x1d"),s)[ki("0x21")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font background color*")}}}}))}}const Ri=["plugins","entries","split","fontSize.options","*Remove all formatting*","TrackChangesEditing","fontSize","FontSize","join","boolean","formatInline","format","editor","fontColor.colors","_enableDefaultAttributesIntegration","charAt","locale","get","type","commands","model","normalizeSizeOptions","*Set format to:* %0","commandName","pasteFormat","afterInit","commandParams","slice","label","fontBackgroundColor","toUpperCase","fontColor","_registerLegacyDescription","formatBlock","copyFormat","length","config","toLowerCase","push"];var vi,Ni;vi=Ri,Ni=439,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[Li("0xf")](){const t=this[Li("0x2")],e=t[Li("0x1d")][Li("0x7")](Li("0x22")),n=t[Li("0x9")][Li("0x7")](Li("0x18")),o=t.commands[Li("0x7")]("pasteFormat");n&&o&&(e[Li("0x4")](Li("0xe")),e.enableCommand(Li("0x18")),this[Li("0x16")]())}[Li("0x16")](){const t=this.editor,e=t[Li("0x6")];t.plugins[Li("0x7")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Li("0x17")!=n[Li("0x8")]&&Li("0x0")!=n[Li("0x8")])return;const{data:o}=n;if(o&&Li("0xe")===o[Li("0xd")]){const n=[],r=o[Li("0x10")][0];for(const[e,o]of Object[Li("0x1e")](r))n[Li("0x1c")](wi(t,e,o));return n[Li("0x19")]?{type:Li("0x1"),content:Qo(e,Li("0xc"),n[Li("0x25")](", "))}:{type:"format",content:Qo(e,Li("0x21"))}}}))}}function wi(t,e,n){const o=t[Li("0x6")].t,i=e[Li("0x1f")](/(?=[A-Z])/)[Li("0x25")](" "),s=o(i[Li("0x5")](0)[Li("0x14")]()+i[Li("0x11")](1)).toLowerCase();if(Li("0x26")==typeof n)return s;if(Li("0x15")===e||Li("0x13")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x1a")].get(Li("0x3"))).find((t=>t[Li("0xa")]==n));return s+" ("+(e?o(e[Li("0x12")]).toLowerCase():n)+")"}if(Li("0x23")===e&&isNaN(parseFloat(n))){const e=t[Li("0x1d")].get(Li("0x24"))[Li("0xb")](t[Li("0x1a")][Li("0x7")](Li("0x20"))).find((t=>t[Li("0xa")]==n));return s+" ("+(e?o(e.title)[Li("0x1b")]():n)+")"}return s+" ("+n+")"}const Oi=["name","_getHeadingLevel","plugins","locale","_descriptionFactory","HeadingEditing","editor","has","ELEMENT_HEADING_CUSTOM","heading","afterInit","_enableDefaultAttributesIntegration","get","model","TrackChangesEditing","paragraph","title","_registerLegacyDescription","match","type","registerElementLabel","ELEMENT_HEADING","_headingOptions","*Change to:* %0","commandName","format","find"];var Fi,Di;Fi=Oi,Di=161,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0xb")](){const t=this.editor;if(!t[Bi("0x3")][Bi("0x8")](Bi("0x6")))return;this._headingOptions=t.config.get("heading.options");const e=t[Bi("0x4")],n=t[Bi("0x3")][Bi("0xd")](Bi("0xf"));n[Bi("0xc")](Bi("0xa"));for(const t of this[Bi("0x17")])Bi("0x10")!=t[Bi("0xe")]&&n[Bi("0x5")][Bi("0x15")](t[Bi("0xe")],(n=>{const o=this._getHeadingLevel(t.model);return null!==o?(s=n,x=o,Qo(e,Bi("0x16"),[s,x])):(r=n,i=t[Bi("0x11")],Qo(e,"ELEMENT_HEADING_CUSTOM",[r,i]));var r,i,s,x}));this[Bi("0x12")]()}[Bi("0x12")](){const t=this[Bi("0x7")],e=t[Bi("0x4")];t[Bi("0x3")].get(Bi("0xf"))[Bi("0x5")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Bi("0x14")])return;const{data:n}=t;if(n&&Bi("0xa")==n[Bi("0x19")]){const t=n.commandParams[0].value,s=this[Bi("0x2")](t);if(null!==s)return{type:Bi("0x1a"),content:Qo(e,Bi("0x18"),(1,i=s,Qo(e,Bi("0x16"),[1,i])))};const x=this[Bi("0x17")][Bi("0x0")]((e=>e[Bi("0xe")]===t))[Bi("0x11")];return{type:Bi("0x1a"),content:Qo(e,"*Change to:* %0",(o=1,r=x,Qo(e,Bi("0x9"),[o,r])))}}var o,r,i}))}_getHeadingLevel(t){var e,n;const o=t[Bi("0x13")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this._headingOptions)||void 0===e?void 0:e.find((e=>e[Bi("0xe")]==t));if(r&&r.view){const t=r.view,e=(null!==(n=t[Bi("0x1")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["*Set highlight:* %0","title","commandParams","HighlightEditing","color","TrackChangesEditing","highlight","type","_descriptionFactory","has","commandName","format","registerDescriptionCallback","get","highlight.options","*Remove highlight*","locale","config","registerAttributeLabel","plugins","model","afterInit","FORMAT_HIGHLIGHT","editor","_registerLegacyDescription","formatInline"];var ji,Gi;ji=Ui,Gi=498,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x11")](){const t=this.editor;if(!t[Vi("0xf")][Vi("0x5")](Vi("0x19")))return;const e=t[Vi("0xf")][Vi("0x9")]("TrackChangesEditing"),n=t[Vi("0xc")];e._enableDefaultAttributesIntegration(Vi("0x2"),["highlight"]),e[Vi("0x4")][Vi("0xe")]("highlight",Qo(n,Vi("0x12"))),this[Vi("0x14")]()}[Vi("0x14")](){const t=this[Vi("0x13")],e=t[Vi("0xc")];t[Vi("0xf")][Vi("0x9")](Vi("0x1"))._descriptionFactory[Vi("0x8")]((n=>{if(Vi("0x15")!=n[Vi("0x3")])return;const{data:o}=n;if(o&&"highlight"==o[Vi("0x6")]){const n=e.t,r=o[Vi("0x18")][0].value;if(r){const o=t[Vi("0xd")].get(Vi("0xa")).find((t=>t[Vi("0x10")]==r)),i=n(o[Vi("0x17")]).toLowerCase();return{type:Vi("0x7"),content:Qo(e,Vi("0x16"),i),color:{value:o[Vi("0x0")],title:o[Vi("0x17")]}}}return{type:"format",content:Qo(e,Vi("0xb"),Qo(e,Vi("0x12")))}}}))}}const zi=["div","conversion","editor","enableCommand","for","has","showSuggestionHighlights","dataDowncast","locale","createEmptyElement","ck-horizontal-line","insert","afterInit","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","get","horizontalLine","HorizontalLineEditing","plugins","createContainerElement","elementToStructure","createPositionAt","registerElementLabel","addClass","high"];var Wi,Ki;Wi=zi,Ki=189,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0x5")](){const t=this[qi("0x15")];if(!t[qi("0xc")][qi("0x18")](qi("0xb")))return;t.plugins[qi("0x9")]("TrackChangesEditing")[qi("0x16")](qi("0xa"));const e=t.plugins[qi("0x9")](qi("0x6")),n=t[qi("0x1")];e[qi("0x8")][qi("0x10")](qi("0xa"),(t=>Qo(n,qi("0x7"),t))),t[qi("0x14")][qi("0x17")](qi("0x0"))[qi("0xe")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qi("0x19")])return null;const o=e[qi("0xd")](qi("0x13")),r=e[qi("0x2")]("hr");return e[qi("0x11")](qi("0x3"),o),e[qi("0x4")](e[qi("0xf")](o,0),r),o},converterPriority:qi("0x12")})}}const $i=["_descriptionFactory","TrackChangesEditing","rawHtml","get","editor","nodeAfter","HtmlEmbed","*Change %0 content*","ELEMENT_HTML_EMBED","format","locale","plugins","_registerLegacyDescription","element","registerDescriptionCallback","htmlEmbed","getFirstRange","start","key","commandName","afterInit","value"];var Zi,Yi;Zi=$i,Yi=104,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return $i[t-=0]};class Qi extends t.Plugin{[Ji("0x4")](){const t=this.editor;if(!t[Ji("0x11")].has(Ji("0xc")))return;const e=t[Ji("0x11")][Ji("0x9")](Ji("0x7")),n=t[Ji("0x10")];e[Ji("0x6")].registerElementLabel(Ji("0x8"),(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e._enableDefaultAttributesIntegration(Ji("0x15"),[],[Ji("0x5")]),e[Ji("0x6")].registerDescriptionCallback((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(e&&Ji("0x5")==e[Ji("0x2")]&&t[Ji("0x0")]()[Ji("0x1")][Ji("0xb")].is(Ji("0x13"),"rawHtml")){const t=Qo(n,"ELEMENT_HTML_EMBED");return{type:Ji("0xf"),content:Qo(n,Ji("0xd"),t)}}})),this[Ji("0x12")]()}_registerLegacyDescription(){const t=this[Ji("0xa")],e=t.locale;t[Ji("0x11")][Ji("0x9")](Ji("0x7"))[Ji("0x6")][Ji("0x14")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&Ji("0x15")==n[Ji("0x3")]){const t=Qo(e,Ji("0xe"));return{type:Ji("0xf"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["document","element","registerDescriptionCallback","Inline image to block image","find","_descriptionFactory","toNext","_enableDefaultAttributesIntegration","editor","resizeImage","imageInline","model","TrackChangesEditing","detach","commandName","has","alt","discard","addObject","ImageResize","fromPosition","ImageCaptionEditing","key","start","accept","registerAttributeLabel","toPrevious","isEqual","registerElementLabel","type","markDeletion","findIndex","attribute","schema","markBlockFormat","nodeBefore","get","convertInlineImageToBlock","change","ImageUtils","format","getCaptionFromImageModelElement","uploadImage","FORMAT_IMAGE_SIZE","createRange","locale","width","registerCustomCallback","isCollapsed","previous","ImageEditing","filter","getFirstRange","*Set image width:* %0","imageTypeInline","imageTextAlternative","newValue","*Reset image width*","insertion","_suggestionFactory","_registerLegacyDescription","insertImage","toggleImageCaption","getClosestSelectedImageElement","enableCommand","Block image to inline image","isIntersecting","markInsertion","ImageInlineEditing","isOwn","resizedWidth","createRangeOn","imageCaption","getContainedElement","getSuggestionCallback","end","chain","forceDefaultExecution","deletion","isBefore","commandParams","imageTypeBlock","getNearestSelectionRange","afterInit","selection","ELEMENT_CAPTION","plugins","subType","forward","ImageBlockEditing","formatBlock","ELEMENT_INLINE_IMAGE","isBlockImage","convertBlockImageToInline","ELEMENT_IMAGE"];var es,ns;es=ts,ns=246,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x1b")](){const t=this.editor;if(!t.plugins[os("0x36")](os("0x59")))return;const e=t.plugins.get(os("0x33")),n=t[os("0x1e")][os("0x4b")](os("0x4e")),o=t.locale;e[os("0x8")](os("0x5")),e[os("0x2c")][os("0x43")]("imageBlock",(t=>Qo(o,os("0x26"),t))),e[os("0x2c")].registerElementLabel(os("0x31"),(t=>Qo(o,os("0x23"),t))),e._descriptionFactory[os("0x43")]("caption",(()=>Qo(o,os("0x1d")))),t[os("0x1e")][os("0x36")]("ImageUploadEditing")&&e[os("0x8")](os("0x51")),t[os("0x1e")][os("0x36")](os("0x21"))&&t[os("0x1e")][os("0x36")](os("0xc"))&&(e[os("0x8")]("imageTypeInline",((o,r)=>{const i=n.getClosestSelectedImageElement(t.model[os("0x27")].selection);t.model[os("0x4d")]((()=>{e[os("0x49")](i,{commandName:os("0x5d"),commandParams:[r]},[],"convertBlockImageToInline")}))})),e.enableCommand(os("0x19"),((o,r)=>{t.model[os("0x4d")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x32")].document[os("0x1c")]),a=i[os("0xf")](x);const c=s.LivePosition.fromPosition(a[os("0x3e")],os("0x41")),l=s.LivePosition[os("0x3b")](a[os("0x13")],os("0x2d"));e[os("0x15")]((()=>o(r))),x=n.getClosestSelectedImageElement(t[os("0x32")][os("0x27")].selection),a=i[os("0xf")](x);const u=i[os("0x53")](c,l);c[os("0x34")](),l.detach(),e[os("0x49")](x,{commandName:"imageTypeInline",commandParams:[r]},[],os("0x4c")),u[os("0x3e")][os("0x17")](a.start)&&e[os("0xb")](i[os("0x53")](u[os("0x3e")],a[os("0x3e")]),"convertInlineImageToBlock"),a[os("0x13")][os("0x17")](u[os("0x13")])&&e[os("0xb")](i.createRange(a[os("0x13")],u.end),os("0x4c"))}))})),e[os("0x3")][os("0x56")](os("0x22"),os("0x4c"),"join",(()=>!1)),e[os("0x3")][os("0x56")](os("0x22"),os("0x4c"),os("0x3f"),(()=>!1)),e[os("0x3")][os("0x56")]("formatBlock",os("0x4c"),os("0x38"),e[os("0x3")][os("0x12")](os("0x22"),"",os("0x3f"))),e._suggestionFactory[os("0x56")](os("0x2"),os("0x4c"),"join",(()=>!1)),e[os("0x3")][os("0x56")]("insertion",os("0x4c"),"discard",(([n])=>{const o=e[os("0x3")][os("0x12")](os("0x2"),"",os("0x38"));let r=n.start,i=n[os("0x13")];const s=t[os("0x32")].schema[os("0x1a")](r,"backward"),x=t.model[os("0x48")][os("0x1a")](i,os("0x20"));s[os("0x57")]&&(r=s[os("0x3e")]),x.isCollapsed&&(i=x[os("0x13")]),o([t[os("0x32")].createRange(r,i)])})),e._suggestionFactory[os("0x56")](os("0x22"),"convertInlineImageToBlock",os("0x14"),x),e[os("0x3")][os("0x56")]("insertion",os("0x4c"),os("0x14"),x)),t[os("0x1e")][os("0x36")](os("0x3c"))&&(e.enableCommand(os("0x6"),((o,r)=>{const i=t[os("0x1e")][os("0x4b")]("ImageCaptionUtils");let s=n[os("0x7")](t.model[os("0x27")][os("0x1c")]),x=i[os("0x50")](s);t[os("0x32")].change((()=>{if(x)return void e[os("0x45")](t[os("0x32")].createRangeOn(x));const a=n[os("0x24")](s);o(r),s=n[os("0x7")](t[os("0x32")][os("0x27")].selection),x=i[os("0x50")](s),e[os("0xb")](t[os("0x32")][os("0xf")](x),a?null:os("0x10"))}))})),e[os("0x3")].registerCustomCallback(os("0x2"),os("0x10"),"chain",x));const r=[{type:os("0x22"),subType:"imageStylePreApply"},{type:os("0x2"),subType:"imageCaption"},{type:os("0x22"),subType:os("0x4c")},{type:os("0x2"),subType:"convertInlineImageToBlock"}];function i(t,o){const i=r[os("0x46")]((({type:e,subType:n})=>t[os("0x44")]==e&&t.subType==n)),s=r[os("0x46")]((({type:t,subType:e})=>o[os("0x44")]==t&&o[os("0x1f")]==e));if(i<0||s<0)return!1;const x=t[os("0x5b")](),a=o[os("0x5b")]();if((0==i||1==i)&&2==s&&x[os("0xa")](a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,os("0x2"))[os("0x5a")]((({suggestion:t,meta:e})=>e[os("0xd")]&&os("0x4c")==t[os("0x1f")]));if(t.length>1&&a.end[os("0x42")](x[os("0x3e")]))return!0;if(1==t.length&&(x[os("0x3e")][os("0x42")](a[os("0x13")])||x[os("0x13")][os("0x42")](a.start)))return!0}if(3==i&&3==s&&x.start[os("0x17")](a[os("0x3e")])){const t=x.end.nodeAfter,e=a[os("0x3e")][os("0x4a")];return n[os("0x24")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t.plugins[os("0x36")](os("0x3a"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[os("0xe")]),e[os("0x2c")][os("0x40")](os("0xe"),Qo(o,os("0x52")))),t[os("0x1e")][os("0x36")]("ImageTextAlternativeEditing")&&e[os("0x2e")](os("0x5e"),[],[os("0x37")]),e._descriptionFactory[os("0x29")]((t=>{if(r[os("0x2b")]((({type:e,subType:n})=>t.type==e&&t[os("0x1f")]==n)))return t[os("0x58")]?{}:void 0})),e[os("0x2c")][os("0x29")]((t=>{if(os("0x2")==t[os("0x44")]||os("0x16")==t[os("0x44")]){const e=t[os("0x11")]();if(e&&e.is(os("0x28"),"caption"))return{type:os("0x2")==t.type?os("0x39"):"removeObject",element:e,quantity:1}}})),e[os("0x2c")][os("0x29")]((t=>os("0x22")==t[os("0x44")]&&os("0x4c")==t.subType?{type:os("0x4f"),content:os("0x2a")}:os("0x22")==t[os("0x44")]&&os("0x25")==t[os("0x1f")]?{type:os("0x4f"),content:os("0x9")}:void 0)),e[os("0x2c")].registerDescriptionCallback((t=>{if(os("0x47")!=t.type)return;const{data:e}=t;if(!e||os("0x37")!=e[os("0x3d")])return;const n=e[os("0x0")];return n?{type:os("0x4f"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:"format",content:Qo(o,"*Remove image text alternative*")}})),this[os("0x4")]()}[os("0x4")](){const t=this[os("0x2f")],e=t[os("0x54")];t[os("0x1e")][os("0x4b")](os("0x33"))[os("0x2c")][os("0x29")]((t=>{if(os("0x22")!=t[os("0x44")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if("imageTextAlternative"==n[os("0x35")]){const t=n.commandParams[0][os("0x0")];return t?{type:os("0x4f"),content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:os("0x4f"),content:Qo(e,"*Remove image text alternative*")}}if(os("0x30")==n.commandName){const t=n[os("0x18")][0][os("0x55")];return t?{type:os("0x4f"),content:Qo(e,os("0x5c"),t)}:{type:os("0x4f"),content:Qo(e,os("0x1"))}}}}))}}const is=["*Replace image URL*","src","get","locale","format","_descriptionFactory","_registerLegacyDescription","afterInit","registerCustomCallback","getSuggestionCallback","newValue","_enableDefaultAttributesIntegration","plugins","attribute","registerDescriptionCallback","_suggestionFactory","commandName","TrackChangesEditing","replaceImageSource","editor","key","has","discard","type","formatBlock"];var ss,xs;ss=is,xs=211,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x15")](){if(!this[as("0x8")][as("0x1")][as("0xa")]("ImageEditing"))return;const t=this.editor[as("0x11")],e=this[as("0x8")][as("0x1")][as("0x10")](as("0x6"));e[as("0x0")]("replaceImageSource",[],[as("0xf")]),e[as("0x13")].registerDescriptionCallback((e=>{if(as("0x2")!=e[as("0xc")])return;const{data:n}=e;return n&&"src"==n[as("0x9")]?n[as("0x18")]&&n.oldValue?{type:as("0x12"),content:Qo(t,as("0xe"))}:{type:as("0x12"),content:""}:void 0})),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[as("0x8")][as("0x1")].get(as("0x6"));t[as("0x4")][as("0x16")](as("0xd"),as("0x7"),"accept",t[as("0x4")][as("0x17")](as("0xd"),null,as("0xb"))),t[as("0x4")][as("0x16")]("formatBlock",as("0x7"),as("0xb"),t[as("0x4")][as("0x17")](as("0xd"),null,"accept")),this[as("0x14")]()}[as("0x14")](){const t=this[as("0x8")],e=t.locale;t[as("0x1")][as("0x10")](as("0x6"))[as("0x13")][as("0x3")]((t=>{if(as("0xd")!=t[as("0xc")]&&"formatInline"!=t[as("0xc")])return;const{data:n}=t;return n&&as("0x7")===n[as("0x5")]?{type:as("0x12"),content:Qo(e,as("0xe"))}:void 0}))}}const ls=["author","discard","imageStylePreApply","filter","head","FORMAT_SIDE_IMAGE","formatInline","getSuggestionCallback","refresh","length","imageStyle","shouldConvertImageType","insertion","side","normalizedStyles","getContainedElement","getSuggestions","differ","getClosestSelectedImageElement","name","findIndex","markInlineFormat","imageTypeInline","_findSuggestions","model","commandName","createRangeOn","afterInit","commands","value","TrackChangesEditing","_suggestionFactory","Users","convertInlineImageToBlock","get","_registerLegacyDescription","formatBlock","locale","editor","chain","hasSuggestion","_splitMarkerName","isBlockImage","isEqual","markBlockFormat","title","imageCaption","isIntersecting","_descriptionFactory","ImageStyleEditing","subType","isOwn","start","join","imageStylePostApply","plugins","next","registerPostFixer","change","commandParams","registerCustomCallback","end","ImageUtils","document","from","getFirstRange","getSuggestion","accept","type","isBefore","toLowerCase","discardSuggestion","selection","newRange","*Format:* %0","suggestion"];var us,ds;us=ls,ds=100,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x3")](){const t=this[gs("0xe")];if(!t[gs("0x1f")].has(gs("0x19")))return;const n=t.plugins[gs("0xa")](gs("0x6")),o=t[gs("0x1f")][gs("0xa")](gs("0x26")),r={};n.enableCommand(gs("0x3e"),((r,i)=>{const s=t[gs("0x1f")][gs("0xa")](gs("0x8")).me,x=t[gs("0x4")][gs("0xa")](gs("0x3e"));let a=o[gs("0x46")](t[gs("0x0")].document.selection),c=t[gs("0x0")][gs("0x2")](a),l=x.value;if(l==i[gs("0x5")])return;const u={commandName:gs("0x3e"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x0")][gs("0x22")]((()=>{if(n[gs("0x44")]()[gs("0x37")]((t=>t.isInContent&&s==t[gs("0x34")]&&("formatBlock"==t.type||"formatInline"==t[gs("0x2c")])&&(gs("0x36")==t[gs("0x1a")]||gs("0x1e")==t[gs("0x1a")])&&t.getFirstRange().isEqual(c))).forEach((t=>n[gs("0x2f")](t[gs("0x38")]))),a=o[gs("0x46")](t.model.document[gs("0x30")]),c=t.model[gs("0x2")](a),x[gs("0x3c")](),t[gs("0x4")][gs("0xa")](gs("0x4a")).refresh(),t[gs("0x4")][gs("0xa")]("imageTypeBlock").refresh(),l=x[gs("0x5")],l!=i[gs("0x5")])return o.isInlineImage(a)&&x[gs("0x3f")](i[gs("0x5")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x46")](t[gs("0x0")].document[gs("0x30")]),void n[gs("0x14")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x36"))):void(o[gs("0x12")](a)?n[gs("0x14")](a,u,[],gs("0x1e")):n[gs("0x49")](c,u,gs("0x1e")))}))}));for(const e of t[gs("0x1f")][gs("0xa")](gs("0x19"))[gs("0x42")])r[e[gs("0x47")]]=e[gs("0x15")][gs("0x2e")]();n._suggestionFactory.registerCustomCallback("formatBlock",gs("0x36"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")]("formatInline",gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x2b"),(([t])=>{o.setImageNaturalSizeAttributes(t.getContainedElement())})),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x35"),((t,e)=>{n[gs("0x7")][gs("0x3b")](gs("0xc"),"","accept")(t,{commandName:e[gs("0x1")],commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x24")]("formatBlock",gs("0x36"),gs("0xf"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:gs("0x36")},{type:"insertion",subType:gs("0x16")},{type:gs("0xc"),subType:gs("0x9")},{type:gs("0x40"),subType:gs("0x9")}];function s(t,e){const r=i[gs("0x48")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=i[gs("0x48")]((({type:t,subType:n})=>e[gs("0x2c")]==t&&e.subType==n));if(r<0||s<0)return!1;const x=t[gs("0x29")](),a=e[gs("0x29")]();if((0==r||1==r)&&2==s&&x[gs("0x17")](a))return!0;if(2==r&&3==s){const t=n[gs("0x4b")](x,gs("0x40"))[gs("0x37")]((({suggestion:t,meta:e})=>e[gs("0x1b")]&&gs("0x9")==t.subType));if(t[gs("0x3d")]>1&&a[gs("0x25")][gs("0x13")](x.start))return!0;if(1==t[gs("0x3d")]&&(x[gs("0x1c")][gs("0x13")](a[gs("0x25")])||x[gs("0x25")][gs("0x13")](a.start)))return!0}if(3==r&&3==s&&x[gs("0x1c")][gs("0x2d")](a[gs("0x1c")])){const t=x.end.nodeAfter,e=a[gs("0x1c")].nodeBefore;return o[gs("0x12")](t)&&t===e}return!1}t[gs("0x0")][gs("0x27")][gs("0x21")]((()=>{let e=!1;const r=Array[gs("0x28")](t[gs("0x0")][gs("0x27")][gs("0x45")].getChangedMarkers());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x11")](t);if(gs("0x33")==r&&n[gs("0x10")](a)){if("formatBlock"==s&&(gs("0x36")==x||"imageStylePostApply"==x)){const t=n[gs("0x2a")](a);if(i[gs("0x31")]){const r=t.getFirstRange()[gs("0x43")]();if(o[gs("0x12")](r))continue;n.discardSuggestion(t),e=!0}}if("insertion"==s&&gs("0x16")==x&&!i[gs("0x31")]){const t=n[gs("0x2a")](a);t[gs("0x20")]&&t[gs("0x20")].isInContent&&(n.discardSuggestion(t[gs("0x20")]),e=!0)}}}return e})),this._registerLegacyDescription(r)}[gs("0xb")](t){const e=this.editor,n=e[gs("0xd")];e[gs("0x1f")][gs("0xa")]("TrackChangesEditing")[gs("0x18")].registerDescriptionCallback((e=>{if(gs("0xc")!=e[gs("0x2c")]&&gs("0x3a")!=e[gs("0x2c")])return;const{data:o}=e;if(!o||gs("0x3e")!=o[gs("0x1")])return;const r=o[gs("0x23")][0][gs("0x5")];return i=gs("0x41")===r?Qo(n,gs("0x39")):t[r]||r,{type:"format",content:Qo(n,gs("0x32"),i)};var i}))}}const ms=["editor","trackChanges","afterInit","plugins","dataInsert","high","_setSuggestionData","collaboration_features","lowest","execute","get","importWord","_trackChangesValueDuringImport","_trackChangesExecuted","commands","TrackChangesEditing","_handleImportedData","value","bind","enableCommand","listenTo"];var hs,ps;hs=ms,ps=415,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x11")]=!1,this[bs("0x12")]=!1}[bs("0x7")](){const t=this[bs("0x5")],e=t.commands[bs("0xf")](bs("0x10")),n=t[bs("0x13")][bs("0xf")](bs("0x6"));e&&(e.on("execute",((t,[,e])=>{this[bs("0x11")]=n[bs("0x1")],e[bs("0xc")].track_changes=!this._trackChangesValueDuringImport}),{priority:bs("0xa")}),this[bs("0x4")](e,bs("0x9"),this[bs("0x0")][bs("0x2")](this)),this[bs("0x4")](e,"dataInsert",(()=>{this[bs("0x12")]&&(n[bs("0xe")](),this[bs("0x12")]=!1)}),{priority:bs("0xd")}),t.plugins[bs("0xf")](bs("0x14"))[bs("0x3")](bs("0x10")))}[bs("0x0")](t,e){const{suggestions:n}=e,o=this[bs("0x5")][bs("0x13")][bs("0xf")]("trackChanges"),r=o[bs("0x1")];this[bs("0x11")]!==r&&(o.execute(),this[bs("0x12")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0x5")].plugins[bs("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x10")}}};this[bs("0x5")][bs("0x8")][bs("0xf")](bs("0x14"))[bs("0xb")](r)}))}}const _s=["has","enableCommand","indentBlock","*Indent:* %0","locale","TrackChangesEditing","getItems","plugins","_enableDefaultAttributesIntegration","outdentBlock","outdent","registerDescriptionCallback","editor","commandName","indent","_registerBlockAttribute","get","blockIndent","registerAttributeLabel","IndentEditing","formatBlock","format","*Outdent:* %0","IndentBlock","_registerLegacyDescription","getItemLabel","_descriptionFactory"];var Ts,ys;Ts=_s,ys=278,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this.editor,e=t[Cs("0x1a")][Cs("0x8")](Cs("0x18"));if(t[Cs("0x1a")][Cs("0x13")](Cs("0xb"))&&(e.enableCommand(Cs("0x6")),e[Cs("0x14")](Cs("0x2"))),t[Cs("0x1a")][Cs("0x13")](Cs("0xf")))for(const t of[Cs("0x15"),"outdentBlock"])e[Cs("0x0")](t);const n=t[Cs("0x17")];e[Cs("0x7")]("blockIndent"),e[Cs("0x12")][Cs("0xa")](Cs("0x9"),Qo(n,"FORMAT_INDENT")),this[Cs("0x10")]()}[Cs("0x10")](){const t=this[Cs("0x4")],e=t.locale,n=t.plugins[Cs("0x8")](Cs("0x18"));n[Cs("0x12")][Cs("0x3")]((t=>{if(Cs("0xc")!=t.type)return;const{data:o}=t;if(!o)return;if("indentBlock"!=o[Cs("0x5")]&&Cs("0x1")!=o[Cs("0x5")])return;const r=t[Cs("0x19")]()[0],i=n[Cs("0x12")][Cs("0x11")](r);return"indentBlock"==o[Cs("0x5")]?{type:Cs("0xd"),content:Qo(e,Cs("0x16"),i)}:Cs("0x1")==o[Cs("0x5")]?{type:Cs("0xd"),content:Qo(e,Cs("0xe"),i)}:void 0}))}}var ks,Is,Ss=["get","input","plugins","TrackChangesEditing","editor","enableCommand"];ks=Ss,Is=415,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get requires(){return[Hr.Input]}init(){this[Rs("0x3")][Rs("0x1")][Rs("0x5")](Rs("0x2"))[Rs("0x4")](Rs("0x0"))}}const Ns=["_registerLegacyDescription","get","registerAttributeLabel","plugins","formatInline","*Remove link*","format","_descriptionFactory","commands","commandParams","toLowerCase","has","LinkEditing","unlink","registerDescriptionCallback","_enableDefaultAttributesIntegration","link","manualDecorators","map","commandName","linkHref","*Set link:* %0","editor","type","TrackChangesEditing","locale","label"];var Ls,Ms;Ls=Ns,Ms=369,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this[ws("0x4")];if(!t[ws("0xc")][ws("0x14")](ws("0x15")))return;const e=t[ws("0xc")].get(ws("0x6")),n=t[ws("0x11")][ws("0xa")]("link");e[ws("0x18")](ws("0x19"),[ws("0x2"),...n[ws("0x1a")][ws("0x0")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x16"));for(const t of n[ws("0x1a")])e[ws("0x10")][ws("0xb")](t.id,"link ("+t[ws("0x8")][ws("0x13")]()+")");e._descriptionFactory[ws("0x17")]((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x2")!=n.key)return;const o=n.newValue,r=t[ws("0x7")];return{type:ws("0xf"),content:o?Qo(r,ws("0x3"),'"'+o+'"'):Qo(r,ws("0xe"))}})),this[ws("0x9")]()}[ws("0x9")](){const t=this.editor,e=t.locale;t.plugins[ws("0xa")](ws("0x6"))[ws("0x10")][ws("0x17")]((t=>{if(ws("0xd")!=t[ws("0x5")])return;const{data:n}=t;if(n){if(ws("0x19")==n[ws("0x1")]){const t=n[ws("0x12")][0];return{type:ws("0xf"),content:Qo(e,ws("0x3"),'"'+t+'"')}}return ws("0x16")==n[ws("0x1")]?{type:"format",content:Qo(e,ws("0xe"))}:void 0}}))}}const Fs=["listItem","push","markBlockFormat","listType","previousSibling","name","blockName","format","element","locale","editor","paragraph","getAttribute","get","_selectedElements","createPositionAt","_descriptionFactory","*Uncheck item*","model","List","listIndent","selection","bulletedList","registerDescriptionCallback","formatInline","value","filter","from","replace","type","getSelectedBlocks","createRange","forceValue","add","TodoListEditing","checkTodoList","slice","parent","todoList","numbered","ELEMENT_LIST_ITEM","*Indent:* %0","outdentList","commandParams","plugins","todo","document","before","numberedList","commandName","has","change","registerElementLabel","afterInit","checkChild","nextSibling","schema","indentList","enableCommand","length","commands","findIndex","ELEMENT_BULLETED_LIST"];var Ds,Bs;Ds=Fs,Bs=123,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x38")](){const t=this[Ps("0xd")],e=t[Ps("0xc")];if(!t[Ps("0x2f")][Ps("0x35")]("ListEditing"))return;const n=t.plugins.get("TrackChangesEditing"),o=t[Ps("0x2f")][Ps("0x35")](Ps("0x25"));function r(e){return()=>{const o=t[Ps("0x15")].document[Ps("0x18")],r=t[Ps("0x0")][Ps("0x10")](e);if(r[Ps("0x1c")])return void t.execute(Ps("0xe"),{});const i=e[Ps("0x27")](0,-4),s=function(t,e,n){let o=Array[Ps("0x1e")](t).filter((t=>{return e=t,(o=n)[Ps("0x39")](e[Ps("0x28")],Ps("0x3"))&&!o.isObject(e);var e,o}));o=o[Ps("0x1d")]((t=>!t.is(Ps("0xb"),Ps("0x3"))||t.getAttribute(Ps("0x6"))!=e));const r=new Set;for(const t of o)t.is(Ps("0xb"),Ps("0x3"))?r[Ps("0x24")](js(t)):r[Ps("0x24")](t);return Array.from(r)}(o[Ps("0x21")](),i,t[Ps("0x15")][Ps("0x3b")]);t[Ps("0x15")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x1c")]}],formatGroupId:Ps("0x9")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x1e")](t);const n=e[Ps("0x1")]((t=>"listItem"!=t.name));return n>-1&&(e=e[Ps("0x27")](0,n)),e}(t.model[Ps("0x31")].selection[Ps("0x21")]()),r=t[Ps("0x15")][Ps("0x22")](t[Ps("0x15")][Ps("0x12")](o[0],Ps("0x32")),t[Ps("0x15")][Ps("0x12")](o[o[Ps("0x3e")]-1],"end"));t[Ps("0x15")].change((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x3a")];for(;t&&t[Ps("0xf")](Ps("0x17"))>n[Ps("0xf")](Ps("0x17"));)e[Ps("0x24")](t),t=t[Ps("0x3a")]}return Array[Ps("0x1e")](e)}(o))}))}}n[Ps("0x3d")](Ps("0x33"),r(Ps("0x33"))),n[Ps("0x3d")](Ps("0x19"),r("bulletedList")),o&&n[Ps("0x3d")](Ps("0x29"),r(Ps("0x29"))),n.enableCommand(Ps("0x3c"),i("indentList")),n[Ps("0x3d")](Ps("0x2d"),i(Ps("0x2d"))),o&&n[Ps("0x3d")]("checkTodoList",(()=>{const e=t[Ps("0x0")][Ps("0x10")]("checkTodoList"),o=Array[Ps("0x1e")](e[Ps("0x11")]);o[Ps("0x1d")]((t=>t.getAttribute("todoListChecked")!=e[Ps("0x1c")])),t[Ps("0x15")][Ps("0x36")]((()=>{for(const t of o)n[Ps("0x5")](t,{commandName:Ps("0x26"),commandParams:[{forceValue:!e[Ps("0x1c")]}]})}))})),n[Ps("0x13")][Ps("0x37")](Ps("0x3"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x13")][Ps("0x1a")]((t=>{if("formatBlock"!=t[Ps("0x20")]&&Ps("0x1b")!=t[Ps("0x20")])return;const{data:n}=t;if(n){if(Ps("0x33")==n[Ps("0x34")]||Ps("0x19")==n[Ps("0x34")]||Ps("0x29")==n.commandName)switch(n[Ps("0x34")][Ps("0x1f")](Ps("0x16"),"")){case"bulleted":return o(Qo(e,Ps("0x2")));case Ps("0x2a"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x30"):return o(Qo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[Ps("0x34")])return{type:Ps("0xa"),content:Qo(e,Ps("0x2c"),Qo(e,Ps("0x2b")))};if(Ps("0x2d")==n[Ps("0x34")])return{type:Ps("0xa"),content:Qo(e,"*Outdent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x34")])return n[Ps("0x2e")][0][Ps("0x23")]?{type:Ps("0xa"),content:Qo(e,"*Check item*")}:{type:Ps("0xa"),content:Qo(e,Ps("0x14"))}}function o(t){return{type:"format",content:Qo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t.getAttribute(Ps("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x7")].is(Ps("0xb"),Ps("0x3"));){const o=t.previousSibling[Ps("0xf")](Ps("0x17"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ps("0x7")]}return n}function Gs(t){const e=[];if(t.is(Ps("0xb"),Ps("0x3"))&&t[Ps("0xf")]("listIndent")>0){let n=t[Ps("0x3a")];for(;n&&Ps("0x3")==n[Ps("0x8")]&&n[Ps("0xf")](Ps("0x17"))==t[Ps("0xf")]("listIndent");)e[Ps("0x4")](n),n=n[Ps("0x3a")]}return e}const Vs=["listItem","backward","element","commandName","format","model","enableCommand","map","styles","getListTypeFromListStyleType","afterInit","editor","filter","*Format:* set order to reversed","change","registerDescriptionCallback","flat","_LIST_","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","getAttribute","createPositionAt","startIndex","getSelectedBlocks","reversed","ListUtils","numbered","document","forward","listStart","plugins","handleListStyleCommand","handleDescriptions","getSiblingNodes","_getTranslationKeyForListStyle","length","type","formatInline","locale","commandParams","handleListStartCommand","createRange","has","handleListReversedCommand","selection","before","formatBlock","ListPropertiesEditing","ELEMENT_","from","*Format:* set start index to %0","toUpperCase","bind","get","push","markMultiRangeBlockFormat","listReversed","listStyle","listType","TrackChangesEditing","_getSuggestionBlocksForListStyle"];var Hs,zs;Hs=Vs,zs=248,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0xa")](){if(!this[Ws("0xb")][Ws("0x1f")][Ws("0x2b")](Ws("0x30")))return;const t=this[Ws("0xb")].config[Ws("0x36")]("list.properties"),e=this.editor[Ws("0x1f")][Ws("0x36")](Ws("0x3c"));t[Ws("0x8")]&&e[Ws("0x6")](Ws("0x3a"),this[Ws("0x20")].bind(this)),t[Ws("0x19")]&&e.enableCommand("listReversed",this[Ws("0x2c")].bind(this)),t[Ws("0x17")]&&e[Ws("0x6")]("listStart",this.handleListStartCommand[Ws("0x35")](this)),e._descriptionFactory[Ws("0xf")](this[Ws("0x21")][Ws("0x35")](this))}[Ws("0x20")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),o=this[Ws("0x3d")]();this[Ws("0xb")][Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](o,{commandName:"listStyle",commandParams:[{type:e[Ws("0x25")]}],formatGroupId:Ws("0x3a")})}))}[Ws("0x2c")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&"numbered"===t[Ws("0x15")]("listType")));if(o[Ws("0x24")]<1)return;const r=o.map((t=>this[Ws("0xb")][Ws("0x5")][Ws("0x2a")](this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,Ws("0x2e")),this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x39"),commandParams:[{reversed:e[Ws("0x19")]}],formatGroupId:Ws("0x39")})}))}[Ws("0x29")](t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&Ws("0x1b")===t.getAttribute(Ws("0x3b"))));if(o[Ws("0x24")]<1)return;const r=o.map((t=>this.editor[Ws("0x5")][Ws("0x2a")](this[Ws("0xb")].model.createPositionAt(t,"before"),this[Ws("0xb")][Ws("0x5")].createPositionAt(t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](r,{commandName:Ws("0x1e"),commandParams:[{startIndex:e[Ws("0x17")]}],formatGroupId:Ws("0x1e")})}))}[Ws("0x21")](t){if(Ws("0x2f")!=t[Ws("0x25")]&&Ws("0x26")!=t[Ws("0x25")])return;const e=this[Ws("0xb")][Ws("0x27")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x3")]){case Ws("0x3a"):o=Ws("0x14"),r={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x23")](n[Ws("0x28")][0][Ws("0x25")])))};break;case Ws("0x39"):o=n.commandParams[0].reversed?Ws("0xd"):"*Format:* set order to regular",r={type:"format",content:Qo(e,o)};break;case"listStart":o=Ws("0x33"),r={type:Ws("0x4"),content:Qo(e,o,n.commandParams[0][Ws("0x17")])}}return r}[Ws("0x3d")](){var t,e,n,o;const r=this[Ws("0xb")][Ws("0x1f")][Ws("0x36")]("ListUtils");let i=Array.from(this[Ws("0xb")][Ws("0x5")][Ws("0x1c")][Ws("0x2d")].getSelectedBlocks());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x2"),"listItem"))&&i.unshift(...r[Ws("0x22")](this[Ws("0xb")][Ws("0x5")].document.selection[Ws("0x13")](),Ws("0x1"))),(null===(e=i[i[Ws("0x24")]-1])||void 0===e?void 0:e.is("element",Ws("0x0")))&&i[Ws("0x37")](...r[Ws("0x22")](this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")].getLastPosition(),Ws("0x1d"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")][Ws("0x13")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element","listItem"))&&(i=i[Ws("0xc")]((t=>t.is(Ws("0x2"),Ws("0x0"))))),i}[Ws("0x12")](t){const e=this[Ws("0xb")][Ws("0x1f")].get("ListUtils");let n=Array[Ws("0x32")](this[Ws("0xb")][Ws("0x5")][Ws("0x1c")].selection[Ws("0x18")]()).filter(t)[Ws("0x7")]((t=>{const n=this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0);return[...e[Ws("0x22")](n,"backward"),...e[Ws("0x22")](n,"forward")]}))[Ws("0x10")]();return n=[...new Set(n)],n}[Ws("0x23")](t){return Ws("0x31")+this[Ws("0xb")][Ws("0x1f")][Ws("0x36")](Ws("0x1a"))[Ws("0x9")](t)[Ws("0x34")]()+Ws("0x11")+t[Ws("0x34")]().replace(/-/g,"_")}}const qs=["createEmptyElement","attribute:url:media","stop","MediaEmbedEditing","downcastDispatcher","for","registerElementLabel","media","options","TrackChangesEditing","locale","afterInit","has","plugins","high","editor","showSuggestionHighlights","conversion","_descriptionFactory","ELEMENT_MEDIA","get","dataDowncast","enableCommand"];var Xs,$s;Xs=qs,$s=250,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xe")](){const t=this[Zs("0x12")];if(!t[Zs("0x10")][Zs("0xf")](Zs("0x6")))return;const e=t[Zs("0x10")][Zs("0x0")](Zs("0xc")),n=t[Zs("0xd")];e[Zs("0x2")]("mediaEmbed"),e[Zs("0x15")][Zs("0x9")]("media",(t=>Qo(n,Zs("0x16"),t))),t[Zs("0x14")][Zs("0x8")](Zs("0x1")).elementToElement({model:Zs("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x3")]("div")},converterPriority:Zs("0x11")}),t.data[Zs("0x7")].on(Zs("0x4"),((t,e,n)=>{n[Zs("0xb")][Zs("0x13")]&&t[Zs("0x5")]()}),{priority:Zs("0x11")})}}const Js=["TrackChangesEditing","has","plugins","enableCommand","mention","MentionEditing","editor","get","afterInit"];var Qs,tx;Qs=Js,tx=161,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x7")];t.plugins[ex("0x2")](ex("0x6"))&&t[ex("0x3")][ex("0x8")](ex("0x1"))[ex("0x4")](ex("0x5"))}}const ox=["registerElementLabel","get","_descriptionFactory","has","enableCommand","editor","locale","afterInit","pageBreak","plugins","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing"];var rx,ix;rx=ox,ix=489,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0xc")](){const t=this[sx("0xa")];if(!t.plugins[sx("0x8")](sx("0x3")))return;t[sx("0x1")][sx("0x6")](sx("0x4"))[sx("0x9")]("pageBreak");const e=t[sx("0x1")].get(sx("0x4")),n=t[sx("0xb")];e[sx("0x7")][sx("0x5")](sx("0x0"),(t=>Qo(n,sx("0x2"),t)))}}const ax=["format","plugins","registerDescriptionCallback","*Insert:* %0","getFirstRange","get","_registerLegacyDescription","model","end","_descriptionFactory","isTouching","highest","commandName","$text","isBlock","addMarker:suggestion:insertion","toViewPosition","span","schema","writer","data","mapper","downcastDispatcher","addClass","nodeAfter","type","editor","*Change to:* %0","markerName","showSuggestionHighlights","consume","editing","TrackChangesEditing","paragraph","insertion","insertParagraph","_enableDefaultAttributesIntegration","createUIElement","markerRange","ck-suggestion-marker--active","formatBlock","getItemLabel","start","consumable","name","locale","has","insert","isLimit","includes"];var cx,lx;cx=ax,lx=202,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[ux("0x2c")]("Paragraph"))return;const e=t[ux("0x2b")],n=t[ux("0x31")][ux("0x3")](ux("0x1e"));n._descriptionFactory.registerElementLabel(ux("0x1f"),(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x22")]("paragraph"),n.enableCommand(ux("0x21")),t[ux("0x1d")][ux("0x14")].on(ux("0xd"),gx(t),{priority:ux("0x9")}),t[ux("0x12")][ux("0x14")].on(ux("0xd"),((e,n,o)=>{o.options[ux("0x1b")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o.registerDescriptionCallback((n=>{if(ux("0x20")!==n[ux("0x17")])return;const{start:r,end:i}=n[ux("0x2")]();if(!r[ux("0x8")](i)||!r.nodeAfter)return;const s=t[ux("0x5")][ux("0x10")],x=r[ux("0x16")];return s[ux("0xc")](x)&&!s[ux("0x2e")](x)&&s.checkChild(x,ux("0xb"))?{type:ux("0x20"),content:Qo(e,ux("0x1"),o[ux("0x27")](x,1))}:void 0})),this[ux("0x4")]()}[ux("0x4")](){const t=this[ux("0x18")],e=t[ux("0x2b")];t[ux("0x31")][ux("0x3")]("TrackChangesEditing")[ux("0x7")][ux("0x0")]((t=>{if(ux("0x26")!=t.type)return;const{data:n}=t;return n&&ux("0x1f")==n[ux("0xa")]?{type:ux("0x30"),content:Qo(e,ux("0x19"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x31")][ux("0x3")](ux("0x1e")),s=o[ux("0x24")][ux("0x28")],x=o[ux("0x24")][ux("0x6")],a=t[ux("0x5")][ux("0x10")];if(!s[ux("0x8")](x)||!s[ux("0x16")])return;const c=s[ux("0x16")];if(a[ux("0xc")](c)&&!a[ux("0x2e")](c)&&a.checkChild(c,ux("0xb"))){if(!r[ux("0x29")][ux("0x1c")](o[ux("0x24")],n[ux("0x2a")]))return;const t=r.writer[ux("0x23")](ux("0xf"),{class:"ck-suggestion-marker-split"}),s=r[ux("0x13")][ux("0xe")](x);e&&i.activeMarkers[ux("0x2f")](o[ux("0x1a")])&&r[ux("0x11")][ux("0x15")](ux("0x25"),t),r[ux("0x11")][ux("0x2d")](s,t),r[ux("0x13")].bindElementToMarker(t,o[ux("0x1a")])}}}const fx=["registerDescriptionCallback","*Remove all formatting*","formatBlock","formatInline","TrackChangesEditing","locale","type","_enableDefaultAttributesIntegration","RemoveFormatEditing","plugins","commandName","removeFormat"];var mx,hx;mx=fx,hx=324,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this.editor;t[px("0x9")].has(px("0x8"))&&(t[px("0x9")].get(px("0x4"))[px("0x7")](px("0xb")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this.editor;t[px("0x9")].get(px("0x4"))._descriptionFactory[px("0x0")]((e=>{if(px("0x2")!=e[px("0x6")]&&px("0x3")!=e[px("0x6")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0xa")]?{type:"format",content:Qo(t[px("0x5")],px("0x1"))}:void 0}))}}const Ex=["acceptSelectedSuggestions","trackChanges","has","acceptAllSuggestions","enableCommand","discardAllSuggestions","editor","discardSelectedSuggestions","plugins","discardSuggestion","get","goToPreviousRestrictedEditingException","acceptSuggestion","goToNextRestrictedEditingException","afterInit","RestrictedEditingModeEditing"];var _x,Tx;_x=Ex,Tx=414,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x8")];if(!t.plugins[yx("0x4")](yx("0x1")))return;const e=t[yx("0xa")][yx("0xc")]("TrackChangesEditing");e[yx("0x6")](yx("0xd")),e[yx("0x6")](yx("0xf"));const n=t[yx("0xa")][yx("0xc")](yx("0x1"));n[yx("0x6")](yx("0x3")),n[yx("0x6")](yx("0xe")),n.enableCommand(yx("0xb")),n[yx("0x6")](yx("0x5")),n[yx("0x6")](yx("0x7")),n[yx("0x6")](yx("0x2")),n.enableCommand(yx("0x9"))}}const Ax=["deletion","model","softBreak","getItems","enableCommand","data","consumable","addClass","bindElementToMarker","ck-suggestion-marker--active","ELEMENT_LINE_BREAK","writer","mapper","merge","ck-suggestion-marker-","addMarker:suggestion:insertion","TrackChangesEditing","get","downcastDispatcher","options","plugins","toViewPosition","shiftEnter","addMarker:suggestion:deletion","split","test","init","includes","markerRange","addMarker:suggestion","locale","high","registerElementLabel","createUIElement","requires","markerName","editing"];var kx,Ix;kx=Ax,Ix=147,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x23")](){return[ui.ShiftEnter]}[Sx("0x1b")](){const t=this.editor,e=t.plugins[Sx("0x12")](Sx("0x11"));e[Sx("0x5")](Sx("0x17")),t[Sx("0x0")][Sx("0x13")].on(Sx("0x10"),vx(t),{priority:Sx("0x20")}),t[Sx("0x0")][Sx("0x13")].on(Sx("0x18"),vx(t),{priority:Sx("0x20")}),t[Sx("0x6")].downcastDispatcher.on(Sx("0x1e"),((e,n,o)=>{o[Sx("0x14")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Sx("0x21")](Sx("0x3"),(e=>Qo(t[Sx("0x1f")],Sx("0xb"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Sx("0x15")].get(Sx("0x11"));if(!r[Sx("0x7")][Sx("0x1a")](o[Sx("0x1d")],n.name))return;const s=t[Sx("0x2")];for(const t of o[Sx("0x1d")][Sx("0x4")]()){if(!t.is("element",Sx("0x3")))continue;const n=Sx("0x1")==o[Sx("0x24")].split(":")[1]?Sx("0xe"):Sx("0x19"),x=r[Sx("0xc")][Sx("0x22")]("span",{class:Sx("0xf")+n}),a=r[Sx("0xd")][Sx("0x16")](s.createPositionBefore(t));e&&i.activeMarkers[Sx("0x1c")](o.markerName)&&r.writer[Sx("0x8")](Sx("0xa"),x),r[Sx("0xc")].insert(a,x),r[Sx("0xd")][Sx("0x9")](x,o[Sx("0x24")])}}}const Nx=["forceValue","has","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","format","formatInline","formatBlock","commandParams","restrictedEditingException","document","get","plugins","enableCommand","commands","commandName","StandardEditingModeEditing","type","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","change","afterInit","getRanges"];var Lx,Mx;Lx=Nx,Mx=447,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xb")](){const t=this.editor,e=t.model,n=t.locale;if(!t[wx("0x2")][wx("0xe")](wx("0x6")))return;const o=t.plugins[wx("0x1")](wx("0x10")),r=wx("0x16"),i=t[wx("0x4")][wx("0x1")](r);o[wx("0x3")](r,((t,n={})=>{const s=e[wx("0x0")].selection;if(s.isCollapsed)return void t(n);const x=void 0!==n[wx("0xd")]?n.forceValue:!i.value;e[wx("0xa")]((()=>{const t=Array[wx("0xf")](s[wx("0xc")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x8")].registerDescriptionCallback((t=>{if(wx("0x14")!=t.type&&wx("0x13")!=t[wx("0x7")])return;const{data:e}=t;return e&&e[wx("0x5")]==r?e[wx("0x15")][0][wx("0xd")]?{type:wx("0x12"),content:Qo(n,wx("0x9"))}:{type:"format",content:Qo(n,wx("0x11"))}:void 0}))}}const Fx=["_registerBlockAttribute","_descriptionFactory","config","has","*Remove format:* %0","GeneralHtmlSupport","add","get","_registerInlineAttribute","element","formatInline","normalizeConfig","registerAttributeLabel","styleName","plugins","formatBlock","commandName","_registerLegacyDescription","DataSchema","definitions","type","block","FORMAT_STYLE","*Set format:* %0","forceValue","TrackChangesEditing","commandParams","_enableDefaultAttributesIntegration","format","style","toLowerCase","getGhsAttributeNameForElement","locale","registerDescriptionCallback"];var Dx,Bx;Dx=Fx,Bx=121,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Px("0x1d")][Px("0x12")]("Style")||!t[Px("0x1d")][Px("0x12")](Px("0x21")))return;const e=t[Px("0x1d")][Px("0x16")](Px("0x6")),n=t[Px("0xd")],o=t[Px("0x11")].get("style"),r=t[Px("0x1d")][Px("0x16")](Px("0x14")),i=t.plugins.get("StyleUtils")[Px("0x1a")](t[Px("0x1d")].get(Px("0x21")),o[Px("0x0")]);e[Px("0x8")](Px("0xa"));const s=new Set;for(const t of i[Px("0x2")]){const e=r[Px("0xc")](t.element);s[Px("0x15")](e)}const x=new Set;for(const t of i.inline){const e=r.getGhsAttributeNameForElement(t[Px("0x18")]);x[Px("0x15")](e);for(const e of t.ghsAttributes)x.add(e)}for(const t of s)e[Px("0xf")](t),e[Px("0x10")].registerAttributeLabel(t,Qo(n,Px("0x3")));for(const t of x)e[Px("0x17")](t),e[Px("0x10")][Px("0x1b")](t,Qo(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x20")](){const t=this.editor,e=t[Px("0xd")];t.plugins.get(Px("0x6"))[Px("0x10")][Px("0xe")]((t=>{if(Px("0x1e")!=t[Px("0x1")]&&Px("0x19")!=t[Px("0x1")])return;const{data:n}=t;return n&&Px("0xa")===n[Px("0x1f")]?n[Px("0x7")][0][Px("0x5")]?{type:Px("0x9"),content:Qo(e,Px("0x4"),n[Px("0x7")][0].styleName.toLowerCase())}:{type:"format",content:Qo(e,Px("0x13"),n.commandParams[0][Px("0x1c")][Px("0xb")]())}:void 0}))}}const jx=["toLowerCase","add","registerElementLabel","insertTableColumnLeft","_suggestionFactory","differ","first","classes","enableCommand","some","ELEMENT_TABLE_COLUMN_WITH_TEXT","MIN_SAFE_INTEGER","addClass","refresh","last","plugins","insertTable","data","filter","mapper","showSuggestionHighlights","document","ELEMENT_TABLE","MAX_SAFE_INTEGER","afterInit","createTableWalker","removeClass","colspan","ELEMENT_TABLE_ROW_WITH_TEXT","rootName","nodeAfter","TableEditing","from","model","*Remove:* %0","fromRange","removeTableRow","getContainedElement","isEqual","execute","setSelection","item","change","name","order","downcastDispatcher","selection","has","table","ELEMENT_TABLE_WITH_TEXT","writer","ELEMENT_TABLE_ROW","getColumnIndexes","above","getRowIndexes","every","map","_tableSuggestions","selectTableRow","addRange","$graveyard","includes","cell","findAncestor","highest","insert","getSelectionAffectedTableCells","$textProxy","minRow","getCellLocation","tablePaste","markMultiRangeDeletion","commands","addMarker:suggestion","tableRow","editor","_tablePostFixingSubtypes","position","selectTableColumn","nodeBefore","span","registerCustomCallback","TrackChangesEditing","batch","change:data","accept","join","registerDescriptionCallback","min","_descriptionFactory","isArray","createRangeIn","TableUtils","low","get","getRanges","max","rowspan","left","values","locale","*Insert:* %0","_getSuggestionCoords","_splitMarkerName","tableCell","maxColumn","hasAttribute","length","isIntersectingWithRange","_getCoordsForCells","isTouching","subType","_setupColumnsRowsFixing","enqueueChange","getChangedMarkers","type","getSuggestion","substr","insertTableRowAbove","removeTableColumn","insertion","deletion","toViewElement","ELEMENT_TABLE_COLUMN","push","start","getAttribute","createRangeOn","getItems","end","_acceptFormatSuggestionCallbackFactory","root","getFirstRange","tableColumn","detach"];var Gx,Vx;Gx=jx,Vx=443,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x26")]=[Hx("0x24"),Hx("0x5f")],this[Hx("0x13")]=new Set}[Hx("0x79")](){const t=this[Hx("0x25")],e=t[Hx("0x82")][Hx("0x76")][Hx("0x8")];if(!t[Hx("0x70")][Hx("0x9")](Hx("0x80")))return;const n=t[Hx("0x3e")],o=t[Hx("0x70")][Hx("0x38")](Hx("0x2c")),r=t.plugins[Hx("0x38")](Hx("0x36"));o[Hx("0x33")][Hx("0x63")](Hx("0xa"),(t=>Qo(n,Hx("0x77"),t))),this[Hx("0x4a")](),o[Hx("0x69")](Hx("0x71")),o[Hx("0x69")](Hx("0x14")),o[Hx("0x69")](Hx("0x28"));for(const n of[Hx("0x50"),"insertTableRowBelow"]){const i=t[Hx("0x22")][Hx("0x38")](n);o[Hx("0x69")](n,(n=>{t[Hx("0x82")][Hx("0x4")]((t=>{n();const s=Hx("0xf")===i[Hx("0x6")],x=r[Hx("0x1c")](e),a=r[Hx("0x10")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0].findAncestor(Hx("0xa")),u=r[Hx("0x7a")](l,{startRow:c,endRow:c}),d=Array[Hx("0x81")](u).map((e=>t[Hx("0x59")](e[Hx("0x18")])));o.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[Hx("0x64"),"insertTableColumnRight"]){const i=t[Hx("0x22")][Hx("0x38")](n);o[Hx("0x69")](n,(n=>{t.model[Hx("0x4")]((t=>{n();const s=Hx("0x3c")===i[Hx("0x6")],x=r[Hx("0x1c")](e),a=r[Hx("0xe")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0][Hx("0x19")]("table"),u=r[Hx("0x7a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x81")](u)[Hx("0x12")]((e=>t[Hx("0x59")](e[Hx("0x18")])));o.markMultiRangeInsertion(d,Hx("0x5f"))}))}))}for(const n of[Hx("0x85"),"removeTableColumn"]){const i=n[Hx("0x4f")](11),s=i[Hx("0x61")](),x=s[Hx("0x4f")](0,3)+Hx("0x2a"),a=Hx("0xa")+i,c="min"+i,l=Hx("0x3a")+i;o.enableCommand(n,(()=>{t[Hx("0x82")][Hx("0x4")]((t=>{const i=r[Hx("0x1c")](e),u=i[0][Hx("0x19")](Hx("0xa"));let d;if(Hx("0x85")==n){const t=r[Hx("0x10")](i);d={startRow:t[Hx("0x67")],endRow:t[Hx("0x6f")],includeAllSlots:!0}}else{const t=r[Hx("0xe")](i);d={startColumn:t.first,endColumn:t[Hx("0x6f")],includeAllSlots:!0}}const g=r[Hx("0x7a")](u,d),f=Array[Hx("0x81")](g)[Hx("0x12")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x44")](x)))),h=Wx(f[Hx("0x73")]((t=>!t[Hx("0x44")](x))))[Hx("0x12")]((e=>t[Hx("0x59")](e))),p=o[Hx("0x21")](h,a);if(p&&("tableRow"==p.subType||Hx("0x5f")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Hx("0x59")](n),i=r[Hx("0x1f")](n),a=n[Hx("0x58")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x15")](o)}}}))}))}function i(n){const o=Array.from(e[Hx("0x39")]())[Hx("0x12")]((t=>s.LiveRange[Hx("0x84")](t)));t[Hx("0x82")].change((e=>{const r=e[Hx("0x2d")];n=n[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")])),e[Hx("0x2")](n),t[Hx("0x22")][Hx("0x38")](Hx("0x85"))[Hx("0x6e")](),t[Hx("0x1")]("removeTableRow",{forceDefaultExecution:!0}),t[Hx("0x82")][Hx("0x4b")]((()=>{t.model[Hx("0x4b")](r,(t=>{const e=o[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")].rootName));e[Hx("0x45")]>0&&t[Hx("0x2")](e);for(const t of o)t[Hx("0x60")]()}))}))}))}function a(n){t[Hx("0x82")][Hx("0x4")]((o=>{const r=Array[Hx("0x81")](e.getRanges()).map((t=>s.LiveRange[Hx("0x84")](t))),i=[];for(const t of n)for(const e of t[Hx("0x5a")]({shallow:!0}))i[Hx("0x56")](e);for(const e of i)Hx("0x16")!=e[Hx("0x5d")].rootName&&(o[Hx("0x2")](o.createPositionAt(e,0)),t[Hx("0x22")][Hx("0x38")]("removeTableColumn").refresh(),t.execute(Hx("0x51"),{forceDefaultExecution:!0}));const x=r[Hx("0x73")]((t=>"$graveyard"!=t[Hx("0x5d")][Hx("0x7e")]));x[Hx("0x45")]>0&&o.setSelection(x);for(const t of r)t[Hx("0x60")]()}))}function c(t,e){return e[Hx("0x11")]((e=>t[Hx("0x6a")]((t=>t[Hx("0x5b")][Hx("0x0")](e[Hx("0x57")])||e.end.isEqual(t[Hx("0x57")])))))}function l(t,e){return t[Hx("0x6a")]((t=>e[Hx("0x6a")]((e=>t.end[Hx("0x48")](e[Hx("0x57")])))))}t[Hx("0x72")][Hx("0x7")].on(Hx("0x23"),((t,e,n)=>{if(!n.options[Hx("0x75")])return;const o=e[Hx("0x3")];if(!o)return;const r=n[Hx("0x74")][Hx("0x54")](o);function i(t){return Array[Hx("0x34")](t)?t:[t]}r&&Hx("0x42")===o[Hx("0x5")]&&(0,x.setHighlightHandling)(r,n[Hx("0xc")],((t,e,n)=>n[Hx("0x6d")](i(e[Hx("0x68")]),t)),((t,e,n)=>n[Hx("0x7b")](i(e[Hx("0x68")]),t)))}),{priority:Hx("0x1a")}),o[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x52")!=t[Hx("0x4d")]&&Hx("0x53")!=t[Hx("0x4d")])return;const e=t[Hx("0x86")]();if(null!=e&&e.is("element",Hx("0xa"))){if(Hx("0x52")==t[Hx("0x4d")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t[Hx("0x72")]));if(e[Hx("0x45")])return{type:Hx("0x52"),content:Qo(n,Hx("0x3f"),Qo(n,Hx("0xb"),'"'+e.join(" ")+'"'))}}if(Hx("0x53")==t.type){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is("$textProxy")))[Hx("0x12")]((t=>t.data));if(e.length)return{type:"deletion",content:Qo(n,Hx("0x83"),Qo(n,Hx("0xb"),'"'+e[Hx("0x30")](" ")+'"'))}}}})),o[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x24")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),o=this[Hx("0x40")](t),r=o.maxRow-o[Hx("0x1e")]+1;if("insertion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Hx("0x52"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0xd"),r))};if(Hx("0x53")==t.type)return e[Hx("0x45")]?{type:Hx("0x53"),content:Qo(n,Hx("0x83"),Qo(n,Hx("0x7d"),[r,'"'+e[Hx("0x30")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x83"),Qo(n,Hx("0xd"),r))}}if(Hx("0x5f")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),o=this._getSuggestionCoords(t),r=o[Hx("0x43")]-o.minColumn+1;if(Hx("0x52")==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Qo(n,Hx("0x3f"),Qo(n,Hx("0x6b"),[r,'"'+e[Hx("0x30")](" ")+'"']))}:{type:Hx("0x52"),content:Qo(n,Hx("0x3f"),Qo(n,"ELEMENT_TABLE_COLUMN",r))};if("deletion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:"deletion",content:Qo(n,Hx("0x83"),Qo(n,Hx("0x6b"),[r,'"'+e.join(" ")+'"']))}:{type:Hx("0x53"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x55"),r))}}})),o._suggestionFactory.registerCustomCallback(Hx("0x52"),Hx("0x24"),"discard",i),o[Hx("0x65")][Hx("0x2b")](Hx("0x53"),"tableRow",Hx("0x2f"),i),o[Hx("0x65")].registerCustomCallback(Hx("0x52"),Hx("0x5f"),"discard",a),o[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x5f"),Hx("0x2f"),a),o[Hx("0x65")][Hx("0x2b")](Hx("0x52"),Hx("0x5f"),Hx("0x30"),c),o._suggestionFactory.registerCustomCallback("deletion",Hx("0x5f"),Hx("0x30"),c),o._suggestionFactory[Hx("0x2b")](Hx("0x52"),Hx("0x24"),"join",l),o[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x24"),Hx("0x30"),l)}[Hx("0x5c")](){const t=this[Hx("0x25")],e=t[Hx("0x82")].document[Hx("0x8")];return(n,o)=>{t[Hx("0x82")][Hx("0x4")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x5b")][Hx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0x57")][Hx("0x7f")]);const c=r[Hx("0x35")](a);if(Hx("0x16")==c.root[Hx("0x7e")])return;const l=Array.from(e.getRanges())[Hx("0x12")]((t=>s.LiveRange.fromRange(t)));r.setSelection(c),t[Hx("0x22")][Hx("0x38")](i)[Hx("0x6e")](),x[Hx("0x56")]({forceDefaultExecution:!0}),t.execute(i,...x);const u=l[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")]));u[Hx("0x45")]>0&&r.setSelection(u);for(const t of l)t[Hx("0x60")]()}))}}[Hx("0x47")](t){const e=this[Hx("0x25")].plugins.get("TableUtils");let n=Number[Hx("0x78")],o=Number[Hx("0x6c")],r=Number.MAX_SAFE_INTEGER,i=Number[Hx("0x6c")];for(const s of t){if("$graveyard"==s[Hx("0x5d")].rootName)continue;const{row:t,column:x}=e[Hx("0x1f")](s),a=s[Hx("0x44")](Hx("0x3b"))?s[Hx("0x58")](Hx("0x3b"))-1:0,c=s[Hx("0x44")](Hx("0x7c"))?s.getAttribute("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}_setupColumnsRowsFixing(){const t=this[Hx("0x25")],e=t.plugins[Hx("0x38")](Hx("0x2c")),n=t[Hx("0x70")][Hx("0x38")]("TableUtils");t[Hx("0x82")][Hx("0x76")].on(Hx("0x2e"),(()=>{const n=Array.from(t[Hx("0x82")][Hx("0x76")][Hx("0x66")][Hx("0x4c")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x41")](t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x4e")](r);this[Hx("0x26")][Hx("0x17")](i)&&this[Hx("0x13")][Hx("0x62")](s)}}),{priority:Hx("0x37")});const o=(t,e)=>{let o=!1;const r=e.createRangeOn(t),i=t[Hx("0x19")](Hx("0xa")),s=n[Hx("0x1f")](t);for(const e of this._tableSuggestions){const n=e[Hx("0x49")],x=n.startsWith(Hx("0x20")),a=n[Hx("0x4f")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+"span",u=Hx("0x32")+a,d=Hx("0x3a")+a;if(!e.isInContent)continue;if(i!=e[Hx("0x5e")]()[Hx("0x57")][Hx("0x19")]("table"))continue;if(e[Hx("0x46")](r))continue;const g=t[Hx("0x44")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x40")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x15")](r),o=!0)}return o};t[Hx("0x82")][Hx("0x76")].registerPostFixer((e=>{let n=!1;for(const r of t[Hx("0x82")][Hx("0x76")][Hx("0x66")].getChanges())if(Hx("0x1b")==r[Hx("0x4d")])if(Hx("0x24")==r.name)for(const t of r[Hx("0x27")][Hx("0x7f")].getChildren())n=n||o(t,e);else Hx("0x42")==r.name&&(n=n||o(r.position.nodeAfter,e));return n}))}[Hx("0x40")](t){return this[Hx("0x47")](t[Hx("0x39")]().map((t=>t[Hx("0x57")][Hx("0x7f")])))}}function Wx(t){return Array.from(new Set(t)[Hx("0x3d")]())}const Kx=["add","stop","low","getSuggestions","accept","getFirstPosition","getCellLocation","isEnabled","refresh","return","model","type","isInContent","selection","afterInit","mergeTableCellDown","get","execute","insertion","map","_tablePostFixingSubtypes","TableUtils","subType","rootName","detach","formatInline","markMultiRangeBlockFormat","$graveyard","highest","createRangeOn","format","tableCell","length","markBlockFormat","getSelectionAffectedTableCells","set:isEnabled","setSelection","_areMergableCells","from","mergeTableCellRight","getAncestors","registerDescriptionCallback","_areSelectedCellsMergable","TrackChangesEditing","value","commands","find","author","direction","cell","plugins","findAncestor","splitTableCellVertically","trackChanges","mergeTableCellLeft","*Split cell:* vertically","editor","change","push","formatBlock","table","getRanges","requires","element","mergeTableCellUp","mergeTableCells","registerCustomCallback","_descriptionFactory","document","containsRange","_acceptFormatSuggestionCallbackFactory","size","enableCommand","commandName","*Merge cells*","createTableWalker","splitTableCellHorizontally","_suggestionFactory","fromRange","TableEditing"];var qx,Xx;qx=Kx,Xx=174,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x30")](){return[zx]}[$x("0x0")](){const t=this[$x("0x2a")],e=t[$x("0x4c")][$x("0x36")][$x("0x4f")],n=t.locale;if(!t[$x("0x24")].has($x("0x41")))return;const o=t[$x("0x24")][$x("0x2")]($x("0x1d")),r=t[$x("0x24")][$x("0x2")]($x("0x7")),i=t[$x("0x24")][$x("0x2")](zx);i[$x("0x6")][$x("0x2c")]($x("0x33")),o[$x("0x3a")]($x("0x33"),(()=>{const e=r.getSelectionAffectedTableCells(t.model[$x("0x36")].selection);t.model.change((()=>{o[$x("0xc")](e,{commandName:$x("0x33"),commandParams:[]},[],"mergeTableCells")}))})),t.commands.get($x("0x33")).on($x("0x3"),((e,n)=>{t.commands.get($x("0x27")).value&&(n[$x("0x12")]>0&&n[n[$x("0x12")]-1]&&n[n[$x("0x12")]-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[$x("0x1c")]()||e[$x("0x43")]())}),{priority:$x("0xe")});for(const e of[$x("0x32"),$x("0x19"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[$x("0x1f")].get(e);o[$x("0x3a")](e,(()=>{const e=t.model.document.selection.getFirstPosition()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11")))),r=n[$x("0x1e")];t[$x("0x4c")].change((()=>{o[$x("0xc")]([e,r],{commandName:$x("0x33"),commandParams:[]},[],$x("0x33"))}))}))}for(const e of["splitTableCellVertically",$x("0x3e")]){const n=t[$x("0x1f")][$x("0x2")](e);o[$x("0x3a")](e,(()=>{const i=r[$x("0x14")](t[$x("0x4c")].document[$x("0x4f")])[0],s=i[$x("0x25")]($x("0x2e")),{column:x,row:a}=r[$x("0x48")](i);let c=[];if("horizontally"==n[$x("0x22")]){const t=r[$x("0x3d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x23")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x18")](t)[$x("0x5")]((t=>t[$x("0x23")]))}t[$x("0x4c")][$x("0x2b")]((t=>{o[$x("0x13")](t[$x("0xf")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x35")][$x("0x1b")]((t=>{if($x("0x2d")!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e&&$x("0x33")==e[$x("0x3b")]?{type:"format",content:Qo(n,$x("0x3c"))}:void 0})),o._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e?$x("0x26")==e.commandName?{type:"format",content:Qo(n,$x("0x29"))}:$x("0x3e")==e[$x("0x3b")]?{type:$x("0x10"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x38")]();for(const t of[$x("0x32"),$x("0x19"),$x("0x1"),$x("0x28")])o[$x("0x3f")][$x("0x34")]($x("0x2d"),t,"accept",x);for(const t of["splitTableCellVertically",$x("0x3e")])o[$x("0x3f")][$x("0x34")]("formatBlock",t,$x("0x46"),x);o[$x("0x3f")][$x("0x34")]($x("0x2d"),$x("0x33"),$x("0x46"),(n=>{t[$x("0x4c")][$x("0x2b")]((o=>{const r=Array[$x("0x18")](e[$x("0x2f")]())[$x("0x5")]((t=>s.LiveRange[$x("0x40")](t)));o[$x("0x16")](n),t[$x("0x1f")].get($x("0x33"))[$x("0x4a")](),t[$x("0x3")]("mergeTableCells",{forceDefaultExecution:!0});const i=r.filter((t=>$x("0xd")!=t.root[$x("0x9")]));i[$x("0x12")]>0&&o[$x("0x16")](i);for(const t of r)t[$x("0xa")]()}))}));for(const e of[$x("0x32"),$x("0x1"),"mergeTableCellLeft",$x("0x19")]){const n=t[$x("0x1f")][$x("0x2")](e);n.on($x("0x15"),((e,o,r)=>{if(r){const o=t[$x("0x4c")][$x("0x36")][$x("0x4f")][$x("0x47")]()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11"))));this._areMergableCells(n[$x("0x1e")],o)||(e[$x("0x4b")]=!1,e[$x("0x43")]())}}),{priority:$x("0x44")})}}[$x("0x1c")](){const t=this.editor[$x("0x1f")].get($x("0x33")),e=this[$x("0x2a")][$x("0x24")][$x("0x2")]("TableUtils");if(!t[$x("0x49")])return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x2a")][$x("0x4c")].document[$x("0x4f")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x17")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor[$x("0x24")][$x("0x2")]($x("0x1d")),o=this[$x("0x2a")].model[$x("0xf")](t),r=this.editor[$x("0x4c")][$x("0xf")](e),i=new Set,s=new Set;for(const t of n[$x("0x45")]())if(($x("0x4")==t[$x("0x4d")]||"deletion"==t.type||$x("0x33")==t[$x("0x8")])&&t[$x("0x4e")])for(const e of t.getRanges())e[$x("0x37")](o,!0)&&i[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id),e.containsRange(r,!0)&&s[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id);if(i[$x("0x39")]!=s[$x("0x39")])return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const Yx=["writer","registerCustomCallback","ck-suggestion-marker--active","registerDescriptionCallback","FORMAT_REGULAR_COLUMN","toViewElement","createTableWalker","removeMarker:suggestion","editor","getCellLocation","ck-suggestion-marker-","forceValue","setAttribute","accept","markerRange","get","consume","_descriptionFactory","*Format:* %0","name","markerName","commandName","type","headingRows","parent","nodeAfter","unbindElementFromMarkerName","_enableDefaultAttributesIntegration","afterInit","headingColumns","data","plugins","registerAttributeLabel","addMarker:suggestion","FORMAT_REGULAR_ROW","_suggestionFactory","cell","removeClass","downcastDispatcher","setTableRowHeader","addClass","options","FORMAT_HEADER_COLUMN","bindElementToMarker","mapper","getSuggestion","TableEditing","consumable","start","FORMAT_HEADER_ROW","TrackChangesEditing","editing","_splitMarkerName","markerNameToElements","TableUtils","_handleLegacySuggestions","includes","highest","requires","locale","setTableColumnHeader","formatBlock"];var Jx,Qx;Jx=Yx,Qx=379,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x33")](){return[zx]}[ta("0x15")](){const t=this[ta("0x1")];if(!t[ta("0x18")].has(ta("0x27")))return;const e=t[ta("0x34")],n=t[ta("0x18")][ta("0x8")]("TrackChangesEditing");n[ta("0x14")](ta("0x20"),[],[ta("0x10")]),n[ta("0x14")](ta("0x35"),[],[ta("0x16")]),n[ta("0xa")][ta("0x19")](ta("0x10"),Qo(e,ta("0x2a"))),n[ta("0xa")][ta("0x19")](ta("0x16"),Qo(e,ta("0x23"))),this._handleLegacySuggestions()}[ta("0x30")](){const t=this[ta("0x1")].plugins[ta("0x8")]("TrackChangesEditing"),e=this[ta("0x1")][ta("0x18")][ta("0x8")](ta("0x2f")),n=this[ta("0x1")].plugins.get(zx)._acceptFormatSuggestionCallbackFactory();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x2d")](i[ta("0xd")]),c=t[ta("0x26")](a),l=c[ta("0x17")];if(ta("0x36")!=c[ta("0xf")]||!l||"setTableColumnHeader"!=l[ta("0xe")])return;if(i.item)return void r.stop();if(!s[ta("0x28")][ta("0x9")](i[ta("0x7")],r[ta("0xc")]))return;const u=i[ta("0x7")][ta("0x29")][ta("0x12")],d=i[ta("0x7")].end.nodeBefore,g=u[ta("0x11")][ta("0x11")],{column:f}=e[ta("0x2")](u),{column:m}=e.getCellLocation(d);for(let r=f;r<=m;r++){const c=e[ta("0x3d")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x1d")],c=s[ta("0x25")][ta("0x3c")](r);s[ta("0x37")][ta("0x21")](ta("0x3")+x,c),o&&s[ta("0x37")][ta("0x5")]("data-suggestion",a,c),s[ta("0x25")][ta("0x24")](c,i[ta("0xd")]),n&&(t.activeMarkers[ta("0x31")](i.markerName)?s.writer[ta("0x21")](ta("0x39"),c):s[ta("0x37")][ta("0x1e")](ta("0x39"),c))}}}}t[ta("0x1c")][ta("0x38")](ta("0x36"),ta("0x20"),"accept",n),t[ta("0x1c")].registerCustomCallback(ta("0x36"),"setTableColumnHeader",ta("0x6"),n),this.editor[ta("0x2c")][ta("0x1f")].on(ta("0x1a"),o(),{priority:ta("0x32")}),this[ta("0x1")][ta("0x17")][ta("0x1f")].on(ta("0x1a"),((t,e,n)=>{n[ta("0x22")].showSuggestionHighlights&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this.editor[ta("0x2c")].downcastDispatcher.on(ta("0x0"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x2d")](n[ta("0xd")]),s=t.getSuggestion(i),x=s[ta("0x17")];if(ta("0x36")!=s[ta("0xf")]||!x||ta("0x35")!=x[ta("0xe")])return;const a=o[ta("0x25")][ta("0x2e")](n[ta("0xd")]);if(a)for(const t of a)o[ta("0x37")].removeClass(ta("0x3")+r,t),o[ta("0x37")][ta("0x1e")](ta("0x39"),t),o.writer.removeAttribute("data-suggestion",t),o[ta("0x25")][ta("0x13")](t,n[ta("0xd")])}),{priority:"highest"}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x1")],e=t[ta("0x34")];function n(t){return{type:"format",content:Qo(e,ta("0xb"),t)}}t[ta("0x18")][ta("0x8")](ta("0x2b"))[ta("0xa")][ta("0x3a")]((t=>{if(ta("0x36")!=t[ta("0xf")])return;const{data:o}=t;if(o){if(ta("0x20")==o[ta("0xe")]){const t=o.commandParams[0][ta("0x4")];return n(Qo(e,ta(t?"0x2a":"0x1b")))}if(ta("0x35")==o[ta("0xe")]){const t=o.commandParams[0][ta("0x4")];return n(Qo(e,ta(t?"0x23":"0x3b")))}}}))}}const na=["forceDefaultExecution","cells","deletionRanges","get","isEmpty","editingDowncast","markMultiRangeInsertion","insert","tableCell","some","insertion","elementToElement","suggestionLoaded","markerToHighlight","columnInsertionIndexes","markerName","filter","suggestion","activeMarkers","dataDowncast","getAttributes","attributes","push","getColumnIndexes","columns","createRangeIn","getSuggestion","from","registerCustomCallback","_createdBatches","keys","for","batch","last","first","removeMarkers","remove","tableCellSuggestion","next","markMultiRangeDeletion","conversion","tablePaste","type","high","Users","start","setAttributes","paragraph","discard","isInContent","commands","markers","TrackChangesEditing","insertColumns","registerPostFixer","find","deletion","position","value","column","length","table","end","fill","getChild","model","nextSibling","getSuggestionCallback","includes","_suggestionFactory","rowInsertionIndexes","register","_isForcedDefaultExecutionBlock","element","tablePasteRow","set","redo","getChangedMarkers","schema","tableCellVerticalAlignment","updateMarker","tableCellHorizontalAlignment","showSuggestionHighlights","wrap","entries","return","document","tablePasteCell","TableClipboard","documentSelection","getMarkers","oldRange","change","nodeAfter","selection","stop","low","tableCellBorderColor","getAllAdjacentSuggestions","_replaceTableSlotCell","root","getContainedElement","containsRange","getSuggestions","map","view","$graveyard","registerDescriptionCallback","previous","getChanges","afterInit","previousSibling","plugins","join","removeRows","options","ck-suggestion-marker--active","tableCellPadding","suggestion-td","getRows","createTableWalker","content","rows","markMultiRangeBlockFormat","listenTo","newRange","getChildren","editing","removeColumns","requires","_getCoordsForCells","createRangeOn","TableUtils","suggestionUnloaded","reduce","tablePasteChainId","getRange","every","cell","markerAttributes","setAttribute","add","has","getRanges","author","differ","*Replace table cells*","columnInsertionRanges","fromEntries","getSelectionAffectedTableCells","getTableIfOnlyTableInContent","getColumns","insertRows","insertContent","rowInsertionRanges","findAncestor","suggestion:formatBlock:tablePasteCell","endRow","isEqual","locale","formatBlock","endColumn","accept","createElement","move","_tablePostFixingSubtypes","name","subType","startsWith","tablePasteColumn","editor"];var oa,ra;oa=na,ra=136,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x84"),"tableCellBorderStyle",ia("0x74"),ia("0x72"),"tableCellBackgroundColor",ia("0x98")],xa=Object[ia("0xc")](sa[ia("0x8b")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0xa4")](){return[zx]}[ia("0x91")](){const t=this[ia("0x22")];if(!t.plugins[ia("0x6")]("TableClipboard"))return;const n=t[ia("0x93")][ia("0x26")](ia("0x57")),o=t.plugins[ia("0x26")](ia("0xa7")),r=t[ia("0x93")].get(zx),i=t[ia("0x93")][ia("0x26")]("TableClipboard");r[ia("0x1d")][ia("0x39")](ia("0x6d"),ia("0x21")),t.model[ia("0x71")][ia("0x6a")](ia("0x48"),{allowIn:ia("0x2b"),allowContentOf:ia("0x2b"),isLimit:!0}),t[ia("0x4b")][ia("0x2e")]({model:ia("0x48"),view:"suggestion-td"});let s=null;t[ia("0x64")].on(ia("0x11"),((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ia("0x23")]||n[ia("0x6b")]||this[ia("0x22")][ia("0x55")][ia("0x26")]("trackChanges")[ia("0x5d")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x7c")))return!1;const i=r[ia("0xe")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0xd")](n.document[ia("0x81")]);if(!s[ia("0x5f")])return!1;const x=s[0].findAncestor("table"),a=o.getRowIndexes(s),c=o[ia("0x3a")](s),l={startRow:a[ia("0x45")],endRow:a[ia("0x44")],startColumn:c[ia("0x45")],endColumn:c[ia("0x44")]};return 1==s[ia("0x5f")]&&(l[ia("0x15")]+=o[ia("0x9a")](i)-1,l[ia("0x19")]+=o[ia("0xf")](i)-1),la(x,l,o)}(a,c,t.model,o,i)&&(r[ia("0x82")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x64")][ia("0x7f")]((()=>{t[ia("0x64")][ia("0x11")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n[ia("0x29")](r,ia("0x6d"),{tablePasteChainId:o}),i[ia("0x5f")]&&n.markMultiRangeInsertion(i,ia("0x21"),{tablePasteChainId:o}),a[ia("0x5f")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x5f")]&&n[ia("0x4a")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x9e")](l[ia("0x8b")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[ia("0x7d")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x64")][ia("0xa6")](o),s=e[ia("0x5a")]((t=>t.getRange()[ia("0x16")](i)));s&&n[ia("0x39")]([s[ia("0x1e")],r])}n[ia("0x5f")]&&u[ia("0x4")](ia("0x3"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x4e")]+10}),t[ia("0x93")][ia("0x26")](ia("0x7b")).on(ia("0x86"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t.stop();const i=n[ia("0x2")],x=o,a=ca(i),c=ca(x);t[ia("0x78")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x47")](i[ia("0x63")](0));for(const t of Array[ia("0x3e")](x[ia("0xa1")]()))r[ia("0x2a")](t,i,ia("0x61"));const t=s.rowInsertionIndexes.includes(n.row),e=s[ia("0x31")][ia("0x67")](n[ia("0x5e")]);t||e||(l=r[ia("0x3c")](i))}else c&&!a&&(u=r.createRangeIn(i));else{const t=r.createElement("tableCellSuggestion"),e=r[ia("0x1b")](ia("0x48"));r[ia("0x76")](r[ia("0x3c")](i),e),r.insert(t,i,0);for(const e of Array[ia("0x3e")](x[ia("0xa1")]()))r[ia("0x2a")](e,t,"end");l=r[ia("0xa6")](t),u=r[ia("0xa6")](e)}const d=Array[ia("0x3e")](x[ia("0x37")]()).filter((([t])=>sa[ia("0x67")](t)));s[ia("0x24")][ia("0x39")]({element:i,attributes:d[ia("0x5f")]?Object.fromEntries(d):null}),l&&s.insertionRanges[ia("0x39")](l),u&&s[ia("0x25")].push(u)}),{priority:"high"}),o.on(ia("0x58"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x3b")]||1;s[ia("0x31")]=new Array(a).fill(x)[ia("0x8b")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ia("0xb")][ia("0x39")](t[ia("0x64")].createRangeOn(e))}),{priority:ia("0x83")}),o.on(ia("0x10"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x9d")]||1;s[ia("0x69")]=new Array(a)[ia("0x62")](x)[ia("0x8b")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x9b")](r,{startRow:x,endRow:x+a-1}))s[ia("0x12")].push(t[ia("0x64")][ia("0xa6")](e))}),{priority:"low"}),n._descriptionFactory[ia("0x8e")]((e=>{if(e[ia("0x1f")]&&e[ia("0x1f")][ia("0x20")](ia("0x4c")))return e[ia("0x8f")]?{}:{type:ia("0x2d"),content:Qo(t[ia("0x17")],ia("0xa"))}}));const x=()=>!1;for(const t of[ia("0x4c"),ia("0x21"),ia("0x6d"),ia("0x7a")])n._suggestionFactory.registerCustomCallback("insertion",t,ia("0x94"),x),n[ia("0x68")][ia("0x3f")](ia("0x5b"),t,ia("0x94"),x),n[ia("0x68")][ia("0x3f")]("formatBlock",t,ia("0x94"),x);n[ia("0x68")][ia("0x3f")](ia("0x18"),ia("0x7a"),ia("0x53"),x),n._suggestionFactory[ia("0x3f")](ia("0x18"),ia("0x7a"),"accept",((e,n,o)=>{const r=e[ia("0x8b")]((t=>t[ia("0x88")]()))[ia("0x33")]((t=>t)),i=new Map(r.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x24")])e&&i[ia("0x6e")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ia("0x77")](o.markerAttributes)){const o=t[ia("0x64")][ia("0x56")].get(e),r=o?o[ia("0x0")]().getContainedElement():null;r&&i[ia("0x6e")](r,n)}t.model.change((t=>{for(const[e,n]of i)t[ia("0x51")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x68")][ia("0x3f")](e,ia("0x4c"),o,((r,i,s)=>{t[ia("0x64")][ia("0x7f")]((t=>{const x=[];for(const t of r){const e=t[ia("0x50")][ia("0x80")];e.is("element",ia("0x48"))&&x[ia("0x39")](e)}n[ia("0x68")][ia("0x66")](e,null,o)(r,i,s);for(const e of x)ia("0x8d")!=e[ia("0x87")].rootName&&t.unwrap(e)}))}))};a(ia("0x2d"),ia("0x1a")),a(ia("0x2d"),ia("0x53")),a(ia("0x5b"),"accept"),a(ia("0x5b"),ia("0x53")),n[ia("0x68")].registerCustomCallback(ia("0x2d"),ia("0x6d"),ia("0x53"),(t=>{const e=t[ia("0x8b")]((t=>t[ia("0x88")]())),n=e[0][ia("0x13")](ia("0x60")),{minRow:i,maxRow:s}=r[ia("0xa5")](e);o[ia("0x95")](n,{at:i,rows:s-i+1})})),n[ia("0x68")][ia("0x3f")](ia("0x2d"),ia("0x21"),ia("0x53"),(t=>{const e=t[ia("0x8b")]((t=>t[ia("0x88")]())),n=e[0].findAncestor(ia("0x60")),{minColumn:i,maxColumn:s}=r[ia("0xa5")](e);o[ia("0xa3")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x1f")]||!e.subType.startsWith("tablePaste"))return;const o=e[ia("0x38")].tablePasteChainId,r=n[ia("0x8a")]()[ia("0x33")]((t=>t[ia("0x54")]&&t[ia("0x38")]&&t[ia("0x38")][ia("0xaa")]==o));r.length&&e[ia("0x85")]().length!=r[ia("0x5f")]&&r[ia("0xa9")](((t,e)=>(t[ia("0x49")]=e,e[ia("0x8f")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[ia("0x32")]),r=["ck-suggestion-marker","ck-suggestion-marker-insertion"],i=n[ia("0x35")][ia("0x67")](t[ia("0x32")]);return i&&r[ia("0x39")](ia("0x97")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x2f"),c,{priority:ia("0x4e")}),n.on(ia("0xa8"),c,{priority:ia("0x4e")}),t.model[ia("0x79")][ia("0x59")]((()=>{let e=!1;const o=Array[ia("0x3e")](t[ia("0x64")][ia("0x79")].differ[ia("0x70")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if(ia("0x34")!=o||ia("0x5b")!=s||i[ia("0x7e")])continue;if(!n.hasSuggestion(x))continue;const a=n[ia("0x3d")](x)[ia("0x7")](),c=t[ia("0x93")][ia("0x26")](ia("0x4f")).me;for(const t of n[ia("0x8a")]())if(t[ia("0x54")]&&t[ia("0x8")]==c&&ia("0x18")==t[ia("0x4d")]&&ia("0x7a")==t[ia("0x1f")]&&t[ia("0x7")]()[ia("0x1")]((t=>a[ia("0x2c")]((e=>e[ia("0x89")](t,!0))))))for(const n of t[ia("0x85")]())n[ia("0x54")]&&(n[ia("0x53")](),e=!0)}return e})),t[ia("0x64")][ia("0x79")].registerPostFixer((e=>{const o=t[ia("0x55")][ia("0x26")](ia("0x6f"));if(!o||!o[ia("0x40")][ia("0x6")](e[ia("0x43")]))return!1;let r=!1;const i=t[ia("0x93")][ia("0x26")](ia("0x4f")).me,s=t.model.document[ia("0x9")][ia("0x90")](),x=Array[ia("0x3e")](t[ia("0x64")][ia("0x79")][ia("0x9")][ia("0x70")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n._splitMarkerName(t);return ia("0x34")==o&&ia("0x4c")==r&&s==i.id&&!e.oldRange}));for(const t of s){if(ia("0x2a")!=t.type||ia("0x48")!=t[ia("0x1e")]||1!=t[ia("0x5f")])continue;const n=e.createRange(t[ia("0x5c")],t[ia("0x5c")].getShiftedBy(1));if(!x[ia("0x5a")]((({data:t})=>t[ia("0xa0")][ia("0x16")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ia("0xa0")])){e[ia("0x73")](t,{range:n}),r=!0;break}}return r})),t[ia("0x64")][ia("0x79")][ia("0x59")]((e=>{let o=!1;const r=t.plugins[ia("0x26")](ia("0x4f")).me,i=n[ia("0x8a")]()[ia("0x33")]((t=>t[ia("0x54")]&&t.author==r)),s=new Set,x=new Set;for(const t of i)if("tablePaste"==t[ia("0x1f")])for(const e of t[ia("0x7d")]()){const n=e[ia("0x0")]().getContainedElement();if(n)if(n.is(ia("0x6c"),ia("0x48"))&&ca(n)){t.removeMarker(e[ia("0x1e")]),s.add(n),o=!0;const r=n[ia("0x65")],i=n[ia("0x92")],a=r&&r.is(ia("0x6c"),ia("0x48")),c=i&&i.is(ia("0x6c"),ia("0x48"));a&&!s[ia("0x6")](r)&&x[ia("0x5")](r),c&&!s.has(i)&&x[ia("0x5")](i)}else n.is("element",ia("0x52"))&&n[ia("0x27")]&&(t.removeMarker(e[ia("0x1e")]),o=!0)}else if(ia("0x7a")==t[ia("0x1f")]){if(!t[ia("0x38")]||!t[ia("0x38")][ia("0xaa")])continue;const e=t[ia("0x38")][ia("0x3")];if(e&&Object[ia("0x41")](e).length)continue;const n=t[ia("0x38")][ia("0xaa")];let r=!0,s=!0;for(const e of i)if(e.subType&&e[ia("0x1f")][ia("0x20")](ia("0x4c"))){if(!e.attributes[ia("0xaa")]){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){r=!1;break}}s&&r&&(t[ia("0x46")](),o=!0)}for(const t of s)e[ia("0x47")](t);for(const t of x)e.unwrap(t);return o})),t[ia("0x4b")].for(ia("0x28"))[ia("0x30")]({model:ia("0x14"),view:(t,e)=>l(t),converterPriority:"high"}),t[ia("0x4b")][ia("0x42")](ia("0x36"))[ia("0x30")]({model:ia("0x14"),view:(t,e)=>e[ia("0x96")][ia("0x75")]?l(t,!1):null,converterPriority:ia("0x4e")});const u=t[ia("0xa2")][ia("0x8c")];this[ia("0x9f")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ia("0x3c")](e[ia("0x9c")]).getItems())t.is(ia("0x6c"),ia("0x99"))&&n.push(t);u[ia("0x7f")]((t=>{for(const e of n)t[ia("0x1c")](t[ia("0x3c")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function ca(t){if(t[ia("0x27")])return!0;const e=t[ia("0x63")](0);return e.is(ia("0x6c"),ia("0x52"))&&e[ia("0x27")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x9b")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["editor","data","table","get","afterInit","bind","getColumnGroupElement","subType","resizeTableWidth","registerDescriptionCallback","*Format:* resize table","getSelectedElement","has","handleSuggestionDescription","_suggestionFactory","markBlockFormat","registerCustomCallback","selection","change","enableCommand","getTableColumnsWidths","TableColumnResizeEditing","document","discard","formatGroupId","tableWidth","getContainedElement","formatBlock","formatInline","type","handleResizeTableWidthCommand","getSuggestionCallback","commandParams","accept","resizeTable","TrackChangesEditing","columnWidths","getSuggestions","plugins","Users"];var da,ga;da=ua,ga=303,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x15")](){if(!this.editor[fa("0xf")][fa("0x1d")](fa("0x26")))return;const t=this.editor[fa("0xf")][fa("0x14")]("TrackChangesEditing");t[fa("0x24")](fa("0x19"),this[fa("0x7")].bind(this)),t[fa("0x1f")].registerCustomCallback(fa("0x4"),fa("0xb"),"accept",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0x0"))),t._suggestionFactory[fa("0x21")](fa("0x4"),fa("0xb"),"discard",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0xa"))),t._descriptionFactory[fa("0x1a")](this[fa("0x1e")][fa("0x16")](this))}[fa("0x7")](t,e){const n=this[fa("0x11")][fa("0xf")][fa("0x14")](fa("0xc")),o=this.editor[fa("0xf")][fa("0x14")]("TableColumnResizeEditing"),r=e[fa("0x13")]||this[fa("0x11")].model[fa("0x27")][fa("0x22")][fa("0x1c")]();this[fa("0x11")].model[fa("0x23")]((()=>{const i=o[fa("0x17")](r);let s=i?o[fa("0x25")](i):null,x=r.getAttribute("tableWidth")||null;const a=e[fa("0x2")]||x,c=e[fa("0xd")]||s,l=this.editor[fa("0xf")][fa("0x14")](fa("0x10")).me;for(const t of n[fa("0xe")]()){const e=t[fa("0x3")]();if("resizeTable"===t[fa("0x18")]&&e===r){t.author!==l&&t.discard();const e=t[fa("0x12")][fa("0x9")];x=e[0].tableWidth,s=e[0][fa("0xd")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x20")](r,{commandName:fa("0x19"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0xb")},[],fa("0xb"))}))}[fa("0x1e")](t){if(fa("0x4")!=t[fa("0x6")]&&fa("0x5")!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x1")]){const t=fa("0x1b");return{type:"format",content:Qo(this[fa("0x11")].locale,t)}}}}const ha=["enableCommand","has","editor","afterInit","plugins","Template"];var pa,ba;pa=ha,ba=376,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x4")];t[Ea("0x0")][Ea("0x3")](Ea("0x1"))&&t.plugins.get("TrackChangesEditing")[Ea("0x2")]("insertTemplate")}}const Ta=["insertTableOfContents","TrackChangesEditing","get","enableCommand","plugins","tableOfContents","afterInit","editor","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale"];var ya,Ca;ya=Ta,Ca=227,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x0")];if(!t.commands[Aa("0x6")](Aa("0x4")))return;t[Aa("0x8")][Aa("0x6")](Aa("0x5"))[Aa("0x7")]("insertTableOfContents");const e=t[Aa("0x8")][Aa("0x6")]("TrackChangesEditing"),n=t[Aa("0x3")];e._descriptionFactory[Aa("0x1")](Aa("0x9"),(t=>Qo(n,Aa("0x2"),t)))}}const Ia=["getChangedMarkers","updateMarker","getNearestSelectionRange","differ","locale","title-content","document","has","ELEMENT_TITLE","_splitMarkerName","TrackChangesEditing","isEqual","_descriptionFactory","plugins","createRange","start","isTouching","registerPostFixer","nodeBefore","isCollapsed","newRange","end","forward","schema","get"];var Sa,Ra;Sa=Ia,Ra=448,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[va("0x9")]("Title"))return;const e=t[va("0xf")][va("0x1")](va("0xc"));e[va("0xe")].registerElementLabel(va("0x7"),(()=>Qo(t[va("0x6")],va("0xa")))),t.model[va("0x8")][va("0x13")]((n=>{let o=!1;const r=Array.from(t.model[va("0x8")][va("0x5")][va("0x2")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0xb")](i);if("suggestion"!==r||!s.newRange)continue;const x=s[va("0x16")],a=x[va("0x17")][va("0x14")];if(!a||!a.is("element",va("0x7")))continue;if(!x.start[va("0x12")](x.end))continue;const c=t.model[va("0x0")][va("0x4")](x.end,va("0x18"));if(c&&c[va("0x15")]){const t=n[va("0x10")](x[va("0x11")],c[va("0x11")]);t[va("0xd")](x)||(n[va("0x3")](i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const La=["enableCommand","plugins","UndoEditing","afterInit","TrackChangesEditing","get","editor","has"];var Ma,wa;Ma=La,wa=167,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x7")],e=t.plugins[Oa("0x6")](Oa("0x5"));t[Oa("0x2")][Oa("0x0")](Oa("0x3"))&&(e[Oa("0x1")]("undo"),e[Oa("0x1")]("redo"))}}const Da=["TableCaptionEditing","editor","toggleTableCaption","afterInit","plugins","has","TrackChangesEditing","requires","get","enableCommand"];var Ba,Pa;Ba=Da,Pa=119,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x8")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x2")];t[Ua("0x5")][Ua("0x6")](Ua("0x1"))&&t[Ua("0x5")][Ua("0x9")](Ua("0x7"))[Ua("0x0")](Ua("0x3"))}}const Ga=["formatBlock","enableCommand","_handlePropertyChange","findAncestor","*Format:* change table cell properties","tableBackgroundColor","tableAlignment","tableBorderStyle","_suggestionFactory","join","discard","enqueueChange","get","selection","table","markBlockFormat","removeAttribute","getSelectionAffectedTableCells","handleDiscardAction","tableCellBorderWidth","getSuggestionCallback","model","tableCellPadding","TableCellPropertiesEditing","tableCellBorderStyle","_getSuggestion","plugins","tableCellProperties","format","afterInit","tableBorderWidth","editor","tableWidth","tableCellVerticalAlignment","batch","data","has","TablePropertiesEditing","TableUtils","accept","tableProperties","TrackChangesEditing","tableCellHeight","subType","setAttribute","TrackChangesTableProperties","*Format:* change table properties","pluginName","nodeAfter","commandParams","handleSuggestionDescription","locale","getAttribute","getFirstPosition","change","tableCellHorizontalAlignment","tableCellWidth","registerCustomCallback","registerDescriptionCallback","document"];var Va,Ha;Va=Ga,Ha=187,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x21")]=["tableBorderColor",za("0x0"),za("0x17"),za("0x3b"),za("0x19"),"tableHeight",za("0x3a")],this[za("0x14")]=["tableCellBorderColor",za("0x11"),za("0xc"),za("0xf"),za("0x31"),za("0x23"),"tableCellBackgroundColor",za("0x30"),za("0x1a")]}static get[za("0x28")](){return za("0x26")}[za("0x16")](){const t=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x1e"))){for(const e of this[za("0x21")])t[za("0x36")](e,((t,n)=>{const o=this[za("0x18")][za("0xe")].document[za("0x6")][za("0x2e")]()[za("0x38")](za("0x7"));this[za("0x37")](e,[o],this.tableProperties,za("0x21"),t,n)}));t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,za("0x3"))),t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),"discard",((t,e)=>this[za("0xb")](this[za("0x21")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableProperties","join",(()=>!1))}if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x10"))){for(const e of this[za("0x14")])t[za("0x36")](e,((t,n)=>{const o=this.editor[za("0x13")].get(za("0x1f"))[za("0xa")](this.editor[za("0xe")][za("0x34")][za("0x6")]);this[za("0x37")](e,o,this[za("0x14")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x32")](za("0x35"),za("0x14"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,"discard")),t[za("0x1")][za("0x32")](za("0x35"),za("0x14"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x14")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableCellProperties",za("0x2"),(()=>!1))}t._descriptionFactory[za("0x33")]((t=>this[za("0x2b")](t)))}_handlePropertyChange(t,e,n,o,r,i){const s=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));this[za("0x18")][za("0xe")][za("0x4")](i[za("0x1b")],(()=>{for(const t of e)if(this[za("0x12")](t,o))r(i);else{const e={};for(const o of n){const n=t[za("0x2d")](o);void 0!==n&&(e[o]=n)}r(i),s[za("0x8")](t,{commandParams:[e]},[],o)}}))}[za("0xb")](t,e,n){const o=e[0].start[za("0x29")],r=n[za("0x2a")][0];this[za("0x18")][za("0xe")][za("0x2f")]((e=>{for(const n of t)void 0!==r[n]?e[za("0x25")](n,r[n],o):e[za("0x9")](n,o)}))}[za("0x2b")](t){if(t[za("0x1c")])switch(t[za("0x24")]){case"tableProperties":return{type:"format",content:Qo(this.editor[za("0x2c")],za("0x27"))};case za("0x14"):return{type:za("0x15"),content:Qo(this[za("0x18")][za("0x2c")],za("0x39"))}}}[za("0x12")](t,e){const n=this[za("0x18")][za("0x13")].get(za("0x22"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=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 rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["_updateSuggestionData","$elementName","newName","getRange","$text","commandName","createdAt","after","adapter","getIntersection","unbindElementFromMarkerName","_checkSuggestionCorrectness","pluginName","mapper","TrackChangesEditing","isIntersectingWithRange","data-suggestion","get","widget","PendingActions","trackChanges.mergeNestedSuggestions","insertContent","refresh","clone","_registerInlineAttribute","requires","markBlockFormat","differ","getAncestors","attribute:accept","getShiftedBy","nodeBefore","isCollapsed","getCustomProperty","type","notReady","_setSuggestionData","createElement","value","announce","multipleBlocks","suggestionLoaded","track-changes-suggestion-data-mismatch","default","addSuggestion","getMultiRangeId","suggestion","schema","getDifference","newValue","suggestion:attribute:","removeAttribute","_registerDefaultCallbacks","_reduceExistingSuggestions","discard","always","range","toViewElement","addRange","moveTargetPosition","high","elementToElement","conversion","includes","_adapter","isUndo","_joinSuggestions","_inlineAttributeKeys","remove","getAllAdjacentSuggestions","splitPosition","_getMarkerAnnouncementText","$graveyard","_rangeIsInLocalUserInsertion","_saved","attribute:discard","enableCommand","removed","getSuggestion","substring","fromCharCode","change","comments","ck-suggestion-marker-","track-changes-adapter-already-set","createRange","fromRange","Users","_suggestionFactory","define","assign","isOwn","formatBlock","formatInline","editor","collaboration.channelId","commentThread","_recordAttributeSuggestionsFromVersion","getCommentThread","_refreshSuggestionsChain","key","options","accepted","rename","newRange","formatInline:chain","add","discardAllSuggestions","acceptSelectedSuggestions","filter","markInsertion","getOperations","buildSuggestion","lowest","applyOperation","nodeAfter","isBlock","createPositionAt","markerToHighlight","_handleNewSuggestionMarker","normal","consume","dataDowncast","forEach","formatBlock:","insertion:accept","attributeNewValue","getNearestSelectionRange","isInContent","clear","isIntersecting","some","elementStart","before","formatBlock:accept","attributeOldValue","addHighlight","createSelection","never","isAtStart","ck-suggestion-marker-formatBlock","item","formatBlock:chain","oldRange","isExternal","deletion:discard","rootName","addMarker:suggestion","getUser","change:data","commands","upcast","markMultiRangeBlockFormat","insertion:discard","_trackFormatChanges","formatGroupId","_recordAttributeChanges","subType","substr","markInlineFormat","reconvertMarker","_defaultCallbacks","isSelectable","change:activeMarkers","discardSuggestion","attribute","_cutOutSuggestionMarker","backward","addClass","track-changes-adapter-missing-getsuggestion","_getExternalAuthor","_getAuthorFromId","isBefore","formatBlock:join","trackChanges","_reduceSuggestionAttributeRange","setSelection","registerPostFixer","getSuggestions","hasComments","_registerBlockAttribute","enqueueChange","stop","authorName","unbind","dataReady","_refreshAttributeSuggestionsChain","end","size","formatInline:","return","formatBlock:discard","addMarkerName","start","_isDataLoaded","addCommentThread","_mergeNestedSuggestions","getLastMatchingPosition","bindElementToMarker","targetPosition","isAtEnd","markers","editingDowncast","isLimit","containerElement","set","CommentsRepository","suggestionUnloaded","parent","addAttribute","ck-suggestion-marker--active","containsRangeInObject","addComment","marker-count","removeComment","execute","track-changes-suggestion-not-found","sort","markerNameToElements","removeMarker","deletion:accept","map","discardSelectedSuggestions","accept","rethrowUnexpectedError","_onDiscard","_SUGGESTION_ANNOUNCEMENT","_isForcedDefaultExecutionBlock","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.","containsItem","forceDefaultExecution","from","removeMarker:suggestion:attribute","_getAttributeKeyFromSubType","next","_processAttributeSuggestions","getFirstRange","splice","createRangeOn","external:","locale","model","catch","history","writer","keys","getRanges","listenTo","_addSuggestionMarker","for","name","concat","delete","attribute:join","_addThreadToSuggestion","trackChangesCommand","update:suggestion","updateMarker","length","meta","markMultiRangeDeletion","deletion:join","fire","formatInline:accept","insertion:","oldValue","_model","_blockAttributeKeys","getAttribute","isObject","position","insertion","group","detach","_initAriaMarkerChangeAnnouncements","attributeKey","isInsideObject","selection","getSuggestionCallback","showSuggestionHighlights","acceptAllSuggestions","createRangeIn","find","attribute:","isMultiRange","ck-suggestion-marker-formatInline","track-changes-user-not-found","isNextTo","deleteContent","documentSelection","stopListening","_commentsRepository","isLocal","has","setAttribute","_suggestionState","startsWith","data","markerToData","_enabledCommands","skipNestingCheck","isRemovable","_findSuggestions","then","isEqual","low","previous","createPositionBefore","PENDING_ACTION_SUGGESTION","markDeletion","push","addMarker:suggestion:attribute","_joinWithAdjacentSuggestions","deletion:","values","split","getChangedMarkers","_setSuggestionRange","@external","activeMarkers","getItems","open","root","changeAttribute","enableReadOnlyMode","every","addMarker:suggestion:formatBlock","isDocumentOperation","authoredAt","insert","originalSuggestionId","removeMarkers","formatInline:join","oldName","addSuggestionData","_isBlockAttribute","trackChanges.trackFormatChanges","fetchCommentThread","insertion:join","createPositionAfter","toUpperCase","author","pop","unshift","FORMATTING","ck-suggestion-marker","getChanges","attributes","containsPosition","_customCallbacks","_getSuggestionData","ENTER","acceptSuggestion","change:_saved","removeMarker:suggestion:formatBlock","warn","suggestion:","consumable","groupId","_splitMarkerName","containsRange","_suggestions","removeClass","markAttributeChange","deletion","_createSuggestion","plugins","isAfter","join","markerName","track-changes-command-not-found","dataToMarker","addUser","ready","config","_removeSuggestion","getWalker","howMany","deletion:chain","_breakSuggestionMarker","track-changes-enable-command-twice","creator","document","_editor","batch"];var dc,gc;dc=uc,gc=192,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xc2");class hc extends t.Plugin{static get[fc("0xda")](){return[fc("0xe"),i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Si,Mi,Pi,Hi,Xi,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xcd")](){return fc("0xcf")}constructor(t){function e(t){return t[fc("0x1d")]((t=>String[fc("0x111")](t)))[fc("0xb0")]("")}super(t),this[fc("0x122")]=null,this[fc("0xd")](fc("0x7f"),[]),this.on(fc("0x164"),((e,n,o,r)=>{this._model[fc("0x112")]((()=>{for(const e of[...r,...o])this[fc("0x4a")][fc("0x9")][fc("0x65")](e)&&t.editing[fc("0x161")](e)}))})),this._descriptionFactory=new rr(this[fc("0x11f")][fc("0x31")][fc("0xf0")],this[fc("0x11f")].locale),this[fc("0x101")]=null,this._suggestionFactory=new pc(this[fc("0x11f")]),this[fc("0xa9")]=new Map,this[fc("0x63")]=t[fc("0xae")][fc("0xd2")]("CommentsRepository"),this[fc("0x6b")]=new Set,this._model=this[fc("0x11f")].model,this[fc("0x67")]=new WeakMap,this[fc("0x23")]=!1,this._blockAttributeKeys=new Set([fc("0xc2")]),this._inlineAttributeKeys=new Set,t[fc("0xb6")][fc("0x11a")](fc("0x90"),fc("0xec")),this[fc("0x15b")]=t.config.get(fc("0x90")),t.config.define(fc("0xd5"),!0),this[fc("0x4")]=t[fc("0xb6")][fc("0xd2")]("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[fc("0x6b")]),this[fc("0x52")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,53,50])}init(){const t=this[fc("0x11f")],n=(t,e)=>{if(fc("0x166")!=t)return fc("0x114")+t;const n=e[fc("0x7b")]("|")[0];return this._isBlockAttribute(n)?"ck-suggestion-marker-formatBlock":fc("0x5d")};t.conversion[fc("0x39")](fc("0xa"))[fc("0x137")]({model:"suggestion",view:t=>{const{id:e,type:o,subType:r}=this[fc("0xa7")](t[fc("0xb1")]),i=[fc("0x99"),n(o,r)];let s=3e3;return this[fc("0x7f")].includes(t.markerName)&&(i[fc("0x76")](fc("0x12")),s=3010),fc("0xac")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0xff")].for(fc("0x13b"))[fc("0x12b")]((e=>{e.on(fc("0x154"),((e,n,o)=>{if(!o[fc("0x126")][fc("0x57")])return;const r=n[fc("0x14e")];if(!r)return;const i=o[fc("0xce")][fc("0xfa")](r);t[fc("0x31")][fc("0xf0")][fc("0x4d")](r)&&i&&!i.getCustomProperty(fc("0xd3"))&&i.is(fc("0xc"))&&(0,x.toWidget)(i,o[fc("0x34")])}),{priority:fc("0xfd")})})),t.conversion[fc("0x39")](fc("0x13b"))[fc("0x137")]({model:fc("0xef"),view:(t,e)=>{if(!e[fc("0x126")][fc("0x57")])return null;const{type:o,subType:r}=this[fc("0xa7")](t[fc("0xb1")]);return{classes:[fc("0x99"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x14e")])return;const{id:s}=this[fc("0xa7")](r[fc("0xb1")]);if(n){const t=this[fc("0xa9")][fc("0xd2")](s),e=this._getAttributeKeyFromSubType(t);if(!this._isBlockAttribute(e))return}if(r.item.is(fc("0x55")))return void i[fc("0xa5")][fc("0x13a")](r[fc("0x14e")],o[fc("0x3a")]);const x=i[fc("0xce")][fc("0xfa")](r[fc("0x14e")]);if(r[fc("0x14e")].is("element")&&t.model.schema[fc("0x135")](r[fc("0x14e")])&&!x[fc("0xe2")](fc("0x149"))){i[fc("0x34")][fc("0x169")](["ck-suggestion-marker",fc("0x14d")],x),i[fc("0x34")][fc("0x66")](fc("0xd1"),s,x),i[fc("0xce")][fc("0x6")](x,r[fc("0xb1")]),e&&(this[fc("0x7f")][fc("0x100")](r[fc("0xb1")])?i[fc("0x34")][fc("0x169")](fc("0x12"),x):i[fc("0x34")][fc("0xaa")](fc("0x12"),x));for(const e of t[fc("0x31")][fc("0x59")](r[fc("0x14e")])[fc("0x80")]())i.consumable[fc("0x13a")](e,o.name);i[fc("0xa5")][fc("0x13a")](r.item,o[fc("0x3a")])}};t.conversion[fc("0x39")](fc("0x13b"))[fc("0x12b")]((t=>{t.on(fc("0x86"),((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t.conversion.for(fc("0x13b"))[fc("0x12b")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x126")][fc("0x57")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0xff")].for(fc("0x13b"))[fc("0x6a")]({model:fc("0xef"),view:(t,e)=>e[fc("0x126")][fc("0x57")]?null:{group:fc("0xef"),name:t[fc("0x15f")](11)}}),t[fc("0xff")][fc("0x39")](fc("0x158"))[fc("0xfe")]({view:{name:fc("0xef"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xa4")+t[fc("0x4c")]("suggestion-type")+":"+t.getAttribute("id");return t[fc("0x4c")](fc("0x15"))&&(n+=":"+t[fc("0x4c")](fc("0x15"))),e[fc("0xe6")]("$marker",{"data-name":n})}}),t.conversion[fc("0x39")]("upcast")[fc("0xb3")]({view:fc("0xef")}),t.conversion[fc("0x39")](fc("0xa"))[fc("0x12b")]((t=>{t.on(fc("0x86"),o(),{priority:fc("0xfd")})})),t[fc("0xff")][fc("0x39")]("editingDowncast")[fc("0x12b")]((t=>{t.on(fc("0x77"),o({isAttributeSuggestion:!0}),{priority:"high"})})),t[fc("0xff")][fc("0x39")]("editingDowncast")[fc("0x12b")]((t=>{t.on(fc("0xa2"),((t,e,n)=>{const o=n[fc("0xce")][fc("0x1a")](e[fc("0xb1")]);if(o)for(const t of o)t.getCustomProperty(fc("0x149"))||(n[fc("0x34")][fc("0xaa")](["ck-suggestion-marker",fc("0x14d"),fc("0x12")],t),n[fc("0x34")][fc("0xf4")](fc("0xd1"),t),n[fc("0xce")][fc("0xcb")](t,e[fc("0xb1")]))}),{priority:fc("0xfd")})})),t[fc("0xff")].for(fc("0xa"))[fc("0x12b")]((t=>{t.on(fc("0x28"),((t,e,n)=>{const o=n[fc("0xce")][fc("0x1a")](e[fc("0xb1")]);if(!o)return;const{id:r}=this[fc("0xa7")](e[fc("0xb1")]),i=this[fc("0xa9")][fc("0xd2")](r),s=this[fc("0x29")](i);if(this[fc("0x8f")](s))for(const t of o)t[fc("0xe2")]("addHighlight")||(n[fc("0x34")][fc("0xaa")]([fc("0x99"),"ck-suggestion-marker-formatBlock",fc("0x12")],t),n.writer.removeAttribute(fc("0xd1"),t),n.mapper.unbindElementFromMarkerName(t,e[fc("0xb1")]))}),{priority:fc("0xfd")})})),t[fc("0x31")][fc("0xbe")][fc("0x172")]((e=>{let n=!1;const o=Array[fc("0x27")](t.model[fc("0xbe")][fc("0xdc")][fc("0x7c")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if("suggestion"!==o)continue;const d=this[fc("0xa9")][fc("0xd2")](u);if(null!=a[fc("0x129")]){fc("0x11e")==c&&(n=n||_c(a[fc("0x129")],x,e,t.model[fc("0xf0")]));const o=fc("0x166")==c&&this._isBlockAttribute(l[fc("0x7b")]("|")[0]);if(a[fc("0x129")].isCollapsed||fc("0x109")==a[fc("0x129")].root[fc("0x153")]||fc("0x11d")==c&&!yc(a[fc("0x129")])||o&&!yc(a[fc("0x129")])||"deletion"==c&&(Ec(s=a[fc("0x129")])||(i=s)[fc("0x1")].parent==i[fc("0x17c")][fc("0xe0")]&&i[fc("0x1")][fc("0x8")]))e[fc("0x1b")](x),n=!0;else{if(!d||!d.isInContent)continue;r.add(d)}}}var i,s;return r.size>0&&(n=!!this[fc("0x78")](r)||n),n})),t.model.document[fc("0x172")]((e=>{let n=!1;for(const o of t[fc("0x31")][fc("0xbe")][fc("0xdc")][fc("0x9a")]())if("insert"==o[fc("0xe3")])for(const o of this[fc("0xa9")][fc("0x7a")]()){if(o.isMultiRange||!o[fc("0x141")])continue;const r="formatBlock"==o[fc("0xe3")],i=this._getAttributeKeyFromSubType(o),s=i&&this._isBlockAttribute(i);if(!r&&!s)continue;const x=o[fc("0x2c")]();if(x[fc("0x1")][fc("0x10")]!=x.end[fc("0x10")]&&!x[fc("0x17c")][fc("0x8")]){const r=t[fc("0x31")][fc("0x136")](x[fc("0x1")].nodeAfter,fc("0x17c")),i=t[fc("0x31")][fc("0x116")](x[fc("0x1")],r);e[fc("0x41")](o.getFirstMarker(),{range:i}),n=!0}}return n})),t.model[fc("0xbe")][fc("0x172")]((t=>this._processAttributeChanges(t))),t[fc("0x31")][fc("0xbe")].registerPostFixer((t=>!t[fc("0xc0")].isLocal&&this._processAttributeSuggestions(t))),t[fc("0x31")].markers.on(fc("0x40"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[fc("0xa9")][fc("0xd2")](t);n&&n[fc("0x0")](e[fc("0x3a")])}})),t[fc("0x31")][fc("0xbe")].on(fc("0x156"),(()=>{const e=Array[fc("0x27")](t.model[fc("0xbe")][fc("0xdc")][fc("0x7c")]())[fc("0x12e")]((t=>fc("0xef")===this._splitMarkerName(t[fc("0x3a")])[fc("0x50")]));if(0===e[fc("0x42")])return;e[fc("0x19")](((t,e)=>{const n=t[fc("0x69")].oldRange,o=e.data[fc("0x150")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[fc("0x16d")](o[fc("0x1")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0xa7")](t);if(null===r[fc("0x150")]){const e=this[fc("0x138")](t);o[fc("0x12b")](e)}else{const t=this._suggestions[fc("0xd2")](e);null!==r[fc("0x129")]||t.isInContent?(n[fc("0x12b")](t.head),o[fc("0x12b")](t)):this[fc("0xb7")](t)}}o[fc("0x17d")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0x46")]("suggestionChanged",t)})),t[fc("0x31")].on(fc("0x133"),((e,n)=>{const o=n[0];if(!this._suggestions[fc("0x17d")])return;if(!o[fc("0x87")])return;if(o[fc("0xc0")][fc("0x102")]||!o[fc("0xc0")][fc("0x64")])return;let r,i;switch(o[fc("0xe3")]){case"insert":r=t[fc("0x31")].createPositionAt(o[fc("0x4e")]),i=r[fc("0xdf")](o[fc("0xb9")]);break;case"split":r=t.model[fc("0x136")](o[fc("0x107")]),i=t.model[fc("0x136")](o[fc("0xfc")]);break;case"move":r=t[fc("0x31")][fc("0x136")](o[fc("0x7")]),i=r[fc("0xdf")](o[fc("0xb9")]);break;default:return}const s=t[fc("0x31")][fc("0x116")](r,i);t[fc("0x31")][fc("0x112")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x6e")](s)){if(t.isMultiRange)continue;if(fc("0x11e")==t[fc("0xe3")])continue;const n=this._getAttributeKeyFromSubType(t);if(n&&this[fc("0x8f")](n)&&fc("0x7b")!=o.type)continue;const x=t[fc("0x69")]&&t[fc("0x69")][fc("0xe9")];(fc("0x11d")!=t[fc("0xe3")]||fc("0x7b")==o[fc("0xe3")]&&!x)&&(e[fc("0x13")]||fc("0x4f")==t[fc("0xe3")]&&e[fc("0x11c")]||t.getFirstRange()[fc("0xa8")](s)&&this[fc("0xbb")](t,r,i))}}))}),{priority:fc("0x132")}),t[fc("0x31")].on(fc("0x60"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x26")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[fc("0x3f")][fc("0xe7")])return;if(o.isCollapsed)return;const i=t[fc("0x31")][fc("0xf0")],{start:s,end:x}=o.getFirstRange(),a=s.nodeAfter&&i[fc("0xb")](s[fc("0x134")])?null:i.getNearestSelectionRange(s,"forward"),c=x[fc("0xe0")]&&i[fc("0xb")](x[fc("0xe0")])?null:i[fc("0x140")](x,fc("0x168")),l=t.model[fc("0x116")](a?a[fc("0x1")]:s,c?c[fc("0x17c")]:x);t[fc("0x31")][fc("0x112")]((e=>{this[fc("0x75")](l);const n=t.model.schema[fc("0x140")](l[fc("0x1")]);o.is(fc("0x61"))?e.setSelection(n):o.setTo(n)})),e.stop()}),{priority:e.priorities[fc("0x139")]+10}),t[fc("0x31")].on("insertContent",((e,n)=>{const o=n[n.length-1];o&&o[fc("0x26")]||this._isForcedDefaultExecutionBlock||this[fc("0x3f")][fc("0xe7")]&&(t.model[fc("0x112")]((()=>{let o=t.model[fc("0xd6")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x17f")]=o[fc("0xd8")]();const r=o[fc("0x17c")].nodeBefore,i=t[fc("0x31")].schema;r&&i[fc("0x135")](r)&&!i[fc("0x4d")](r)&&(o=t.model[fc("0x116")](o[fc("0x1")],t[fc("0x31")][fc("0x136")](r,fc("0x17c")))),this[fc("0x12f")](o)})),e[fc("0x177")]())}),{priority:fc("0xfd")}),this[fc("0x11f")][fc("0x157")][fc("0x12b")](fc("0x16f"),this[fc("0x3f")]),this[fc("0x10d")]("trackChanges");const r=new p(t,this._suggestions);t[fc("0x157")][fc("0x12b")](fc("0xa0"),r),this[fc("0x10d")](fc("0xa0"));const i=new y(t,this[fc("0xa9")]);t[fc("0x157")][fc("0x12b")](fc("0x165"),i),this[fc("0x10d")](fc("0x165")),t.commands[fc("0x12b")](fc("0x58"),new F(t,r,this[fc("0xa9")])),this.enableCommand(fc("0x58")),t[fc("0x157")][fc("0x12b")](fc("0x12c"),new F(t,i,this[fc("0xa9")])),this[fc("0x10d")](fc("0x12c")),t.commands[fc("0x12b")](fc("0x12d"),new j(t,r,this._suggestions)),this[fc("0x10d")](fc("0x12d")),t[fc("0x157")][fc("0x12b")](fc("0x1e"),new j(t,i,this[fc("0xa9")])),this[fc("0x10d")](fc("0x1e"));const s=t.plugins[fc("0xd2")](fc("0xe"));this[fc("0x37")](s,fc("0x14"),((t,{threadId:e})=>{const n=this[fc("0xa9")][fc("0xd2")](e);n&&n[fc("0x121")]&&1===n[fc("0x121")].length&&this[fc("0xc1")](e,{hasComments:!0})}),{priority:fc("0x71")}),this[fc("0x37")](s,fc("0x16"),((t,{threadId:e})=>{const n=this._suggestions[fc("0xd2")](e);n&&n[fc("0x121")]&&!n.commentThread[fc("0x42")]&&this[fc("0xc1")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[fc("0x101")])throw new e.CKEditorError(fc("0x115"),this);this[fc("0x101")]=t}get[fc("0xc9")](){return this[fc("0x101")]}[fc("0x173")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xa9")][fc("0x7a")]())t&&!e[fc("0x141")]||n[fc("0x76")](e);return e?n[fc("0x1d")]((t=>t.toJSON())):n}[fc("0x10f")](t){const n=this[fc("0xa9")].get(t);if(!n)throw new e.CKEditorError(fc("0x18"),this);return n}hasSuggestion(t){return this[fc("0xa9")][fc("0x65")](t)}[fc("0x8e")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0xe3")][fc("0x7b")](":"),s=this[fc("0xa9")][fc("0xd2")](n)||this[fc("0xad")](r,i,n,e,o);if(this[fc("0x3e")](s),this[fc("0xcc")](s,r,i||null,e),s[fc("0xc7")]=t[fc("0xc7")],s._isDataLoaded=!0,o&&o[fc("0x7e")]){const t=o[fc("0x7e")],e=this._getExternalAuthor(t[fc("0x178")]);s[fc("0x88")]=t[fc("0xc7")],s[fc("0x95")]=e,s[fc("0x151")]=!0}else s[fc("0x88")]=t[fc("0xc7")];switch(t.data&&(s[fc("0x69")]=t[fc("0x69")]),t[fc("0x9b")]&&(s[fc("0x9b")]=t[fc("0x9b")]),this[fc("0x101")]&&this[fc("0x101")][fc("0xed")]||(s[fc("0x10b")]=!0),this[fc("0x67")][fc("0xd2")](s)){case fc("0xe4"):this[fc("0x67")][fc("0xd")](s,fc("0x17a"));break;case"markerReady":s[fc("0x141")]?(this._refreshSuggestionsChain(new Set([s])),this[fc("0x78")](new Set([s])),this._suggestionState.set(s,fc("0xb5")),this.fire("suggestionLoaded",s)):this._suggestionState[fc("0xd")](s,fc("0x10e"))}return s}[fc("0xa0")](t){this[fc("0x26")]((()=>{this.editor[fc("0x31")].change((()=>{for(const e of t[fc("0x106")]())e[fc("0x1f")]()}))}))}discardSuggestion(t){this[fc("0x26")]((()=>{this[fc("0x11f")][fc("0x31")][fc("0x112")]((()=>{for(const e of t[fc("0x106")]())e[fc("0xf7")]()}))}))}[fc("0x10d")](t,n){const o=this[fc("0x11f")][fc("0x157")][fc("0xd2")](t);if(!o)throw new e.CKEditorError(fc("0xb2"),this,{commandName:t});if(this._enabledCommands[fc("0x65")](o))throw new e.CKEditorError(fc("0xbc"),this,{commandName:t});this[fc("0x6b")][fc("0x12b")](o),n&&o.on(fc("0x17"),((t,e)=>{this[fc("0x3f")][fc("0xe7")]&&(this[fc("0x23")]||(e[fc("0x42")]>0&&e[e[fc("0x42")]-1]&&e[e.length-1].forceDefaultExecution?e[fc("0x96")]():(t.return=n(((...t)=>o[fc("0x17")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x177")]())))}),{priority:fc("0xfd")})}[fc("0x26")](t){let n,o;const r=this[fc("0x23")];this[fc("0x23")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x23")]=!1),o&&e.CKEditorError[fc("0x20")](o,this),n}markInsertion(t,n=null,o={}){if(t[fc("0xe1")])return null;const r=this[fc("0x11f")].plugins.get(fc("0x118")).me;for(const{suggestion:e,meta:r}of this[fc("0x6e")](t,fc("0x4f")))if(r[fc("0x11c")]){if(!r.isNextTo){if(r[fc("0x13")]){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this._breakSuggestionMarker(e,t[fc("0x1")],t[fc("0x17c")]);break}if(n==e[fc("0x15e")]&&Ic(e,o)){const n=e[fc("0x2c")]();return n[fc("0x1")].isEqual(t.end)?this._setSuggestionRange(e,this[fc("0x4a")][fc("0x116")](t[fc("0x1")],n.end)):this[fc("0x7d")](e,this[fc("0x4a")].createRange(n[fc("0x1")],t[fc("0x17c")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x48")+n:fc("0x4f"),a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x38")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const r=this[fc("0x11f")][fc("0xae")][fc("0xd2")](fc("0x118")).me,i=this[fc("0x119")][fc("0x56")](fc("0x4f"),n,"join");for(const e of this[fc("0x173")]())if(e.author.id==r.id&&fc("0x4f")==e[fc("0xe3")]&&e[fc("0x15e")]==n&&Ic(e,o)&&(i(e[fc("0x36")](),t)||i(t,e.getRanges()))){for(const n of t)e[fc("0xfb")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x6e")](t,"insertion")){if(!n[fc("0x11c")])continue;if(!this[fc("0x4")]&&n[fc("0x13")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e[fc("0x36")]())for(const e of t)if(!n[fc("0xa8")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this[fc("0xe5")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x38")](a,s,x,e,Jo[fc("0xee")]());return c}[fc("0x160")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0xe1")])return null;if(fc("0x14b")===this._trackFormatChanges){const e=this._suggestionFactory[fc("0x56")](fc("0x11e"),o,fc("0x1f"));return this[fc("0x26")]((()=>e([t],n,r))),null}const i=this[fc("0x11f")][fc("0xae")][fc("0xd2")](fc("0x118")).me,s=[];if(fc("0xf8")!==this[fc("0x15b")])for(const{suggestion:e,meta:n}of this[fc("0x6e")](t,fc("0x4f")))n.isOwn&&!n[fc("0x54")]&&s.push(...e[fc("0x36")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[fc("0x76")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][fc("0xf1")](t);n[fc("0x2d")](e,1,...o),e+=o[fc("0x42")]}}return n}(t,s);x[fc("0x42")]&&this[fc("0x4a")][fc("0x112")]((()=>{for(const t of x){const e=this[fc("0x119")][fc("0x56")](fc("0x11e"),o,fc("0x1f"));this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x17c")];for(const{suggestion:e,meta:n}of this[fc("0x6e")](t,fc("0x11e"))){if(!n[fc("0x11c")])continue;if(e[fc("0x15e")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0x2c")]();if(i[fc("0xa8")](t,!0))return null;x=x[fc("0x16d")](i[fc("0x1")])?x:i.start,a=a.isAfter(i[fc("0x17c")])?a:i[fc("0x17c")],s?i[fc("0x1")][fc("0x16d")](s.getFirstRange().start)?(s[fc("0x8b")](),s=e):e[fc("0x8b")]():s=e}const c=this[fc("0x4a")].createRange(x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0xe5")]({id:t,type:fc("0x17e")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this._addSuggestionMarker(fc("0x17e")+o,t,s,c)}}return null}[fc("0xdb")](t,n,o=[],r=null,i={}){n[fc("0x15c")]||(n[fc("0x15c")]=n[fc("0xc6")]),n.multipleBlocks=t.is("range"),r=r||Tc(n);const s=o[fc("0x1d")]((t=>Cc(t,this[fc("0x4a")]))),x=t.is(fc("0xf9"))?t:Cc(t,this[fc("0x4a")]);if("never"===this._trackFormatChanges){const t=this._suggestionFactory[fc("0x56")]("formatBlock",r,"accept");return this.forceDefaultExecution((()=>t([x],n,i))),null}s[fc("0x76")](x);let a=!0;for(const t of s)if(!this[fc("0x10a")](t)){a=!1;break}if(a&&fc("0xf8")!==this[fc("0x15b")]){const t=this[fc("0x119")][fc("0x56")](fc("0x11d"),r,fc("0x1f"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[fc("0x1")],u=x[fc("0x17c")];for(const{suggestion:t,meta:e}of this[fc("0x6e")](x,fc("0x11d"))){if(!e[fc("0x11c")])continue;if(e[fc("0x5f")]||e[fc("0x13")]||e[fc("0x54")])continue;if(t[fc("0x69")][fc("0x15c")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const o=t[fc("0x2c")]();if(t.subType==r){if(o[fc("0xa8")](x,!0))return null;l=l[fc("0x16d")](o[fc("0x1")])?l:o[fc("0x1")],u=u.isAfter(o[fc("0x17c")])?u:o[fc("0x17c")],c?o[fc("0x1")][fc("0x16d")](c[fc("0x2c")]()[fc("0x1")])?(c[fc("0x8b")](),c=t):t[fc("0x8b")]():c=t}else{const e=x.getIntersection(o);this[fc("0x167")](t,e)}}const d=this[fc("0x11f")][fc("0xae")][fc("0xd2")](fc("0x118")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x7d")](c,this[fc("0x4a")][fc("0x116")](l,u)),c;{const t=this[fc("0xe5")]({id:g,type:fc("0x13d")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x38")]("formatBlock:"+r,g,f,this[fc("0x4a")][fc("0x116")](l,u)),t}}[fc("0x159")](t,n,o=[],r=null,i={}){n[fc("0x15c")]||(n[fc("0x15c")]=n[fc("0xc6")]);const s=t[0];n[fc("0xe9")]=s.is(fc("0xf9")),r=r||Tc(n);const x=o[fc("0x1d")]((t=>Cc(t,this._model))),a=s.is(fc("0xf9"))?t:t[fc("0x1d")]((t=>Cc(t,this[fc("0x4a")])));if("never"===this._trackFormatChanges){const t=this._suggestionFactory[fc("0x56")](fc("0x11d"),r,fc("0x1f"));return this[fc("0x26")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this[fc("0x10a")](t)){c=!1;break}if(c&&fc("0xf8")!==this[fc("0x15b")]){const t=this[fc("0x119")].getSuggestionCallback(fc("0x11d"),r,fc("0x1f"));return this[fc("0x26")]((()=>t(a,n,i))),null}const l=this[fc("0x11f")][fc("0xae")].get(fc("0x118")).me;for(const t of this[fc("0x173")]()){if(t[fc("0x95")].id!=l.id)continue;if(fc("0x11d")!=t[fc("0xe3")]||t[fc("0x69")][fc("0x15c")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const e=t[fc("0x15e")]==r;for(let n=0;n<a[fc("0x42")];n++){const o=a[n];for(const r of t.getMarkers()){const i=r[fc("0xc4")]();if(o[fc("0x70")](i)){e?(a[fc("0x2d")](n,1),n--):t.removeMarker(r[fc("0x3a")]);break}}}}if(0==a.length)return null;const u=this[fc("0x119")][fc("0x56")](fc("0x11d"),r,fc("0xb0"));for(const t of this[fc("0x173")]())if(t[fc("0x95")].id==l.id&&fc("0x11d")==t[fc("0xe3")]&&t[fc("0x69")][fc("0x15c")]==n.formatGroupId&&t[fc("0x15e")]==r&&Ic(t,i)&&(u(t[fc("0x36")](),a)||u(a,t[fc("0x36")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x38")](f,d,g,t,Jo[fc("0xee")]());return m}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const r=this.editor[fc("0xae")][fc("0xd2")](fc("0x118")).me,i=new s.LiveRange(t[fc("0x1")],t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x4f")))if(e.isOwn&&!e[fc("0x5f")])if(t[fc("0x5c")]){const e=t[fc("0x36")]()[fc("0x12e")]((t=>fc("0x109")!=t[fc("0x82")].rootName));if(e[fc("0x85")]((t=>i[fc("0xa8")](t,!0)))&&t[fc("0xf7")](),e.some((t=>t[fc("0xa8")](i,!0)))){const t=this._suggestionFactory[fc("0x56")](fc("0xac"),n,fc("0x1f"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i.getIntersection(t.getFirstRange());null!==e&&t[fc("0x21")]([e],null,o)}if(i[fc("0x51")](),i.isCollapsed||"$graveyard"==i[fc("0x82")][fc("0x153")])return null;let x=null,a=i[fc("0x1")],c=i[fc("0x17c")];const l=this[fc("0x6e")](i,fc("0xac"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x4a")][fc("0x116")](a,c);if(e[fc("0x11c")]&&(this[fc("0x4")]||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x5c")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0xa8")](n,!0))return t;n[fc("0xa8")](o)||(e=!1)}e&&t[fc("0xf7")]()}else{const e=t[fc("0x2c")]();if(e[fc("0xa8")](n,!0))return t;if(!Ic(t,o)){n[fc("0xa8")](e)?t.removeMarkers():e.containsPosition(a)?a=e[fc("0x17c")]:e[fc("0x9c")](c)&&(c=e[fc("0x1")]);continue}a=a.isBefore(e[fc("0x1")])?a:e.start,c=c[fc("0xaf")](e[fc("0x17c")])?c:e[fc("0x17c")],o=Object[fc("0x11b")]({},t[fc("0x9b")]),x?e.start[fc("0x16d")](x.getFirstRange()[fc("0x1")])?(x[fc("0x8b")](),x=t):t[fc("0x8b")]():x=t}}if(x)return this[fc("0x7d")](x,this._model[fc("0x116")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x4a")][fc("0x116")](a,c),s=r.id,x=n?fc("0x79")+n:fc("0xac"),l=this[fc("0xe5")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x38")](x,t,s,i),l}}[fc("0x44")](t,n="multi",o={}){const r=this[fc("0x11f")][fc("0xae")][fc("0xd2")](fc("0x118")).me,i=t[fc("0x1d")]((t=>new s.LiveRange(t[fc("0x1")],t[fc("0x17c")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x6e")](i,fc("0x4f")))e[fc("0x11c")]&&!e[fc("0x5f")]&&x[fc("0x12b")](t);for(const e of x)if(e.isMultiRange){const r=e.getRanges();if((!e[fc("0x9b")]||!e[fc("0x9b")][fc("0x6c")])&&r[fc("0x85")]((t=>i[fc("0x144")]((e=>e[fc("0xa8")](t,!0)))))&&e[fc("0xf7")](),i[fc("0x85")]((t=>r.some((e=>e[fc("0xa8")](t,!0)))))){const e=this[fc("0x119")].getSuggestionCallback(fc("0xac"),n,fc("0x1f"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[fc("0x2c")]();if(i[fc("0x144")]((e=>e[fc("0xa8")](t,!0)))&&e[fc("0xf7")](),i[fc("0x85")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x119")][fc("0x56")](fc("0xac"),n,fc("0x1f"));return this[fc("0x26")]((()=>t(i,null,o))),null}}const a=this[fc("0x119")][fc("0x56")]("deletion",n,"join");let c=null;for(const t of this[fc("0x173")]())if(t.author.id==r.id&&t[fc("0x141")]&&fc("0xac")==t[fc("0xe3")]&&t.subType==n&&Ic(t,o)&&(a(t[fc("0x36")](),i)||a(i,t[fc("0x36")]())))if(c){if(t[fc("0x121")]&&t.commentThread[fc("0x42")])continue;for(const e of t[fc("0x36")]())c[fc("0xd0")](e)||c.addRange(e);t[fc("0x8b")]()}else{c=t;for(const e of i)t[fc("0xd0")](e)||t[fc("0xfb")](e)}if(c)return c;x[fc("0x142")]();for(const{suggestion:t,meta:e}of this[fc("0x6e")](i,fc("0xac")))e[fc("0x11c")]&&(this[fc("0x4")]||!e[fc("0x13")]&&!e[fc("0x54")])&&Ic(t,o)&&x[fc("0x12b")](t);for(const t of x){const e=t[fc("0x36")]();if((!o||!o[fc("0x6c")])&&i[fc("0x85")]((t=>e.some((e=>e[fc("0xa8")](t,!0))))))return t;(!t.attributes||!t.attributes[fc("0x6c")])&&e.every((t=>i[fc("0x144")]((e=>e[fc("0xa8")](t,!0)))))&&t[fc("0xf7")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x79")+n,g=this[fc("0xe5")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x51")](),t[fc("0xe1")]||"$graveyard"==t.root[fc("0x153")]||this[fc("0x38")](d,l,u,t,Jo[fc("0xee")]());return g}[fc("0xab")](t,n,o,r,i){if(t.isCollapsed)return[];if("never"===this[fc("0x15b")])return[];const s=this[fc("0x11f")].plugins[fc("0xd2")]("Users").me.id,x=Array[fc("0x27")](this._suggestions.values()).filter((e=>fc("0x166")==e[fc("0xe3")]&&e.data[fc("0x125")]==n&&e.isIntersectingWithRange(t)));if(fc("0xec")===this[fc("0x15b")]){const e=this._findSuggestions(t,"insertion").filter((({meta:t})=>t[fc("0x11c")]&&!t[fc("0x54")]&&!t.isNextTo))[fc("0x1d")]((({suggestion:t})=>t));x[fc("0x97")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x166")==t[fc("0xe3")]?t[fc("0x69")][fc("0x49")]:void 0,n=t[fc("0x2c")](),i=Array[fc("0x27")](a[fc("0x35")]()).find((t=>t.isIntersecting(n)));i&&(a[fc("0x3c")](i),i.getDifference(n)[fc("0x13c")]((t=>{a[fc("0xd")](t,o)})),fc("0x4f")!=t.type&&e!=r&&a[fc("0xd")](i[fc("0xca")](n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x42")]>37&&console[fc("0xa3")](fc("0x24"),{key:n});const l=(fc("0x5b")+(n+"|")+Tc({newValue:r}))[fc("0x110")](0,60),u=this[fc("0xe5")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c.push(u),this[fc("0x38")](l,x,s,t)}return c}[fc("0x175")](t){this[fc("0x4b")][fc("0x12b")](t)}_registerInlineAttribute(t){this[fc("0x104")].add(t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[fc("0x10d")](t,((t,...e)=>{this[fc("0x15d")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xd9")](t);for(const t of n)this[fc("0x175")](t)}[fc("0x7d")](t,e){const n=t.getFirstMarker();this[fc("0x4a")].change((t=>{t[fc("0x41")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x11f")].config[fc("0xd2")](fc("0x120"));this[fc("0x63")].hasCommentThread(e)||this[fc("0x63")][fc("0x3")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[fc("0x123")](e);o[fc("0x179")](fc("0x6d")),o[fc("0x6d")]=!1,t[fc("0x121")]=o}[fc("0xcc")](t,n,o,r){if(t[fc("0xe3")]!=n||t[fc("0x15e")]!=o||t[fc("0xbd")].id!=r)throw this[fc("0x11f")][fc("0x84")](fc("0xeb")),new e.CKEditorError(fc("0xeb"),this)}[fc("0x167")](t,n){const o=t[fc("0x2c")]();if(n[fc("0x70")](o))t[fc("0x8b")]();else if(o[fc("0xa8")](n)){const r=this[fc("0x4a")].createPositionAt(n[fc("0x1")][fc("0xe0")],fc("0x17c"));this[fc("0x7d")](t,this[fc("0x4a")][fc("0x116")](o[fc("0x1")],r));const i=(0,e.uid)(),s=t[fc("0xbd")].id,x=t.type+":"+t[fc("0x15e")];this[fc("0xe5")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x69")],attributes:t.attributes});const a=this[fc("0x4a")][fc("0x136")](n.end[fc("0x10")],fc("0xc8")),c=this[fc("0x4a")].createRange(a,o.end);this[fc("0x38")](x,i,s,c)}else if(o[fc("0x9c")](n.start)){const e=this[fc("0x4a")][fc("0x136")](n[fc("0x1")][fc("0xe0")],fc("0x17c"));this[fc("0x7d")](t,this[fc("0x4a")].createRange(o[fc("0x1")],e))}else{const e=this._model.createPositionAt(n[fc("0x17c")][fc("0x10")],fc("0xc8"));this._setSuggestionRange(t,this[fc("0x4a")][fc("0x116")](e,o.end))}}[fc("0x10a")](t){for(const{suggestion:e,meta:n}of this[fc("0x6e")](t,fc("0x4f"))){if(!n.isOwn)continue;const o=e[fc("0x36")]();for(const e of o)if(!t[fc("0xf1")](e)[fc("0x42")])return!0}return!1}[fc("0x16c")](t){const n=this.editor.plugins.get(fc("0x118")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x5e"),this);return n}[fc("0x16b")](t){const e=this[fc("0x11f")].plugins[fc("0xd2")](fc("0x118")),n=(0,i.hashObject)(fc("0x2f")+t);return e[fc("0x155")](n)||e[fc("0xb4")]({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this._getAuthorFromId(o),s=this[fc("0x119")][fc("0x131")](t,e,n,i,r,(t=>this[fc("0xc1")](n,{attributes:t})));return this[fc("0x37")](s,fc("0x1f"),(()=>{this._updateSuggestionData(n,{state:fc("0x127")})}),{priority:fc("0xfd")}),this[fc("0x37")](s,"discard",(()=>{this[fc("0xc1")](n,{state:"rejected"})}),{priority:fc("0xfd")}),this[fc("0xa9")][fc("0xd")](n,s),this[fc("0x67")][fc("0xd")](s,"notReady"),s}[fc("0xa7")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x42")]>=5?e[2]:null,id:e[fc("0x42")]<5?e[2]:e[3],authorId:e[fc("0x42")]<5?e[3]:e[4],markerCount:6==e[fc("0x42")]?e[5]:null}}[fc("0xbb")](t,n,o){const r=t.getFirstRange(),i=r.start,s=r[fc("0x17c")];this[fc("0x7d")](t,this[fc("0x4a")][fc("0x116")](i,n));const x=(0,e.uid)(),a=t[fc("0xbd")].id,c=t[fc("0xe3")]+(t[fc("0x15e")]?":"+t[fc("0x15e")]:"");this[fc("0xe5")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x9b")],data:t[fc("0x69")]});const l=this[fc("0x29")](t);(fc("0x11d")==t.type||l&&this[fc("0x8f")](l))&&(o=this[fc("0x4a")][fc("0x73")](o[fc("0x10")])),this[fc("0x38")](c,x,a,this._model[fc("0x116")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0x11f")][fc("0xae")].get(fc("0x118")).me;Array.isArray(t)||(t=[t]);for(const r of this[fc("0x173")]()){if(!r[fc("0x141")])continue;if(e&&r[fc("0xe3")]!=e)continue;let i=!1;for(const e of r[fc("0x36")]()){for(const s of t){const t=s.start[fc("0x70")](e.end)||s.end[fc("0x70")](e[fc("0x1")]);if(t||s[fc("0xca")](e)){const x=s[fc("0xa8")](e)&&bc(this[fc("0x4a")][fc("0xf0")],e.start,s),a=e[fc("0xa8")](s)&&bc(this[fc("0x4a")][fc("0xf0")],s[fc("0x1")],e);n[fc("0x76")]({suggestion:r,meta:{isOwn:o==r[fc("0x95")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x38")](t,e,n,o,r){this[fc("0x4a")][fc("0x112")]((i=>{let s=fc("0xa4")+t+":"+e+":"+n;r&&(s=s+":"+r),i.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0x72")],n=t[fc("0x2a")];t[fc("0x72")]=null,t[fc("0x2a")]=null,null!=e&&(e[fc("0x2a")]=n),null!=n&&(n[fc("0x72")]=e),"ready"==this[fc("0x67")][fc("0xd2")](t)&&(this[fc("0x67")].set(t,fc("0x10e")),this[fc("0x46")](fc("0xf"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[fc("0x8e")](t);if(this[fc("0x101")]&&this[fc("0x101")].addSuggestion){const r=this[fc("0x11f")][fc("0xae")][fc("0xd2")](fc("0xd4")),i=o[fc("0x174")],s=o[fc("0x15e")]?o.type+":"+o[fc("0x15e")]:o[fc("0xe3")],x=this[fc("0x11f")].locale,a=r.add(Qo(x,fc("0x74"))),c={id:n,type:s,hasComments:i,data:t[fc("0x69")]||null,originalSuggestionId:t[fc("0x8a")]||null,attributes:o[fc("0x9b")]};this[fc("0x101")][fc("0xed")](c).then((t=>{o[fc("0x10b")]=!0,r[fc("0x105")](a),t&&t[fc("0xc7")]&&(this[fc("0xa9")][fc("0xd2")](n).createdAt=t[fc("0xc7")])}))[fc("0x32")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor.model[fc("0x176")]({isUndoable:!1},(()=>{o[fc("0xf7")]()})),o[fc("0x62")](),this[fc("0xa9")][fc("0x3c")](o.id),this._suggestionState[fc("0x3c")](o),t}))}return o}[fc("0x8f")](t){return this[fc("0x4b")].has(t)}[fc("0x29")](t){return fc("0x166")==t[fc("0xe3")]&&t[fc("0x15e")][fc("0x7b")]("|")[0]}[fc("0xc1")](t,e){const n=this[fc("0x11f")].plugins.get(fc("0xd4")),o=this.getSuggestion(t);if(this[fc("0x101")]&&this[fc("0x101")].updateSuggestion)if(o[fc("0x10b")]){const o=n.add(Qo(this.editor.locale,"PENDING_ACTION_SUGGESTION"));this[fc("0x101")].updateSuggestion(t,e).then((()=>{n[fc("0x105")](o)}))}else o.on(fc("0xa1"),(()=>{this[fc("0xc1")](t,e)}))}_getSuggestionData(t){if(!this[fc("0x101")]||!this[fc("0x101")][fc("0x10f")])throw new e.CKEditorError(fc("0x16a"),this);return this[fc("0x101")][fc("0x10f")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0xa7")](t),i=this[fc("0xa9")][fc("0xd2")](e)||this[fc("0xad")](n,o,e,r,{});switch(this[fc("0xcc")](i,n,o,r),this._suggestionState[fc("0xd2")](i)){case fc("0xe4"):this[fc("0x9e")](e)[fc("0x6f")]((t=>{let n=Promise.resolve();t[fc("0x174")]&&(n=this[fc("0x63")][fc("0x91")]({channelId:this[fc("0x11f")].config[fc("0xd2")](fc("0x120")),threadId:e})),n[fc("0x6f")]((()=>{this[fc("0x8e")](t)._saved=!0}))})),this[fc("0x67")][fc("0xd")](i,"markerReady");break;case"removed":this._updateSuggestionData(e,{state:fc("0x81")});case fc("0x17a"):this[fc("0x67")][fc("0xd")](i,fc("0xb5")),this[fc("0x46")](fc("0xea"),i);break;case fc("0xb5"):this[fc("0x46")]("suggestionChanged",i)}return i[fc("0x0")](t),i}[fc("0x124")](t){const e=Array.from(t),n=e[fc("0x12e")]((t=>fc("0x166")==t[fc("0xe3")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0x12e")]((t=>!t[fc("0x5c")]&&fc("0x166")!=t[fc("0xe3")])),r=this.getSuggestions({skipNotAttached:!0})[fc("0x12e")]((t=>!t[fc("0x5c")]&&fc("0x166")!=t[fc("0xe3")])),i=r.filter((e=>!t[fc("0x65")](e))),s=new Map(r[fc("0x1d")]((t=>[t,this[fc("0x119")][fc("0x56")](t[fc("0xe3")],t[fc("0x15e")],"chain")]))),x=new Map(r.map((t=>[t,t[fc("0x2c")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x42")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x42")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x65")](e)&&e[fc("0x72")]&&(l.add(e[fc("0x72")]),e[fc("0x72")][fc("0x2a")]===e&&(e[fc("0x72")][fc("0x2a")]=null),e[fc("0x72")]=null),!a[fc("0x65")](e)&&e[fc("0x2a")]&&(l.add(e[fc("0x2a")]),e[fc("0x2a")][fc("0x72")]===e&&(e.next[fc("0x72")]=null),e[fc("0x2a")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x42")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x2a")]=n[1],n[1][fc("0x72")]=n[0],a.add(n[0]),c[fc("0x12b")](n[1]))}}function d(t,e){if(t[fc("0x95")].id!==e.author.id)return null;const n=s[fc("0xd2")](t)(t,e,x[fc("0xd2")](t),x[fc("0xd2")](e));return n&&s.get(e)(t,e,x[fc("0xd2")](t),x[fc("0xd2")](e))?n[1][fc("0x121")]&&n[1][fc("0x121")][fc("0x42")]?null:n:null}l[fc("0x17d")]&&this._refreshSuggestionsChain(l)}[fc("0x17b")](t){if(0==t.length)return;const e=this[fc("0x173")]({skipNotAttached:!0}).filter((t=>fc("0x166")==t[fc("0xe3")]&&t[fc("0x2")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x9b")]);o.has(e)||(o[fc("0xd")](e,n[fc("0x42")]),n[fc("0x76")]([]));const r=o[fc("0xd2")](e);n[r][fc("0x76")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0xc7")],o=e[0].createdAt;return n==o?t[0][fc("0x9b")].groupId<e[0].attributes[fc("0xa6")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x19")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x42")];t++){if(0==n[t][fc("0x42")])continue;const e=[];for(let o=t+1;o<n[fc("0x42")];o++)0!=n[o].length&&r(n[t],n[o])&&e[fc("0x76")](o);for(const o of e)n[t]=n[t][fc("0x3b")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x42")];e++)t[e][fc("0x72")]=t[e-1]||null;function r(t,e){if(t[0].author!==e[0][fc("0x95")])return!1;if(n=t[0],o=e[0],(n.hasComments||o[fc("0x174")])&&(n[fc("0x174")]&&o[fc("0x174")]||!(n.hasComments&&o[fc("0xc7")]<n.commentThread.comments[fc("0xd2")](0)[fc("0xc7")]||o[fc("0x174")]&&n.createdAt<o[fc("0x121")][fc("0x113")][fc("0xd2")](0)[fc("0xc7")])))return!1;var n,o;const r=lc(t[0][fc("0x9b")],fc("0xa6")),i=lc(e[0][fc("0x9b")],fc("0xa6"));return!!Go(r,i)&&(!!t.every((t=>e[fc("0x144")]((e=>t[fc("0x2c")]()[fc("0x70")](e[fc("0x2c")]())))))&&e[fc("0x85")]((e=>t[fc("0x144")]((t=>e[fc("0x2c")]().isEqual(t[fc("0x2c")]()))))))}}[fc("0x78")](t){const e=Array[fc("0x27")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[fc("0x12e")]((e=>!t[fc("0x65")](e))),r=new Map(e[fc("0x1d")]((t=>[t,this[fc("0x119")][fc("0x56")](t[fc("0xe3")],t[fc("0x15e")],fc("0xb0"))]))),i=new Map(n[fc("0x1d")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x42")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x42")];s++){const o=n[s];if(o[fc("0xe3")]!==e[fc("0xe3")]||o[fc("0x95")].id!==e.author.id||o.subType!==e[fc("0x15e")])continue;if(!kc(e,o))continue;if(fc("0x166")==e[fc("0xe3")]&&e[fc("0x69")][fc("0x49")]!=o[fc("0x69")].oldValue)continue;if(fc("0x166")==e[fc("0xe3")]&&t[fc("0x8f")](e[fc("0x69")][fc("0x125")]))continue;const x=r[fc("0xd2")](e),a=i[fc("0xd2")](e),c=i.get(o),l=e.commentThread&&e[fc("0x121")][fc("0x42")],u=o[fc("0x121")]&&o[fc("0x121")][fc("0x42")];if(!l&&x(c,a))return t[fc("0x103")](o,e),i[fc("0x3c")](e),!0;if(!u&&x(a,c))return t[fc("0x103")](e,o),i[fc("0x3c")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[fc("0x36")]())t[fc("0xfb")](n);else{const n=e[fc("0x2c")]()[fc("0x17c")];this[fc("0x7d")](t,this[fc("0x4a")][fc("0x116")](t[fc("0x2c")]().start,n))}e[fc("0x8b")]()}[fc("0x108")](t,e){const n=t[fc("0x68")]("format")||t[fc("0x68")](fc("0x166"))?fc("0x98"):t[fc("0x94")]();return Qo(this[fc("0x11f")][fc("0x30")],e+"_"+n+fc("0x22"))}[fc("0x52")](){const t=this[fc("0x11f")];(0,i.surroundingMarkersDetector)(this[fc("0x4a")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t[fc("0x3a")]);if(fc("0xef")===e){o[fc("0x76")](this[fc("0x108")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0xa7")](t.name);if(fc("0xef")===e){o[fc("0x76")](this[fc("0x108")](n,fc("0x9f")));break}}o[fc("0x42")]&&t.ui.ariaLiveAnnouncer[fc("0xe8")]("trackChanges",o.join(" "))}))}_processAttributeChanges(t){if(null!==this[fc("0x122")])return!1;const e=this.editor,n=e.model[fc("0xbe")][fc("0xdc")][fc("0x9a")]();if(0==n[fc("0x42")])return!1;const o=[],r=n[fc("0x12e")]((t=>fc("0x166")==t[fc("0xe3")])),i=n[fc("0x12e")]((t=>fc("0x89")==t.type&&fc("0xc5")!=t[fc("0x3a")])),s=n.filter((t=>fc("0x105")==t.type&&fc("0xc5")!=t[fc("0x3a")]));for(const t of r)o[fc("0x76")]({key:t[fc("0x53")],newValue:t[fc("0x13f")],oldValue:t[fc("0x148")],range:(x=t[fc("0xf9")],null==x[fc("0x17c")].nodeBefore&&x[fc("0x17c")][fc("0x10")]==x[fc("0x1")].nodeAfter?Cc(x.start[fc("0x134")],e[fc("0x31")]):x)});var x;for(const t of i){const n=s[fc("0x5a")]((e=>e.position[fc("0x70")](t.position)));n&&o[fc("0x76")]({key:fc("0xc2"),newValue:t[fc("0x3a")],oldValue:n[fc("0x3a")],range:e[fc("0x31")][fc("0x2e")](t.position[fc("0x134")])})}return 0!=o.length&&this[fc("0xf6")](t,o)}[fc("0x2b")](t){let e=!1;const n=this[fc("0x11f")][fc("0x31")][fc("0xbe")][fc("0xdc")][fc("0x7c")]()[fc("0x12e")]((t=>t.data[fc("0x129")]&&t[fc("0x3a")][fc("0x68")](fc("0xf3"))));for(const o of n){const{subType:n,id:r}=this._splitMarkerName(o[fc("0x3a")]),i=n[fc("0x7b")]("|")[0];for(const n of this[fc("0x173")]({skipNotAttached:!0}))n.id!=r&&fc("0x166")==n[fc("0xe3")]&&n[fc("0x69")]&&n.data.key==i&&n[fc("0x2c")]()[fc("0x143")](o.data[fc("0x129")])&&(this[fc("0x170")](n,o[fc("0x69")].newRange,t),e=!0)}return e}[fc("0x15d")](t){if(null!==this[fc("0x122")])return void t();const n=this[fc("0x11f")];this[fc("0x122")]=n[fc("0x31")][fc("0xbe")].version,t();const o=new Map;for(const t of n[fc("0x31")][fc("0xbe")][fc("0x33")][fc("0x130")](this[fc("0x122")]))if(["rename",fc("0x11"),fc("0xf4"),fc("0x83")][fc("0x100")](t[fc("0xe3")])){const e=t[fc("0xc0")],n=o[fc("0xd2")](e)||[];n[fc("0x76")](t),o[fc("0xd")](e,n)}this[fc("0x122")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x31")][fc("0x176")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if("rename"==t[fc("0xe3")]){const e=t;r=Cc(e[fc("0x4e")][fc("0x134")],n[fc("0x31")]),i=fc("0xc2"),s=e[fc("0xc3")],x=e[fc("0x8d")]}else{const e=t,o=this._isBlockAttribute(e[fc("0x125")]),a=this[fc("0x104")].has(e[fc("0x125")]);if(!o&&!a)continue;r=o?Cc(e[fc("0xf9")].start[fc("0x134")],n.model):e[fc("0xf9")],i=e[fc("0x125")],s=fc("0xf4")==t[fc("0xe3")]?void 0:e.newValue,x=e[fc("0x49")]}this[fc("0xab")](r,i,x,s,{groupId:o}),e[fc("0x76")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0xf6")](t,e)}))}}[fc("0xf6")](t,e){if(0==e[fc("0x42")])return!1;let n=!1;for(const o of e){const e=this[fc("0x6e")](o[fc("0xf9")],fc("0x166")).filter((t=>!t[fc("0x43")][fc("0x5f")]))[fc("0x1d")]((t=>t[fc("0xef")])),r=(0,i.hashObject)({newValue:o[fc("0xf2")]});e[fc("0x12e")]((t=>{const[e,n]=t.subType[fc("0x7b")]("|");return e==o[fc("0x125")]&&n!=r})).forEach((e=>{this[fc("0x170")](e,o.range,t),n=!0}))}return n}[fc("0x170")](t,e,n){const o=t[fc("0x2c")]()[fc("0xf1")](e);0!==o[fc("0x42")]?1!==o[fc("0x42")]?this[fc("0xbb")](t,e.start,e[fc("0x17c")]):this[fc("0x7d")](t,o[0]):n.removeMarker(t.getFirstMarker())}}class pc{constructor(t){this[fc("0xbf")]=t,this[fc("0x4a")]=t[fc("0x31")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[fc("0xf5")]()}[fc("0x131")](t,e,n,o,r,i){return new Jo(this[fc("0x4a")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0x56")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this[fc("0x9d")][fc("0xd")](r,o)}[fc("0x56")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x9d")][fc("0xd2")](o)||this[fc("0x162")][fc("0xd2")](t+":"+n)}[fc("0xf5")](){const t=()=>!1,e=t=>{t[fc("0x19")](((t,e)=>t[fc("0x1")][fc("0x16d")](e[fc("0x1")])?1:-1)),this[fc("0x4a")].change((e=>{for(const n of t){let t;t=n.end[fc("0x8")]&&n.end.parent==n[fc("0x1")].nodeAfter?e[fc("0x14a")](n[fc("0x1")][fc("0x134")],"on"):e.createSelection(n),this._model[fc("0x60")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x112")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0x4a")].createRange(t[fc("0x17c")])),t)))[fc("0x12e")]((t=>fc("0x109")!==t[fc("0x82")][fc("0x153")]));if(i.length<1)return;const x=Array.from(this._model[fc("0xbe")][fc("0x55")][fc("0x36")]())[fc("0x1d")]((t=>s.LiveRange[fc("0x117")](t)));n.setSelection(i);for(const t of this[fc("0xbf")].commands[fc("0x157")]())t[fc("0xd7")]();r[fc("0x76")]({forceDefaultExecution:!0}),this[fc("0xbf")][fc("0x17")](o,...r);const a=x.filter((t=>fc("0x109")!=t[fc("0x82")].rootName));a[fc("0x42")]>0&&n[fc("0x171")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[fc("0x42")]&&1==e[fc("0x42")]&&t[0][fc("0x17c")][fc("0x70")](e[0][fc("0x1")]),r=(t,e,n,o)=>Ac(t,e,n,o,this._model)?[t,e]:Ac(e,t,o,n,this[fc("0x4a")])?[e,t]:null;this._defaultCallbacks[fc("0xd")](fc("0x13e"),t),this[fc("0x162")][fc("0xd")](fc("0x15a"),e),this._defaultCallbacks[fc("0xd")](fc("0x92"),o),this[fc("0x162")].set("insertion:chain",r),this[fc("0x162")][fc("0xd")](fc("0x1c"),e),this[fc("0x162")].set(fc("0x152"),t),this[fc("0x162")][fc("0xd")](fc("0x45"),o),this[fc("0x162")].set(fc("0xba"),r),this[fc("0x162")][fc("0xd")](fc("0x47"),n),this[fc("0x162")][fc("0xd")]("formatInline:discard",t),this[fc("0x162")][fc("0xd")](fc("0x8c"),o),this[fc("0x162")][fc("0xd")](fc("0x12a"),t),this[fc("0x162")].set(fc("0x147"),n),this._defaultCallbacks[fc("0xd")](fc("0x180"),t),this[fc("0x162")][fc("0xd")](fc("0x16e"),o),this[fc("0x162")][fc("0xd")](fc("0x14f"),t),this[fc("0x162")].set(fc("0xde"),t),this._defaultCallbacks[fc("0xd")](fc("0x10c"),((t,e)=>{if(!e)return;const n=this[fc("0xbf")].plugins.get(hc);this[fc("0x4a")][fc("0x112")]((o=>{if(fc("0xc2")==e[fc("0x125")])for(const n of t){const t=n[fc("0x1")][fc("0x134")],r=e[fc("0x49")];o[fc("0x128")](t,r)}else if(n[fc("0x8f")](e[fc("0x125")]))for(const n of t)void 0!==e[fc("0x49")]?o[fc("0x66")](e.key,e.oldValue,n[fc("0x1")][fc("0x134")]):o.removeAttribute(e.key,n[fc("0x1")][fc("0x134")]);else for(const n of t)e[fc("0x49")]?o[fc("0x66")](e.key,e[fc("0x49")],n):o.removeAttribute(e.key,n)}))})),this[fc("0x162")].set(fc("0x3d"),o)}}function bc(t,e,n){for(const o of e[fc("0x10")][fc("0xdd")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x82")]==o)return!1;if(!n[fc("0x25")](o))return!1;if(t[fc("0x4d")](o)||t[fc("0xb")](o))return!0}return!1}function Ec(t){return t.end[fc("0x10")]==t.start[fc("0x134")]&&t[fc("0x17c")][fc("0x14c")]}function _c(t,e,n,o){const r=t=>!t[fc("0x14e")].is("$textProxy")&&!o[fc("0x4d")](t[fc("0x14e")]),i=t[fc("0x1")].getLastMatchingPosition(r),s=t[fc("0x17c")][fc("0x5")](r,{direction:fc("0x168")});return!(t[fc("0x1")].isEqual(i)&&t[fc("0x17c")][fc("0x70")](s)||(i[fc("0x16d")](s)?n[fc("0x41")](e,{range:n[fc("0x116")](i,s)}):n.removeMarker(e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x1")][fc("0x134")];return e&&e.is("element")}function Cc(t,e){const n=e[fc("0xf0")][fc("0x4d")](t)||e[fc("0xf0")][fc("0x163")](t);return e[fc("0x116")](e[fc("0x136")](t,fc("0x146")),n?e[fc("0x93")](t):e[fc("0x136")](t,fc("0x17c")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x17c")][fc("0x70")](o.start))return!0;if(t[fc("0xe3")]!=e.type)return!1;if(!n[fc("0x17c")].isTouching(o[fc("0x1")]))return!1;const i=r[fc("0x116")](n[fc("0x17c")],o[fc("0x1")])[fc("0xb8")]();for(const t of i)if([fc("0x145"),"elementEnd"][fc("0x100")](t[fc("0xe3")])&&r[fc("0xf0")][fc("0xb")](t[fc("0x14e")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x2")]||!e[fc("0x2")])&&Go(t.attributes,e[fc("0x9b")])}function Ic(t,e){const n=Sc(t[fc("0x9b")]),o=Sc(e);if(!t[fc("0x2")])return!1;for(const t of Object[fc("0x35")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x11b")]({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}const Rc=["remove","bind","commentThreadController","add","commands","acceptSuggestion","canEditAt","_pendingAction","view","model","destroy","_setPendingAction","canDiscard","listenTo","getRanges","get","execute","isEnabled","_editor","_discardCommand","discardSuggestion","unbind","plugins","locale","_acceptCommand","stopListening","canAccept","_removePendingAction","isDirty","PendingActions"];var vc,Nc;vc=Rc,Nc=150,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[Lc("0x8")]=n,this[Lc("0x2")]=o,this[Lc("0x12")]=t,this._acceptCommand=t[Lc("0x4")].get("acceptSuggestion"),this._discardCommand=t[Lc("0x4")][Lc("0xf")](Lc("0x14")),this.view[Lc("0x1")](Lc("0x11")).to(this[Lc("0x18")],this[Lc("0x13")],((t,e)=>t||e)),this.view[Lc("0x1")](Lc("0x1a")).to(this[Lc("0x18")],Lc("0x11"),(t=>t&&this[Lc("0x12")].model[Lc("0x6")](e.getRanges()))),this[Lc("0x8")][Lc("0x1")](Lc("0xc")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Lc("0x9")][Lc("0x6")](e[Lc("0xe")]()))),this._pendingAction=null,n.isDirty&&this[Lc("0xb")](),this[Lc("0xd")](n,"acceptSuggestion",(()=>this[Lc("0x5")]())),this.listenTo(n,Lc("0x14"),(()=>this[Lc("0x14")]())),this[Lc("0xd")](n,"change:isDirty",(()=>{n[Lc("0x1c")]?this[Lc("0xb")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[Lc("0x10")](this.model.id)}[Lc("0x14")](){this._discardCommand[Lc("0x10")](this[Lc("0x9")].id)}[Lc("0xa")](){this[Lc("0x8")][Lc("0x15")](Lc("0x11")),this[Lc("0x8")][Lc("0x15")](Lc("0x1a")),this[Lc("0x8")].unbind(Lc("0xc")),this[Lc("0x19")](),this[Lc("0x2")][Lc("0xa")](),this._pendingAction&&this[Lc("0x1b")]()}_setPendingAction(){const t=Qo(this[Lc("0x12")][Lc("0x17")],"PENDING_ACTION_SUGGESTION");this[Lc("0x7")]=this._editor[Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x3")](t)}[Lc("0x1b")](){null!==this._pendingAction&&this[Lc("0x12")][Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x0")](this[Lc("0x7")]),this[Lc("0x7")]=null}}const wc=["authoredAt","value","disabledSubmit","_createCommentThreadInputView","commentsListView","bind","canAccept","assign","addComment","setData","_createCommentViews","_config","fire","focus","delegate","set","_localUser","locale","_model","commentThreadInputView","isReadOnly","updateComment","editor","removeComment","destroy","isEnabled","CommentView","commentInputView","commentThread","disableComments","submit","length","isActive","isDirty","descriptionParts"];var Oc,Fc;Oc=wc,Fc=258,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this[Dc("0x1a")]=null,this.commentThreadInputView=null,this[Dc("0x2")](Dc("0x13"),!1),this.set("authoredAt",e.authoredAt),this[Dc("0x1b")](Dc("0x16")).to(e),this.set(Dc("0x15"),[]),this[Dc("0x2")](Dc("0x14"),!1),this.set(Dc("0xc"),!1),this[Dc("0x2")](Dc("0x1c"),!1),this.set("canDiscard",!1),this[Dc("0x5")]=e,this._localUser=n,this[Dc("0x21")]=o,o[Dc("0x10")]?this.set("length",1):this._createCommentViews()}[Dc("0x0")](){this.element[Dc("0x0")]()}[Dc("0xb")](){this.commentsListView&&this[Dc("0x1a")][Dc("0xb")](),this.commentThreadInputView&&this.commentThreadInputView[Dc("0xb")](),super[Dc("0xb")]()}[Dc("0x20")](){const{CommentsListView:t}=this[Dc("0x21")];this[Dc("0x1a")]=new t(this[Dc("0x4")],this._model[Dc("0xf")],Object[Dc("0x1d")]({CommentView:this._config[Dc("0xd")]},this[Dc("0x21")])),this[Dc("0x1a")][Dc("0x1")](Dc("0xa")).to(this),this.commentsListView[Dc("0x1")](Dc("0x8")).to(this),this[Dc("0x1a")][Dc("0x1b")]("isActive").to(this),this[Dc("0x2")]("length",this[Dc("0x1a")][Dc("0x12")]+1),this.bind("length").to(this[Dc("0x1a")],"length",(t=>t+1)),this[Dc("0x6")]=this[Dc("0x19")](),this.on(Dc("0xa"),(()=>this[Dc("0x0")]())),this[Dc("0x1b")](Dc("0x14")).to(this[Dc("0x1a")],"hasDirtyComment",this.commentThreadInputView[Dc("0xe")],"value",((t,e)=>t||!!e))}[Dc("0x19")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Dc("0x3")],this[Dc("0x21")].editorConfig),n=e[Dc("0xe")];return e[Dc("0x1b")]("showInput").to(this,"isActive",this._model[Dc("0xf")],Dc("0x7"),n,Dc("0x17"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x11"),((t,e)=>{this[Dc("0x22")](Dc("0x1e"),e),n[Dc("0x9")][Dc("0x1f")]("")})),n.on("cancel",(()=>this[Dc("0x0")]())),n.bind(Dc("0x18")).to(this[Dc("0x5")].commentThread,Dc("0x7")),e}}const Pc=["ck-annotation__info-name","join","ck-annotation__info-time","authoredAt","source","_config",'<span class="ck-suggestion-color" style="background-color: ',"check","ck-suggestion__info","span","commentThreadInputView","ck-annotation__user","attributes","bind","<p>","fire","ck-suggestion--disabled-comments",'" title="',"EXTERNAL_IMPORT_WORD_SUGGESTION","name","canDiscard","delegate","discardButton","locale","EXTERNAL_IMPORT_WORD_AVATAR","Discard suggestion","ck-comment__external","editorDestroyed","getUserViewNotificationText","ck-suggestion__info-name","render","value","ck-suggestion__main","innerText","descriptionParts","disableComments","creator","extendTemplate","type","isEnabled","createElement","set","time","split","push",'"></span>',"commentsListView","acceptSuggestion","importWord","div","userView","discardSuggestion","color","description","</span>","ck-suggestion__user","bindTemplate","querySelector","ck-comment__info-time","EXTERNAL_AVATAR","isExternal","Accept suggestion","children","editorReady","ck-annotation__actions","execute","_descriptionElement","ck-annotation__content-wrapper","ck-annotation","getTemplate","ck-suggestion-","acceptButton","author","map","commentThread","change:description","EXTERNAL_SUGGESTION","content","innerHTML","element","_model","_createButton","title"];var Uc,jc;Uc=Pc,jc=302,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Gc("0x47")](Gc("0x44"),""),this[Gc("0x2b")](Gc("0x44")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Gc("0x2b")](Gc("0x0")).to(this,Gc("0x40"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Gc("0x2c")+Hc(e[Gc("0x18")],e[Gc("0x52")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0xd")]=null,this[Gc("0x12")]=this[Gc("0x1c")](Qo(e,Gc("0x8")),t.icons[Gc("0x25")],"ck-suggestion--accept",Gc("0x4d"),"sw"),this.acceptButton[Gc("0x2b")]("isEnabled").to(this,"canAccept"),this[Gc("0x34")]=this[Gc("0x1c")](Qo(e,Gc("0x37")),t.icons.cancel,"ck-suggestion--discard",Gc("0x51"),"sw"),this.discardButton.bind(Gc("0x45")).to(this,Gc("0x32")),this.userView=new i.UserView(e,this[Gc("0x1b")].author,this[Gc("0x3a")]()),this[Gc("0x50")][Gc("0x43")]({attributes:{class:[Gc("0x2"),Gc("0x29")]}}),this.setTemplate(this[Gc("0x10")]())}[Gc("0x10")](){const t=this[Gc("0x3")],e=[{tag:Gc("0x4f"),attributes:{class:[Gc("0x26"),"ck-annotation__info"]},children:[{tag:Gc("0x27"),children:[{text:this[Gc("0x50")][Gc("0x31")]}],attributes:{class:[Gc("0x3b"),Gc("0x1e")]}},{tag:Gc("0x48"),attributes:{datetime:t.to(Gc("0x21")),class:[Gc("0x5"),Gc("0x20")]},children:[{text:t.to(Gc("0x21"),(t=>this[Gc("0x23")].formatDateTime(t)))}]}]},{tag:Gc("0x4f"),attributes:{class:["ck-suggestion__actions",Gc("0xb")]},children:[this.acceptButton,this.discardButton]},{tag:Gc("0x4f"),attributes:{class:[Gc("0xe")]}}];this._model[Gc("0x7")]&&e[Gc("0x4a")]({tag:Gc("0x4f"),attributes:{class:[Gc("0x38")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Gc("0x4f"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive","ck-suggestion-wrapper--active"),t.to("type",(t=>Gc("0x11")+t)),this[Gc("0x23")][Gc("0x41")]&&Gc("0x2e")],"data-suggestion-id":this[Gc("0x1b")].id,"data-thread-id":this[Gc("0x1b")][Gc("0x15")].id,"data-author-id":this[Gc("0x1b")][Gc("0x13")].id,tabindex:-1},children:[{tag:Gc("0x4f"),attributes:{class:["ck-suggestion",Gc("0xf")]},children:[this[Gc("0x50")],{tag:Gc("0x4f"),attributes:{class:[Gc("0x3e"),"ck-annotation__main"]},children:e}]}]};return this[Gc("0x4c")]&&this.commentThreadInputView&&(n[Gc("0x9")].push(this[Gc("0x4c")],this.commentThreadInputView),this.commentsListView[Gc("0x33")](Gc("0xa")).to(this),this.commentsListView[Gc("0x33")](Gc("0x39")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0xa")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0x39")).to(this)),n}[Gc("0x3c")](){super[Gc("0x3c")](),this[Gc("0xd")]=this[Gc("0x1a")][Gc("0x4")](".ck-annotation__content-wrapper"),this._descriptionElement[Gc("0x19")]=this[Gc("0x0")],this.on(Gc("0x16"),((t,e,n)=>{this[Gc("0xd")][Gc("0x19")]=n}))}[Gc("0x1c")](t,e,n,o,i){const s=new r.ButtonView(this[Gc("0x35")]);return s[Gc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0x43")]({attributes:{class:n}}),s.on(Gc("0xc"),(()=>{this[Gc("0x2d")](o,this[Gc("0x1b")].id)})),s}getExternalSuggestionNote(){return Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Qo(this[Gc("0x35")],Gc("0x30")):Qo(this[Gc("0x35")],Gc("0x17"))}[Gc("0x3a")](){return this[Gc("0x1b")][Gc("0x7")]?Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Qo(this[Gc("0x35")],Gc("0x36"),this._model[Gc("0x42")].name):Qo(this[Gc("0x35")],Gc("0x6"),this._model[Gc("0x42")][Gc("0x31")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x49")]("*")[Gc("0x14")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+zc(t)+Gc("0x1"):zc(t)))[Gc("0x1f")](""),e&&(n+=Gc("0x24")+e[Gc("0x3d")]+Gc("0x2f")+e[Gc("0x1d")]+Gc("0x4b")),n}function zc(t){const e=document[Gc("0x46")](Gc("0x27"));return e[Gc("0x3f")]=t,e.innerHTML}const Wc=["view","delete","add","comments.maxCommentsWhenCollapsed","getMarkers","refreshSelectedViews","innerView","commands","getDescriptions","acceptButton","actionView","separator","Discard all suggestions","getByInnerView","arrowView","values","TrackChangesEditing","_suggestionToController","comments.editorConfig","getMarkerNames","discardButton","isEnabled","discardAllSuggestions","get","EditorAnnotations","config","push","toMany","Annotations","some","TrackChangesUI","CommentsRepository","mainView","lowest","execute","createAnnotationView","reduce","acceptSelectedSuggestions","pluginName","clear","change:previous","isDirty","button","type","from","value","_descriptionFactory","Accept all selected suggestions","init","addComment","suggestionChanged","comments.maxCommentCharsWhenCollapsed","isOn","keys","getJoined","trackChanges","SuggestionThreadView","plugins","getFirstRange","getSuggestion","filter","addSourceCollector","commandName","buttonView","has","_bindAnnotationToEditors","_handleControllerBuffer","unbind","_destroyController","comments.maxThreadTotalWeight","model","requires","listenTo","bind","_disableComments","suggestionLoaded","isMultiRange","length","activeAnnotations","componentFactory","acceptAllSuggestions","registerAnnotation","Accept all suggestions","_handleSuggestionControllerDelayed","_initializeController","_updateController","locale","commentThread","getAllAdjacentSuggestions","define","_annotationViews","suggestionUnloaded","focus","editor","_viewToController","suggestion-","_unbindEditors","createAnnotation","editing","discardSelectedSuggestions","map","isInContent","trackChanges.SuggestionThreadView","descriptionParts","set","size","CommentsUI","destroy","_createUIButton","head","createCommentThreadController","hasSuggestion","previous"];var Kc,qc;Kc=Wc,qc=206,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x5b")](){return[hc,i.Users,Xc("0x33"),Xc("0x30"),Xc("0x2c")]}static get[Xc("0x3a")](){return Xc("0x32")}constructor(t){super(t),this[Xc("0x25")]=new Map,this[Xc("0x1")]=new Map,this[Xc("0x6e")]=new Map,this[Xc("0x56")]=new Map;const e=this[Xc("0x0")].config;e.define(Xc("0x9"),Vc),e[Xc("0x6d")]("trackChanges.disableComments",!1),this._disableComments=e[Xc("0x2b")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Xc("0xc")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x56")]){const n=this[Xc("0x25")][Xc("0x54")](t);n||e?n&&e&&this[Xc("0x58")](t):this[Xc("0x68")](t)}this.editor[Xc("0x4d")].get(Xc("0x2c"))[Xc("0x19")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Xc("0x3b")]()}),10),this[Xc("0x56")][Xc("0xb")](t,e)}[Xc("0x44")](){const t=this[Xc("0x0")],e=t[Xc("0x4d")].get(Xc("0x24")),n=t[Xc("0x4d")][Xc("0x2b")]("Annotations"),o=t[Xc("0x4d")][Xc("0x2b")]("EditorAnnotations"),r=t[Xc("0x4d")][Xc("0x2b")](Xc("0x33"));t.ui[Xc("0x63")][Xc("0x16")](Xc("0x4b"),(t=>this._createUIButton(t))),o[Xc("0x51")]((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x25")])){const o=e[Xc("0x6c")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t[Xc("0x60")]){r[Xc("0x2e")](...t.getRanges());continue}const e=t[Xc("0x4e")]();if(r[Xc("0x61")]>0){const t=r[0][Xc("0x4a")](e);if(t){r[0]=t;continue}}r.push(e)}t[Xc("0x2e")]([n[Xc("0x14")],r])}return t})),this[Xc("0x5c")](e,Xc("0x5f"),((t,e)=>{this[Xc("0x5c")](e,Xc("0x3c"),((t,n,o,r)=>{e[Xc("0x8")]&&(null==o?(this._updateController(r.head),this[Xc("0x67")](e,!1)):(this[Xc("0x69")](o[Xc("0x10")]),null==r&&this[Xc("0x67")](e,!0)))})),null!==e[Xc("0x13")]?this[Xc("0x69")](e[Xc("0x10")]):this[Xc("0x67")](e,!1)})),this.listenTo(e,Xc("0x6f"),((t,e,n)=>{this.stopListening(e,Xc("0x3c")),this._handleControllerBuffer[Xc("0x15")](e),this[Xc("0x25")][Xc("0x54")](e)&&this[Xc("0x58")](e),n&&this[Xc("0x69")](n.head)})),this[Xc("0x5c")](e,Xc("0x46"),((t,e)=>{this[Xc("0x69")](e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this._refreshActiveMarkers()})),this[Xc("0x5c")](r,Xc("0x45"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x12")](n))return;const r=e[Xc("0x4f")](n);this._suggestionToController.get(r)[Xc("0x14")].focus()}),{priority:Xc("0x35")})}_refreshActiveMarkers(){const t=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=Array[Xc("0x40")](t[Xc("0x62")],(t=>t[Xc("0x1a")]))[Xc("0x50")]((t=>this[Xc("0x1")].has(t))),o=[];for(const t of n){const e=this._viewToController[Xc("0x2b")](t)[Xc("0x5a")][Xc("0x6c")]();o[Xc("0x2e")](...e[Xc("0x38")](((t,e)=>[...t,...e[Xc("0x27")]()]),[]))}e.activeMarkers=o}[Xc("0xf")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Xc("0x0")].commands[Xc("0x2b")](Xc("0x4b")),i=Qo(t,"Track changes");n[Xc("0x53")].set({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x53")][Xc("0x5d")](Xc("0x48")).to(o,"value"),n.buttonView.on("execute",(()=>{o.execute(),this[Xc("0x0")][Xc("0x5")][Xc("0x14")][Xc("0x70")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Xc("0x4b")}},{type:Xc("0x1f")},{type:Xc("0x3e"),model:{withText:!0,label:Qo(t,Xc("0x66")),commandName:Xc("0x64")}},{type:Xc("0x3e"),model:{withText:!0,label:Qo(t,Xc("0x43")),commandName:Xc("0x39")}},{type:Xc("0x3e"),model:{withText:!0,label:Qo(t,Xc("0x20")),commandName:Xc("0x2a")}},{type:"button",model:{withText:!0,label:Qo(t,"Discard all selected suggestions"),commandName:Xc("0x6")}}];for(const t of x){let e={type:"separator"};if(t[Xc("0x5a")]){const n=new r.Model(t.model),o=this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](n[Xc("0x52")]);n[Xc("0x5d")](Xc("0x48"),Xc("0x29")).to(o,Xc("0x41"),Xc("0x29")),e={type:t.type,model:n}}s[Xc("0x16")](e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model))[Xc("0x7")]((t=>this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](t[Xc("0x5a")][Xc("0x52")]))),c=n.buttonView;return c[Xc("0x1e")][Xc("0x57")](Xc("0x29")),c.arrowView[Xc("0x57")](Xc("0x29")),c[Xc("0x1e")][Xc("0x5d")](Xc("0x29")).to(o,"isEnabled"),c[Xc("0x22")][Xc("0x5d")]("isEnabled")[Xc("0x2f")](a,"isEnabled",((...t)=>t[Xc("0x31")]((t=>t)))),n.on(Xc("0x36"),(t=>{this[Xc("0x0")].execute(t.source[Xc("0x52")]),this.editor[Xc("0x5")][Xc("0x14")][Xc("0x70")]()})),n}_initializeController(t){const e=this.editor,n=e[Xc("0x2d")],o=e[Xc("0x4d")].get("Annotations"),r=e[Xc("0x4d")][Xc("0x2b")](Xc("0x33")),s=e.plugins[Xc("0x2b")](Xc("0x2c")),x=e[Xc("0x4d")][Xc("0x2b")](i.Users).me,a=n[Xc("0x2b")](Xc("0x4b"))[Xc("0x4c")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x4d")][Xc("0x2b")](Xc("0xd"));let u,d;this[Xc("0x6e")].has(t.id)?(d=this._annotationViews.get(t.id),u=d[Xc("0x34")]):(u=new a(e[Xc("0x6a")],t,x,{disableComments:this[Xc("0x5e")],editorConfig:n[Xc("0x2b")](Xc("0x26")),maxCommentsWhenCollapsed:n.get(Xc("0x17")),maxThreadTotalWeight:n.get(Xc("0x59")),maxCommentCharsWhenCollapsed:n.get(Xc("0x47")),formatDateTime:(0,i.getDateTimeFormatter)(n.get(Xc("0x6a"))),CommentView:n[Xc("0x2b")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x1d")].on(Xc("0x36"),(()=>{e.editing[Xc("0x14")].focus()})),u[Xc("0x28")].on(Xc("0x36"),(()=>{e[Xc("0x5")].view[Xc("0x70")]()})),d=o[Xc("0x37")](this[Xc("0x0")][Xc("0x6a")],u),d[Xc("0x5d")](Xc("0x3d")).to(u,Xc("0x3d")),d[Xc("0x5d")]("length").to(u),d[Xc("0x5d")](Xc("0x3f")).to(u,Xc("0x3f"),(t=>Xc("0x2")+t)),this[Xc("0x6e")][Xc("0xb")](t.id,d));const g=r[Xc("0x11")](t[Xc("0x6b")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x50")]((t=>t[Xc("0x8")]));u.descriptionParts=e[Xc("0x4d")][Xc("0x2b")](Xc("0x24"))[Xc("0x42")][Xc("0x1c")](m),this._suggestionToController[Xc("0xb")](t,f),this[Xc("0x1")][Xc("0xb")](u,f);const h=o[Xc("0x4")]({view:d,target:()=>{const n=[],o=t[Xc("0x6c")]()[Xc("0x50")]((t=>t[Xc("0x8")]));for(const t of o)n[Xc("0x2e")](...t[Xc("0x18")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x5")],n)},type:()=>Xc("0x2")+f[Xc("0x14")].type});r[Xc("0x55")](u,h),o[Xc("0x16")](h),s[Xc("0x65")](h)}_destroyController(t){const e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x33")),n=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),o=this[Xc("0x25")].get(t),r=o.view,i=n[Xc("0x21")](r);e[Xc("0x3")](r),i&&n.remove(i),this[Xc("0x25")][Xc("0x15")](t),this[Xc("0x1")][Xc("0x15")](r),o[Xc("0xe")]()}[Xc("0x69")](t){if(!t.isInContent||!this._suggestionToController.has(t))return;const e=this.editor[Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=this[Xc("0x25")][Xc("0x2b")](t),o=t[Xc("0x6c")]();n[Xc("0x14")][Xc("0xa")]=e[Xc("0x42")].getDescriptions(o)}[Xc("0xe")](){for(const t of this[Xc("0x25")][Xc("0x49")]())this._destroyController(t);for(const t of this[Xc("0x6e")][Xc("0x23")]())t.mainView[Xc("0xe")]();super[Xc("0xe")]()}}var Zc,Yc,Jc=["TrackChanges","editor","adapter","getSuggestion","addSuggestionData","plugins","addSuggestion","requires","get","Comments","getSuggestions","pluginName"];Zc=Jc,Yc=442,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x9")](){return[hc,$c,Qc("0xb")]}static get[Qc("0x1")](){return Qc("0x2")}set[Qc("0x4")](t){this.editor[Qc("0x7")].get(hc)[Qc("0x4")]=t}get[Qc("0x4")](){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).adapter}[Qc("0x8")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x0")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).getSuggestion(t)}}const el=["addUser","editor","trackChangesData","track-changes-data-invalid-editor-creator","TrackChangesData","TrackChangesEditing","init","appendChild","function","define","Pagination","model","document","name","trackChangesData.editorCreator","getRootsAttributes","TrackChangesDataGetter","_adapter","createElement","discardAllSuggestions","getFullData","plugins","pluginName","result","getRootNames","map","constructor","config","requires","rootsAttributes","getDataWithAcceptedSuggestions","CommentsRepository","getUser","editorCreator","create","useAnonymousUser","reduce","addSuggestionData","push","getSuggestions","data","set","get","users","end","div"];var nl,ol;nl=el,ol=456,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]},il=[rl("0xe")];class sl extends t.Plugin{static get[rl("0x20")](){return[hc]}static get[rl("0x1a")](){return rl("0x8")}[rl("0xa")](){const t=this.editor;if(t.config[rl("0xd")](rl("0x12"),(e=>{const n=t[rl("0xf")][rl("0x10")][rl("0x1c")]().reduce(((t,e)=>(t[e]="",t)),{});return t[rl("0x1e")][rl("0x26")](n,e)})),rl("0xc")!=typeof t[rl("0x1f")][rl("0x0")](rl("0x6"))[rl("0x25")])throw new e.CKEditorError(rl("0x7"))}[rl("0x22")](t){return cl(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get[rl("0x1a")](){return rl("0x14")}constructor(t){super(t),this[rl("0x1b")]=rl("0x2")}[rl("0xa")](){this[rl("0x5")][rl("0x19")].get(rl("0x23"))[rl("0x15")]={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[rl("0x5")].plugins[rl("0x0")](rl("0x9"))[rl("0x15")]=null}}function al(t){return void 0!==t[rl("0x13")]}async function cl(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,il);o[rl("0x19")][rl("0x2a")](hc,xl),o[rl("0x21")]=al(t)?t.getRootsAttributes():void 0;const r=document.createDocumentFragment(),s=t.config[rl("0x0")](rl("0x6"))[rl("0x25")],x=await s(o,(()=>function(t){const e=document[rl("0x16")](rl("0x3"));return t[rl("0xb")](e),e}(r)));!function(t,e){const n=t[rl("0xf")][rl("0x10")][rl("0x1c")]()[rl("0x28")](((e,n)=>(e[n]=t.data[rl("0x0")]({rootName:n}),e)),{}),o=t.plugins[rl("0x0")]("Users")[rl("0x1")][rl("0x1d")]((t=>({id:t.id,name:t[rl("0x11")]}))),r=t.plugins[rl("0x0")](rl("0x9"))[rl("0x2b")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[rl("0x0")]("Users"),s=e.plugins[rl("0x0")]("TrackChangesEditing");for(const t of o)i[rl("0x24")](t.id)||i[rl("0x4")](t);i.me||i[rl("0x27")]();for(const t of r)s[rl("0x29")](t);e[rl("0x2c")][rl("0x2d")](n)}(t,x),x.execute(e?"acceptAllSuggestions":rl("0x17"));const a=al(x)?x[rl("0x18")](n):x[rl("0x2c")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),o=n(273),r=n(417),s=n(492),x=n(995);const a=["editor","value","refresh","has","affectsData","execute","TrackChangesCommand","_enabledCommands","clearForceDisabled","_isEnabledBasedOnSelection","forceDisabled","commands","_disableUnsupportedCommands","_enableCommands"];var c,l;c=a,l=120,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x7")]=!1,this[u("0x8")](),this[u("0x1")]=!1}refresh(){this.isEnabled=!0}[u("0xb")](){this[u("0x7")]=!this[u("0x7")],this[u("0x7")]?this[u("0x4")]():this[u("0x5")]()}[u("0x4")](){for(const t of this[u("0x6")][u("0x3")][u("0x3")]())t[u("0xa")]&&!this[u("0xd")][u("0x9")](t)&&t[u("0x2")]("TrackChangesCommand")}[u("0x5")](){for(const t of this[u("0x6")][u("0x3")].commands())t.affectsData&&!this[u("0xd")][u("0x9")](t)&&t[u("0x0")](u("0xc"))}}const g=["plugins","_suggestions","refresh","TrackChangesEditing","get","canEditAt","acceptSuggestion","isEnabled","model","editor","execute"];var f,m;f=g,m=235,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x8")]=e,this[h("0x9")](),this._isEnabledBasedOnSelection=!1}[h("0x9")](){this[h("0x3")]=!0}[h("0x6")](t){const n=this[h("0x8")][h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const i=n.getRanges();this.editor[h("0x4")][h("0x1")](i)&&this[h("0x5")][h("0x7")][h("0x0")](h("0xa"))[h("0x2")](n)}}const b=["refresh","get","_isEnabledBasedOnSelection","execute","editor","track-changes-discard-suggestion-not-found","TrackChangesEditing","canEditAt","plugins","_suggestions","discardSuggestion"];var E,_;E=b,_=436,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[T("0x4")](),this[T("0x6")]=!1}[T("0x4")](){this.isEnabled=!0}[T("0x7")](t){const n=this[T("0x2")][T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const i=n.getRanges();this[T("0x8")].model[T("0x0")](i)&&this[T("0x8")][T("0x1")][T("0x5")](T("0xa"))[T("0x3")](n)}}const C=["isMultiRange","start","type","length","value","map","push","createPositionAt","isArray","join","deletion","next","schema","createPositionBefore","add","end","change","getRanges","color","splice","createPositionAfter","execute","isCollapsed","isObject","replace","from","isIntersecting"];var A,k;A=C,k=352,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("0x1")]&&I("0x9")!=e[I("0x1")]?-1:I("0x9")!=t[I("0x1")]&&I("0x9")==e.type?1:0))}function S(t,e){let n,i=0;const o=[],r=e[I("0xb")];for(;i<t[I("0x2")];){const s=t[i],x=t[i+1];n||(n=e[I("0xc")](s)),v(e,s,x)||(o[I("0x5")](e.createRange(n,r[I("0x16")](s)?e.createPositionAfter(s):e[I("0x6")](s,I("0xe")))),n=null),i++}return o}function v(t,e,n){if(!n)return!1;const i=t[I("0x13")](e),o=t[I("0xc")](n);return i.isTouching(o)}function N(t,e,n){for(;n[I("0x2")];){const i=n[I("0x12")](0,100);t[I("0xf")]((()=>{for(const t of i)t.isInContent&&e[I("0x14")](t.id)}))}}const L=["_command","execute","some","model","from","editor","_isEnabledBasedOnSelection","isEnabled","canEditAt","_suggestions","values","refresh"];var M,w;M=L,w=141,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._command=e,this[O("0x0")]=n,this[O("0x2")](),this[O("0x9")]=!1}refresh(){const t=Array[O("0x7")](this._suggestions[O("0x1")]())[O("0x5")]((t=>t.isInContent));this[O("0xa")]=this._command[O("0xa")]&&t}[O("0x4")](){const t=R(Array[O("0x7")](this[O("0x0")][O("0x1")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x8")][O("0x6")][O("0xb")](t))return}N(this[O("0x8")].model,this[O("0x3")],t)}}const D=["from","document","refresh","_selectedSuggestions","editor","_command","size","selection","isEnabled","model","canEditAt","_isEnabledBasedOnSelection","execute","values","_suggestions"];var B,P;B=D,P=401,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._command=e,this[U("0x3")]=n,this[U("0x7")]=new Set,this[U("0x6")](),this[U("0x0")]=!1}refresh(){const t=this[U("0x8")].model[U("0x5")][U("0xb")],e=Array[U("0x4")](this._suggestions[U("0x2")]());this[U("0x7")]=function(t,e){const n=Array[I("0x18")](t.getRanges()),i=new Set;for(const o of e)if(o.isInContent)for(const e of n)for(const n of o[I("0x10")]())(e[I("0x19")](n)||t[I("0x15")]&&!o[I("0x1a")]&&o[I("0xa")]&&n[I("0xe")].isTouching(e[I("0x0")]))&&i[I("0xd")](o);return i}(t,e),this[U("0xc")]=this._command[U("0xc")]&&!!this[U("0x7")][U("0xa")]}[U("0x1")](){const t=R(Array[U("0x4")](this[U("0x7")]));for(const e of t){const t=e.getRanges();if(!this[U("0x8")][U("0xd")][U("0xe")](t))return}N(this[U("0x8")][U("0xd")],this[U("0x9")],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__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=et||nt||Function("return this")();const ot=it.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var o=xt.call(t);return i&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=it["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var 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))&&(mt(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(it,"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 i=t[e];this.set(i[0],i[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),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[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 Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var i=n.__data__;if(!Lt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!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 ie=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,i){var o=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?it.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),i=!n&&de(t),o=!n&&!i&&be(t),r=!n&&!i&&!o&&Ne(t),s=n||i||o||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var 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)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(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 i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(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?it.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var s=t[n];e(s,n,t)&&(r[o++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,i=e.length,o=t.length;++n<i;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(it,"DataView");const fn=Nt(it,"Promise");const mn=Nt(it,"Set");const hn=Nt(it,"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(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){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=it.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=ot?ot.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 i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+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 i;case"[object Number]":case"[object String]":return new i(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]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const ti=function t(e,n,i,o,r,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=r?i(e,o,r,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(o){x.add(t(o,n,i,o,e,s))})):Kn(e)&&e.forEach((function(o,r){x.set(r,t(o,n,i,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(o,r){m&&(o=e[r=o]),oe(x,r,t(o,n,i,r,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oi=/^\w*$/;const ri=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(oi.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=e?e.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=t.apply(this,i);return n.cache=r.set(o,s)||r,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(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(ai,(function(t,n,i,o){e.push(i?o.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o};var di=ot?ot.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mi=function(t){return null==t?"":fi(t)};const hi=function(t,e){return ge(t)?t:ri(t,e)?[t]:li(mi(t))};const pi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const bi=function(t,e,n,i){if(!ft(t))return t;for(var o=-1,r=(e=hi(e,t)).length,s=r-1,x=t;null!=x&&++o<r;){var a=pi(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:bi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Ii=function(t,e,n,i,o,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ci:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(i)var h=s?i(m,f,u,e,t,r):i(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||o(f,t,n,i,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,i,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const Si=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vi=ot?ot.prototype:void 0,Ni=vi?vi.valueOf:void 0;const Li=function(t,e,n,i,o,r,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||!r(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=Ri;case"[object Set]":var a=1&i;if(x||(x=Si),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Ii(x(t),x(e),i,o,r,s);return s.delete(t),l;case"[object Symbol]":if(Ni)return Ni.call(t)==Ni.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,o,r){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:Mi.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(i)var p=s?i(h,m,l,e,t,r):i(m,h,l,t,e,r);if(!(void 0===p?m===h||o(m,h,n,i,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,o,r){var s=ge(t),x=ge(e),a=s?Fi:Sn(t),c=x?Fi:Sn(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?Ii(t,e,n,i,o,r):Li(t,e,a,n,i,o,r);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),o(m,h,n,i,r)}}return!!d&&(r||(r=new Qt),wi(t,e,n,i,o,r))};const Ui=function t(e,n,i,o,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,o,t,r))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=hi(e,t)).length;null!=t&&n<i;)t=t[pi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(o);++i<o;)r[i]=t[i+e];return r};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=hi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["onAccept","onDiscard","substr","creator","data","nodeAfter","getRange","getMarkers","discard","getAllAdjacentSuggestions","size","from","getMarkerNames","add","attributes","previous","isIntersecting","getContainedElement","start","addMarkerName","hasComments","getFirstMarker","split","_onDiscard","decorate","createdAt","filter","suggestion:","set","end","onAttributesChange","commentThread","_markerNames","clear","nodeBefore","toJSON","push","change","removeMarkers","_model","delete","type","subType","length","removeMarker","getRanges","isExternal","isInContent","author","authoredAt","next","_onAccept","map","accept","@external","head","getItems","_onAttributesChange","markers"];var Xi,$i;Xi=qi,$i=244,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Zi("0x21")]=e[Zi("0x21")],this[Zi("0x22")]=e[Zi("0x22")]||null,this.author=e[Zi("0x28")],this[Zi("0x36")]=e[Zi("0x36")]||e.author,this[Zi("0x26")]=Boolean(e.attributes&&e[Zi("0x6")][Zi("0x2e")]),this[Zi("0x37")]=null,this[Zi("0x1f")]=t,this[Zi("0x2b")]=e[Zi("0x33")],this[Zi("0xf")]=e[Zi("0x34")],this[Zi("0x31")]=e[Zi("0x16")],this[Zi("0x18")]=new Set,this[Zi("0x11")]=null,this[Zi("0x14")](Zi("0x29"),null),this[Zi("0x14")](Zi("0x6"),e[Zi("0x6")]||{}),this[Zi("0x14")](Zi("0x7"),null),this[Zi("0x14")](Zi("0x2a"),null),this[Zi("0x14")]("commentThread",null),this[Zi("0x14")]("_saved",!1),this[Zi("0x10")](Zi("0x2d")),this[Zi("0x10")]("discard")}get[Zi("0x2f")](){let t=this;for(;t.previous;)t=t[Zi("0x7")];return t}get[Zi("0xc")](){return!!this[Zi("0x17")]&&this[Zi("0x17")][Zi("0x23")]>0}get isMultiRange(){return 0!=this[Zi("0x18")][Zi("0x2")]&&6==Array.from(this[Zi("0x18")])[0][Zi("0xe")](":")[Zi("0x23")]}get[Zi("0x27")](){return null!==this[Zi("0xd")]()}addMarkerName(t){this[Zi("0x18")][Zi("0x5")](t)}[Zi("0x4")](){return Array[Zi("0x3")](this[Zi("0x18")])}[Zi("0x3a")](){return this[Zi("0x4")]()[Zi("0x2c")]((t=>this._model[Zi("0x32")].get(t)))[Zi("0x12")]((t=>t))}getFirstMarker(){return this[Zi("0x3a")]()[0]||null}[Zi("0x1e")](){this[Zi("0x1f")].change((t=>{for(const e of this[Zi("0x3a")]())t[Zi("0x24")](e)})),this[Zi("0x18")][Zi("0x19")]()}[Zi("0x24")](t){this[Zi("0x1f")].change((e=>{e[Zi("0x24")](t)})),this[Zi("0x18")][Zi("0x20")](t)}addRange(t){const e=Zi("0x13")+this[Zi("0x21")]+":"+this.subType+":"+this.id+":"+this[Zi("0x36")].id+":"+Yi.getMultiRangeId();this[Zi("0xb")](e),this[Zi("0x1f")][Zi("0x1d")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Zi("0x25")]())if(e[Zi("0x8")](t))return!0;return!1}[Zi("0x25")](){return this.getMarkers()[Zi("0x2c")]((t=>t[Zi("0x39")]()))}getItems(){return this[Zi("0x25")]().reduce(((t,e)=>[...t,...e[Zi("0x30")]()]),[])}getFirstRange(){var t;return(null===(t=this[Zi("0xd")]())||void 0===t?void 0:t[Zi("0x39")]())||null}[Zi("0x9")](){const t=this[Zi("0x25")]();if(1!=t[Zi("0x23")])return null;const e=t[0],n=e[Zi("0xa")][Zi("0x38")],i=e[Zi("0x15")][Zi("0x1a")];return n instanceof s.Element?n!=i?null:n:null}[Zi("0x2d")](){this[Zi("0x2b")](this.getRanges(),this[Zi("0x37")],this[Zi("0x6")]),this[Zi("0x1e")]()}[Zi("0x0")](){this[Zi("0xf")](this[Zi("0x25")](),this[Zi("0x37")],this[Zi("0x6")]),this[Zi("0x1e")]()}[Zi("0x1")](){const t=[];let e=this[Zi("0x2f")];for(;e;)t[Zi("0x1c")](e),e=e.next;return t}setAttribute(t,e){const n=ei(this.attributes);Ei(n,t,e),ji(n,this[Zi("0x6")])||(this.attributes=n,this._onAttributesChange(n))}removeAttribute(t){const e=ei(this.attributes);Ki(e,t),ji(e,this[Zi("0x6")])||(this.attributes=e,this[Zi("0x31")](this[Zi("0x6")]))}[Zi("0x1b")](){return{id:this.id,type:this[Zi("0x22")]?this[Zi("0x21")]+":"+this[Zi("0x22")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Zi("0xc")],data:this[Zi("0x37")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Zi("0x35")](1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({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 i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({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 i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["Object","_resolveDescriptionItems","key","data","removeFormat","push","addContainer","_itemLabelsCallbacks","previousSibling","replace","removeContainer","addEmptyContainer","_locale","_handleRenameSuggestionDescription","insertion","subType","isEmpty","element","attribute","set","isObject","indexOf","_customCallbacks","checkChild","nextSibling","add","getFirstRange","isInContent","length","function","type","addFormat","addObject","_handleInsertRemoveSuggestionDescription","remove","format","elementStart","skip","*Remove:* %0","nodeAfter","*Merge:* %0","elementEnd","_attributeLabels","normal","pop","item","registerDescriptionCallback","map","match","start","quantity","getWalker","_addDescriptionItems","newValue","has","ELEMENT_SPACE","end","*Insert:* %0","getItemLabel","Container","name","_schema","join","matchingCallback","get","_itemLabels","_handleCustomCallbackDescription","_handleAttributeSuggestionDescription","EmptyContainer","getDescriptions","REPLACE_TEXT","*Change to:* %0","*Split:* %0","text","deletion","$text","$textProxy"];var to,eo;to=Qi,eo=172,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Qi[t-=0]};class io{constructor(t,e){this._customCallbacks=[],this[no("0x2f")]=new Map,this[no("0x42")]=[],this[no("0x18")]=new Map,this._schema=t,this[no("0x47")]=e}[no("0x33")](t){const e=[],n=new Set,i=new Set;for(let o=0;o<t[no("0xa")];o++){const r=t[o];if(!r[no("0x9")])continue;const s=this[no("0x30")](r);if(s){if(null!=r[no("0x4a")]){if(n[no("0x24")](r[no("0x4a")]))continue;n[no("0x7")](r[no("0x4a")])}e[no("0x40")](s)}else if(no("0x0")!=r.type)no("0x49")!=r[no("0xc")]&&no("0x38")!=r[no("0xc")]||this._handleInsertRemoveSuggestionDescription(e,r,t[o+1]);else{const t=r[no("0x3e")][no("0x3d")];if(i[no("0x24")](t))continue;i[no("0x7")](r[no("0x3e")].key),t==mc?this._handleRenameSuggestionDescription(e,r):this[no("0x31")](e,r)}}return this._resolveDescriptionItems(e)}[no("0x1c")](t){this[no("0x4")].push(t)}registerElementLabel(t,n,i=e.priorities[no("0x19")]){no("0xb")==typeof t?(0,e.insertToPriorityArray)(this[no("0x42")],{matchingCallback:t,label:n,priority:i}):this[no("0x2f")][no("0x1")](t,n)}registerAttributeLabel(t,e){this[no("0x18")][no("0x1")](t,e)}[no("0x28")](t,e=1){let n;for(const e of this[no("0x42")])if(e[no("0x2d")](t)){n=e.label;break}return n||(n=this[no("0x2f")][no("0x2e")](t[no("0x2a")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[no("0x2a")]}[no("0x22")](t,e){const n=e.getFirstRange()[no("0x21")](),i=no("0x49")==e[no("0xc")]?no("0x7"):no("0x10");for(const e of n){const o=e[no("0x1b")],r=t[t[no("0xa")]-1];if(o.is(no("0x3a")))r&&r.type[no("0x3")](no("0x29"))>-1&&t[no("0x1a")](),r&&no("0x37")==r[no("0xc")]?r[i]+=o[no("0x3e")]:t.push({type:no("0x37"),add:no("0x7")==i?o[no("0x3e")]:"",remove:no("0x10")==i?o[no("0x3e")]:""});else if(this._schema.isObject(o)){const s=o;if(r&&r[no("0xc")][no("0x3")](no("0x29"))>-1&&t[no("0x1a")](),no("0x17")==e[no("0xc")])continue;r&&r[no("0xc")]==i+no("0x3b")&&r.element[no("0x2a")]==s.name?r[no("0x20")]++:t[no("0x40")]({type:i+no("0x3b"),element:s,quantity:1}),n[no("0x13")]((t=>!(no("0x17")==t[no("0xc")]&&t.item==o)))}else if(this._schema[no("0x5")](o,no("0x39"))||o.is("element","softBreak")){const n=o;if("add"==i&&no("0x12")==e[no("0xc")]||"remove"==i&&"elementEnd"==e.type)continue;if(r&&-1==r.type.indexOf(no("0x29"))){no("0x37")==r[no("0xc")]&&(r[i]+="\n");continue}let s;if(s=no("0x7")==i?n[no("0x6")]&&!this[no("0x2b")][no("0x2")](n[no("0x6")])?n[no("0x6")]:null:n.previousSibling&&!this[no("0x2b")].isObject(n[no("0x43")])?n[no("0x43")]:null,n[no("0x4b")]||s&&s.isEmpty){const e=s&&s[no("0x4b")]?s:n;r&&r[no("0xc")]==i+no("0x32")&&r[no("0x4c")][no("0x2a")]==e[no("0x2a")]?r[no("0x20")]++:t.push({type:i+no("0x32"),element:e,quantity:1})}else t[no("0x40")]({type:i+no("0x29"),element:n})}}}[no("0x3c")](t){const e=this[no("0x47")],n=[],i=[],o=[];for(const r of t)switch(r[no("0xc")]){case"text":if(r[no("0x7")]=r.add.replace(/(\S)\u000A+(\S)/g,"$1 $2")[no("0x44")](/\u000A/g,""),r.remove=r[no("0x10")][no("0x44")](/(\S)\u000A+(\S)/g,"$1 $2")[no("0x44")](/\u000A/g,""),""!=r[no("0x7")]&&""!=r.remove){n[no("0x40")]({type:"replace",content:Ji(e,no("0x34"),['"'+r[no("0x10")]+'"','"'+r[no("0x7")]+'"'])});continue}if(null!=r.add.match(/^ +$/)){n.push({type:no("0x49"),content:Ji(e,no("0x27"),Ji(e,no("0x25"),r.add[no("0xa")]))});continue}if(null!=r.remove[no("0x1e")](/^ +$/)){n[no("0x40")]({type:no("0x38"),content:Ji(e,no("0x14"),Ji(e,no("0x25"),r[no("0x10")][no("0xa")]))});continue}if(""!=r[no("0x7")]){n.push({type:no("0x49"),content:Ji(e,no("0x27"),'"'+r.add+'"')});continue}n[no("0x40")]({type:no("0x38"),content:Ji(e,no("0x14"),'"'+r[no("0x10")]+'"')});continue;case no("0x46"):case no("0xe"):n.push({type:"insertion",content:Ji(e,no("0x27"),this[no("0x28")](r.element,r[no("0x20")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:no("0x38"),content:Ji(e,"*Remove:* %0",this[no("0x28")](r[no("0x4c")],r[no("0x20")]))});continue;case no("0x41"):n[no("0x40")]({type:"insertion",content:Ji(e,no("0x36"),this.getItemLabel(r[no("0x4c")],r[no("0x20")]))});continue;case no("0x45"):n[no("0x40")]({type:"deletion",content:Ji(e,no("0x16"),this.getItemLabel(r[no("0x4c")],r[no("0x20")]))});continue;case no("0xd"):i.push(r[no("0x3d")]);continue;case no("0x3f"):o[no("0x40")](r[no("0x3d")]);continue;default:n[no("0x40")](r)}if(i[no("0xa")]){const t=i[no("0x1d")]((t=>this[no("0x18")][no("0x24")](t)?this[no("0x18")][no("0x2e")](t):t))[no("0x2c")](", ");n[no("0x40")]({type:no("0x11"),content:Ji(this._locale,"*Set format:* %0",t)})}if(o[no("0xa")]){const t=o[no("0x1d")]((t=>this[no("0x18")][no("0x24")](t)?this._attributeLabels.get(t):t))[no("0x2c")](", ");n[no("0x40")]({type:no("0x11"),content:Ji(this[no("0x47")],"*Remove format:* %0",t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[no("0x4")]){const n=e(t);if(n&&no("0xc")in n)return n}}[no("0x31")](t,e){const n=e.data,i=void 0===n[no("0x23")]?no("0x3f"):no("0xd");t[no("0x40")]({type:i,key:n[no("0x3d")]})}[no("0x48")](t,e){t[no("0x40")]({type:no("0x11"),content:Ji(this._locale,no("0x35"),this[no("0x28")](e[no("0x8")]()[no("0x1f")][no("0x15")],1))})}[no("0xf")](t,e,n){if(this[no("0x22")](t,e),n&&n[no("0x8")]()&&!e.getFirstRange()[no("0x26")].isEqual(n.getFirstRange()[no("0x1f")])){const n=t[t[no("0xa")]-1],i=no("0x49")==e[no("0xc")]?no("0x7"):no("0x10");n&&no("0x37")==n[no("0xc")]&&(n[i]+="\n")}}}const oo=["commands","TrackChangesEditing","plugins","get","afterInit","showAIAssistant","enableCommand"];var ro,so;ro=oo,so=150,function(t){for(;--t;)ro.push(ro.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x1")](){const t=this.editor,e=t[xo("0x6")][xo("0x0")](xo("0x5"));t[xo("0x4")].get(xo("0x2"))&&e[xo("0x3")](xo("0x2"))}}const co=["TrackChangesEditing","get","registerDescriptionCallback","commandName","*Format:* %0","FORMAT_ALIGNMENT","locale","afterInit","FORMAT_ALIGN_TO_LEFT","right","justify","plugins","AlignmentEditing","value","_registerLegacyDescription","_descriptionFactory","_enableDefaultAttributesIntegration","format","has","FORMAT_ALIGN_TO_RIGHT","alignment"];var lo,uo;lo=co,uo=445,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x3")](){const t=this.editor,e=t.locale;if(!t.plugins[go("0xe")](go("0x8")))return;const n=t[go("0x7")][go("0x12")](go("0x11"));n[go("0xc")](go("0x10"),[],["alignment"]),n[go("0xb")].registerAttributeLabel(go("0x10"),Ji(e,go("0x1"))),this[go("0xa")]()}[go("0xa")](){const t=this.editor,e=t[go("0x2")];t[go("0x7")][go("0x12")]("TrackChangesEditing")[go("0xb")][go("0x13")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&"alignment"==n[go("0x14")]){const t=n.commandParams[0][go("0x9")];return{type:go("0xd"),content:Ji(e,go("0x0"),function(t){switch(t){case"left":return Ji(e,go("0x4"));case go("0x5"):return Ji(e,go("0xf"));case"center":return Ji(e,"FORMAT_ALIGN_TO_CENTER");case go("0x6"):return Ji(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mo=["subscript","FORMAT_BOLD","FORMAT_UNDERLINE","italic","BoldEditing","type","_enableDefaultAttributesIntegration","FORMAT_SUPERSCRIPT","code","*Format:* %0","strikethrough","_registerLegacyDescription","SuperscriptEditing","TrackChangesEditing","FORMAT_SUBSCRIPT","toUpperCase","FORMAT_","_descriptionFactory","ItalicEditing","FORMAT_STRIKETHROUGH","toLowerCase","CodeEditing","format","has","underline","StrikethroughEditing","afterInit","locale","bold","registerDescriptionCallback","commandName","SubscriptEditing","*Remove format:* %0","plugins","FORMAT_ITALIC","slice","get","editor","superscript"];var ho,po;ho=mo,po=177,function(t){for(;--t;)ho.push(ho.shift())}(++po);const bo=function(t,e){return mo[t-=0]},Eo=[bo("0x16"),bo("0x24"),"UnderlineEditing",bo("0x0"),bo("0x4"),bo("0xa"),bo("0x1e")];class _o extends t.Plugin{[bo("0x5")](){const t=this[bo("0x10")],e=t.plugins.get("TrackChangesEditing"),n=t[bo("0x6")];for(const i of Eo){if(!t[bo("0xc")][bo("0x2")](i))continue;const o=i[bo("0xe")](0,-7)[bo("0x26")](),r=bo("0x22")+o[bo("0x21")]();e[bo("0x18")](o,[o]),e[bo("0x23")].registerAttributeLabel(o,Ji(n,r))}this[bo("0x1d")]()}_registerLegacyDescription(){const t=this.editor,e=t[bo("0x6")],n=t[bo("0xc")][bo("0xf")](bo("0x1f"));function i(t,i){n._descriptionFactory[bo("0x8")]((n=>{if("formatInline"!=n[bo("0x17")])return;const{data:o}=n;return o&&o[bo("0x9")]===t?o.commandParams[0].forceValue?{type:bo("0x1"),content:Ji(e,bo("0x1b"),i)}:{type:bo("0x1"),content:Ji(e,bo("0xb"),i)}:void 0}))}i(bo("0x7"),Ji(e,bo("0x13"))),i(bo("0x15"),Ji(e,bo("0xd"))),i(bo("0x3"),Ji(e,bo("0x14"))),i(bo("0x1a"),Ji(e,"FORMAT_CODE")),i(bo("0x1c"),Ji(e,bo("0x25"))),i(bo("0x12"),Ji(e,bo("0x20"))),i(bo("0x11"),Ji(e,bo("0x19")))}}const To=["name","commands","format","filter","$root","_descriptionFactory","plugins","enableCommand","change","blockQuote","getSelectedBlocks","commandParams","markBlockFormat","checkChild","model","forceValue","parent","document","selection","has","schema","BlockQuoteEditing","locale","get","editor","registerDescriptionCallback","afterInit"];var yo,Co;yo=To,Co=167,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const Ao=function(t,e){return To[t-=0]};class ko extends t.Plugin{[Ao("0x15")](){const t=this[Ao("0x13")],e=t[Ao("0x11")];if(!t[Ao("0x1")][Ao("0xe")](Ao("0x10")))return;const n=t[Ao("0x1")][Ao("0x12")]("TrackChangesEditing"),i=this.editor[Ao("0x17")][Ao("0x12")](Ao("0x4"));n[Ao("0x2")](Ao("0x4"),((e,o={})=>{const r=this[Ao("0x13")][Ao("0x9")][Ao("0xc")][Ao("0xd")],s=o&&void 0!==o[Ao("0xa")]?o[Ao("0xa")]:!i.value;let x=[];if(s){const e=Array.from(r[Ao("0x5")]())[Ao("0x19")]((t=>Io(t)||function(t,e){const n=e[Ao("0x8")](t.parent,"blockQuote"),i=e[Ao("0x8")]([Ao("0x1a"),"blockQuote"],t);return n&&i}(t,this[Ao("0x13")].model[Ao("0xf")])));x=S(e,t[Ao("0x9")])}else{const e=Array.from(r[Ao("0x5")]())[Ao("0x19")]((t=>Io(t)));x=S(e,t.model)}t[Ao("0x9")][Ao("0x3")]((()=>{for(const t of x)n[Ao("0x7")](t,{commandName:Ao("0x4"),commandParams:[{forceValue:s}]})}))})),n[Ao("0x0")][Ao("0x14")]((t=>{const{data:n}=t;if(n&&Ao("0x4")==n.commandName){const t=Ji(e,"ELEMENT_BLOCK_QUOTE");return n[Ao("0x6")][0][Ao("0xa")]?{type:"format",content:Ji(e,"*Set format:* %0",t)}:{type:Ao("0x18"),content:Ji(e,"*Remove format:* %0",t)}}}))}}function Io(t){return Ao("0x4")==t[Ao("0xb")][Ao("0x16")]}const Ro=["plugins","TrackChangesEditing","commands","ckbox"];var So,vo;So=Ro,vo=369,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{afterInit(){const t=this.editor;t[No("0x1")].get(No("0x2"))&&t[No("0x3")].get(No("0x0")).enableCommand(No("0x2"))}}const Mo=["CodeBlock","selection","schema","*Set format:* %0","from","locale","registerElementLabel","plugins","format","toLowerCase","parent","_descriptionFactory","get","type","getSelectedBlocks","afterInit","commandParams","ELEMENT_CODE_BLOCK","markBlockFormat","model","TrackChangesEditing","find","registerDescriptionCallback","languages","language","editor","label","isLimit","filter","config","enableCommand","commandName","change","codeBlock","value","name","rootElement","has","indentCodeBlock","forceValue"];var wo,Oo;wo=Mo,Oo=446,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{[Fo("0x9")](){const t=this[Fo("0x13")];if(!t[Fo("0x1")][Fo("0x1f")](Fo("0x22")))return;const e=t[Fo("0x1")].get(Fo("0xe")),n=t[Fo("0x27")],i=t[Fo("0x17")][Fo("0x6")](Fo("0x1b"))[Fo("0x11")],o=t.commands[Fo("0x6")](Fo("0x1b"));e.enableCommand(Fo("0x20")),e[Fo("0x18")]("outdentCodeBlock"),e.enableCommand(Fo("0x1b"),((n,r={})=>{const s=t[Fo("0xd")],x=t[Fo("0xd")].document[Fo("0x23")],a=r&&void 0!==r.forceValue?r[Fo("0x21")]:!o[Fo("0x1c")];let c;r[Fo("0x12")]||(r[Fo("0x12")]=i[0][Fo("0x12")]),c=a?Array[Fo("0x26")](x[Fo("0x8")]())[Fo("0x16")]((t=>{return Bo(t)||(e=t,n=s[Fo("0x24")],!e.is(Fo("0x1e"))&&!n[Fo("0x15")](e)&&n.checkChild(e[Fo("0x4")],Fo("0x1b")));var e,n})):Array[Fo("0x26")](x[Fo("0x8")]())[Fo("0x16")]((t=>Bo(t)));const l=S(c,s);s[Fo("0x1a")]((()=>{for(const t of l)e[Fo("0xc")](t,{commandName:Fo("0x1b"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fo("0x5")][Fo("0x0")](Fo("0x1b"),(t=>Ji(n,Fo("0xb"),t))),e._descriptionFactory[Fo("0x10")]((t=>{if("formatBlock"!=t[Fo("0x7")])return;const e=n.t,{data:o}=t;if(!o||Fo("0x1b")!=o[Fo("0x19")])return;const r=o.commandParams[0][Fo("0x12")],s=e(i[Fo("0xf")]((t=>t.language===r))[Fo("0x14")])[Fo("0x3")]();return o[Fo("0xa")][0][Fo("0x21")]?{type:Fo("0x2"),content:Ji(n,Fo("0x25"),Ji(n,Fo("0xb"),1)+" ("+s+")")}:{type:Fo("0x2"),content:Ji(n,"*Remove format:* %0",Ji(n,Fo("0xb"),1))}}))}}function Bo(t){return Fo("0x1b")==t[Fo("0x1d")]}const Po=["TrackChangesEditing","get","addCommentThread","has","afterInit","CommentsEditing","enableCommand","editor","plugins"];var Uo,jo;Uo=Po,jo=331,function(t){for(;--t;)Uo.push(Uo.shift())}(++jo);const Go=function(t,e){return Po[t-=0]};class Vo extends t.Plugin{[Go("0x6")](){const t=this[Go("0x0")];t[Go("0x1")][Go("0x5")](Go("0x7"))&&t[Go("0x1")][Go("0x3")](Go("0x2"))[Go("0x8")](Go("0x4"))}}var Ho=n(181);const zo=["ck-suggestion-marker-","addHighlight","TrackChangesEditing","hasAttribute","plugins","createUIElement","test","listItem","createRangeOn","markerName","getAttribute","elementEnd","getCustomProperty","bindElementToMarker","schema","get","push","span","markerRange","isAtEnd","isLimit","consumable","previousPosition","ck-suggestion-marker--active","addClass","getWalker","element","includes","isBlock","model","writer","nextSibling"];var Wo,Ko;Wo=zo,Ko=415,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};function Xo(t,e,n){const i=[];for(const o of e.getItems())o[qo("0x4")](t)&&i[qo("0x11")](n[qo("0x9")](o));return i}function $o(t,e,{showActiveMarker:n=!0}={}){const i=t[qo("0x5")][qo("0x10")](qo("0x3"));return(o,r,s)=>{if(!s[qo("0x16")][qo("0x7")](r.markerRange,o.name))return;const x=r[qo("0x13")][qo("0x1a")](),a=r[qo("0x13")].start,c=t[qo("0x1e")][qo("0xf")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=s.mapper.toViewElement(e);if(n&&n[qo("0xd")](qo("0x2")))return;qo("0xc")==t.type&&c[qo("0x1d")](e)&&!c[qo("0x15")](e)&&(e[qo("0x0")]||a[qo("0x14")]?l&&l.parent==e||(l=e,f(t[qo("0x17")]),g=!0):u=u||t.previousPosition)}function f(t){const o=s.writer[qo("0x6")](qo("0x12"),{class:qo("0x1")+e}),x=s.mapper.toViewPosition(t);n&&i.activeMarkers[qo("0x1c")](r[qo("0xa")])&&s.writer[qo("0x19")](qo("0x18"),o),s[qo("0x1f")].insert(x,o),s.mapper[qo("0xe")](o,r[qo("0xa")])}d||g||!u||f(u)}}const Zo=["editing","getFirstRange","high","get","document","mapper","isCollapsed","showSuggestionHighlights","downcastDispatcher","model","unbindElementFromMarkerName","requires","forward","createRange","merge","enableCommand","editor","deleteForward","root","buffer","addMarker:suggestion:deletion","options","writer","remove","selection","batch","start","enqueueChange","commands","bind","delete","TrackChangesEditing","init","setSelection","markerName","modifySelection","end"];var Yo,Jo;Yo=Zo,Jo=162,function(t){for(;--t;)Yo.push(Yo.shift())}(++Jo);const Qo=function(t,e){return Zo[t-=0]};class tr extends t.Plugin{static get[Qo("0x22")](){return[Ho.Delete]}[Qo("0x12")](){const t=this[Qo("0x2")],e=t.plugins[Qo("0x1a")](Qo("0x11"));e[Qo("0x1")](Qo("0x10"));const n=t[Qo("0xe")][Qo("0x1a")](Qo("0x3"));e.enableCommand(Qo("0x3"),((e,i={})=>{const o=t[Qo("0x20")].createSelection(t.model[Qo("0x1b")][Qo("0xa")]);o[Qo("0x1d")]&&t[Qo("0x20")][Qo("0x15")](o,{direction:Qo("0x23"),unit:i.unit});const r=o[Qo("0x18")](),x=s.LiveRange.fromRange(r);let a;e(i),a="$graveyard"==x[Qo("0x4")].rootName?t[Qo("0x20")][Qo("0x24")](r[Qo("0xc")]):t[Qo("0x20")][Qo("0x24")](x.start,x[Qo("0x16")]),x.detach(),t[Qo("0x20")][Qo("0xd")](n[Qo("0x5")][Qo("0xb")],(t=>{n.buffer.lock(),t[Qo("0x13")](t[Qo("0x24")](a.end)),n[Qo("0x5")].unlock()}))})),t[Qo("0x17")][Qo("0x1f")].on(Qo("0x6"),$o(t,Qo("0x0")),{priority:Qo("0x19")}),t.data[Qo("0x1f")].on("addMarker:suggestion:deletion",((e,n,i)=>{i[Qo("0x7")][Qo("0x1e")]&&$o(t,Qo("0x0"),{showActiveMarker:!1})[Qo("0xf")](this)(e,n,i)}),{priority:Qo("0x19")}),t.editing[Qo("0x1f")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const i=n.mapper.markerNameToElements(e.markerName);if(i)for(const t of i)t.is("uiElement")&&(n[Qo("0x1c")][Qo("0x21")](t,e[Qo("0x14")]),n[Qo("0x8")][Qo("0x9")](t))}),{priority:"high"})}}const er=["deletion","createPositionAt","getAttribute","toUpperCase","has","after","getRanges","end","getSelectedBlocks","listIndent","type","from","markMultiRangeBlockFormat","*Change to:* %0","selection","findIndex","registerDescriptionCallback","list.multiBlock","detach","paragraph","listItemId","isObject","DocumentListEditing","document","commands","getFirstRange","isFirstBlockOfListItem","push","numberedList","splitListItemBefore","createRange","commandParams","ELEMENT_","nodeAfter","*Merge:* %0","editor","formatInline","splitListItemAfter","accept","next","config","commandName","*Format:* remove from %0","get","fromRange","multipleBlocks","add","_LIST","map","setSelection","ELEMENT_BULLETED_LIST","model","*Indent:* %0","change","DocumentListUtils","indentList","_suggestionFactory","registerElementLabel","outdentList","ELEMENT_NUMBERED_LIST","enableCommand","hasAttribute","formatBlock","nextSibling","_descriptionFactory","value","mergeListItemBackward","schema","execute","format","markBlockFormat","locale","start","plugins","*Outdent:* %0","documentList","refresh","TrackChangesEditing","listType","before","bulletedList"];var nr,ir;nr=er,ir=474,function(t){for(;--t;)nr.push(nr.shift())}(++ir);const or=function(t,e){return er[t-=0]};class rr extends t.Plugin{afterInit(){const t=this[or("0x2f")];if(!t[or("0x4")][or("0x10")](or("0x22")))return;const e=t[or("0x2")],n=t[or("0x4")][or("0x37")](or("0x8")),i=t[or("0x4")][or("0x37")](or("0x42"));function o(e){return()=>{const o=t.commands[or("0x37")](e);if(o.value&&!t[or("0x34")][or("0x37")](or("0x1d")))return void t[or("0x50")](or("0x1f"),{});let r=Array[or("0x17")](t[or("0x3f")][or("0x23")][or("0x1a")][or("0x14")]());if(a(e)){r=i.expandListBlocksToCompleteList(r);const t=[];for(const e of r)i[or("0x26")](e)&&t.push(e);r=t}t[or("0x3f")].change((()=>{n[or("0x18")](r,{commandName:e,commandParams:[{forceValue:!o[or("0x4d")]}],formatGroupId:or("0x9")},[],"documentList")}))}}function r(e){return()=>{const i=function(t){let e=Array[or("0x17")](t);const n=e[or("0x1b")]((t=>!t[or("0x49")](or("0x20"))));return n>-1&&(e=e.slice(0,n)),e}(t[or("0x3f")][or("0x23")][or("0x1a")][or("0x14")]()),o=i[i.length-1],r=t[or("0x3f")].schema[or("0x21")](o)?or("0x11"):or("0x13"),s=t[or("0x3f")][or("0x2a")](t[or("0x3f")].createPositionAt(i[0],or("0xa")),t[or("0x3f")][or("0xd")](o,r));t.model[or("0x41")]((()=>{n[or("0x1")](s,{commandName:e,commandParams:[],formatGroupId:or("0x9")},function(t){const e=new Set;for(const n of t){let t=n[or("0x4b")];for(;t&&t.getAttribute(or("0x15"))>n[or("0xe")](or("0x15"));)e[or("0x3a")](t),t=t[or("0x4b")]}return Array[or("0x17")](e)}(i))}))}}function x(e){return()=>{const i=t[or("0x3f")][or("0x23")][or("0x1a")][or("0x14")]()[or("0x33")]()[or("0x4d")],o=t[or("0x3f")][or("0xd")](i,or("0xa")),r=t[or("0x3f")].createPositionAt(i,0),s=t[or("0x3f")][or("0x2a")](o,r);t[or("0x3f")][or("0x41")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:or("0x9")})}))}}function a(e){const n=t[or("0x24")][or("0x37")](or("0xb")).value,i=t[or("0x24")][or("0x37")](or("0x28"))[or("0x4d")];return or("0x28")===e?n:i}n[or("0x48")](or("0x28"),o(or("0x28"))),n.enableCommand(or("0xb"),o("bulletedList")),n[or("0x48")](or("0x43"),r(or("0x43"))),n[or("0x48")]("outdentList",r(or("0x46"))),n[or("0x48")](or("0x31"),x(or("0x31"))),n[or("0x48")](or("0x29"),x(or("0x29"))),n[or("0x4c")][or("0x45")]((function(e){const n=!t[or("0x3f")][or("0x4f")][or("0x21")](e),i=e.previousSibling,o=e[or("0x4b")],r=e.getAttribute(or("0x20")),s=!i||i[or("0xe")]("listItemId")!==r,x=!o||o[or("0xe")](or("0x20"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Ji(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[or("0x1c")]((function(n){if("formatBlock"!=n[or("0x16")]&&or("0x30")!=n[or("0x16")])return;const{data:i}=n;if(!i)return;let o,r,s,x;switch(i[or("0x35")]){case or("0xb"):s=i.commandParams[0].forceValue,x=a(i[or("0x35")]),o=s?"*Format:* insert into %0":or("0x36"),!x&&t[or("0x34")][or("0x37")]("list.multiBlock")||(o=or("0x19")),r={type:or("0x0"),content:Ji(e,o,Ji(e,or("0x3e")))};break;case or("0x28"):s=i.commandParams[0].forceValue,x=a(i[or("0x35")]),o=s?"*Format:* insert into %0":or("0x36"),!x&&t[or("0x34")][or("0x37")](or("0x1d"))||(o=or("0x19")),r={type:"format",content:Ji(e,o,Ji(e,or("0x47")))};break;case"indentList":o=or("0x40"),r={type:or("0x0"),content:Ji(e,o,Ji(e,"ELEMENT_LIST_ITEM"))};break;case or("0x46"):o=function(t){const e=t[or("0x25")]();let n=e[or("0x3")][or("0x2d")];for(;n&&e.containsItem(n);){if(n.getAttribute(or("0x15"))>0)return!1;n=n[or("0x4b")]}return!0}(n)?Ji(e,or("0x36"),Ji(e,function(t){const e=t.getFirstRange()[or("0x3")].nodeAfter;return or("0x2c")+e[or("0xe")](or("0x9"))[or("0xf")]()+or("0x3b")}(n))):Ji(e,or("0x5"),Ji(e,"ELEMENT_LIST_ITEM")),r={type:or("0x0"),content:o};break;case or("0x4e"):case"mergeListItemForward":!1===i[or("0x39")]&&(o=or("0x2e"),r={type:or("0xc"),content:Ji(e,o,Ji(e,"ELEMENT_LIST_ITEM"))})}return r})),n[or("0x44")].registerCustomCallback(or("0x4a"),or("0x6"),or("0x32"),(function(e,n){const i=[];for(let n of e)n[or("0x3")][or("0x2d")]===n[or("0x13")].parent&&(n=t[or("0x3f")][or("0x2a")](t[or("0x3f")][or("0xd")](n.start[or("0x2d")],0))),i[or("0x27")](n);t[or("0x3f")][or("0x41")]((e=>{const o=t[or("0x3f")][or("0x23")][or("0x1a")],r=Array[or("0x17")](o[or("0x12")]())[or("0x3c")]((t=>s.LiveRange[or("0x38")](t)));e[or("0x3d")](i),t[or("0x24")][or("0x37")](n[or("0x35")])[or("0x7")](),n[or("0x2b")][or("0x27")]({forceDefaultExecution:!0}),t[or("0x50")](n.commandName,...n[or("0x2b")]),e.setSelection(r);for(const t of r)t[or("0x1e")]()}))}))}}const sr=["commandParams","bind","DocumentListUtils","startIndex","get","_descriptionFactory","handleDescriptions","DocumentListPropertiesEditing","listReversed","_getTranslationKeyForListStyle","numbered","document","getListTypeFromListStyleType","handleListStyleCommand","isListItemBlock","replace","listStyle","*Format:* set order to reversed","TrackChangesEditing","afterInit","enableCommand","DocumentListPropertiesUtils","format","*Format:* set order to regular","locale","has","from","toUpperCase","model","_getSuggestionBlocks","handleListReversedCommand","filter","*Format:* set start index to %0","expandListBlocksToCompleteList","_getSuggestionBlocksForListStyle","*Change to:* %0","editor","styles","listStart","_LIST_","change","plugins","getAttribute","length","selection","config","push","handleListStartCommand","registerDescriptionCallback","commandName","reversed","type"];var xr,ar;xr=sr,ar=374,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x9")](){if(!this.editor[cr("0x1f")][cr("0xf")](cr("0x31")))return;const t=this[cr("0x1a")][cr("0x23")].get("list.properties"),e=this[cr("0x1a")].plugins[cr("0x2e")](cr("0x8"));t[cr("0x1b")]&&e[cr("0xa")]("listStyle",this[cr("0x3")][cr("0x2b")](this)),t[cr("0x28")]&&e[cr("0xa")](cr("0x32"),this[cr("0x14")][cr("0x2b")](this)),t[cr("0x2d")]&&e[cr("0xa")](cr("0x1c"),this[cr("0x25")][cr("0x2b")](this)),e[cr("0x2f")][cr("0x26")](this[cr("0x30")][cr("0x2b")](this))}[cr("0x3")](t,e={}){const n=this.editor[cr("0x1f")][cr("0x2e")](cr("0x8")),i=this[cr("0x18")]();this[cr("0x1a")][cr("0x12")][cr("0x1e")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x6"),commandParams:[{type:e[cr("0x29")]}],formatGroupId:"listStyle"})}))}[cr("0x14")](t,e={}){const n=this.editor[cr("0x1f")].get(cr("0x8")),i=this.editor[cr("0x1f")][cr("0x2e")](cr("0x2c")),o=this._getSuggestionBlocks((t=>i[cr("0x4")](t)&&cr("0x0")===t[cr("0x20")]("listType")));null!==o&&this.editor[cr("0x12")][cr("0x1e")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x28")]}],formatGroupId:"listReversed"})}))}[cr("0x25")](t,e={}){const n=this[cr("0x1a")][cr("0x1f")].get("TrackChangesEditing"),i=this[cr("0x1a")][cr("0x1f")].get("DocumentListUtils"),o=this[cr("0x13")]((t=>i[cr("0x4")](t)&&cr("0x0")===t[cr("0x20")]("listType")));null!==o&&this[cr("0x1a")][cr("0x12")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:cr("0x1c"),commandParams:[{startIndex:e[cr("0x2d")]}],formatGroupId:cr("0x1c")})}))}[cr("0x30")](t){if("formatBlock"!=t.type&&"formatInline"!=t[cr("0x29")])return;const e=this[cr("0x1a")][cr("0xe")],{data:n}=t;if(!n)return;let i,o;switch(n[cr("0x27")]){case cr("0x6"):i=cr("0x19"),o={type:cr("0xc"),content:Ji(e,i,Ji(e,this[cr("0x33")](n[cr("0x2a")][0][cr("0x29")])))};break;case cr("0x32"):i=n.commandParams[0][cr("0x28")]?cr("0x7"):cr("0xd"),o={type:cr("0xc"),content:Ji(e,i)};break;case cr("0x1c"):i=cr("0x16"),o={type:cr("0xc"),content:Ji(e,i,n[cr("0x2a")][0][cr("0x2d")])}}return o}_getSuggestionBlocksForListStyle(){const t=this[cr("0x1a")][cr("0x1f")][cr("0x2e")](cr("0x2c"));let e=Array[cr("0x10")](this.editor[cr("0x12")][cr("0x1")][cr("0x22")].getSelectedBlocks());return e[cr("0x24")](...t[cr("0x17")](e)),e=[...new Set(e)],e}[cr("0x13")](t){const e=this.editor[cr("0x1f")].get("DocumentListUtils");let n=Array[cr("0x10")](this[cr("0x1a")][cr("0x12")][cr("0x1")].selection.getSelectedBlocks())[cr("0x15")](t);if(!n[cr("0x21")])return null;n=e[cr("0x17")](n);const i=[];for(const t of n)e.isFirstBlockOfListItem(t)&&i[cr("0x24")](t);return i}[cr("0x33")](t){return"ELEMENT_"+this[cr("0x1a")].plugins.get(cr("0xb"))[cr("0x2")](t)[cr("0x11")]()+cr("0x1d")+t[cr("0x11")]()[cr("0x5")](/-/g,"_")}}var ur=n(331);const dr=["markerName","writer","data","setSelection","editing","fromRange","createRange","remove","parent","document","hasClass","getFirstRange","end","change","high","enterBlock","afterExecute","markerNameToElements","plugins","ck-suggestion-marker-split","createPositionAt","unbindElementFromMarkerName","mapper","addMarker:suggestion:insertion","get","fire","enableCommand","editor","showSuggestionHighlights","getFirstPosition","model","commands","requires","TrackChangesEditing","selection","split","enter","nextSibling","downcastDispatcher"];var gr,fr;gr=dr,fr=190,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x25")](){return[ur.Enter]}init(){const t=this[mr("0x20")],e=t[mr("0x17")][mr("0x1d")](mr("0x26")),n=t[mr("0x24")][mr("0x1d")](mr("0x2"));e[mr("0x1f")](mr("0x2"),(()=>{t.model[mr("0x12")]((i=>{const o=t[mr("0x23")][mr("0xe")][mr("0x0")],r=o[mr("0x22")](),x=s.LiveRange[mr("0xa")](o[mr("0x10")]());if(n[mr("0x14")](i)){const n=t[mr("0x23")][mr("0x19")](r[mr("0xd")][mr("0x3")],0),o=i[mr("0xb")](r,n);e.markInsertion(o)}else i[mr("0x8")](i.createRange(x[mr("0x11")]));x.detach(),n[mr("0x1e")](mr("0x15"),{writer:i})}))})),t[mr("0x9")][mr("0x4")].on(mr("0x1c"),$o(t,mr("0x1")),{priority:"high"}),t[mr("0x9")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const i=n[mr("0x1b")][mr("0x16")](e[mr("0x5")]);if(i)for(const t of i)t[mr("0xf")](mr("0x18"))&&(n[mr("0x1b")][mr("0x1a")](t,e[mr("0x5")]),n[mr("0x6")][mr("0xc")](t))}),{priority:mr("0x13")}),t[mr("0x7")][mr("0x4")].on(mr("0x1c"),((e,n,i)=>{i.options[mr("0x21")]&&$o(t,mr("0x1"),{showActiveMarker:!1}).bind(this)(e,n,i)}),{priority:"high"})}}const pr=["get","TrackChangesEditing","createPositionAt","plugins","findPrevious","findByTextCallback","getMarkersGroup","model","replaceAll","FindAndReplaceEditing","end","item","afterInit","start","editor","string","handleFindCommand","filter","suggestion:deletion","enableCommand","markers","_isInDeletionRange","has","getIntersection","getRange","FindAndReplaceUtils","findNext"];var br,Er;br=pr,Er=483,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0xf")](){if(!this[_r("0x11")][_r("0x6")][_r("0x19")](_r("0xc")))return;const t=this[_r("0x11")].plugins[_r("0x3")](_r("0x4"));t[_r("0x16")]("find",this[_r("0x13")].bind(this)),t[_r("0x16")](_r("0x2")),t[_r("0x16")](_r("0x7")),t.enableCommand("replace"),t[_r("0x16")](_r("0xb"))}[_r("0x13")](t,e,n={}){const i=this[_r("0x11")][_r("0x6")][_r("0x3")](_r("0x1"));if(void 0!==n)return t((t=>(_r("0x12")==typeof e?i[_r("0x8")](e,n):e)(t)[_r("0x14")]((e=>!1===this[_r("0x18")](e,t[_r("0xe")])))),n)}[_r("0x18")](t,e){const n=this[_r("0x11")].model.createRange(this[_r("0x11")][_r("0xa")][_r("0x5")](e,t[_r("0x10")]),this[_r("0x11")].model[_r("0x5")](e,t[_r("0xd")]));for(const t of this[_r("0x11")][_r("0xa")][_r("0x17")][_r("0x9")](_r("0x15")))if(null!==n[_r("0x1a")](t[_r("0x0")]()))return!0;return!1}}const yr=["get","FORMAT_FONT_SIZE","FontSize","*Set font background color:* %0","config","locale","FontFamilyEditing","trim","_descriptionFactory","fontSize","*Set font color:* %0","commandName","FORMAT_FONT_BACKGROUND","TrackChangesEditing","toLowerCase","fontColor","afterInit","format","registerAttributeLabel","normalizeSizeOptions","fontBackgroundColor","*Reset font family*","model","_registerLegacyDescription","FontColorEditing","fontBackgroundColor.colors","commandParams","value","*Set font family:* %0","editor","FontBackgroundColorEditing","_enableDefaultAttributesIntegration","FORMAT_FONT_FAMILY","*Reset font size*","FontSizeEditing","fontFamily","find","label","fontSize.options","plugins"];var Cr,Ar;Cr=yr,Ar=334,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x14"),commandName:kr("0x23")},{pluginName:kr("0x20"),commandName:kr("0x15")},{pluginName:kr("0xa"),commandName:kr("0x1")},{pluginName:kr("0x10"),commandName:kr("0x6")}];class Rr extends t.Plugin{[kr("0x2")](){const t=this.editor[kr("0x1f")],e=this[kr("0xf")][kr("0x19")][kr("0x1a")](kr("0x27"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0xf")][kr("0x19")].has(t)&&e[kr("0x11")](n,[n]);t.t,e[kr("0x22")][kr("0x4")](kr("0x23"),Ji(t,kr("0x1b"))),e._descriptionFactory.registerAttributeLabel("fontFamily",Ji(t,kr("0x12"))),e._descriptionFactory[kr("0x4")](kr("0x1"),Ji(t,"FORMAT_FONT_COLOR")),e._descriptionFactory[kr("0x4")]("fontBackgroundColor",Ji(t,kr("0x26"))),this[kr("0x9")]()}[kr("0x9")](){const t=this[kr("0xf")],e=t[kr("0x1f")];t.plugins[kr("0x1a")](kr("0x27"))[kr("0x22")].registerDescriptionCallback((t=>{const n=e.t;if("formatInline"!=t.type)return;const{data:i}=t;if(null!=i){if("fontSize"==i[kr("0x25")]){const t=i[kr("0xc")][0][kr("0xd")];if(t){const i=n(this.editor[kr("0x19")][kr("0x1a")](kr("0x1c"))[kr("0x5")](this[kr("0xf")][kr("0x1e")][kr("0x1a")](kr("0x18")))[kr("0x16")]((e=>e.model==t)).title)[kr("0x0")]();return{type:kr("0x3"),content:Ji(e,"*Set font size:* %0",i)}}return{type:kr("0x3"),content:Ji(e,kr("0x13"))}}if(kr("0x15")==i.commandName){const t=i[kr("0xc")][0].value;return t?{type:"format",content:Ji(e,kr("0xe"),t)}:{type:kr("0x3"),content:Ji(e,kr("0x7"))}}if(kr("0x1")==i[kr("0x25")]){const t=i[kr("0xc")][0].value;if(t){const i=(0,o.normalizeColorOptions)(this.editor[kr("0x1e")].get("fontColor.colors"))[kr("0x16")]((e=>e[kr("0x8")]==t));let r=t,s="";return i&&(r=i[kr("0x17")],s=n(r)[kr("0x0")]()),{type:kr("0x3"),content:Ji(e,kr("0x24"),s)[kr("0x21")](),color:{value:t,title:s||r}}}return{type:"format",content:Ji(e,"*Reset font color*")}}if(kr("0x6")==i[kr("0x25")]){const t=i[kr("0xc")][0][kr("0xd")];if(t){const i=(0,o.normalizeColorOptions)(this[kr("0xf")][kr("0x1e")][kr("0x1a")](kr("0xb")))[kr("0x16")]((e=>e[kr("0x8")]==t));let r=t,s="";return i&&(r=i[kr("0x17")],s=n(r)[kr("0x0")]()),{type:"format",content:Ji(e,kr("0x1d"),s)[kr("0x21")](),color:{value:t,title:s||r}}}return{type:"format",content:Ji(e,"*Reset font background color*")}}}}))}}const Sr=["plugins","entries","split","fontSize.options","*Remove all formatting*","TrackChangesEditing","fontSize","FontSize","join","boolean","formatInline","format","editor","fontColor.colors","_enableDefaultAttributesIntegration","charAt","locale","get","type","commands","model","normalizeSizeOptions","*Set format to:* %0","commandName","pasteFormat","afterInit","commandParams","slice","label","fontBackgroundColor","toUpperCase","fontColor","_registerLegacyDescription","formatBlock","copyFormat","length","config","toLowerCase","push"];var vr,Nr;vr=Sr,Nr=439,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0xf")](){const t=this[Lr("0x2")],e=t[Lr("0x1d")][Lr("0x7")](Lr("0x22")),n=t[Lr("0x9")][Lr("0x7")](Lr("0x18")),i=t.commands[Lr("0x7")]("pasteFormat");n&&i&&(e[Lr("0x4")](Lr("0xe")),e.enableCommand(Lr("0x18")),this[Lr("0x16")]())}[Lr("0x16")](){const t=this.editor,e=t[Lr("0x6")];t.plugins[Lr("0x7")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if(Lr("0x17")!=n[Lr("0x8")]&&Lr("0x0")!=n[Lr("0x8")])return;const{data:i}=n;if(i&&Lr("0xe")===i[Lr("0xd")]){const n=[],o=i[Lr("0x10")][0];for(const[e,i]of Object[Lr("0x1e")](o))n[Lr("0x1c")](wr(t,e,i));return n[Lr("0x19")]?{type:Lr("0x1"),content:Ji(e,Lr("0xc"),n[Lr("0x25")](", "))}:{type:"format",content:Ji(e,Lr("0x21"))}}}))}}function wr(t,e,n){const i=t[Lr("0x6")].t,r=e[Lr("0x1f")](/(?=[A-Z])/)[Lr("0x25")](" "),s=i(r[Lr("0x5")](0)[Lr("0x14")]()+r[Lr("0x11")](1)).toLowerCase();if(Lr("0x26")==typeof n)return s;if(Lr("0x15")===e||Lr("0x13")===e){const e=(0,o.normalizeColorOptions)(t[Lr("0x1a")].get(Lr("0x3"))).find((t=>t[Lr("0xa")]==n));return s+" ("+(e?i(e[Lr("0x12")]).toLowerCase():n)+")"}if(Lr("0x23")===e&&isNaN(parseFloat(n))){const e=t[Lr("0x1d")].get(Lr("0x24"))[Lr("0xb")](t[Lr("0x1a")][Lr("0x7")](Lr("0x20"))).find((t=>t[Lr("0xa")]==n));return s+" ("+(e?i(e.title)[Lr("0x1b")]():n)+")"}return s+" ("+n+")"}const Or=["name","_getHeadingLevel","plugins","locale","_descriptionFactory","HeadingEditing","editor","has","ELEMENT_HEADING_CUSTOM","heading","afterInit","_enableDefaultAttributesIntegration","get","model","TrackChangesEditing","paragraph","title","_registerLegacyDescription","match","type","registerElementLabel","ELEMENT_HEADING","_headingOptions","*Change to:* %0","commandName","format","find"];var Fr,Dr;Fr=Or,Dr=161,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0xb")](){const t=this.editor;if(!t[Br("0x3")][Br("0x8")](Br("0x6")))return;this._headingOptions=t.config.get("heading.options");const e=t[Br("0x4")],n=t[Br("0x3")][Br("0xd")](Br("0xf"));n[Br("0xc")](Br("0xa"));for(const t of this[Br("0x17")])Br("0x10")!=t[Br("0xe")]&&n[Br("0x5")][Br("0x15")](t[Br("0xe")],(n=>{const i=this._getHeadingLevel(t.model);return null!==i?(s=n,x=i,Ji(e,Br("0x16"),[s,x])):(o=n,r=t[Br("0x11")],Ji(e,"ELEMENT_HEADING_CUSTOM",[o,r]));var o,r,s,x}));this[Br("0x12")]()}[Br("0x12")](){const t=this[Br("0x7")],e=t[Br("0x4")];t[Br("0x3")].get(Br("0xf"))[Br("0x5")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Br("0x14")])return;const{data:n}=t;if(n&&Br("0xa")==n[Br("0x19")]){const t=n.commandParams[0].value,s=this[Br("0x2")](t);if(null!==s)return{type:Br("0x1a"),content:Ji(e,Br("0x18"),(1,r=s,Ji(e,Br("0x16"),[1,r])))};const x=this[Br("0x17")][Br("0x0")]((e=>e[Br("0xe")]===t))[Br("0x11")];return{type:Br("0x1a"),content:Ji(e,"*Change to:* %0",(i=1,o=x,Ji(e,Br("0x9"),[i,o])))}}var i,o,r}))}_getHeadingLevel(t){var e,n;const i=t[Br("0x13")](/^heading(\d+)/);if(i)return i[1];const o=null===(e=this._headingOptions)||void 0===e?void 0:e.find((e=>e[Br("0xe")]==t));if(o&&o.view){const t=o.view,e=(null!==(n=t[Br("0x1")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["*Set highlight:* %0","title","commandParams","HighlightEditing","color","TrackChangesEditing","highlight","type","_descriptionFactory","has","commandName","format","registerDescriptionCallback","get","highlight.options","*Remove highlight*","locale","config","registerAttributeLabel","plugins","model","afterInit","FORMAT_HIGHLIGHT","editor","_registerLegacyDescription","formatInline"];var jr,Gr;jr=Ur,Gr=498,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0x11")](){const t=this.editor;if(!t[Vr("0xf")][Vr("0x5")](Vr("0x19")))return;const e=t[Vr("0xf")][Vr("0x9")]("TrackChangesEditing"),n=t[Vr("0xc")];e._enableDefaultAttributesIntegration(Vr("0x2"),["highlight"]),e[Vr("0x4")][Vr("0xe")]("highlight",Ji(n,Vr("0x12"))),this[Vr("0x14")]()}[Vr("0x14")](){const t=this[Vr("0x13")],e=t[Vr("0xc")];t[Vr("0xf")][Vr("0x9")](Vr("0x1"))._descriptionFactory[Vr("0x8")]((n=>{if(Vr("0x15")!=n[Vr("0x3")])return;const{data:i}=n;if(i&&"highlight"==i[Vr("0x6")]){const n=e.t,o=i[Vr("0x18")][0].value;if(o){const i=t[Vr("0xd")].get(Vr("0xa")).find((t=>t[Vr("0x10")]==o)),r=n(i[Vr("0x17")]).toLowerCase();return{type:Vr("0x7"),content:Ji(e,Vr("0x16"),r),color:{value:i[Vr("0x0")],title:i[Vr("0x17")]}}}return{type:"format",content:Ji(e,Vr("0xb"),Ji(e,Vr("0x12")))}}}))}}const zr=["div","conversion","editor","enableCommand","for","has","showSuggestionHighlights","dataDowncast","locale","createEmptyElement","ck-horizontal-line","insert","afterInit","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","get","horizontalLine","HorizontalLineEditing","plugins","createContainerElement","elementToStructure","createPositionAt","registerElementLabel","addClass","high"];var Wr,Kr;Wr=zr,Kr=189,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x5")](){const t=this[qr("0x15")];if(!t[qr("0xc")][qr("0x18")](qr("0xb")))return;t.plugins[qr("0x9")]("TrackChangesEditing")[qr("0x16")](qr("0xa"));const e=t.plugins[qr("0x9")](qr("0x6")),n=t[qr("0x1")];e[qr("0x8")][qr("0x10")](qr("0xa"),(t=>Ji(n,qr("0x7"),t))),t[qr("0x14")][qr("0x17")](qr("0x0"))[qr("0xe")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qr("0x19")])return null;const i=e[qr("0xd")](qr("0x13")),o=e[qr("0x2")]("hr");return e[qr("0x11")](qr("0x3"),i),e[qr("0x4")](e[qr("0xf")](i,0),o),i},converterPriority:qr("0x12")})}}const $r=["_descriptionFactory","TrackChangesEditing","rawHtml","get","editor","nodeAfter","HtmlEmbed","*Change %0 content*","ELEMENT_HTML_EMBED","format","locale","plugins","_registerLegacyDescription","element","registerDescriptionCallback","htmlEmbed","getFirstRange","start","key","commandName","afterInit","value"];var Zr,Yr;Zr=$r,Yr=104,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x4")](){const t=this.editor;if(!t[Jr("0x11")].has(Jr("0xc")))return;const e=t[Jr("0x11")][Jr("0x9")](Jr("0x7")),n=t[Jr("0x10")];e[Jr("0x6")].registerElementLabel(Jr("0x8"),(t=>Ji(n,"ELEMENT_HTML_EMBED",t))),e._enableDefaultAttributesIntegration(Jr("0x15"),[],[Jr("0x5")]),e[Jr("0x6")].registerDescriptionCallback((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(e&&Jr("0x5")==e[Jr("0x2")]&&t[Jr("0x0")]()[Jr("0x1")][Jr("0xb")].is(Jr("0x13"),"rawHtml")){const t=Ji(n,"ELEMENT_HTML_EMBED");return{type:Jr("0xf"),content:Ji(n,Jr("0xd"),t)}}})),this[Jr("0x12")]()}_registerLegacyDescription(){const t=this[Jr("0xa")],e=t.locale;t[Jr("0x11")][Jr("0x9")](Jr("0x7"))[Jr("0x6")][Jr("0x14")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&Jr("0x15")==n[Jr("0x3")]){const t=Ji(e,Jr("0xe"));return{type:Jr("0xf"),content:Ji(e,"*Change %0 content*",t)}}}))}}const ts=["document","element","registerDescriptionCallback","Inline image to block image","find","_descriptionFactory","toNext","_enableDefaultAttributesIntegration","editor","resizeImage","imageInline","model","TrackChangesEditing","detach","commandName","has","alt","discard","addObject","ImageResize","fromPosition","ImageCaptionEditing","key","start","accept","registerAttributeLabel","toPrevious","isEqual","registerElementLabel","type","markDeletion","findIndex","attribute","schema","markBlockFormat","nodeBefore","get","convertInlineImageToBlock","change","ImageUtils","format","getCaptionFromImageModelElement","uploadImage","FORMAT_IMAGE_SIZE","createRange","locale","width","registerCustomCallback","isCollapsed","previous","ImageEditing","filter","getFirstRange","*Set image width:* %0","imageTypeInline","imageTextAlternative","newValue","*Reset image width*","insertion","_suggestionFactory","_registerLegacyDescription","insertImage","toggleImageCaption","getClosestSelectedImageElement","enableCommand","Block image to inline image","isIntersecting","markInsertion","ImageInlineEditing","isOwn","resizedWidth","createRangeOn","imageCaption","getContainedElement","getSuggestionCallback","end","chain","forceDefaultExecution","deletion","isBefore","commandParams","imageTypeBlock","getNearestSelectionRange","afterInit","selection","ELEMENT_CAPTION","plugins","subType","forward","ImageBlockEditing","formatBlock","ELEMENT_INLINE_IMAGE","isBlockImage","convertBlockImageToInline","ELEMENT_IMAGE"];var es,ns;es=ts,ns=246,function(t){for(;--t;)es.push(es.shift())}(++ns);const is=function(t,e){return ts[t-=0]};class os extends t.Plugin{[is("0x1b")](){const t=this.editor;if(!t.plugins[is("0x36")](is("0x59")))return;const e=t.plugins.get(is("0x33")),n=t[is("0x1e")][is("0x4b")](is("0x4e")),i=t.locale;e[is("0x8")](is("0x5")),e[is("0x2c")][is("0x43")]("imageBlock",(t=>Ji(i,is("0x26"),t))),e[is("0x2c")].registerElementLabel(is("0x31"),(t=>Ji(i,is("0x23"),t))),e._descriptionFactory[is("0x43")]("caption",(()=>Ji(i,is("0x1d")))),t[is("0x1e")][is("0x36")]("ImageUploadEditing")&&e[is("0x8")](is("0x51")),t[is("0x1e")][is("0x36")](is("0x21"))&&t[is("0x1e")][is("0x36")](is("0xc"))&&(e[is("0x8")]("imageTypeInline",((i,o)=>{const r=n.getClosestSelectedImageElement(t.model[is("0x27")].selection);t.model[is("0x4d")]((()=>{e[is("0x49")](r,{commandName:is("0x5d"),commandParams:[o]},[],"convertBlockImageToInline")}))})),e.enableCommand(is("0x19"),((i,o)=>{t.model[is("0x4d")]((r=>{let x=n.getClosestSelectedImageElement(t[is("0x32")].document[is("0x1c")]),a=r[is("0xf")](x);const c=s.LivePosition.fromPosition(a[is("0x3e")],is("0x41")),l=s.LivePosition[is("0x3b")](a[is("0x13")],is("0x2d"));e[is("0x15")]((()=>i(o))),x=n.getClosestSelectedImageElement(t[is("0x32")][is("0x27")].selection),a=r[is("0xf")](x);const u=r[is("0x53")](c,l);c[is("0x34")](),l.detach(),e[is("0x49")](x,{commandName:"imageTypeInline",commandParams:[o]},[],is("0x4c")),u[is("0x3e")][is("0x17")](a.start)&&e[is("0xb")](r[is("0x53")](u[is("0x3e")],a[is("0x3e")]),"convertInlineImageToBlock"),a[is("0x13")][is("0x17")](u[is("0x13")])&&e[is("0xb")](r.createRange(a[is("0x13")],u.end),is("0x4c"))}))})),e[is("0x3")][is("0x56")](is("0x22"),is("0x4c"),"join",(()=>!1)),e[is("0x3")][is("0x56")](is("0x22"),is("0x4c"),is("0x3f"),(()=>!1)),e[is("0x3")][is("0x56")]("formatBlock",is("0x4c"),is("0x38"),e[is("0x3")][is("0x12")](is("0x22"),"",is("0x3f"))),e._suggestionFactory[is("0x56")](is("0x2"),is("0x4c"),"join",(()=>!1)),e[is("0x3")][is("0x56")]("insertion",is("0x4c"),"discard",(([n])=>{const i=e[is("0x3")][is("0x12")](is("0x2"),"",is("0x38"));let o=n.start,r=n[is("0x13")];const s=t[is("0x32")].schema[is("0x1a")](o,"backward"),x=t.model[is("0x48")][is("0x1a")](r,is("0x20"));s[is("0x57")]&&(o=s[is("0x3e")]),x.isCollapsed&&(r=x[is("0x13")]),i([t[is("0x32")].createRange(o,r)])})),e._suggestionFactory[is("0x56")](is("0x22"),"convertInlineImageToBlock",is("0x14"),x),e[is("0x3")][is("0x56")]("insertion",is("0x4c"),is("0x14"),x)),t[is("0x1e")][is("0x36")](is("0x3c"))&&(e.enableCommand(is("0x6"),((i,o)=>{const r=t[is("0x1e")][is("0x4b")]("ImageCaptionUtils");let s=n[is("0x7")](t.model[is("0x27")][is("0x1c")]),x=r[is("0x50")](s);t[is("0x32")].change((()=>{if(x)return void e[is("0x45")](t[is("0x32")].createRangeOn(x));const a=n[is("0x24")](s);i(o),s=n[is("0x7")](t[is("0x32")][is("0x27")].selection),x=r[is("0x50")](s),e[is("0xb")](t[is("0x32")][is("0xf")](x),a?null:is("0x10"))}))})),e[is("0x3")].registerCustomCallback(is("0x2"),is("0x10"),"chain",x));const o=[{type:is("0x22"),subType:"imageStylePreApply"},{type:is("0x2"),subType:"imageCaption"},{type:is("0x22"),subType:is("0x4c")},{type:is("0x2"),subType:"convertInlineImageToBlock"}];function r(t,i){const r=o[is("0x46")]((({type:e,subType:n})=>t[is("0x44")]==e&&t.subType==n)),s=o[is("0x46")]((({type:t,subType:e})=>i[is("0x44")]==t&&i[is("0x1f")]==e));if(r<0||s<0)return!1;const x=t[is("0x5b")](),a=i[is("0x5b")]();if((0==r||1==r)&&2==s&&x[is("0xa")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,is("0x2"))[is("0x5a")]((({suggestion:t,meta:e})=>e[is("0xd")]&&is("0x4c")==t[is("0x1f")]));if(t.length>1&&a.end[is("0x42")](x[is("0x3e")]))return!0;if(1==t.length&&(x[is("0x3e")][is("0x42")](a[is("0x13")])||x[is("0x13")][is("0x42")](a.start)))return!0}if(3==r&&3==s&&x.start[is("0x17")](a[is("0x3e")])){const t=x.end.nodeAfter,e=a[is("0x3e")][is("0x4a")];return n[is("0x24")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t.plugins[is("0x36")](is("0x3a"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[is("0xe")]),e[is("0x2c")][is("0x40")](is("0xe"),Ji(i,is("0x52")))),t[is("0x1e")][is("0x36")]("ImageTextAlternativeEditing")&&e[is("0x2e")](is("0x5e"),[],[is("0x37")]),e._descriptionFactory[is("0x29")]((t=>{if(o[is("0x2b")]((({type:e,subType:n})=>t.type==e&&t[is("0x1f")]==n)))return t[is("0x58")]?{}:void 0})),e[is("0x2c")][is("0x29")]((t=>{if(is("0x2")==t[is("0x44")]||is("0x16")==t[is("0x44")]){const e=t[is("0x11")]();if(e&&e.is(is("0x28"),"caption"))return{type:is("0x2")==t.type?is("0x39"):"removeObject",element:e,quantity:1}}})),e[is("0x2c")][is("0x29")]((t=>is("0x22")==t[is("0x44")]&&is("0x4c")==t.subType?{type:is("0x4f"),content:is("0x2a")}:is("0x22")==t[is("0x44")]&&is("0x25")==t[is("0x1f")]?{type:is("0x4f"),content:is("0x9")}:void 0)),e[is("0x2c")].registerDescriptionCallback((t=>{if(is("0x47")!=t.type)return;const{data:e}=t;if(!e||is("0x37")!=e[is("0x3d")])return;const n=e[is("0x0")];return n?{type:is("0x4f"),content:Ji(i,"*Set image text alternative:* %0",'"'+n+'"')}:{type:"format",content:Ji(i,"*Remove image text alternative*")}})),this[is("0x4")]()}[is("0x4")](){const t=this[is("0x2f")],e=t[is("0x54")];t[is("0x1e")][is("0x4b")](is("0x33"))[is("0x2c")][is("0x29")]((t=>{if(is("0x22")!=t[is("0x44")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if("imageTextAlternative"==n[is("0x35")]){const t=n.commandParams[0][is("0x0")];return t?{type:is("0x4f"),content:Ji(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:is("0x4f"),content:Ji(e,"*Remove image text alternative*")}}if(is("0x30")==n.commandName){const t=n[is("0x18")][0][is("0x55")];return t?{type:is("0x4f"),content:Ji(e,is("0x5c"),t)}:{type:is("0x4f"),content:Ji(e,is("0x1"))}}}}))}}const rs=["*Replace image URL*","src","get","locale","format","_descriptionFactory","_registerLegacyDescription","afterInit","registerCustomCallback","getSuggestionCallback","newValue","_enableDefaultAttributesIntegration","plugins","attribute","registerDescriptionCallback","_suggestionFactory","commandName","TrackChangesEditing","replaceImageSource","editor","key","has","discard","type","formatBlock"];var ss,xs;ss=rs,xs=211,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x15")](){if(!this[as("0x8")][as("0x1")][as("0xa")]("ImageEditing"))return;const t=this.editor[as("0x11")],e=this[as("0x8")][as("0x1")][as("0x10")](as("0x6"));e[as("0x0")]("replaceImageSource",[],[as("0xf")]),e[as("0x13")].registerDescriptionCallback((e=>{if(as("0x2")!=e[as("0xc")])return;const{data:n}=e;return n&&"src"==n[as("0x9")]?n[as("0x18")]&&n.oldValue?{type:as("0x12"),content:Ji(t,as("0xe"))}:{type:as("0x12"),content:""}:void 0})),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this[as("0x8")][as("0x1")].get(as("0x6"));t[as("0x4")][as("0x16")](as("0xd"),as("0x7"),"accept",t[as("0x4")][as("0x17")](as("0xd"),null,as("0xb"))),t[as("0x4")][as("0x16")]("formatBlock",as("0x7"),as("0xb"),t[as("0x4")][as("0x17")](as("0xd"),null,"accept")),this[as("0x14")]()}[as("0x14")](){const t=this[as("0x8")],e=t.locale;t[as("0x1")][as("0x10")](as("0x6"))[as("0x13")][as("0x3")]((t=>{if(as("0xd")!=t[as("0xc")]&&"formatInline"!=t[as("0xc")])return;const{data:n}=t;return n&&as("0x7")===n[as("0x5")]?{type:as("0x12"),content:Ji(e,as("0xe"))}:void 0}))}}const ls=["author","discard","imageStylePreApply","filter","head","FORMAT_SIDE_IMAGE","formatInline","getSuggestionCallback","refresh","length","imageStyle","shouldConvertImageType","insertion","side","normalizedStyles","getContainedElement","getSuggestions","differ","getClosestSelectedImageElement","name","findIndex","markInlineFormat","imageTypeInline","_findSuggestions","model","commandName","createRangeOn","afterInit","commands","value","TrackChangesEditing","_suggestionFactory","Users","convertInlineImageToBlock","get","_registerLegacyDescription","formatBlock","locale","editor","chain","hasSuggestion","_splitMarkerName","isBlockImage","isEqual","markBlockFormat","title","imageCaption","isIntersecting","_descriptionFactory","ImageStyleEditing","subType","isOwn","start","join","imageStylePostApply","plugins","next","registerPostFixer","change","commandParams","registerCustomCallback","end","ImageUtils","document","from","getFirstRange","getSuggestion","accept","type","isBefore","toLowerCase","discardSuggestion","selection","newRange","*Format:* %0","suggestion"];var us,ds;us=ls,ds=100,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x3")](){const t=this[gs("0xe")];if(!t[gs("0x1f")].has(gs("0x19")))return;const n=t.plugins[gs("0xa")](gs("0x6")),i=t[gs("0x1f")][gs("0xa")](gs("0x26")),o={};n.enableCommand(gs("0x3e"),((o,r)=>{const s=t[gs("0x1f")][gs("0xa")](gs("0x8")).me,x=t[gs("0x4")][gs("0xa")](gs("0x3e"));let a=i[gs("0x46")](t[gs("0x0")].document.selection),c=t[gs("0x0")][gs("0x2")](a),l=x.value;if(l==r[gs("0x5")])return;const u={commandName:gs("0x3e"),commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x0")][gs("0x22")]((()=>{if(n[gs("0x44")]()[gs("0x37")]((t=>t.isInContent&&s==t[gs("0x34")]&&("formatBlock"==t.type||"formatInline"==t[gs("0x2c")])&&(gs("0x36")==t[gs("0x1a")]||gs("0x1e")==t[gs("0x1a")])&&t.getFirstRange().isEqual(c))).forEach((t=>n[gs("0x2f")](t[gs("0x38")]))),a=i[gs("0x46")](t.model.document[gs("0x30")]),c=t.model[gs("0x2")](a),x[gs("0x3c")](),t[gs("0x4")][gs("0xa")](gs("0x4a")).refresh(),t[gs("0x4")][gs("0xa")]("imageTypeBlock").refresh(),l=x[gs("0x5")],l!=r[gs("0x5")])return i.isInlineImage(a)&&x[gs("0x3f")](r[gs("0x5")],a)?(o({...r,setImageSizes:!1}),a=i[gs("0x46")](t[gs("0x0")].document[gs("0x30")]),void n[gs("0x14")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x36"))):void(i[gs("0x12")](a)?n[gs("0x14")](a,u,[],gs("0x1e")):n[gs("0x49")](c,u,gs("0x1e")))}))}));for(const e of t[gs("0x1f")][gs("0xa")](gs("0x19"))[gs("0x42")])o[e[gs("0x47")]]=e[gs("0x15")][gs("0x2e")]();n._suggestionFactory.registerCustomCallback("formatBlock",gs("0x36"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")]("formatInline",gs("0x1e"),gs("0x1d"),(()=>!1)),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x2b"),(([t])=>{i.setImageNaturalSizeAttributes(t.getContainedElement())})),n[gs("0x7")][gs("0x24")](gs("0xc"),gs("0x36"),gs("0x35"),((t,e)=>{n[gs("0x7")][gs("0x3b")](gs("0xc"),"","accept")(t,{commandName:e[gs("0x1")],commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x24")]("formatBlock",gs("0x36"),gs("0xf"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:"formatBlock",subType:gs("0x36")},{type:"insertion",subType:gs("0x16")},{type:gs("0xc"),subType:gs("0x9")},{type:gs("0x40"),subType:gs("0x9")}];function s(t,e){const o=r[gs("0x48")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=r[gs("0x48")]((({type:t,subType:n})=>e[gs("0x2c")]==t&&e.subType==n));if(o<0||s<0)return!1;const x=t[gs("0x29")](),a=e[gs("0x29")]();if((0==o||1==o)&&2==s&&x[gs("0x17")](a))return!0;if(2==o&&3==s){const t=n[gs("0x4b")](x,gs("0x40"))[gs("0x37")]((({suggestion:t,meta:e})=>e[gs("0x1b")]&&gs("0x9")==t.subType));if(t[gs("0x3d")]>1&&a[gs("0x25")][gs("0x13")](x.start))return!0;if(1==t[gs("0x3d")]&&(x[gs("0x1c")][gs("0x13")](a[gs("0x25")])||x[gs("0x25")][gs("0x13")](a.start)))return!0}if(3==o&&3==s&&x[gs("0x1c")][gs("0x2d")](a[gs("0x1c")])){const t=x.end.nodeAfter,e=a[gs("0x1c")].nodeBefore;return i[gs("0x12")](t)&&t===e}return!1}t[gs("0x0")][gs("0x27")][gs("0x21")]((()=>{let e=!1;const o=Array[gs("0x28")](t[gs("0x0")][gs("0x27")][gs("0x45")].getChangedMarkers());for(const{name:t,data:r}of o){const{group:o,type:s,subType:x,id:a}=n[gs("0x11")](t);if(gs("0x33")==o&&n[gs("0x10")](a)){if("formatBlock"==s&&(gs("0x36")==x||"imageStylePostApply"==x)){const t=n[gs("0x2a")](a);if(r[gs("0x31")]){const o=t.getFirstRange()[gs("0x43")]();if(i[gs("0x12")](o))continue;n.discardSuggestion(t),e=!0}}if("insertion"==s&&gs("0x16")==x&&!r[gs("0x31")]){const t=n[gs("0x2a")](a);t[gs("0x20")]&&t[gs("0x20")].isInContent&&(n.discardSuggestion(t[gs("0x20")]),e=!0)}}}return e})),this._registerLegacyDescription(o)}[gs("0xb")](t){const e=this.editor,n=e[gs("0xd")];e[gs("0x1f")][gs("0xa")]("TrackChangesEditing")[gs("0x18")].registerDescriptionCallback((e=>{if(gs("0xc")!=e[gs("0x2c")]&&gs("0x3a")!=e[gs("0x2c")])return;const{data:i}=e;if(!i||gs("0x3e")!=i[gs("0x1")])return;const o=i[gs("0x23")][0][gs("0x5")];return r=gs("0x41")===o?Ji(n,gs("0x39")):t[o]||o,{type:"format",content:Ji(n,gs("0x32"),r)};var r}))}}const ms=["editor","trackChanges","afterInit","plugins","dataInsert","high","_setSuggestionData","collaboration_features","lowest","execute","get","importWord","_trackChangesValueDuringImport","_trackChangesExecuted","commands","TrackChangesEditing","_handleImportedData","value","bind","enableCommand","listenTo"];var hs,ps;hs=ms,ps=415,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x11")]=!1,this[bs("0x12")]=!1}[bs("0x7")](){const t=this[bs("0x5")],e=t.commands[bs("0xf")](bs("0x10")),n=t[bs("0x13")][bs("0xf")](bs("0x6"));e&&(e.on("execute",((t,[,e])=>{this[bs("0x11")]=n[bs("0x1")],e[bs("0xc")].track_changes=!this._trackChangesValueDuringImport}),{priority:bs("0xa")}),this[bs("0x4")](e,bs("0x9"),this[bs("0x0")][bs("0x2")](this)),this[bs("0x4")](e,"dataInsert",(()=>{this[bs("0x12")]&&(n[bs("0xe")](),this[bs("0x12")]=!1)}),{priority:bs("0xd")}),t.plugins[bs("0xf")](bs("0x14"))[bs("0x3")](bs("0x10")))}[bs("0x0")](t,e){const{suggestions:n}=e,i=this[bs("0x5")][bs("0x13")][bs("0xf")]("trackChanges"),o=i[bs("0x1")];this[bs("0x11")]!==o&&(i.execute(),this[bs("0x12")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:i})=>{const o={id:t,type:e,authorId:this[bs("0x5")].plugins[bs("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:bs("0x10")}}};this[bs("0x5")][bs("0x8")][bs("0xf")](bs("0x14"))[bs("0xb")](o)}))}}const _s=["has","enableCommand","indentBlock","*Indent:* %0","locale","TrackChangesEditing","getItems","plugins","_enableDefaultAttributesIntegration","outdentBlock","outdent","registerDescriptionCallback","editor","commandName","indent","_registerBlockAttribute","get","blockIndent","registerAttributeLabel","IndentEditing","formatBlock","format","*Outdent:* %0","IndentBlock","_registerLegacyDescription","getItemLabel","_descriptionFactory"];var Ts,ys;Ts=_s,ys=278,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this.editor,e=t[Cs("0x1a")][Cs("0x8")](Cs("0x18"));if(t[Cs("0x1a")][Cs("0x13")](Cs("0xb"))&&(e.enableCommand(Cs("0x6")),e[Cs("0x14")](Cs("0x2"))),t[Cs("0x1a")][Cs("0x13")](Cs("0xf")))for(const t of[Cs("0x15"),"outdentBlock"])e[Cs("0x0")](t);const n=t[Cs("0x17")];e[Cs("0x7")]("blockIndent"),e[Cs("0x12")][Cs("0xa")](Cs("0x9"),Ji(n,"FORMAT_INDENT")),this[Cs("0x10")]()}[Cs("0x10")](){const t=this[Cs("0x4")],e=t.locale,n=t.plugins[Cs("0x8")](Cs("0x18"));n[Cs("0x12")][Cs("0x3")]((t=>{if(Cs("0xc")!=t.type)return;const{data:i}=t;if(!i)return;if("indentBlock"!=i[Cs("0x5")]&&Cs("0x1")!=i[Cs("0x5")])return;const o=t[Cs("0x19")]()[0],r=n[Cs("0x12")][Cs("0x11")](o);return"indentBlock"==i[Cs("0x5")]?{type:Cs("0xd"),content:Ji(e,Cs("0x16"),r)}:Cs("0x1")==i[Cs("0x5")]?{type:Cs("0xd"),content:Ji(e,Cs("0xe"),r)}:void 0}))}}var ks,Is,Rs=["get","input","plugins","TrackChangesEditing","editor","enableCommand"];ks=Rs,Is=415,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get requires(){return[Ho.Input]}init(){this[Ss("0x3")][Ss("0x1")][Ss("0x5")](Ss("0x2"))[Ss("0x4")](Ss("0x0"))}}const Ns=["_registerLegacyDescription","get","registerAttributeLabel","plugins","formatInline","*Remove link*","format","_descriptionFactory","commands","commandParams","toLowerCase","has","LinkEditing","unlink","registerDescriptionCallback","_enableDefaultAttributesIntegration","link","manualDecorators","map","commandName","linkHref","*Set link:* %0","editor","type","TrackChangesEditing","locale","label"];var Ls,Ms;Ls=Ns,Ms=369,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this[ws("0x4")];if(!t[ws("0xc")][ws("0x14")](ws("0x15")))return;const e=t[ws("0xc")].get(ws("0x6")),n=t[ws("0x11")][ws("0xa")]("link");e[ws("0x18")](ws("0x19"),[ws("0x2"),...n[ws("0x1a")][ws("0x0")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x16"));for(const t of n[ws("0x1a")])e[ws("0x10")][ws("0xb")](t.id,"link ("+t[ws("0x8")][ws("0x13")]()+")");e._descriptionFactory[ws("0x17")]((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x2")!=n.key)return;const i=n.newValue,o=t[ws("0x7")];return{type:ws("0xf"),content:i?Ji(o,ws("0x3"),'"'+i+'"'):Ji(o,ws("0xe"))}})),this[ws("0x9")]()}[ws("0x9")](){const t=this.editor,e=t.locale;t.plugins[ws("0xa")](ws("0x6"))[ws("0x10")][ws("0x17")]((t=>{if(ws("0xd")!=t[ws("0x5")])return;const{data:n}=t;if(n){if(ws("0x19")==n[ws("0x1")]){const t=n[ws("0x12")][0];return{type:ws("0xf"),content:Ji(e,ws("0x3"),'"'+t+'"')}}return ws("0x16")==n[ws("0x1")]?{type:"format",content:Ji(e,ws("0xe"))}:void 0}}))}}const Fs=["listItem","push","markBlockFormat","listType","previousSibling","name","blockName","format","element","locale","editor","paragraph","getAttribute","get","_selectedElements","createPositionAt","_descriptionFactory","*Uncheck item*","model","List","listIndent","selection","bulletedList","registerDescriptionCallback","formatInline","value","filter","from","replace","type","getSelectedBlocks","createRange","forceValue","add","TodoListEditing","checkTodoList","slice","parent","todoList","numbered","ELEMENT_LIST_ITEM","*Indent:* %0","outdentList","commandParams","plugins","todo","document","before","numberedList","commandName","has","change","registerElementLabel","afterInit","checkChild","nextSibling","schema","indentList","enableCommand","length","commands","findIndex","ELEMENT_BULLETED_LIST"];var Ds,Bs;Ds=Fs,Bs=123,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x38")](){const t=this[Ps("0xd")],e=t[Ps("0xc")];if(!t[Ps("0x2f")][Ps("0x35")]("ListEditing"))return;const n=t.plugins.get("TrackChangesEditing"),i=t[Ps("0x2f")][Ps("0x35")](Ps("0x25"));function o(e){return()=>{const i=t[Ps("0x15")].document[Ps("0x18")],o=t[Ps("0x0")][Ps("0x10")](e);if(o[Ps("0x1c")])return void t.execute(Ps("0xe"),{});const r=e[Ps("0x27")](0,-4),s=function(t,e,n){let i=Array[Ps("0x1e")](t).filter((t=>{return e=t,(i=n)[Ps("0x39")](e[Ps("0x28")],Ps("0x3"))&&!i.isObject(e);var e,i}));i=i[Ps("0x1d")]((t=>!t.is(Ps("0xb"),Ps("0x3"))||t.getAttribute(Ps("0x6"))!=e));const o=new Set;for(const t of i)t.is(Ps("0xb"),Ps("0x3"))?o[Ps("0x24")](js(t)):o[Ps("0x24")](t);return Array.from(o)}(i[Ps("0x21")](),r,t[Ps("0x15")][Ps("0x3b")]);t[Ps("0x15")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!o[Ps("0x1c")]}],formatGroupId:Ps("0x9")},Gs(t))}))}}function r(e){return()=>{const i=function(t){let e=Array[Ps("0x1e")](t);const n=e[Ps("0x1")]((t=>"listItem"!=t.name));return n>-1&&(e=e[Ps("0x27")](0,n)),e}(t.model[Ps("0x31")].selection[Ps("0x21")]()),o=t[Ps("0x15")][Ps("0x22")](t[Ps("0x15")][Ps("0x12")](i[0],Ps("0x32")),t[Ps("0x15")][Ps("0x12")](i[i[Ps("0x3e")]-1],"end"));t[Ps("0x15")].change((()=>{n.markBlockFormat(o,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x3a")];for(;t&&t[Ps("0xf")](Ps("0x17"))>n[Ps("0xf")](Ps("0x17"));)e[Ps("0x24")](t),t=t[Ps("0x3a")]}return Array[Ps("0x1e")](e)}(i))}))}}n[Ps("0x3d")](Ps("0x33"),o(Ps("0x33"))),n[Ps("0x3d")](Ps("0x19"),o("bulletedList")),i&&n[Ps("0x3d")](Ps("0x29"),o(Ps("0x29"))),n.enableCommand(Ps("0x3c"),r("indentList")),n[Ps("0x3d")](Ps("0x2d"),r(Ps("0x2d"))),i&&n[Ps("0x3d")]("checkTodoList",(()=>{const e=t[Ps("0x0")][Ps("0x10")]("checkTodoList"),i=Array[Ps("0x1e")](e[Ps("0x11")]);i[Ps("0x1d")]((t=>t.getAttribute("todoListChecked")!=e[Ps("0x1c")])),t[Ps("0x15")][Ps("0x36")]((()=>{for(const t of i)n[Ps("0x5")](t,{commandName:Ps("0x26"),commandParams:[{forceValue:!e[Ps("0x1c")]}]})}))})),n[Ps("0x13")][Ps("0x37")](Ps("0x3"),(t=>Ji(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x13")][Ps("0x1a")]((t=>{if("formatBlock"!=t[Ps("0x20")]&&Ps("0x1b")!=t[Ps("0x20")])return;const{data:n}=t;if(n){if(Ps("0x33")==n[Ps("0x34")]||Ps("0x19")==n[Ps("0x34")]||Ps("0x29")==n.commandName)switch(n[Ps("0x34")][Ps("0x1f")](Ps("0x16"),"")){case"bulleted":return i(Ji(e,Ps("0x2")));case Ps("0x2a"):return i(Ji(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x30"):return i(Ji(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[Ps("0x34")])return{type:Ps("0xa"),content:Ji(e,Ps("0x2c"),Ji(e,Ps("0x2b")))};if(Ps("0x2d")==n[Ps("0x34")])return{type:Ps("0xa"),content:Ji(e,"*Outdent:* %0",Ji(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x34")])return n[Ps("0x2e")][0][Ps("0x23")]?{type:Ps("0xa"),content:Ji(e,"*Check item*")}:{type:Ps("0xa"),content:Ji(e,Ps("0x14"))}}function i(t){return{type:"format",content:Ji(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t.getAttribute(Ps("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x7")].is(Ps("0xb"),Ps("0x3"));){const i=t.previousSibling[Ps("0xf")](Ps("0x17"));if(i==e)n=t.previousSibling;else if(i<e)break;t=t[Ps("0x7")]}return n}function Gs(t){const e=[];if(t.is(Ps("0xb"),Ps("0x3"))&&t[Ps("0xf")]("listIndent")>0){let n=t[Ps("0x3a")];for(;n&&Ps("0x3")==n[Ps("0x8")]&&n[Ps("0xf")](Ps("0x17"))==t[Ps("0xf")]("listIndent");)e[Ps("0x4")](n),n=n[Ps("0x3a")]}return e}const Vs=["listItem","backward","element","commandName","format","model","enableCommand","map","styles","getListTypeFromListStyleType","afterInit","editor","filter","*Format:* set order to reversed","change","registerDescriptionCallback","flat","_LIST_","_getSuggestionBlocks","getFirstPosition","*Change to:* %0","getAttribute","createPositionAt","startIndex","getSelectedBlocks","reversed","ListUtils","numbered","document","forward","listStart","plugins","handleListStyleCommand","handleDescriptions","getSiblingNodes","_getTranslationKeyForListStyle","length","type","formatInline","locale","commandParams","handleListStartCommand","createRange","has","handleListReversedCommand","selection","before","formatBlock","ListPropertiesEditing","ELEMENT_","from","*Format:* set start index to %0","toUpperCase","bind","get","push","markMultiRangeBlockFormat","listReversed","listStyle","listType","TrackChangesEditing","_getSuggestionBlocksForListStyle"];var Hs,zs;Hs=Vs,zs=248,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0xa")](){if(!this[Ws("0xb")][Ws("0x1f")][Ws("0x2b")](Ws("0x30")))return;const t=this[Ws("0xb")].config[Ws("0x36")]("list.properties"),e=this.editor[Ws("0x1f")][Ws("0x36")](Ws("0x3c"));t[Ws("0x8")]&&e[Ws("0x6")](Ws("0x3a"),this[Ws("0x20")].bind(this)),t[Ws("0x19")]&&e.enableCommand("listReversed",this[Ws("0x2c")].bind(this)),t[Ws("0x17")]&&e[Ws("0x6")]("listStart",this.handleListStartCommand[Ws("0x35")](this)),e._descriptionFactory[Ws("0xf")](this[Ws("0x21")][Ws("0x35")](this))}[Ws("0x20")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),i=this[Ws("0x3d")]();this[Ws("0xb")][Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](i,{commandName:"listStyle",commandParams:[{type:e[Ws("0x25")]}],formatGroupId:Ws("0x3a")})}))}[Ws("0x2c")](t,e={}){const n=this[Ws("0xb")].plugins[Ws("0x36")](Ws("0x3c")),i=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&"numbered"===t[Ws("0x15")]("listType")));if(i[Ws("0x24")]<1)return;const o=i.map((t=>this[Ws("0xb")][Ws("0x5")][Ws("0x2a")](this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,Ws("0x2e")),this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x39"),commandParams:[{reversed:e[Ws("0x19")]}],formatGroupId:Ws("0x39")})}))}[Ws("0x29")](t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),i=this._getSuggestionBlocks((t=>t.is(Ws("0x2"),Ws("0x0"))&&Ws("0x1b")===t.getAttribute(Ws("0x3b"))));if(i[Ws("0x24")]<1)return;const o=i.map((t=>this.editor[Ws("0x5")][Ws("0x2a")](this[Ws("0xb")].model.createPositionAt(t,"before"),this[Ws("0xb")][Ws("0x5")].createPositionAt(t,0))));this.editor[Ws("0x5")][Ws("0xe")]((()=>{n[Ws("0x38")](o,{commandName:Ws("0x1e"),commandParams:[{startIndex:e[Ws("0x17")]}],formatGroupId:Ws("0x1e")})}))}[Ws("0x21")](t){if(Ws("0x2f")!=t[Ws("0x25")]&&Ws("0x26")!=t[Ws("0x25")])return;const e=this[Ws("0xb")][Ws("0x27")],{data:n}=t;if(!n)return;let i,o;switch(n[Ws("0x3")]){case Ws("0x3a"):i=Ws("0x14"),o={type:"format",content:Ji(e,i,Ji(e,this[Ws("0x23")](n[Ws("0x28")][0][Ws("0x25")])))};break;case Ws("0x39"):i=n.commandParams[0].reversed?Ws("0xd"):"*Format:* set order to regular",o={type:"format",content:Ji(e,i)};break;case"listStart":i=Ws("0x33"),o={type:Ws("0x4"),content:Ji(e,i,n.commandParams[0][Ws("0x17")])}}return o}[Ws("0x3d")](){var t,e,n,i;const o=this[Ws("0xb")][Ws("0x1f")][Ws("0x36")]("ListUtils");let r=Array.from(this[Ws("0xb")][Ws("0x5")][Ws("0x1c")][Ws("0x2d")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x2"),"listItem"))&&r.unshift(...o[Ws("0x22")](this[Ws("0xb")][Ws("0x5")].document.selection[Ws("0x13")](),Ws("0x1"))),(null===(e=r[r[Ws("0x24")]-1])||void 0===e?void 0:e.is("element",Ws("0x0")))&&r[Ws("0x37")](...o[Ws("0x22")](this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")].getLastPosition(),Ws("0x1d"))),r=[...new Set(r)],(null===(i=null===(n=this[Ws("0xb")].model[Ws("0x1c")][Ws("0x2d")][Ws("0x13")]())||void 0===n?void 0:n.parent)||void 0===i?void 0:i.is("element","listItem"))&&(r=r[Ws("0xc")]((t=>t.is(Ws("0x2"),Ws("0x0"))))),r}[Ws("0x12")](t){const e=this[Ws("0xb")][Ws("0x1f")].get("ListUtils");let n=Array[Ws("0x32")](this[Ws("0xb")][Ws("0x5")][Ws("0x1c")].selection[Ws("0x18")]()).filter(t)[Ws("0x7")]((t=>{const n=this[Ws("0xb")][Ws("0x5")][Ws("0x16")](t,0);return[...e[Ws("0x22")](n,"backward"),...e[Ws("0x22")](n,"forward")]}))[Ws("0x10")]();return n=[...new Set(n)],n}[Ws("0x23")](t){return Ws("0x31")+this[Ws("0xb")][Ws("0x1f")][Ws("0x36")](Ws("0x1a"))[Ws("0x9")](t)[Ws("0x34")]()+Ws("0x11")+t[Ws("0x34")]().replace(/-/g,"_")}}const qs=["createEmptyElement","attribute:url:media","stop","MediaEmbedEditing","downcastDispatcher","for","registerElementLabel","media","options","TrackChangesEditing","locale","afterInit","has","plugins","high","editor","showSuggestionHighlights","conversion","_descriptionFactory","ELEMENT_MEDIA","get","dataDowncast","enableCommand"];var Xs,$s;Xs=qs,$s=250,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xe")](){const t=this[Zs("0x12")];if(!t[Zs("0x10")][Zs("0xf")](Zs("0x6")))return;const e=t[Zs("0x10")][Zs("0x0")](Zs("0xc")),n=t[Zs("0xd")];e[Zs("0x2")]("mediaEmbed"),e[Zs("0x15")][Zs("0x9")]("media",(t=>Ji(n,Zs("0x16"),t))),t[Zs("0x14")][Zs("0x8")](Zs("0x1")).elementToElement({model:Zs("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x3")]("div")},converterPriority:Zs("0x11")}),t.data[Zs("0x7")].on(Zs("0x4"),((t,e,n)=>{n[Zs("0xb")][Zs("0x13")]&&t[Zs("0x5")]()}),{priority:Zs("0x11")})}}const Js=["TrackChangesEditing","has","plugins","enableCommand","mention","MentionEditing","editor","get","afterInit"];var Qs,tx;Qs=Js,tx=161,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x7")];t.plugins[ex("0x2")](ex("0x6"))&&t[ex("0x3")][ex("0x8")](ex("0x1"))[ex("0x4")](ex("0x5"))}}const ix=["registerElementLabel","get","_descriptionFactory","has","enableCommand","editor","locale","afterInit","pageBreak","plugins","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing"];var ox,rx;ox=ix,rx=489,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return ix[t-=0]};class xx extends t.Plugin{[sx("0xc")](){const t=this[sx("0xa")];if(!t.plugins[sx("0x8")](sx("0x3")))return;t[sx("0x1")][sx("0x6")](sx("0x4"))[sx("0x9")]("pageBreak");const e=t[sx("0x1")].get(sx("0x4")),n=t[sx("0xb")];e[sx("0x7")][sx("0x5")](sx("0x0"),(t=>Ji(n,sx("0x2"),t)))}}const ax=["format","plugins","registerDescriptionCallback","*Insert:* %0","getFirstRange","get","_registerLegacyDescription","model","end","_descriptionFactory","isTouching","highest","commandName","$text","isBlock","addMarker:suggestion:insertion","toViewPosition","span","schema","writer","data","mapper","downcastDispatcher","addClass","nodeAfter","type","editor","*Change to:* %0","markerName","showSuggestionHighlights","consume","editing","TrackChangesEditing","paragraph","insertion","insertParagraph","_enableDefaultAttributesIntegration","createUIElement","markerRange","ck-suggestion-marker--active","formatBlock","getItemLabel","start","consumable","name","locale","has","insert","isLimit","includes"];var cx,lx;cx=ax,lx=202,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[ux("0x2c")]("Paragraph"))return;const e=t[ux("0x2b")],n=t[ux("0x31")][ux("0x3")](ux("0x1e"));n._descriptionFactory.registerElementLabel(ux("0x1f"),(t=>Ji(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x22")]("paragraph"),n.enableCommand(ux("0x21")),t[ux("0x1d")][ux("0x14")].on(ux("0xd"),gx(t),{priority:ux("0x9")}),t[ux("0x12")][ux("0x14")].on(ux("0xd"),((e,n,i)=>{i.options[ux("0x1b")]&&gx(t,{showActiveMarker:!1})(e,n,i)}),{priority:"highest"});const i=n._descriptionFactory;i.registerDescriptionCallback((n=>{if(ux("0x20")!==n[ux("0x17")])return;const{start:o,end:r}=n[ux("0x2")]();if(!o[ux("0x8")](r)||!o.nodeAfter)return;const s=t[ux("0x5")][ux("0x10")],x=o[ux("0x16")];return s[ux("0xc")](x)&&!s[ux("0x2e")](x)&&s.checkChild(x,ux("0xb"))?{type:ux("0x20"),content:Ji(e,ux("0x1"),i[ux("0x27")](x,1))}:void 0})),this[ux("0x4")]()}[ux("0x4")](){const t=this[ux("0x18")],e=t[ux("0x2b")];t[ux("0x31")][ux("0x3")]("TrackChangesEditing")[ux("0x7")][ux("0x0")]((t=>{if(ux("0x26")!=t.type)return;const{data:n}=t;return n&&ux("0x1f")==n[ux("0xa")]?{type:ux("0x30"),content:Ji(e,ux("0x19"),Ji(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t[ux("0x31")][ux("0x3")](ux("0x1e")),s=i[ux("0x24")][ux("0x28")],x=i[ux("0x24")][ux("0x6")],a=t[ux("0x5")][ux("0x10")];if(!s[ux("0x8")](x)||!s[ux("0x16")])return;const c=s[ux("0x16")];if(a[ux("0xc")](c)&&!a[ux("0x2e")](c)&&a.checkChild(c,ux("0xb"))){if(!o[ux("0x29")][ux("0x1c")](i[ux("0x24")],n[ux("0x2a")]))return;const t=o.writer[ux("0x23")](ux("0xf"),{class:"ck-suggestion-marker-split"}),s=o[ux("0x13")][ux("0xe")](x);e&&r.activeMarkers[ux("0x2f")](i[ux("0x1a")])&&o[ux("0x11")][ux("0x15")](ux("0x25"),t),o[ux("0x11")][ux("0x2d")](s,t),o[ux("0x13")].bindElementToMarker(t,i[ux("0x1a")])}}}const fx=["registerDescriptionCallback","*Remove all formatting*","formatBlock","formatInline","TrackChangesEditing","locale","type","_enableDefaultAttributesIntegration","RemoveFormatEditing","plugins","commandName","removeFormat"];var mx,hx;mx=fx,hx=324,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this.editor;t[px("0x9")].has(px("0x8"))&&(t[px("0x9")].get(px("0x4"))[px("0x7")](px("0xb")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this.editor;t[px("0x9")].get(px("0x4"))._descriptionFactory[px("0x0")]((e=>{if(px("0x2")!=e[px("0x6")]&&px("0x3")!=e[px("0x6")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0xa")]?{type:"format",content:Ji(t[px("0x5")],px("0x1"))}:void 0}))}}const Ex=["acceptSelectedSuggestions","trackChanges","has","acceptAllSuggestions","enableCommand","discardAllSuggestions","editor","discardSelectedSuggestions","plugins","discardSuggestion","get","goToPreviousRestrictedEditingException","acceptSuggestion","goToNextRestrictedEditingException","afterInit","RestrictedEditingModeEditing"];var _x,Tx;_x=Ex,Tx=414,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x8")];if(!t.plugins[yx("0x4")](yx("0x1")))return;const e=t[yx("0xa")][yx("0xc")]("TrackChangesEditing");e[yx("0x6")](yx("0xd")),e[yx("0x6")](yx("0xf"));const n=t[yx("0xa")][yx("0xc")](yx("0x1"));n[yx("0x6")](yx("0x3")),n[yx("0x6")](yx("0xe")),n.enableCommand(yx("0xb")),n[yx("0x6")](yx("0x5")),n[yx("0x6")](yx("0x7")),n[yx("0x6")](yx("0x2")),n.enableCommand(yx("0x9"))}}const Ax=["deletion","model","softBreak","getItems","enableCommand","data","consumable","addClass","bindElementToMarker","ck-suggestion-marker--active","ELEMENT_LINE_BREAK","writer","mapper","merge","ck-suggestion-marker-","addMarker:suggestion:insertion","TrackChangesEditing","get","downcastDispatcher","options","plugins","toViewPosition","shiftEnter","addMarker:suggestion:deletion","split","test","init","includes","markerRange","addMarker:suggestion","locale","high","registerElementLabel","createUIElement","requires","markerName","editing"];var kx,Ix;kx=Ax,Ix=147,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x23")](){return[ur.ShiftEnter]}[Rx("0x1b")](){const t=this.editor,e=t.plugins[Rx("0x12")](Rx("0x11"));e[Rx("0x5")](Rx("0x17")),t[Rx("0x0")][Rx("0x13")].on(Rx("0x10"),vx(t),{priority:Rx("0x20")}),t[Rx("0x0")][Rx("0x13")].on(Rx("0x18"),vx(t),{priority:Rx("0x20")}),t[Rx("0x6")].downcastDispatcher.on(Rx("0x1e"),((e,n,i)=>{i[Rx("0x14")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,i)})),e._descriptionFactory[Rx("0x21")](Rx("0x3"),(e=>Ji(t[Rx("0x1f")],Rx("0xb"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,i,o)=>{const r=t[Rx("0x15")].get(Rx("0x11"));if(!o[Rx("0x7")][Rx("0x1a")](i[Rx("0x1d")],n.name))return;const s=t[Rx("0x2")];for(const t of i[Rx("0x1d")][Rx("0x4")]()){if(!t.is("element",Rx("0x3")))continue;const n=Rx("0x1")==i[Rx("0x24")].split(":")[1]?Rx("0xe"):Rx("0x19"),x=o[Rx("0xc")][Rx("0x22")]("span",{class:Rx("0xf")+n}),a=o[Rx("0xd")][Rx("0x16")](s.createPositionBefore(t));e&&r.activeMarkers[Rx("0x1c")](i.markerName)&&o.writer[Rx("0x8")](Rx("0xa"),x),o[Rx("0xc")].insert(a,x),o[Rx("0xd")][Rx("0x9")](x,i[Rx("0x24")])}}}const Nx=["forceValue","has","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","format","formatInline","formatBlock","commandParams","restrictedEditingException","document","get","plugins","enableCommand","commands","commandName","StandardEditingModeEditing","type","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","change","afterInit","getRanges"];var Lx,Mx;Lx=Nx,Mx=447,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xb")](){const t=this.editor,e=t.model,n=t.locale;if(!t[wx("0x2")][wx("0xe")](wx("0x6")))return;const i=t.plugins[wx("0x1")](wx("0x10")),o=wx("0x16"),r=t[wx("0x4")][wx("0x1")](o);i[wx("0x3")](o,((t,n={})=>{const s=e[wx("0x0")].selection;if(s.isCollapsed)return void t(n);const x=void 0!==n[wx("0xd")]?n.forceValue:!r.value;e[wx("0xa")]((()=>{const t=Array[wx("0xf")](s[wx("0xc")]());for(const n of t){const t=x?[n]:Xo(o,n,e);for(const e of t)i.markInlineFormat(e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),i[wx("0x8")].registerDescriptionCallback((t=>{if(wx("0x14")!=t.type&&wx("0x13")!=t[wx("0x7")])return;const{data:e}=t;return e&&e[wx("0x5")]==o?e[wx("0x15")][0][wx("0xd")]?{type:wx("0x12"),content:Ji(n,wx("0x9"))}:{type:"format",content:Ji(n,wx("0x11"))}:void 0}))}}const Fx=["_registerBlockAttribute","_descriptionFactory","config","has","*Remove format:* %0","GeneralHtmlSupport","add","get","_registerInlineAttribute","element","formatInline","normalizeConfig","registerAttributeLabel","styleName","plugins","formatBlock","commandName","_registerLegacyDescription","DataSchema","definitions","type","block","FORMAT_STYLE","*Set format:* %0","forceValue","TrackChangesEditing","commandParams","_enableDefaultAttributesIntegration","format","style","toLowerCase","getGhsAttributeNameForElement","locale","registerDescriptionCallback"];var Dx,Bx;Dx=Fx,Bx=121,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Px("0x1d")][Px("0x12")]("Style")||!t[Px("0x1d")][Px("0x12")](Px("0x21")))return;const e=t[Px("0x1d")][Px("0x16")](Px("0x6")),n=t[Px("0xd")],i=t[Px("0x11")].get("style"),o=t[Px("0x1d")][Px("0x16")](Px("0x14")),r=t.plugins.get("StyleUtils")[Px("0x1a")](t[Px("0x1d")].get(Px("0x21")),i[Px("0x0")]);e[Px("0x8")](Px("0xa"));const s=new Set;for(const t of r[Px("0x2")]){const e=o[Px("0xc")](t.element);s[Px("0x15")](e)}const x=new Set;for(const t of r.inline){const e=o.getGhsAttributeNameForElement(t[Px("0x18")]);x[Px("0x15")](e);for(const e of t.ghsAttributes)x.add(e)}for(const t of s)e[Px("0xf")](t),e[Px("0x10")].registerAttributeLabel(t,Ji(n,Px("0x3")));for(const t of x)e[Px("0x17")](t),e[Px("0x10")][Px("0x1b")](t,Ji(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x20")](){const t=this.editor,e=t[Px("0xd")];t.plugins.get(Px("0x6"))[Px("0x10")][Px("0xe")]((t=>{if(Px("0x1e")!=t[Px("0x1")]&&Px("0x19")!=t[Px("0x1")])return;const{data:n}=t;return n&&Px("0xa")===n[Px("0x1f")]?n[Px("0x7")][0][Px("0x5")]?{type:Px("0x9"),content:Ji(e,Px("0x4"),n[Px("0x7")][0].styleName.toLowerCase())}:{type:"format",content:Ji(e,Px("0x13"),n.commandParams[0][Px("0x1c")][Px("0xb")]())}:void 0}))}}const jx=["toLowerCase","add","registerElementLabel","insertTableColumnLeft","_suggestionFactory","differ","first","classes","enableCommand","some","ELEMENT_TABLE_COLUMN_WITH_TEXT","MIN_SAFE_INTEGER","addClass","refresh","last","plugins","insertTable","data","filter","mapper","showSuggestionHighlights","document","ELEMENT_TABLE","MAX_SAFE_INTEGER","afterInit","createTableWalker","removeClass","colspan","ELEMENT_TABLE_ROW_WITH_TEXT","rootName","nodeAfter","TableEditing","from","model","*Remove:* %0","fromRange","removeTableRow","getContainedElement","isEqual","execute","setSelection","item","change","name","order","downcastDispatcher","selection","has","table","ELEMENT_TABLE_WITH_TEXT","writer","ELEMENT_TABLE_ROW","getColumnIndexes","above","getRowIndexes","every","map","_tableSuggestions","selectTableRow","addRange","$graveyard","includes","cell","findAncestor","highest","insert","getSelectionAffectedTableCells","$textProxy","minRow","getCellLocation","tablePaste","markMultiRangeDeletion","commands","addMarker:suggestion","tableRow","editor","_tablePostFixingSubtypes","position","selectTableColumn","nodeBefore","span","registerCustomCallback","TrackChangesEditing","batch","change:data","accept","join","registerDescriptionCallback","min","_descriptionFactory","isArray","createRangeIn","TableUtils","low","get","getRanges","max","rowspan","left","values","locale","*Insert:* %0","_getSuggestionCoords","_splitMarkerName","tableCell","maxColumn","hasAttribute","length","isIntersectingWithRange","_getCoordsForCells","isTouching","subType","_setupColumnsRowsFixing","enqueueChange","getChangedMarkers","type","getSuggestion","substr","insertTableRowAbove","removeTableColumn","insertion","deletion","toViewElement","ELEMENT_TABLE_COLUMN","push","start","getAttribute","createRangeOn","getItems","end","_acceptFormatSuggestionCallbackFactory","root","getFirstRange","tableColumn","detach"];var Gx,Vx;Gx=jx,Vx=443,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x26")]=[Hx("0x24"),Hx("0x5f")],this[Hx("0x13")]=new Set}[Hx("0x79")](){const t=this[Hx("0x25")],e=t[Hx("0x82")][Hx("0x76")][Hx("0x8")];if(!t[Hx("0x70")][Hx("0x9")](Hx("0x80")))return;const n=t[Hx("0x3e")],i=t[Hx("0x70")][Hx("0x38")](Hx("0x2c")),o=t.plugins[Hx("0x38")](Hx("0x36"));i[Hx("0x33")][Hx("0x63")](Hx("0xa"),(t=>Ji(n,Hx("0x77"),t))),this[Hx("0x4a")](),i[Hx("0x69")](Hx("0x71")),i[Hx("0x69")](Hx("0x14")),i[Hx("0x69")](Hx("0x28"));for(const n of[Hx("0x50"),"insertTableRowBelow"]){const r=t[Hx("0x22")][Hx("0x38")](n);i[Hx("0x69")](n,(n=>{t[Hx("0x82")][Hx("0x4")]((t=>{n();const s=Hx("0xf")===r[Hx("0x6")],x=o[Hx("0x1c")](e),a=o[Hx("0x10")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0].findAncestor(Hx("0xa")),u=o[Hx("0x7a")](l,{startRow:c,endRow:c}),d=Array[Hx("0x81")](u).map((e=>t[Hx("0x59")](e[Hx("0x18")])));i.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[Hx("0x64"),"insertTableColumnRight"]){const r=t[Hx("0x22")][Hx("0x38")](n);i[Hx("0x69")](n,(n=>{t.model[Hx("0x4")]((t=>{n();const s=Hx("0x3c")===r[Hx("0x6")],x=o[Hx("0x1c")](e),a=o[Hx("0xe")](x),c=s?a[Hx("0x67")]-1:a[Hx("0x6f")]+1,l=x[0][Hx("0x19")]("table"),u=o[Hx("0x7a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x81")](u)[Hx("0x12")]((e=>t[Hx("0x59")](e[Hx("0x18")])));i.markMultiRangeInsertion(d,Hx("0x5f"))}))}))}for(const n of[Hx("0x85"),"removeTableColumn"]){const r=n[Hx("0x4f")](11),s=r[Hx("0x61")](),x=s[Hx("0x4f")](0,3)+Hx("0x2a"),a=Hx("0xa")+r,c="min"+r,l=Hx("0x3a")+r;i.enableCommand(n,(()=>{t[Hx("0x82")][Hx("0x4")]((t=>{const r=o[Hx("0x1c")](e),u=r[0][Hx("0x19")](Hx("0xa"));let d;if(Hx("0x85")==n){const t=o[Hx("0x10")](r);d={startRow:t[Hx("0x67")],endRow:t[Hx("0x6f")],includeAllSlots:!0}}else{const t=o[Hx("0xe")](r);d={startColumn:t.first,endColumn:t[Hx("0x6f")],includeAllSlots:!0}}const g=o[Hx("0x7a")](u,d),f=Array[Hx("0x81")](g)[Hx("0x12")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x44")](x)))),h=Wx(f[Hx("0x73")]((t=>!t[Hx("0x44")](x))))[Hx("0x12")]((e=>t[Hx("0x59")](e))),p=i[Hx("0x21")](h,a);if(p&&("tableRow"==p.subType||Hx("0x5f")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const i=t[Hx("0x59")](n),r=o[Hx("0x1f")](n),a=n[Hx("0x58")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Hx("0x15")](i)}}}))}))}function r(n){const i=Array.from(e[Hx("0x39")]())[Hx("0x12")]((t=>s.LiveRange[Hx("0x84")](t)));t[Hx("0x82")].change((e=>{const o=e[Hx("0x2d")];n=n[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")])),e[Hx("0x2")](n),t[Hx("0x22")][Hx("0x38")](Hx("0x85"))[Hx("0x6e")](),t[Hx("0x1")]("removeTableRow",{forceDefaultExecution:!0}),t[Hx("0x82")][Hx("0x4b")]((()=>{t.model[Hx("0x4b")](o,(t=>{const e=i[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")].rootName));e[Hx("0x45")]>0&&t[Hx("0x2")](e);for(const t of i)t[Hx("0x60")]()}))}))}))}function a(n){t[Hx("0x82")][Hx("0x4")]((i=>{const o=Array[Hx("0x81")](e.getRanges()).map((t=>s.LiveRange[Hx("0x84")](t))),r=[];for(const t of n)for(const e of t[Hx("0x5a")]({shallow:!0}))r[Hx("0x56")](e);for(const e of r)Hx("0x16")!=e[Hx("0x5d")].rootName&&(i[Hx("0x2")](i.createPositionAt(e,0)),t[Hx("0x22")][Hx("0x38")]("removeTableColumn").refresh(),t.execute(Hx("0x51"),{forceDefaultExecution:!0}));const x=o[Hx("0x73")]((t=>"$graveyard"!=t[Hx("0x5d")][Hx("0x7e")]));x[Hx("0x45")]>0&&i.setSelection(x);for(const t of o)t[Hx("0x60")]()}))}function c(t,e){return e[Hx("0x11")]((e=>t[Hx("0x6a")]((t=>t[Hx("0x5b")][Hx("0x0")](e[Hx("0x57")])||e.end.isEqual(t[Hx("0x57")])))))}function l(t,e){return t[Hx("0x6a")]((t=>e[Hx("0x6a")]((e=>t.end[Hx("0x48")](e[Hx("0x57")])))))}t[Hx("0x72")][Hx("0x7")].on(Hx("0x23"),((t,e,n)=>{if(!n.options[Hx("0x75")])return;const i=e[Hx("0x3")];if(!i)return;const o=n[Hx("0x74")][Hx("0x54")](i);function r(t){return Array[Hx("0x34")](t)?t:[t]}o&&Hx("0x42")===i[Hx("0x5")]&&(0,x.setHighlightHandling)(o,n[Hx("0xc")],((t,e,n)=>n[Hx("0x6d")](r(e[Hx("0x68")]),t)),((t,e,n)=>n[Hx("0x7b")](r(e[Hx("0x68")]),t)))}),{priority:Hx("0x1a")}),i[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x52")!=t[Hx("0x4d")]&&Hx("0x53")!=t[Hx("0x4d")])return;const e=t[Hx("0x86")]();if(null!=e&&e.is("element",Hx("0xa"))){if(Hx("0x52")==t[Hx("0x4d")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t[Hx("0x72")]));if(e[Hx("0x45")])return{type:Hx("0x52"),content:Ji(n,Hx("0x3f"),Ji(n,Hx("0xb"),'"'+e.join(" ")+'"'))}}if(Hx("0x53")==t.type){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is("$textProxy")))[Hx("0x12")]((t=>t.data));if(e.length)return{type:"deletion",content:Ji(n,Hx("0x83"),Ji(n,Hx("0xb"),'"'+e[Hx("0x30")](" ")+'"'))}}}})),i[Hx("0x33")][Hx("0x31")]((t=>{if(Hx("0x24")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),i=this[Hx("0x40")](t),o=i.maxRow-i[Hx("0x1e")]+1;if("insertion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Ji(n,"*Insert:* %0",Ji(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x52"),content:Ji(n,"*Insert:* %0",Ji(n,Hx("0xd"),o))};if(Hx("0x53")==t.type)return e[Hx("0x45")]?{type:Hx("0x53"),content:Ji(n,Hx("0x83"),Ji(n,Hx("0x7d"),[o,'"'+e[Hx("0x30")](" ")+'"']))}:{type:"deletion",content:Ji(n,Hx("0x83"),Ji(n,Hx("0xd"),o))}}if(Hx("0x5f")==t[Hx("0x49")]){const e=t[Hx("0x5a")]()[Hx("0x73")]((t=>t.is(Hx("0x1d"))))[Hx("0x12")]((t=>t.data)),i=this._getSuggestionCoords(t),o=i[Hx("0x43")]-i.minColumn+1;if(Hx("0x52")==t[Hx("0x4d")])return e[Hx("0x45")]?{type:Hx("0x52"),content:Ji(n,Hx("0x3f"),Ji(n,Hx("0x6b"),[o,'"'+e[Hx("0x30")](" ")+'"']))}:{type:Hx("0x52"),content:Ji(n,Hx("0x3f"),Ji(n,"ELEMENT_TABLE_COLUMN",o))};if("deletion"==t[Hx("0x4d")])return e[Hx("0x45")]?{type:"deletion",content:Ji(n,Hx("0x83"),Ji(n,Hx("0x6b"),[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x53"),content:Ji(n,"*Remove:* %0",Ji(n,Hx("0x55"),o))}}})),i._suggestionFactory.registerCustomCallback(Hx("0x52"),Hx("0x24"),"discard",r),i[Hx("0x65")][Hx("0x2b")](Hx("0x53"),"tableRow",Hx("0x2f"),r),i[Hx("0x65")].registerCustomCallback(Hx("0x52"),Hx("0x5f"),"discard",a),i[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x5f"),Hx("0x2f"),a),i[Hx("0x65")][Hx("0x2b")](Hx("0x52"),Hx("0x5f"),Hx("0x30"),c),i._suggestionFactory.registerCustomCallback("deletion",Hx("0x5f"),Hx("0x30"),c),i._suggestionFactory[Hx("0x2b")](Hx("0x52"),Hx("0x24"),"join",l),i[Hx("0x65")][Hx("0x2b")](Hx("0x53"),Hx("0x24"),Hx("0x30"),l)}[Hx("0x5c")](){const t=this[Hx("0x25")],e=t[Hx("0x82")].document[Hx("0x8")];return(n,i)=>{t[Hx("0x82")][Hx("0x4")]((o=>{const{commandName:r,commandParams:x}=i;let a=n[0][Hx("0x5b")][Hx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0x57")][Hx("0x7f")]);const c=o[Hx("0x35")](a);if(Hx("0x16")==c.root[Hx("0x7e")])return;const l=Array.from(e.getRanges())[Hx("0x12")]((t=>s.LiveRange.fromRange(t)));o.setSelection(c),t[Hx("0x22")][Hx("0x38")](r)[Hx("0x6e")](),x[Hx("0x56")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Hx("0x73")]((t=>Hx("0x16")!=t[Hx("0x5d")][Hx("0x7e")]));u[Hx("0x45")]>0&&o.setSelection(u);for(const t of l)t[Hx("0x60")]()}))}}[Hx("0x47")](t){const e=this[Hx("0x25")].plugins.get("TableUtils");let n=Number[Hx("0x78")],i=Number[Hx("0x6c")],o=Number.MAX_SAFE_INTEGER,r=Number[Hx("0x6c")];for(const s of t){if("$graveyard"==s[Hx("0x5d")].rootName)continue;const{row:t,column:x}=e[Hx("0x1f")](s),a=s[Hx("0x44")](Hx("0x3b"))?s[Hx("0x58")](Hx("0x3b"))-1:0,c=s[Hx("0x44")](Hx("0x7c"))?s.getAttribute("colspan")-1:0;n=t<n?t:n,i=t+a>i?t+a:i,o=x<o?x:o,r=x+c>r?x+c:r}return{minRow:n,maxRow:i,minColumn:o,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Hx("0x25")],e=t.plugins[Hx("0x38")](Hx("0x2c")),n=t[Hx("0x70")][Hx("0x38")]("TableUtils");t[Hx("0x82")][Hx("0x76")].on(Hx("0x2e"),(()=>{const n=Array.from(t[Hx("0x82")][Hx("0x76")][Hx("0x66")][Hx("0x4c")]());for(const{name:t,data:i}of n){const{group:n,id:o,subType:r}=e[Hx("0x41")](t);if("suggestion"!=n)continue;if(null!=i.oldRange)continue;const s=e[Hx("0x4e")](o);this[Hx("0x26")][Hx("0x17")](r)&&this[Hx("0x13")][Hx("0x62")](s)}}),{priority:Hx("0x37")});const i=(t,e)=>{let i=!1;const o=e.createRangeOn(t),r=t[Hx("0x19")](Hx("0xa")),s=n[Hx("0x1f")](t);for(const e of this._tableSuggestions){const n=e[Hx("0x49")],x=n.startsWith(Hx("0x20")),a=n[Hx("0x4f")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+"span",u=Hx("0x32")+a,d=Hx("0x3a")+a;if(!e.isInContent)continue;if(r!=e[Hx("0x5e")]()[Hx("0x57")][Hx("0x19")]("table"))continue;if(e[Hx("0x46")](o))continue;const g=t[Hx("0x44")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x40")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x15")](o),i=!0)}return i};t[Hx("0x82")][Hx("0x76")].registerPostFixer((e=>{let n=!1;for(const o of t[Hx("0x82")][Hx("0x76")][Hx("0x66")].getChanges())if(Hx("0x1b")==o[Hx("0x4d")])if(Hx("0x24")==o.name)for(const t of o[Hx("0x27")][Hx("0x7f")].getChildren())n=n||i(t,e);else Hx("0x42")==o.name&&(n=n||i(o.position.nodeAfter,e));return n}))}[Hx("0x40")](t){return this[Hx("0x47")](t[Hx("0x39")]().map((t=>t[Hx("0x57")][Hx("0x7f")])))}}function Wx(t){return Array.from(new Set(t)[Hx("0x3d")]())}const Kx=["add","stop","low","getSuggestions","accept","getFirstPosition","getCellLocation","isEnabled","refresh","return","model","type","isInContent","selection","afterInit","mergeTableCellDown","get","execute","insertion","map","_tablePostFixingSubtypes","TableUtils","subType","rootName","detach","formatInline","markMultiRangeBlockFormat","$graveyard","highest","createRangeOn","format","tableCell","length","markBlockFormat","getSelectionAffectedTableCells","set:isEnabled","setSelection","_areMergableCells","from","mergeTableCellRight","getAncestors","registerDescriptionCallback","_areSelectedCellsMergable","TrackChangesEditing","value","commands","find","author","direction","cell","plugins","findAncestor","splitTableCellVertically","trackChanges","mergeTableCellLeft","*Split cell:* vertically","editor","change","push","formatBlock","table","getRanges","requires","element","mergeTableCellUp","mergeTableCells","registerCustomCallback","_descriptionFactory","document","containsRange","_acceptFormatSuggestionCallbackFactory","size","enableCommand","commandName","*Merge cells*","createTableWalker","splitTableCellHorizontally","_suggestionFactory","fromRange","TableEditing"];var qx,Xx;qx=Kx,Xx=174,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x30")](){return[zx]}[$x("0x0")](){const t=this[$x("0x2a")],e=t[$x("0x4c")][$x("0x36")][$x("0x4f")],n=t.locale;if(!t[$x("0x24")].has($x("0x41")))return;const i=t[$x("0x24")][$x("0x2")]($x("0x1d")),o=t[$x("0x24")][$x("0x2")]($x("0x7")),r=t[$x("0x24")][$x("0x2")](zx);r[$x("0x6")][$x("0x2c")]($x("0x33")),i[$x("0x3a")]($x("0x33"),(()=>{const e=o.getSelectionAffectedTableCells(t.model[$x("0x36")].selection);t.model.change((()=>{i[$x("0xc")](e,{commandName:$x("0x33"),commandParams:[]},[],"mergeTableCells")}))})),t.commands.get($x("0x33")).on($x("0x3"),((e,n)=>{t.commands.get($x("0x27")).value&&(n[$x("0x12")]>0&&n[n[$x("0x12")]-1]&&n[n[$x("0x12")]-1].forceDefaultExecution||i._isForcedDefaultExecutionBlock||this[$x("0x1c")]()||e[$x("0x43")]())}),{priority:$x("0xe")});for(const e of[$x("0x32"),$x("0x19"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[$x("0x1f")].get(e);i[$x("0x3a")](e,(()=>{const e=t.model.document.selection.getFirstPosition()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11")))),o=n[$x("0x1e")];t[$x("0x4c")].change((()=>{i[$x("0xc")]([e,o],{commandName:$x("0x33"),commandParams:[]},[],$x("0x33"))}))}))}for(const e of["splitTableCellVertically",$x("0x3e")]){const n=t[$x("0x1f")][$x("0x2")](e);i[$x("0x3a")](e,(()=>{const r=o[$x("0x14")](t[$x("0x4c")].document[$x("0x4f")])[0],s=r[$x("0x25")]($x("0x2e")),{column:x,row:a}=o[$x("0x48")](r);let c=[];if("horizontally"==n[$x("0x22")]){const t=o[$x("0x3d")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x23")]))}else{const t=o.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x18")](t)[$x("0x5")]((t=>t[$x("0x23")]))}t[$x("0x4c")][$x("0x2b")]((t=>{i[$x("0x13")](t[$x("0xf")](r),{commandName:e,commandParams:[]},c,e)}))}))}i[$x("0x35")][$x("0x1b")]((t=>{if($x("0x2d")!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e&&$x("0x33")==e[$x("0x3b")]?{type:"format",content:Ji(n,$x("0x3c"))}:void 0})),i._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[$x("0x4d")]&&$x("0xb")!=t[$x("0x4d")])return;const{data:e}=t;return e?$x("0x26")==e.commandName?{type:"format",content:Ji(n,$x("0x29"))}:$x("0x3e")==e[$x("0x3b")]?{type:$x("0x10"),content:Ji(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=r[$x("0x38")]();for(const t of[$x("0x32"),$x("0x19"),$x("0x1"),$x("0x28")])i[$x("0x3f")][$x("0x34")]($x("0x2d"),t,"accept",x);for(const t of["splitTableCellVertically",$x("0x3e")])i[$x("0x3f")][$x("0x34")]("formatBlock",t,$x("0x46"),x);i[$x("0x3f")][$x("0x34")]($x("0x2d"),$x("0x33"),$x("0x46"),(n=>{t[$x("0x4c")][$x("0x2b")]((i=>{const o=Array[$x("0x18")](e[$x("0x2f")]())[$x("0x5")]((t=>s.LiveRange[$x("0x40")](t)));i[$x("0x16")](n),t[$x("0x1f")].get($x("0x33"))[$x("0x4a")](),t[$x("0x3")]("mergeTableCells",{forceDefaultExecution:!0});const r=o.filter((t=>$x("0xd")!=t.root[$x("0x9")]));r[$x("0x12")]>0&&i[$x("0x16")](r);for(const t of o)t[$x("0xa")]()}))}));for(const e of[$x("0x32"),$x("0x1"),"mergeTableCellLeft",$x("0x19")]){const n=t[$x("0x1f")][$x("0x2")](e);n.on($x("0x15"),((e,i,o)=>{if(o){const i=t[$x("0x4c")][$x("0x36")][$x("0x4f")][$x("0x47")]()[$x("0x1a")]()[$x("0x20")]((t=>t.is($x("0x31"),$x("0x11"))));this._areMergableCells(n[$x("0x1e")],i)||(e[$x("0x4b")]=!1,e[$x("0x43")]())}}),{priority:$x("0x44")})}}[$x("0x1c")](){const t=this.editor[$x("0x1f")].get($x("0x33")),e=this[$x("0x2a")][$x("0x24")][$x("0x2")]("TableUtils");if(!t[$x("0x49")])return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x2a")][$x("0x4c")].document[$x("0x4f")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x17")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor[$x("0x24")][$x("0x2")]($x("0x1d")),i=this[$x("0x2a")].model[$x("0xf")](t),o=this.editor[$x("0x4c")][$x("0xf")](e),r=new Set,s=new Set;for(const t of n[$x("0x45")]())if(($x("0x4")==t[$x("0x4d")]||"deletion"==t.type||$x("0x33")==t[$x("0x8")])&&t[$x("0x4e")])for(const e of t.getRanges())e[$x("0x37")](i,!0)&&r[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id),e.containsRange(o,!0)&&s[$x("0x42")](t[$x("0x4d")]+":"+t[$x("0x21")].id);if(r[$x("0x39")]!=s[$x("0x39")])return!1;for(const t of r)if(!s.has(t))return!1;return!0}}const Yx=["writer","registerCustomCallback","ck-suggestion-marker--active","registerDescriptionCallback","FORMAT_REGULAR_COLUMN","toViewElement","createTableWalker","removeMarker:suggestion","editor","getCellLocation","ck-suggestion-marker-","forceValue","setAttribute","accept","markerRange","get","consume","_descriptionFactory","*Format:* %0","name","markerName","commandName","type","headingRows","parent","nodeAfter","unbindElementFromMarkerName","_enableDefaultAttributesIntegration","afterInit","headingColumns","data","plugins","registerAttributeLabel","addMarker:suggestion","FORMAT_REGULAR_ROW","_suggestionFactory","cell","removeClass","downcastDispatcher","setTableRowHeader","addClass","options","FORMAT_HEADER_COLUMN","bindElementToMarker","mapper","getSuggestion","TableEditing","consumable","start","FORMAT_HEADER_ROW","TrackChangesEditing","editing","_splitMarkerName","markerNameToElements","TableUtils","_handleLegacySuggestions","includes","highest","requires","locale","setTableColumnHeader","formatBlock"];var Jx,Qx;Jx=Yx,Qx=379,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x33")](){return[zx]}[ta("0x15")](){const t=this[ta("0x1")];if(!t[ta("0x18")].has(ta("0x27")))return;const e=t[ta("0x34")],n=t[ta("0x18")][ta("0x8")]("TrackChangesEditing");n[ta("0x14")](ta("0x20"),[],[ta("0x10")]),n[ta("0x14")](ta("0x35"),[],[ta("0x16")]),n[ta("0xa")][ta("0x19")](ta("0x10"),Ji(e,ta("0x2a"))),n[ta("0xa")][ta("0x19")](ta("0x16"),Ji(e,ta("0x23"))),this._handleLegacySuggestions()}[ta("0x30")](){const t=this[ta("0x1")].plugins[ta("0x8")]("TrackChangesEditing"),e=this[ta("0x1")][ta("0x18")][ta("0x8")](ta("0x2f")),n=this[ta("0x1")].plugins.get(zx)._acceptFormatSuggestionCallbackFactory();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(o,r,s)=>{const{type:x,id:a}=t[ta("0x2d")](r[ta("0xd")]),c=t[ta("0x26")](a),l=c[ta("0x17")];if(ta("0x36")!=c[ta("0xf")]||!l||"setTableColumnHeader"!=l[ta("0xe")])return;if(r.item)return void o.stop();if(!s[ta("0x28")][ta("0x9")](r[ta("0x7")],o[ta("0xc")]))return;const u=r[ta("0x7")][ta("0x29")][ta("0x12")],d=r[ta("0x7")].end.nodeBefore,g=u[ta("0x11")][ta("0x11")],{column:f}=e[ta("0x2")](u),{column:m}=e.getCellLocation(d);for(let o=f;o<=m;o++){const c=e[ta("0x3d")](g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[ta("0x1d")],c=s[ta("0x25")][ta("0x3c")](o);s[ta("0x37")][ta("0x21")](ta("0x3")+x,c),i&&s[ta("0x37")][ta("0x5")]("data-suggestion",a,c),s[ta("0x25")][ta("0x24")](c,r[ta("0xd")]),n&&(t.activeMarkers[ta("0x31")](r.markerName)?s.writer[ta("0x21")](ta("0x39"),c):s[ta("0x37")][ta("0x1e")](ta("0x39"),c))}}}}t[ta("0x1c")][ta("0x38")](ta("0x36"),ta("0x20"),"accept",n),t[ta("0x1c")].registerCustomCallback(ta("0x36"),"setTableColumnHeader",ta("0x6"),n),this.editor[ta("0x2c")][ta("0x1f")].on(ta("0x1a"),i(),{priority:ta("0x32")}),this[ta("0x1")][ta("0x17")][ta("0x1f")].on(ta("0x1a"),((t,e,n)=>{n[ta("0x22")].showSuggestionHighlights&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this.editor[ta("0x2c")].downcastDispatcher.on(ta("0x0"),((e,n,i)=>{const{type:o,id:r}=t[ta("0x2d")](n[ta("0xd")]),s=t.getSuggestion(r),x=s[ta("0x17")];if(ta("0x36")!=s[ta("0xf")]||!x||ta("0x35")!=x[ta("0xe")])return;const a=i[ta("0x25")][ta("0x2e")](n[ta("0xd")]);if(a)for(const t of a)i[ta("0x37")].removeClass(ta("0x3")+o,t),i[ta("0x37")][ta("0x1e")](ta("0x39"),t),i.writer.removeAttribute("data-suggestion",t),i[ta("0x25")][ta("0x13")](t,n[ta("0xd")])}),{priority:"highest"}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x1")],e=t[ta("0x34")];function n(t){return{type:"format",content:Ji(e,ta("0xb"),t)}}t[ta("0x18")][ta("0x8")](ta("0x2b"))[ta("0xa")][ta("0x3a")]((t=>{if(ta("0x36")!=t[ta("0xf")])return;const{data:i}=t;if(i){if(ta("0x20")==i[ta("0xe")]){const t=i.commandParams[0][ta("0x4")];return n(Ji(e,ta(t?"0x2a":"0x1b")))}if(ta("0x35")==i[ta("0xe")]){const t=i.commandParams[0][ta("0x4")];return n(Ji(e,ta(t?"0x23":"0x3b")))}}}))}}const na=["forceDefaultExecution","cells","deletionRanges","get","isEmpty","editingDowncast","markMultiRangeInsertion","insert","tableCell","some","insertion","elementToElement","suggestionLoaded","markerToHighlight","columnInsertionIndexes","markerName","filter","suggestion","activeMarkers","dataDowncast","getAttributes","attributes","push","getColumnIndexes","columns","createRangeIn","getSuggestion","from","registerCustomCallback","_createdBatches","keys","for","batch","last","first","removeMarkers","remove","tableCellSuggestion","next","markMultiRangeDeletion","conversion","tablePaste","type","high","Users","start","setAttributes","paragraph","discard","isInContent","commands","markers","TrackChangesEditing","insertColumns","registerPostFixer","find","deletion","position","value","column","length","table","end","fill","getChild","model","nextSibling","getSuggestionCallback","includes","_suggestionFactory","rowInsertionIndexes","register","_isForcedDefaultExecutionBlock","element","tablePasteRow","set","redo","getChangedMarkers","schema","tableCellVerticalAlignment","updateMarker","tableCellHorizontalAlignment","showSuggestionHighlights","wrap","entries","return","document","tablePasteCell","TableClipboard","documentSelection","getMarkers","oldRange","change","nodeAfter","selection","stop","low","tableCellBorderColor","getAllAdjacentSuggestions","_replaceTableSlotCell","root","getContainedElement","containsRange","getSuggestions","map","view","$graveyard","registerDescriptionCallback","previous","getChanges","afterInit","previousSibling","plugins","join","removeRows","options","ck-suggestion-marker--active","tableCellPadding","suggestion-td","getRows","createTableWalker","content","rows","markMultiRangeBlockFormat","listenTo","newRange","getChildren","editing","removeColumns","requires","_getCoordsForCells","createRangeOn","TableUtils","suggestionUnloaded","reduce","tablePasteChainId","getRange","every","cell","markerAttributes","setAttribute","add","has","getRanges","author","differ","*Replace table cells*","columnInsertionRanges","fromEntries","getSelectionAffectedTableCells","getTableIfOnlyTableInContent","getColumns","insertRows","insertContent","rowInsertionRanges","findAncestor","suggestion:formatBlock:tablePasteCell","endRow","isEqual","locale","formatBlock","endColumn","accept","createElement","move","_tablePostFixingSubtypes","name","subType","startsWith","tablePasteColumn","editor"];var ia,oa;ia=na,oa=136,function(t){for(;--t;)ia.push(ia.shift())}(++oa);const ra=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ra("0x84"),"tableCellBorderStyle",ra("0x74"),ra("0x72"),"tableCellBackgroundColor",ra("0x98")],xa=Object[ra("0xc")](sa[ra("0x8b")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0xa4")](){return[zx]}[ra("0x91")](){const t=this[ra("0x22")];if(!t.plugins[ra("0x6")]("TableClipboard"))return;const n=t[ra("0x93")][ra("0x26")](ra("0x57")),i=t.plugins[ra("0x26")](ra("0xa7")),o=t[ra("0x93")].get(zx),r=t[ra("0x93")][ra("0x26")]("TableClipboard");o[ra("0x1d")][ra("0x39")](ra("0x6d"),ra("0x21")),t.model[ra("0x71")][ra("0x6a")](ra("0x48"),{allowIn:ra("0x2b"),allowContentOf:ra("0x2b"),isLimit:!0}),t[ra("0x4b")][ra("0x2e")]({model:ra("0x48"),view:"suggestion-td"});let s=null;t[ra("0x64")].on(ra("0x11"),((o,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x23")]||n[ra("0x6b")]||this[ra("0x22")][ra("0x55")][ra("0x26")]("trackChanges")[ra("0x5d")]&&function(t,e,n,i,o){if(e&&!e.is(ra("0x7c")))return!1;const r=o[ra("0xe")](t,n);if(!r||!la(r,void 0,i))return!1;const s=i[ra("0xd")](n.document[ra("0x81")]);if(!s[ra("0x5f")])return!1;const x=s[0].findAncestor("table"),a=i.getRowIndexes(s),c=i[ra("0x3a")](s),l={startRow:a[ra("0x45")],endRow:a[ra("0x44")],startColumn:c[ra("0x45")],endColumn:c[ra("0x44")]};return 1==s[ra("0x5f")]&&(l[ra("0x15")]+=i[ra("0x9a")](r)-1,l[ra("0x19")]+=i[ra("0xf")](r)-1),la(x,l,i)}(a,c,t.model,i,r)&&(o[ra("0x82")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x64")][ra("0x7f")]((()=>{t[ra("0x64")][ra("0x11")](x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;o.length&&n[ra("0x29")](o,ra("0x6d"),{tablePasteChainId:i}),r[ra("0x5f")]&&n.markMultiRangeInsertion(r,ra("0x21"),{tablePasteChainId:i}),a[ra("0x5f")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:i,skipNestingCheck:!0}),c[ra("0x5f")]&&n[ra("0x4a")](c,"tablePaste",{tablePasteChainId:i,skipNestingCheck:!0});const u=n[ra("0x9e")](l[ra("0x8b")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:i});if(u){const e=u[ra("0x7d")](),n=[];for(const{element:i,attributes:o}of l){if(!o)continue;const r=t[ra("0x64")][ra("0xa6")](i),s=e[ra("0x5a")]((t=>t.getRange()[ra("0x16")](r)));s&&n[ra("0x39")]([s[ra("0x1e")],o])}n[ra("0x5f")]&&u[ra("0x4")](ra("0x3"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ra("0x4e")]+10}),t[ra("0x93")][ra("0x26")](ra("0x7b")).on(ra("0x86"),((t,e)=>{const[n,i,,o]=e;if(!s)return;t.stop();const r=n[ra("0x2")],x=i,a=ca(r),c=ca(x);t[ra("0x78")]=r;let l=null,u=null;if(c||a)if(a&&!c){o[ra("0x47")](r[ra("0x63")](0));for(const t of Array[ra("0x3e")](x[ra("0xa1")]()))o[ra("0x2a")](t,r,ra("0x61"));const t=s.rowInsertionIndexes.includes(n.row),e=s[ra("0x31")][ra("0x67")](n[ra("0x5e")]);t||e||(l=o[ra("0x3c")](r))}else c&&!a&&(u=o.createRangeIn(r));else{const t=o.createElement("tableCellSuggestion"),e=o[ra("0x1b")](ra("0x48"));o[ra("0x76")](o[ra("0x3c")](r),e),o.insert(t,r,0);for(const e of Array[ra("0x3e")](x[ra("0xa1")]()))o[ra("0x2a")](e,t,"end");l=o[ra("0xa6")](t),u=o[ra("0xa6")](e)}const d=Array[ra("0x3e")](x[ra("0x37")]()).filter((([t])=>sa[ra("0x67")](t)));s[ra("0x24")][ra("0x39")]({element:r,attributes:d[ra("0x5f")]?Object.fromEntries(d):null}),l&&s.insertionRanges[ra("0x39")](l),u&&s[ra("0x25")].push(u)}),{priority:"high"}),i.on(ra("0x58"),((e,n)=>{const[o,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x3b")]||1;s[ra("0x31")]=new Array(a).fill(x)[ra("0x8b")](((t,e)=>t+e));for(const{cell:e}of i.createTableWalker(o,{startColumn:x,endColumn:x+a-1}))s[ra("0xb")][ra("0x39")](t[ra("0x64")].createRangeOn(e))}),{priority:ra("0x83")}),i.on(ra("0x10"),((e,n)=>{const[o,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x9d")]||1;s[ra("0x69")]=new Array(a)[ra("0x62")](x)[ra("0x8b")](((t,e)=>t+e));for(const{cell:e}of i[ra("0x9b")](o,{startRow:x,endRow:x+a-1}))s[ra("0x12")].push(t[ra("0x64")][ra("0xa6")](e))}),{priority:"low"}),n._descriptionFactory[ra("0x8e")]((e=>{if(e[ra("0x1f")]&&e[ra("0x1f")][ra("0x20")](ra("0x4c")))return e[ra("0x8f")]?{}:{type:ra("0x2d"),content:Ji(t[ra("0x17")],ra("0xa"))}}));const x=()=>!1;for(const t of[ra("0x4c"),ra("0x21"),ra("0x6d"),ra("0x7a")])n._suggestionFactory.registerCustomCallback("insertion",t,ra("0x94"),x),n[ra("0x68")][ra("0x3f")](ra("0x5b"),t,ra("0x94"),x),n[ra("0x68")][ra("0x3f")]("formatBlock",t,ra("0x94"),x);n[ra("0x68")][ra("0x3f")](ra("0x18"),ra("0x7a"),ra("0x53"),x),n._suggestionFactory[ra("0x3f")](ra("0x18"),ra("0x7a"),"accept",((e,n,i)=>{const o=e[ra("0x8b")]((t=>t[ra("0x88")]()))[ra("0x33")]((t=>t)),r=new Map(o.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x24")])e&&r[ra("0x6e")](t,e);else if(i&&i.markerAttributes)for(const[e,n]of Object[ra("0x77")](i.markerAttributes)){const i=t[ra("0x64")][ra("0x56")].get(e),o=i?i[ra("0x0")]().getContainedElement():null;o&&r[ra("0x6e")](o,n)}t.model.change((t=>{for(const[e,n]of r)t[ra("0x51")]({...xa,...n},e)}))}));const a=(e,i)=>{n[ra("0x68")][ra("0x3f")](e,ra("0x4c"),i,((o,r,s)=>{t[ra("0x64")][ra("0x7f")]((t=>{const x=[];for(const t of o){const e=t[ra("0x50")][ra("0x80")];e.is("element",ra("0x48"))&&x[ra("0x39")](e)}n[ra("0x68")][ra("0x66")](e,null,i)(o,r,s);for(const e of x)ra("0x8d")!=e[ra("0x87")].rootName&&t.unwrap(e)}))}))};a(ra("0x2d"),ra("0x1a")),a(ra("0x2d"),ra("0x53")),a(ra("0x5b"),"accept"),a(ra("0x5b"),ra("0x53")),n[ra("0x68")].registerCustomCallback(ra("0x2d"),ra("0x6d"),ra("0x53"),(t=>{const e=t[ra("0x8b")]((t=>t[ra("0x88")]())),n=e[0][ra("0x13")](ra("0x60")),{minRow:r,maxRow:s}=o[ra("0xa5")](e);i[ra("0x95")](n,{at:r,rows:s-r+1})})),n[ra("0x68")][ra("0x3f")](ra("0x2d"),ra("0x21"),ra("0x53"),(t=>{const e=t[ra("0x8b")]((t=>t[ra("0x88")]())),n=e[0].findAncestor(ra("0x60")),{minColumn:r,maxColumn:s}=o[ra("0xa5")](e);i[ra("0xa3")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x1f")]||!e.subType.startsWith("tablePaste"))return;const i=e[ra("0x38")].tablePasteChainId,o=n[ra("0x8a")]()[ra("0x33")]((t=>t[ra("0x54")]&&t[ra("0x38")]&&t[ra("0x38")][ra("0xaa")]==i));o.length&&e[ra("0x85")]().length!=o[ra("0x5f")]&&o[ra("0xa9")](((t,e)=>(t[ra("0x49")]=e,e[ra("0x8f")]=t,e)))};function l(t,e=!0){const{id:i}=n._splitMarkerName(t[ra("0x32")]),o=["ck-suggestion-marker","ck-suggestion-marker-insertion"],r=n[ra("0x35")][ra("0x67")](t[ra("0x32")]);return r&&o[ra("0x39")](ra("0x97")),{classes:o,attributes:{"data-suggestion":i},priority:r&&e?3010:3e3}}n.on(ra("0x2f"),c,{priority:ra("0x4e")}),n.on(ra("0xa8"),c,{priority:ra("0x4e")}),t.model[ra("0x79")][ra("0x59")]((()=>{let e=!1;const i=Array[ra("0x3e")](t[ra("0x64")][ra("0x79")].differ[ra("0x70")]());for(const{name:o,data:r}of i){const{group:i,type:s,id:x}=n._splitMarkerName(o);if(ra("0x34")!=i||ra("0x5b")!=s||r[ra("0x7e")])continue;if(!n.hasSuggestion(x))continue;const a=n[ra("0x3d")](x)[ra("0x7")](),c=t[ra("0x93")][ra("0x26")](ra("0x4f")).me;for(const t of n[ra("0x8a")]())if(t[ra("0x54")]&&t[ra("0x8")]==c&&ra("0x18")==t[ra("0x4d")]&&ra("0x7a")==t[ra("0x1f")]&&t[ra("0x7")]()[ra("0x1")]((t=>a[ra("0x2c")]((e=>e[ra("0x89")](t,!0))))))for(const n of t[ra("0x85")]())n[ra("0x54")]&&(n[ra("0x53")](),e=!0)}return e})),t[ra("0x64")][ra("0x79")].registerPostFixer((e=>{const i=t[ra("0x55")][ra("0x26")](ra("0x6f"));if(!i||!i[ra("0x40")][ra("0x6")](e[ra("0x43")]))return!1;let o=!1;const r=t[ra("0x93")][ra("0x26")](ra("0x4f")).me,s=t.model.document[ra("0x9")][ra("0x90")](),x=Array[ra("0x3e")](t[ra("0x64")][ra("0x79")][ra("0x9")][ra("0x70")]()).filter((({name:t,data:e})=>{const{group:i,subType:o,authorId:s}=n._splitMarkerName(t);return ra("0x34")==i&&ra("0x4c")==o&&s==r.id&&!e.oldRange}));for(const t of s){if(ra("0x2a")!=t.type||ra("0x48")!=t[ra("0x1e")]||1!=t[ra("0x5f")])continue;const n=e.createRange(t[ra("0x5c")],t[ra("0x5c")].getShiftedBy(1));if(!x[ra("0x5a")]((({data:t})=>t[ra("0xa0")][ra("0x16")](n))))for(const{name:t,data:i}of x)if(n.containsRange(i[ra("0xa0")])){e[ra("0x73")](t,{range:n}),o=!0;break}}return o})),t[ra("0x64")][ra("0x79")][ra("0x59")]((e=>{let i=!1;const o=t.plugins[ra("0x26")](ra("0x4f")).me,r=n[ra("0x8a")]()[ra("0x33")]((t=>t[ra("0x54")]&&t.author==o)),s=new Set,x=new Set;for(const t of r)if("tablePaste"==t[ra("0x1f")])for(const e of t[ra("0x7d")]()){const n=e[ra("0x0")]().getContainedElement();if(n)if(n.is(ra("0x6c"),ra("0x48"))&&ca(n)){t.removeMarker(e[ra("0x1e")]),s.add(n),i=!0;const o=n[ra("0x65")],r=n[ra("0x92")],a=o&&o.is(ra("0x6c"),ra("0x48")),c=r&&r.is(ra("0x6c"),ra("0x48"));a&&!s[ra("0x6")](o)&&x[ra("0x5")](o),c&&!s.has(r)&&x[ra("0x5")](r)}else n.is("element",ra("0x52"))&&n[ra("0x27")]&&(t.removeMarker(e[ra("0x1e")]),i=!0)}else if(ra("0x7a")==t[ra("0x1f")]){if(!t[ra("0x38")]||!t[ra("0x38")][ra("0xaa")])continue;const e=t[ra("0x38")][ra("0x3")];if(e&&Object[ra("0x41")](e).length)continue;const n=t[ra("0x38")][ra("0xaa")];let o=!0,s=!0;for(const e of r)if(e.subType&&e[ra("0x1f")][ra("0x20")](ra("0x4c"))){if(!e.attributes[ra("0xaa")]){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){o=!1;break}}s&&o&&(t[ra("0x46")](),i=!0)}for(const t of s)e[ra("0x47")](t);for(const t of x)e.unwrap(t);return i})),t[ra("0x4b")].for(ra("0x28"))[ra("0x30")]({model:ra("0x14"),view:(t,e)=>l(t),converterPriority:"high"}),t[ra("0x4b")][ra("0x42")](ra("0x36"))[ra("0x30")]({model:ra("0x14"),view:(t,e)=>e[ra("0x96")][ra("0x75")]?l(t,!1):null,converterPriority:ra("0x4e")});const u=t[ra("0xa2")][ra("0x8c")];this[ra("0x9f")](u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x3c")](e[ra("0x9c")]).getItems())t.is(ra("0x6c"),ra("0x99"))&&n.push(t);u[ra("0x7f")]((t=>{for(const e of n)t[ra("0x1c")](t[ra("0x3c")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x27")])return!0;const e=t[ra("0x63")](0);return e.is(ra("0x6c"),ra("0x52"))&&e[ra("0x27")]}function la(t,e={},n){for(const{isAnchor:i,cellHeight:o,cellWidth:r}of n[ra("0x9b")](t,{includeAllSlots:!0,...e}))if(!i||1!=o||1!=r)return!1;return!0}const ua=["editor","data","table","get","afterInit","bind","getColumnGroupElement","subType","resizeTableWidth","registerDescriptionCallback","*Format:* resize table","getSelectedElement","has","handleSuggestionDescription","_suggestionFactory","markBlockFormat","registerCustomCallback","selection","change","enableCommand","getTableColumnsWidths","TableColumnResizeEditing","document","discard","formatGroupId","tableWidth","getContainedElement","formatBlock","formatInline","type","handleResizeTableWidthCommand","getSuggestionCallback","commandParams","accept","resizeTable","TrackChangesEditing","columnWidths","getSuggestions","plugins","Users"];var da,ga;da=ua,ga=303,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x15")](){if(!this.editor[fa("0xf")][fa("0x1d")](fa("0x26")))return;const t=this.editor[fa("0xf")][fa("0x14")]("TrackChangesEditing");t[fa("0x24")](fa("0x19"),this[fa("0x7")].bind(this)),t[fa("0x1f")].registerCustomCallback(fa("0x4"),fa("0xb"),"accept",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0x0"))),t._suggestionFactory[fa("0x21")](fa("0x4"),fa("0xb"),"discard",t[fa("0x1f")][fa("0x8")](fa("0x4"),null,fa("0xa"))),t._descriptionFactory[fa("0x1a")](this[fa("0x1e")][fa("0x16")](this))}[fa("0x7")](t,e){const n=this[fa("0x11")][fa("0xf")][fa("0x14")](fa("0xc")),i=this.editor[fa("0xf")][fa("0x14")]("TableColumnResizeEditing"),o=e[fa("0x13")]||this[fa("0x11")].model[fa("0x27")][fa("0x22")][fa("0x1c")]();this[fa("0x11")].model[fa("0x23")]((()=>{const r=i[fa("0x17")](o);let s=r?i[fa("0x25")](r):null,x=o.getAttribute("tableWidth")||null;const a=e[fa("0x2")]||x,c=e[fa("0xd")]||s,l=this.editor[fa("0xf")][fa("0x14")](fa("0x10")).me;for(const t of n[fa("0xe")]()){const e=t[fa("0x3")]();if("resizeTable"===t[fa("0x18")]&&e===o){t.author!==l&&t.discard();const e=t[fa("0x12")][fa("0x9")];x=e[0].tableWidth,s=e[0][fa("0xd")];break}}t({table:o,tableWidth:a,columnWidths:c}),n[fa("0x20")](o,{commandName:fa("0x19"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0xb")},[],fa("0xb"))}))}[fa("0x1e")](t){if(fa("0x4")!=t[fa("0x6")]&&fa("0x5")!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x1")]){const t=fa("0x1b");return{type:"format",content:Ji(this[fa("0x11")].locale,t)}}}}const ha=["enableCommand","has","editor","afterInit","plugins","Template"];var pa,ba;pa=ha,ba=376,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x4")];t[Ea("0x0")][Ea("0x3")](Ea("0x1"))&&t.plugins.get("TrackChangesEditing")[Ea("0x2")]("insertTemplate")}}const Ta=["insertTableOfContents","TrackChangesEditing","get","enableCommand","plugins","tableOfContents","afterInit","editor","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale"];var ya,Ca;ya=Ta,Ca=227,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x0")];if(!t.commands[Aa("0x6")](Aa("0x4")))return;t[Aa("0x8")][Aa("0x6")](Aa("0x5"))[Aa("0x7")]("insertTableOfContents");const e=t[Aa("0x8")][Aa("0x6")]("TrackChangesEditing"),n=t[Aa("0x3")];e._descriptionFactory[Aa("0x1")](Aa("0x9"),(t=>Ji(n,Aa("0x2"),t)))}}const Ia=["getChangedMarkers","updateMarker","getNearestSelectionRange","differ","locale","title-content","document","has","ELEMENT_TITLE","_splitMarkerName","TrackChangesEditing","isEqual","_descriptionFactory","plugins","createRange","start","isTouching","registerPostFixer","nodeBefore","isCollapsed","newRange","end","forward","schema","get"];var Ra,Sa;Ra=Ia,Sa=448,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[va("0x9")]("Title"))return;const e=t[va("0xf")][va("0x1")](va("0xc"));e[va("0xe")].registerElementLabel(va("0x7"),(()=>Ji(t[va("0x6")],va("0xa")))),t.model[va("0x8")][va("0x13")]((n=>{let i=!1;const o=Array.from(t.model[va("0x8")][va("0x5")][va("0x2")]());for(const{name:r,data:s}of o){const{group:o}=e[va("0xb")](r);if("suggestion"!==o||!s.newRange)continue;const x=s[va("0x16")],a=x[va("0x17")][va("0x14")];if(!a||!a.is("element",va("0x7")))continue;if(!x.start[va("0x12")](x.end))continue;const c=t.model[va("0x0")][va("0x4")](x.end,va("0x18"));if(c&&c[va("0x15")]){const t=n[va("0x10")](x[va("0x11")],c[va("0x11")]);t[va("0xd")](x)||(n[va("0x3")](r,{range:t}),i=!0)}i||(n.removeMarker(r),i=!0)}return i}))}}const La=["enableCommand","plugins","UndoEditing","afterInit","TrackChangesEditing","get","editor","has"];var Ma,wa;Ma=La,wa=167,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x7")],e=t.plugins[Oa("0x6")](Oa("0x5"));t[Oa("0x2")][Oa("0x0")](Oa("0x3"))&&(e[Oa("0x1")]("undo"),e[Oa("0x1")]("redo"))}}const Da=["TableCaptionEditing","editor","toggleTableCaption","afterInit","plugins","has","TrackChangesEditing","requires","get","enableCommand"];var Ba,Pa;Ba=Da,Pa=119,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x8")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x2")];t[Ua("0x5")][Ua("0x6")](Ua("0x1"))&&t[Ua("0x5")][Ua("0x9")](Ua("0x7"))[Ua("0x0")](Ua("0x3"))}}const Ga=["formatBlock","enableCommand","_handlePropertyChange","findAncestor","*Format:* change table cell properties","tableBackgroundColor","tableAlignment","tableBorderStyle","_suggestionFactory","join","discard","enqueueChange","get","selection","table","markBlockFormat","removeAttribute","getSelectionAffectedTableCells","handleDiscardAction","tableCellBorderWidth","getSuggestionCallback","model","tableCellPadding","TableCellPropertiesEditing","tableCellBorderStyle","_getSuggestion","plugins","tableCellProperties","format","afterInit","tableBorderWidth","editor","tableWidth","tableCellVerticalAlignment","batch","data","has","TablePropertiesEditing","TableUtils","accept","tableProperties","TrackChangesEditing","tableCellHeight","subType","setAttribute","TrackChangesTableProperties","*Format:* change table properties","pluginName","nodeAfter","commandParams","handleSuggestionDescription","locale","getAttribute","getFirstPosition","change","tableCellHorizontalAlignment","tableCellWidth","registerCustomCallback","registerDescriptionCallback","document"];var Va,Ha;Va=Ga,Ha=187,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x21")]=["tableBorderColor",za("0x0"),za("0x17"),za("0x3b"),za("0x19"),"tableHeight",za("0x3a")],this[za("0x14")]=["tableCellBorderColor",za("0x11"),za("0xc"),za("0xf"),za("0x31"),za("0x23"),"tableCellBackgroundColor",za("0x30"),za("0x1a")]}static get[za("0x28")](){return za("0x26")}[za("0x16")](){const t=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x1e"))){for(const e of this[za("0x21")])t[za("0x36")](e,((t,n)=>{const i=this[za("0x18")][za("0xe")].document[za("0x6")][za("0x2e")]()[za("0x38")](za("0x7"));this[za("0x37")](e,[i],this.tableProperties,za("0x21"),t,n)}));t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,za("0x3"))),t[za("0x1")][za("0x32")](za("0x35"),za("0x21"),"discard",((t,e)=>this[za("0xb")](this[za("0x21")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableProperties","join",(()=>!1))}if(this[za("0x18")][za("0x13")][za("0x1d")](za("0x10"))){for(const e of this[za("0x14")])t[za("0x36")](e,((t,n)=>{const i=this.editor[za("0x13")].get(za("0x1f"))[za("0xa")](this.editor[za("0xe")][za("0x34")][za("0x6")]);this[za("0x37")](e,i,this[za("0x14")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x32")](za("0x35"),za("0x14"),za("0x20"),t[za("0x1")][za("0xd")](za("0x35"),null,"discard")),t[za("0x1")][za("0x32")](za("0x35"),za("0x14"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x14")],t,e))),t[za("0x1")][za("0x32")](za("0x35"),"tableCellProperties",za("0x2"),(()=>!1))}t._descriptionFactory[za("0x33")]((t=>this[za("0x2b")](t)))}_handlePropertyChange(t,e,n,i,o,r){const s=this[za("0x18")][za("0x13")][za("0x5")](za("0x22"));this[za("0x18")][za("0xe")][za("0x4")](r[za("0x1b")],(()=>{for(const t of e)if(this[za("0x12")](t,i))o(r);else{const e={};for(const i of n){const n=t[za("0x2d")](i);void 0!==n&&(e[i]=n)}o(r),s[za("0x8")](t,{commandParams:[e]},[],i)}}))}[za("0xb")](t,e,n){const i=e[0].start[za("0x29")],o=n[za("0x2a")][0];this[za("0x18")][za("0xe")][za("0x2f")]((e=>{for(const n of t)void 0!==o[n]?e[za("0x25")](n,o[n],i):e[za("0x9")](n,i)}))}[za("0x2b")](t){if(t[za("0x1c")])switch(t[za("0x24")]){case"tableProperties":return{type:"format",content:Ji(this.editor[za("0x2c")],za("0x27"))};case za("0x14"):return{type:za("0x15"),content:Ji(this[za("0x18")][za("0x2c")],za("0x39"))}}}[za("0x12")](t,e){const n=this[za("0x18")][za("0x13")].get(za("0x22"));for(const i of n.getSuggestions({skipNotAttached:!0})){const n=i.getContainedElement();if(i.subType===e&&n===t)return i}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=ot?ot.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,i,o,r){var s=-1,x=e.length;for(i||(i=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,o,r):sn(r,a):o||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const ic=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 oc=Math.max;const rc=function(t,e,n){return e=oc(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,r=oc(i.length-e,0),s=Array(r);++o<r;)s[o]=i[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=i[o];return x[e]=n(s),ic(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var i=ac(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var i=!1;e=ui(e,(function(e){return e=hi(e,t),i||(i=e.length>1),e})),re(t,dn(t),n),i&&(n=ti(n,7,Ja));for(var o=e.length;o--;)Wi(n,e[o]);return n})),uc=["formatInline:chain","detach","getWalker","formatInline:","_breakSuggestionMarker","_customCallbacks","type","isBlock","_initAriaMarkerChangeAnnouncements","getMultiRangeId","fromRange","_rangeIsInLocalUserInsertion","removeMarker:suggestion:attribute","subType","_addThreadToSuggestion","setTo","insertion:accept","registerCustomCallback","from","before","ck-suggestion-marker-","author","_suggestions","_processAttributeSuggestions","_onDiscard","getFirstRange","isOwn","ck-suggestion-marker-formatBlock","Users","toJSON","accept","editing","createRange","suggestionLoaded","elementStart","commands","format","markAttributeChange","addMarker:suggestion","commandName","insertContent","_enabledCommands","highest","isIntersecting","multipleBlocks","formatBlock","createPositionBefore","data-suggestion","values","getLastMatchingPosition","moveTargetPosition","ck-suggestion-marker","PENDING_ACTION_SUGGESTION","plugins","isAfter","schema","TrackChangesEditing","_reduceExistingSuggestions","isObject","hasCommentThread","isArray","markerName","_defaultCallbacks","createPositionAt","_getAttributeKeyFromSubType","attributeOldValue","isMultiRange","formatBlock:","_updateSuggestionData","stop","_descriptionFactory","insertion:join","differ","range","remove","_getExternalAuthor","setSelection","createRangeOn","addMarkerName","batch","multi","authorName","_setSuggestionRange","find","_inlineAttributeKeys","splitPosition","refresh","_mergeNestedSuggestions","isNextTo","_adapter","keys","_setSuggestionData","containsPosition","enableCommand","formatInline:accept","end","_getMarkerAnnouncementText","length","notReady","attribute:","track-changes-adapter-already-set","getCommentThread","_registerDefaultCallbacks","hasSuggestion","previous","removeMarkers","size","toViewElement","_isDataLoaded","comments","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.","deletion:join","normal","elementToElement","warn","isAtEnd","discardAllSuggestions","hasComments","for","getRanges","getIntersection","groupId","reconvertMarker","clear","getUser","@external","isCollapsed","lowest","_addSuggestionMarker","getChangedMarkers","_checkSuggestionCorrectness","getChanges","addAttribute","isIntersectingWithRange","attributes","_reduceSuggestionAttributeRange","suggestion:","fromCharCode","_recordAttributeChanges","suggestionUnloaded","version","collaboration.channelId","chain","isDocumentOperation","addMarker:suggestion:attribute","deleteContent","listenTo","name","open","position","getNearestSelectionRange","acceptSuggestion","upcast","isLimit","getAttribute","insertion:","model","discardSelectedSuggestions","getAncestors","unshift","_refreshSuggestionsChain","insertion:discard","unbind","toUpperCase","markerToData","isRemovable","forEach","track-changes-user-not-found","_findSuggestions","acceptSelectedSuggestions","formatBlock:chain","fire","rename","execute","_enableDefaultAttributesIntegration","$elementName","_model","isInsideObject","dataReady","after","addHighlight","registerPostFixer","oldValue","markMultiRangeBlockFormat","track-changes-suggestion-data-mismatch","track-changes-enable-command-twice","containsRangeInObject","removeMarker","authoredAt","$graveyard","ck-suggestion-marker-formatInline","backward","suggestionChanged","consume","includes","marker-count","createRangeIn","addMarker","isSelectable","rootName","locale","map","_recordAttributeSuggestionsFromVersion","key","concat","getSuggestion","addClass","nodeAfter","suggestion-type","acceptAllSuggestions","has","next","$marker","_joinWithAdjacentSuggestions","markInsertion","isTouching","track-changes-suggestion-not-found","selection","setAttribute","_blockAttributeKeys","group","_isBlockAttribute","attributeNewValue","ck-suggestion-marker--active","join","createElement","some","isUndo","_isForcedDefaultExecutionBlock","getAllAdjacentSuggestions","mapper","ready","deletion:chain","addSuggestionData","discard","update:suggestion","element","stopListening","getItems","never","skipNestingCheck","insert","elementEnd","attribute","removeMarker:suggestion:formatBlock","then","updateMarker","newRange","removeComment","attributeKey","_cutOutSuggestionMarker","sort","trackChanges.trackFormatChanges","default","isExternal","getDifference","newName","item","documentSelection","commentThread","editor","removeAttribute","showSuggestionHighlights","startsWith","getFirstMarker","deletion","markerNameToElements","isInContent","howMany","rethrowUnexpectedError","formatGroupId","external:","containsRange","consumable","getCustomProperty","getSuggestions","getSuggestionCallback","CommentsRepository","_trackFormatChanges","history","add","announce","_editor","markerToHighlight","data","addComment","removeClass","root","containsItem","unbindElementFromMarkerName","$textProxy","ENTER","attribute:discard","_removeSuggestion","$text","forward","move","getShiftedBy","resolve","change","bindElementToMarker","get","substr","every","_refreshAttributeSuggestionsChain","_processAttributeChanges","formatBlock:discard","return","_createSuggestion","isEqual","value","document","assign","rejected","editingDowncast","suggestion","changeAttribute","activeMarkers","createSelection","_suggestionFactory","isLocal","init","applyOperation","markMultiRangeInsertion","trackChangesCommand","always","high","oldRange","nodeBefore","_getSuggestionData","createPositionAfter","push","forceDefaultExecution","options","_suggestionState","formatInline","define","conversion","set","updateSuggestion","addRange","formatBlock:join","_SUGGESTION_ANNOUNCEMENT","_getAuthorFromId","enableReadOnlyMode","_saved","PendingActions","_commentsRepository","_splitMarkerName","error-saving-suggestion-data-suggestion-discarded","_joinSuggestions","fetchCommentThread","isBefore","markInlineFormat","formatInline:discard","enqueueChange","delete","insertion","addSuggestion","split","splice","markers","containerElement","pop","markBlockFormat","createdAt","dataToMarker","markerReady","removed","LEAVE","discardSuggestion","ariaLiveAnnouncer","creator","start","trackChanges","_registerBlockAttribute","head","writer","markDeletion","originalSuggestionId","_registerInlineAttribute","getRange","FORMATTING","accepted","targetPosition","deletion:accept","clone","track-changes-command-not-found","filter","dataDowncast","_handleNewSuggestionMarker","parent","config"];var dc,gc;dc=uc,gc=134,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x29");class hc extends t.Plugin{static get requires(){return[fc("0x8f"),r.Users,t.PendingActions,ao,fo,_o,ko,Lo,Do,Vo,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,Xr,Qr,os,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x13b")}constructor(t){function e(t){return t[fc("0x43")]((t=>String[fc("0x3")](t)))[fc("0x5a")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0xcc")]("activeMarkers",[]),this.on("change:activeMarkers",((e,n,i,o)=>{this._model[fc("0xa5")]((()=>{for(const e of[...o,...i])this._model.markers[fc("0x4c")](e)&&t[fc("0x122")][fc("0x17d")](e)}))})),this[fc("0x149")]=new io(this[fc("0x7e")][fc("0x16")].schema,this[fc("0x7e")][fc("0x42")]),this[fc("0x15c")]=null,this[fc("0xb9")]=new pc(this.editor),this._suggestions=new Map,this[fc("0xd5")]=t[fc("0x138")][fc("0xa7")](fc("0x8f")),this[fc("0x12c")]=new Set,this[fc("0x2a")]=this[fc("0x7e")][fc("0x16")],this[fc("0xc8")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([fc("0x29")]),this._inlineAttributeKeys=new Set,t[fc("0x102")].define("trackChanges.trackFormatChanges",fc("0x77")),this[fc("0x90")]=t[fc("0x102")][fc("0xa7")](fc("0x76")),t[fc("0x102")][fc("0xca")]("trackChanges.mergeNestedSuggestions",!0),this[fc("0x15a")]=t[fc("0x102")].get("trackChanges.mergeNestedSuggestions"),this[fc("0xbe")]=new d(t,this[fc("0x12c")]),this[fc("0x10b")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,53,52])}[fc("0xbb")](){const t=this.editor,n=(t,e)=>{if(fc("0x6d")!=t)return fc("0x117")+t;const n=e[fc("0xe1")]("|")[0];return this._isBlockAttribute(n)?fc("0x11e"):fc("0x38")};t[fc("0xcb")][fc("0x179")](fc("0xb4"))[fc("0x95")]({model:"suggestion",view:t=>{const{id:e,type:i,subType:o}=this[fc("0xd6")](t[fc("0x140")]),r=[fc("0x136"),n(i,o)];let s=3e3;return this[fc("0xb7")][fc("0x3c")](t[fc("0x140")])&&(r[fc("0xc5")](fc("0x59")),s=3010),fc("0x83")==i&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0xcb")][fc("0x179")](fc("0xff"))[fc("0x92")]((e=>{e.on(fc("0x129"),((e,n,i)=>{if(!i[fc("0xc7")][fc("0x80")])return;const o=n.item;if(!o)return;const r=i.mapper[fc("0x16e")](o);t[fc("0x16")][fc("0x13a")][fc("0x13d")](o)&&r&&!r.getCustomProperty("widget")&&r.is(fc("0xe4"))&&(0,x.toWidget)(r,i[fc("0xf3")])}),{priority:fc("0xc0")})})),t[fc("0xcb")][fc("0x179")](fc("0xff")).markerToHighlight({model:fc("0xb5"),view:(t,e)=>{if(!e[fc("0xc7")][fc("0x80")])return null;const{type:i,subType:o}=this[fc("0xd6")](t[fc("0x140")]);return{classes:[fc("0x136"),n(i,o)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,o,r)=>{if(!o[fc("0x7b")])return;const{id:s}=this._splitMarkerName(o[fc("0x140")]);if(n){const t=this[fc("0x119")].get(s),e=this[fc("0x143")](t);if(!this._isBlockAttribute(e))return}if(o[fc("0x7b")].is("selection"))return void r.consumable[fc("0x3b")](o[fc("0x7b")],i[fc("0xd")]);const x=r[fc("0x60")][fc("0x16e")](o.item);if(o[fc("0x7b")].is(fc("0x66"))&&t[fc("0x16")].schema[fc("0x10a")](o[fc("0x7b")])&&!x[fc("0x8c")](fc("0x2e"))){r[fc("0xf3")][fc("0x48")]([fc("0x136"),"ck-suggestion-marker-formatBlock"],x),r.writer[fc("0x54")](fc("0x132"),s,x),r[fc("0x60")][fc("0xa6")](x,o[fc("0x140")]),e&&(this[fc("0xb7")][fc("0x3c")](o[fc("0x140")])?r[fc("0xf3")][fc("0x48")](fc("0x59"),x):r[fc("0xf3")].removeClass(fc("0x59"),x));for(const e of t[fc("0x16")][fc("0x3e")](o[fc("0x7b")])[fc("0x68")]())r[fc("0x8b")].consume(e,i[fc("0xd")]);r.consumable[fc("0x3b")](o[fc("0x7b")],i[fc("0xd")])}};t[fc("0xcb")].for(fc("0xff"))[fc("0x92")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[fc("0xc7")][fc("0x80")]&&i({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x12d")})})),t[fc("0xcb")][fc("0x179")](fc("0xff")).add((t=>{t.on(fc("0xa"),((t,e,n)=>{n.options.showSuggestionHighlights&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x12d")})})),t.conversion[fc("0x179")](fc("0xff"))[fc("0x1e")]({model:fc("0xb5"),view:(t,e)=>e[fc("0xc7")][fc("0x80")]?null:{group:fc("0xb5"),name:t[fc("0xa8")](11)}}),t[fc("0xcb")].for(fc("0x12"))[fc("0x174")]({view:{name:fc("0xb5"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x2")+t[fc("0x14")](fc("0x4a"))+":"+t[fc("0x14")]("id");return t.getAttribute(fc("0x3d"))&&(n+=":"+t[fc("0x14")](fc("0x3d"))),e[fc("0x5b")](fc("0x4e"),{"data-name":n})}}),t[fc("0xcb")][fc("0x179")](fc("0x12"))[fc("0xe8")]({view:fc("0xb5")}),t[fc("0xcb")][fc("0x179")](fc("0xb4"))[fc("0x92")]((t=>{t.on("addMarker:suggestion:formatBlock",i(),{priority:fc("0xc0")})})),t[fc("0xcb")][fc("0x179")](fc("0xb4")).add((t=>{t.on(fc("0xa"),i({isAttributeSuggestion:!0}),{priority:fc("0xc0")})})),t[fc("0xcb")][fc("0x179")](fc("0xb4"))[fc("0x92")]((t=>{t.on(fc("0x6e"),((t,e,n)=>{const i=n[fc("0x60")][fc("0x84")](e.markerName);if(i)for(const t of i)t[fc("0x8c")]("addHighlight")||(n[fc("0xf3")][fc("0x98")]([fc("0x136"),fc("0x11e"),fc("0x59")],t),n[fc("0xf3")][fc("0x7f")](fc("0x132"),t),n[fc("0x60")][fc("0x9b")](t,e[fc("0x140")]))}),{priority:fc("0xc0")})})),t[fc("0xcb")][fc("0x179")](fc("0xb4"))[fc("0x92")]((t=>{t.on(fc("0x10f"),((t,e,n)=>{const i=n[fc("0x60")][fc("0x84")](e[fc("0x140")]);if(!i)return;const{id:o}=this[fc("0xd6")](e.markerName),r=this[fc("0x119")].get(o),s=this._getAttributeKeyFromSubType(r);if(this[fc("0x57")](s))for(const t of i)t.getCustomProperty(fc("0x2e"))||(n[fc("0xf3")].removeClass([fc("0x136"),fc("0x11e"),fc("0x59")],t),n[fc("0xf3")][fc("0x7f")](fc("0x132"),t),n[fc("0x60")][fc("0x9b")](t,e[fc("0x140")]))}),{priority:"high"})})),t[fc("0x16")][fc("0xb1")][fc("0x2f")]((e=>{let n=!1;const i=Array[fc("0x115")](t[fc("0x16")].document[fc("0x14b")][fc("0x184")]()),o=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0xb5")!==i)continue;const d=this[fc("0x119")].get(u);if(null!=a.newRange){fc("0xc9")==c&&(n=n||_c(a[fc("0x71")],x,e,t.model.schema));const i=fc("0x6d")==c&&this[fc("0x57")](l[fc("0xe1")]("|")[0]);if(a[fc("0x71")][fc("0x181")]||fc("0x37")==a[fc("0x71")][fc("0x99")][fc("0x41")]||fc("0x130")==c&&!yc(a[fc("0x71")])||i&&!yc(a[fc("0x71")])||fc("0x83")==c&&(Ec(s=a[fc("0x71")])||(r=s).start[fc("0x101")]==r[fc("0x162")][fc("0xc2")]&&r[fc("0xef")][fc("0x176")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0x85")])continue;o.add(d)}}}var r,s;return o.size>0&&(n=!!this._joinWithAdjacentSuggestions(o)||n),n})),t.model[fc("0xb1")][fc("0x2f")]((e=>{let n=!1;for(const i of t[fc("0x16")].document[fc("0x14b")][fc("0x186")]())if("insert"==i[fc("0x109")])for(const i of this._suggestions[fc("0x133")]()){if(i[fc("0x145")]||!i.isInContent)continue;const o=fc("0x130")==i[fc("0x109")],r=this[fc("0x143")](i),s=r&&this._isBlockAttribute(r);if(!o&&!s)continue;const x=i[fc("0x11c")]();if(x[fc("0xef")][fc("0x101")]!=x[fc("0x162")].parent&&!x.end.isAtEnd){const o=t[fc("0x16")][fc("0x142")](x[fc("0xef")].nodeAfter,"end"),r=t[fc("0x16")][fc("0x123")](x[fc("0xef")],o);e[fc("0x70")](i[fc("0x82")](),{range:r}),n=!0}}return n})),t[fc("0x16")].document.registerPostFixer((t=>this[fc("0xab")](t))),t.model[fc("0xb1")].registerPostFixer((t=>!t[fc("0x152")][fc("0xba")]&&this._processAttributeSuggestions(t))),t[fc("0x16")][fc("0xe3")].on(fc("0x65"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xd6")](e[fc("0xd")]),n=this[fc("0x119")][fc("0xa7")](t);n&&n[fc("0x151")](e.name)}})),t.model[fc("0xb1")].on("change:data",(()=>{const e=Array.from(t[fc("0x16")][fc("0xb1")][fc("0x14b")][fc("0x184")]())[fc("0xfe")]((t=>fc("0xb5")===this._splitMarkerName(t[fc("0xd")])[fc("0x56")]));if(0===e[fc("0x164")])return;e[fc("0x75")](((t,e)=>{const n=t[fc("0x96")][fc("0xc1")],i=e[fc("0x96")][fc("0xc1")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[fc("0xef")][fc("0xda")](i[fc("0xef")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:o}of e){const{id:e}=this._splitMarkerName(t);if(null===o[fc("0xc1")]){const e=this[fc("0x100")](t);i[fc("0x92")](e)}else{const t=this[fc("0x119")][fc("0xa7")](e);null!==o[fc("0x71")]||t[fc("0x85")]?(n.add(t[fc("0xf2")]),i[fc("0x92")](t)):this[fc("0x9f")](t)}}i[fc("0x16d")]>0&&this[fc("0x1a")](i);for(const t of n)this.fire(fc("0x3a"),t)})),t[fc("0x16")].on(fc("0xbc"),((e,n)=>{const i=n[0];if(!this[fc("0x119")][fc("0x16d")])return;if(!i[fc("0x9")])return;if(i[fc("0x152")][fc("0x5d")]||!i[fc("0x152")][fc("0xba")])return;let o,r;switch(i[fc("0x109")]){case fc("0x6b"):o=t[fc("0x16")][fc("0x142")](i[fc("0xf")]),r=o[fc("0xa3")](i[fc("0x86")]);break;case fc("0xe1"):o=t[fc("0x16")][fc("0x142")](i[fc("0x158")]),r=t[fc("0x16")][fc("0x142")](i[fc("0x135")]);break;case fc("0xa2"):o=t.model.createPositionAt(i[fc("0xfa")]),r=o.getShiftedBy(i[fc("0x86")]);break;default:return}const s=t[fc("0x16")][fc("0x123")](o,r);t.model[fc("0xa5")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x22")](s)){if(t.isMultiRange)continue;if("formatInline"==t[fc("0x109")])continue;const n=this[fc("0x143")](t);if(n&&this._isBlockAttribute(n)&&fc("0xe1")!=i[fc("0x109")])continue;const x=t.data&&t[fc("0x96")][fc("0x12f")];(fc("0x130")!=t[fc("0x109")]||fc("0xe1")==i.type&&!x)&&(e[fc("0x34")]||fc("0xdf")==t[fc("0x109")]&&e[fc("0x11d")]||t.getFirstRange().containsRange(s)&&this._breakSuggestionMarker(t,o,r))}}))}),{priority:fc("0x182")}),t[fc("0x16")].on(fc("0xb"),((e,n)=>{const i=n[0],o=n[1];if(o&&o[fc("0xc6")])return;if(this[fc("0x5e")])return;if(!this[fc("0xbe")][fc("0xb0")])return;if(i.isCollapsed)return;const r=t[fc("0x16")][fc("0x13a")],{start:s,end:x}=i.getFirstRange(),a=s[fc("0x49")]&&r[fc("0x13")](s[fc("0x49")])?null:r[fc("0x10")](s,fc("0xa1")),c=x[fc("0xc2")]&&r.isLimit(x[fc("0xc2")])?null:r.getNearestSelectionRange(x,fc("0x39")),l=t[fc("0x16")][fc("0x123")](a?a[fc("0xef")]:s,c?c[fc("0x162")]:x);t.model[fc("0xa5")]((e=>{this.markDeletion(l);const n=t[fc("0x16")][fc("0x13a")][fc("0x10")](l[fc("0xef")]);i.is(fc("0x7c"))?e[fc("0x14f")](n):i[fc("0x112")](n)})),e[fc("0x148")]()}),{priority:e.priorities[fc("0x173")]+10}),t[fc("0x16")].on(fc("0x12b"),((e,n)=>{const i=n[n[fc("0x164")]-1];i&&i.forceDefaultExecution||this[fc("0x5e")]||this.trackChangesCommand[fc("0xb0")]&&(t[fc("0x16")][fc("0xa5")]((()=>{let i=t[fc("0x16")][fc("0x12b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e.return=i[fc("0xfc")]();const o=i[fc("0x162")][fc("0xc2")],r=t[fc("0x16")][fc("0x13a")];o&&r[fc("0x10a")](o)&&!r[fc("0x13d")](o)&&(i=t[fc("0x16")][fc("0x123")](i.start,t[fc("0x16")].createPositionAt(o,fc("0x162")))),this[fc("0x50")](i)})),e[fc("0x148")]())}),{priority:fc("0xc0")}),this.editor[fc("0x126")].add(fc("0xf0"),this[fc("0xbe")]),this[fc("0x160")]("trackChanges");const o=new p(t,this[fc("0x119")]);t[fc("0x126")].add("acceptSuggestion",o),this.enableCommand(fc("0x11"));const r=new y(t,this[fc("0x119")]);t[fc("0x126")].add(fc("0xec"),r),this[fc("0x160")](fc("0xec")),t[fc("0x126")][fc("0x92")]("acceptAllSuggestions",new F(t,o,this._suggestions)),this[fc("0x160")](fc("0x4b")),t[fc("0x126")][fc("0x92")](fc("0x177"),new F(t,r,this[fc("0x119")])),this[fc("0x160")](fc("0x177")),t[fc("0x126")].add(fc("0x23"),new j(t,o,this[fc("0x119")])),this[fc("0x160")](fc("0x23")),t[fc("0x126")].add("discardSelectedSuggestions",new j(t,r,this._suggestions)),this[fc("0x160")](fc("0x17"));const s=t.plugins[fc("0xa7")](fc("0x8f"));this[fc("0xc")](s,fc("0x97"),((t,{threadId:e})=>{const n=this[fc("0x119")].get(e);n&&n.commentThread&&1===n.commentThread[fc("0x164")]&&this[fc("0x147")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0xc")](s,fc("0x72"),((t,{threadId:e})=>{const n=this[fc("0x119")][fc("0xa7")](e);n&&n[fc("0x7d")]&&!n.commentThread[fc("0x164")]&&this[fc("0x147")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[fc("0x15c")])throw new e.CKEditorError(fc("0x167"),this);this[fc("0x15c")]=t}get adapter(){return this[fc("0x15c")]}[fc("0x8d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x119")][fc("0x133")]())t&&!e[fc("0x85")]||n[fc("0xc5")](e);return e?n[fc("0x43")]((t=>t[fc("0x120")]())):n}[fc("0x47")](t){const n=this[fc("0x119")].get(t);if(!n)throw new e.CKEditorError(fc("0x52"),this);return n}[fc("0x16a")](t){return this[fc("0x119")][fc("0x4c")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:i}=t,[o,r]=t.type.split(":"),s=this[fc("0x119")][fc("0xa7")](n)||this._createSuggestion(o,r,n,e,i);if(this[fc("0x111")](s),this[fc("0x185")](s,o,r||null,e),s[fc("0xe7")]=t[fc("0xe7")],s[fc("0x16f")]=!0,i&&i[fc("0x180")]){const t=i[fc("0x180")],e=this[fc("0x14e")](t[fc("0x154")]);s[fc("0x36")]=t[fc("0xe7")],s[fc("0x118")]=e,s[fc("0x78")]=!0}else s[fc("0x36")]=t[fc("0xe7")];switch(t[fc("0x96")]&&(s[fc("0x96")]=t[fc("0x96")]),t[fc("0x0")]&&(s.attributes=t.attributes),this._adapter&&this._adapter[fc("0xe0")]||(s[fc("0xd3")]=!0),this[fc("0xc8")][fc("0xa7")](s)){case fc("0x165"):this._suggestionState[fc("0xcc")](s,fc("0x2c"));break;case fc("0xe9"):s[fc("0x85")]?(this[fc("0x1a")](new Set([s])),this[fc("0x4f")](new Set([s])),this[fc("0xc8")][fc("0xcc")](s,fc("0x61")),this[fc("0x25")](fc("0x124"),s)):this[fc("0xc8")][fc("0xcc")](s,fc("0xea"))}return s}[fc("0x11")](t){this[fc("0xc6")]((()=>{this[fc("0x7e")][fc("0x16")][fc("0xa5")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x121")]()}))}))}[fc("0xec")](t){this[fc("0xc6")]((()=>{this[fc("0x7e")].model[fc("0xa5")]((()=>{for(const e of t[fc("0x5f")]())e[fc("0x64")]()}))}))}[fc("0x160")](t,n){const i=this[fc("0x7e")][fc("0x126")][fc("0xa7")](t);if(!i)throw new e.CKEditorError(fc("0xfd"),this,{commandName:t});if(this[fc("0x12c")][fc("0x4c")](i))throw new e.CKEditorError(fc("0x33"),this,{commandName:t});this[fc("0x12c")][fc("0x92")](i),n&&i.on(fc("0x27"),((t,e)=>{this[fc("0xbe")].value&&(this[fc("0x5e")]||(e[fc("0x164")]>0&&e[e[fc("0x164")]-1]&&e[e[fc("0x164")]-1][fc("0xc6")]?e[fc("0xe5")]():(t[fc("0xad")]=n(((...t)=>i[fc("0x27")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x148")]())))}),{priority:fc("0xc0")})}forceDefaultExecution(t){let n,i;const o=this[fc("0x5e")];this[fc("0x5e")]=!0;try{n=t()}catch(t){i=t}return o||(this[fc("0x5e")]=!1),i&&e.CKEditorError[fc("0x87")](i,this),n}[fc("0x50")](t,n=null,i={}){if(t[fc("0x181")])return null;const o=this[fc("0x7e")][fc("0x138")][fc("0xa7")](fc("0x11f")).me;for(const{suggestion:e,meta:o}of this[fc("0x22")](t,fc("0xdf")))if(o[fc("0x11d")]){if(!o[fc("0x15b")]){if(o.containsRangeInObject){if(!this._mergeNestedSuggestions||!Ic(e,i))continue;return e}if(Ic(e,i))return e;this[fc("0x107")](e,t[fc("0xef")],t.end);break}if(n==e[fc("0x110")]&&Ic(e,i)){const n=e[fc("0x11c")]();return n[fc("0xef")][fc("0xaf")](t.end)?this[fc("0x155")](e,this._model.createRange(t[fc("0xef")],n[fc("0x162")])):this._setSuggestionRange(e,this._model.createRange(n.start,t[fc("0x162")])),e}}const r=(0,e.uid)(),s=o.id,x=n?fc("0x15")+n:fc("0xdf"),a=this[fc("0x15e")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:i});return this._addSuggestionMarker(x,r,s,t),a}[fc("0xbd")](t,n=fc("0x153"),i={}){const o=this[fc("0x7e")][fc("0x138")].get(fc("0x11f")).me,r=this[fc("0xb9")][fc("0x8e")](fc("0xdf"),n,fc("0x5a"));for(const e of this.getSuggestions())if(e[fc("0x118")].id==o.id&&fc("0xdf")==e[fc("0x109")]&&e[fc("0x110")]==n&&Ic(e,i)&&(r(e[fc("0x17a")](),t)||r(t,e.getRanges()))){for(const n of t)e[fc("0xce")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x22")](t,"insertion")){if(!n.isOwn)continue;if(!this[fc("0x15a")]&&n.containsRangeInObject)continue;if(!Ic(e,i))continue;let o=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x8a")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=fc("0x15")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this[fc("0x183")](a,s,x,e,Yi[fc("0x10c")]());return c}[fc("0xdb")](t,n,i=null,o={}){if(i=i||Tc(n),t[fc("0x181")])return null;if(fc("0x69")===this[fc("0x90")]){const e=this[fc("0xb9")].getSuggestionCallback("formatInline",i,fc("0x121"));return this[fc("0xc6")]((()=>e([t],n,o))),null}const r=this[fc("0x7e")][fc("0x138")].get(fc("0x11f")).me,s=[];if(fc("0xbf")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0x22")](t,"insertion"))n.isOwn&&!n[fc("0x2b")]&&s.push(...e[fc("0x17a")]());const x=function(t,e){const n=[];for(const i of e){const e=t[fc("0x17b")](i);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[fc("0x164")];){const i=n[e][fc("0x79")](t);n[fc("0xe2")](e,1,...i),e+=i[fc("0x164")]}}return n}(t,s);x[fc("0x164")]&&this[fc("0x2a")][fc("0xa5")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x8e")]("formatInline",i,fc("0x121"));this[fc("0xc6")]((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t[fc("0xef")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x22")](t,fc("0xc9"))){if(!n[fc("0x11d")])continue;if(e[fc("0x110")]!=i)continue;if(!Ic(e,o))continue;const r=e[fc("0x11c")]();if(r.containsRange(t,!0))return null;x=x[fc("0xda")](r.start)?x:r.start,a=a.isAfter(r.end)?a:r.end,s?r.start[fc("0xda")](s.getFirstRange().start)?(s[fc("0x16c")](),s=e):e[fc("0x16c")]():s=e}const c=this[fc("0x2a")].createRange(x,a);if(s)this[fc("0x155")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x15e")]({id:t,type:fc("0x106")+i,data:n,createdAt:new Date,authorId:s,attributes:o}),this[fc("0x183")](fc("0x106")+i,t,s,c)}}return null}[fc("0xe6")](t,n,i=[],o=null,r={}){n[fc("0x88")]||(n.formatGroupId=n[fc("0x12a")]),n[fc("0x12f")]=t.is(fc("0x14c")),o=o||Tc(n);const s=i.map((t=>Cc(t,this[fc("0x2a")]))),x=t.is(fc("0x14c"))?t:Cc(t,this[fc("0x2a")]);if("never"===this[fc("0x90")]){const t=this[fc("0xb9")][fc("0x8e")](fc("0x130"),o,fc("0x121"));return this[fc("0xc6")]((()=>t([x],n,r))),null}s[fc("0xc5")](x);let a=!0;for(const t of s)if(!this[fc("0x10e")](t)){a=!1;break}if(a&&"always"!==this[fc("0x90")]){const t=this[fc("0xb9")][fc("0x8e")]("formatBlock",o,fc("0x121"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[fc("0xef")],u=x[fc("0x162")];for(const{suggestion:t,meta:e}of this[fc("0x22")](x,fc("0x130"))){if(!e.isOwn)continue;if(e[fc("0x15b")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[fc("0x96")][fc("0x88")]!=n[fc("0x88")])continue;if(!Ic(t,r))continue;const i=t[fc("0x11c")]();if(t[fc("0x110")]==o){if(i[fc("0x8a")](x,!0))return null;l=l[fc("0xda")](i[fc("0xef")])?l:i[fc("0xef")],u=u[fc("0x139")](i[fc("0x162")])?u:i[fc("0x162")],c?i[fc("0xef")][fc("0xda")](c[fc("0x11c")]()[fc("0xef")])?(c[fc("0x16c")](),c=t):t[fc("0x16c")]():c=t}else{const e=x[fc("0x17b")](i);this[fc("0x74")](t,e)}}const d=this[fc("0x7e")][fc("0x138")][fc("0xa7")](fc("0x11f")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x155")](c,this._model[fc("0x123")](l,u)),c;{const t=this[fc("0x15e")]({id:g,type:fc("0x146")+o,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(fc("0x146")+o,g,f,this[fc("0x2a")][fc("0x123")](l,u)),t}}[fc("0x31")](t,n,i=[],o=null,r={}){n[fc("0x88")]||(n.formatGroupId=n[fc("0x12a")]);const s=t[0];n[fc("0x12f")]=s.is(fc("0x14c")),o=o||Tc(n);const x=i[fc("0x43")]((t=>Cc(t,this[fc("0x2a")]))),a=s.is(fc("0x14c"))?t:t[fc("0x43")]((t=>Cc(t,this[fc("0x2a")])));if(fc("0x69")===this[fc("0x90")]){const t=this[fc("0xb9")].getSuggestionCallback(fc("0x130"),o,fc("0x121"));return this[fc("0xc6")]((()=>t(a,n,r))),null}x[fc("0xc5")](...a);let c=!0;for(const t of x)if(!this[fc("0x10e")](t)){c=!1;break}if(c&&fc("0xbf")!==this[fc("0x90")]){const t=this[fc("0xb9")][fc("0x8e")](fc("0x130"),o,fc("0x121"));return this[fc("0xc6")]((()=>t(a,n,r))),null}const l=this[fc("0x7e")][fc("0x138")][fc("0xa7")]("Users").me;for(const t of this.getSuggestions()){if(t[fc("0x118")].id!=l.id)continue;if("formatBlock"!=t[fc("0x109")]||t[fc("0x96")][fc("0x88")]!=n[fc("0x88")])continue;if(!Ic(t,r))continue;const e=t.subType==o;for(let n=0;n<a.length;n++){const i=a[n];for(const o of t.getMarkers()){const r=o[fc("0xf7")]();if(i[fc("0xaf")](r)){e?(a[fc("0xe2")](n,1),n--):t[fc("0x35")](o[fc("0xd")]);break}}}}if(0==a[fc("0x164")])return null;const u=this[fc("0xb9")][fc("0x8e")]("formatBlock",o,fc("0x5a"));for(const t of this[fc("0x8d")]())if(t[fc("0x118")].id==l.id&&fc("0x130")==t.type&&t.data[fc("0x88")]==n[fc("0x88")]&&t.subType==o&&Ic(t,r)&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0xce")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x146")+o,m=this[fc("0x15e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x183")](f,d,g,t,Yi.getMultiRangeId());return m}[fc("0xf4")](t,n=null,i={}){if(t[fc("0x181")])return null;const o=this.editor[fc("0x138")].get(fc("0x11f")).me,r=new s.LiveRange(t.start,t[fc("0x162")]);for(const{suggestion:t,meta:e}of this[fc("0x22")](r,fc("0xdf")))if(e.isOwn&&!e[fc("0x15b")])if(t[fc("0x145")]){const e=t[fc("0x17a")]()[fc("0xfe")]((t=>fc("0x37")!=t[fc("0x99")].rootName));if(e.every((t=>r.containsRange(t,!0)))&&t.discard(),e.some((t=>t[fc("0x8a")](r,!0)))){const t=this[fc("0xb9")][fc("0x8e")]("deletion",n,fc("0x121"));return this[fc("0xc6")]((()=>t([r],null,i))),null}}else{const e=r[fc("0x17b")](t.getFirstRange());null!==e&&t[fc("0x11b")]([e],null,i)}if(r[fc("0x104")](),r[fc("0x181")]||"$graveyard"==r[fc("0x99")][fc("0x41")])return null;let x=null,a=r[fc("0xef")],c=r[fc("0x162")];const l=this[fc("0x22")](r,fc("0x83"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x2a")][fc("0x123")](a,c);if(e[fc("0x11d")]&&(this[fc("0x15a")]||!e.containsRangeInObject&&!e[fc("0x2b")]))if(t[fc("0x145")]){if(!Ic(t,i))continue;let e=!0;for(const i of t.getRanges()){if(i[fc("0x8a")](n,!0))return t;n[fc("0x8a")](i)||(e=!1)}e&&t.discard()}else{const e=t[fc("0x11c")]();if(e[fc("0x8a")](n,!0))return t;if(!Ic(t,i)){n.containsRange(e)?t[fc("0x16c")]():e.containsPosition(a)?a=e[fc("0x162")]:e.containsPosition(c)&&(c=e.start);continue}a=a.isBefore(e[fc("0xef")])?a:e[fc("0xef")],c=c.isAfter(e.end)?c:e[fc("0x162")],i=Object[fc("0xb2")]({},t[fc("0x0")]),x?e.start[fc("0xda")](x[fc("0x11c")]()[fc("0xef")])?(x[fc("0x16c")](),x=t):t[fc("0x16c")]():x=t}}if(x)return this[fc("0x155")](x,this._model[fc("0x123")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x2a")][fc("0x123")](a,c),s=o.id,x=n?"deletion:"+n:fc("0x83"),l=this[fc("0x15e")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this._addSuggestionMarker(x,t,s,r),l}}markMultiRangeDeletion(t,n=fc("0x153"),i={}){const o=this[fc("0x7e")][fc("0x138")][fc("0xa7")]("Users").me,r=t[fc("0x43")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x22")](r,fc("0xdf")))e[fc("0x11d")]&&!e[fc("0x15b")]&&x[fc("0x92")](t);for(const e of x)if(e.isMultiRange){const o=e[fc("0x17a")]();if((!e.attributes||!e[fc("0x0")].skipNestingCheck)&&o.every((t=>r[fc("0x5c")]((e=>e[fc("0x8a")](t,!0)))))&&e[fc("0x64")](),r[fc("0xa9")]((t=>o.some((e=>e[fc("0x8a")](t,!0)))))){const e=this[fc("0xb9")][fc("0x8e")](fc("0x83"),n,"accept");return this[fc("0xc6")]((()=>e(t,null,i))),null}}else{const t=e.getFirstRange();if(r[fc("0x5c")]((e=>e[fc("0x8a")](t,!0)))&&e.discard(),r.every((e=>t[fc("0x8a")](e,!0)))){const t=this._suggestionFactory[fc("0x8e")](fc("0x83"),n,fc("0x121"));return this[fc("0xc6")]((()=>t(r,null,i))),null}}const a=this[fc("0xb9")].getSuggestionCallback("deletion",n,fc("0x5a"));let c=null;for(const t of this[fc("0x8d")]())if(t[fc("0x118")].id==o.id&&t.isInContent&&"deletion"==t[fc("0x109")]&&t[fc("0x110")]==n&&Ic(t,i)&&(a(t[fc("0x17a")](),r)||a(r,t[fc("0x17a")]())))if(c){if(t.commentThread&&t[fc("0x7d")][fc("0x164")])continue;for(const e of t[fc("0x17a")]())c[fc("0x188")](e)||c[fc("0xce")](e);t.removeMarkers()}else{c=t;for(const e of r)t[fc("0x188")](e)||t.addRange(e)}if(c)return c;x[fc("0x17e")]();for(const{suggestion:t,meta:e}of this[fc("0x22")](r,fc("0x83")))e[fc("0x11d")]&&(this[fc("0x15a")]||!e[fc("0x34")]&&!e[fc("0x2b")])&&Ic(t,i)&&x[fc("0x92")](t);for(const t of x){const e=t[fc("0x17a")]();if((!i||!i.skipNestingCheck)&&r[fc("0xa9")]((t=>e.some((e=>e[fc("0x8a")](t,!0))))))return t;(!t[fc("0x0")]||!t[fc("0x0")].skipNestingCheck)&&e[fc("0xa9")]((t=>r[fc("0x5c")]((e=>e[fc("0x8a")](t,!0)))))&&t[fc("0x64")]()}const l=(0,e.uid)(),u=o.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of r)t.detach(),t[fc("0x181")]||fc("0x37")==t[fc("0x99")].rootName||this[fc("0x183")](d,l,u,t,Yi[fc("0x10c")]());return g}markAttributeChange(t,n,i,o,r){if(t.isCollapsed)return[];if(fc("0x69")===this[fc("0x90")])return[];const s=this[fc("0x7e")].plugins[fc("0xa7")](fc("0x11f")).me.id,x=Array[fc("0x115")](this[fc("0x119")][fc("0x133")]())[fc("0xfe")]((e=>fc("0x6d")==e.type&&e[fc("0x96")][fc("0x45")]==n&&e[fc("0x188")](t)));if("default"===this[fc("0x90")]){const e=this[fc("0x22")](t,fc("0xdf")).filter((({meta:t})=>t[fc("0x11d")]&&!t[fc("0x2b")]&&!t[fc("0x15b")]))[fc("0x43")]((({suggestion:t})=>t));x[fc("0x19")](...e)}const a=new Map([[t,i]]);for(const t of x){const e=fc("0x6d")==t[fc("0x109")]?t[fc("0x96")][fc("0x30")]:void 0,n=t[fc("0x11c")](),r=Array.from(a[fc("0x15d")]())[fc("0x156")]((t=>t.isIntersecting(n)));r&&(a.delete(r),r[fc("0x79")](n)[fc("0x20")]((t=>{a[fc("0xcc")](t,i)})),"insertion"!=t[fc("0x109")]&&e!=o&&a[fc("0xcc")](r[fc("0x17b")](n),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:o};n.length>37&&console[fc("0x175")](fc("0x171"),{key:n});const l=(fc("0x166")+(n+"|")+Tc({newValue:o})).substring(0,60),u=this[fc("0x15e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0xc5")](u),this[fc("0x183")](l,x,s,t)}return c}[fc("0xf1")](t){this[fc("0x55")][fc("0x92")](t)}[fc("0xf6")](t){this[fc("0x157")][fc("0x92")](t)}[fc("0x28")](t,e=[],n=[]){this[fc("0x160")](t,((t,...e)=>{this[fc("0x4")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xf6")](t);for(const t of n)this[fc("0xf1")](t)}[fc("0x155")](t,e){const n=t[fc("0x82")]();this[fc("0x2a")].change((t=>{t[fc("0x70")](n,{range:e})}))}[fc("0x111")](t){const e=t.id,n=this[fc("0x7e")].config[fc("0xa7")](fc("0x7"));this._commentsRepository[fc("0x13e")](e)||this[fc("0xd5")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[fc("0xd5")][fc("0x168")](e);i[fc("0x1c")](fc("0x1f")),i[fc("0x1f")]=!1,t[fc("0x7d")]=i}[fc("0x185")](t,n,i,o){if(t[fc("0x109")]!=n||t.subType!=i||t[fc("0xee")].id!=o)throw this[fc("0x7e")][fc("0xd2")](fc("0x32")),new e.CKEditorError(fc("0x32"),this)}_cutOutSuggestionMarker(t,n){const i=t[fc("0x11c")]();if(n.isEqual(i))t.removeMarkers();else if(i[fc("0x8a")](n)){const o=this[fc("0x2a")][fc("0x142")](n[fc("0xef")].nodeBefore,fc("0x162"));this[fc("0x155")](t,this[fc("0x2a")][fc("0x123")](i[fc("0xef")],o));const r=(0,e.uid)(),s=t[fc("0xee")].id,x=t[fc("0x109")]+":"+t[fc("0x110")];this[fc("0x15e")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x96")],attributes:t[fc("0x0")]});const a=this[fc("0x2a")][fc("0x142")](n[fc("0x162")].parent,fc("0x2d")),c=this[fc("0x2a")].createRange(a,i[fc("0x162")]);this[fc("0x183")](x,r,s,c)}else if(i[fc("0x15f")](n[fc("0xef")])){const e=this._model[fc("0x142")](n.start[fc("0xc2")],fc("0x162"));this[fc("0x155")](t,this[fc("0x2a")][fc("0x123")](i[fc("0xef")],e))}else{const e=this[fc("0x2a")][fc("0x142")](n.end[fc("0x101")],fc("0x2d"));this._setSuggestionRange(t,this._model[fc("0x123")](e,i.end))}}[fc("0x10e")](t){for(const{suggestion:e,meta:n}of this[fc("0x22")](t,fc("0xdf"))){if(!n[fc("0x11d")])continue;const i=e.getRanges();for(const e of i)if(!t[fc("0x79")](e)[fc("0x164")])return!0}return!1}[fc("0xd1")](t){const n=this[fc("0x7e")][fc("0x138")].get(fc("0x11f"))[fc("0x17f")](t);if(!n)throw new e.CKEditorError(fc("0x21"),this);return n}[fc("0x14e")](t){const e=this[fc("0x7e")][fc("0x138")][fc("0xa7")](fc("0x11f")),n=(0,r.hashObject)(fc("0x89")+t);return e.getUser(n)||e.addUser({id:n,name:t})}[fc("0xae")](t,e,n,i,o){const r=this[fc("0xd1")](i),s=this[fc("0xb9")].buildSuggestion(t,e,n,r,o,(t=>this[fc("0x147")](n,{attributes:t})));return this[fc("0xc")](s,"accept",(()=>{this._updateSuggestionData(n,{state:fc("0xf9")})}),{priority:fc("0xc0")}),this[fc("0xc")](s,fc("0x64"),(()=>{this[fc("0x147")](n,{state:fc("0xb3")})}),{priority:"high"}),this[fc("0x119")][fc("0xcc")](n,s),this._suggestionState[fc("0xcc")](s,"notReady"),s}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x164")]>=5?e[2]:null,id:e[fc("0x164")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[fc("0x164")]?e[5]:null}}[fc("0x107")](t,n,i){const o=t.getFirstRange(),r=o[fc("0xef")],s=o.end;this[fc("0x155")](t,this[fc("0x2a")][fc("0x123")](r,n));const x=(0,e.uid)(),a=t[fc("0xee")].id,c=t[fc("0x109")]+(t[fc("0x110")]?":"+t[fc("0x110")]:"");this[fc("0x15e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x0")],data:t[fc("0x96")]});const l=this._getAttributeKeyFromSubType(t);(fc("0x130")==t[fc("0x109")]||l&&this[fc("0x57")](l))&&(i=this[fc("0x2a")][fc("0x131")](i[fc("0x101")])),this._addSuggestionMarker(c,x,a,this[fc("0x2a")][fc("0x123")](i,s))}[fc("0x22")](t,e=null){const n=[],i=this[fc("0x7e")][fc("0x138")][fc("0xa7")](fc("0x11f")).me;Array[fc("0x13f")](t)||(t=[t]);for(const o of this.getSuggestions()){if(!o[fc("0x85")])continue;if(e&&o[fc("0x109")]!=e)continue;let r=!1;for(const e of o[fc("0x17a")]()){for(const s of t){const t=s[fc("0xef")][fc("0xaf")](e[fc("0x162")])||s[fc("0x162")][fc("0xaf")](e[fc("0xef")]);if(t||s[fc("0x17b")](e)){const x=s.containsRange(e)&&bc(this[fc("0x2a")][fc("0x13a")],e[fc("0xef")],s),a=e[fc("0x8a")](s)&&bc(this[fc("0x2a")][fc("0x13a")],s.start,e);n[fc("0xc5")]({suggestion:o,meta:{isOwn:i==o[fc("0x118")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x183")](t,e,n,i,o){this[fc("0x2a")][fc("0xa5")]((r=>{let s="suggestion:"+t+":"+e+":"+n;o&&(s=s+":"+o),r[fc("0x3f")](s,{range:i,usingOperation:!0,affectsData:!0})}))}[fc("0x9f")](t){const e=t.previous,n=t[fc("0x4d")];t[fc("0x16b")]=null,t[fc("0x4d")]=null,null!=e&&(e[fc("0x4d")]=n),null!=n&&(n.previous=e),fc("0x61")==this._suggestionState.get(t)&&(this[fc("0xc8")][fc("0xcc")](t,fc("0xea")),this[fc("0x25")](fc("0x5"),t,e,n))}_setSuggestionData(t){const n=t.id,i=this[fc("0x63")](t);if(this[fc("0x15c")]&&this._adapter[fc("0xe0")]){const o=this[fc("0x7e")].plugins[fc("0xa7")](fc("0xd4")),r=i.hasComments,s=i[fc("0x110")]?i[fc("0x109")]+":"+i[fc("0x110")]:i[fc("0x109")],x=this[fc("0x7e")].locale,a=o[fc("0x92")](Ji(x,fc("0x137"))),c={id:n,type:s,hasComments:r,data:t[fc("0x96")]||null,originalSuggestionId:t[fc("0xf5")]||null,attributes:i[fc("0x0")]};this._adapter[fc("0xe0")](c).then((t=>{i[fc("0xd3")]=!0,o[fc("0x14d")](a),t&&t[fc("0xe7")]&&(this._suggestions[fc("0xa7")](n)[fc("0xe7")]=t[fc("0xe7")])})).catch((t=>{throw(0,e.logWarning)(fc("0xd7")),this[fc("0x7e")][fc("0x16")][fc("0xdd")]({isUndoable:!1},(()=>{i[fc("0x64")]()})),i[fc("0x67")](),this._suggestions[fc("0xde")](i.id),this._suggestionState.delete(i),t}))}return i}[fc("0x57")](t){return this[fc("0x55")][fc("0x4c")](t)}[fc("0x143")](t){return fc("0x6d")==t.type&&t[fc("0x110")].split("|")[0]}_updateSuggestionData(t,e){const n=this[fc("0x7e")][fc("0x138")][fc("0xa7")](fc("0xd4")),i=this.getSuggestion(t);if(this[fc("0x15c")]&&this[fc("0x15c")][fc("0xcd")])if(i[fc("0xd3")]){const i=n[fc("0x92")](Ji(this[fc("0x7e")][fc("0x42")],fc("0x137")));this[fc("0x15c")][fc("0xcd")](t,e).then((()=>{n.remove(i)}))}else i.on("change:_saved",(()=>{this[fc("0x147")](t,e)}))}[fc("0xc3")](t){if(!this[fc("0x15c")]||!this[fc("0x15c")].getSuggestion)throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x15c")].getSuggestion(t)}[fc("0x100")](t){const{id:e,type:n,subType:i,authorId:o}=this[fc("0xd6")](t),r=this[fc("0x119")][fc("0xa7")](e)||this[fc("0xae")](n,i,e,o,{});switch(this[fc("0x185")](r,n,i,o),this[fc("0xc8")].get(r)){case fc("0x165"):this._getSuggestionData(e)[fc("0x6f")]((t=>{let n=Promise[fc("0xa4")]();t.hasComments&&(n=this._commentsRepository[fc("0xd9")]({channelId:this[fc("0x7e")][fc("0x102")][fc("0xa7")](fc("0x7")),threadId:e})),n[fc("0x6f")]((()=>{this[fc("0x63")](t)[fc("0xd3")]=!0}))})),this[fc("0xc8")][fc("0xcc")](r,"markerReady");break;case fc("0xea"):this[fc("0x147")](e,{state:fc("0xe")});case fc("0x2c"):this[fc("0xc8")][fc("0xcc")](r,fc("0x61")),this[fc("0x25")]("suggestionLoaded",r);break;case fc("0x61"):this[fc("0x25")]("suggestionChanged",r)}return r[fc("0x151")](t),r}[fc("0x1a")](t){const e=Array.from(t),n=e.filter((t=>fc("0x6d")==t[fc("0x109")]));this[fc("0xaa")](n);const i=e[fc("0xfe")]((t=>!t[fc("0x145")]&&fc("0x6d")!=t[fc("0x109")])),o=this.getSuggestions({skipNotAttached:!0})[fc("0xfe")]((t=>!t[fc("0x145")]&&fc("0x6d")!=t.type)),r=o[fc("0xfe")]((e=>!t[fc("0x4c")](e))),s=new Map(o[fc("0x43")]((t=>[t,this._suggestionFactory[fc("0x8e")](t.type,t[fc("0x110")],fc("0x8"))]))),x=new Map(o[fc("0x43")]((t=>[t,t[fc("0x11c")]()]))),a=new Set,c=new Set;for(let t=0;t<i[fc("0x164")];t++)u(i[t],i,t+1);for(let t=0;t<i[fc("0x164")];t++)u(i[t],r,0);const l=new Set;for(let t=0;t<i.length;t++){const e=i[t];!c.has(e)&&e[fc("0x16b")]&&(l[fc("0x92")](e[fc("0x16b")]),e[fc("0x16b")][fc("0x4d")]===e&&(e[fc("0x16b")].next=null),e[fc("0x16b")]=null),!a[fc("0x4c")](e)&&e[fc("0x4d")]&&(l[fc("0x92")](e[fc("0x4d")]),e[fc("0x4d")][fc("0x16b")]===e&&(e[fc("0x4d")][fc("0x16b")]=null),e[fc("0x4d")]=null)}function u(t,e,n){for(let i=n;i<e[fc("0x164")];i++){const n=d(t,e[i]);n&&(n[0].next=n[1],n[1][fc("0x16b")]=n[0],a.add(n[0]),c[fc("0x92")](n[1]))}}function d(t,e){if(t[fc("0x118")].id!==e[fc("0x118")].id)return null;const n=s[fc("0xa7")](t)(t,e,x[fc("0xa7")](t),x[fc("0xa7")](e));return n&&s[fc("0xa7")](e)(t,e,x[fc("0xa7")](t),x.get(e))?n[1][fc("0x7d")]&&n[1].commentThread[fc("0x164")]?null:n:null}l[fc("0x16d")]&&this[fc("0x1a")](l)}[fc("0xaa")](t){if(0==t[fc("0x164")])return;const e=this.getSuggestions({skipNotAttached:!0})[fc("0xfe")]((t=>"attribute"==t.type&&t[fc("0x16f")])),n=[],i=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x0")]);i[fc("0x4c")](e)||(i[fc("0xcc")](e,n[fc("0x164")]),n[fc("0xc5")]([]));const o=i.get(e);n[o][fc("0xc5")](t)}!function(){n[fc("0x75")](((t,e)=>{const n=t[0][fc("0xe7")],i=e[0][fc("0xe7")];return n==i?t[0].attributes[fc("0x17c")]<e[0].attributes[fc("0x17c")]?-1:1:n<i?-1:1}));for(const t of n)t[fc("0x75")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x164")];t++){if(0==n[t][fc("0x164")])continue;const e=[];for(let i=t+1;i<n[fc("0x164")];i++)0!=n[i].length&&o(n[t],n[i])&&e.push(i);for(const i of e)n[t]=n[t][fc("0x46")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x4d")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x164")];e++)t[e].previous=t[e-1]||null;function o(t,e){if(t[0][fc("0x118")]!==e[0][fc("0x118")])return!1;if(n=t[0],i=e[0],(n[fc("0x178")]||i[fc("0x178")])&&(n[fc("0x178")]&&i.hasComments||!(n.hasComments&&i[fc("0xe7")]<n.commentThread[fc("0x170")].get(0)[fc("0xe7")]||i[fc("0x178")]&&n.createdAt<i[fc("0x7d")][fc("0x170")][fc("0xa7")](0)[fc("0xe7")])))return!1;var n,i;const o=lc(t[0][fc("0x0")],fc("0x17c")),r=lc(e[0][fc("0x0")],"groupId");return!!ji(o,r)&&(!!t[fc("0xa9")]((t=>e.some((e=>t[fc("0x11c")]().isEqual(e[fc("0x11c")]())))))&&e.every((e=>t[fc("0x5c")]((t=>e[fc("0x11c")]().isEqual(t[fc("0x11c")]()))))))}}[fc("0x4f")](t){const e=Array[fc("0x115")](t),n=this[fc("0x8d")]({skipNotAttached:!0}),i=n.filter((e=>!t[fc("0x4c")](e))),o=new Map(e[fc("0x43")]((t=>[t,this[fc("0xb9")][fc("0x8e")](t[fc("0x109")],t.subType,fc("0x5a"))]))),r=new Map(n[fc("0x43")]((t=>[t,t[fc("0x17a")]()])));for(let t=0;t<e[fc("0x164")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x164")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[fc("0x164")];s++){const i=n[s];if(i[fc("0x109")]!==e[fc("0x109")]||i.author.id!==e[fc("0x118")].id||i[fc("0x110")]!==e[fc("0x110")])continue;if(!kc(e,i))continue;if(fc("0x6d")==e[fc("0x109")]&&e[fc("0x96")][fc("0x30")]!=i[fc("0x96")][fc("0x30")])continue;if("attribute"==e[fc("0x109")]&&t[fc("0x57")](e.data[fc("0x45")]))continue;const x=o[fc("0xa7")](e),a=r.get(e),c=r[fc("0xa7")](i),l=e[fc("0x7d")]&&e[fc("0x7d")][fc("0x164")],u=i[fc("0x7d")]&&i[fc("0x7d")][fc("0x164")];if(!l&&x(c,a))return t[fc("0xd8")](i,e),r[fc("0xde")](e),!0;if(!u&&x(a,c))return t[fc("0xd8")](e,i),r[fc("0xde")](i),!0}return!1}}[fc("0xd8")](t,e){if(t[fc("0x145")])for(const n of e.getRanges())t[fc("0xce")](n);else{const n=e[fc("0x11c")]()[fc("0x162")];this._setSuggestionRange(t,this._model[fc("0x123")](t[fc("0x11c")]()[fc("0xef")],n))}e[fc("0x16c")]()}[fc("0x163")](t,e){const n=t.startsWith(fc("0x127"))||t[fc("0x81")](fc("0x6d"))?fc("0xf8"):t[fc("0x1d")]();return Ji(this[fc("0x7e")][fc("0x42")],e+"_"+n+fc("0xd0"))}[fc("0x10b")](){const t=this[fc("0x7e")];(0,r.surroundingMarkersDetector)(this[fc("0x2a")],(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[fc("0xd6")](t[fc("0xd")]);if(fc("0xb5")===e){i[fc("0xc5")](this._getMarkerAnnouncementText(n,fc("0xeb")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xd6")](t[fc("0xd")]);if(fc("0xb5")===e){i[fc("0xc5")](this[fc("0x163")](n,fc("0x9d")));break}}i[fc("0x164")]&&t.ui[fc("0xed")][fc("0x93")]("trackChanges",i[fc("0x5a")](" "))}))}[fc("0xab")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[fc("0x7e")],n=e[fc("0x16")].document[fc("0x14b")][fc("0x186")]();if(0==n.length)return!1;const i=[],o=n.filter((t=>fc("0x6d")==t[fc("0x109")])),r=n[fc("0xfe")]((t=>fc("0x6b")==t[fc("0x109")]&&fc("0xa0")!=t.name)),s=n[fc("0xfe")]((t=>"remove"==t.type&&fc("0xa0")!=t[fc("0xd")]));for(const t of o)i[fc("0xc5")]({key:t[fc("0x73")],newValue:t[fc("0x58")],oldValue:t[fc("0x144")],range:(x=t.range,null==x[fc("0x162")][fc("0xc2")]&&x[fc("0x162")].parent==x[fc("0xef")].nodeAfter?Cc(x.start[fc("0x49")],e.model):x)});var x;for(const t of r){const n=s[fc("0x156")]((e=>e[fc("0xf")].isEqual(t[fc("0xf")])));n&&i[fc("0xc5")]({key:fc("0x29"),newValue:t[fc("0xd")],oldValue:n.name,range:e[fc("0x16")][fc("0x150")](t.position[fc("0x49")])})}return 0!=i[fc("0x164")]&&this._reduceExistingSuggestions(t,i)}[fc("0x11a")](t){let e=!1;const n=this[fc("0x7e")][fc("0x16")][fc("0xb1")].differ[fc("0x184")]()[fc("0xfe")]((t=>t.data[fc("0x71")]&&t.name[fc("0x81")]("suggestion:attribute:")));for(const i of n){const{subType:n,id:o}=this[fc("0xd6")](i[fc("0xd")]),r=n.split("|")[0];for(const n of this[fc("0x8d")]({skipNotAttached:!0}))n.id!=o&&"attribute"==n.type&&n.data&&n[fc("0x96")][fc("0x45")]==r&&n[fc("0x11c")]()[fc("0x12e")](i.data[fc("0x71")])&&(this[fc("0x1")](n,i[fc("0x96")].newRange,t),e=!0)}return e}[fc("0x4")](t){if(null!==this[fc("0x44")])return void t();const n=this.editor;this[fc("0x44")]=n[fc("0x16")].document[fc("0x6")],t();const i=new Map;for(const t of n[fc("0x16")][fc("0xb1")][fc("0x91")].getOperations(this[fc("0x44")]))if(["rename",fc("0x187"),fc("0x7f"),fc("0xb6")][fc("0x3c")](t.type)){const e=t[fc("0x152")],n=i.get(e)||[];n[fc("0xc5")](t),i[fc("0xcc")](e,n)}this[fc("0x44")]=null;for(const[t,o]of i){const i=(0,e.uid)();n[fc("0x16")][fc("0xdd")](t,(t=>{const e=[];for(const t of o){let o,r,s,x;if(fc("0x26")==t[fc("0x109")]){const e=t;o=Cc(e[fc("0xf")].nodeAfter,n[fc("0x16")]),r=fc("0x29"),s=e[fc("0x7a")],x=e.oldName}else{const e=t,i=this[fc("0x57")](e[fc("0x45")]),a=this[fc("0x157")][fc("0x4c")](e[fc("0x45")]);if(!i&&!a)continue;o=i?Cc(e[fc("0x14c")][fc("0xef")].nodeAfter,n[fc("0x16")]):e.range,r=e[fc("0x45")],s=fc("0x7f")==t.type?void 0:e.newValue,x=e[fc("0x30")]}this[fc("0x128")](o,r,x,s,{groupId:i}),e[fc("0xc5")]({range:o,key:r,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[fc("0x13c")](t,e){if(0==e[fc("0x164")])return!1;let n=!1;for(const i of e){const e=this[fc("0x22")](i[fc("0x14c")],fc("0x6d")).filter((t=>!t.meta[fc("0x15b")]))[fc("0x43")]((t=>t[fc("0xb5")])),o=(0,r.hashObject)({newValue:i.newValue});e[fc("0xfe")]((t=>{const[e,n]=t[fc("0x110")].split("|");return e==i.key&&n!=o}))[fc("0x20")]((e=>{this[fc("0x1")](e,i.range,t),n=!0}))}return n}[fc("0x1")](t,e,n){const i=t.getFirstRange().getDifference(e);0!==i[fc("0x164")]?1!==i[fc("0x164")]?this[fc("0x107")](t,e[fc("0xef")],e[fc("0x162")]):this[fc("0x155")](t,i[0]):n[fc("0x35")](t[fc("0x82")]())}}class pc{constructor(t){this[fc("0x94")]=t,this[fc("0x2a")]=t[fc("0x16")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[fc("0x169")]()}buildSuggestion(t,e,n,i,o,r){return new Yi(this[fc("0x2a")],{type:t,subType:e,id:n,author:i,creator:i,attributes:o,onAttributesChange:r,onAccept:(...n)=>this[fc("0x8e")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0x64"))(...n)})}[fc("0x114")](t,e,n,i){const o=t+":"+e+":"+n;this[fc("0x108")][fc("0xcc")](o,i)}[fc("0x8e")](t,e,n){const i=t+":"+e+":"+n;return this._customCallbacks[fc("0xa7")](i)||this._defaultCallbacks[fc("0xa7")](t+":"+n)}[fc("0x169")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[fc("0xda")](e[fc("0xef")])?1:-1)),this[fc("0x2a")][fc("0xa5")]((e=>{for(const n of t){let t;t=n[fc("0x162")][fc("0x176")]&&n[fc("0x162")][fc("0x101")]==n[fc("0xef")][fc("0x49")]?e.createSelection(n[fc("0xef")].nodeAfter,"on"):e[fc("0xb8")](n),this[fc("0x2a")][fc("0xb")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x2a")][fc("0xa5")]((n=>{const{commandName:i,commandParams:o=[]}=e,r=t.map((t=>(Ec(t)&&(t=this[fc("0x2a")].createRange(t[fc("0x162")])),t)))[fc("0xfe")]((t=>fc("0x37")!==t.root[fc("0x41")]));if(r[fc("0x164")]<1)return;const x=Array[fc("0x115")](this[fc("0x2a")][fc("0xb1")][fc("0x53")][fc("0x17a")]())[fc("0x43")]((t=>s.LiveRange[fc("0x10d")](t)));n.setSelection(r);for(const t of this[fc("0x94")][fc("0x126")][fc("0x126")]())t[fc("0x159")]();o[fc("0xc5")]({forceDefaultExecution:!0}),this[fc("0x94")][fc("0x27")](i,...o);const a=x.filter((t=>fc("0x37")!=t.root[fc("0x41")]));a[fc("0x164")]>0&&n[fc("0x14f")](a);for(const t of x)t[fc("0x104")]()}))},i=(t,e)=>1==t[fc("0x164")]&&1==e[fc("0x164")]&&t[0][fc("0x162")][fc("0xaf")](e[0].start),o=(t,e,n,i)=>Ac(t,e,n,i,this[fc("0x2a")])?[t,e]:Ac(e,t,i,n,this._model)?[e,t]:null;this[fc("0x141")][fc("0xcc")](fc("0x113"),t),this[fc("0x141")][fc("0xcc")](fc("0x1b"),e),this[fc("0x141")][fc("0xcc")](fc("0x14a"),i),this._defaultCallbacks.set("insertion:chain",o),this[fc("0x141")][fc("0xcc")](fc("0xfb"),e),this[fc("0x141")][fc("0xcc")]("deletion:discard",t),this[fc("0x141")].set(fc("0x172"),i),this._defaultCallbacks[fc("0xcc")](fc("0x62"),o),this[fc("0x141")][fc("0xcc")](fc("0x161"),n),this[fc("0x141")][fc("0xcc")](fc("0xdc"),t),this[fc("0x141")][fc("0xcc")]("formatInline:join",i),this[fc("0x141")][fc("0xcc")](fc("0x103"),t),this._defaultCallbacks.set("formatBlock:accept",n),this[fc("0x141")][fc("0xcc")](fc("0xac"),t),this._defaultCallbacks[fc("0xcc")](fc("0xcf"),i),this[fc("0x141")].set(fc("0x24"),t),this[fc("0x141")][fc("0xcc")]("attribute:accept",t),this[fc("0x141")][fc("0xcc")](fc("0x9e"),((t,e)=>{if(!e)return;const n=this._editor[fc("0x138")][fc("0xa7")](hc);this._model.change((i=>{if(fc("0x29")==e[fc("0x45")])for(const n of t){const t=n[fc("0xef")][fc("0x49")],o=e[fc("0x30")];i[fc("0x26")](t,o)}else if(n[fc("0x57")](e[fc("0x45")]))for(const n of t)void 0!==e.oldValue?i.setAttribute(e[fc("0x45")],e[fc("0x30")],n.start.nodeAfter):i.removeAttribute(e[fc("0x45")],n[fc("0xef")][fc("0x49")]);else for(const n of t)e[fc("0x30")]?i[fc("0x54")](e[fc("0x45")],e.oldValue,n):i[fc("0x7f")](e[fc("0x45")],n)}))})),this[fc("0x141")][fc("0xcc")]("attribute:join",i)}}function bc(t,e,n){for(const i of e[fc("0x101")][fc("0x18")]({includeSelf:!0,parentFirst:!0})){if(i[fc("0x99")]==i)return!1;if(!n[fc("0x9a")](i))return!1;if(t[fc("0x13d")](i)||t.isLimit(i))return!0}return!1}function Ec(t){return t[fc("0x162")][fc("0x101")]==t[fc("0xef")].nodeAfter&&t[fc("0x162")].isAtStart}function _c(t,e,n,i){const o=t=>!t[fc("0x7b")].is(fc("0x9c"))&&!i.isObject(t[fc("0x7b")]),r=t.start.getLastMatchingPosition(o),s=t[fc("0x162")][fc("0x134")](o,{direction:fc("0x39")});return!(t[fc("0xef")][fc("0xaf")](r)&&t[fc("0x162")][fc("0xaf")](s)||(r.isBefore(s)?n[fc("0x70")](e,{range:n.createRange(r,s)}):n[fc("0x35")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0xef")][fc("0x49")];return e&&e.is(fc("0x66"))}function Cc(t,e){const n=e[fc("0x13a")][fc("0x13d")](t)||e[fc("0x13a")][fc("0x40")](t);return e[fc("0x123")](e[fc("0x142")](t,fc("0x116")),n?e[fc("0xc4")](t):e[fc("0x142")](t,fc("0x162")))}function Ac(t,e,n,i,o){if(!kc(t,e))return!1;if(n[fc("0x162")][fc("0xaf")](i.start))return!0;if(t[fc("0x109")]!=e.type)return!1;if(!n[fc("0x162")][fc("0x51")](i[fc("0xef")]))return!1;const r=o.createRange(n[fc("0x162")],i[fc("0xef")])[fc("0x105")]();for(const t of r)if([fc("0x125"),fc("0x6c")][fc("0x3c")](t.type)&&o.schema[fc("0x13")](t[fc("0x7b")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x16f")]||!e[fc("0x16f")])&&ji(t.attributes,e[fc("0x0")])}function Ic(t,e){const n=Rc(t[fc("0x0")]),i=Rc(e);if(!t[fc("0x16f")])return!1;for(const t of Object.keys(i))if(!ji(n[t],i[t]))return!1;return!0}function Rc(t){const e=Object[fc("0xb2")]({},t);return delete e[fc("0x6a")],delete e.tablePasteChainId,e}const Sc=["remove","bind","commentThreadController","add","commands","acceptSuggestion","canEditAt","_pendingAction","view","model","destroy","_setPendingAction","canDiscard","listenTo","getRanges","get","execute","isEnabled","_editor","_discardCommand","discardSuggestion","unbind","plugins","locale","_acceptCommand","stopListening","canAccept","_removePendingAction","isDirty","PendingActions"];var vc,Nc;vc=Sc,Nc=150,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Sc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,i){super(),this.model=e,this[Lc("0x8")]=n,this[Lc("0x2")]=i,this[Lc("0x12")]=t,this._acceptCommand=t[Lc("0x4")].get("acceptSuggestion"),this._discardCommand=t[Lc("0x4")][Lc("0xf")](Lc("0x14")),this.view[Lc("0x1")](Lc("0x11")).to(this[Lc("0x18")],this[Lc("0x13")],((t,e)=>t||e)),this.view[Lc("0x1")](Lc("0x1a")).to(this[Lc("0x18")],Lc("0x11"),(t=>t&&this[Lc("0x12")].model[Lc("0x6")](e.getRanges()))),this[Lc("0x8")][Lc("0x1")](Lc("0xc")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Lc("0x9")][Lc("0x6")](e[Lc("0xe")]()))),this._pendingAction=null,n.isDirty&&this[Lc("0xb")](),this[Lc("0xd")](n,"acceptSuggestion",(()=>this[Lc("0x5")]())),this.listenTo(n,Lc("0x14"),(()=>this[Lc("0x14")]())),this[Lc("0xd")](n,"change:isDirty",(()=>{n[Lc("0x1c")]?this[Lc("0xb")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[Lc("0x10")](this.model.id)}[Lc("0x14")](){this._discardCommand[Lc("0x10")](this[Lc("0x9")].id)}[Lc("0xa")](){this[Lc("0x8")][Lc("0x15")](Lc("0x11")),this[Lc("0x8")][Lc("0x15")](Lc("0x1a")),this[Lc("0x8")].unbind(Lc("0xc")),this[Lc("0x19")](),this[Lc("0x2")][Lc("0xa")](),this._pendingAction&&this[Lc("0x1b")]()}_setPendingAction(){const t=Ji(this[Lc("0x12")][Lc("0x17")],"PENDING_ACTION_SUGGESTION");this[Lc("0x7")]=this._editor[Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x3")](t)}[Lc("0x1b")](){null!==this._pendingAction&&this[Lc("0x12")][Lc("0x16")][Lc("0xf")](Lc("0x1d"))[Lc("0x0")](this[Lc("0x7")]),this[Lc("0x7")]=null}}const wc=["authoredAt","value","disabledSubmit","_createCommentThreadInputView","commentsListView","bind","canAccept","assign","addComment","setData","_createCommentViews","_config","fire","focus","delegate","set","_localUser","locale","_model","commentThreadInputView","isReadOnly","updateComment","editor","removeComment","destroy","isEnabled","CommentView","commentInputView","commentThread","disableComments","submit","length","isActive","isDirty","descriptionParts"];var Oc,Fc;Oc=wc,Fc=258,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends o.View{constructor(t,e,n,i){super(t),this[Dc("0x1a")]=null,this.commentThreadInputView=null,this[Dc("0x2")](Dc("0x13"),!1),this.set("authoredAt",e.authoredAt),this[Dc("0x1b")](Dc("0x16")).to(e),this.set(Dc("0x15"),[]),this[Dc("0x2")](Dc("0x14"),!1),this.set(Dc("0xc"),!1),this[Dc("0x2")](Dc("0x1c"),!1),this.set("canDiscard",!1),this[Dc("0x5")]=e,this._localUser=n,this[Dc("0x21")]=i,i[Dc("0x10")]?this.set("length",1):this._createCommentViews()}[Dc("0x0")](){this.element[Dc("0x0")]()}[Dc("0xb")](){this.commentsListView&&this[Dc("0x1a")][Dc("0xb")](),this.commentThreadInputView&&this.commentThreadInputView[Dc("0xb")](),super[Dc("0xb")]()}[Dc("0x20")](){const{CommentsListView:t}=this[Dc("0x21")];this[Dc("0x1a")]=new t(this[Dc("0x4")],this._model[Dc("0xf")],Object[Dc("0x1d")]({CommentView:this._config[Dc("0xd")]},this[Dc("0x21")])),this[Dc("0x1a")][Dc("0x1")](Dc("0xa")).to(this),this.commentsListView[Dc("0x1")](Dc("0x8")).to(this),this[Dc("0x1a")][Dc("0x1b")]("isActive").to(this),this[Dc("0x2")]("length",this[Dc("0x1a")][Dc("0x12")]+1),this.bind("length").to(this[Dc("0x1a")],"length",(t=>t+1)),this[Dc("0x6")]=this[Dc("0x19")](),this.on(Dc("0xa"),(()=>this[Dc("0x0")]())),this[Dc("0x1b")](Dc("0x14")).to(this[Dc("0x1a")],"hasDirtyComment",this.commentThreadInputView[Dc("0xe")],"value",((t,e)=>t||!!e))}[Dc("0x19")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Dc("0x3")],this[Dc("0x21")].editorConfig),n=e[Dc("0xe")];return e[Dc("0x1b")]("showInput").to(this,"isActive",this._model[Dc("0xf")],Dc("0x7"),n,Dc("0x17"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x11"),((t,e)=>{this[Dc("0x22")](Dc("0x1e"),e),n[Dc("0x9")][Dc("0x1f")]("")})),n.on("cancel",(()=>this[Dc("0x0")]())),n.bind(Dc("0x18")).to(this[Dc("0x5")].commentThread,Dc("0x7")),e}}const Pc=["ck-annotation__info-name","join","ck-annotation__info-time","authoredAt","source","_config",'<span class="ck-suggestion-color" style="background-color: ',"check","ck-suggestion__info","span","commentThreadInputView","ck-annotation__user","attributes","bind","<p>","fire","ck-suggestion--disabled-comments",'" title="',"EXTERNAL_IMPORT_WORD_SUGGESTION","name","canDiscard","delegate","discardButton","locale","EXTERNAL_IMPORT_WORD_AVATAR","Discard suggestion","ck-comment__external","editorDestroyed","getUserViewNotificationText","ck-suggestion__info-name","render","value","ck-suggestion__main","innerText","descriptionParts","disableComments","creator","extendTemplate","type","isEnabled","createElement","set","time","split","push",'"></span>',"commentsListView","acceptSuggestion","importWord","div","userView","discardSuggestion","color","description","</span>","ck-suggestion__user","bindTemplate","querySelector","ck-comment__info-time","EXTERNAL_AVATAR","isExternal","Accept suggestion","children","editorReady","ck-annotation__actions","execute","_descriptionElement","ck-annotation__content-wrapper","ck-annotation","getTemplate","ck-suggestion-","acceptButton","author","map","commentThread","change:description","EXTERNAL_SUGGESTION","content","innerHTML","element","_model","_createButton","title"];var Uc,jc;Uc=Pc,jc=302,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,i,o){super(e,n,i,o),this[Gc("0x47")](Gc("0x44"),""),this[Gc("0x2b")](Gc("0x44")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Gc("0x2b")](Gc("0x0")).to(this,Gc("0x40"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Gc("0x2c")+Hc(e[Gc("0x18")],e[Gc("0x52")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Gc("0xd")]=null,this[Gc("0x12")]=this[Gc("0x1c")](Ji(e,Gc("0x8")),t.icons[Gc("0x25")],"ck-suggestion--accept",Gc("0x4d"),"sw"),this.acceptButton[Gc("0x2b")]("isEnabled").to(this,"canAccept"),this[Gc("0x34")]=this[Gc("0x1c")](Ji(e,Gc("0x37")),t.icons.cancel,"ck-suggestion--discard",Gc("0x51"),"sw"),this.discardButton.bind(Gc("0x45")).to(this,Gc("0x32")),this.userView=new r.UserView(e,this[Gc("0x1b")].author,this[Gc("0x3a")]()),this[Gc("0x50")][Gc("0x43")]({attributes:{class:[Gc("0x2"),Gc("0x29")]}}),this.setTemplate(this[Gc("0x10")]())}[Gc("0x10")](){const t=this[Gc("0x3")],e=[{tag:Gc("0x4f"),attributes:{class:[Gc("0x26"),"ck-annotation__info"]},children:[{tag:Gc("0x27"),children:[{text:this[Gc("0x50")][Gc("0x31")]}],attributes:{class:[Gc("0x3b"),Gc("0x1e")]}},{tag:Gc("0x48"),attributes:{datetime:t.to(Gc("0x21")),class:[Gc("0x5"),Gc("0x20")]},children:[{text:t.to(Gc("0x21"),(t=>this[Gc("0x23")].formatDateTime(t)))}]}]},{tag:Gc("0x4f"),attributes:{class:["ck-suggestion__actions",Gc("0xb")]},children:[this.acceptButton,this.discardButton]},{tag:Gc("0x4f"),attributes:{class:[Gc("0xe")]}}];this._model[Gc("0x7")]&&e[Gc("0x4a")]({tag:Gc("0x4f"),attributes:{class:[Gc("0x38")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Gc("0x4f"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive","ck-suggestion-wrapper--active"),t.to("type",(t=>Gc("0x11")+t)),this[Gc("0x23")][Gc("0x41")]&&Gc("0x2e")],"data-suggestion-id":this[Gc("0x1b")].id,"data-thread-id":this[Gc("0x1b")][Gc("0x15")].id,"data-author-id":this[Gc("0x1b")][Gc("0x13")].id,tabindex:-1},children:[{tag:Gc("0x4f"),attributes:{class:["ck-suggestion",Gc("0xf")]},children:[this[Gc("0x50")],{tag:Gc("0x4f"),attributes:{class:[Gc("0x3e"),"ck-annotation__main"]},children:e}]}]};return this[Gc("0x4c")]&&this.commentThreadInputView&&(n[Gc("0x9")].push(this[Gc("0x4c")],this.commentThreadInputView),this.commentsListView[Gc("0x33")](Gc("0xa")).to(this),this.commentsListView[Gc("0x33")](Gc("0x39")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0xa")).to(this),this[Gc("0x28")][Gc("0x33")](Gc("0x39")).to(this)),n}[Gc("0x3c")](){super[Gc("0x3c")](),this[Gc("0xd")]=this[Gc("0x1a")][Gc("0x4")](".ck-annotation__content-wrapper"),this._descriptionElement[Gc("0x19")]=this[Gc("0x0")],this.on(Gc("0x16"),((t,e,n)=>{this[Gc("0xd")][Gc("0x19")]=n}))}[Gc("0x1c")](t,e,n,i,r){const s=new o.ButtonView(this[Gc("0x35")]);return s[Gc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x43")]({attributes:{class:n}}),s.on(Gc("0xc"),(()=>{this[Gc("0x2d")](i,this[Gc("0x1b")].id)})),s}getExternalSuggestionNote(){return Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Ji(this[Gc("0x35")],Gc("0x30")):Ji(this[Gc("0x35")],Gc("0x17"))}[Gc("0x3a")](){return this[Gc("0x1b")][Gc("0x7")]?Gc("0x4e")===this[Gc("0x1b")][Gc("0x2a")]["@external"][Gc("0x22")]?Ji(this[Gc("0x35")],Gc("0x36"),this._model[Gc("0x42")].name):Ji(this[Gc("0x35")],Gc("0x6"),this._model[Gc("0x42")][Gc("0x31")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x49")]("*")[Gc("0x14")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+zc(t)+Gc("0x1"):zc(t)))[Gc("0x1f")](""),e&&(n+=Gc("0x24")+e[Gc("0x3d")]+Gc("0x2f")+e[Gc("0x1d")]+Gc("0x4b")),n}function zc(t){const e=document[Gc("0x46")](Gc("0x27"));return e[Gc("0x3f")]=t,e.innerHTML}const Wc=["view","delete","add","comments.maxCommentsWhenCollapsed","getMarkers","refreshSelectedViews","innerView","commands","getDescriptions","acceptButton","actionView","separator","Discard all suggestions","getByInnerView","arrowView","values","TrackChangesEditing","_suggestionToController","comments.editorConfig","getMarkerNames","discardButton","isEnabled","discardAllSuggestions","get","EditorAnnotations","config","push","toMany","Annotations","some","TrackChangesUI","CommentsRepository","mainView","lowest","execute","createAnnotationView","reduce","acceptSelectedSuggestions","pluginName","clear","change:previous","isDirty","button","type","from","value","_descriptionFactory","Accept all selected suggestions","init","addComment","suggestionChanged","comments.maxCommentCharsWhenCollapsed","isOn","keys","getJoined","trackChanges","SuggestionThreadView","plugins","getFirstRange","getSuggestion","filter","addSourceCollector","commandName","buttonView","has","_bindAnnotationToEditors","_handleControllerBuffer","unbind","_destroyController","comments.maxThreadTotalWeight","model","requires","listenTo","bind","_disableComments","suggestionLoaded","isMultiRange","length","activeAnnotations","componentFactory","acceptAllSuggestions","registerAnnotation","Accept all suggestions","_handleSuggestionControllerDelayed","_initializeController","_updateController","locale","commentThread","getAllAdjacentSuggestions","define","_annotationViews","suggestionUnloaded","focus","editor","_viewToController","suggestion-","_unbindEditors","createAnnotation","editing","discardSelectedSuggestions","map","isInContent","trackChanges.SuggestionThreadView","descriptionParts","set","size","CommentsUI","destroy","_createUIButton","head","createCommentThreadController","hasSuggestion","previous"];var Kc,qc;Kc=Wc,qc=206,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x5b")](){return[hc,r.Users,Xc("0x33"),Xc("0x30"),Xc("0x2c")]}static get[Xc("0x3a")](){return Xc("0x32")}constructor(t){super(t),this[Xc("0x25")]=new Map,this[Xc("0x1")]=new Map,this[Xc("0x6e")]=new Map,this[Xc("0x56")]=new Map;const e=this[Xc("0x0")].config;e.define(Xc("0x9"),Vc),e[Xc("0x6d")]("trackChanges.disableComments",!1),this._disableComments=e[Xc("0x2b")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[Xc("0xc")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x56")]){const n=this[Xc("0x25")][Xc("0x54")](t);n||e?n&&e&&this[Xc("0x58")](t):this[Xc("0x68")](t)}this.editor[Xc("0x4d")].get(Xc("0x2c"))[Xc("0x19")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Xc("0x3b")]()}),10),this[Xc("0x56")][Xc("0xb")](t,e)}[Xc("0x44")](){const t=this[Xc("0x0")],e=t[Xc("0x4d")].get(Xc("0x24")),n=t[Xc("0x4d")][Xc("0x2b")]("Annotations"),i=t[Xc("0x4d")][Xc("0x2b")]("EditorAnnotations"),o=t[Xc("0x4d")][Xc("0x2b")](Xc("0x33"));t.ui[Xc("0x63")][Xc("0x16")](Xc("0x4b"),(t=>this._createUIButton(t))),i[Xc("0x51")]((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x25")])){const i=e[Xc("0x6c")](),o=[];for(const t of i){if(!t.isInContent)continue;if(t[Xc("0x60")]){o[Xc("0x2e")](...t.getRanges());continue}const e=t[Xc("0x4e")]();if(o[Xc("0x61")]>0){const t=o[0][Xc("0x4a")](e);if(t){o[0]=t;continue}}o.push(e)}t[Xc("0x2e")]([n[Xc("0x14")],o])}return t})),this[Xc("0x5c")](e,Xc("0x5f"),((t,e)=>{this[Xc("0x5c")](e,Xc("0x3c"),((t,n,i,o)=>{e[Xc("0x8")]&&(null==i?(this._updateController(o.head),this[Xc("0x67")](e,!1)):(this[Xc("0x69")](i[Xc("0x10")]),null==o&&this[Xc("0x67")](e,!0)))})),null!==e[Xc("0x13")]?this[Xc("0x69")](e[Xc("0x10")]):this[Xc("0x67")](e,!1)})),this.listenTo(e,Xc("0x6f"),((t,e,n)=>{this.stopListening(e,Xc("0x3c")),this._handleControllerBuffer[Xc("0x15")](e),this[Xc("0x25")][Xc("0x54")](e)&&this[Xc("0x58")](e),n&&this[Xc("0x69")](n.head)})),this[Xc("0x5c")](e,Xc("0x46"),((t,e)=>{this[Xc("0x69")](e)})),this.listenTo(n,"change:activeAnnotations",(()=>{this._refreshActiveMarkers()})),this[Xc("0x5c")](o,Xc("0x45"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[Xc("0x12")](n))return;const o=e[Xc("0x4f")](n);this._suggestionToController.get(o)[Xc("0x14")].focus()}),{priority:Xc("0x35")})}_refreshActiveMarkers(){const t=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=Array[Xc("0x40")](t[Xc("0x62")],(t=>t[Xc("0x1a")]))[Xc("0x50")]((t=>this[Xc("0x1")].has(t))),i=[];for(const t of n){const e=this._viewToController[Xc("0x2b")](t)[Xc("0x5a")][Xc("0x6c")]();i[Xc("0x2e")](...e[Xc("0x38")](((t,e)=>[...t,...e[Xc("0x27")]()]),[]))}e.activeMarkers=i}[Xc("0xf")](t){const n=(0,o.createDropdown)(t,o.SplitButtonView),i=this[Xc("0x0")].commands[Xc("0x2b")](Xc("0x4b")),r=Ji(t,"Track changes");n[Xc("0x53")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x53")][Xc("0x5d")](Xc("0x48")).to(i,"value"),n.buttonView.on("execute",(()=>{i.execute(),this[Xc("0x0")][Xc("0x5")][Xc("0x14")][Xc("0x70")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Xc("0x4b")}},{type:Xc("0x1f")},{type:Xc("0x3e"),model:{withText:!0,label:Ji(t,Xc("0x66")),commandName:Xc("0x64")}},{type:Xc("0x3e"),model:{withText:!0,label:Ji(t,Xc("0x43")),commandName:Xc("0x39")}},{type:Xc("0x3e"),model:{withText:!0,label:Ji(t,Xc("0x20")),commandName:Xc("0x2a")}},{type:"button",model:{withText:!0,label:Ji(t,"Discard all selected suggestions"),commandName:Xc("0x6")}}];for(const t of x){let e={type:"separator"};if(t[Xc("0x5a")]){const n=new o.Model(t.model),i=this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](n[Xc("0x52")]);n[Xc("0x5d")](Xc("0x48"),Xc("0x29")).to(i,Xc("0x41"),Xc("0x29")),e={type:t.type,model:n}}s[Xc("0x16")](e)}(0,o.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model))[Xc("0x7")]((t=>this[Xc("0x0")][Xc("0x1b")][Xc("0x2b")](t[Xc("0x5a")][Xc("0x52")]))),c=n.buttonView;return c[Xc("0x1e")][Xc("0x57")](Xc("0x29")),c.arrowView[Xc("0x57")](Xc("0x29")),c[Xc("0x1e")][Xc("0x5d")](Xc("0x29")).to(i,"isEnabled"),c[Xc("0x22")][Xc("0x5d")]("isEnabled")[Xc("0x2f")](a,"isEnabled",((...t)=>t[Xc("0x31")]((t=>t)))),n.on(Xc("0x36"),(t=>{this[Xc("0x0")].execute(t.source[Xc("0x52")]),this.editor[Xc("0x5")][Xc("0x14")][Xc("0x70")]()})),n}_initializeController(t){const e=this.editor,n=e[Xc("0x2d")],i=e[Xc("0x4d")].get("Annotations"),o=e[Xc("0x4d")][Xc("0x2b")](Xc("0x33")),s=e.plugins[Xc("0x2b")](Xc("0x2c")),x=e[Xc("0x4d")][Xc("0x2b")](r.Users).me,a=n[Xc("0x2b")](Xc("0x4b"))[Xc("0x4c")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x4d")][Xc("0x2b")](Xc("0xd"));let u,d;this[Xc("0x6e")].has(t.id)?(d=this._annotationViews.get(t.id),u=d[Xc("0x34")]):(u=new a(e[Xc("0x6a")],t,x,{disableComments:this[Xc("0x5e")],editorConfig:n[Xc("0x2b")](Xc("0x26")),maxCommentsWhenCollapsed:n.get(Xc("0x17")),maxThreadTotalWeight:n.get(Xc("0x59")),maxCommentCharsWhenCollapsed:n.get(Xc("0x47")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Xc("0x6a"))),CommentView:n[Xc("0x2b")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x1d")].on(Xc("0x36"),(()=>{e.editing[Xc("0x14")].focus()})),u[Xc("0x28")].on(Xc("0x36"),(()=>{e[Xc("0x5")].view[Xc("0x70")]()})),d=i[Xc("0x37")](this[Xc("0x0")][Xc("0x6a")],u),d[Xc("0x5d")](Xc("0x3d")).to(u,Xc("0x3d")),d[Xc("0x5d")]("length").to(u),d[Xc("0x5d")](Xc("0x3f")).to(u,Xc("0x3f"),(t=>Xc("0x2")+t)),this[Xc("0x6e")][Xc("0xb")](t.id,d));const g=o[Xc("0x11")](t[Xc("0x6b")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x50")]((t=>t[Xc("0x8")]));u.descriptionParts=e[Xc("0x4d")][Xc("0x2b")](Xc("0x24"))[Xc("0x42")][Xc("0x1c")](m),this._suggestionToController[Xc("0xb")](t,f),this[Xc("0x1")][Xc("0xb")](u,f);const h=i[Xc("0x4")]({view:d,target:()=>{const n=[],i=t[Xc("0x6c")]()[Xc("0x50")]((t=>t[Xc("0x8")]));for(const t of i)n[Xc("0x2e")](...t[Xc("0x18")]());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x5")],n)},type:()=>Xc("0x2")+f[Xc("0x14")].type});o[Xc("0x55")](u,h),i[Xc("0x16")](h),s[Xc("0x65")](h)}_destroyController(t){const e=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")](Xc("0x33")),n=this[Xc("0x0")][Xc("0x4d")][Xc("0x2b")]("Annotations"),i=this[Xc("0x25")].get(t),o=i.view,r=n[Xc("0x21")](o);e[Xc("0x3")](o),r&&n.remove(r),this[Xc("0x25")][Xc("0x15")](t),this[Xc("0x1")][Xc("0x15")](o),i[Xc("0xe")]()}[Xc("0x69")](t){if(!t.isInContent||!this._suggestionToController.has(t))return;const e=this.editor[Xc("0x4d")][Xc("0x2b")](Xc("0x24")),n=this[Xc("0x25")][Xc("0x2b")](t),i=t[Xc("0x6c")]();n[Xc("0x14")][Xc("0xa")]=e[Xc("0x42")].getDescriptions(i)}[Xc("0xe")](){for(const t of this[Xc("0x25")][Xc("0x49")]())this._destroyController(t);for(const t of this[Xc("0x6e")][Xc("0x23")]())t.mainView[Xc("0xe")]();super[Xc("0xe")]()}}var Zc,Yc,Jc=["TrackChanges","editor","adapter","getSuggestion","addSuggestionData","plugins","addSuggestion","requires","get","Comments","getSuggestions","pluginName"];Zc=Jc,Yc=442,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x9")](){return[hc,$c,Qc("0xb")]}static get[Qc("0x1")](){return Qc("0x2")}set[Qc("0x4")](t){this.editor[Qc("0x7")].get(hc)[Qc("0x4")]=t}get[Qc("0x4")](){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).adapter}[Qc("0x8")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc)[Qc("0x0")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x3")][Qc("0x7")][Qc("0xa")](hc).getSuggestion(t)}}const el=["addUser","editor","trackChangesData","track-changes-data-invalid-editor-creator","TrackChangesData","TrackChangesEditing","init","appendChild","function","define","Pagination","model","document","name","trackChangesData.editorCreator","getRootsAttributes","TrackChangesDataGetter","_adapter","createElement","discardAllSuggestions","getFullData","plugins","pluginName","result","getRootNames","map","constructor","config","requires","rootsAttributes","getDataWithAcceptedSuggestions","CommentsRepository","getUser","editorCreator","create","useAnonymousUser","reduce","addSuggestionData","push","getSuggestions","data","set","get","users","end","div"];var nl,il;nl=el,il=456,function(t){for(;--t;)nl.push(nl.shift())}(++il);const ol=function(t,e){return el[t-=0]},rl=[ol("0xe")];class sl extends t.Plugin{static get[ol("0x20")](){return[hc]}static get[ol("0x1a")](){return ol("0x8")}[ol("0xa")](){const t=this.editor;if(t.config[ol("0xd")](ol("0x12"),(e=>{const n=t[ol("0xf")][ol("0x10")][ol("0x1c")]().reduce(((t,e)=>(t[e]="",t)),{});return t[ol("0x1e")][ol("0x26")](n,e)})),ol("0xc")!=typeof t[ol("0x1f")][ol("0x0")](ol("0x6"))[ol("0x25")])throw new e.CKEditorError(ol("0x7"))}[ol("0x22")](t){return cl(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return cl(this.editor,!1,t)}}class xl extends t.Plugin{static get[ol("0x1a")](){return ol("0x14")}constructor(t){super(t),this[ol("0x1b")]=ol("0x2")}[ol("0xa")](){this[ol("0x5")][ol("0x19")].get(ol("0x23"))[ol("0x15")]={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[ol("0x5")].plugins[ol("0x0")](ol("0x9"))[ol("0x15")]=null}}function al(t){return void 0!==t[ol("0x13")]}async function cl(t,e,n){const i=(0,r.sanitizeEditorConfig)(t,rl);i[ol("0x19")][ol("0x2a")](hc,xl),i[ol("0x21")]=al(t)?t.getRootsAttributes():void 0;const o=document.createDocumentFragment(),s=t.config[ol("0x0")](ol("0x6"))[ol("0x25")],x=await s(i,(()=>function(t){const e=document[ol("0x16")](ol("0x3"));return t[ol("0xb")](e),e}(o)));!function(t,e){const n=t[ol("0xf")][ol("0x10")][ol("0x1c")]()[ol("0x28")](((e,n)=>(e[n]=t.data[ol("0x0")]({rootName:n}),e)),{}),i=t.plugins[ol("0x0")]("Users")[ol("0x1")][ol("0x1d")]((t=>({id:t.id,name:t[ol("0x11")]}))),o=t.plugins[ol("0x0")](ol("0x9"))[ol("0x2b")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[ol("0x0")]("Users"),s=e.plugins[ol("0x0")]("TrackChangesEditing");for(const t of i)r[ol("0x24")](t.id)||r[ol("0x4")](t);r.me||r[ol("0x27")]();for(const t of o)s[ol("0x29")](t);e[ol("0x2c")][ol("0x2d")](n)}(t,x),x.execute(e?"acceptAllSuggestions":ol("0x17"));const a=al(x)?x[ol("0x18")](n):x[ol("0x2c")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();