@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240124.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.
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["isEnabled","editor","value","affectsData","forceDisabled","refresh","commands","_isEnabledBasedOnSelection","TrackChangesCommand","execute","_enabledCommands","_disableUnsupportedCommands","clearForceDisabled","_enableCommands"];var c,l;c=a,l=461,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x3")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x1")]=!0}[u("0xa")](){this.value=!this.value,this[u("0x3")]?this._disableUnsupportedCommands():this[u("0x0")]()}[u("0xc")](){for(const t of this[u("0x2")][u("0x7")].commands())t[u("0x4")]&&!this[u("0xb")].has(t)&&t[u("0x5")](u("0x9"))}[u("0x0")](){for(const t of this[u("0x2")].commands.commands())t[u("0x4")]&&!this[u("0xb")].has(t)&&t[u("0xd")](u("0x9"))}}const g=["model","getRanges","refresh","_isEnabledBasedOnSelection","TrackChangesEditing","get","execute","editor","acceptSuggestion","_suggestions","plugins"];var f,h;f=g,h=156,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x7")]=e,this[m("0x0")](),this[m("0x1")]=!1}[m("0x0")](){this.isEnabled=!0}[m("0x4")](t){const n=this[m("0x7")][m("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n[m("0xa")]();this[m("0x5")][m("0x9")].canEditAt(r)&&this[m("0x5")][m("0x8")][m("0x3")](m("0x2"))[m("0x6")](n)}}const b=["_suggestions","model","getRanges","isEnabled","refresh","editor","discardSuggestion","canEditAt","_isEnabledBasedOnSelection","get","execute","TrackChangesEditing","track-changes-discard-suggestion-not-found"];var E,_;E=b,_=456,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[T("0xc")]=e,this[T("0x3")](),this[T("0x7")]=!1}[T("0x3")](){this[T("0x2")]=!0}[T("0x9")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(T("0xb"),this);const r=n[T("0x1")]();this[T("0x4")][T("0x0")][T("0x6")](r)&&this.editor.plugins[T("0x8")](T("0xa"))[T("0x5")](n)}}const C=["color","isMultiRange","isInContent","start","isIntersecting","createRange","add"," [color ","replace","from","createPositionBefore","getRanges","next","content","createPositionAfter","execute","sort","length","isTouching","end","push","isArray","type","deletion","join","map"];var A,k;A=C,k=132,function(t){for(;--t;)A.push(A.shift())}(++k);const S=function(t,e){return C[t-=0]};function R(t){return t[S("0xe")](((t,e)=>S("0x15")==t[S("0x14")]&&S("0x15")!=e[S("0x14")]?-1:S("0x15")!=t[S("0x14")]&&S("0x15")==e[S("0x14")]?1:0))}function I(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t[S("0xf")];){const s=t[r],x=t[r+1];n||(n=e[S("0x8")](s)),v(e,s,x)||(i[S("0x12")](e[S("0x3")](n,o.isObject(s)?e[S("0xc")](s):e.createPositionAt(s,S("0x11")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t.createPositionBefore(n);return r[S("0x10")](i)}function N(t,e,n){for(;n[S("0xf")];){const r=n.splice(0,100);t.change((()=>{for(const t of r)t[S("0x0")]&&e[S("0xd")](t.id)}))}}const L=["some","from","isInContent","getRanges","editor","values","_command","_suggestions","_isEnabledBasedOnSelection","canEditAt","execute","refresh","model","isEnabled"];var M,w;M=L,w=392,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this[O("0x7")]=n,this[O("0xb")](),this[O("0x8")]=!1}[O("0xb")](){const t=Array[O("0x1")](this._suggestions[O("0x5")]())[O("0x0")]((t=>t[O("0x2")]));this[O("0xd")]=this[O("0x6")][O("0xd")]&&t}[O("0xa")](){const t=R(Array[O("0x1")](this[O("0x7")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x4")][O("0xc")][O("0x9")](t))return}N(this[O("0x4")].model,this[O("0x6")],t)}}const D=["execute","selection","_selectedSuggestions","document","isEnabled","canEditAt","editor","values","_command","size","getRanges","_isEnabledBasedOnSelection","refresh","model","from"];var B,P;B=D,P=120,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._suggestions=n,this[U("0x2")]=new Set,this[U("0xc")](),this[U("0xb")]=!1}[U("0xc")](){const t=this.editor[U("0xd")][U("0x3")][U("0x1")],e=Array[U("0xe")](this._suggestions[U("0x7")]());this[U("0x2")]=function(t,e){const n=Array[S("0x7")](t[S("0x9")]()),r=new Set;for(const i of e)if(i[S("0x0")])for(const e of n)for(const n of i.getRanges())(e[S("0x2")](n)||t.isCollapsed&&!i[S("0x19")]&&i[S("0xa")]&&n.end[S("0x10")](e[S("0x1")]))&&r[S("0x4")](i);return r}(t,e),this[U("0x4")]=this[U("0x8")][U("0x4")]&&!!this[U("0x2")][U("0x9")]}[U("0x0")](){const t=R(Array[U("0xe")](this[U("0x2")]));for(const e of t){const t=e[U("0xa")]();if(!this[U("0x6")][U("0xd")][U("0x5")](t))return}N(this[U("0x6")][U("0xd")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const 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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,St=At.hasOwnProperty,Rt=RegExp("^"+kt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return It(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function 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,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Se=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Se&&Se.exports===ke&&et.process;const Ie=function(){try{var t=Se&&Se.require&&Se.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Ie&&Ie.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const hn=Nt(rt,"Set");const mn=Nt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),Sn=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case Sn:return _n}return e});const In=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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 tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=In(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?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(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Sr=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Ir=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Rr;case"[object Set]":var a=1&r;if(x||(x=Ir),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Sr(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:In(t),c=x?Fr:In(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Ne(t)?Sr(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["getMultiRangeId","nodeBefore","_onDiscard","start","addMarker","decorate","_onAccept","attributes","filter","authoredAt","isIntersectingWithRange","hasComments","subType","toJSON","getMarkers","change","getFirstRange","substr","end","size","data","addRange","getFirstMarker","previous","removeAttribute","getRange","head","getRanges","suggestion:","add","getItems","creator","push","addMarkerName","isInContent","_isDataLoaded","discard","getAllAdjacentSuggestions","map","split","reduce","removeMarkers","_model","markers","clear","set","commentThread","author","createdAt","from","length","removeMarker","_markerNames","_onAttributesChange","accept","type","next","onAccept"];var Xr,$r;Xr=qr,$r=340,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2b")]=!1,this.id=e.id,this[Zr("0x5")]=e[Zr("0x5")],this[Zr("0x14")]=e[Zr("0x14")]||null,this[Zr("0x37")]=e[Zr("0x37")],this[Zr("0x27")]=e.creator||e[Zr("0x37")],this.isExternal=Boolean(e[Zr("0xf")]&&e[Zr("0xf")]["@external"]),this[Zr("0x1c")]=null,this[Zr("0x32")]=t,this._onAccept=e[Zr("0x7")],this[Zr("0xa")]=e.onDiscard,this._onAttributesChange=e.onAttributesChange,this[Zr("0x2")]=new Set,this[Zr("0x38")]=null,this[Zr("0x35")](Zr("0x11"),null),this.set("attributes",e.attributes||{}),this[Zr("0x35")](Zr("0x1f"),null),this[Zr("0x35")](Zr("0x6"),null),this[Zr("0x35")](Zr("0x36"),null),this[Zr("0x35")]("_saved",!1),this[Zr("0xd")](Zr("0x4")),this.decorate(Zr("0x2c"))}get[Zr("0x22")](){let t=this;for(;t[Zr("0x1f")];)t=t[Zr("0x1f")];return t}get[Zr("0x13")](){return!!this[Zr("0x36")]&&this[Zr("0x36")][Zr("0x0")]>0}get isMultiRange(){return 0!=this[Zr("0x2")][Zr("0x1b")]&&6==Array[Zr("0x39")](this[Zr("0x2")])[0][Zr("0x2f")](":").length}get[Zr("0x2a")](){return null!==this[Zr("0x1e")]()}[Zr("0x29")](t){this[Zr("0x2")][Zr("0x25")](t)}getMarkerNames(){return Array[Zr("0x39")](this._markerNames)}getMarkers(){return this.getMarkerNames()[Zr("0x2e")]((t=>this[Zr("0x32")][Zr("0x33")].get(t)))[Zr("0x10")]((t=>t))}[Zr("0x1e")](){return this[Zr("0x16")]()[0]||null}removeMarkers(){this._model[Zr("0x17")]((t=>{for(const e of this[Zr("0x16")]())t[Zr("0x1")](e)})),this[Zr("0x2")][Zr("0x34")]()}removeMarker(t){this._model.change((e=>{e[Zr("0x1")](t)})),this[Zr("0x2")].delete(t)}[Zr("0x1d")](t){const e=Zr("0x24")+this.type+":"+this[Zr("0x14")]+":"+this.id+":"+this[Zr("0x27")].id+":"+Yr[Zr("0x8")]();this[Zr("0x29")](e),this[Zr("0x32")][Zr("0x17")]((n=>{n[Zr("0xc")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x12")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Zr("0x23")](){return this[Zr("0x16")]()[Zr("0x2e")]((t=>t[Zr("0x21")]()))}getItems(){return this[Zr("0x23")]()[Zr("0x30")](((t,e)=>[...t,...e[Zr("0x26")]()]),[])}[Zr("0x18")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x21")]())||null}getContainedElement(){const t=this[Zr("0x23")]();if(1!=t[Zr("0x0")])return null;const e=t[0],n=e[Zr("0xb")].nodeAfter,r=e[Zr("0x1a")][Zr("0x9")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x4")](){this[Zr("0xe")](this.getRanges(),this.data,this[Zr("0xf")]),this[Zr("0x31")]()}[Zr("0x2c")](){this[Zr("0xa")](this[Zr("0x23")](),this.data,this[Zr("0xf")]),this.removeMarkers()}[Zr("0x2d")](){const t=[];let e=this[Zr("0x22")];for(;e;)t[Zr("0x28")](e),e=e[Zr("0x6")];return t}setAttribute(t,e){const n=er(this[Zr("0xf")]);Er(n,t,e),jr(n,this[Zr("0xf")])||(this[Zr("0xf")]=n,this[Zr("0x3")](n))}[Zr("0x20")](t){const e=er(this[Zr("0xf")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0xf")]=e,this[Zr("0x3")](this.attributes))}[Zr("0x15")](){return{id:this.id,type:this[Zr("0x14")]?this[Zr("0x5")]+":"+this[Zr("0x14")]:this[Zr("0x5")],authorId:this[Zr("0x27")].id,createdAt:this[Zr("0x38")],hasComments:this[Zr("0x13")],data:this[Zr("0x1c")],attributes:this[Zr("0xf")]}}static[Zr("0x8")](){return(0,e.uid)()[Zr("0x19")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["_customCallbacks","getItemLabel","REPLACE_TEXT","_itemLabelsCallbacks","softBreak","end","function","addFormat","getDescriptions","_handleCustomCallbackDescription","set","pop","removeObject","insertion","_resolveDescriptionItems","*Merge:* %0","isObject","*Insert:* %0","attribute","key","map","remove","join","EmptyContainer","registerElementLabel","Container","replace","_attributeLabels","*Remove:* %0","get","add","push","nextSibling","text","checkChild","element","removeContainer","*Remove format:* %0","skip","registerAttributeLabel","indexOf","isInContent","deletion","elementStart","newValue","addObject","name","label","quantity","nodeAfter","subType","$1 $2","_schema","ELEMENT_SPACE","isEmpty","removeFormat","type","matchingCallback","item","$text","length","_handleAttributeSuggestionDescription","previousSibling","has","$textProxy","_locale","match","Object","isEqual","addEmptyContainer","elementEnd","data","_addDescriptionItems","removeEmptyContainer","*Set format:* %0","start","getFirstRange","_itemLabels","format"];var ti,ei;ti=Qr,ei=397,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x4d")]=[],this[ni("0x4b")]=new Map,this[ni("0x1")]=[],this._attributeLabels=new Map,this[ni("0x32")]=t,this[ni("0x3f")]=e}[ni("0x6")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x3a")];i++){const o=t[i];if(!o[ni("0x27")])continue;const s=this[ni("0x7")](o);if(s){if(null!=o.subType){if(n[ni("0x3d")](o[ni("0x30")]))continue;n[ni("0x1c")](o[ni("0x30")])}e[ni("0x1d")](s)}else if(ni("0x10")!=o[ni("0x36")])ni("0xb")!=o[ni("0x36")]&&"deletion"!=o[ni("0x36")]||this._handleInsertRemoveSuggestionDescription(e,o,t[i+1]);else{const t=o[ni("0x45")][ni("0x11")];if(r[ni("0x3d")](t))continue;r[ni("0x1c")](o[ni("0x45")][ni("0x11")]),t==Cc?this._handleRenameSuggestionDescription(e,o):this[ni("0x3b")](e,o)}}return this[ni("0xc")](e)}registerDescriptionCallback(t){this[ni("0x4d")][ni("0x1d")](t)}[ni("0x16")](t,n,r=e.priorities.normal){ni("0x4")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x1")],{matchingCallback:t,label:n,priority:r}):this[ni("0x4b")][ni("0x8")](t,n)}[ni("0x25")](t,e){this[ni("0x19")].set(t,e)}[ni("0x4e")](t,e=1){let n;for(const e of this[ni("0x1")])if(e[ni("0x37")](t)){n=e[ni("0x2d")];break}return n||(n=this[ni("0x4b")].get(t[ni("0x2c")])),n?n(e):1!==e?e+" "+t[ni("0x2c")]+"s":""+t[ni("0x2c")]}[ni("0x46")](t,e){const n=e.getFirstRange().getWalker(),r=ni("0xb")==e.type?ni("0x1c"):"remove";for(const e of n){const i=e[ni("0x38")],o=t[t[ni("0x3a")]-1];if(i.is(ni("0x3e")))o&&o[ni("0x36")][ni("0x26")](ni("0x17"))>-1&&t[ni("0x9")](),o&&ni("0x1f")==o[ni("0x36")]?o[r]+=i[ni("0x45")]:t[ni("0x1d")]({type:"text",add:"add"==r?i[ni("0x45")]:"",remove:ni("0x13")==r?i.data:""});else if(this[ni("0x32")][ni("0xe")](i)){const s=i;if(o&&o.type[ni("0x26")]("Container")>-1&&t[ni("0x9")](),"elementEnd"==e[ni("0x36")])continue;o&&o[ni("0x36")]==r+ni("0x41")&&o[ni("0x21")][ni("0x2c")]==s[ni("0x2c")]?o.quantity++:t[ni("0x1d")]({type:r+ni("0x41"),element:s,quantity:1}),n[ni("0x24")]((t=>!(ni("0x44")==t[ni("0x36")]&&t[ni("0x38")]==i)))}else if(this[ni("0x32")][ni("0x20")](i,ni("0x39"))||i.is(ni("0x21"),ni("0x2"))){const n=i;if(ni("0x1c")==r&&ni("0x29")==e[ni("0x36")]||ni("0x13")==r&&ni("0x44")==e.type)continue;if(o&&-1==o.type.indexOf(ni("0x17"))){ni("0x1f")==o[ni("0x36")]&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x1e")]&&!this[ni("0x32")][ni("0xe")](n.nextSibling)?n.nextSibling:null:n.previousSibling&&!this[ni("0x32")][ni("0xe")](n.previousSibling)?n[ni("0x3c")]:null,n[ni("0x34")]||s&&s[ni("0x34")]){const e=s&&s[ni("0x34")]?s:n;o&&o[ni("0x36")]==r+ni("0x15")&&o[ni("0x21")][ni("0x2c")]==e[ni("0x2c")]?o.quantity++:t[ni("0x1d")]({type:r+"EmptyContainer",element:e,quantity:1})}else t[ni("0x1d")]({type:r+ni("0x17"),element:n})}}}[ni("0xc")](t){const e=this[ni("0x3f")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x36")]){case ni("0x1f"):if(o.add=o[ni("0x1c")][ni("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[ni("0x18")](/\u000A/g,""),o[ni("0x13")]=o[ni("0x13")][ni("0x18")](/(\S)\u000A+(\S)/g,ni("0x31"))[ni("0x18")](/\u000A/g,""),""!=o[ni("0x1c")]&&""!=o[ni("0x13")]){n.push({type:"replace",content:Jr(e,ni("0x0"),['"'+o[ni("0x13")]+'"','"'+o[ni("0x1c")]+'"'])});continue}if(null!=o[ni("0x1c")][ni("0x40")](/^ +$/)){n[ni("0x1d")]({type:"insertion",content:Jr(e,ni("0xf"),Jr(e,"ELEMENT_SPACE",o[ni("0x1c")].length))});continue}if(null!=o[ni("0x13")].match(/^ +$/)){n[ni("0x1d")]({type:ni("0x28"),content:Jr(e,ni("0x1a"),Jr(e,ni("0x33"),o[ni("0x13")].length))});continue}if(""!=o[ni("0x1c")]){n.push({type:ni("0xb"),content:Jr(e,"*Insert:* %0",'"'+o[ni("0x1c")]+'"')});continue}n.push({type:ni("0x28"),content:Jr(e,ni("0x1a"),'"'+o[ni("0x13")]+'"')});continue;case ni("0x43"):case ni("0x2b"):n[ni("0x1d")]({type:ni("0xb"),content:Jr(e,ni("0xf"),this.getItemLabel(o[ni("0x21")],o[ni("0x2e")]))});continue;case ni("0x47"):case ni("0xa"):n[ni("0x1d")]({type:ni("0x28"),content:Jr(e,"*Remove:* %0",this[ni("0x4e")](o[ni("0x21")],o[ni("0x2e")]))});continue;case"addContainer":n[ni("0x1d")]({type:"insertion",content:Jr(e,"*Split:* %0",this[ni("0x4e")](o[ni("0x21")],o[ni("0x2e")]))});continue;case ni("0x22"):n.push({type:ni("0x28"),content:Jr(e,ni("0xd"),this.getItemLabel(o[ni("0x21")],o.quantity))});continue;case ni("0x5"):r.push(o[ni("0x11")]);continue;case"removeFormat":i[ni("0x1d")](o.key);continue;default:n[ni("0x1d")](o)}if(r[ni("0x3a")]){const t=r[ni("0x12")]((t=>this._attributeLabels[ni("0x3d")](t)?this[ni("0x19")][ni("0x1b")](t):t))[ni("0x14")](", ");n[ni("0x1d")]({type:"format",content:Jr(this[ni("0x3f")],ni("0x48"),t)})}if(i[ni("0x3a")]){const t=i[ni("0x12")]((t=>this[ni("0x19")][ni("0x3d")](t)?this._attributeLabels.get(t):t))[ni("0x14")](", ");n.push({type:ni("0x4c"),content:Jr(this[ni("0x3f")],ni("0x23"),t)})}return n}[ni("0x7")](t){for(const e of this[ni("0x4d")]){const n=e(t);if(n&&ni("0x36")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[ni("0x45")],r=void 0===n[ni("0x2a")]?ni("0x35"):"addFormat";t[ni("0x1d")]({type:r,key:n[ni("0x11")]})}_handleRenameSuggestionDescription(t,e){t.push({type:ni("0x4c"),content:Jr(this[ni("0x3f")],"*Change to:* %0",this[ni("0x4e")](e[ni("0x4a")]().start[ni("0x2f")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[ni("0x46")](t,e),n&&n[ni("0x4a")]()&&!e[ni("0x4a")]()[ni("0x3")][ni("0x42")](n[ni("0x4a")]()[ni("0x49")])){const n=t[t[ni("0x3a")]-1],r=ni("0xb")==e.type?ni("0x1c"):"remove";n&&ni("0x1f")==n.type&&(n[r]+="\n")}}}const ii=["enableCommand","TrackChangesEditing","commands","get","showAIAssistant"];var oi,si;oi=ii,si=490,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[xi("0x3")](xi("0x1"));t[xi("0x2")][xi("0x3")](xi("0x4"))&&e[xi("0x0")]("showAIAssistant")}}const ci=["alignment","TrackChangesEditing","justify","type","editor","FORMAT_ALIGNMENT","right","plugins","get","FORMAT_ALIGN_TO_CENTER","commandParams","afterInit","locale","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","center","formatBlock","has","format","left","_descriptionFactory"];var li,ui;li=ci,ui=360,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x8")](){const t=this[di("0x1")],e=t[di("0x9")];if(!t.plugins[di("0xe")]("AlignmentEditing"))return;const n=t.plugins[di("0x5")](di("0x13"));n._enableDefaultAttributesIntegration(di("0x12"),[],["alignment"]),n[di("0x11")].registerAttributeLabel(di("0x12"),Jr(e,di("0x2"))),this[di("0xb")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[di("0x4")][di("0x5")](di("0x13"))[di("0x11")].registerDescriptionCallback((t=>{if(di("0xd")!=t[di("0x0")])return;const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n[di("0x7")][0].value;return{type:di("0xf"),content:Jr(e,"*Format:* %0",function(t){switch(t){case di("0x10"):return Jr(e,di("0xa"));case di("0x3"):return Jr(e,"FORMAT_ALIGN_TO_RIGHT");case di("0xc"):return Jr(e,di("0x6"));case di("0x14"):return Jr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fi=["formatInline","_registerLegacyDescription","slice","*Remove format:* %0","has","SuperscriptEditing","FORMAT_ITALIC","FORMAT_BOLD","registerAttributeLabel","superscript","plugins","CodeEditing","underline","_enableDefaultAttributesIntegration","type","editor","*Format:* %0","code","locale","get","TrackChangesEditing","SubscriptEditing","ItalicEditing","_descriptionFactory","format","BoldEditing","commandName","subscript","toLowerCase","strikethrough","FORMAT_","registerDescriptionCallback","toUpperCase","FORMAT_SUPERSCRIPT","FORMAT_STRIKETHROUGH","forceValue","UnderlineEditing"];var hi,mi;hi=fi,mi=483,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=[pi("0x17"),pi("0x14"),pi("0x22"),pi("0x9"),"StrikethroughEditing",pi("0x13"),pi("0x3")];class Ei extends t.Plugin{afterInit(){const t=this[pi("0xd")],e=t[pi("0x8")][pi("0x11")](pi("0x12")),n=t[pi("0x10")];for(const r of bi){if(!t[pi("0x8")][pi("0x2")](r))continue;const i=r[pi("0x0")](0,-7)[pi("0x1a")](),o=pi("0x1c")+i[pi("0x1e")]();e[pi("0xb")](i,[i]),e[pi("0x15")][pi("0x6")](i,Jr(n,o))}this._registerLegacyDescription()}[pi("0x24")](){const t=this[pi("0xd")],e=t[pi("0x10")],n=t[pi("0x8")][pi("0x11")](pi("0x12"));function r(t,r){n[pi("0x15")][pi("0x1d")]((n=>{if(pi("0x23")!=n[pi("0xc")])return;const{data:i}=n;return i&&i[pi("0x18")]===t?i.commandParams[0][pi("0x21")]?{type:pi("0x16"),content:Jr(e,pi("0xe"),r)}:{type:"format",content:Jr(e,pi("0x1"),r)}:void 0}))}r("bold",Jr(e,pi("0x5"))),r("italic",Jr(e,pi("0x4"))),r(pi("0xa"),Jr(e,"FORMAT_UNDERLINE")),r(pi("0xf"),Jr(e,"FORMAT_CODE")),r(pi("0x1b"),Jr(e,pi("0x20"))),r(pi("0x19"),Jr(e,"FORMAT_SUBSCRIPT")),r(pi("0x7"),Jr(e,pi("0x1f")))}}const _i=["format","commandName","TrackChangesEditing","schema","registerDescriptionCallback","document","enableCommand","BlockQuoteEditing","commands","model","*Remove format:* %0","get","commandParams","_descriptionFactory","name","checkChild","filter","has","plugins","locale","change","blockQuote","*Set format:* %0","value","from","getSelectedBlocks","parent","selection","forceValue","editor"];var Ti,yi;Ti=_i,yi=491,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{afterInit(){const t=this[Ci("0x12")],e=t[Ci("0x8")];if(!t[Ci("0x7")][Ci("0x6")](Ci("0x1a")))return;const n=t[Ci("0x7")][Ci("0x0")](Ci("0x15")),r=this[Ci("0x12")][Ci("0x1b")][Ci("0x0")](Ci("0xa"));n[Ci("0x19")](Ci("0xa"),((e,i={})=>{const o=this[Ci("0x12")][Ci("0x1c")][Ci("0x18")][Ci("0x10")],s=i&&void 0!==i.forceValue?i[Ci("0x11")]:!r[Ci("0xc")];let x=[];if(s){const e=Array[Ci("0xd")](o[Ci("0xe")]())[Ci("0x5")]((t=>ki(t)||function(t,e){const n=e[Ci("0x4")](t[Ci("0xf")],Ci("0xa")),r=e[Ci("0x4")](["$root",Ci("0xa")],t);return n&&r}(t,this[Ci("0x12")].model[Ci("0x16")])));x=I(e,t[Ci("0x1c")])}else{const e=Array[Ci("0xd")](o.getSelectedBlocks()).filter((t=>ki(t)));x=I(e,t[Ci("0x1c")])}t[Ci("0x1c")][Ci("0x9")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0xa"),commandParams:[{forceValue:s}]})}))})),n[Ci("0x2")][Ci("0x17")]((t=>{const{data:n}=t;if(n&&Ci("0xa")==n[Ci("0x14")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ci("0x1")][0][Ci("0x11")]?{type:Ci("0x13"),content:Jr(e,Ci("0xb"),t)}:{type:"format",content:Jr(e,Ci("0x1d"),t)}}}))}}function ki(t){return Ci("0xa")==t[Ci("0xf")][Ci("0x3")]}const Si=["changeCaseUpper","has","afterInit","get","changeCaseTitle","CaseChange","plugins","enableCommand","TrackChangesEditing"];var Ri,Ii;Ri=Si,Ii=339,function(t){for(;--t;)Ri.push(Ri.shift())}(++Ii);const vi=function(t,e){return Si[t-=0]};class Ni extends t.Plugin{[vi("0x5")](){const t=this.editor;t[vi("0x0")][vi("0x4")](vi("0x8"))&&(t.plugins[vi("0x6")](vi("0x2"))[vi("0x1")](vi("0x3")),t[vi("0x0")].get("TrackChangesEditing")[vi("0x1")]("changeCaseLower"),t[vi("0x0")][vi("0x6")](vi("0x2"))[vi("0x1")](vi("0x7")))}}const Li=["get","TrackChangesEditing","ckbox","enableCommand","plugins","editor","afterInit"];var Mi,wi;Mi=Li,wi=263,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x2")](){const t=this[Oi("0x1")];t.commands[Oi("0x3")](Oi("0x5"))&&t[Oi("0x0")][Oi("0x3")](Oi("0x4"))[Oi("0x6")](Oi("0x5"))}}const Di=["model","name","getSelectedBlocks","document","registerElementLabel","config","get","language","afterInit","toLowerCase","codeBlock","forceValue","filter","checkChild","outdentCodeBlock","_descriptionFactory","*Set format:* %0","parent","isLimit","*Remove format:* %0","ELEMENT_CODE_BLOCK","enableCommand","registerDescriptionCallback","blockName","value","has","editor","label","find","languages","commandName","formatBlock","selection","format","plugins","TrackChangesEditing","commandParams","rootElement","markBlockFormat","type"];var Bi,Pi;Bi=Di,Pi=246,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x2")](){const t=this[Ui("0x14")];if(!t.plugins[Ui("0x13")]("CodeBlock"))return;const e=t[Ui("0x1c")].get(Ui("0x1d")),n=t.locale,r=t[Ui("0x27")][Ui("0x0")](Ui("0x4"))[Ui("0x17")],i=t.commands[Ui("0x0")](Ui("0x4"));e[Ui("0xf")]("indentCodeBlock"),e.enableCommand(Ui("0x8")),e[Ui("0xf")](Ui("0x4"),((n,o={})=>{const s=t[Ui("0x22")],x=t[Ui("0x22")][Ui("0x25")][Ui("0x1a")],a=o&&void 0!==o[Ui("0x5")]?o[Ui("0x5")]:!i[Ui("0x12")];let c;o.language||(o.language=r[0].language),c=a?Array.from(x[Ui("0x24")]()).filter((t=>{return Gi(t)||(e=t,n=s.schema,!e.is(Ui("0x1f"))&&!n[Ui("0xc")](e)&&n[Ui("0x7")](e[Ui("0xb")],Ui("0x4")));var e,n})):Array.from(x.getSelectedBlocks())[Ui("0x6")]((t=>Gi(t)));const l=I(c,s);s.change((()=>{for(const t of l)e[Ui("0x20")](t,{commandName:Ui("0x4"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x11")})}))})),e[Ui("0x9")][Ui("0x26")](Ui("0x4"),(t=>Jr(n,Ui("0xe"),t))),e[Ui("0x9")][Ui("0x10")]((t=>{if(Ui("0x19")!=t[Ui("0x21")])return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i[Ui("0x18")])return;const o=i[Ui("0x1e")][0][Ui("0x1")],s=e(r[Ui("0x16")]((t=>t[Ui("0x1")]===o))[Ui("0x15")])[Ui("0x3")]();return i.commandParams[0][Ui("0x5")]?{type:Ui("0x1b"),content:Jr(n,Ui("0xa"),Jr(n,Ui("0xe"),1)+" ("+s+")")}:{type:Ui("0x1b"),content:Jr(n,Ui("0xd"),Jr(n,Ui("0xe"),1))}}))}}function Gi(t){return Ui("0x4")==t[Ui("0x23")]}const Vi=["editor","afterInit","enableCommand","plugins","get","has"];var Hi,zi;Hi=Vi,zi=259,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x0")](){const t=this[Wi("0x5")];t[Wi("0x2")][Wi("0x4")]("CommentsEditing")&&t[Wi("0x2")][Wi("0x3")]("TrackChangesEditing")[Wi("0x1")]("addCommentThread")}}var qi=n(181);const Xi=["writer","hasAttribute","test","push","name","span","getAttribute","model","listIndent","isBlock","markerRange","elementEnd","consumable","includes","mapper","markerName","isAtEnd","isLimit","listItem","toViewPosition","TrackChangesEditing","addHighlight","nextSibling","isContent","plugins","previousPosition","bindElementToMarker","insert","element","createRangeOn","getItems"];var $i,Zi;$i=Xi,Zi=275,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0x3")]())i[Yi("0x5")](t)&&r[Yi("0x7")](n[Yi("0x2")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1c")].get(Yi("0x18"));return(i,o,s)=>{if(!s[Yi("0x10")][Yi("0x6")](o.markerRange,i[Yi("0x8")]))return;const x=o[Yi("0xe")].getWalker(),a=o[Yi("0xe")].start,c=t[Yi("0xb")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[Yi("0x1b")](e);const n=s[Yi("0x12")].toViewElement(e);if(n&&n.getCustomProperty(Yi("0x19")))return;Yi("0xf")==t.type&&c[Yi("0xd")](e)&&!c[Yi("0x15")](e)&&(e[Yi("0x1a")]||a[Yi("0x14")]?l&&l.parent==e||(l=e,f(t[Yi("0x1d")]),g=!0):u=u||t[Yi("0x1d")])}function f(t){const i=s[Yi("0x4")].createUIElement(Yi("0x9"),{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x12")][Yi("0x17")](t);n&&r.activeMarkers[Yi("0x11")](o[Yi("0x13")])&&s.writer.addClass("ck-suggestion-marker--active",i),s[Yi("0x4")][Yi("0x0")](x,i),s[Yi("0x12")][Yi("0x1e")](i,o[Yi("0x13")])}d||g||!u||f(u)}}const to=["TrackChangesEditing","setSelection","createRange","model","createSelection","delete","high","selection","uiElement","editor","unit","buffer","end","addMarker:suggestion:deletion","merge","isCollapsed","downcastDispatcher","lock","document","requires","markerName","showSuggestionHighlights","editing","get","fromRange","data","getFirstRange","deleteForward","remove","start","unbindElementFromMarkerName","enqueueChange","bind","mapper","forward","detach","$graveyard","enableCommand"];var eo,no;eo=to,no=174,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x23")](){return[qi.Delete]}init(){const t=this[ro("0x19")],e=t.plugins[ro("0x1")](ro("0x10"));e[ro("0xf")](ro("0x15"));const n=t.commands[ro("0x1")](ro("0x5"));e[ro("0xf")](ro("0x5"),((e,r={})=>{const i=t[ro("0x13")][ro("0x14")](t[ro("0x13")][ro("0x22")][ro("0x17")]);i[ro("0x1f")]&&t.model.modifySelection(i,{direction:ro("0xc"),unit:r[ro("0x1a")]});const o=i[ro("0x4")](),x=s.LiveRange[ro("0x2")](o);let a;e(r),a=ro("0xe")==x.root.rootName?t[ro("0x13")].createRange(o[ro("0x7")]):t[ro("0x13")][ro("0x12")](x[ro("0x7")],x[ro("0x1c")]),x[ro("0xd")](),t[ro("0x13")][ro("0x9")](n[ro("0x1b")].batch,(t=>{n[ro("0x1b")][ro("0x21")](),t[ro("0x11")](t.createRange(a[ro("0x1c")])),n.buffer.unlock()}))})),t[ro("0x0")][ro("0x20")].on(ro("0x1d"),Qi(t,ro("0x1e")),{priority:ro("0x16")}),t[ro("0x3")].downcastDispatcher.on(ro("0x1d"),((e,n,r)=>{r.options[ro("0x25")]&&Qi(t,"merge",{showActiveMarker:!1})[ro("0xa")](this)(e,n,r)}),{priority:ro("0x16")}),t[ro("0x0")].downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[ro("0xb")].markerNameToElements(e[ro("0x24")]);if(r)for(const t of r)t.is(ro("0x18"))&&(n[ro("0xb")][ro("0x8")](t,e[ro("0x24")]),n.writer[ro("0x6")](t))}),{priority:ro("0x16")})}}const oo=["bulletedList","noTrackChangesFixer","nodeAfter","getSuggestions","documentList","registerCustomCallback","document","plugins","outdentList","TodoListEditing","listItemIdFixer","forceValue","getChanges","isObject","listType","isUndo","getFirstRange","getFirstMarker","*Format:* insert into %0","*Merge:* %0","ELEMENT_TODO_LIST","deletion","refresh","listItemId","registerPostFixer","value","format","isLocal","TrackChangesEditing","key","end","*Remove format:* %0","commands","ELEMENT_BULLETED_LIST","mergeListItemBackward","listStart","map","locale","oldValue","removeMarker","_descriptionFactory","filter","commandName","schema","ELEMENT_NUMBERED_LIST","attributes","commandParams","range","_getAttributeKey","next","get","*Indent:* %0","_supportLegacySuggestions","config","listStyle","_findSuggestions","checkTodoList","meta","groupId","from","detach","change","createPositionAt","newValue","multipleBlocks","ELEMENT_","todoListCheck","attribute","_LIST","numberedList","indentList","mergeListItemForward","getAttribute","has","data","suggestion","push","model","bulleted","default","type","setAttribute","*Set format:* %0","_suggestionFactory","todoList","*Format:* remove from %0","numbered","*Change to:* %0","list.multiBlock","execute","*Outdent:* %0","containsItem","isNextTo","listReversed","formatBlock","previousSibling","listIndent","assureChains","trackChangesCommand","editor","start","find","parent","_enableDefaultAttributesIntegration","todoListChecked","head","batch","accept","toUpperCase","setSelection","registerElementLabel","length","includes","*Merge:* list item","every","*Split:* list item","_registerLegacyDescription","splitListItemBefore","registerDescriptionCallback","*Check item*","differ","todo"];var so,xo;so=oo,xo=214,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x7")];if(!t[ao("0x25")][ao("0x67")]("ListEditing"))return;const e=t[ao("0x43")],n=t[ao("0x25")][ao("0x50")](ao("0x3a")),r=t.plugins.has(ao("0x27")),i=!!t.config[ao("0x50")](ao("0x76"));function o(t){return{type:ao("0x38"),content:""+Jr(e,ao("0x70"),t)}}function s(t){return{type:ao("0x38"),content:""+Jr(e,ao("0x3d"),t)}}n[ao("0xb")](ao("0x63"),[],[ao("0x35"),ao("0x2c"),"listIndent"]),n[ao("0xb")](ao("0x1e")),n._enableDefaultAttributesIntegration(ao("0x64")),n[ao("0xb")](ao("0x26")),n[ao("0xb")]("splitListItemAfter"),n[ao("0xb")](ao("0x19")),i&&(n[ao("0xb")](ao("0x40")),n[ao("0xb")](ao("0x65"))),r&&(n._enableDefaultAttributesIntegration(ao("0x72")),n[ao("0xb")](ao("0x56"),[],[ao("0xc")]),n[ao("0x46")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ao("0xc")==n[ao("0x3b")])return{type:ao("0x38"),content:n[ao("0x5d")]?Jr(e,ao("0x1b")):Jr(e,"*Uncheck item*")}})),this[ao("0x7")][ao("0x6b")].document[ao("0x36")]((t=>{if(t.batch[ao("0x2d")])return!1;let e=!1;const r=n.getSuggestions({skipNotAttached:!0}).filter((t=>ao("0xc")===n._getAttributeKey(t)));for(const i of r)ao("0x1d")!=i[ao("0x2e")]()[ao("0x8")][ao("0x20")][ao("0x66")](ao("0x2c"))&&(n[ao("0x55")](i[ao("0x2e")](),ao("0x61"))[ao("0x9")]((t=>ao("0x2c")===n[ao("0x4e")](t.suggestion)))||(t[ao("0x45")](i[ao("0x2f")]()),e=!0));return e}))),n[ao("0x46")].registerAttributeLabel(ao("0x4"),Jr(e,"FORMAT_INDENT"));const x={type:ao("0x38"),content:""};n._descriptionFactory[ao("0x1a")]((t=>{const{data:n}=t;if(!n||ao("0x2c")!=n[ao("0x3b")])return;let r=t.head;for(;r;){if(r[ao("0x68")]&&("listStyle"==r[ao("0x68")][ao("0x3b")]&&(r[ao("0x68")].newValue&&ao("0x6d")!=r[ao("0x68")][ao("0x5d")]||ao("0x6d")!=r[ao("0x68")][ao("0x44")]&&!n[ao("0x5d")])||!i&&r.data.key==Cc))return x;r=r[ao("0x4f")]}if(null==n[ao("0x5d")])switch(n.oldValue){case ao("0x6c"):return s(Jr(e,"ELEMENT_BULLETED_LIST"));case ao("0x74"):return s(Jr(e,ao("0x4a")));case ao("0x1d"):return s(Jr(e,ao("0x32")))}switch(n[ao("0x5d")]){case"bulleted":return o(Jr(e,ao("0x3f")));case ao("0x74"):return o(Jr(e,"ELEMENT_NUMBERED_LIST"));case ao("0x1d"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x46")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ao("0x4")==e[ao("0x3b")])return null==e[ao("0x5d")]||null==e[ao("0x44")]&&0==e[ao("0x5d")]?x:void 0})),n[ao("0x46")][ao("0x1a")]((t=>{if(ao("0x61")!=t[ao("0x6e")])return;const{data:n}=t;if(!n||ao("0x35")!=n[ao("0x3b")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x38"),content:Jr(e,ao("0x15"))}:"oldValue"==r?{type:"format",content:Jr(e,ao("0x17"))}:x:x})),t.model[ao("0x24")][ao("0x36")]((t=>this[ao("0x28")](t))),t[ao("0x6b")][ao("0x24")][ao("0x36")]((t=>this[ao("0x1f")](t))),t[ao("0x6b")][ao("0x24")][ao("0x36")]((t=>this.assureChains(t))),this[ao("0x52")]()}[ao("0x28")](t){if(t[ao("0xe")].isUndo||!t[ao("0xe")][ao("0x39")])return!1;let e=!1;const n=this.editor[ao("0x25")].get(ao("0x3a"))[ao("0x21")]({skipNotAttached:!0})[ao("0x47")]((t=>t.data&&ao("0x35")==t[ao("0x68")].key)).filter((t=>t[ao("0x68")][ao("0x5d")]&&t[ao("0x68")][ao("0x44")]));for(const r of n)lo(r)||(t[ao("0x45")](r[ao("0x2f")]()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0xe")][ao("0x2d")]||!t[ao("0xe")][ao("0x39")])return!1;const e=this[ao("0x7")].plugins[ao("0x50")](ao("0x3a"));if(e[ao("0x6")][ao("0x37")])return!1;let n=!1;const r=[ao("0x2c"),"listStyle",ao("0x35"),ao("0x4"),ao("0x41"),ao("0x1"),ao("0x60")],i=this[ao("0x7")].model[ao("0x24")][ao("0x1c")][ao("0x2a")]()[ao("0x47")]((t=>"attribute"==t[ao("0x6e")]))[ao("0x47")]((t=>r.includes(t.attributeKey)));if(0==i[ao("0x13")])return n;for(const o of i){const i=e[ao("0x55")](o[ao("0x4d")],"attribute")[ao("0x47")]((t=>!t[ao("0x57")][ao("0x0")]))[ao("0x42")]((t=>t[ao("0x69")]))[ao("0x47")]((t=>{const n=e[ao("0x4e")](t);return r[ao("0x14")](n)}));if(i[ao("0x13")]){for(const e of i)t[ao("0x45")](e[ao("0x2f")]());n=!0}}return n}[ao("0x5")](t){if(t[ao("0xe")][ao("0x2d")]||!t.batch.isLocal)return!1;const e=this[ao("0x7")][ao("0x25")][ao("0x50")]("TrackChangesEditing");let n=!1;const r=[ao("0x2c"),ao("0x54"),ao("0x35"),ao("0x4"),"listStart",ao("0x1"),ao("0x60")];for(const t of e.getSuggestions({skipNotAttached:!0})){const i=e[ao("0x55")](t[ao("0x2e")](),ao("0x61")).map((t=>t.suggestion))[ao("0x47")]((t=>t.data&&r[ao("0x14")](t.data[ao("0x3b")])));if(!i[ao("0x13")])continue;const s=i[0][ao("0xd")].attributes[ao("0x58")];if(!i[ao("0x16")]((t=>t.attributes[ao("0x58")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0})[ao("0x47")]((e=>ao("0x61")==e.type&&e[ao("0x4b")][ao("0x58")]==t)))r.setAttribute(ao("0x58"),n)}function o(t,e){let n=t[ao("0xd")],r=!1;for(;n;)n[ao("0x4b")][ao("0x58")]!=e&&(i(n[ao("0x4b")][ao("0x58")],e),n[ao("0x6f")]("groupId",e),r=!0),n=n[ao("0x4f")];return r}}[ao("0x52")](){const t=this[ao("0x7")],e=t[ao("0x43")],n=t[ao("0x25")][ao("0x50")]("TrackChangesEditing");this[ao("0x18")](),n[ao("0x71")][ao("0x23")](ao("0x2"),ao("0x22"),ao("0xf"),(function(e,n){const r=[];for(let n of e)n[ao("0x8")].nodeAfter===n[ao("0x3c")][ao("0xa")]&&(n=t.model.createRange(t[ao("0x6b")][ao("0x5c")](n.start[ao("0x20")],0))),r[ao("0x6a")](n);t[ao("0x6b")][ao("0x5b")]((e=>{const i=t.model[ao("0x24")].selection,o=Array[ao("0x59")](i.getRanges()).map((t=>s.LiveRange.fromRange(t)));e[ao("0x11")](r),t.commands[ao("0x50")](n.commandName)[ao("0x34")](),n[ao("0x4c")][ao("0x6a")]({forceDefaultExecution:!0}),t[ao("0x77")](n[ao("0x48")],...n[ao("0x4c")]),e[ao("0x11")](o);for(const t of o)t[ao("0x5a")]()}))})),n._descriptionFactory[ao("0x12")]((function(e){const n=!t[ao("0x6b")][ao("0x49")][ao("0x2b")](e),r=e[ao("0x3")],i=e.nextSibling,o=e[ao("0x66")](ao("0x35")),s=!r||r[ao("0x66")](ao("0x35"))!==o,x=!i||i.getAttribute(ao("0x35"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x18")](){const t=this[ao("0x7")],e=t[ao("0x43")];function n(e){const n=t.commands[ao("0x50")](ao("0x1e")).value,r=t[ao("0x3e")][ao("0x50")](ao("0x63"))[ao("0x37")];return ao("0x63")===e?n:r}t.plugins[ao("0x50")](ao("0x3a"))[ao("0x46")][ao("0x1a")]((function(r){if(ao("0x2")!=r[ao("0x6e")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0x48")]){case"bulletedList":x=i[ao("0x4c")][0][ao("0x29")],a=n(i[ao("0x48")]),o=ao(x?"0x30":"0x73"),!a&&t[ao("0x53")].get(ao("0x76"))||(o="*Change to:* %0"),s={type:ao("0x38"),content:Jr(e,o,Jr(e,ao("0x3f")))};break;case ao("0x63"):x=i.commandParams[0][ao("0x29")],a=n(i[ao("0x48")]),o=ao(x?"0x30":"0x73"),!a&&t[ao("0x53")].get(ao("0x76"))||(o=ao("0x75")),s={type:"format",content:Jr(e,o,Jr(e,ao("0x4a")))};break;case"indentList":o=ao("0x51"),s={type:ao("0x38"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case ao("0x26"):o=function(t){const e=t[ao("0x2e")]();let n=e[ao("0x8")].nodeAfter;for(;n&&e[ao("0x79")](n);){if(n[ao("0x66")](ao("0x4"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x73"),Jr(e,(c=r,ao("0x5f")+c.getFirstRange()[ao("0x8")][ao("0x20")][ao("0x66")](ao("0x2c"))[ao("0x10")]()+ao("0x62")))):Jr(e,ao("0x78"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x38"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===i[ao("0x5e")]&&(o=ao("0x31"),s={type:ao("0x33"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t.getFirstRange()[ao("0x8")][ao("0x20")].previousSibling;for(;e;){const n=e.getAttribute("listItemId");if(!n)return!1;if(n==t[ao("0x68")][ao("0x5d")])return ao("0x5d");if(n==t[ao("0x68")][ao("0x44")])return"oldValue";e=e[ao("0x3")]}return!1}const uo=["_LIST_DEFAULT","decimal-leading-zero","_getAttributeKey","head","ELEMENT_","has","listType","get","newValue","format","lower-roman","*Format:* set start index to %0","type","listStart","numbered","getFirstRange","getAttribute","registerDescriptionCallback","plugins","default","*Format:* set order to regular","data","_registerLegacyDescription","lower-latin","commandParams","editor","getFirstMarker","next","listStyle","find","registerPostFixer","disc","listReversed","*Set format:* %0","includes","afterInit","list.properties","replace","key","document","bind","upper-latin","_getTranslationKeyForListStyle","oldValue","_findSuggestions","attribute","toUpperCase","registerAttributeLabel","upper-roman","FORMAT_LIST_START","nodeAfter","locale","handleDescriptions","_enableDefaultAttributesIntegration","styles","_descriptionFactory","suggestion","filter","TrackChangesEditing","decimal","reversed","config","startIndex","_LIST_"];var go,fo;go=uo,fo=147,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x10")](){if(!this[ho("0x6")][ho("0x3f")][ho("0x32")]("ListPropertiesEditing"))return;const t=this[ho("0x6")][ho("0x2a")][ho("0x34")](ho("0x11")),e=this[ho("0x6")][ho("0x3f")][ho("0x34")](ho("0x27"));t[ho("0x23")]&&e[ho("0x22")](ho("0x9"),[],[ho("0x9")]),t[ho("0x29")]&&e[ho("0x22")](ho("0xd"),[],["listReversed"]),t[ho("0x2b")]&&e[ho("0x22")](ho("0x3a"),[],[ho("0x3a")]);const n={type:ho("0x36"),content:""};e._descriptionFactory[ho("0x3e")](this[ho("0x21")][ho("0x15")](this));const r=this[ho("0x6")][ho("0x20")];e[ho("0x24")][ho("0x1c")](ho("0xd"),Jr(r,"FORMAT_LIST_REVERSED")),e[ho("0x24")][ho("0x3e")]((t=>{const{data:e}=t;if(e&&ho("0xd")==e[ho("0x13")])return null==e[ho("0x35")]||0==e.newValue&&null==e.oldValue?n:void 0})),e[ho("0x24")][ho("0x1c")](ho("0x3a"),Jr(r,ho("0x1e"))),e._descriptionFactory[ho("0x3e")]((t=>{const{data:e}=t;if(e&&ho("0x3a")==e[ho("0x13")])return null==e[ho("0x35")]||1==e.newValue&&null==e[ho("0x18")]?n:void 0})),this[ho("0x6")].model[ho("0x14")][ho("0xb")]((t=>{if(t.batch.isUndo)return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0})[ho("0x26")]((t=>{const n=e[ho("0x2f")](t);return ho("0x3a")==n||ho("0xd")==n}));for(const i of r)ho("0x3b")!=i[ho("0x3c")]().start.nodeAfter.getAttribute("listType")&&(e[ho("0x19")](i.getFirstRange(),ho("0x1a"))[ho("0xa")]((t=>ho("0x33")==e[ho("0x2f")](t[ho("0x25")])))||(t.removeMarker(i[ho("0x7")]()),n=!0));return n})),this[ho("0x3")]()}[ho("0x21")](t){const e=this[ho("0x6")][ho("0x20")],{data:n}=t,r={type:ho("0x36"),content:""};if(!n||ho("0x9")!=n[ho("0x13")])return;if(!n[ho("0x18")])return ho("0x0")==n[ho("0x35")]?r:{type:"format",content:""+Jr(e,ho("0xe"),Jr(e,this[ho("0x17")](n[ho("0x35")])))};if(!n[ho("0x35")]){if(ho("0x0")==n.oldValue)return r;let i=t[ho("0x30")];for(;i;){if(i[ho("0x2")]&&ho("0x33")==i[ho("0x2")][ho("0x13")]&&i[ho("0x2")].newValue)return r;i=i[ho("0x8")]}return{type:ho("0x36"),content:""+Jr(e,"*Remove format:* %0",Jr(e,this[ho("0x17")](n[ho("0x18")])))}}if(ho("0x0")!=n[ho("0x35")])return{type:"format",content:""+Jr(e,"*Set format:* %0",Jr(e,this._getTranslationKeyForListStyle(n[ho("0x35")])))};let i=t[ho("0x30")];for(;i;){if(i[ho("0x2")]&&ho("0x33")==i[ho("0x2")][ho("0x13")]&&i[ho("0x2")][ho("0x35")]&&i[ho("0x2")][ho("0x18")])return r;i=i[ho("0x8")]}const o=t[ho("0x3c")]().start[ho("0x1f")][ho("0x3d")](ho("0x33"));return{type:ho("0x36"),content:Jr(e,ho("0xe"),Jr(e,ho("0x31")+o[ho("0x1b")]()+ho("0x2d")))}}[ho("0x3")](){const t=this[ho("0x6")],e=t[ho("0x20")];t.plugins[ho("0x34")]("TrackChangesEditing")[ho("0x24")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x9"):r="*Change to:* %0",i={type:"format",content:Jr(e,r,Jr(e,this[ho("0x17")](n.commandParams[0][ho("0x39")])))};break;case"listReversed":r=n[ho("0x5")][0][ho("0x29")]?"*Format:* set order to reversed":ho("0x1"),i={type:ho("0x36"),content:Jr(e,r)};break;case ho("0x3a"):r=ho("0x38"),i={type:ho("0x36"),content:Jr(e,r,n.commandParams[0].startIndex)}}return i}))}[ho("0x17")](t){return ho("0x31")+(e=t,po[ho("0xf")](e)?"bulleted":bo.includes(e)?"numbered":null)[ho("0x1b")]()+ho("0x2c")+t[ho("0x1b")]()[ho("0x12")](/-/g,"_");var e}}const po=[ho("0xc"),"circle","square"],bo=[ho("0x28"),ho("0x2e"),ho("0x37"),ho("0x1d"),ho("0x4"),ho("0x16")];var Eo=n(331);const _o=["get","writer","unbindElementFromMarkerName","removeMarker:suggestion:insertion","hasClass","markInsertion","end","enter","nextSibling","getFirstPosition","downcastDispatcher","fromRange","createPositionAt","getFirstRange","TrackChangesEditing","afterExecute","editor","markerName","showSuggestionHighlights","ck-suggestion-marker-split","change","detach","markerNameToElements","commands","split","remove","setSelection","options","enterBlock","high","parent","mapper","model","createRange","editing","addMarker:suggestion:insertion"];var To,yo;To=_o,yo=287,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}init(){const t=this[Co("0x11")],e=t.plugins.get(Co("0xf")),n=t[Co("0x18")][Co("0x1")](Co("0x8"));e.enableCommand(Co("0x8"),(()=>{t[Co("0x21")][Co("0x15")]((r=>{const i=t.model.document.selection,o=i[Co("0xa")](),x=s.LiveRange[Co("0xc")](i[Co("0xe")]());if(n[Co("0x1d")](r)){const n=t[Co("0x21")][Co("0xd")](o[Co("0x1f")][Co("0x9")],0),i=r[Co("0x22")](o,n);e[Co("0x6")](i)}else r[Co("0x1b")](r[Co("0x22")](x[Co("0x7")]));x[Co("0x16")](),n.fire(Co("0x10"),{writer:r})}))})),t[Co("0x23")][Co("0xb")].on(Co("0x0"),Qi(t,Co("0x19")),{priority:Co("0x1e")}),t[Co("0x23")].downcastDispatcher.on(Co("0x4"),((t,e,n)=>{const r=n.mapper[Co("0x17")](e[Co("0x12")]);if(r)for(const t of r)t[Co("0x5")](Co("0x14"))&&(n[Co("0x20")][Co("0x3")](t,e[Co("0x12")]),n[Co("0x2")][Co("0x1a")](t))}),{priority:Co("0x1e")}),t.data.downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x1c")][Co("0x13")]&&Qi(t,"split",{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"})}}const ko=["TrackChangesEditing","findNext","string","replace","start","item","FindAndReplaceUtils","findByTextCallback","getMarkersGroup","findPrevious","handleFindCommand","model","_isInDeletionRange","createPositionAt","enableCommand","editor","bind","replaceAll","end","createRange","getIntersection","markers","get","getRange","suggestion:deletion","afterInit","plugins"];var So,Ro;So=ko,Ro=148,function(t){for(;--t;)So.push(So.shift())}(++Ro);const Io=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[Io("0xc")](){if(!this[Io("0x2")].plugins.has("FindAndReplaceEditing"))return;const t=this[Io("0x2")][Io("0xd")][Io("0x9")](Io("0xe"));t.enableCommand("find",this[Io("0x18")][Io("0x3")](this)),t[Io("0x1")](Io("0xf")),t[Io("0x1")](Io("0x17")),t[Io("0x1")](Io("0x11")),t.enableCommand(Io("0x4"))}handleFindCommand(t,e,n={}){const r=this.editor[Io("0xd")][Io("0x9")](Io("0x14"));return t((t=>(Io("0x10")==typeof e?r[Io("0x15")](e,n):e)(t).filter((e=>!1===this[Io("0x1a")](e,t[Io("0x13")])))),n)}[Io("0x1a")](t,e){const n=this[Io("0x2")][Io("0x19")][Io("0x6")](this[Io("0x2")].model[Io("0x0")](e,t[Io("0x12")]),this[Io("0x2")][Io("0x19")][Io("0x0")](e,t[Io("0x5")]));for(const t of this[Io("0x2")][Io("0x19")][Io("0x8")][Io("0x16")](Io("0xb")))if(null!==n[Io("0x7")](t[Io("0xa")]()))return!0;return!1}}const No=["FORMAT_FONT_BACKGROUND","find","label","fontColor","normalizeSizeOptions","fontBackgroundColor.colors","fontBackgroundColor","config","plugins","FORMAT_FONT_FAMILY","model","editor","value","locale","formatInline","fontSize.options","afterInit","*Reset font background color*","*Set font family:* %0","format","FORMAT_FONT_SIZE","trim","*Set font size:* %0","TrackChangesEditing","toLowerCase","*Reset font color*","get","*Reset font family*","_descriptionFactory","*Reset font size*","_registerLegacyDescription","FontBackgroundColorEditing","commandParams","*Set font color:* %0","fontFamily","fontSize","registerAttributeLabel","commandName","fontColor.colors"];var Lo,Mo;Lo=No,Mo=394,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:"FontSizeEditing",commandName:wo("0x1f")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:wo("0x26")},{pluginName:wo("0x1b"),commandName:wo("0x2")}];class Fo extends t.Plugin{[wo("0xc")](){const t=this.editor[wo("0x9")],e=this[wo("0x7")].plugins[wo("0x16")](wo("0x13"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x7")][wo("0x4")].has(t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[wo("0x18")].registerAttributeLabel("fontSize",Jr(t,wo("0x10"))),e._descriptionFactory[wo("0x20")](wo("0x1e"),Jr(t,wo("0x5"))),e[wo("0x18")][wo("0x20")]("fontColor",Jr(t,"FORMAT_FONT_COLOR")),e._descriptionFactory.registerAttributeLabel("fontBackgroundColor",Jr(t,wo("0x23"))),this[wo("0x1a")]()}_registerLegacyDescription(){const t=this[wo("0x7")],e=t.locale;t.plugins[wo("0x16")](wo("0x13"))[wo("0x18")].registerDescriptionCallback((t=>{const n=e.t;if(wo("0xa")!=t.type)return;const{data:r}=t;if(null!=r){if(wo("0x1f")==r[wo("0x21")]){const t=r[wo("0x1c")][0].value;if(t){const r=n(this[wo("0x7")].plugins.get("FontSize")[wo("0x0")](this[wo("0x7")][wo("0x3")].get(wo("0xb"))).find((e=>e[wo("0x6")]==t)).title)[wo("0x14")]();return{type:"format",content:Jr(e,wo("0x12"),r)}}return{type:wo("0xf"),content:Jr(e,wo("0x19"))}}if(wo("0x1e")==r[wo("0x21")]){const t=r.commandParams[0][wo("0x8")];return t?{type:"format",content:Jr(e,wo("0xe"),t)}:{type:wo("0xf"),content:Jr(e,wo("0x17"))}}if(wo("0x26")==r[wo("0x21")]){const t=r[wo("0x1c")][0][wo("0x8")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x16")](wo("0x22")))[wo("0x24")]((e=>e[wo("0x6")]==t));let o=t,s="";return r&&(o=r[wo("0x25")],s=n(o)[wo("0x14")]()),{type:wo("0xf"),content:Jr(e,wo("0x1d"),s)[wo("0x11")](),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,wo("0x15"))}}if("fontBackgroundColor"==r[wo("0x21")]){const t=r[wo("0x1c")][0][wo("0x8")];if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x3")][wo("0x16")](wo("0x1")))[wo("0x24")]((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x25")],s=n(o)[wo("0x14")]()),{type:"format",content:Jr(e,"*Set font background color:* %0",s).trim(),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,wo("0xd"))}}}}))}}const Do=["plugins","FontSize","toUpperCase","afterInit","push","fontSize.options","TrackChangesEditing","copyFormat","fontColor","commandName","model","commandParams","*Set format to:* %0","entries","_enableDefaultAttributesIntegration","locale","toLowerCase","_registerLegacyDescription","type","fontColor.colors","fontBackgroundColor","boolean","normalizeSizeOptions","formatBlock","split","join","registerDescriptionCallback","fontSize","find","format","pasteFormat","config","get","title","*Remove all formatting*"];var Bo,Po;Bo=Do,Po=232,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x10")](){const t=this.editor,e=t[Uo("0xd")][Uo("0xa")](Uo("0x13")),n=t.commands[Uo("0xa")](Uo("0x14")),r=t.commands[Uo("0xa")](Uo("0x8"));n&&r&&(e[Uo("0x1b")](Uo("0x8")),e.enableCommand(Uo("0x14")),this[Uo("0x1e")]())}[Uo("0x1e")](){const t=this.editor,e=t[Uo("0x1c")];t[Uo("0xd")].get("TrackChangesEditing")._descriptionFactory[Uo("0x4")]((n=>{if(Uo("0x1")!=n[Uo("0x1f")]&&"formatInline"!=n[Uo("0x1f")])return;const{data:r}=n;if(r&&Uo("0x8")===r[Uo("0x16")]){const n=[],i=r[Uo("0x18")][0];for(const[e,r]of Object[Uo("0x1a")](i))n[Uo("0x11")](Go(t,e,r));return n.length?{type:Uo("0x7"),content:Jr(e,Uo("0x19"),n[Uo("0x3")](", "))}:{type:Uo("0x7"),content:Jr(e,Uo("0xc"))}}}))}}function Go(t,e,n){const r=t[Uo("0x1c")].t,o=e[Uo("0x2")](/(?=[A-Z])/)[Uo("0x3")](" "),s=r(o.charAt(0)[Uo("0xf")]()+o.slice(1))[Uo("0x1d")]();if(Uo("0x22")==typeof n)return s;if(Uo("0x15")===e||Uo("0x21")===e){const e=(0,i.normalizeColorOptions)(t.config[Uo("0xa")](Uo("0x20")))[Uo("0x6")]((t=>t[Uo("0x17")]==n));return s+" ("+(e?r(e.label)[Uo("0x1d")]():n)+")"}if(Uo("0x5")===e&&isNaN(parseFloat(n))){const e=t[Uo("0xd")].get(Uo("0xe"))[Uo("0x0")](t[Uo("0x9")].get(Uo("0x12")))[Uo("0x6")]((t=>t[Uo("0x17")]==n));return s+" ("+(e?r(e[Uo("0xb")])[Uo("0x1d")]():n)+")"}return s+" ("+n+")"}const Vo=["_enableDefaultAttributesIntegration","view","model","heading.options","find","heading","value","commandParams","locale","type","paragraph","name","format","_headingOptions","*Change to:* %0","TrackChangesEditing","afterInit","match","get","editor","ELEMENT_HEADING_CUSTOM","_getHeadingLevel","config","ELEMENT_HEADING","registerElementLabel","formatBlock","_descriptionFactory","has","title","HeadingEditing","plugins"];var Ho,zo;Ho=Vo,zo=169,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x2")](){const t=this[Wo("0x5")];if(!t[Wo("0x10")][Wo("0xd")](Wo("0xf")))return;this._headingOptions=t[Wo("0x8")][Wo("0x4")](Wo("0x14"));const e=t[Wo("0x19")],n=t[Wo("0x10")][Wo("0x4")]("TrackChangesEditing");n[Wo("0x11")](Wo("0x16"));for(const t of this._headingOptions)Wo("0x1b")!=t[Wo("0x13")]&&n[Wo("0xc")][Wo("0xa")](t[Wo("0x13")],(n=>{const r=this[Wo("0x7")](t[Wo("0x13")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x9"),[s,x])):(i=n,o=t[Wo("0xe")],Jr(e,Wo("0x6"),[i,o]));var i,o,s,x}));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins[Wo("0x4")](Wo("0x1"))[Wo("0xc")].registerDescriptionCallback((t=>{if(Wo("0xb")!=t[Wo("0x1a")])return;const{data:n}=t;if(n&&Wo("0x16")==n.commandName){const t=n[Wo("0x18")][0][Wo("0x17")],s=this[Wo("0x7")](t);if(null!==s)return{type:"format",content:Jr(e,"*Change to:* %0",(1,o=s,Jr(e,Wo("0x9"),[1,o])))};const x=this._headingOptions.find((e=>e.model===t)).title;return{type:Wo("0x1d"),content:Jr(e,Wo("0x0"),(r=1,i=x,Jr(e,"ELEMENT_HEADING_CUSTOM",[r,i])))}}var r,i,o}))}[Wo("0x7")](t){var e,n;const r=t[Wo("0x3")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0x1e")])||void 0===e?void 0:e[Wo("0x15")]((e=>e[Wo("0x13")]==t));if(i&&i[Wo("0x12")]){const t=i[Wo("0x12")],e=(null!==(n=t[Wo("0x1c")])&&void 0!==n?n:t)[Wo("0x3")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["FORMAT_HIGHLIGHT","model","type","afterInit","config","value","locale","commandParams","HighlightEditing","formatInline","title","get","find","TrackChangesEditing","_registerLegacyDescription","has","format","highlight","editor","*Set highlight:* %0","commandName","registerDescriptionCallback","plugins","color","registerAttributeLabel","highlight.options"];var Xo,$o;Xo=qo,$o=139,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x14")](){const t=this[Zo("0x9")];if(!t[Zo("0xd")][Zo("0x6")](Zo("0x19")))return;const e=t[Zo("0xd")][Zo("0x2")](Zo("0x4")),n=t.locale;e._enableDefaultAttributesIntegration(Zo("0x8"),[Zo("0x8")]),e._descriptionFactory[Zo("0xf")](Zo("0x8"),Jr(n,Zo("0x11"))),this._registerLegacyDescription()}[Zo("0x5")](){const t=this.editor,e=t[Zo("0x17")];t[Zo("0xd")].get(Zo("0x4"))._descriptionFactory[Zo("0xc")]((n=>{if(Zo("0x0")!=n[Zo("0x13")])return;const{data:r}=n;if(r&&Zo("0x8")==r[Zo("0xb")]){const n=e.t,i=r[Zo("0x18")][0][Zo("0x16")];if(i){const r=t[Zo("0x15")][Zo("0x2")](Zo("0x10"))[Zo("0x3")]((t=>t[Zo("0x12")]==i)),o=n(r.title).toLowerCase();return{type:Zo("0x7"),content:Jr(e,Zo("0xa"),o),color:{value:r[Zo("0xe")],title:r[Zo("0x1")]}}}return{type:Zo("0x7"),content:Jr(e,"*Remove highlight*",Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Jo=["TrackChangesEditing","high","registerElementLabel","addClass","insert","has","div","ck-horizontal-line","afterInit","createPositionAt","enableCommand","for","elementToStructure","locale","editor","plugins","ELEMENT_HORIZONTAL_LINE","get","createEmptyElement"];var Qo,ts;Qo=Jo,ts=368,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0x1")](){const t=this[es("0x7")];if(!t[es("0x8")][es("0x11")]("HorizontalLineEditing"))return;t[es("0x8")].get(es("0xc"))[es("0x3")]("horizontalLine");const e=t[es("0x8")][es("0xa")]("TrackChangesEditing"),n=t[es("0x6")];e._descriptionFactory[es("0xe")]("horizontalLine",(t=>Jr(n,es("0x9"),t))),t.conversion[es("0x4")]("dataDowncast")[es("0x5")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e.createContainerElement(es("0x12")),i=e[es("0xb")]("hr");return e[es("0xf")](es("0x0"),r),e[es("0x10")](e[es("0x2")](r,0),i),r},converterPriority:es("0xd")})}}const rs=["key","commandName","_registerLegacyDescription","afterInit","_enableDefaultAttributesIntegration","HtmlEmbed","plugins","value","htmlEmbed","locale","_descriptionFactory","format","registerDescriptionCallback","formatBlock","rawHtml","registerElementLabel","editor","get","nodeAfter","*Change %0 content*","type","attribute","TrackChangesEditing","ELEMENT_HTML_EMBED"];var is,os;is=rs,os=164,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x7")](){const t=this[ss("0x14")];if(!t[ss("0xa")].has(ss("0x9")))return;const e=t.plugins[ss("0x15")](ss("0x2")),n=t[ss("0xd")];e._descriptionFactory[ss("0x13")](ss("0x12"),(t=>Jr(n,ss("0x3"),t))),e[ss("0x8")](ss("0xc"),[],[ss("0xb")]),e[ss("0xe")][ss("0x10")]((t=>{if(ss("0x1")!=t.type)return;const{data:e}=t;if(e&&ss("0xb")==e[ss("0x4")]&&t.getFirstRange().start[ss("0x16")].is("element",ss("0x12"))){const t=Jr(n,ss("0x3"));return{type:ss("0xf"),content:Jr(n,ss("0x17"),t)}}})),this._registerLegacyDescription()}[ss("0x6")](){const t=this[ss("0x14")],e=t.locale;t[ss("0xa")][ss("0x15")](ss("0x2"))._descriptionFactory[ss("0x10")]((t=>{if(ss("0x11")!=t[ss("0x0")])return;const{data:n}=t;if(n&&ss("0xc")==n[ss("0x5")]){const t=Jr(e,ss("0x3"));return{type:"format",content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["nodeBefore","attribute","detach","alt","removeObject","commandParams","isCollapsed","model","previous","formatBlock","createRangeOn","backward","_descriptionFactory","deletion","nodeAfter","registerCustomCallback","has","*Remove image text alternative*","ImageResize","getFirstRange","start","imageTextAlternative","Inline image to block image","FORMAT_IMAGE_SIZE","find","toNext","change","getContainedElement","getCaptionFromImageModelElement","markBlockFormat","afterInit","document","imageStylePreApply","filter","chain","format","forward","accept","uploadImage","plugins","discard","*Set image width:* %0","isBefore","end","convertBlockImageToInline","resizeImage","subType","get","key","insertion","ImageTextAlternativeEditing","imageCaption","length","commandName","enableCommand","ImageUploadEditing","isEqual","_suggestionFactory","TrackChangesEditing","registerElementLabel","getClosestSelectedImageElement","*Set image text alternative:* %0","_enableDefaultAttributesIntegration","addObject","Block image to inline image","isBlockImage","createRange","markInsertion","ELEMENT_IMAGE","markDeletion","*Reset image width*","caption","locale","toPrevious","_registerLegacyDescription","ImageEditing","imageTypeInline","fromPosition","newValue","editor","element","resizedWidth","ImageUtils","join","convertInlineImageToBlock","registerDescriptionCallback","type","selection","_findSuggestions","ImageInlineEditing","getNearestSelectionRange","insertImage"];var cs,ls;cs=as,ls=443,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x2f")](){const t=this[us("0x4")];if(!t[us("0x38")][us("0x21")](us("0x0")))return;const e=t[us("0x38")][us("0x40")](us("0x4b")),n=t[us("0x38")][us("0x40")](us("0x7")),r=t[us("0x59")];e[us("0x47")](us("0x10")),e[us("0x1d")].registerElementLabel("imageBlock",(t=>Jr(r,us("0x55"),t))),e[us("0x1d")][us("0x4c")]("imageInline",(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e._descriptionFactory[us("0x4c")](us("0x58"),(()=>Jr(r,"ELEMENT_CAPTION"))),t.plugins[us("0x21")](us("0x48"))&&e[us("0x47")](us("0x37")),t[us("0x38")][us("0x21")]("ImageBlockEditing")&&t[us("0x38")][us("0x21")](us("0xe"))&&(e.enableCommand("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t.model[us("0x30")][us("0xc")]);t[us("0x18")][us("0x2b")]((()=>{e.markBlockFormat(o,{commandName:us("0x1"),commandParams:[i]},[],us("0x3d"))}))})),e[us("0x47")]("imageTypeBlock",((r,i)=>{t[us("0x18")].change((o=>{let x=n[us("0x4d")](t[us("0x18")][us("0x30")][us("0xc")]),a=o.createRangeOn(x);const c=s.LivePosition[us("0x2")](a[us("0x25")],us("0x5a")),l=s.LivePosition[us("0x2")](a[us("0x3c")],us("0x2a"));e.forceDefaultExecution((()=>r(i))),x=n[us("0x4d")](t[us("0x18")][us("0x30")].selection),a=o.createRangeOn(x);const u=o[us("0x53")](c,l);c.detach(),l[us("0x13")](),e[us("0x2e")](x,{commandName:us("0x1"),commandParams:[i]},[],us("0x9")),u[us("0x25")][us("0x3b")](a.start)&&e.markInsertion(o[us("0x53")](u[us("0x25")],a[us("0x25")]),us("0x9")),a[us("0x3c")][us("0x3b")](u[us("0x3c")])&&e[us("0x54")](o[us("0x53")](a[us("0x3c")],u[us("0x3c")]),us("0x9"))}))})),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),us("0x8"),(()=>!1)),e[us("0x4a")][us("0x20")]("formatBlock",us("0x9"),"accept",(()=>!1)),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),"discard",e[us("0x4a")].getSuggestionCallback(us("0x1a"),"",us("0x36"))),e[us("0x4a")].registerCustomCallback("insertion",us("0x9"),us("0x8"),(()=>!1)),e[us("0x4a")][us("0x20")](us("0x42"),us("0x9"),us("0x39"),(([n])=>{const r=e[us("0x4a")].getSuggestionCallback(us("0x42"),"","discard");let i=n.start,o=n[us("0x3c")];const s=t.model.schema.getNearestSelectionRange(i,us("0x1c")),x=t.model.schema[us("0xf")](o,us("0x35"));s[us("0x17")]&&(i=s.start),x.isCollapsed&&(o=x[us("0x3c")]),r([t.model.createRange(i,o)])})),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),"chain",x),e[us("0x4a")][us("0x20")](us("0x42"),"convertInlineImageToBlock",us("0x33"),x)),t[us("0x38")].has("ImageCaptionEditing")&&(e[us("0x47")]("toggleImageCaption",((r,i)=>{const o=t.plugins[us("0x40")]("ImageCaptionUtils");let s=n[us("0x4d")](t.model.document[us("0xc")]),x=o[us("0x2d")](s);t[us("0x18")].change((()=>{if(x)return void e[us("0x56")](t[us("0x18")][us("0x1b")](x));const a=n[us("0x52")](s);r(i),s=n[us("0x4d")](t.model[us("0x30")][us("0xc")]),x=o[us("0x2d")](s),e.markInsertion(t[us("0x18")][us("0x1b")](x),a?null:"imageCaption")}))})),e._suggestionFactory.registerCustomCallback(us("0x42"),us("0x44"),"chain",x));const i=[{type:us("0x1a"),subType:us("0x31")},{type:us("0x42"),subType:us("0x44")},{type:"formatBlock",subType:us("0x9")},{type:us("0x42"),subType:us("0x9")}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t[us("0xb")]==e&&t.subType==n)),s=i.findIndex((({type:t,subType:e})=>r[us("0xb")]==t&&r.subType==e));if(o<0||s<0)return!1;const x=t[us("0x24")](),a=r[us("0x24")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e[us("0xd")](x,us("0x42"))[us("0x32")]((({suggestion:t,meta:e})=>e.isOwn&&us("0x9")==t[us("0x3f")]));if(t[us("0x45")]>1&&a[us("0x3c")][us("0x49")](x.start))return!0;if(1==t[us("0x45")]&&(x[us("0x25")][us("0x49")](a[us("0x3c")])||x[us("0x3c")][us("0x49")](a[us("0x25")])))return!0}if(3==o&&3==s&&x[us("0x25")][us("0x3b")](a[us("0x25")])){const t=x.end[us("0x1f")],e=a[us("0x25")][us("0x11")];return n[us("0x52")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x38")][us("0x21")](us("0x23"))&&(e[us("0x4f")](us("0x3e"),[],[us("0x6")]),e[us("0x1d")].registerAttributeLabel("resizedWidth",Jr(r,us("0x28")))),t[us("0x38")][us("0x21")](us("0x43"))&&e[us("0x4f")](us("0x26"),[],[us("0x14")]),e[us("0x1d")][us("0xa")]((t=>{if(i[us("0x29")]((({type:e,subType:n})=>t[us("0xb")]==e&&t[us("0x3f")]==n)))return t[us("0x19")]?{}:void 0})),e[us("0x1d")].registerDescriptionCallback((t=>{if(us("0x42")==t.type||us("0x1e")==t[us("0xb")]){const e=t[us("0x2c")]();if(e&&e.is(us("0x5"),"caption"))return{type:us("0x42")==t[us("0xb")]?us("0x50"):us("0x15"),element:e,quantity:1}}})),e._descriptionFactory.registerDescriptionCallback((t=>"formatBlock"==t.type&&us("0x9")==t.subType?{type:us("0x34"),content:us("0x27")}:us("0x1a")==t[us("0xb")]&&us("0x3d")==t[us("0x3f")]?{type:us("0x34"),content:us("0x51")}:void 0)),e._descriptionFactory[us("0xa")]((t=>{if(us("0x12")!=t[us("0xb")])return;const{data:e}=t;if(!e||"alt"!=e[us("0x41")])return;const n=e[us("0x3")];return n?{type:us("0x34"),content:Jr(r,us("0x4e"),'"'+n+'"')}:{type:us("0x34"),content:Jr(r,us("0x22"))}})),this[us("0x5b")]()}_registerLegacyDescription(){const t=this[us("0x4")],e=t.locale;t[us("0x38")][us("0x40")](us("0x4b"))._descriptionFactory.registerDescriptionCallback((t=>{if(us("0x1a")!=t[us("0xb")]&&"formatInline"!=t[us("0xb")])return;const{data:n}=t;if(n){if(us("0x26")==n[us("0x46")]){const t=n[us("0x16")][0][us("0x3")];return t?{type:us("0x34"),content:Jr(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x34"),content:Jr(e,us("0x22"))}}if("resizeImage"==n[us("0x46")]){const t=n[us("0x16")][0].width;return t?{type:us("0x34"),content:Jr(e,us("0x3a"),t)}:{type:us("0x34"),content:Jr(e,us("0x57"))}}}}))}}const gs=["*Replace image URL*","plugins","replaceImageSource","ImageEditing","_suggestionFactory","_registerLegacyDescription","has","type","format","accept","src","editor","TrackChangesEditing","getSuggestionCallback","_descriptionFactory","registerCustomCallback","get","discard","oldValue","locale","_handleLegacySuggestions","*Format:* replace image URL","commandName","formatInline","registerDescriptionCallback","formatBlock","key","afterInit","newValue"];var fs,hs;fs=gs,hs=405,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x1c")](){if(!this[ms("0xc")].plugins[ms("0x7")](ms("0x4")))return;const t=this[ms("0xc")][ms("0x14")],e=this[ms("0xc")][ms("0x2")][ms("0x11")](ms("0xd"));e._enableDefaultAttributesIntegration("replaceImageSource",[],[ms("0xb")]),e[ms("0xf")][ms("0x19")]((e=>{if("attribute"!=e[ms("0x8")])return;const{data:n}=e;return n&&ms("0xb")==n[ms("0x1b")]?n[ms("0x0")]&&n[ms("0x13")]?{type:"format",content:Jr(t,ms("0x1"))}:{type:"format",content:""}:void 0})),this[ms("0x15")]()}[ms("0x15")](){const t=this[ms("0xc")].plugins[ms("0x11")](ms("0xd"));t[ms("0x5")].registerCustomCallback("formatBlock",ms("0x3"),ms("0xa"),t[ms("0x5")][ms("0xe")](ms("0x1a"),null,ms("0x12"))),t._suggestionFactory[ms("0x10")](ms("0x1a"),"replaceImageSource","discard",t[ms("0x5")][ms("0xe")](ms("0x1a"),null,ms("0xa"))),this[ms("0x6")]()}_registerLegacyDescription(){const t=this[ms("0xc")],e=t[ms("0x14")];t[ms("0x2")][ms("0x11")](ms("0xd"))._descriptionFactory[ms("0x19")]((t=>{if(ms("0x1a")!=t.type&&ms("0x18")!=t[ms("0x8")])return;const{data:n}=t;return n&&ms("0x3")==n[ms("0x17")]?{type:ms("0x9"),content:Jr(e,ms("0x16"))}:void 0}))}}const bs=["accept","_findSuggestions","Users","enableCommand","registerDescriptionCallback","isInlineImage","discardSuggestion","title","ImageStyleEditing","commands","isEqual","join","findIndex","suggestion","createRangeOn","get","getSuggestionCallback","imageTypeBlock","head","nodeAfter","isBlockImage","hasSuggestion","value","commandParams","ImageUtils","imageTypeInline","FORMAT_SIDE_IMAGE","imageStylePostApply","commandName","editor","_suggestionFactory","setImageNaturalSizeAttributes","isOwn","imageStyle","selection","imageCaption","markBlockFormat","document","getContainedElement","_splitMarkerName","TrackChangesEditing","end","imageStylePreApply","formatInline","registerCustomCallback","author","convertInlineImageToBlock","newRange","forEach","getClosestSelectedImageElement","start","isInContent","registerPostFixer","name","isIntersecting","insertion","type","length","plugins","differ","formatBlock","getFirstRange","model","discard","subType","_registerLegacyDescription","from","refresh","nodeBefore","locale","*Format:* %0","getSuggestion","_descriptionFactory","next","commandReversedParams","getSuggestions"];var Es,_s;Es=bs,_s=254,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x3")];if(!t.plugins.has(Ts("0x3a")))return;const n=t[Ts("0x20")].get(Ts("0xe")),r=t[Ts("0x20")][Ts("0x41")](Ts("0x4a")),i={};n[Ts("0x35")](Ts("0x7"),((i,o)=>{const s=t[Ts("0x20")].get(Ts("0x34")).me,x=t[Ts("0x3b")].get("imageStyle");let a=r[Ts("0x17")](t[Ts("0x24")][Ts("0xb")].selection),c=t[Ts("0x24")][Ts("0x40")](a),l=x[Ts("0x48")];if(l==o[Ts("0x48")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[Ts("0x31")]().filter((t=>t.isInContent&&s==t[Ts("0x13")]&&(Ts("0x22")==t[Ts("0x1e")]||Ts("0x11")==t[Ts("0x1e")])&&(Ts("0x10")==t[Ts("0x26")]||"imageStylePostApply"==t[Ts("0x26")])&&t[Ts("0x23")]()[Ts("0x3c")](c)))[Ts("0x16")]((t=>n[Ts("0x38")](t[Ts("0x44")]))),a=r[Ts("0x17")](t[Ts("0x24")][Ts("0xb")].selection),c=t[Ts("0x24")].createRangeOn(a),x[Ts("0x29")](),t[Ts("0x3b")][Ts("0x41")](Ts("0x4b"))[Ts("0x29")](),t[Ts("0x3b")][Ts("0x41")](Ts("0x43"))[Ts("0x29")](),l=x[Ts("0x48")],l!=o.value)return r[Ts("0x37")](a)&&x.shouldConvertImageType(o[Ts("0x48")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x17")](t.model[Ts("0xb")][Ts("0x8")]),void n[Ts("0xa")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x46")](a)?n.markBlockFormat(a,u,[],Ts("0x1")):n.markInlineFormat(c,u,Ts("0x1")))}))}));for(const e of t[Ts("0x20")].get(Ts("0x3a")).normalizedStyles)i[e[Ts("0x1b")]]=e[Ts("0x39")].toLowerCase();n[Ts("0x4")].registerCustomCallback("formatBlock",Ts("0x10"),Ts("0x3d"),(()=>!1)),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x1"),Ts("0x3d"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Ts("0x11"),Ts("0x1"),Ts("0x3d"),(()=>!1)),n._suggestionFactory[Ts("0x12")](Ts("0x22"),Ts("0x10"),Ts("0x32"),(([t])=>{r[Ts("0x5")](t[Ts("0xc")]())})),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x10"),Ts("0x25"),((t,e)=>{n[Ts("0x4")][Ts("0x42")](Ts("0x22"),"","accept")(t,{commandName:e[Ts("0x2")],commandParams:e[Ts("0x30")]})})),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x10"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x22"),subType:"imageStylePreApply"},{type:Ts("0x1d"),subType:Ts("0x9")},{type:"formatBlock",subType:Ts("0x14")},{type:Ts("0x1d"),subType:Ts("0x14")}];function s(t,e){const i=o.findIndex((({type:e,subType:n})=>t[Ts("0x1e")]==e&&t.subType==n)),s=o[Ts("0x3e")]((({type:t,subType:n})=>e.type==t&&e[Ts("0x26")]==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x23")]();if((0==i||1==i)&&2==s&&x[Ts("0x1c")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x33")](x,Ts("0x1d")).filter((({suggestion:t,meta:e})=>e[Ts("0x6")]&&Ts("0x14")==t[Ts("0x26")]));if(t[Ts("0x1f")]>1&&a[Ts("0xf")][Ts("0x3c")](x[Ts("0x18")]))return!0;if(1==t[Ts("0x1f")]&&(x[Ts("0x18")].isEqual(a[Ts("0xf")])||x[Ts("0xf")].isEqual(a[Ts("0x18")])))return!0}if(3==i&&3==s&&x[Ts("0x18")].isBefore(a[Ts("0x18")])){const t=x[Ts("0xf")][Ts("0x45")],e=a[Ts("0x18")][Ts("0x2a")];return r[Ts("0x46")](t)&&t===e}return!1}t[Ts("0x24")].document[Ts("0x1a")]((()=>{let e=!1;const i=Array[Ts("0x28")](t.model[Ts("0xb")][Ts("0x21")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0xd")](t);if(Ts("0x3f")==i&&n[Ts("0x47")](a)){if(Ts("0x22")==s&&(Ts("0x10")==x||"imageStylePostApply"==x)){const t=n[Ts("0x2d")](a);if(o[Ts("0x15")]){const i=t[Ts("0x23")]().getContainedElement();if(r[Ts("0x46")](i))continue;n[Ts("0x38")](t),e=!0}}if(Ts("0x1d")==s&&Ts("0x9")==x&&!o[Ts("0x15")]){const t=n[Ts("0x2d")](a);t[Ts("0x2f")]&&t[Ts("0x2f")][Ts("0x19")]&&(n.discardSuggestion(t[Ts("0x2f")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}[Ts("0x27")](t){const e=this.editor,n=e[Ts("0x2b")];e[Ts("0x20")][Ts("0x41")]("TrackChangesEditing")[Ts("0x2e")][Ts("0x36")]((e=>{if(Ts("0x22")!=e[Ts("0x1e")]&&Ts("0x11")!=e[Ts("0x1e")])return;const{data:r}=e;if(!r||Ts("0x7")!=r[Ts("0x2")])return;const i=r[Ts("0x49")][0][Ts("0x48")];return o="side"===i?Jr(n,Ts("0x0")):t[i]||i,{type:"format",content:Jr(n,Ts("0x2c"),o)};var o}))}}const Cs=["listenTo","Users","high","collaboration_features","value","forEach","commands","track_changes","_setSuggestionData","dataInsert","bind","importWord","_trackChangesValueDuringImport","trackChanges","TrackChangesEditing","editor","_handleImportedData","get","execute","lowest","plugins","_trackChangesExecuted"];var As,ks;As=Cs,ks=123,function(t){for(;--t;)As.push(As.shift())}(++ks);const Ss=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Ss("0x15")]=!1,this[Ss("0x8")]=!1}afterInit(){const t=this[Ss("0x2")],e=t[Ss("0xf")][Ss("0x4")](Ss("0x14")),n=t[Ss("0xf")][Ss("0x4")](Ss("0x0"));e&&(e.on(Ss("0x5"),((t,[,e])=>{this[Ss("0x15")]=n[Ss("0xd")],e[Ss("0xc")][Ss("0x10")]=!this[Ss("0x15")]}),{priority:Ss("0xb")}),this[Ss("0x9")](e,Ss("0x12"),this[Ss("0x3")][Ss("0x13")](this)),this[Ss("0x9")](e,Ss("0x12"),(()=>{this[Ss("0x8")]&&(n[Ss("0x5")](),this[Ss("0x8")]=!1)}),{priority:Ss("0x6")}),t[Ss("0x7")][Ss("0x4")](Ss("0x1")).enableCommand(Ss("0x14")))}[Ss("0x3")](t,e){const{suggestions:n}=e,r=this.editor[Ss("0xf")][Ss("0x4")]("trackChanges"),i=r[Ss("0xd")];this._trackChangesValueDuringImport!==i&&(r[Ss("0x5")](),this[Ss("0x8")]=!0),n&&n[Ss("0xe")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this.editor[Ss("0x7")][Ss("0x4")](Ss("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:Ss("0x14")}}};this[Ss("0x2")].plugins[Ss("0x4")](Ss("0x1"))[Ss("0x11")](i)}))}}const Is=["registerAttributeLabel","get","type","editor","getItems","outdent","FORMAT_INDENT","indentBlock","format","IndentEditing","IndentBlock","_descriptionFactory","*Outdent:* %0","enableCommand","outdentBlock","locale","has","blockIndent","_registerLegacyDescription","_enableDefaultAttributesIntegration","TrackChangesEditing","_registerBlockAttribute","commandName","*Indent:* %0","plugins"];var vs,Ns;vs=Is,Ns=221,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ls("0x7")],e=t[Ls("0x3")][Ls("0x5")](Ls("0x18"));if(t.plugins[Ls("0x14")](Ls("0xd"))&&(e[Ls("0x11")]("indent"),e[Ls("0x11")](Ls("0x9"))),t[Ls("0x3")][Ls("0x14")](Ls("0xe")))for(const t of[Ls("0xb"),"outdentBlock"])e[Ls("0x17")](t);const n=t[Ls("0x13")];e[Ls("0x0")](Ls("0x15")),e._descriptionFactory[Ls("0x4")](Ls("0x15"),Jr(n,Ls("0xa"))),this[Ls("0x16")]()}_registerLegacyDescription(){const t=this[Ls("0x7")],e=t[Ls("0x13")],n=t[Ls("0x3")][Ls("0x5")]("TrackChangesEditing");n[Ls("0xf")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Ls("0x6")])return;const{data:r}=t;if(!r)return;if(Ls("0xb")!=r[Ls("0x1")]&&"outdentBlock"!=r[Ls("0x1")])return;const i=t[Ls("0x8")]()[0],o=n[Ls("0xf")].getItemLabel(i);return"indentBlock"==r[Ls("0x1")]?{type:Ls("0xc"),content:Jr(e,Ls("0x2"),o)}:Ls("0x12")==r[Ls("0x1")]?{type:Ls("0xc"),content:Jr(e,Ls("0x10"),o)}:void 0}))}}var ws,Os,Fs=["plugins","init","editor","requires","TrackChangesEditing","enableCommand","get"];ws=Fs,Os=409,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x0")](){return[qi.Input]}[Ds("0x5")](){this[Ds("0x6")][Ds("0x4")][Ds("0x3")](Ds("0x1"))[Ds("0x2")]("input")}}const Ps=["manualDecorators","_descriptionFactory","editor","unlink","toLowerCase","format","get","linkHref","_enableDefaultAttributesIntegration","locale","registerDescriptionCallback","commandName","map","LinkEditing","*Remove link*","formatInline","*Set link:* %0","commandParams","has","link (","TrackChangesEditing","afterInit","link","_registerLegacyDescription","type","registerAttributeLabel","label"];var Us,js;Us=Ps,js=495,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0xc")](){const t=this.editor;if(!t.plugins[Gs("0x9")](Gs("0x4")))return;const e=t.plugins.get(Gs("0xb")),n=t.commands.get("link");e[Gs("0x1a")]("link",["linkHref",...n[Gs("0x12")][Gs("0x3")]((t=>t.id))]),e[Gs("0x1a")](Gs("0x15"));for(const t of n[Gs("0x12")])e[Gs("0x13")][Gs("0x10")](t.id,Gs("0xa")+t[Gs("0x11")][Gs("0x16")]()+")");e._descriptionFactory[Gs("0x1")]((e=>{if("attribute"!=e[Gs("0xf")])return;const{data:n}=e;if(!n||Gs("0x19")!=n.key)return;const r=n.newValue,i=t.locale;return{type:"format",content:null==r?Jr(i,Gs("0x5")):Jr(i,Gs("0x7"),'"'+r+'"')}})),this[Gs("0xe")]()}[Gs("0xe")](){const t=this[Gs("0x14")],e=t[Gs("0x0")];t.plugins[Gs("0x18")]("TrackChangesEditing")[Gs("0x13")][Gs("0x1")]((t=>{if(Gs("0x6")!=t.type)return;const{data:n}=t;if(n){if(Gs("0xd")==n.commandName){const t=n[Gs("0x8")][0];return{type:Gs("0x17"),content:Jr(e,Gs("0x7"),'"'+t+'"')}}return Gs("0x15")==n[Gs("0x2")]?{type:Gs("0x17"),content:Jr(e,Gs("0x5"))}:void 0}}))}}const Hs=["has","model","*Uncheck item*","enableCommand","registerDescriptionCallback","value","selection","markBlockFormat","formatInline","*Outdent:* %0","numberedList","createPositionAt","ELEMENT_BULLETED_LIST","slice","plugins","locale","findIndex","registerElementLabel","format","bulletedList","name","replace","change","LegacyTodoListEditing","execute","type","document","todoList","*Indent:* %0","outdentList","blockName","checkTodoList","getSelectedBlocks","listItem","List","element","LegacyListEditing","commands","end","todoListChecked","before","nextSibling","numbered","listType","editor","forceValue","from","todo","length","afterInit","schema","add","indentList","ELEMENT_LIST_ITEM","*Change to:* %0","_descriptionFactory","filter","ELEMENT_NUMBERED_LIST","commandParams","commandName","formatBlock","previousSibling","createRange","TrackChangesEditing","listIndent","getAttribute","get"];var zs,Ws;zs=Hs,Ws=250,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x0")](){const t=this[Ks("0x3e")],e=t[Ks("0x21")];if(!t[Ks("0x20")][Ks("0x12")](Ks("0x36")))return;const n=t[Ks("0x20")][Ks("0x11")](Ks("0xe")),r=t[Ks("0x20")][Ks("0x12")](Ks("0x29"));function i(e){return()=>{const r=t[Ks("0x13")][Ks("0x2c")][Ks("0x18")],i=t[Ks("0x37")][Ks("0x11")](e);if(i[Ks("0x17")])return void t[Ks("0x2a")]("paragraph",{});const o=e[Ks("0x1f")](0,-4),s=function(t,e,n){let r=Array[Ks("0x40")](t).filter((t=>{return e=t,(r=n).checkChild(e.parent,Ks("0x33"))&&!r.isObject(e);var e,r}));r=r.filter((t=>!t.is(Ks("0x35"),Ks("0x33"))||t[Ks("0x10")](Ks("0x3d"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x35"),Ks("0x33"))?i[Ks("0x2")](Xs(t)):i[Ks("0x2")](t);return Array[Ks("0x40")](i)}(r.getSelectedBlocks(),o,t[Ks("0x13")][Ks("0x1")]);t.model[Ks("0x28")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x17")]}],formatGroupId:Ks("0x30")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x40")](t);const n=e[Ks("0x22")]((t=>"listItem"!=t[Ks("0x26")]));return n>-1&&(e=e[Ks("0x1f")](0,n)),e}(t[Ks("0x13")].document[Ks("0x18")][Ks("0x32")]()),i=t.model[Ks("0xd")](t[Ks("0x13")][Ks("0x1d")](r[0],Ks("0x3a")),t.model[Ks("0x1d")](r[r[Ks("0x42")]-1],Ks("0x38")));t.model[Ks("0x28")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0xf")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x3b")];for(;t&&t.getAttribute("listIndent")>n[Ks("0x10")](Ks("0xf"));)e[Ks("0x2")](t),t=t[Ks("0x3b")]}return Array[Ks("0x40")](e)}(r))}))}}n.enableCommand(Ks("0x1c"),i(Ks("0x1c"))),n[Ks("0x15")](Ks("0x25"),i("bulletedList")),r&&n[Ks("0x15")](Ks("0x2d"),i(Ks("0x2d"))),n[Ks("0x15")](Ks("0x3"),o(Ks("0x3"))),n[Ks("0x15")](Ks("0x2f"),o("outdentList")),r&&n[Ks("0x15")]("checkTodoList",(()=>{const e=t.commands[Ks("0x11")](Ks("0x31")),r=Array[Ks("0x40")](e._selectedElements);r[Ks("0x7")]((t=>t[Ks("0x10")](Ks("0x39"))!=e[Ks("0x17")])),t[Ks("0x13")][Ks("0x28")]((()=>{for(const t of r)n[Ks("0x19")](t,{commandName:Ks("0x31"),commandParams:[{forceValue:!e.value}]})}))})),n[Ks("0x6")][Ks("0x23")](Ks("0x33"),(t=>Jr(e,Ks("0x4"),t))),n[Ks("0x6")][Ks("0x16")]((t=>{if(Ks("0xb")!=t[Ks("0x2b")]&&Ks("0x1a")!=t.type)return;const{data:n}=t;if(n){if(Ks("0x1c")==n[Ks("0xa")]||Ks("0x25")==n[Ks("0xa")]||Ks("0x2d")==n[Ks("0xa")])switch(n[Ks("0xa")][Ks("0x27")](Ks("0x34"),"")){case"bulleted":return r(Jr(e,Ks("0x1e")));case Ks("0x3c"):return r(Jr(e,Ks("0x8")));case Ks("0x41"):return r(Jr(e,"ELEMENT_TODO_LIST"))}if(Ks("0x3")==n.commandName)return{type:"format",content:Jr(e,Ks("0x2e"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x2f")==n[Ks("0xa")])return{type:"format",content:Jr(e,Ks("0x1b"),Jr(e,Ks("0x4")))};if(Ks("0x31")==n[Ks("0xa")])return n[Ks("0x9")][0][Ks("0x3f")]?{type:Ks("0x24"),content:Jr(e,"*Check item*")}:{type:"format",content:Jr(e,Ks("0x14"))}}function r(t){return{type:Ks("0x24"),content:Jr(e,Ks("0x5"),t)}}}))}}function Xs(t){const e=t[Ks("0x10")](Ks("0xf"));if(0==e)return t;let n=t;for(;t[Ks("0xc")]&&t[Ks("0xc")].is(Ks("0x35"),"listItem");){const r=t.previousSibling[Ks("0x10")](Ks("0xf"));if(r==e)n=t.previousSibling;else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x35"),Ks("0x33"))&&t[Ks("0x10")]("listIndent")>0){let n=t[Ks("0x3b")];for(;n&&"listItem"==n[Ks("0x26")]&&n.getAttribute(Ks("0xf"))==t.getAttribute(Ks("0xf"));)e.push(n),n=n.nextSibling}return e}const Zs=["LegacyListUtils","listType","commandName","handleListStartCommand","commandParams","formatInline","backward","startIndex","getFirstPosition","document","getSelectedBlocks","handleListReversedCommand","*Format:* set start index to %0","get","styles","config","getSiblingNodes","editor","filter","listItem","numbered","forward","getLastPosition","model","formatBlock","_getTranslationKeyForListStyle","map","getListTypeFromListStyleType","selection","getAttribute","flat","locale","createRange","_getSuggestionBlocks","listStart","replace","type","listReversed","bind","push","format","listStyle","plugins","_getSuggestionBlocksForListStyle","list.properties","before","markMultiRangeBlockFormat","createPositionAt","reversed","TrackChangesEditing","_LIST_","length","registerDescriptionCallback","has","element","parent","handleListStyleCommand","*Format:* set order to reversed","change","handleDescriptions","_descriptionFactory","toUpperCase","ELEMENT_"];var Ys,Js;Ys=Zs,Js=351,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{afterInit(){if(!this.editor[Qs("0x6")][Qs("0x11")]("LegacyListPropertiesEditing"))return;const t=this[Qs("0x2c")][Qs("0x2a")][Qs("0x28")](Qs("0x8")),e=this[Qs("0x2c")].plugins[Qs("0x28")](Qs("0xd"));t[Qs("0x29")]&&e.enableCommand(Qs("0x5"),this[Qs("0x14")][Qs("0x2")](this)),t[Qs("0xc")]&&e.enableCommand("listReversed",this[Qs("0x26")].bind(this)),t[Qs("0x22")]&&e.enableCommand(Qs("0x3d"),this[Qs("0x1e")][Qs("0x2")](this)),e[Qs("0x18")][Qs("0x10")](this[Qs("0x17")].bind(this))}[Qs("0x14")](t,e={}){const n=this.editor[Qs("0x6")][Qs("0x28")]("TrackChangesEditing"),r=this[Qs("0x7")]();this[Qs("0x2c")].model.change((()=>{n[Qs("0xa")](r,{commandName:Qs("0x5"),commandParams:[{type:e.type}],formatGroupId:Qs("0x5")})}))}[Qs("0x26")](t,e={}){const n=this[Qs("0x2c")][Qs("0x6")][Qs("0x28")](Qs("0xd")),r=this[Qs("0x3c")]((t=>t.is(Qs("0x12"),"listItem")&&"numbered"===t[Qs("0x38")](Qs("0x1c"))));if(r.length<1)return;const i=r[Qs("0x35")]((t=>this[Qs("0x2c")][Qs("0x32")][Qs("0x3b")](this[Qs("0x2c")].model[Qs("0xb")](t,Qs("0x9")),this.editor.model[Qs("0xb")](t,0))));this.editor[Qs("0x32")][Qs("0x16")]((()=>{n[Qs("0xa")](i,{commandName:Qs("0x1"),commandParams:[{reversed:e[Qs("0xc")]}],formatGroupId:Qs("0x1")})}))}handleListStartCommand(t,e={}){const n=this[Qs("0x2c")][Qs("0x6")][Qs("0x28")](Qs("0xd")),r=this[Qs("0x3c")]((t=>t.is(Qs("0x12"),Qs("0x2e"))&&Qs("0x2f")===t.getAttribute(Qs("0x1c"))));if(r[Qs("0xf")]<1)return;const i=r[Qs("0x35")]((t=>this.editor.model[Qs("0x3b")](this.editor[Qs("0x32")][Qs("0xb")](t,Qs("0x9")),this.editor[Qs("0x32")][Qs("0xb")](t,0))));this[Qs("0x2c")][Qs("0x32")][Qs("0x16")]((()=>{n[Qs("0xa")](i,{commandName:"listStart",commandParams:[{startIndex:e[Qs("0x22")]}],formatGroupId:Qs("0x3d")})}))}handleDescriptions(t){if(Qs("0x33")!=t[Qs("0x0")]&&Qs("0x20")!=t.type)return;const e=this[Qs("0x2c")][Qs("0x3a")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0x1d")]){case"listStyle":r="*Change to:* %0",i={type:"format",content:Jr(e,r,Jr(e,this[Qs("0x34")](n[Qs("0x1f")][0].type)))};break;case Qs("0x1"):r=n[Qs("0x1f")][0][Qs("0xc")]?Qs("0x15"):"*Format:* set order to regular",i={type:"format",content:Jr(e,r)};break;case Qs("0x3d"):r=Qs("0x27"),i={type:Qs("0x4"),content:Jr(e,r,n[Qs("0x1f")][0][Qs("0x22")])}}return i}[Qs("0x7")](){var t,e,n,r;const i=this.editor[Qs("0x6")].get(Qs("0x1b"));let o=Array.from(this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")][Qs("0x25")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x12"),Qs("0x2e")))&&o.unshift(...i[Qs("0x2b")](this.editor[Qs("0x32")][Qs("0x24")].selection[Qs("0x23")](),"backward")),(null===(e=o[o[Qs("0xf")]-1])||void 0===e?void 0:e.is(Qs("0x12"),"listItem"))&&o[Qs("0x3")](...i[Qs("0x2b")](this.editor.model.document.selection[Qs("0x31")](),Qs("0x30"))),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")].getFirstPosition())||void 0===n?void 0:n[Qs("0x13")])||void 0===r?void 0:r.is(Qs("0x12"),Qs("0x2e")))&&(o=o[Qs("0x2d")]((t=>t.is(Qs("0x12"),"listItem")))),o}[Qs("0x3c")](t){const e=this.editor[Qs("0x6")][Qs("0x28")](Qs("0x1b"));let n=Array.from(this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")].getSelectedBlocks()).filter(t)[Qs("0x35")]((t=>{const n=this.editor[Qs("0x32")][Qs("0xb")](t,0);return[...e[Qs("0x2b")](n,Qs("0x21")),...e[Qs("0x2b")](n,"forward")]}))[Qs("0x39")]();return n=[...new Set(n)],n}[Qs("0x34")](t){return Qs("0x1a")+this.editor[Qs("0x6")][Qs("0x28")](Qs("0x1b"))[Qs("0x36")](t)[Qs("0x19")]()+Qs("0xe")+t.toUpperCase()[Qs("0x3e")](/-/g,"_")}}const ex=["MediaEmbedEditing","afterInit","_descriptionFactory","conversion","TrackChangesEditing","dataDowncast","options","stop","data","for","enableCommand","showSuggestionHighlights","media","plugins","mediaEmbed","high","editor","ELEMENT_MEDIA","get","locale","createEmptyElement","has"];var nx,rx;nx=ex,rx=135,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x14")](){const t=this[ix("0xd")];if(!t.plugins[ix("0x12")](ix("0x13")))return;const e=t[ix("0xa")][ix("0xf")](ix("0x1")),n=t[ix("0x10")];e[ix("0x7")](ix("0xb")),e[ix("0x15")].registerElementLabel("media",(t=>Jr(n,ix("0xe"),t))),t[ix("0x0")][ix("0x6")](ix("0x2")).elementToElement({model:ix("0x9"),view:(t,{writer:e,options:n})=>{if(n[ix("0x8")])return e[ix("0x11")]("div")},converterPriority:"high"}),t[ix("0x5")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[ix("0x3")][ix("0x8")]&&t[ix("0x4")]()}),{priority:ix("0xc")})}}const sx=["TrackChangesEditing","has","plugins","enableCommand","editor","MentionEditing"];var xx,ax;xx=sx,ax=462,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x4")];t[cx("0x2")][cx("0x1")](cx("0x5"))&&t[cx("0x2")].get(cx("0x0"))[cx("0x3")]("mention")}}const ux=["locale","ELEMENT_PAGE_BREAK","_descriptionFactory","get","has","registerElementLabel","plugins","TrackChangesEditing","afterInit","PageBreakEditing","editor","pageBreak"];var dx,gx;dx=ux,gx=345,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x1")];if(!t[fx("0x9")][fx("0x7")](fx("0x0")))return;t[fx("0x9")][fx("0x6")](fx("0xa")).enableCommand("pageBreak");const e=t[fx("0x9")].get(fx("0xa")),n=t[fx("0x3")];e[fx("0x5")][fx("0x8")](fx("0x2"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["downcastDispatcher","consume","type","consumable","_enableDefaultAttributesIntegration","mapper","nodeAfter","has","isLimit","model","locale","options","insertion","Paragraph","ELEMENT_PARAGRAPH","bindElementToMarker","markerName","registerDescriptionCallback","commandName","formatBlock","registerElementLabel","includes","markerRange","paragraph","get","activeMarkers","getItemLabel","afterInit","editor","isBlock","_descriptionFactory","isTouching","span","highest","addMarker:suggestion:insertion","insert","addClass","TrackChangesEditing","writer","enableCommand","format","$text","_registerLegacyDescription","end","editing","showSuggestionHighlights","checkChild","plugins"];var px,bx;px=mx,bx=424,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x23")](){const t=this.editor;if(!t[Ex("0x7")][Ex("0xf")](Ex("0x15")))return;const e=t[Ex("0x12")],n=t[Ex("0x7")][Ex("0x20")](Ex("0x2d"));n[Ex("0x26")][Ex("0x1c")](Ex("0x1f"),(t=>Jr(e,Ex("0x16"),t))),n[Ex("0xc")](Ex("0x1f")),n[Ex("0x2f")]("insertParagraph"),t[Ex("0x4")].downcastDispatcher.on(Ex("0x2a"),Tx(t),{priority:Ex("0x29")}),t.data[Ex("0x8")].on(Ex("0x2a"),((e,n,r)=>{r[Ex("0x13")][Ex("0x5")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x29")});const r=n[Ex("0x26")];r[Ex("0x19")]((n=>{if(Ex("0x14")!==n[Ex("0xa")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x27")](o)||!i[Ex("0xe")])return;const s=t[Ex("0x11")].schema,x=i[Ex("0xe")];return s.isBlock(x)&&!s[Ex("0x10")](x)&&s[Ex("0x6")](x,Ex("0x1"))?{type:"insertion",content:Jr(e,"*Insert:* %0",r[Ex("0x22")](x,1))}:void 0})),this[Ex("0x2")]()}[Ex("0x2")](){const t=this[Ex("0x24")],e=t.locale;t[Ex("0x7")].get(Ex("0x2d"))[Ex("0x26")][Ex("0x19")]((t=>{if(Ex("0x1b")!=t.type)return;const{data:n}=t;return n&&Ex("0x1f")==n[Ex("0x1a")]?{type:Ex("0x0"),content:Jr(e,"*Change to:* %0",Jr(e,Ex("0x16")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x7")][Ex("0x20")](Ex("0x2d")),s=r[Ex("0x1e")].start,x=r[Ex("0x1e")][Ex("0x3")],a=t[Ex("0x11")].schema;if(!s[Ex("0x27")](x)||!s[Ex("0xe")])return;const c=s[Ex("0xe")];if(a[Ex("0x25")](c)&&!a.isLimit(c)&&a[Ex("0x6")](c,Ex("0x1"))){if(!i[Ex("0xb")][Ex("0x9")](r[Ex("0x1e")],n.name))return;const t=i[Ex("0x2e")].createUIElement(Ex("0x28"),{class:"ck-suggestion-marker-split"}),s=i.mapper.toViewPosition(x);e&&o[Ex("0x21")][Ex("0x1d")](r[Ex("0x18")])&&i[Ex("0x2e")][Ex("0x2c")]("ck-suggestion-marker--active",t),i[Ex("0x2e")][Ex("0x2b")](s,t),i[Ex("0xd")][Ex("0x17")](t,r[Ex("0x18")])}}}const yx=["format","plugins","type","_registerLegacyDescription","locale","TrackChangesEditing","afterInit","has","RemoveFormatEditing","_descriptionFactory","_enableDefaultAttributesIntegration","registerDescriptionCallback","get","commandName","formatBlock","removeFormat"];var Cx,Ax;Cx=yx,Ax=204,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Sx extends t.Plugin{[kx("0xa")](){const t=this.editor;t[kx("0x5")][kx("0xb")](kx("0xc"))&&(t[kx("0x5")][kx("0x0")](kx("0x9"))[kx("0xe")](kx("0x3")),this[kx("0x7")]())}[kx("0x7")](){const t=this.editor;t.plugins[kx("0x0")](kx("0x9"))[kx("0xd")][kx("0xf")]((e=>{if(kx("0x2")!=e.type&&"formatInline"!=e[kx("0x6")])return;const{data:n}=e;return n&&kx("0x3")==n[kx("0x1")]?{type:kx("0x4"),content:Jr(t[kx("0x8")],"*Remove all formatting*")}:void 0}))}}const Rx=["get","afterInit","discardSuggestion","RestrictedEditingModeEditing","plugins","discardAllSuggestions","trackChanges","TrackChangesEditing","acceptSuggestion","enableCommand","discardSelectedSuggestions","editor"];var Ix,vx;Ix=Rx,vx=390,function(t){for(;--t;)Ix.push(Ix.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x7")](){const t=this[Nx("0x5")];if(!t[Nx("0xa")].has(Nx("0x9")))return;const e=t[Nx("0xa")][Nx("0x6")](Nx("0x1"));e[Nx("0x3")]("goToPreviousRestrictedEditingException"),e[Nx("0x3")]("goToNextRestrictedEditingException");const n=t[Nx("0xa")][Nx("0x6")](Nx("0x9"));n.enableCommand(Nx("0x0")),n[Nx("0x3")](Nx("0x2")),n[Nx("0x3")](Nx("0x8")),n[Nx("0x3")]("acceptAllSuggestions"),n[Nx("0x3")](Nx("0xb")),n[Nx("0x3")]("acceptSelectedSuggestions"),n[Nx("0x3")](Nx("0x4"))}}const Mx=["insert","addMarker:suggestion","ck-suggestion-marker--active","includes","split","markerName","consumable","high","markerRange","writer","editor","shiftEnter","data","bindElementToMarker","editing","ELEMENT_LINE_BREAK","options","getItems","createPositionBefore","activeMarkers","ck-suggestion-marker-","toViewPosition","softBreak","locale","element","span","addMarker:suggestion:deletion","enableCommand","createUIElement","merge","mapper","test","init","plugins","downcastDispatcher","registerElementLabel","_descriptionFactory","get"];var wx,Ox;wx=Mx,Ox=178,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x6")](){const t=this[Fx("0x16")],e=t[Fx("0x7")][Fx("0xb")]("TrackChangesEditing");e[Fx("0x1")](Fx("0x17")),t[Fx("0x1a")][Fx("0x8")].on("addMarker:suggestion:insertion",Bx(t),{priority:Fx("0x13")}),t.editing.downcastDispatcher.on(Fx("0x0"),Bx(t),{priority:Fx("0x13")}),t[Fx("0x18")][Fx("0x8")].on(Fx("0xd"),((e,n,r)=>{r[Fx("0x1c")].showSuggestionHighlights&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0xa")][Fx("0x9")](Fx("0x22"),(e=>Jr(t[Fx("0x23")],Fx("0x1b"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x7")].get("TrackChangesEditing");if(!i[Fx("0x12")][Fx("0x5")](r.markerRange,n.name))return;const s=t.model;for(const t of r[Fx("0x14")][Fx("0x1d")]()){if(!t.is(Fx("0x24"),Fx("0x22")))continue;const n="deletion"==r.markerName[Fx("0x10")](":")[1]?Fx("0x3"):"split",x=i[Fx("0x15")][Fx("0x2")](Fx("0x25"),{class:Fx("0x20")+n}),a=i[Fx("0x4")][Fx("0x21")](s[Fx("0x1e")](t));e&&o[Fx("0x1f")][Fx("0xf")](r[Fx("0x11")])&&i[Fx("0x15")].addClass(Fx("0xe"),x),i[Fx("0x15")][Fx("0xc")](a,x),i[Fx("0x4")][Fx("0x19")](x,r.markerName)}}}const Px=["get","FORMAT_RESTRICTED_ENABLED","_descriptionFactory","change","restrictedEditingException","formatBlock","isCollapsed","markInlineFormat","StandardEditingModeEditing","TrackChangesEditing","has","selection","enableCommand","FORMAT_RESTRICTED_DISABLED","plugins","from","forceValue","commandName","commandParams","formatInline","registerDescriptionCallback","editor","model","getRanges","commands"];var Ux,jx;Ux=Px,jx=164,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{afterInit(){const t=this[Gx("0x7")],e=t[Gx("0x8")],n=t.locale;if(!t.plugins[Gx("0x15")](Gx("0x13")))return;const r=t[Gx("0x0")][Gx("0xb")](Gx("0x14")),i=Gx("0xf"),o=t[Gx("0xa")][Gx("0xb")](i);r[Gx("0x17")](i,((t,n={})=>{const s=e.document[Gx("0x16")];if(s[Gx("0x11")])return void t(n);const x=void 0!==n[Gx("0x2")]?n[Gx("0x2")]:!o.value;e[Gx("0xe")]((()=>{const t=Array[Gx("0x1")](s[Gx("0x9")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0xd")][Gx("0x6")]((t=>{if(Gx("0x10")!=t.type&&Gx("0x5")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x3")]==i?e[Gx("0x4")][0][Gx("0x2")]?{type:"format",content:Jr(n,Gx("0xc"))}:{type:"format",content:Jr(n,Gx("0x18"))}:void 0}))}}const Hx=["has","_registerInlineAttribute","plugins","definitions","Style","type","commandParams","registerDescriptionCallback","StyleUtils","get","ghsAttributes","_registerBlockAttribute","_registerLegacyDescription","DataSchema","locale","_descriptionFactory","afterInit","forceValue","formatInline","format","config","element","style","editor","styleName","add","registerAttributeLabel","FORMAT_STYLE","GeneralHtmlSupport","toLowerCase"];var zx,Wx;zx=Hx,Wx=489,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x7")](){const t=this[Kx("0xe")];if(!t.plugins.has(Kx("0x19"))||!t[Kx("0x17")][Kx("0x15")](Kx("0x4")))return;const e=t[Kx("0x17")][Kx("0x0")]("TrackChangesEditing"),n=t[Kx("0x5")],r=t[Kx("0xb")][Kx("0x0")](Kx("0xd")),i=t[Kx("0x17")][Kx("0x0")](Kx("0x13")),o=t.plugins[Kx("0x0")](Kx("0x1d")).normalizeConfig(t[Kx("0x17")].get(Kx("0x4")),r[Kx("0x18")]);e._enableDefaultAttributesIntegration("style");const s=new Set;for(const t of o.block){const e=i.getGhsAttributeNameForElement(t.element);s[Kx("0x10")](e)}const x=new Set;for(const t of o.inline){const e=i.getGhsAttributeNameForElement(t[Kx("0xc")]);x[Kx("0x10")](e);for(const e of t[Kx("0x1")])x[Kx("0x10")](e)}for(const t of s)e[Kx("0x2")](t),e[Kx("0x6")].registerAttributeLabel(t,Jr(n,Kx("0x12")));for(const t of x)e[Kx("0x16")](t),e[Kx("0x6")][Kx("0x11")](t,Jr(n,"FORMAT_STYLE"));this[Kx("0x3")]()}[Kx("0x3")](){const t=this[Kx("0xe")],e=t.locale;t[Kx("0x17")].get("TrackChangesEditing")[Kx("0x6")][Kx("0x1c")]((t=>{if("formatBlock"!=t[Kx("0x1a")]&&Kx("0x9")!=t[Kx("0x1a")])return;const{data:n}=t;return n&&Kx("0xd")===n.commandName?n[Kx("0x1b")][0][Kx("0x8")]?{type:Kx("0xa"),content:Jr(e,"*Set format:* %0",n[Kx("0x1b")][0][Kx("0xf")][Kx("0x14")]())}:{type:Kx("0xa"),content:Jr(e,"*Remove format:* %0",n.commandParams[0][Kx("0xf")][Kx("0x14")]())}:void 0}))}}const Xx=["getAttribute","markMultiRangeDeletion","removeTableColumn","isArray","type","max","_setupColumnsRowsFixing","add","_getCoordsForCells","findAncestor","getRowIndexes","getItems","getSelectionAffectedTableCells","insertTableRowBelow","position","getChanges","rootName","_suggestionFactory","getCellLocation","insertTableColumnRight","TableUtils","values","_descriptionFactory","writer","tableCell","start","toViewElement","insert","deletion","includes","$textProxy","root","differ","classes","tablePaste","downcastDispatcher","getFirstRange","get","editor","_splitMarkerName","oldRange","execute","options","order","name","enableCommand","ELEMENT_TABLE","refresh","MAX_SAFE_INTEGER","addRange","isTouching","getSuggestion","push","commands","span","afterInit","fromRange","data","insertTable","last","min","addClass","_tablePostFixingSubtypes","$graveyard","map","rowspan","registerCustomCallback","createPositionAt","subType","detach","getColumnIndexes","_getSuggestionCoords","left","markMultiRangeInsertion","insertTableRowAbove","*Remove:* %0","ELEMENT_TABLE_WITH_TEXT","createRangeIn","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","isEqual","document","setSelection","from","filter","getRanges","insertion","substr","above","nodeAfter","low","join","hasAttribute","maxRow","getChangedMarkers","change:data","TableEditing","createTableWalker","MIN_SAFE_INTEGER","TrackChangesEditing","end","change","removeTableRow","highest","model","tableRow","isInContent","toLowerCase","registerDescriptionCallback","insertTableColumnLeft","has","mapper","removeClass","table","ELEMENT_TABLE_COLUMN_WITH_TEXT","_acceptFormatSuggestionCallbackFactory","cell","createRangeOn","_tableSuggestions","*Insert:* %0","length","element","ELEMENT_TABLE_COLUMN","tableColumn","selection","selectTableRow","some","colspan","discard","minRow"];var $x,Zx;$x=Xx,Zx=465,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x79")]=["tableRow","tableColumn"],this._tableSuggestions=new Set}[Yx("0x72")](){const t=this.editor,e=t[Yx("0x21")][Yx("0xa")][Yx("0x35")];if(!t[Yx("0x8")][Yx("0x27")](Yx("0x19")))return;const n=t.locale,r=t[Yx("0x8")][Yx("0x60")](Yx("0x1c")),i=t[Yx("0x8")][Yx("0x60")](Yx("0x4f"));r[Yx("0x51")].registerElementLabel(Yx("0x2a"),(t=>Jr(n,Yx("0x69"),t))),this[Yx("0x41")](),r[Yx("0x68")](Yx("0x75")),r[Yx("0x68")](Yx("0x36")),r[Yx("0x68")]("selectTableColumn");for(const n of[Yx("0x2"),Yx("0x48")]){const o=t[Yx("0x70")].get(n);r[Yx("0x68")](n,(n=>{t[Yx("0x21")][Yx("0x1e")]((t=>{n();const s=Yx("0x11")===o[Yx("0x66")],x=i[Yx("0x47")](e),a=i[Yx("0x45")](x),c=s?a[Yx("0x6")]-1:a[Yx("0x76")]+1,l=x[0][Yx("0x44")](Yx("0x2a")),u=i[Yx("0x1a")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Yx("0x2e")](e.cell)));r[Yx("0x1")](d,"tableRow")}))}))}for(const n of[Yx("0x26"),Yx("0x4e")]){const o=t.commands[Yx("0x60")](n);r[Yx("0x68")](n,(n=>{t.model[Yx("0x1e")]((t=>{n();const s=Yx("0x0")===o[Yx("0x66")],x=i.getSelectionAffectedTableCells(e),a=i[Yx("0x81")](x),c=s?a[Yx("0x6")]-1:a.last+1,l=x[0][Yx("0x44")](Yx("0x2a")),u=i[Yx("0x1a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Yx("0x7b")]((e=>t.createRangeOn(e[Yx("0x2d")])));r[Yx("0x1")](d,Yx("0x34"))}))}))}for(const n of[Yx("0x1f"),Yx("0x3d")]){const o=n[Yx("0x10")](11),s=o[Yx("0x24")](),x=s[Yx("0x10")](0,3)+Yx("0x71"),a=Yx("0x2a")+o,c="min"+o,l=Yx("0x40")+o;r.enableCommand(n,(()=>{t[Yx("0x21")].change((t=>{const o=i[Yx("0x47")](e),u=o[0][Yx("0x44")](Yx("0x2a"));let d;if("removeTableRow"==n){const t=i[Yx("0x45")](o);d={startRow:t[Yx("0x6")],endRow:t[Yx("0x76")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x6")],endColumn:t.last,includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array.from(g)[Yx("0x7b")]((({cell:t})=>t)),h=Qx(f[Yx("0xd")]((t=>t[Yx("0x15")](x)))),m=Qx(f[Yx("0xd")]((t=>!t.hasAttribute(x))))[Yx("0x7b")]((e=>t[Yx("0x2e")](e))),p=r[Yx("0x3c")](m,a);if(p&&(Yx("0x22")==p.subType||Yx("0x34")==p[Yx("0x7f")])){const e=this._getSuggestionCoords(p);for(const n of h){const r=t[Yx("0x2e")](n),o=i[Yx("0x4d")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x6c")](r)}}}))}))}function o(n){const r=Array[Yx("0xc")](e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t)));t[Yx("0x21")][Yx("0x1e")]((e=>{const i=e.batch;n=n[Yx("0xd")]((t=>Yx("0x7a")!=t[Yx("0x5a")][Yx("0x4b")])),e[Yx("0xb")](n),t.commands[Yx("0x60")](Yx("0x1f"))[Yx("0x6a")](),t.execute(Yx("0x1f"),{forceDefaultExecution:!0}),t[Yx("0x21")].enqueueChange((()=>{t[Yx("0x21")].enqueueChange(i,(t=>{const e=r[Yx("0xd")]((t=>Yx("0x7a")!=t.root.rootName));e[Yx("0x31")]>0&&t[Yx("0xb")](e);for(const t of r)t[Yx("0x80")]()}))}))}))}function a(n){t.model[Yx("0x1e")]((r=>{const i=Array[Yx("0xc")](e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o.push(e);for(const e of o)Yx("0x7a")!=e[Yx("0x5a")].rootName&&(r.setSelection(r[Yx("0x7e")](e,0)),t[Yx("0x70")][Yx("0x60")]("removeTableColumn")[Yx("0x6a")](),t[Yx("0x64")](Yx("0x3d"),{forceDefaultExecution:!0}));const x=i[Yx("0xd")]((t=>"$graveyard"!=t[Yx("0x5a")][Yx("0x4b")]));x[Yx("0x31")]>0&&r[Yx("0xb")](x);for(const t of i)t[Yx("0x80")]()}))}function c(t,e){return e.every((e=>t[Yx("0x37")]((t=>t.end[Yx("0x9")](e[Yx("0x54")])||e.end.isEqual(t[Yx("0x54")])))))}function l(t,e){return t[Yx("0x37")]((t=>e[Yx("0x37")]((e=>t[Yx("0x1d")][Yx("0x6d")](e[Yx("0x54")])))))}t[Yx("0x74")][Yx("0x5e")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Yx("0x65")].showSuggestionHighlights)return;const r=e.item;if(!r)return;const i=n[Yx("0x28")][Yx("0x55")](r);function o(t){return Array[Yx("0x3e")](t)?t:[t]}i&&"tableCell"===r[Yx("0x67")]&&(0,x.setHighlightHandling)(i,n[Yx("0x52")],((t,e,n)=>n[Yx("0x78")](o(e[Yx("0x5c")]),t)),((t,e,n)=>n[Yx("0x29")](o(e[Yx("0x5c")]),t)))}),{priority:Yx("0x20")}),r[Yx("0x51")].registerDescriptionCallback((t=>{if(Yx("0xf")!=t[Yx("0x3f")]&&Yx("0x57")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Yx("0x32"),Yx("0x2a"))){if("insertion"==t[Yx("0x3f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t[Yx("0x74")]));if(e[Yx("0x31")])return{type:Yx("0xf"),content:Jr(n,"*Insert:* %0",Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x14")](" ")+'"'))}}if("deletion"==t[Yx("0x3f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t.data));if(e.length)return{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x4"),'"'+e[Yx("0x14")](" ")+'"'))}}}})),r[Yx("0x51")][Yx("0x25")]((t=>{if("tableRow"==t[Yx("0x7f")]){const e=t.getItems()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t[Yx("0x74")])),r=this[Yx("0x82")](t),i=r[Yx("0x16")]-r[Yx("0x3a")]+1;if(Yx("0xf")==t[Yx("0x3f")])return e[Yx("0x31")]?{type:"insertion",content:Jr(n,Yx("0x30"),Jr(n,Yx("0x7"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_ROW",i))};if("deletion"==t.type)return e.length?{type:Yx("0x57"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x7"),[i,'"'+e[Yx("0x14")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0x3"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x34")==t[Yx("0x7f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t.data)),r=this._getSuggestionCoords(t),i=r.maxColumn-r.minColumn+1;if(Yx("0xf")==t[Yx("0x3f")])return e[Yx("0x31")]?{type:Yx("0xf"),content:Jr(n,Yx("0x30"),Jr(n,Yx("0x2b"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0xf"),content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_COLUMN",i))};if(Yx("0x57")==t.type)return e[Yx("0x31")]?{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x2b"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x33"),i))}}})),r[Yx("0x4c")].registerCustomCallback(Yx("0xf"),Yx("0x22"),Yx("0x39"),o),r[Yx("0x4c")][Yx("0x7d")](Yx("0x57"),Yx("0x22"),"accept",o),r[Yx("0x4c")][Yx("0x7d")](Yx("0xf"),"tableColumn","discard",a),r._suggestionFactory.registerCustomCallback(Yx("0x57"),Yx("0x34"),"accept",a),r[Yx("0x4c")][Yx("0x7d")](Yx("0xf"),"tableColumn",Yx("0x14"),c),r[Yx("0x4c")].registerCustomCallback("deletion",Yx("0x34"),"join",c),r._suggestionFactory.registerCustomCallback(Yx("0xf"),Yx("0x22"),Yx("0x14"),l),r[Yx("0x4c")].registerCustomCallback(Yx("0x57"),Yx("0x22"),Yx("0x14"),l)}[Yx("0x2c")](){const t=this[Yx("0x61")],e=t[Yx("0x21")][Yx("0xa")][Yx("0x35")];return(n,r)=>{t.model.change((i=>{const{commandName:o,commandParams:x}=r;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Yx("0x54")][Yx("0x12")]);const c=i[Yx("0x5")](a);if(Yx("0x7a")==c[Yx("0x5a")].rootName)return;const l=Array.from(e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t)));i[Yx("0xb")](c),t.commands[Yx("0x60")](o)[Yx("0x6a")](),x[Yx("0x6f")]({forceDefaultExecution:!0}),t[Yx("0x64")](o,...x);const u=l.filter((t=>Yx("0x7a")!=t[Yx("0x5a")][Yx("0x4b")]));u[Yx("0x31")]>0&&i[Yx("0xb")](u);for(const t of l)t[Yx("0x80")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x61")][Yx("0x8")].get(Yx("0x4f"));let n=Number[Yx("0x6b")],r=Number[Yx("0x1b")],i=Number[Yx("0x6b")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Yx("0x7a")==s[Yx("0x5a")][Yx("0x4b")])continue;const{row:t,column:x}=e[Yx("0x4d")](s),a=s[Yx("0x15")](Yx("0x7c"))?s[Yx("0x3b")](Yx("0x7c"))-1:0,c=s.hasAttribute(Yx("0x38"))?s[Yx("0x3b")](Yx("0x38"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Yx("0x8")][Yx("0x60")](Yx("0x1c")),n=t[Yx("0x8")][Yx("0x60")]("TableUtils");t[Yx("0x21")].document.on(Yx("0x18"),(()=>{const n=Array[Yx("0xc")](t[Yx("0x21")][Yx("0xa")][Yx("0x5b")][Yx("0x17")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x62")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x63")])continue;const s=e[Yx("0x6e")](i);this[Yx("0x79")][Yx("0x58")](o)&&this._tableSuggestions[Yx("0x42")](s)}}),{priority:Yx("0x13")});const r=(t,e)=>{let r=!1;const i=e[Yx("0x2e")](t),o=t.findAncestor(Yx("0x2a")),s=n[Yx("0x4d")](t);for(const e of this[Yx("0x2f")]){const n=e[Yx("0x7f")],x=n.startsWith(Yx("0x5d")),a=n[Yx("0x10")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Yx("0x71"),u=Yx("0x77")+a,d=Yx("0x40")+a;if(!e[Yx("0x23")])continue;if(o!=e[Yx("0x5f")]()[Yx("0x54")][Yx("0x44")](Yx("0x2a")))continue;if(e.isIntersectingWithRange(i))continue;const g=t.hasAttribute(l)?t[Yx("0x3b")](l)-1:0,f=this[Yx("0x82")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x6c")](i),r=!0)}return r};t[Yx("0x21")].document.registerPostFixer((e=>{let n=!1;for(const i of t[Yx("0x21")].document[Yx("0x5b")][Yx("0x4a")]())if(Yx("0x56")==i[Yx("0x3f")])if(Yx("0x22")==i[Yx("0x67")])for(const t of i.position[Yx("0x12")].getChildren())n=n||r(t,e);else Yx("0x53")==i[Yx("0x67")]&&(n=n||r(i[Yx("0x49")][Yx("0x12")],e));return n}))}_getSuggestionCoords(t){return this[Yx("0x43")](t[Yx("0xe")]()[Yx("0x7b")]((t=>t.start[Yx("0x12")])))}}function Qx(t){return Array[Yx("0xc")](new Set(t)[Yx("0x50")]())}const ta=["value","registerCustomCallback","insertion","getAncestors","has","deletion","findAncestor","_suggestionFactory","cell","markMultiRangeBlockFormat","commandName","formatBlock","TableEditing","return","getSuggestions","getCellLocation","registerDescriptionCallback","author","highest","selection","add","subType","map","mergeTableCellDown","format","_areSelectedCellsMergable","getRanges","TrackChangesEditing","root","horizontally","refresh","type","$graveyard","_descriptionFactory","_areMergableCells","tableCell","from","editor","detach","_acceptFormatSuggestionCallbackFactory","createRangeOn","size","*Split cell:* vertically","element","table","trackChanges","splitTableCellHorizontally","direction","mergeTableCellRight","stop","plugins","get","enableCommand","setSelection","getFirstPosition","isInContent","model","locale","mergeTableCellUp","formatInline","commands","set:isEnabled","afterInit","mergeTableCells","createTableWalker","change","splitTableCellVertically","mergeTableCellLeft","getSelectionAffectedTableCells","containsRange","TableUtils","*Split cell:* horizontally","find","forceDefaultExecution","document","execute","accept","length"];var ea,na;ea=ta,na=451,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get requires(){return[Jx]}[ra("0x1")](){const t=this.editor,e=t[ra("0x49")][ra("0xd")][ra("0x24")],n=t[ra("0x4a")];if(!t.plugins[ra("0x15")](ra("0x1d")))return;const r=t[ra("0x43")][ra("0x44")](ra("0x2c")),i=t[ra("0x43")][ra("0x44")](ra("0x9")),o=t[ra("0x43")][ra("0x44")](Jx);o._tablePostFixingSubtypes.push(ra("0x2")),r.enableCommand(ra("0x2"),(()=>{const e=i[ra("0x7")](t[ra("0x49")][ra("0xd")][ra("0x24")]);t[ra("0x49")].change((()=>{r[ra("0x1a")](e,{commandName:ra("0x2"),commandParams:[]},[],ra("0x2"))}))})),t.commands[ra("0x44")](ra("0x2")).on("execute",((e,n)=>{t[ra("0x4d")].get(ra("0x3e"))[ra("0x11")]&&(n[ra("0x10")]>0&&n[n[ra("0x10")]-1]&&n[n.length-1][ra("0xc")]||r._isForcedDefaultExecutionBlock||this[ra("0x2a")]()||e[ra("0x42")]())}),{priority:ra("0x23")});for(const e of["mergeTableCellUp",ra("0x41"),ra("0x28"),ra("0x6")]){const n=t.commands[ra("0x44")](e);r[ra("0x45")](e,(()=>{const e=t.model[ra("0xd")].selection[ra("0x47")]()[ra("0x14")]()[ra("0xb")]((t=>t.is("element",ra("0x34")))),i=n[ra("0x11")];t[ra("0x49")][ra("0x4")]((()=>{r[ra("0x1a")]([e,i],{commandName:ra("0x2"),commandParams:[]},[],ra("0x2"))}))}))}for(const e of[ra("0x5"),ra("0x3f")]){const n=t[ra("0x4d")][ra("0x44")](e);r[ra("0x45")](e,(()=>{const o=i[ra("0x7")](t.model[ra("0xd")].selection)[0],s=o[ra("0x17")](ra("0x3d")),{column:x,row:a}=i[ra("0x20")](o);let c=[];if(ra("0x2e")==n[ra("0x40")]){const t=i[ra("0x3")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x35")](t)[ra("0x27")]((t=>t[ra("0x19")]))}else{const t=i[ra("0x3")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x35")](t).map((t=>t[ra("0x19")]))}t[ra("0x49")][ra("0x4")]((t=>{r.markBlockFormat(t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}r._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x30")]&&ra("0x4c")!=t[ra("0x30")])return;const{data:e}=t;return e&&ra("0x2")==e[ra("0x1b")]?{type:"format",content:Jr(n,"*Merge cells*")}:void 0})),r[ra("0x32")][ra("0x21")]((t=>{if(ra("0x1c")!=t[ra("0x30")]&&ra("0x4c")!=t.type)return;const{data:e}=t;return e?"splitTableCellVertically"==e[ra("0x1b")]?{type:ra("0x29"),content:Jr(n,ra("0x3b"))}:"splitTableCellHorizontally"==e.commandName?{type:ra("0x29"),content:Jr(n,ra("0xa"))}:void 0:void 0}));const x=o[ra("0x38")]();for(const t of[ra("0x4b"),"mergeTableCellRight",ra("0x28"),ra("0x6")])r[ra("0x18")][ra("0x12")]("formatBlock",t,"accept",x);for(const t of[ra("0x5"),ra("0x3f")])r._suggestionFactory.registerCustomCallback(ra("0x1c"),t,ra("0xf"),x);r[ra("0x18")][ra("0x12")](ra("0x1c"),ra("0x2"),"accept",(n=>{t.model[ra("0x4")]((r=>{const i=Array[ra("0x35")](e[ra("0x2b")]())[ra("0x27")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x4d")][ra("0x44")]("mergeTableCells")[ra("0x2f")](),t[ra("0xe")](ra("0x2"),{forceDefaultExecution:!0});const o=i.filter((t=>ra("0x31")!=t[ra("0x2d")].rootName));o.length>0&&r[ra("0x46")](o);for(const t of i)t[ra("0x37")]()}))}));for(const e of[ra("0x4b"),ra("0x28"),"mergeTableCellLeft","mergeTableCellRight"]){const n=t[ra("0x4d")][ra("0x44")](e);n.on(ra("0x0"),((e,r,i)=>{if(i){const r=t[ra("0x49")][ra("0xd")][ra("0x24")][ra("0x47")]()[ra("0x14")]()[ra("0xb")]((t=>t.is(ra("0x3c"),"tableCell")));this[ra("0x33")](n[ra("0x11")],r)||(e[ra("0x1e")]=!1,e[ra("0x42")]())}}),{priority:"low"})}}[ra("0x2a")](){const t=this.editor[ra("0x4d")][ra("0x44")](ra("0x2")),e=this.editor[ra("0x43")][ra("0x44")](ra("0x9"));if(!t.isEnabled)return!1;const n=e[ra("0x7")](this[ra("0x36")][ra("0x49")][ra("0xd")][ra("0x24")]);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x33")](t,e))return!1;return!0}[ra("0x33")](t,e){const n=this[ra("0x36")][ra("0x43")][ra("0x44")](ra("0x2c")),r=this[ra("0x36")][ra("0x49")][ra("0x39")](t),i=this[ra("0x36")].model[ra("0x39")](e),o=new Set,s=new Set;for(const t of n[ra("0x1f")]())if((ra("0x13")==t.type||ra("0x16")==t[ra("0x30")]||"mergeTableCells"==t[ra("0x26")])&&t[ra("0x48")])for(const e of t[ra("0x2b")]())e[ra("0x8")](r,!0)&&o[ra("0x25")](t[ra("0x30")]+":"+t[ra("0x22")].id),e[ra("0x8")](i,!0)&&s[ra("0x25")](t[ra("0x30")]+":"+t.author.id);if(o[ra("0x3a")]!=s.size)return!1;for(const t of o)if(!s[ra("0x15")](t))return!1;return!0}}const oa=["end","_enableDefaultAttributesIntegration","locale","type","addMarker:suggestion","markerNameToElements","formatBlock","has","forceValue","registerCustomCallback","ck-suggestion-marker-","nodeBefore","item","markerName","requires","downcastDispatcher","name","headingColumns","commandParams","format","bindElementToMarker","registerDescriptionCallback","getSuggestion","addClass","data-suggestion","setTableRowHeader","ck-suggestion-marker--active","nodeAfter","plugins","_registerLegacyDescription","createTableWalker","removeClass","TableUtils","editor","cell","_splitMarkerName","_suggestionFactory","FORMAT_REGULAR_COLUMN","*Format:* %0","registerAttributeLabel","getCellLocation","FORMAT_HEADER_COLUMN","FORMAT_HEADER_ROW","accept","commandName","editing","activeMarkers","get","TableEditing","writer","showSuggestionHighlights","TrackChangesEditing","options","includes","mapper","_acceptFormatSuggestionCallbackFactory","headingRows","parent","_descriptionFactory","setTableColumnHeader","_handleLegacySuggestions","highest","data","removeMarker:suggestion","FORMAT_REGULAR_ROW","markerRange","unbindElementFromMarkerName"];var sa,xa;sa=oa,xa=106,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x2a")](){return[Jx]}afterInit(){const t=this[aa("0x3d")];if(!t[aa("0x38")][aa("0x23")](aa("0x9")))return;const e=t[aa("0x1e")],n=t[aa("0x38")].get(aa("0xc"));n[aa("0x1d")]("setTableRowHeader",[],[aa("0x11")]),n[aa("0x1d")]("setTableColumnHeader",[],[aa("0x2d")]),n._descriptionFactory[aa("0x0")]("headingRows",Jr(e,aa("0x3"))),n[aa("0x13")].registerAttributeLabel("headingColumns",Jr(e,aa("0x2"))),this[aa("0x15")]()}[aa("0x15")](){const t=this[aa("0x3d")][aa("0x38")].get("TrackChangesEditing"),e=this[aa("0x3d")][aa("0x38")].get(aa("0x3c")),n=this[aa("0x3d")][aa("0x38")].get(Jx)[aa("0x10")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x3f")](o[aa("0x29")]),c=t[aa("0x32")](a),l=c[aa("0x17")];if("formatBlock"!=c[aa("0x1f")]||!l||aa("0x14")!=l.commandName)return;if(o[aa("0x28")])return void i.stop();if(!s.consumable.consume(o[aa("0x1a")],i[aa("0x2c")]))return;const u=o[aa("0x1a")].start[aa("0x37")],d=o[aa("0x1a")][aa("0x1c")][aa("0x27")],g=u.parent[aa("0x12")],{column:f}=e[aa("0x1")](u),{column:h}=e[aa("0x1")](d);for(let i=f;i<=h;i++){const c=e[aa("0x3a")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x3e")],c=s[aa("0xf")].toViewElement(i);s[aa("0xa")].addClass(aa("0x26")+x,c),r&&s[aa("0xa")].setAttribute("data-suggestion",a,c),s[aa("0xf")][aa("0x30")](c,o.markerName),n&&(t[aa("0x7")][aa("0xe")](o[aa("0x29")])?s[aa("0xa")][aa("0x33")]("ck-suggestion-marker--active",c):s[aa("0xa")].removeClass("ck-suggestion-marker--active",c))}}}}t[aa("0x40")][aa("0x25")]("formatBlock","setTableRowHeader",aa("0x4"),n),t[aa("0x40")][aa("0x25")](aa("0x22"),aa("0x14"),aa("0x4"),n),this[aa("0x3d")][aa("0x6")][aa("0x2b")].on(aa("0x20"),r(),{priority:aa("0x16")}),this[aa("0x3d")][aa("0x17")][aa("0x2b")].on("addMarker:suggestion",((t,e,n)=>{n[aa("0xd")][aa("0xb")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x16")}),this[aa("0x3d")][aa("0x6")][aa("0x2b")].on(aa("0x18"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x29")]),s=t[aa("0x32")](o),x=s.data;if(aa("0x22")!=s.type||!x||"setTableColumnHeader"!=x.commandName)return;const a=r[aa("0xf")][aa("0x21")](n[aa("0x29")]);if(a)for(const t of a)r[aa("0xa")][aa("0x3b")](aa("0x26")+i,t),r[aa("0xa")][aa("0x3b")](aa("0x36"),t),r[aa("0xa")].removeAttribute(aa("0x34"),t),r[aa("0xf")][aa("0x1b")](t,n[aa("0x29")])}),{priority:aa("0x16")}),this[aa("0x39")]()}[aa("0x39")](){const t=this.editor,e=t[aa("0x1e")];function n(t){return{type:aa("0x2f"),content:Jr(e,aa("0x42"),t)}}t[aa("0x38")][aa("0x8")](aa("0xc"))[aa("0x13")][aa("0x31")]((t=>{if(aa("0x22")!=t[aa("0x1f")])return;const{data:r}=t;if(r){if(aa("0x35")==r.commandName){const t=r[aa("0x2e")][0].forceValue;return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x19")))}if("setTableColumnHeader"==r[aa("0x5")]){const t=r[aa("0x2e")][0][aa("0x24")];return n(Jr(e,t?"FORMAT_HEADER_COLUMN":aa("0x41")))}}}))}}const la=["register","getRanges","suggestion:formatBlock:tablePasteCell","removeRows","name","redo","getSuggestion","locale","Users","model","row","rowInsertionIndexes","suggestion","getColumnIndexes","createRangeOn","getContainedElement","TrackChangesEditing","set","tablePasteRow","discard","nodeAfter","getShiftedBy","isEqual","tableCellBorderColor","TableClipboard","newRange","formatBlock","fill","position","options","_suggestionFactory","requires","markerAttributes","plugins","includes","view","TableUtils","accept","tableCellHorizontalAlignment","for","dataDowncast","tableCellPadding","filter","_splitMarkerName","showSuggestionHighlights","getSelectionAffectedTableCells","getRowIndexes","markerToHighlight","tableCellBackgroundColor","conversion","differ","getTableIfOnlyTableInContent","isEmpty","getAllAdjacentSuggestions","content","keys","document","unwrap","some","attributes","insertContent","createPositionBefore","ck-suggestion-marker--active","clipboardOutput","tableCell","editor","low","change","batch","findAncestor","join","registerPostFixer","isInContent","getRange","tablePaste","getSuggestions","getColumns","getAttributes","trackChanges","documentSelection","add","deletion","selection","*Replace table cells*","move","markerName","markers","remove","getMarkers","start","getChangedMarkers","schema","first","markMultiRangeInsertion","subType","element","find","tableCellBorderStyle","removeMarker","rowInsertionRanges","columns","get","elementToElement","cells","removeMarkers","tablePasteChainId","_tablePostFixingSubtypes","paragraph","fromEntries","commands","stop","table","return","previous","ck-suggestion-marker-insertion","removeColumns","length","endRow","has","column","value","getChildren","forceDefaultExecution","getChild","_createdBatches","columnInsertionIndexes","afterInit","last","startsWith","createRange","activeMarkers","push","insertRows","containsRange","next","ck-suggestion-marker","insertion","author","high","tablePasteCell","endColumn","from","root","tableCellBorderWidth","tablePasteColumn","insertionRanges","map","wrap","getRows","editing","oldRange","registerCustomCallback","createRangeIn","suggestionUnloaded","columnInsertionRanges","cell","suggestion-td","listenTo","_isForcedDefaultExecutionBlock","tableCellSuggestion","type","_getCoordsForCells","createTableWalker","insert","createElement","setAttributes"];var ua,da;ua=la,da=272,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x25"),ga("0x53"),ga("0x9d"),ga("0x62"),"tableCellVerticalAlignment",ga("0x6c"),ga("0x65")],ha=Object.fromEntries(fa[ga("0x28")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x5b")](){return[Jx]}[ga("0x14")](){const t=this[ga("0x7d")];if(!t.plugins[ga("0xc")]("TableClipboard"))return;const n=t[ga("0x5d")][ga("0xa1")](ga("0x4c")),r=t.plugins.get(ga("0x60")),i=t[ga("0x5d")].get(Jx),o=t.plugins[ga("0xa1")]("TableClipboard");i[ga("0x0")][ga("0x19")]("tablePasteRow",ga("0x26")),t[ga("0x45")][ga("0x97")][ga("0x3c")](ga("0x35"),{allowIn:ga("0x7c"),allowContentOf:ga("0x7c"),isLimit:!0}),t[ga("0x6d")][ga("0xa2")]({model:ga("0x35"),view:ga("0x32")});let s=null;t[ga("0x45")].on(ga("0x78"),((i,x)=>{const[a,c]=x,l=x[x[ga("0xa")]-1];l&&l[ga("0x10")]||n[ga("0x34")]||this[ga("0x7d")][ga("0x3")][ga("0xa1")](ga("0x8a"))[ga("0xe")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x8b")))return!1;const o=i[ga("0x6f")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x69")](n.document[ga("0x8e")]);if(!s[ga("0xa")])return!1;const x=s[0].findAncestor("table"),a=r[ga("0x6a")](s),c=r[ga("0x49")](s),l={startRow:a[ga("0x98")],endRow:a[ga("0x15")],startColumn:c[ga("0x98")],endColumn:c[ga("0x15")]};return 1==s.length&&(l[ga("0xb")]+=r[ga("0x2a")](o)-1,l[ga("0x22")]+=r[ga("0x88")](o)-1),ba(x,l,r)}(a,c,t[ga("0x45")],r,o)&&(i[ga("0x4")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x45")][ga("0x7f")]((()=>{t[ga("0x45")][ga("0x78")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0xa")]&&n.markMultiRangeInsertion(i,ga("0x4e"),{tablePasteChainId:r}),o.length&&n[ga("0x99")](o,ga("0x26"),{tablePasteChainId:r}),a[ga("0xa")]&&n.markMultiRangeInsertion(a,ga("0x86"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0xa")]&&n.markMultiRangeDeletion(c,ga("0x86"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ga("0x28")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t.model[ga("0x4a")](r),s=e[ga("0x9c")]((t=>t.getRange()[ga("0x52")](o)));s&&n[ga("0x19")]([s[ga("0x40")],i])}n[ga("0xa")]&&u.setAttribute("markerAttributes",Object[ga("0x2")](n))}s=null})))}),{priority:e.priorities[ga("0x20")]+10}),t[ga("0x5d")][ga("0xa1")](ga("0x54")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x4")]();const o=n[ga("0x31")],x=r,a=pa(o),c=pa(x);t[ga("0x6")]=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o.getChild(0));for(const t of Array.from(x[ga("0xf")]()))i[ga("0x39")](t,o,"end");const t=s[ga("0x47")][ga("0x5e")](n[ga("0x46")]),e=s[ga("0x13")].includes(n[ga("0xd")]);t||e||(l=i[ga("0x2e")](o))}else c&&!a&&(u=i[ga("0x2e")](o));else{const t=i[ga("0x3a")](ga("0x35")),e=i.createElement(ga("0x35"));i[ga("0x29")](i[ga("0x2e")](o),e),i[ga("0x39")](t,o,0);for(const e of Array[ga("0x23")](x[ga("0xf")]()))i[ga("0x39")](e,t,"end");l=i[ga("0x4a")](t),u=i[ga("0x4a")](e)}const d=Array[ga("0x23")](x[ga("0x89")]())[ga("0x66")]((([t])=>fa[ga("0x5e")](t)));s.cells.push({element:o,attributes:d[ga("0xa")]?Object.fromEntries(d):null}),l&&s[ga("0x27")][ga("0x19")](l),u&&s.deletionRanges.push(u)}),{priority:ga("0x20")}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0xa0")]||1;s[ga("0x13")]=new Array(a)[ga("0x57")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x38")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x30")][ga("0x19")](t[ga("0x45")].createRangeOn(e))}),{priority:ga("0x7e")}),r.on(ga("0x1a"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x47")]=new Array(a).fill(x)[ga("0x28")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x38")](i,{startRow:x,endRow:x+a-1}))s[ga("0x9f")][ga("0x19")](t.model.createRangeOn(e))}),{priority:ga("0x7e")}),n._descriptionFactory.registerDescriptionCallback((e=>{if(e[ga("0x9a")]&&e.subType[ga("0x16")](ga("0x86")))return e[ga("0x7")]?{}:{type:ga("0x1e"),content:Jr(t[ga("0x43")],ga("0x8f"))}}));const x=()=>!1;for(const t of[ga("0x86"),ga("0x26"),"tablePasteRow","tablePasteCell"])n[ga("0x5a")][ga("0x2d")]("insertion",t,ga("0x82"),x),n._suggestionFactory[ga("0x2d")](ga("0x8d"),t,ga("0x82"),x),n._suggestionFactory[ga("0x2d")](ga("0x56"),t,ga("0x82"),x);n[ga("0x5a")][ga("0x2d")](ga("0x56"),"tablePasteCell",ga("0x4f"),x),n._suggestionFactory[ga("0x2d")](ga("0x56"),ga("0x21"),ga("0x61"),((e,n,r)=>{const i=e[ga("0x28")]((t=>t.getContainedElement()))[ga("0x66")]((t=>t)),o=new Map(i.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0xa3")])e&&o[ga("0x4d")](t,e);else if(r&&r[ga("0x5c")])for(const[e,n]of Object.entries(r[ga("0x5c")])){const r=t[ga("0x45")][ga("0x92")].get(e),i=r?r[ga("0x85")]()[ga("0x4b")]():null;i&&o.set(i,n)}t[ga("0x45")][ga("0x7f")]((t=>{for(const[e,n]of o)t[ga("0x3b")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x5a")][ga("0x2d")](e,"tablePaste",r,((i,o,s)=>{t.model[ga("0x7f")]((t=>{const x=[];for(const t of i){const e=t[ga("0x95")][ga("0x50")];e.is(ga("0x9b"),ga("0x35"))&&x[ga("0x19")](e)}n[ga("0x5a")].getSuggestionCallback(e,null,r)(i,o,s);for(const e of x)"$graveyard"!=e[ga("0x24")].rootName&&t[ga("0x75")](e)}))}))};a(ga("0x1e"),ga("0x61")),a(ga("0x1e"),"discard"),a(ga("0x8d"),ga("0x61")),a(ga("0x8d"),"discard"),n[ga("0x5a")][ga("0x2d")](ga("0x1e"),"tablePasteRow","discard",(t=>{const e=t[ga("0x28")]((t=>t[ga("0x4b")]())),n=e[0][ga("0x81")](ga("0x5")),{minRow:o,maxRow:s}=i[ga("0x37")](e);r[ga("0x3f")](n,{at:o,rows:s-o+1})})),n[ga("0x5a")][ga("0x2d")]("insertion",ga("0x26"),"discard",(t=>{const e=t[ga("0x28")]((t=>t[ga("0x4b")]())),n=e[0].findAncestor(ga("0x5")),{minColumn:o,maxColumn:s}=i[ga("0x37")](e);r[ga("0x9")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x9a")]||!e[ga("0x9a")][ga("0x16")](ga("0x86")))return;const r=e.attributes[ga("0xa5")],i=n[ga("0x87")]().filter((t=>t[ga("0x84")]&&t.attributes&&t.attributes[ga("0xa5")]==r));i[ga("0xa")]&&e[ga("0x71")]().length!=i[ga("0xa")]&&i.reduce(((t,e)=>(t[ga("0x1c")]=e,e[ga("0x7")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ga("0x91")]),i=[ga("0x1d"),ga("0x8")],o=n[ga("0x18")].includes(t[ga("0x91")]);return o&&i[ga("0x19")](ga("0x7a")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ga("0x2f"),c,{priority:ga("0x20")}),t[ga("0x45")].document[ga("0x83")]((()=>{let e=!1;const r=Array[ga("0x23")](t[ga("0x45")][ga("0x74")][ga("0x6e")][ga("0x96")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x67")](i);if(ga("0x48")!=r||ga("0x8d")!=s||o[ga("0x2c")])continue;if(!n.hasSuggestion(x))continue;const a=n[ga("0x42")](x)[ga("0x3d")](),c=t.plugins[ga("0xa1")]("Users").me;for(const t of n[ga("0x87")]())if(t[ga("0x84")]&&t[ga("0x1f")]==c&&ga("0x56")==t[ga("0x36")]&&ga("0x21")==t[ga("0x9a")]&&t[ga("0x3d")]().every((t=>a[ga("0x76")]((e=>e[ga("0x1b")](t,!0))))))for(const n of t[ga("0x71")]())n[ga("0x84")]&&(n[ga("0x4f")](),e=!0)}return e})),t[ga("0x45")].document.registerPostFixer((e=>{const r=t[ga("0x3")].get(ga("0x41"));if(!r||!r[ga("0x12")][ga("0xc")](e[ga("0x80")]))return!1;let i=!1;const o=t[ga("0x5d")].get(ga("0x44")).me,s=t[ga("0x45")].document[ga("0x6e")].getChanges(),x=Array.from(t.model[ga("0x74")].differ.getChangedMarkers())[ga("0x66")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x67")](t);return ga("0x48")==r&&ga("0x86")==i&&s==o.id&&!e[ga("0x2c")]}));for(const t of s){if(ga("0x39")!=t.type||"tableCellSuggestion"!=t[ga("0x40")]||1!=t.length)continue;const n=e[ga("0x17")](t[ga("0x58")],t.position[ga("0x51")](1));if(!x[ga("0x9c")]((({data:t})=>t[ga("0x55")][ga("0x52")](n))))for(const{name:t,data:r}of x)if(n[ga("0x1b")](r.newRange)){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ga("0x45")][ga("0x74")][ga("0x83")]((e=>{let r=!1;const i=t[ga("0x5d")][ga("0xa1")](ga("0x44")).me,o=n[ga("0x87")]()[ga("0x66")]((t=>t[ga("0x84")]&&t[ga("0x1f")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x9a")])for(const e of t[ga("0x94")]()){const n=e.getRange()[ga("0x4b")]();if(n)if(n.is(ga("0x9b"),"tableCellSuggestion")&&pa(n)){t[ga("0x9e")](e[ga("0x40")]),s[ga("0x8c")](n),r=!0;const i=n.nextSibling,o=n.previousSibling,a=i&&i.is(ga("0x9b"),"tableCellSuggestion"),c=o&&o.is(ga("0x9b"),ga("0x35"));a&&!s.has(i)&&x.add(i),c&&!s.has(o)&&x[ga("0x8c")](o)}else n.is("element","paragraph")&&n[ga("0x70")]&&(t[ga("0x9e")](e[ga("0x40")]),r=!0)}else if("tablePasteCell"==t[ga("0x9a")]){if(!t.attributes||!t[ga("0x77")][ga("0xa5")])continue;const e=t[ga("0x77")].markerAttributes;if(e&&Object[ga("0x73")](e)[ga("0xa")])continue;const n=t[ga("0x77")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x9a")]&&e[ga("0x9a")][ga("0x16")](ga("0x86"))){if(!e[ga("0x77")][ga("0xa5")]){s=!1;break}if(e.id!=t.id&&e[ga("0x77")][ga("0xa5")]==n){i=!1;break}}s&&i&&(t[ga("0xa4")](),r=!0)}for(const t of s)e.remove(t);for(const t of x)e[ga("0x75")](t);return r})),t[ga("0x6d")].for("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[ga("0x63")](ga("0x64"))[ga("0x6b")]({model:ga("0x3e"),view:(t,e)=>e[ga("0x59")][ga("0x68")]?l(t,!1):null,converterPriority:ga("0x20")});const u=t[ga("0x2b")][ga("0x5f")];this[ga("0x33")](u[ga("0x74")],ga("0x7b"),((t,e)=>{const n=[];for(const t of u[ga("0x2e")](e[ga("0x72")]).getItems())t.is(ga("0x9b"),ga("0x32"))&&n[ga("0x19")](t);u[ga("0x7f")]((t=>{for(const e of n)t[ga("0x90")](t[ga("0x2e")](e),t[ga("0x79")](e)),t[ga("0x93")](e)}))}))}}function pa(t){if(t[ga("0x70")])return!0;const e=t[ga("0x11")](0);return e.is(ga("0x9b"),ga("0x1"))&&e[ga("0x70")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[ga("0x38")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["model","get","afterInit","subType","accept","type","has","document","*Format:* resize table","resizeTable","_suggestionFactory","formatInline","formatGroupId","plugins","handleSuggestionDescription","author","tableWidth","bind","locale","TableColumnResizeEditing","table","Users","getSelectedElement","formatBlock","discard","columnWidths","change","getSuggestions","commandParams","resizeTableWidth","editor","_descriptionFactory","getColumnGroupElement","markBlockFormat","format","handleResizeTableWidthCommand","registerCustomCallback","getAttribute","registerDescriptionCallback"];var _a,Ta;_a=Ea,Ta=372,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x14")](){if(!this[ya("0x9")].plugins[ya("0x18")](ya("0x25")))return;const t=this.editor.plugins[ya("0x13")]("TrackChangesEditing");t.enableCommand(ya("0x8"),this[ya("0xe")][ya("0x23")](this)),t[ya("0x1c")][ya("0xf")](ya("0x2"),ya("0x1b"),"accept",t._suggestionFactory.getSuggestionCallback("formatBlock",null,ya("0x3"))),t[ya("0x1c")][ya("0xf")](ya("0x2"),ya("0x1b"),ya("0x3"),t[ya("0x1c")].getSuggestionCallback(ya("0x2"),null,ya("0x16"))),t[ya("0xa")][ya("0x11")](this[ya("0x20")][ya("0x23")](this))}[ya("0xe")](t,e){const n=this.editor[ya("0x1f")].get("TrackChangesEditing"),r=this[ya("0x9")][ya("0x1f")][ya("0x13")](ya("0x25")),i=e[ya("0x26")]||this[ya("0x9")][ya("0x12")][ya("0x19")].selection[ya("0x1")]();this[ya("0x9")][ya("0x12")][ya("0x5")]((()=>{const o=r[ya("0xb")](i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0x10")](ya("0x22"))||null;const a=e.tableWidth||x,c=e[ya("0x4")]||s,l=this[ya("0x9")][ya("0x1f")][ya("0x13")](ya("0x0")).me;for(const t of n[ya("0x6")]()){const e=t.getContainedElement();if("resizeTable"===t[ya("0x15")]&&e===i){t[ya("0x21")]!==l&&t[ya("0x3")]();const e=t.data[ya("0x7")];x=e[0][ya("0x22")],s=e[0][ya("0x4")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0xc")](i,{commandName:ya("0x8"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[ya("0x20")](t){if(ya("0x2")!=t[ya("0x17")]&&ya("0x1d")!=t.type)return;const{data:e}=t;if(e&&ya("0x1b")===e[ya("0x1e")]){const t=ya("0x1a");return{type:ya("0xd"),content:Jr(this[ya("0x9")][ya("0x24")],t)}}}}const Aa=["plugins","editor","has","Template","enableCommand","get","TrackChangesEditing"];var ka,Sa;ka=Aa,Sa=114,function(t){for(;--t;)ka.push(ka.shift())}(++Sa);const Ra=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Ra("0x6")];t[Ra("0x5")][Ra("0x0")](Ra("0x1"))&&t[Ra("0x5")][Ra("0x3")](Ra("0x4"))[Ra("0x2")]("insertTemplate")}}const va=["_descriptionFactory","get","editor","tableOfContents","insertTableOfContents","plugins","TrackChangesEditing","enableCommand","ELEMENT_TABLE_OF_CONTENTS"];var Na,La;Na=va,La=241,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{afterInit(){const t=this[Ma("0x4")];if(!t.commands.get(Ma("0x6")))return;t[Ma("0x7")].get("TrackChangesEditing")[Ma("0x0")]("insertTableOfContents");const e=t[Ma("0x7")][Ma("0x3")](Ma("0x8")),n=t.locale;e[Ma("0x2")].registerElementLabel(Ma("0x5"),(t=>Jr(n,Ma("0x1"),t)))}}const Oa=["ELEMENT_TITLE","isCollapsed","registerElementLabel","createRange","newRange","isTouching","registerPostFixer","plugins","end","start","document","has","_splitMarkerName","locale","model","differ","from","Title","get","element","getChangedMarkers","updateMarker","schema","TrackChangesEditing","suggestion","title-content","forward","nodeBefore"];var Fa,Da;Fa=Oa,Da=439,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ba("0x10")][Ba("0x14")](Ba("0x1a")))return;const e=t[Ba("0x10")][Ba("0x1b")](Ba("0x4"));e._descriptionFactory[Ba("0xb")](Ba("0x6"),(()=>Jr(t[Ba("0x16")],Ba("0x9")))),t[Ba("0x17")].document[Ba("0xf")]((n=>{let r=!1;const i=Array[Ba("0x19")](t[Ba("0x17")][Ba("0x13")][Ba("0x18")][Ba("0x1")]());for(const{name:o,data:s}of i){const{group:i}=e[Ba("0x15")](o);if(Ba("0x5")!==i||!s[Ba("0xd")])continue;const x=s[Ba("0xd")],a=x[Ba("0x11")][Ba("0x8")];if(!a||!a.is(Ba("0x0"),Ba("0x6")))continue;if(!x[Ba("0x12")][Ba("0xe")](x.end))continue;const c=t[Ba("0x17")][Ba("0x3")].getNearestSelectionRange(x[Ba("0x11")],Ba("0x7"));if(c&&c[Ba("0xa")]){const t=n[Ba("0xc")](x[Ba("0x12")],c[Ba("0x12")]);t.isEqual(x)||(n[Ba("0x2")](o,{range:t}),r=!0)}r||(n.removeMarker(o),r=!0)}return r}))}}const Ua=["afterInit","redo","undo","enableCommand","plugins","UndoEditing","get"];var ja,Ga;ja=Ua,Ga=291,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this.editor,e=t.plugins[Va("0x2")]("TrackChangesEditing");t[Va("0x0")].has(Va("0x1"))&&(e[Va("0x6")](Va("0x5")),e[Va("0x6")](Va("0x4")))}}const za=["TrackChangesEditing","plugins","afterInit","requires","has","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=202,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x5")](){return[Jx]}[qa("0x4")](){const t=this.editor;t[qa("0x3")][qa("0x0")]("TableCaptionEditing")&&t[qa("0x3")].get(qa("0x2")).enableCommand(qa("0x1"))}}const $a=["TablePropertiesEditing","getSuggestions","tableAlignment","document","tableBorderColor","format","getSuggestionCallback","get","setAttribute","getContainedElement","TableCellPropertiesEditing","enableCommand","handleSuggestionDescription","nodeAfter","commandParams","tableCellProperties","tableBackgroundColor","TrackChangesEditing","has","_suggestionFactory","tableCellHorizontalAlignment","start","registerDescriptionCallback","change","data","_getSuggestion","accept","handleDiscardAction","discard","tableCellWidth","tableProperties","join","tableBorderWidth","selection","tableCellBorderColor","editor","getAttribute","_descriptionFactory","locale","registerCustomCallback","_handlePropertyChange","tableCellVerticalAlignment","TrackChangesTableProperties","model","subType","table","plugins","enqueueChange","tableBorderStyle","findAncestor","tableCellHeight","formatBlock","getSelectionAffectedTableCells","markBlockFormat","tableCellBorderStyle","tableCellBackgroundColor"];var Za,Ya;Za=$a,Ya=276,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ja("0x8"),Ja("0x34"),Ja("0x24"),Ja("0x6"),"tableWidth","tableHeight",Ja("0x14")],this[Ja("0x13")]=[Ja("0x26"),Ja("0x2"),"tableCellBorderWidth","tableCellPadding",Ja("0x21"),Ja("0x36"),Ja("0x3"),Ja("0x18"),Ja("0x2d")]}static get pluginName(){return Ja("0x2e")}afterInit(){const t=this[Ja("0x27")][Ja("0x32")].get(Ja("0x15"));if(this[Ja("0x27")][Ja("0x32")][Ja("0x16")](Ja("0x4"))){for(const e of this[Ja("0x22")])t[Ja("0xf")](e,((t,n)=>{const r=this.editor[Ja("0x2f")][Ja("0x7")][Ja("0x25")].getFirstPosition()[Ja("0x35")](Ja("0x31"));this[Ja("0x2c")](e,[r],this[Ja("0x22")],"tableProperties",t,n)}));t[Ja("0x17")][Ja("0x2b")]("formatBlock",Ja("0x22"),Ja("0x1e"),t[Ja("0x17")][Ja("0xa")](Ja("0x37"),null,Ja("0x20"))),t[Ja("0x17")].registerCustomCallback(Ja("0x37"),Ja("0x22"),"discard",((t,e)=>this[Ja("0x1f")](this[Ja("0x22")],t,e))),t._suggestionFactory.registerCustomCallback("formatBlock",Ja("0x22"),Ja("0x23"),(()=>!1))}if(this[Ja("0x27")][Ja("0x32")][Ja("0x16")](Ja("0xe"))){for(const e of this[Ja("0x13")])t[Ja("0xf")](e,((t,n)=>{const r=this[Ja("0x27")].plugins[Ja("0xb")]("TableUtils")[Ja("0x0")](this[Ja("0x27")].model[Ja("0x7")][Ja("0x25")]);this[Ja("0x2c")](e,r,this[Ja("0x13")],Ja("0x13"),t,n)}));t[Ja("0x17")][Ja("0x2b")](Ja("0x37"),Ja("0x13"),Ja("0x1e"),t[Ja("0x17")][Ja("0xa")](Ja("0x37"),null,Ja("0x20"))),t[Ja("0x17")][Ja("0x2b")]("formatBlock",Ja("0x13"),Ja("0x20"),((t,e)=>this.handleDiscardAction(this[Ja("0x13")],t,e))),t[Ja("0x17")][Ja("0x2b")](Ja("0x37"),Ja("0x13"),Ja("0x23"),(()=>!1))}t[Ja("0x29")][Ja("0x1a")]((t=>this[Ja("0x10")](t)))}[Ja("0x2c")](t,e,n,r,i,o){const s=this.editor[Ja("0x32")].get(Ja("0x15"));this.editor[Ja("0x2f")][Ja("0x33")](o.batch,(()=>{for(const t of e)if(this[Ja("0x1d")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ja("0x28")](r);void 0!==n&&(e[r]=n)}i(o),s[Ja("0x1")](t,{commandParams:[e]},[],r)}}))}[Ja("0x1f")](t,e,n){const r=e[0][Ja("0x19")][Ja("0x11")],i=n[Ja("0x12")][0];this[Ja("0x27")][Ja("0x2f")][Ja("0x1b")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0xc")](n,i[n],r):e.removeAttribute(n,r)}))}handleSuggestionDescription(t){if(t[Ja("0x1c")])switch(t[Ja("0x30")]){case Ja("0x22"):return{type:"format",content:Jr(this[Ja("0x27")][Ja("0x2a")],"*Format:* change table properties")};case Ja("0x13"):return{type:Ja("0x9"),content:Jr(this[Ja("0x27")][Ja("0x2a")],"*Format:* change table cell properties")}}}[Ja("0x1d")](t,e){const n=this[Ja("0x27")].plugins[Ja("0xb")](Ja("0x15"));for(const r of n[Ja("0x5")]({skipNotAttached:!0})){const n=r[Ja("0xd")]();if(r[Ja("0x30")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["groupId","markerReady","showSuggestionHighlights","_isDataLoaded","skipNestingCheck","_model","suggestionLoaded","getSuggestion","comments","suggestionChanged","ck-suggestion-marker--active","getCommentThread","splitPosition","formatInline","acceptSelectedSuggestions","substr","assign","trackChanges","containsRangeInObject","getDifference","meta","removeClass","remove","commentThread","markInlineFormat","multipleBlocks","getWalker","markerNameToElements","includes","data","attribute:join","formatInline:","suggestion-type","deletion:accept","_recordAttributeChanges","nodeBefore","collaboration.channelId","_suggestions","every","position","_splitMarkerName","originalSuggestionId","plugins","formatBlock:","trackChanges.mergeNestedSuggestions","_setSuggestionData","_processAttributeSuggestions","toJSON","removed","range","_mergeNestedSuggestions","getFirstRange","highest","adapter","some","suggestionUnloaded","rejected","root","containsItem","key","batch","formatInline:accept","next","acceptAllSuggestions","markMultiRangeDeletion","formatGroupId","discardAllSuggestions","toViewElement","removeMarker:suggestion:formatBlock","removeAttribute","isBlock","_cutOutSuggestionMarker","backward","change","locale","format","createRange","commandName","_addSuggestionMarker","attributeKey","init","concat","stop","start","setSelection","_isForcedDefaultExecutionBlock","dataDowncast","deletion:","values","push","trackChanges.trackFormatChanges","authoredAt","consume","_getMarkerAnnouncementText","getNearestSelectionRange","oldRange","createRangeIn","addCommentThread","_adapter","createPositionBefore","markerToData","$marker","after","attribute:discard","open","type","addSuggestionData","containerElement","_editor","elementEnd","deleteContent","activeMarkers","notReady","addMarker:suggestion","_reduceExistingSuggestions","addMarker:suggestion:formatBlock","fire","isBefore","multi","addClass","head","registerPostFixer","deletion:discard","splice","formatBlock:discard","$graveyard","config","accept","model","bindElementToMarker","split","isSelectable","addSuggestion","isMultiRange","_isBlockAttribute","containsRange","createdAt","delete","getAncestors","track-changes-adapter-missing-getsuggestion","getLastMatchingPosition","suggestion:attribute:","dataReady","_getSuggestionData","isArray","_joinSuggestions","_createSuggestion","insertion:join","has","consumable","_getAttributeKey","markBlockFormat","marker-count","requires","addComment","_joinWithAdjacentSuggestions","_registerInlineAttribute","length","insertion:","setTo","markInsertion","_processAttributeChanges","detach","isNextTo","removeMarker:suggestion:attribute","addHighlight","_getExternalAuthor","unbindElementFromMarkerName","upcast","_enabledCommands","_suggestionFactory","stopListening","getMultiRangeId","markerToHighlight","forward","_getAuthorFromId","_commentsRepository","newValue","createSelection","listenTo","forceDefaultExecution","mapper","_isRegisteredAttribute","_rangeIsInLocalUserInsertion","_setSuggestionRange","_registerDefaultCallbacks","isAtEnd","_refreshSuggestionsChain","lowest","attributeOldValue","insertContent","_afterChanges","parent","_saved","insertion:chain","isAfter","rootName","insertion:discard","_initAriaMarkerChangeAnnouncements","removeMarkers","deletion","_inlineAttributeKeys","_registerBlockAttribute","author","keys","setAttribute","ready","formatBlock:join","change:data","high","return","always","resolve","removeMarker","attribute:accept","join","insert","ck-suggestion-marker","find","getChanges","_reduceSuggestionAttributeRange","track-changes-user-not-found","_enableDefaultAttributesIntegration","TrackChangesEditing","CommentsRepository","isUndo","map","isEqual","addMarkerName","selection","insertion","_refreshAttributeSuggestionsChain","trackChangesCommand","group","isAtStart","chain","oldValue","PendingActions","isIntersecting","low","_handleNewSuggestionMarker","editingDowncast","_blockAttributeKeys","attributeNewValue","getCustomProperty","acceptSuggestion","removeComment","add","attributes","reconvertMarker","document","addRange","getAllAdjacentSuggestions","addMarker","schema","howMany","discardSelectedSuggestions","_recordAttributeSuggestions","conversion","update:suggestion","unbind","pluginName","name","formatBlock","track-changes-enable-command-twice","isInsideObject","_defaultCallbacks","filter","formatInline:discard","previous","isCollapsed","documentSelection","before","track-changes-command-not-found","options","track-changes-suggestion-data-mismatch","LEAVE","getChangedMarkers","insertion:accept","elementStart","attribute","getUser","never","startsWith","_removeSuggestion","createElement","addUser","getAttribute","@external","isObject","end","announce","enqueueChange","for","track-changes-suggestion-not-found","clear","updateSuggestion","isInContent","_customCallbacks","nodeAfter","formatBlock:chain","getSuggestions","createPositionAt","_suggestionState","buildSuggestion","suggestion","hasComments","ck-suggestion-marker-formatBlock","createPositionAfter","item","ENTER","fromRange","editor","authorName","isDocumentOperation","markAttributeChange","_descriptionFactory","get","_checkSuggestionCorrectness","getRanges","deletion:chain","error-saving-suggestion-data-suggestion-discarded","accepted","creator","_onDiscard","Users","getIntersection","hasSuggestion","getSuggestionCallback","subType","_breakSuggestionMarker","writer","toUpperCase","normal","discard","suggestion:","markMultiRangeInsertion","PENDING_ACTION_SUGGESTION","$text","markerName","value","attribute:","_element","isOwn","formatBlock:accept","tablePasteChainId","isRemovable","differ","commands","containsPosition","element","default","_trackFormatChanges","markDeletion","FORMATTING","define","warn","_updateSuggestionData","isLimit","discardSuggestion","forEach","updateMarker","widget","_findSuggestions","getItems","isLocal","from","then","unshift","move","getShiftedBy","markers","registerCustomCallback","newRange","enableReadOnlyMode","isIntersectingWithRange","$elementName","ariaLiveAnnouncer","set","getFirstMarker","enableCommand"];var _c,Tc;_c=Ec,Tc=321,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x37");class Ac extends t.Plugin{static get[yc("0xd5")](){return[yc("0x11c"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Sx,Lx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Ia,Pa,Ha]}static get[yc("0x141")](){return yc("0x11b")}constructor(t){function e(t){return t[yc("0x11e")]((t=>String.fromCharCode(t)))[yc("0x113")]("")}super(t),this[yc("0x13d")]=!1,this[yc("0x39")](yc("0xab"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this[yc("0x41")].change((()=>{for(const e of[...i,...r])this[yc("0x41")][yc("0x32")][yc("0xd0")](e)&&t.editing[yc("0x135")](e)}))})),this[yc("0x178")]=new ri(this[yc("0x174")].model.schema,this[yc("0x174")][yc("0x86")]),this[yc("0x9e")]=null,this[yc("0xe6")]=new kc(this[yc("0x174")]),this[yc("0x61")]=new Map,this[yc("0xec")]=t[yc("0x66")].get(yc("0x11c")),this[yc("0xe5")]=new Set,this[yc("0x41")]=this[yc("0x174")][yc("0xbc")],this[yc("0x16b")]=new WeakMap,this[yc("0x91")]=!1,this[yc("0x12e")]=new Set([yc("0x37")]),this[yc("0x105")]=new Set,t.config[yc("0x22")](yc("0x96"),"default"),this[yc("0x1f")]=t[yc("0xba")].get(yc("0x96")),t.config.define(yc("0x68"),!0),this[yc("0x6e")]=t[yc("0xba")][yc("0x179")](yc("0x68")),this[yc("0x124")]=new d(t,this[yc("0xe5")]),this[yc("0x102")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,52,54])}[yc("0x8c")](){const t=this[yc("0x174")],n=(t,e)=>{if(yc("0x154")!=t)return"ck-suggestion-marker-"+t;const n=e.split("|")[0];return this[yc("0xc2")](n)?yc("0x16f"):"ck-suggestion-marker-formatInline"};t[yc("0x13e")][yc("0x161")](yc("0x12d")).markerToHighlight({model:yc("0x16d"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0x64")](t[yc("0x12")]),o=[yc("0x115"),n(r,i)];let s=3e3;return this[yc("0xab")].includes(t[yc("0x12")])&&(o[yc("0x95")](yc("0x46")),s=3010),yc("0x104")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x13e")][yc("0x161")](yc("0x92"))[yc("0x133")]((e=>{e.on(yc("0xad"),((e,n,r)=>{if(!r[yc("0x14e")].showSuggestionHighlights)return;const i=n[yc("0x171")];if(!i)return;const o=r[yc("0xf1")][yc("0x7f")](i);t[yc("0xbc")][yc("0x13a")].isObject(i)&&o&&!o.getCustomProperty(yc("0x29"))&&o.is(yc("0xa7"))&&(0,x.toWidget)(o,r[yc("0xa")])}),{priority:yc("0x10d")})})),t[yc("0x13e")][yc("0x161")]("dataDowncast")[yc("0xe9")]({model:"suggestion",view:(t,e)=>{if(!e[yc("0x14e")].showSuggestionHighlights)return null;const{type:r,subType:i}=this[yc("0x64")](t[yc("0x12")]);return{classes:[yc("0x115"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i.item)return;const{id:s}=this._splitMarkerName(i[yc("0x12")]);if(n){const t=this._suggestions.get(s),e=this._getAttributeKey(t);if(!this[yc("0xc2")](e))return}if(i.item.is(yc("0x121")))return void o[yc("0xd1")][yc("0x98")](i[yc("0x171")],r[yc("0x142")]);const x=o[yc("0xf1")][yc("0x7f")](i.item);if(i[yc("0x171")].is(yc("0x1d"))&&t[yc("0xbc")][yc("0x13a")].isBlock(i[yc("0x171")])&&!x.getCustomProperty("addHighlight")){o.writer[yc("0xb3")]([yc("0x115"),yc("0x16f")],x),o[yc("0xa")][yc("0x109")]("data-suggestion",s,x),o[yc("0xf1")][yc("0xbd")](x,i.markerName),e&&(this[yc("0xab")][yc("0x58")](i[yc("0x12")])?o[yc("0xa")][yc("0xb3")](yc("0x46"),x):o[yc("0xa")][yc("0x51")](yc("0x46"),x));for(const e of t[yc("0xbc")][yc("0x9c")](i[yc("0x171")])[yc("0x2b")]())o[yc("0xd1")][yc("0x98")](e,r[yc("0x142")]);o.consumable[yc("0x98")](i[yc("0x171")],r[yc("0x142")])}};t.conversion.for(yc("0x92"))[yc("0x133")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[yc("0x14e")].showSuggestionHighlights&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0x70")})})),t[yc("0x13e")][yc("0x161")]("dataDowncast")[yc("0x133")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[yc("0x14e")][yc("0x3e")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x70")})})),t.conversion[yc("0x161")](yc("0x92"))[yc("0xa0")]({model:yc("0x16d"),view:(t,e)=>e[yc("0x14e")].showSuggestionHighlights?null:{group:"suggestion",name:t[yc("0x4b")](11)}}),t.conversion[yc("0x161")](yc("0xe4")).elementToElement({view:{name:yc("0x16d"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0xe")+t[yc("0x15b")](yc("0x5c"))+":"+t[yc("0x15b")]("id");return t[yc("0x15b")](yc("0xd4"))&&(n+=":"+t.getAttribute("marker-count")),e[yc("0x159")](yc("0xa1"),{"data-name":n})}}),t[yc("0x13e")][yc("0x161")](yc("0xe4")).dataToMarker({view:yc("0x16d")}),t[yc("0x13e")].for(yc("0x12d"))[yc("0x133")]((t=>{t.on(yc("0xaf"),r(),{priority:yc("0x10d")})})),t[yc("0x13e")][yc("0x161")]("editingDowncast")[yc("0x133")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:yc("0x10d")})})),t[yc("0x13e")][yc("0x161")]("editingDowncast")[yc("0x133")]((t=>{t.on(yc("0x80"),((t,e,n)=>{const r=n[yc("0xf1")][yc("0x57")](e[yc("0x12")]);if(r)for(const t of r)t[yc("0x130")](yc("0xe1"))||(n.writer[yc("0x51")](["ck-suggestion-marker",yc("0x16f"),yc("0x46")],t),n[yc("0xa")][yc("0x81")]("data-suggestion",t),n.mapper[yc("0xe3")](t,e[yc("0x12")]))}),{priority:yc("0x10d")})})),t[yc("0x13e")][yc("0x161")](yc("0x12d"))[yc("0x133")]((t=>{t.on(yc("0xe0"),((t,e,n)=>{const r=n[yc("0xf1")][yc("0x57")](e[yc("0x12")]);if(!r)return;const{id:i}=this._splitMarkerName(e.markerName),o=this[yc("0x61")][yc("0x179")](i),s=this[yc("0xd2")](o);if(this[yc("0xc2")](s))for(const t of r)t[yc("0x130")](yc("0xe1"))||(n[yc("0xa")][yc("0x51")]([yc("0x115"),"ck-suggestion-marker-formatBlock",yc("0x46")],t),n[yc("0xa")][yc("0x81")]("data-suggestion",t),n[yc("0xf1")].unbindElementFromMarkerName(t,e[yc("0x12")]))}),{priority:"high"})})),t[yc("0xbc")][yc("0x136")][yc("0xb5")]((e=>{let n=!1;const r=Array[yc("0x2d")](t[yc("0xbc")].document.differ[yc("0x151")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x64")](x);if(yc("0x16d")!==r)continue;const d=this[yc("0x61")][yc("0x179")](u);if(null!=a[yc("0x34")]){"formatInline"==c&&(n=n||Ic(a[yc("0x34")],x,e,t.model[yc("0x13a")]));const r=yc("0x154")==c&&this._isBlockAttribute(l[yc("0xbe")]("|")[0]);if(a.newRange.isCollapsed||yc("0xb9")==a[yc("0x34")].root[yc("0x100")]||yc("0x143")==c&&!Nc(a[yc("0x34")])||r&&!Nc(a[yc("0x34")])||yc("0x104")==c&&(Rc(s=a[yc("0x34")])||(o=s).start[yc("0xfc")]==o.end[yc("0x5f")]&&o.start.isAtEnd))e[yc("0x111")](x),n=!0;else{if(!d||!d[yc("0x165")])continue;i.add(d)}}}var o,s;return i.size>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[yc("0xbc")].document[yc("0xb5")]((e=>{let n=!1;for(const r of t[yc("0xbc")][yc("0x136")][yc("0x1a")].getChanges())if("insert"==r[yc("0xa5")])for(const r of this[yc("0x61")][yc("0x94")]()){if(r[yc("0xc1")]||!r[yc("0x165")])continue;const i=yc("0x143")==r[yc("0xa5")],o=this._getAttributeKey(r),s=o&&this[yc("0xc2")](o);if(!i&&!s)continue;const x=r.getFirstRange();if(x[yc("0x8f")][yc("0xfc")]!=x[yc("0x15e")][yc("0xfc")]&&!x.end[yc("0xf6")]){const i=t[yc("0xbc")].createPositionAt(x[yc("0x8f")][yc("0x167")],yc("0x15e")),o=t[yc("0xbc")][yc("0x88")](x[yc("0x8f")],i);e[yc("0x28")](r[yc("0x3a")](),{range:o}),n=!0}}return n})),t.model[yc("0x136")][yc("0xb5")]((t=>this[yc("0xdd")](t))),t[yc("0xbc")].document[yc("0xb5")]((t=>!t[yc("0x78")][yc("0x2c")]&&this[yc("0x6a")](t))),t[yc("0xbc")].on(yc("0xfb"),(()=>{this[yc("0x13d")]=!1})),t[yc("0xbc")][yc("0x136")].on("change:data",((n,r)=>{if(!r[yc("0x2c")]||r[yc("0x11d")])return;if(!this[yc("0x13d")])return;const i=t[yc("0xbc")][yc("0x136")][yc("0x1a")][yc("0x117")]();if(0==i[yc("0xd9")])return;const o=[],s=i.filter((t=>yc("0x154")==t[yc("0xa5")])),x=i[yc("0x147")]((t=>"insert"==t[yc("0xa5")]&&yc("0x11")!=t[yc("0x142")])),a=i[yc("0x147")]((t=>yc("0x52")==t[yc("0xa5")]&&yc("0x11")!=t[yc("0x142")]));for(const e of s)this._isRegisteredAttribute(e[yc("0x8b")])&&o[yc("0x95")]({key:e[yc("0x8b")],newValue:e[yc("0x12f")],oldValue:e.attributeOldValue,range:Lc(e.range,t[yc("0xbc")])});for(const e of x){const n=a.find((t=>t[yc("0x15")]===e[yc("0x15")]));if(n){const r=Mc(e[yc("0x63")][yc("0x167")],t[yc("0xbc")]);n[yc("0x142")]!==e[yc("0x142")]&&o.push({key:yc("0x37"),newValue:e[yc("0x142")],oldValue:n[yc("0x142")],range:r});for(const[t,i]of n[yc("0x134")]){if(!this[yc("0xf2")](t))continue;const n=e[yc("0x134")][yc("0x179")](t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x134")])this[yc("0xf2")](t)&&(n[yc("0x134")].has(t)||o[yc("0x95")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0xd9")]&&t[yc("0xbc")][yc("0x160")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x177")](t,e,r,i,{groupId:n});this[yc("0xae")](t,o)}))}),{priority:yc("0xf8")}),t[yc("0xbc")][yc("0x32")].on(yc("0x13f"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x64")](e.name),n=this[yc("0x61")].get(t);n&&n[yc("0x120")](e[yc("0x142")])}})),t[yc("0xbc")][yc("0x136")].on(yc("0x10c"),(()=>{const e=Array[yc("0x2d")](t[yc("0xbc")][yc("0x136")].differ.getChangedMarkers())[yc("0x147")]((t=>yc("0x16d")===this._splitMarkerName(t[yc("0x142")])[yc("0x125")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t[yc("0x59")][yc("0x9b")],r=e[yc("0x59")][yc("0x9b")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0x8f")][yc("0xb1")](r[yc("0x8f")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x64")](t);if(null===i[yc("0x9b")]){const e=this[yc("0x12c")](t);r.add(e)}else{const t=this[yc("0x61")].get(e);null!==i[yc("0x34")]||t.isInContent?(n[yc("0x133")](t[yc("0xb4")]),r.add(t)):this._removeSuggestion(t)}}r.size>0&&this[yc("0xf7")](r);for(const t of n)this[yc("0xb0")](yc("0x45"),t)})),t.model.on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0x61")].size)return;if(!r[yc("0x176")])return;if(r[yc("0x78")][yc("0x11d")]||!r.batch[yc("0x2c")])return;let i,o;switch(r[yc("0xa5")]){case yc("0x114"):i=t.model[yc("0x16a")](r[yc("0x63")]),o=i[yc("0x31")](r.howMany);break;case yc("0xbe"):i=t[yc("0xbc")][yc("0x16a")](r[yc("0x48")]),o=t[yc("0xbc")][yc("0x16a")](r.moveTargetPosition);break;case yc("0x30"):i=t[yc("0xbc")].createPositionAt(r.targetPosition),o=i[yc("0x31")](r[yc("0x13b")]);break;default:return}const s=t.model[yc("0x88")](i,o);t[yc("0xbc")][yc("0x85")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x2a")](s)){if(t[yc("0xc1")])continue;if(yc("0x49")==t[yc("0xa5")])continue;const n=this[yc("0xd2")](t);if(n&&this[yc("0xc2")](n)&&"split"!=r[yc("0xa5")])continue;const x=t.data&&t[yc("0x59")].multipleBlocks;("formatBlock"!=t[yc("0xa5")]||yc("0xbe")==r.type&&!x)&&(e.containsRangeInObject||yc("0x122")==t.type&&e[yc("0x16")]||t[yc("0x6f")]()[yc("0xc3")](s)&&this[yc("0x9")](t,i,o))}}))}),{priority:yc("0xf8")}),t.model.on("deleteContent",((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0xf0")])return;if(this[yc("0x91")])return;if(!this.trackChangesCommand[yc("0x13")])return;if(r.isCollapsed)return;const o=t.model[yc("0x13a")],{start:s,end:x}=r[yc("0x6f")](),a=s[yc("0x167")]&&o.isLimit(s[yc("0x167")])?null:o[yc("0x9a")](s,yc("0xea")),c=x[yc("0x5f")]&&o[yc("0x25")](x[yc("0x5f")])?null:o[yc("0x9a")](x,yc("0x84")),l=t[yc("0xbc")].createRange(a?a[yc("0x8f")]:s,c?c[yc("0x15e")]:x);t[yc("0xbc")][yc("0x85")]((e=>{this[yc("0x20")](l);const n=t[yc("0xbc")][yc("0x13a")].getNearestSelectionRange(l[yc("0x8f")]);r.is(yc("0x14b"))?e[yc("0x90")](n):r[yc("0xdb")](n)})),e[yc("0x8e")]()}),{priority:e.priorities[yc("0xc")]+10}),t.model.on(yc("0xfa"),((e,n)=>{const r=n[n[yc("0xd9")]-1];r&&r[yc("0xf0")]||this[yc("0x91")]||this[yc("0x124")][yc("0x13")]&&(t.model[yc("0x85")]((()=>{let r=t[yc("0xbc")][yc("0xfa")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e.return=r.clone();const i=r[yc("0x15e")].nodeBefore,o=t[yc("0xbc")][yc("0x13a")];i&&o[yc("0x82")](i)&&!o[yc("0x15d")](i)&&(r=t[yc("0xbc")][yc("0x88")](r[yc("0x8f")],t.model[yc("0x16a")](i,"end"))),this[yc("0xdc")](r)})),e[yc("0x8e")]())}),{priority:yc("0x10d")}),this[yc("0x174")][yc("0x1b")][yc("0x133")](yc("0x4d"),this[yc("0x124")]),this[yc("0x3b")](yc("0x4d"));const i=new p(t,this[yc("0x61")]);t[yc("0x1b")][yc("0x133")](yc("0x131"),i),this.enableCommand("acceptSuggestion");const o=new y(t,this[yc("0x61")]);t[yc("0x1b")].add(yc("0x26"),o),this[yc("0x3b")](yc("0x26")),t[yc("0x1b")].add(yc("0x7b"),new F(t,i,this._suggestions)),this.enableCommand(yc("0x7b")),t.commands[yc("0x133")](yc("0x7e"),new F(t,o,this._suggestions)),this[yc("0x3b")]("discardAllSuggestions"),t.commands[yc("0x133")](yc("0x4a"),new j(t,i,this[yc("0x61")])),this[yc("0x3b")](yc("0x4a")),t[yc("0x1b")][yc("0x133")](yc("0x13c"),new j(t,o,this[yc("0x61")])),this[yc("0x3b")]("discardSelectedSuggestions");const s=t[yc("0x66")][yc("0x179")](yc("0x11c"));this[yc("0xef")](s,yc("0xd6"),((t,{threadId:e})=>{const n=this._suggestions[yc("0x179")](e);n&&n.commentThread&&1===n[yc("0x53")][yc("0xd9")]&&this[yc("0x24")](e,{hasComments:!0})}),{priority:yc("0x12b")}),this[yc("0xef")](s,yc("0x132"),((t,{threadId:e})=>{const n=this._suggestions[yc("0x179")](e);n&&n[yc("0x53")]&&!n.commentThread[yc("0xd9")]&&this[yc("0x24")](e,{hasComments:!1})}),{priority:yc("0x12b")})}set adapter(t){if(this[yc("0x9e")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[yc("0x9e")]=t}get[yc("0x71")](){return this[yc("0x9e")]}[yc("0x169")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x61")][yc("0x94")]())t&&!e[yc("0x165")]||n[yc("0x95")](e);return e?n[yc("0x11e")]((t=>t[yc("0x6b")]())):n}getSuggestion(t){const n=this[yc("0x61")].get(t);if(!n)throw new e.CKEditorError(yc("0x162"),this);return n}[yc("0x6")](t){return this[yc("0x61")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0xa5")].split(":"),s=this._suggestions.get(n)||this[yc("0xce")](i,o,n,e,r);if(this._addThreadToSuggestion(s),this[yc("0x17a")](s,i,o||null,e),s.createdAt=t[yc("0xc4")],s._isDataLoaded=!0,r&&r["@external"]){const t=r[yc("0x15c")],e=this[yc("0xe2")](t[yc("0x175")]);s[yc("0x97")]=t[yc("0xc4")],s[yc("0x107")]=e,s.isExternal=!0}else s[yc("0x97")]=t.createdAt;switch(t[yc("0x59")]&&(s.data=t[yc("0x59")]),t[yc("0x134")]&&(s[yc("0x134")]=t.attributes),this[yc("0x9e")]&&this[yc("0x9e")].addSuggestion||(s[yc("0xfd")]=!0),this[yc("0x16b")][yc("0x179")](s)){case yc("0xac"):this[yc("0x16b")].set(s,yc("0xca"));break;case yc("0x3d"):s[yc("0x165")]?(this._joinWithAdjacentSuggestions(new Set([s])),this._refreshSuggestionsChain(new Set([s])),this[yc("0x16b")][yc("0x39")](s,yc("0x10a")),this[yc("0xb0")](yc("0x42"),s)):this._suggestionState[yc("0x39")](s,yc("0x6c"))}return s}[yc("0x131")](t){this.forceDefaultExecution((()=>{this.editor[yc("0xbc")][yc("0x85")]((()=>{for(const e of t[yc("0x138")]())e[yc("0xbb")]()}))}))}[yc("0x26")](t){this[yc("0xf0")]((()=>{this[yc("0x174")].model.change((()=>{for(const e of t[yc("0x138")]())e[yc("0xd")]()}))}))}[yc("0x3b")](t,n){const r=this[yc("0x174")].commands.get(t);if(!r)throw new e.CKEditorError(yc("0x14d"),this,{commandName:t});if(this[yc("0xe5")][yc("0xd0")](r))throw new e.CKEditorError(yc("0x144"),this,{commandName:t});this[yc("0xe5")][yc("0x133")](r),n&&r.on("execute",((t,e)=>{this.trackChangesCommand.value&&(this._isForcedDefaultExecutionBlock||(e[yc("0xd9")]>0&&e[e[yc("0xd9")]-1]&&e[e[yc("0xd9")]-1][yc("0xf0")]?e.pop():(t[yc("0x10e")]=n(((...t)=>r.execute(...t,{forceDefaultExecution:!0})),...e),t[yc("0x8e")]())))}),{priority:"high"})}[yc("0xf0")](t){let n,r;const i=this._isForcedDefaultExecutionBlock;this[yc("0x91")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x91")]=!1),r&&e.CKEditorError.rethrowUnexpectedError(r,this),n}markInsertion(t,n=null,r={}){if(t[yc("0x14a")])return null;const i=this.editor[yc("0x66")][yc("0x179")](yc("0x4")).me;for(const{suggestion:e,meta:i}of this[yc("0x2a")](t,yc("0x122")))if(i[yc("0x16")]){if(!i[yc("0xdf")]){if(i[yc("0x4e")]){if(!this[yc("0x6e")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x9")](e,t.start,t[yc("0x15e")]);break}if(n==e.subType&&Fc(e,r)){const n=e[yc("0x6f")]();return n[yc("0x8f")][yc("0x11f")](t.end)?this[yc("0xf4")](e,this[yc("0x41")][yc("0x88")](t[yc("0x8f")],n.end)):this[yc("0xf4")](e,this[yc("0x41")].createRange(n[yc("0x8f")],t[yc("0x15e")])),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0xda")+n:yc("0x122"),a=this[yc("0x69")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,o,s,t),a}[yc("0xf")](t,n=yc("0xb2"),r={}){const i=this[yc("0x174")][yc("0x66")][yc("0x179")](yc("0x4")).me,o=this[yc("0xe6")][yc("0x7")](yc("0x122"),n,yc("0x113"));for(const e of this[yc("0x169")]())if(e[yc("0x107")].id==i.id&&yc("0x122")==e[yc("0xa5")]&&e[yc("0x8")]==n&&Fc(e,r)&&(o(e[yc("0x17b")](),t)||o(t,e.getRanges()))){for(const n of t)e[yc("0x137")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x2a")](t,yc("0x122"))){if(!n[yc("0x16")])continue;if(!this._mergeNestedSuggestions&&n[yc("0x4e")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0xc3")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yr.getMultiRangeId());return c}[yc("0x54")](t,n,r=null,i={}){if(r=r||vc(n),t.isCollapsed)return null;if(yc("0x156")===this[yc("0x1f")]){const e=this[yc("0xe6")][yc("0x7")](yc("0x49"),r,yc("0xbb"));return this[yc("0xf0")]((()=>e([t],n,i))),null}const o=this[yc("0x174")][yc("0x66")].get(yc("0x4")).me,s=[];if(yc("0x10f")!==this[yc("0x1f")])for(const{suggestion:e,meta:n}of this[yc("0x2a")](t,yc("0x122")))n[yc("0x16")]&&!n.isInsideObject&&s[yc("0x95")](...e[yc("0x17b")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x5")](r);e&&n[yc("0x95")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0xd9")];){const r=n[e].getDifference(t);n[yc("0xb7")](e,1,...r),e+=r[yc("0xd9")]}}return n}(t,s);x[yc("0xd9")]&&this[yc("0x41")][yc("0x85")]((()=>{for(const t of x){const e=this[yc("0xe6")].getSuggestionCallback(yc("0x49"),r,yc("0xbb"));this[yc("0xf0")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x8f")],a=t[yc("0x15e")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x49"))){if(!n[yc("0x16")])continue;if(e[yc("0x8")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x6f")]();if(o.containsRange(t,!0))return null;x=x[yc("0xb1")](o[yc("0x8f")])?x:o.start,a=a[yc("0xff")](o[yc("0x15e")])?a:o[yc("0x15e")],s?o.start[yc("0xb1")](s[yc("0x6f")]()[yc("0x8f")])?(s[yc("0x103")](),s=e):e[yc("0x103")]():s=e}const c=this[yc("0x41")][yc("0x88")](x,a);if(s)this[yc("0xf4")](s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x69")]({id:t,type:yc("0x5b")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0x8a")]("formatInline:"+r,t,s,c)}}return null}[yc("0xd3")](t,n,r=[],i=null,o={}){n[yc("0x7d")]||(n[yc("0x7d")]=n[yc("0x89")]),n[yc("0x55")]=t.is("range"),i=i||vc(n);const s=r[yc("0x11e")]((t=>Mc(t,this[yc("0x41")]))),x=t.is(yc("0x6d"))?t:Mc(t,this[yc("0x41")]);if("never"===this._trackFormatChanges){const t=this[yc("0xe6")][yc("0x7")](yc("0x143"),i,"accept");return this[yc("0xf0")]((()=>t([x],n,o))),null}s.push(x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&yc("0x10f")!==this[yc("0x1f")]){const t=this[yc("0xe6")][yc("0x7")](yc("0x143"),i,yc("0xbb"));return this[yc("0xf0")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0x8f")],u=x[yc("0x15e")];for(const{suggestion:t,meta:e}of this[yc("0x2a")](x,"formatBlock")){if(!e.isOwn)continue;if(e.isNextTo||e[yc("0x4e")]||e[yc("0x145")])continue;if(t[yc("0x59")].formatGroupId!=n[yc("0x7d")])continue;if(!Fc(t,o))continue;const r=t[yc("0x6f")]();if(t[yc("0x8")]==i){if(r[yc("0xc3")](x,!0))return null;l=l[yc("0xb1")](r[yc("0x8f")])?l:r[yc("0x8f")],u=u.isAfter(r[yc("0x15e")])?u:r[yc("0x15e")],c?r.start[yc("0xb1")](c[yc("0x6f")]()[yc("0x8f")])?(c[yc("0x103")](),c=t):t.removeMarkers():c=t}else{const e=x[yc("0x5")](r);this._cutOutSuggestionMarker(t,e)}}const d=this[yc("0x174")].plugins[yc("0x179")](yc("0x4")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0xf4")](c,this[yc("0x41")][yc("0x88")](l,u)),c;{const t=this._setSuggestionData({id:g,type:yc("0x67")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x8a")](yc("0x67")+i,g,f,this[yc("0x41")].createRange(l,u)),t}}markMultiRangeBlockFormat(t,n,r=[],i=null,o={}){n.formatGroupId||(n[yc("0x7d")]=n[yc("0x89")]);const s=t[0];n[yc("0x55")]=s.is(yc("0x6d")),i=i||vc(n);const x=r[yc("0x11e")]((t=>Mc(t,this[yc("0x41")]))),a=s.is(yc("0x6d"))?t:t[yc("0x11e")]((t=>Mc(t,this[yc("0x41")])));if("never"===this[yc("0x1f")]){const t=this[yc("0xe6")][yc("0x7")](yc("0x143"),i,yc("0xbb"));return this[yc("0xf0")]((()=>t(a,n,o))),null}x[yc("0x95")](...a);let c=!0;for(const t of x)if(!this[yc("0xf3")](t)){c=!1;break}if(c&&yc("0x10f")!==this._trackFormatChanges){const t=this[yc("0xe6")][yc("0x7")]("formatBlock",i,yc("0xbb"));return this[yc("0xf0")]((()=>t(a,n,o))),null}const l=this[yc("0x174")][yc("0x66")].get(yc("0x4")).me;for(const t of this.getSuggestions()){if(t[yc("0x107")].id!=l.id)continue;if(yc("0x143")!=t[yc("0xa5")]||t[yc("0x59")][yc("0x7d")]!=n[yc("0x7d")])continue;if(!Fc(t,o))continue;const e=t[yc("0x8")]==i;for(let n=0;n<a.length;n++){const r=a[n];for(const i of t.getMarkers()){const o=i.getRange();if(r.isEqual(o)){e?(a[yc("0xb7")](n,1),n--):t[yc("0x111")](i[yc("0x142")]);break}}}}if(0==a.length)return null;const u=this[yc("0xe6")][yc("0x7")](yc("0x143"),i,yc("0x113"));for(const t of this[yc("0x169")]())if(t.author.id==l.id&&yc("0x143")==t[yc("0xa5")]&&t.data.formatGroupId==n[yc("0x7d")]&&t.subType==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t[yc("0x137")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x67")+i,h=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0x8a")](f,d,g,t,Yr[yc("0xe8")]());return h}[yc("0x20")](t,n=null,r={}){if(t[yc("0x14a")])return null;const i=this[yc("0x174")].plugins[yc("0x179")](yc("0x4")).me,o=new s.LiveRange(t[yc("0x8f")],t[yc("0x15e")]);for(const{suggestion:t,meta:e}of this[yc("0x2a")](o,yc("0x122")))if(e[yc("0x16")]&&!e.isNextTo)if(t.isMultiRange){const e=t[yc("0x17b")]()[yc("0x147")]((t=>yc("0xb9")!=t.root[yc("0x100")]));if(e.every((t=>o[yc("0xc3")](t,!0)))&&t[yc("0xd")](),e.some((t=>t.containsRange(o,!0)))){const t=this[yc("0xe6")][yc("0x7")](yc("0x104"),n,"accept");return this[yc("0xf0")]((()=>t([o],null,r))),null}}else{const e=o.getIntersection(t.getFirstRange());null!==e&&t[yc("0x3")]([e],null,r)}if(o[yc("0xde")](),o[yc("0x14a")]||yc("0xb9")==o[yc("0x75")][yc("0x100")])return null;let x=null,a=o[yc("0x8f")],c=o[yc("0x15e")];const l=this._findSuggestions(o,yc("0x104"));for(const{suggestion:t,meta:e}of l){const n=this._model[yc("0x88")](a,c);if(e[yc("0x16")]&&(this[yc("0x6e")]||!e[yc("0x4e")]&&!e[yc("0x145")]))if(t[yc("0xc1")]){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x17b")]()){if(r[yc("0xc3")](n,!0))return t;n[yc("0xc3")](r)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[yc("0xc3")](n,!0))return t;if(!Fc(t,r)){n.containsRange(e)?t[yc("0x103")]():e[yc("0x1c")](a)?a=e.end:e[yc("0x1c")](c)&&(c=e[yc("0x8f")]);continue}a=a[yc("0xb1")](e[yc("0x8f")])?a:e[yc("0x8f")],c=c.isAfter(e[yc("0x15e")])?c:e[yc("0x15e")],r=Object[yc("0x4c")]({},t.attributes),x?e[yc("0x8f")][yc("0xb1")](x.getFirstRange().start)?(x[yc("0x103")](),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0xf4")](x,this[yc("0x41")][yc("0x88")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x41")][yc("0x88")](a,c),s=i.id,x=n?yc("0x93")+n:"deletion",l=this[yc("0x69")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0x8a")](x,t,s,o),l}}[yc("0x7c")](t,n="multi",r={}){const i=this[yc("0x174")][yc("0x66")][yc("0x179")]("Users").me,o=t[yc("0x11e")]((t=>new s.LiveRange(t[yc("0x8f")],t[yc("0x15e")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x2a")](o,yc("0x122")))e[yc("0x16")]&&!e[yc("0xdf")]&&x.add(t);for(const e of x)if(e.isMultiRange){const i=e[yc("0x17b")]();if((!e.attributes||!e.attributes[yc("0x40")])&&i.every((t=>o.some((e=>e.containsRange(t,!0)))))&&e[yc("0xd")](),o.every((t=>i[yc("0x72")]((e=>e[yc("0xc3")](t,!0)))))){const e=this[yc("0xe6")].getSuggestionCallback("deletion",n,yc("0xbb"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0x6f")]();if(o.some((e=>e.containsRange(t,!0)))&&e[yc("0xd")](),o[yc("0x62")]((e=>t[yc("0xc3")](e,!0)))){const t=this[yc("0xe6")].getSuggestionCallback("deletion",n,yc("0xbb"));return this[yc("0xf0")]((()=>t(o,null,r))),null}}const a=this[yc("0xe6")][yc("0x7")](yc("0x104"),n,yc("0x113"));let c=null;for(const t of this[yc("0x169")]())if(t[yc("0x107")].id==i.id&&t[yc("0x165")]&&yc("0x104")==t[yc("0xa5")]&&t[yc("0x8")]==n&&Fc(t,r)&&(a(t[yc("0x17b")](),o)||a(o,t[yc("0x17b")]())))if(c){if(t[yc("0x53")]&&t.commentThread[yc("0xd9")])continue;for(const e of t[yc("0x17b")]())c[yc("0x36")](e)||c[yc("0x137")](e);t[yc("0x103")]()}else{c=t;for(const e of o)t[yc("0x36")](e)||t.addRange(e)}if(c)return c;x[yc("0x163")]();for(const{suggestion:t,meta:e}of this[yc("0x2a")](o,yc("0x104")))e.isOwn&&(this._mergeNestedSuggestions||!e[yc("0x4e")]&&!e.isInsideObject)&&Fc(t,r)&&x[yc("0x133")](t);for(const t of x){const e=t.getRanges();if((!r||!r[yc("0x40")])&&o[yc("0x62")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[yc("0x134")][yc("0x40")])&&e[yc("0x62")]((t=>o[yc("0x72")]((e=>e[yc("0xc3")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[yc("0x69")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0xde")](),t[yc("0x14a")]||yc("0xb9")==t[yc("0x75")][yc("0x100")]||this._addSuggestionMarker(d,l,u,t,Yr.getMultiRangeId());return g}[yc("0x177")](t,n,r,i,o){if(t[yc("0x14a")])return[];if(yc("0x156")===this[yc("0x1f")])return[];const s=this[yc("0x174")][yc("0x66")][yc("0x179")](yc("0x4")).me.id,x=Array[yc("0x2d")](this._suggestions[yc("0x94")]())[yc("0x147")]((e=>yc("0x154")==e.type&&e[yc("0x59")][yc("0x77")]==n&&e.isIntersectingWithRange(t)));if(yc("0x1e")===this[yc("0x1f")]){const e=this[yc("0x2a")](t,yc("0x122"))[yc("0x147")]((({meta:t})=>t.isOwn&&!t.isInsideObject&&!t[yc("0xdf")])).map((({suggestion:t})=>t));x[yc("0x2f")](...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t.type?t[yc("0x59")][yc("0x128")]:void 0,o=t[yc("0x6f")](),s=Array[yc("0x2d")](a[yc("0x108")]())[yc("0x116")]((t=>t[yc("0x12a")](o)));if(!s)continue;const x=s[yc("0x4f")](o);this._isBlockAttribute(n)&&yc("0x122")==t.type&&0!=x.length||(a[yc("0xc5")](s),x[yc("0x27")]((t=>{a[yc("0x39")](t,r)})),yc("0x122")!=t[yc("0xa5")]&&e!=i&&a[yc("0x39")](s.getIntersection(o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0xd9")]>37&&console[yc("0x23")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0x14")+(n+"|")+vc({newValue:i})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x95")](u),this._addSuggestionMarker(l,x,s,t)}return c}[yc("0x106")](t){this._blockAttributeKeys[yc("0x133")](t)}[yc("0xd8")](t){this[yc("0x105")][yc("0x133")](t)}[yc("0x11a")](t,e=[],n=[]){this[yc("0x3b")](t,((t,...e)=>{this[yc("0x5e")]((()=>{t(...e)}))}));for(const t of e)this[yc("0xd8")](t);for(const t of n)this[yc("0x106")](t)}[yc("0xd2")](t){return"attribute"==t[yc("0xa5")]?t[yc("0x8")][yc("0xbe")]("|")[0]:null}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[yc("0x41")].change((t=>{t[yc("0x28")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[yc("0x174")][yc("0xba")][yc("0x179")](yc("0x60"));this[yc("0xec")].hasCommentThread(e)||this._commentsRepository[yc("0x9d")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository[yc("0x47")](e);r[yc("0x140")](yc("0x19")),r[yc("0x19")]=!1,t[yc("0x53")]=r}[yc("0x17a")](t,n,r,i){if(t[yc("0xa5")]!=n||t[yc("0x8")]!=r||t.creator.id!=i)throw this[yc("0x174")][yc("0x35")](yc("0x14f")),new e.CKEditorError(yc("0x14f"),this)}[yc("0x83")](t,n){const r=t[yc("0x6f")]();if(n[yc("0x11f")](r))t[yc("0x103")]();else if(r.containsRange(n)){const i=this[yc("0x41")].createPositionAt(n[yc("0x8f")][yc("0x5f")],"end");this._setSuggestionRange(t,this._model[yc("0x88")](r.start,i));const o=(0,e.uid)(),s=t.creator.id,x=t[yc("0xa5")]+":"+t[yc("0x8")];this[yc("0x69")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x59")],attributes:t[yc("0x134")]});const a=this[yc("0x41")][yc("0x16a")](n[yc("0x15e")].parent,yc("0xa2")),c=this[yc("0x41")][yc("0x88")](a,r[yc("0x15e")]);this[yc("0x8a")](x,o,s,c)}else if(r[yc("0x1c")](n[yc("0x8f")])){const e=this[yc("0x41")].createPositionAt(n.start[yc("0x5f")],"end");this[yc("0xf4")](t,this[yc("0x41")][yc("0x88")](r[yc("0x8f")],e))}else{const e=this[yc("0x41")][yc("0x16a")](n[yc("0x15e")].parent,"after");this._setSuggestionRange(t,this[yc("0x41")][yc("0x88")](e,r[yc("0x15e")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n.isOwn)continue;const r=e.getRanges();for(const e of r)if(!t.getDifference(e)[yc("0xd9")])return!0}return!1}[yc("0xeb")](t){const n=this.editor.plugins.get(yc("0x4"))[yc("0x155")](t);if(!n)throw new e.CKEditorError(yc("0x119"),this);return n}[yc("0xe2")](t){const e=this[yc("0x174")].plugins[yc("0x179")]("Users"),n=(0,o.hashObject)("external:"+t);return e.getUser(n)||e[yc("0x15a")]({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this._getAuthorFromId(r),s=this[yc("0xe6")][yc("0x16c")](t,e,n,o,i,(t=>{this[yc("0x24")](n,{attributes:t});const e=this.getSuggestion(n);this[yc("0xd7")](new Set([e])),this[yc("0xf7")](new Set([e]))}));return this.listenTo(s,"accept",(()=>{this[yc("0x24")](n,{state:yc("0x1")})}),{priority:"high"}),this[yc("0xef")](s,"discard",(()=>{this[yc("0x24")](n,{state:yc("0x74")})}),{priority:yc("0x10d")}),this[yc("0x61")][yc("0x39")](n,s),this[yc("0x16b")][yc("0x39")](s,yc("0xac")),s}[yc("0x64")](t){const e=t[yc("0xbe")](":");return{group:e[0],type:e[1],subType:e[yc("0xd9")]>=5?e[2]:null,id:e[yc("0xd9")]<5?e[2]:e[3],authorId:e[yc("0xd9")]<5?e[3]:e[4],markerCount:6==e[yc("0xd9")]?e[5]:null}}_breakSuggestionMarker(t,n,r){const i=t[yc("0x6f")](),o=i[yc("0x8f")],s=i[yc("0x15e")];this[yc("0xf4")](t,this[yc("0x41")][yc("0x88")](o,n));const x=(0,e.uid)(),a=t[yc("0x2")].id,c=t[yc("0xa5")]+(t[yc("0x8")]?":"+t[yc("0x8")]:"");this[yc("0x69")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x134")],data:t[yc("0x59")]});const l=this._getAttributeKey(t);("formatBlock"==t[yc("0xa5")]||l&&this._isBlockAttribute(l))&&(r=this[yc("0x41")][yc("0x9f")](r[yc("0xfc")])),this._addSuggestionMarker(c,x,a,this[yc("0x41")][yc("0x88")](r,s))}[yc("0x2a")](t,e=null){const n=[],r=this[yc("0x174")].plugins[yc("0x179")](yc("0x4")).me;Array[yc("0xcc")](t)||(t=[t]);for(const i of this[yc("0x169")]()){if(!i[yc("0x165")])continue;if(e&&i[yc("0xa5")]!=e)continue;let o=!1;for(const e of i[yc("0x17b")]()){for(const s of t){const t=s[yc("0x8f")][yc("0x11f")](e[yc("0x15e")])||s.end[yc("0x11f")](e[yc("0x8f")]);if(t||s[yc("0x5")](e)){const x=s[yc("0xc3")](e)&&Sc(this[yc("0x41")].schema,e.start,s),a=e.containsRange(s)&&Sc(this[yc("0x41")][yc("0x13a")],s[yc("0x8f")],e);n[yc("0x95")]({suggestion:i,meta:{isOwn:r==i[yc("0x107")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x8a")](t,e,n,r,i){this[yc("0x41")][yc("0x85")]((o=>{let s=yc("0xe")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x139")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x158")](t){const e=t[yc("0x149")],n=t[yc("0x7a")];t.previous=null,t[yc("0x7a")]=null,null!=e&&e[yc("0x7a")]==t&&(e[yc("0x7a")]=n),null!=n&&n[yc("0x149")]==t&&(n.previous=e),"ready"==this[yc("0x16b")].get(t)&&(this[yc("0x16b")].set(t,yc("0x6c")),this[yc("0xb0")](yc("0x73"),t,e,n))}[yc("0x69")](t){const n=t.id,r=this[yc("0xa6")](t);if(this._adapter&&this[yc("0x9e")][yc("0xc0")]){const i=this[yc("0x174")][yc("0x66")][yc("0x179")]("PendingActions"),o=r[yc("0x16e")],s=r.subType?r[yc("0xa5")]+":"+r.subType:r[yc("0xa5")],x=this[yc("0x174")][yc("0x86")],a=i.add(Jr(x,yc("0x10"))),c={id:n,type:s,hasComments:o,data:t.data||null,originalSuggestionId:t[yc("0x65")]||null,attributes:r[yc("0x134")]};this[yc("0x9e")][yc("0xc0")](c)[yc("0x2e")]((t=>{r._saved=!0,i[yc("0x52")](a),t&&t.createdAt&&(this[yc("0x61")][yc("0x179")](n).createdAt=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(yc("0x0")),this[yc("0x174")][yc("0xbc")][yc("0x160")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0xe7")](),this._suggestions[yc("0xc5")](r.id),this[yc("0x16b")].delete(r),t}))}return r}[yc("0xc2")](t){return this[yc("0x12e")][yc("0xd0")](t)}[yc("0x24")](t,e){const n=this[yc("0x174")][yc("0x66")][yc("0x179")](yc("0x129")),r=this.getSuggestion(t);if(this[yc("0x9e")]&&this[yc("0x9e")][yc("0x164")])if(r._saved){const r=n[yc("0x133")](Jr(this[yc("0x174")][yc("0x86")],"PENDING_ACTION_SUGGESTION"));this[yc("0x9e")].updateSuggestion(t,e)[yc("0x2e")]((()=>{n.remove(r)}))}else r.on("change:_saved",(()=>{this[yc("0x24")](t,e)}))}_getSuggestionData(t){if(!this[yc("0x9e")]||!this[yc("0x9e")][yc("0x43")])throw new e.CKEditorError(yc("0xc7"),this);return this[yc("0x9e")][yc("0x43")](t)}[yc("0x12c")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x64")](t),o=this[yc("0x61")][yc("0x179")](e)||this._createSuggestion(n,r,e,i,{});switch(this[yc("0x17a")](o,n,r,i),this._suggestionState[yc("0x179")](o)){case yc("0xac"):this[yc("0xcb")](e).then((t=>{let n=Promise[yc("0x110")]();t[yc("0x16e")]&&(n=this[yc("0xec")].fetchCommentThread({channelId:this.editor[yc("0xba")][yc("0x179")](yc("0x60")),threadId:e})),n[yc("0x2e")]((()=>{this[yc("0xa6")](t)._saved=!0}))})),this._suggestionState[yc("0x39")](o,yc("0x3d"));break;case yc("0x6c"):this[yc("0x24")](e,{state:yc("0xa4")});case"dataReady":this._suggestionState.set(o,"ready"),this.fire("suggestionLoaded",o);break;case yc("0x10a"):this[yc("0xb0")](yc("0x45"),o)}return o[yc("0x120")](t),o}[yc("0xf7")](t){const e=Array.from(t),n=e[yc("0x147")]((t=>yc("0x154")==t.type));this[yc("0x123")](n);const r=e[yc("0x147")]((t=>!t[yc("0xc1")]&&yc("0x154")!=t[yc("0xa5")])),i=this[yc("0x169")]({skipNotAttached:!0})[yc("0x147")]((t=>!t[yc("0xc1")]&&yc("0x154")!=t.type)),o=i.filter((e=>!t.has(e))),s=new Map(i[yc("0x11e")]((t=>[t,this._suggestionFactory[yc("0x7")](t.type,t.subType,yc("0x127"))]))),x=new Map(i.map((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0xd9")];t++)u(r[t],r,t+1);for(let t=0;t<r[yc("0xd9")];t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0xd9")];t++){const e=r[t];!c[yc("0xd0")](e)&&e[yc("0x149")]&&(l.add(e[yc("0x149")]),e[yc("0x149")][yc("0x7a")]===e&&(e[yc("0x149")][yc("0x7a")]=null),e.previous=null),!a[yc("0xd0")](e)&&e[yc("0x7a")]&&(l[yc("0x133")](e[yc("0x7a")]),e.next.previous===e&&(e[yc("0x7a")][yc("0x149")]=null),e[yc("0x7a")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0xd9")];r++){const n=d(t,e[r]);n&&(n[0][yc("0x7a")]=n[1],n[1].previous=n[0],a[yc("0x133")](n[0]),c[yc("0x133")](n[1]))}}function d(t,e){if(t.author.id!==e[yc("0x107")].id)return null;const n=s.get(t)(t,e,x[yc("0x179")](t),x[yc("0x179")](e));return n&&s[yc("0x179")](e)(t,e,x[yc("0x179")](t),x[yc("0x179")](e))?n[1][yc("0x53")]&&n[1][yc("0x53")].length?null:n:null}l.size&&this._refreshSuggestionsChain(l)}[yc("0x123")](t){if(0==t[yc("0xd9")])return;const e=this.getSuggestions({skipNotAttached:!0})[yc("0x147")]((t=>yc("0x154")==t[yc("0xa5")]&&t[yc("0x3f")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x134")]);r[yc("0xd0")](e)||(r.set(e,n.length),n[yc("0x95")]([]));const i=r[yc("0x179")](e);n[i][yc("0x95")](t)}!function(){n.sort(((t,e)=>{const n=t[0][yc("0xc4")],r=e[0][yc("0xc4")];return n==r?t[0][yc("0x134")].groupId<e[0][yc("0x134")][yc("0x3c")]?-1:1:n<r?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0xd9")];t++){if(0==n[t][yc("0xd9")])continue;const e=[];for(let r=t+1;r<n[yc("0xd9")];r++)0!=n[r][yc("0xd9")]&&i(n[t],n[r])&&e.push(r);for(const r of e)n[t]=n[t][yc("0x8d")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x7a")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0xd9")];e++)t[e][yc("0x149")]=t[e-1]||null;function i(t,e){if(t[0][yc("0x134")][yc("0x3c")]!==e[0][yc("0x134")][yc("0x3c")]&&t[0][yc("0x107")]!==e[0][yc("0x107")])return!1;if(n=t[0],r=e[0],(n[yc("0x16e")]||r.hasComments)&&(n.hasComments&&r[yc("0x16e")]||!(n[yc("0x16e")]&&r[yc("0xc4")]<n[yc("0x53")][yc("0x44")].get(0).createdAt||r[yc("0x16e")]&&n.createdAt<r[yc("0x53")][yc("0x44")][yc("0x179")](0)[yc("0xc4")])))return!1;var n,r;const i=bc(t[0].attributes,yc("0x3c")),o=bc(e[0][yc("0x134")],yc("0x3c"));return!!jr(i,o)&&(!!t.every((t=>e.some((e=>t[yc("0x6f")]().isEqual(e.getFirstRange())))))&&e[yc("0x62")]((e=>t[yc("0x72")]((t=>e[yc("0x6f")]()[yc("0x11f")](t[yc("0x6f")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[yc("0x169")]({skipNotAttached:!0}),r=n[yc("0x147")]((e=>!t.has(e))),i=new Map(e.map((t=>[t,this[yc("0xe6")][yc("0x7")](t[yc("0xa5")],t[yc("0x8")],yc("0x113"))]))),o=new Map(n[yc("0x11e")]((t=>[t,t[yc("0x17b")]()])));for(let t=0;t<e[yc("0xd9")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0xd9")];s++){const r=n[s];if(r[yc("0xa5")]!==e.type||r.author.id!==e[yc("0x107")].id||r[yc("0x8")]!==e[yc("0x8")])continue;if(!Oc(e,r,["groupId"]))continue;if(yc("0x154")==e[yc("0xa5")]&&e[yc("0x59")][yc("0x128")]!=r[yc("0x59")].oldValue)continue;if(yc("0x154")==e[yc("0xa5")]&&t[yc("0xc2")](e.data.key))continue;if(yc("0x143")==e.type){const n=t[yc("0x174")][yc("0xbc")],r=e.getContainedElement();if(r&&(n[yc("0x13a")][yc("0x15d")](r)||n[yc("0x13a")].isLimit(r)))continue}const x=i[yc("0x179")](e),a=o[yc("0x179")](e),c=o[yc("0x179")](r),l=e[yc("0x53")]&&e.commentThread[yc("0xd9")],u=r[yc("0x53")]&&r[yc("0x53")][yc("0xd9")];if(!l&&x(c,a))return t._joinSuggestions(r,e),o[yc("0xc5")](e),!0;if(!u&&x(a,c))return t[yc("0xcd")](e,r),o[yc("0xc5")](r),!0}return!1}}_joinSuggestions(t,e){if(t[yc("0xc1")])for(const n of e[yc("0x17b")]())t[yc("0x137")](n);else{const n=e.getFirstRange()[yc("0x15e")];this[yc("0xf4")](t,this[yc("0x41")][yc("0x88")](t[yc("0x6f")]().start,n))}e[yc("0x103")]()}[yc("0x99")](t,e){const n=t[yc("0x157")](yc("0x87"))||t[yc("0x157")]("attribute")?yc("0x21"):t[yc("0xb")]();return Jr(this[yc("0x174")][yc("0x86")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[yc("0x102")](){const t=this[yc("0x174")];(0,o.surroundingMarkersDetector)(this[yc("0x41")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x64")](t[yc("0x142")]);if("suggestion"===e){r.push(this[yc("0x99")](n,yc("0x150")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x64")](t.name);if(yc("0x16d")===e){r[yc("0x95")](this[yc("0x99")](n,yc("0x172")));break}}r.length&&t.ui[yc("0x38")][yc("0x15f")](yc("0x4d"),r[yc("0x113")](" "))}))}[yc("0xdd")](t){if(this[yc("0x13d")])return!1;const e=this.editor,n=e[yc("0xbc")].document.differ.getChanges();if(0==n[yc("0xd9")])return!1;const r=[],i=n.filter((t=>"attribute"==t[yc("0xa5")])),o=n[yc("0x147")]((t=>yc("0x114")==t.type&&"$text"!=t[yc("0x142")])),s=n.filter((t=>yc("0x52")==t[yc("0xa5")]&&yc("0x11")!=t[yc("0x142")]));for(const t of i)r[yc("0x95")]({key:t[yc("0x8b")],newValue:t[yc("0x12f")],oldValue:t[yc("0xf9")],range:Lc(t.range,e.model)});for(const t of o){const n=s[yc("0x116")]((e=>e.position[yc("0x11f")](t[yc("0x63")])));n&&r[yc("0x95")]({key:yc("0x37"),newValue:t.name,oldValue:n[yc("0x142")],range:e[yc("0xbc")].createRangeOn(t[yc("0x63")][yc("0x167")])})}return 0!=r[yc("0xd9")]&&this[yc("0xae")](t,r)}[yc("0x6a")](t){let e=!1;const n=this.editor.model.document[yc("0x1a")][yc("0x151")]()[yc("0x147")]((t=>t[yc("0x59")][yc("0x34")]&&t.name.startsWith(yc("0xc9"))));for(const r of n){const{subType:n,id:i}=this._splitMarkerName(r.name),o=n[yc("0xbe")]("|")[0];for(const n of this[yc("0x169")]({skipNotAttached:!0}))n.id!=i&&yc("0x154")==n[yc("0xa5")]&&n[yc("0x59")]&&n[yc("0x59")].key==o&&n.getFirstRange()[yc("0x12a")](r[yc("0x59")][yc("0x34")])&&(this[yc("0x118")](n,r[yc("0x59")][yc("0x34")],t),e=!0)}return e}[yc("0x5e")](t){this[yc("0x174")],this._recordAttributeSuggestions=!0,t()}[yc("0xf2")](t){const e=this[yc("0xc2")](t),n=this[yc("0x105")][yc("0xd0")](t);return e||n}[yc("0xae")](t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x2a")](r[yc("0x6d")],yc("0x154"))[yc("0x147")]((t=>!t[yc("0x50")][yc("0xdf")])).map((t=>t.suggestion)),i=(0,o.hashObject)({newValue:r[yc("0xed")]});e[yc("0x147")]((t=>{const[e,n]=t[yc("0x8")][yc("0xbe")]("|");return e==r[yc("0x77")]&&n!=i}))[yc("0x27")]((e=>{this._reduceSuggestionAttributeRange(e,r[yc("0x6d")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x6f")]()[yc("0x4f")](e);0!==r[yc("0xd9")]?1!==r[yc("0xd9")]?this[yc("0x9")](t,e[yc("0x8f")],e.end):this[yc("0xf4")](t,r[0]):n[yc("0x111")](t.getFirstMarker())}}class kc{constructor(t){this[yc("0xa8")]=t,this[yc("0x41")]=t[yc("0xbc")],this[yc("0x166")]=new Map,this[yc("0x146")]=new Map,this[yc("0xf5")]()}[yc("0x16c")](t,e,n,r,i,o){return new Yr(this[yc("0x41")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,yc("0xbb"))(...n),onDiscard:(...n)=>this[yc("0x7")](t,e,"discard")(...n)})}[yc("0x33")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x166")][yc("0x39")](i,r)}[yc("0x7")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0x166")][yc("0x179")](r)||this[yc("0x146")][yc("0x179")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[yc("0xb1")](e[yc("0x8f")])?1:-1)),this[yc("0x41")][yc("0x85")]((e=>{for(const n of t){let t;t=n.end[yc("0xf6")]&&n[yc("0x15e")][yc("0xfc")]==n[yc("0x8f")][yc("0x167")]?e[yc("0xee")](n[yc("0x8f")][yc("0x167")],"on"):e[yc("0xee")](n),this[yc("0x41")][yc("0xaa")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x41")][yc("0x85")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t.map((t=>(Rc(t)&&(t=this[yc("0x41")][yc("0x88")](t.end)),t))).filter((t=>yc("0xb9")!==t.root[yc("0x100")]));if(o.length<1)return;const x=Array[yc("0x2d")](this[yc("0x41")][yc("0x136")][yc("0x121")][yc("0x17b")]())[yc("0x11e")]((t=>s.LiveRange[yc("0x173")](t)));n[yc("0x90")](o);for(const t of this[yc("0xa8")][yc("0x1b")][yc("0x1b")]())t.refresh();i[yc("0x95")]({forceDefaultExecution:!0}),this[yc("0xa8")].execute(r,...i);const a=x.filter((t=>"$graveyard"!=t.root.rootName));a[yc("0xd9")]>0&&n.setSelection(a);for(const t of x)t[yc("0xde")]()}))},r=(t,e)=>1==t[yc("0xd9")]&&1==e[yc("0xd9")]&&t[0][yc("0x15e")].isEqual(e[0][yc("0x8f")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x41")])?[t,e]:wc(e,t,r,n,this[yc("0x41")])?[e,t]:null;this[yc("0x146")][yc("0x39")](yc("0x152"),t),this._defaultCallbacks[yc("0x39")](yc("0x101"),e),this._defaultCallbacks.set(yc("0xcf"),r),this[yc("0x146")][yc("0x39")](yc("0xfe"),i),this[yc("0x146")].set(yc("0x5d"),e),this[yc("0x146")][yc("0x39")](yc("0xb6"),t),this._defaultCallbacks[yc("0x39")]("deletion:join",r),this[yc("0x146")][yc("0x39")](yc("0x17c"),i),this[yc("0x146")][yc("0x39")](yc("0x79"),n),this[yc("0x146")][yc("0x39")](yc("0x148"),t),this[yc("0x146")][yc("0x39")]("formatInline:join",r),this._defaultCallbacks[yc("0x39")]("formatInline:chain",t),this._defaultCallbacks[yc("0x39")](yc("0x17"),n),this._defaultCallbacks[yc("0x39")](yc("0xb8"),t),this._defaultCallbacks[yc("0x39")](yc("0x10b"),r),this._defaultCallbacks.set(yc("0x168"),t),this._defaultCallbacks.set(yc("0x112"),t),this._defaultCallbacks[yc("0x39")](yc("0xa3"),((t,e)=>{if(!e)return;const n=this[yc("0xa8")][yc("0x66")][yc("0x179")](Ac);this[yc("0x41")].change((r=>{if(yc("0x37")==e.key)for(const n of t){const t=n[yc("0x8f")][yc("0x167")],i=e.oldValue;r.rename(t,i)}else if(n._isBlockAttribute(e[yc("0x77")]))for(const n of t)void 0!==e[yc("0x128")]?r[yc("0x109")](e[yc("0x77")],e[yc("0x128")],n.start.nodeAfter):r[yc("0x81")](e[yc("0x77")],n[yc("0x8f")][yc("0x167")]);else for(const n of t)e[yc("0x128")]?r[yc("0x109")](e[yc("0x77")],e[yc("0x128")],n):r[yc("0x81")](e[yc("0x77")],n)}))})),this._defaultCallbacks[yc("0x39")](yc("0x5a"),r)}}function Sc(t,e,n){for(const r of e.parent[yc("0xc6")]({includeSelf:!0,parentFirst:!0})){if(r.root==r)return!1;if(!n[yc("0x76")](r))return!1;if(t[yc("0x15d")](r)||t[yc("0x25")](r))return!0}return!1}function Rc(t){return t[yc("0x15e")][yc("0xfc")]==t.start.nodeAfter&&t[yc("0x15e")][yc("0x126")]}function Ic(t,e,n,r){const i=t=>!t.item.is("$textProxy")&&!r.isObject(t[yc("0x171")]),o=t[yc("0x8f")][yc("0xc8")](i),s=t[yc("0x15e")][yc("0xc8")](i,{direction:yc("0x84")});return!(t[yc("0x8f")][yc("0x11f")](o)&&t[yc("0x15e")][yc("0x11f")](s)||(o[yc("0xb1")](s)?n[yc("0x28")](e,{range:n[yc("0x88")](o,s)}):n[yc("0x111")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t[yc("0x8f")].nodeAfter;return e&&e.is(yc("0x1d"))}function Lc(t,e){return null==t[yc("0x15e")][yc("0x5f")]&&t[yc("0x15e")][yc("0xfc")]==t[yc("0x8f")].nodeAfter?Mc(t[yc("0x8f")].nodeAfter,e):t}function Mc(t,e){const n=e[yc("0x13a")][yc("0x15d")](t)||e[yc("0x13a")][yc("0xbf")](t);return e[yc("0x88")](e[yc("0x16a")](t,yc("0x14c")),n?e[yc("0x170")](t):e[yc("0x16a")](t,yc("0x15e")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x15e")].isEqual(r[yc("0x8f")]))return!0;if(t.type!=e[yc("0xa5")])return!1;if(!n.end.isTouching(r[yc("0x8f")]))return!1;const o=i.createRange(n[yc("0x15e")],r[yc("0x8f")])[yc("0x56")]();for(const t of o)if([yc("0x153"),yc("0xa9")][yc("0x58")](t[yc("0xa5")])&&i[yc("0x13a")].isLimit(t[yc("0x171")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x3f")]||!e[yc("0x3f")])&&jr(bc(t[yc("0x134")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t[yc("0x134")]),r=Dc(e);if(!t[yc("0x3f")])return!1;for(const t of Object[yc("0x108")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x4c")]({},t);return delete e[yc("0x40")],delete e[yc("0x18")],e}const Bc=["getRanges","view","plugins","stopListening","_editor","PENDING_ACTION_SUGGESTION","_acceptCommand","isEnabled","canAccept","_discardCommand","change:isDirty","execute","_pendingAction","canDiscard","isDirty","acceptSuggestion","unbind","listenTo","PendingActions","get","canEditAt","commands","model","discardSuggestion","_setPendingAction","bind","remove","destroy","commentThreadController","_removePendingAction"];var Pc,Uc;Pc=Bc,Uc=338,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xe")]=e,this[jc("0x17")]=n,this[jc("0x14")]=r,this._editor=t,this._acceptCommand=t[jc("0xd")][jc("0xb")](jc("0x7")),this[jc("0x1")]=t[jc("0xd")][jc("0xb")]("discardSuggestion"),this[jc("0x17")].bind(jc("0x1d")).to(this._acceptCommand,this[jc("0x1")],((t,e)=>t||e)),this[jc("0x17")][jc("0x11")]("canAccept").to(this[jc("0x1c")],jc("0x1d"),(t=>t&&this[jc("0x1a")][jc("0xe")][jc("0xc")](e[jc("0x16")]()))),this.view.bind(jc("0x5")).to(this[jc("0x1")],jc("0x1d"),(t=>t&&this[jc("0x1a")][jc("0xe")][jc("0xc")](e[jc("0x16")]()))),this[jc("0x4")]=null,n[jc("0x6")]&&this[jc("0x10")](),this[jc("0x9")](n,jc("0x7"),(()=>this[jc("0x7")]())),this.listenTo(n,"discardSuggestion",(()=>this[jc("0xf")]())),this[jc("0x9")](n,jc("0x2"),(()=>{n.isDirty?this[jc("0x10")]():this[jc("0x15")]()}))}[jc("0x7")](){this[jc("0x1c")].execute(this.model.id)}[jc("0xf")](){this._discardCommand[jc("0x3")](this[jc("0xe")].id)}[jc("0x13")](){this[jc("0x17")][jc("0x8")](jc("0x1d")),this[jc("0x17")][jc("0x8")](jc("0x0")),this[jc("0x17")][jc("0x8")](jc("0x5")),this[jc("0x19")](),this[jc("0x14")][jc("0x13")](),this[jc("0x4")]&&this[jc("0x15")]()}[jc("0x10")](){const t=Jr(this[jc("0x1a")].locale,jc("0x1b"));this._pendingAction=this[jc("0x1a")][jc("0x18")][jc("0xb")](jc("0xa")).add(t)}[jc("0x15")](){null!==this[jc("0x4")]&&this._editor[jc("0x18")][jc("0xb")](jc("0xa"))[jc("0x12")](this[jc("0x4")]),this[jc("0x4")]=null}}const Vc=["CommentView","commentInputView","_config","editor","cancel","descriptionParts","element","fire","showInput","bind","addComment","_createCommentThreadInputView","canDiscard","value","delegate","commentsListView","_model","setData","assign","locale","destroy","length","commentThreadInputView","_localUser","focus","hasDirtyComment","set","updateComment","isActive","authoredAt","isDirty","isReadOnly","commentThread","_createCommentViews"];var Hc,zc;Hc=Vc,zc=250,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0xa")]=null,this[Wc("0xe")](Wc("0x10"),!1),this.set(Wc("0x11"),e.authoredAt),this[Wc("0x1f")]("authoredAt").to(e),this[Wc("0xe")](Wc("0x1b"),[]),this[Wc("0xe")](Wc("0x12"),!1),this[Wc("0xe")]("isEnabled",!1),this[Wc("0xe")]("canAccept",!1),this[Wc("0xe")](Wc("0x0"),!1),this[Wc("0x4")]=e,this[Wc("0xb")]=n,this[Wc("0x18")]=r,r.disableComments?this[Wc("0xe")](Wc("0x9"),1):this[Wc("0x15")]()}[Wc("0xc")](){this[Wc("0x1c")].focus()}[Wc("0x8")](){this[Wc("0x3")]&&this[Wc("0x3")][Wc("0x8")](),this[Wc("0xa")]&&this[Wc("0xa")][Wc("0x8")](),super[Wc("0x8")]()}[Wc("0x15")](){const{CommentsListView:t}=this[Wc("0x18")];this[Wc("0x3")]=new t(this[Wc("0x7")],this._model[Wc("0x14")],Object[Wc("0x6")]({CommentView:this[Wc("0x18")][Wc("0x16")]},this[Wc("0x18")])),this.commentsListView[Wc("0x2")]("removeComment").to(this),this.commentsListView[Wc("0x2")](Wc("0xf")).to(this),this[Wc("0x3")][Wc("0x1f")]("isActive").to(this),this[Wc("0xe")](Wc("0x9"),this[Wc("0x3")][Wc("0x9")]+1),this[Wc("0x1f")](Wc("0x9")).to(this[Wc("0x3")],"length",(t=>t+1)),this.commentThreadInputView=this[Wc("0x21")](),this.on("removeComment",(()=>this[Wc("0xc")]())),this[Wc("0x1f")](Wc("0x12")).to(this[Wc("0x3")],Wc("0xd"),this[Wc("0xa")][Wc("0x17")],Wc("0x1"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Wc("0x18")],e=new t(this[Wc("0x7")],this._localUser,this._config.editorConfig),n=e[Wc("0x17")];return e[Wc("0x1f")](Wc("0x1e")).to(this,Wc("0x10"),this[Wc("0x4")][Wc("0x14")],Wc("0x13"),n,Wc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x1d")](Wc("0x20"),e),n[Wc("0x19")][Wc("0x5")]("")})),n.on(Wc("0x1a"),(()=>this[Wc("0xc")]())),n[Wc("0x1f")]("disabledSubmit").to(this[Wc("0x4")][Wc("0x14")],Wc("0x13")),e}}const qc=["innerText","join","bind","title","setTemplate","_model","EXTERNAL_AVATAR","ck-suggestion","commentThreadInputView","querySelector","<p>","map","canAccept","innerHTML","discardSuggestion","description","discardButton","ck-comment__external","cancel","split","locale","userView","element","attributes","_descriptionElement","descriptionParts","ck-suggestion-wrapper","color","</p>","isEnabled","type","span","_createButton","EXTERNAL_SUGGESTION","author",'<span class="ck-suggestion-color" style="background-color: ',"source","Accept suggestion","ck-suggestion--discard","fire","name","createElement","getUserViewNotificationText","ck-annotation__main","ck-suggestion__user","authoredAt","push","commentsListView","ck-suggestion-wrapper--active","isExternal","ck-comment__info-time","formatDateTime","commentThread","Discard suggestion","set","ck-suggestion-","ck-annotation__content-wrapper","execute","ck-suggestion__main","ck-suggestion__info","delegate","ck-suggestion--disabled-comments","editorReady","creator","importWord","ck-suggestion__info-name","getExternalSuggestionNote","ck-suggestion__actions","time","isActive","@external","extendTemplate","editorDestroyed","ck-annotation__user","getTemplate","check","_config",'" title="',"bindTemplate","ck-annotation__info-time","div","render","children"];var Xc,$c;Xc=qc,$c=163,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this.set(Zc("0x21"),""),this[Zc("0x5")](Zc("0x21")).to(this,Zc("0x1c"),(t=>t&&t[0]?t[0][Zc("0x21")]:"")),this[Zc("0x5")]("description").to(this,Zc("0x1c"),this,Zc("0x48"),((t,e)=>{let n="";for(const e of t)n+=Zc("0xd")+Jc(e.content,e[Zc("0x1e")])+Zc("0x1f");return e?n:(0,o.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[Zc("0x23")](Jr(e,Zc("0x28")),t.icons[Zc("0x4e")],"ck-suggestion--accept","acceptSuggestion","sw"),this.acceptButton[Zc("0x5")](Zc("0x20")).to(this,Zc("0xf")),this.discardButton=this[Zc("0x23")](Jr(e,Zc("0x38")),t.icons[Zc("0x15")],Zc("0x29"),Zc("0x11"),"sw"),this[Zc("0x13")].bind(Zc("0x20")).to(this,"canDiscard"),this[Zc("0x18")]=new o.UserView(e,this[Zc("0x8")][Zc("0x25")],this[Zc("0x2d")]()),this.userView[Zc("0x4a")]({attributes:{class:[Zc("0x2f"),Zc("0x4c")]}}),this[Zc("0x7")](this.getTemplate())}[Zc("0x4d")](){const t=this[Zc("0x51")],e=[{tag:Zc("0x0"),attributes:{class:[Zc("0x3e"),"ck-annotation__info"]},children:[{tag:Zc("0x22"),children:[{text:this.userView[Zc("0x2b")]}],attributes:{class:[Zc("0x44"),"ck-annotation__info-name"]}},{tag:Zc("0x47"),attributes:{datetime:t.to(Zc("0x30")),class:[Zc("0x35"),Zc("0x52")]},children:[{text:t.to(Zc("0x30"),(t=>this[Zc("0x4f")][Zc("0x36")](t)))}]}]},{tag:Zc("0x0"),attributes:{class:[Zc("0x46"),"ck-annotation__actions"]},children:[this.acceptButton,this[Zc("0x13")]]},{tag:"div",attributes:{class:[Zc("0x3b")]}}];this[Zc("0x8")].isExternal&&e.push({tag:"div",attributes:{class:[Zc("0x14")]},children:[{text:this[Zc("0x45")]()}]});const n={tag:Zc("0x0"),attributes:{class:[Zc("0x1d"),t.if(Zc("0x48"),Zc("0x33")),t.to("type",(t=>Zc("0x3a")+t)),this[Zc("0x4f")].disableComments&&Zc("0x40")],"data-suggestion-id":this._model.id,"data-thread-id":this[Zc("0x8")][Zc("0x37")].id,"data-author-id":this[Zc("0x8")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[Zc("0xa"),"ck-annotation"]},children:[this[Zc("0x18")],{tag:"div",attributes:{class:[Zc("0x3d"),Zc("0x2e")]},children:e}]}]};return this[Zc("0x32")]&&this[Zc("0xb")]&&(n[Zc("0x2")][Zc("0x31")](this[Zc("0x32")],this[Zc("0xb")]),this.commentsListView.delegate(Zc("0x41")).to(this),this[Zc("0x32")].delegate(Zc("0x4b")).to(this),this[Zc("0xb")][Zc("0x3f")]("editorReady").to(this),this.commentThreadInputView.delegate(Zc("0x4b")).to(this)),n}[Zc("0x1")](){super[Zc("0x1")](),this[Zc("0x1b")]=this[Zc("0x19")][Zc("0xc")](".ck-annotation__content-wrapper"),this[Zc("0x1b")][Zc("0x10")]=this[Zc("0x12")],this.on("change:description",((t,e,n)=>{this[Zc("0x1b")][Zc("0x10")]=n}))}[Zc("0x23")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x17")]);return s[Zc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x4a")]({attributes:{class:n}}),s.on(Zc("0x3c"),(()=>{this[Zc("0x2a")](r,this._model.id)})),s}[Zc("0x45")](){return Zc("0x43")===this[Zc("0x8")][Zc("0x1a")][Zc("0x49")].source?Jr(this[Zc("0x17")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x17")],Zc("0x24"))}getUserViewNotificationText(){return this[Zc("0x8")][Zc("0x34")]?Zc("0x43")===this._model[Zc("0x1a")][Zc("0x49")][Zc("0x27")]?Jr(this[Zc("0x17")],"EXTERNAL_IMPORT_WORD_AVATAR",this._model[Zc("0x42")][Zc("0x2b")]):Jr(this[Zc("0x17")],Zc("0x9"),this[Zc("0x8")][Zc("0x42")][Zc("0x2b")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x16")]("*")[Zc("0xe")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Qc(t)+"</span>":Qc(t)))[Zc("0x4")](""),e&&(n+=Zc("0x26")+e.value+Zc("0x50")+e[Zc("0x6")]+'"></span>'),n}function Qc(t){const e=document[Zc("0x2c")](Zc("0x22"));return e[Zc("0x3")]=t,e[Zc("0x10")]}const tl=["EditorAnnotations","registerAnnotation","Accept all suggestions","button","activeAnnotations","CommentsUI","TrackChangesUI","head","actionView","_viewToController","commands","getMarkers","suggestion-","plugins","hasSuggestion","descriptionParts","getSuggestion","TrackChangesEditing","arrowView","add","_createUIButton","map","requires","suggestionChanged","stopListening","_handleSuggestionControllerDelayed","set","config","locale","lowest","_refreshActiveMarkers","init","define","componentFactory","value","Annotations","has","comments.editorConfig","clear","delete","_destroyController","focus","_updateController","listenTo","destroy","_unbindEditors","isEnabled","Discard all suggestions","isOn","commentThread","mainView","trackChanges","reduce","pluginName","bind","getRanges","model","_disableComments","values","getByInnerView","push","comments.maxCommentCharsWhenCollapsed","editor","execute","switchbutton","buttonView","commandName","isDirty","length","suggestionLoaded","change:previous","comments","isInContent","innerView","acceptAllSuggestions","suggestionUnloaded","filter","trackChanges.disableComments","discardAllSuggestions","trackChanges.SuggestionThreadView","from","acceptSelectedSuggestions","_handleControllerBuffer","createCommentThreadController","change:activeAnnotations","comments.maxThreadTotalWeight","Track changes","previous","addComment","CommentsRepository","toMany","view","get","editing","_bindAnnotationToEditors","acceptButton","size","type","getJoined","getDescriptions","unbind","addSourceCollector","discardButton","_descriptionFactory","_suggestionToController","_annotationViews","getAllAdjacentSuggestions","separator","refreshSelectedViews"];var el,nl;el=tl,nl=135,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x69")](){return[Ac,o.Users,rl("0x3f"),"Annotations",rl("0x53")]}static get[rl("0x1b")](){return rl("0x59")}constructor(t){super(t),this[rl("0x4e")]=new Map,this[rl("0x5c")]=new Map,this[rl("0x4f")]=new Map,this[rl("0x38")]=new Map;const e=this[rl("0x24")].config;e[rl("0x6")](rl("0x35"),Yc),e[rl("0x6")]("trackChanges.disableComments",!1),this._disableComments=e[rl("0x42")](rl("0x33"))}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x38")][rl("0x46")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x38")]){const n=this._suggestionToController[rl("0xa")](t);n||e?n&&e&&this[rl("0xe")](t):this._initializeController(t)}this[rl("0x38")][rl("0xc")](),this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x53"))[rl("0x52")](),this[rl("0x4")]()}),10),this[rl("0x38")][rl("0x0")](t,e)}[rl("0x5")](){const t=this.editor,e=t[rl("0x60")].get(rl("0x64")),n=t.plugins.get(rl("0x9")),r=t[rl("0x60")].get(rl("0x53")),i=t[rl("0x60")][rl("0x42")](rl("0x3f"));t.ui[rl("0x7")][rl("0x66")](rl("0x19"),(t=>this[rl("0x67")](t))),r[rl("0x4b")]((()=>{const t=[];for(const[e,n]of Array[rl("0x36")](this[rl("0x4e")])){const r=e[rl("0x50")](),i=[];for(const t of r){if(!t[rl("0x2e")])continue;if(t.isMultiRange){i[rl("0x22")](...t[rl("0x1d")]());continue}const e=t.getFirstRange();if(i[rl("0x2a")]>0){const t=i[0][rl("0x48")](e);if(t){i[0]=t;continue}}i[rl("0x22")](e)}t.push([n[rl("0x41")],i])}return t})),this[rl("0x11")](e,rl("0x2b"),((t,e)=>{this[rl("0x11")](e,rl("0x2c"),((t,n,r,i)=>{e[rl("0x2e")]&&(null==r?(this._updateController(i[rl("0x5a")]),this[rl("0x6c")](e,!1)):(this[rl("0x10")](r.head),null==i&&this[rl("0x6c")](e,!0)))})),null!==e[rl("0x3d")]?this[rl("0x10")](e[rl("0x5a")]):this._handleSuggestionControllerDelayed(e,!1)})),this[rl("0x11")](e,rl("0x31"),((t,e,n)=>{this[rl("0x6b")](e,rl("0x2c")),this[rl("0x38")][rl("0xd")](e),this._suggestionToController[rl("0xa")](e)&&this._destroyController(e),n&&this._updateController(n.head)})),this[rl("0x11")](e,rl("0x6a"),((t,e)=>{this[rl("0x10")](e)})),this[rl("0x11")](n,rl("0x3a"),(()=>{this[rl("0x4")]()})),this[rl("0x11")](i,rl("0x3e"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x61")](n))return;const i=e[rl("0x63")](n);this[rl("0x4e")].get(i).view[rl("0xf")]()}),{priority:rl("0x3")})}[rl("0x4")](){const t=this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x9")),e=this[rl("0x24")].plugins.get(rl("0x64")),n=Array[rl("0x36")](t[rl("0x57")],(t=>t[rl("0x2f")]))[rl("0x32")]((t=>this._viewToController[rl("0xa")](t))),r=[];for(const t of n){const e=this[rl("0x5c")][rl("0x42")](t)[rl("0x1e")].getAllAdjacentSuggestions();r[rl("0x22")](...e[rl("0x1a")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=r}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this[rl("0x24")][rl("0x5d")][rl("0x42")](rl("0x19")),o=Jr(t,rl("0x3c"));n.buttonView[rl("0x0")]({tooltip:o,label:o,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[rl("0x27")][rl("0x1c")]("isOn").to(r,rl("0x8")),n[rl("0x27")].on("execute",(()=>{r[rl("0x25")](),this[rl("0x24")][rl("0x43")].view.focus()}));const s=new e.Collection,x=[{type:rl("0x26"),model:{withText:!0,label:o,commandName:rl("0x19")}},{type:rl("0x51")},{type:"button",model:{withText:!0,label:Jr(t,rl("0x55")),commandName:rl("0x30")}},{type:rl("0x56"),model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:rl("0x37")}},{type:rl("0x56"),model:{withText:!0,label:Jr(t,rl("0x15")),commandName:rl("0x34")}},{type:"button",model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:rl("0x51")};if(t.model){const n=new i.ViewModel(t[rl("0x1e")]),r=this[rl("0x24")][rl("0x5d")].get(n[rl("0x28")]);n.bind(rl("0x16"),rl("0x14")).to(r,rl("0x8"),rl("0x14")),e={type:t[rl("0x47")],model:n}}s.add(e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x32")]((t=>null!=t.model))[rl("0x68")]((t=>this[rl("0x24")][rl("0x5d")][rl("0x42")](t[rl("0x1e")][rl("0x28")]))),c=n[rl("0x27")];return c[rl("0x5b")][rl("0x4a")](rl("0x14")),c[rl("0x65")][rl("0x4a")](rl("0x14")),c.actionView[rl("0x1c")](rl("0x14")).to(r,rl("0x14")),c.arrowView.bind(rl("0x14"))[rl("0x40")](a,rl("0x14"),((...t)=>t.some((t=>t)))),n.on(rl("0x25"),(t=>{this[rl("0x24")][rl("0x25")](t.source[rl("0x28")]),this[rl("0x24")][rl("0x43")][rl("0x41")][rl("0xf")]()})),n}_initializeController(t){const e=this.editor,n=e[rl("0x1")],r=e[rl("0x60")][rl("0x42")]("Annotations"),i=e.plugins[rl("0x42")](rl("0x3f")),s=e[rl("0x60")][rl("0x42")](rl("0x53")),x=e.plugins[rl("0x42")](o.Users).me,a=n[rl("0x42")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x60")].get(rl("0x58"));let u,d;this[rl("0x4f")][rl("0xa")](t.id)?(d=this[rl("0x4f")][rl("0x42")](t.id),u=d[rl("0x18")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x1f")],editorConfig:n[rl("0x42")](rl("0xb")),maxCommentsWhenCollapsed:n[rl("0x42")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[rl("0x42")](rl("0x3b")),maxCommentCharsWhenCollapsed:n.get(rl("0x23")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x42")](rl("0x2"))),CommentView:n[rl("0x42")](rl("0x2d")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[rl("0x45")].on(rl("0x25"),(()=>{e.editing[rl("0x41")][rl("0xf")]()})),u[rl("0x4c")].on(rl("0x25"),(()=>{e[rl("0x43")].view[rl("0xf")]()})),d=r.createAnnotationView(this[rl("0x24")][rl("0x2")],u),d.bind(rl("0x29")).to(u,rl("0x29")),d[rl("0x1c")]("length").to(u),d[rl("0x1c")](rl("0x47")).to(u,rl("0x47"),(t=>rl("0x5f")+t)),this[rl("0x4f")][rl("0x0")](t.id,d));const g=i[rl("0x39")](t[rl("0x17")],u),f=new Gc(e,t,u,g),h=t.getAllAdjacentSuggestions()[rl("0x32")]((t=>t[rl("0x2e")]));u.descriptionParts=e[rl("0x60")].get(rl("0x64"))[rl("0x4d")].getDescriptions(h),this[rl("0x4e")][rl("0x0")](t,f),this[rl("0x5c")][rl("0x0")](u,f);const m=r.createAnnotation({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0x32")]((t=>t.isInContent));for(const t of r)n[rl("0x22")](...t[rl("0x5e")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x43")],n)},type:()=>rl("0x5f")+f.view.type});i[rl("0x44")](u,m),r.add(m),s[rl("0x54")](m)}_destroyController(t){const e=this.editor[rl("0x60")][rl("0x42")]("CommentsRepository"),n=this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x9")),r=this[rl("0x4e")][rl("0x42")](t),i=r[rl("0x41")],o=n[rl("0x21")](i);e[rl("0x13")](i),o&&n.remove(o),this[rl("0x4e")][rl("0xd")](t),this[rl("0x5c")][rl("0xd")](i),r[rl("0x12")]()}_updateController(t){if(!t[rl("0x2e")]||!this[rl("0x4e")][rl("0xa")](t))return;const e=this.editor.plugins[rl("0x42")]("TrackChangesEditing"),n=this[rl("0x4e")][rl("0x42")](t),r=t[rl("0x50")]();n[rl("0x41")][rl("0x62")]=e[rl("0x4d")][rl("0x49")](r)}[rl("0x12")](){for(const t of this[rl("0x4e")].keys())this[rl("0xe")](t);for(const t of this[rl("0x4f")][rl("0x20")]())t[rl("0x18")][rl("0x12")]();super[rl("0x12")]()}}var ol,sl,xl=["plugins","adapter","get","getSuggestion","addSuggestionData","addSuggestion","editor","Comments","TrackChanges","requires","getSuggestions"];ol=xl,sl=235,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x5")](){return[Ac,il,al("0x3")]}static get pluginName(){return al("0x4")}set[al("0x8")](t){this[al("0x2")][al("0x7")][al("0x9")](Ac).adapter=t}get[al("0x8")](){return this[al("0x2")].plugins.get(Ac)[al("0x8")]}[al("0x1")](t){return this[al("0x2")][al("0x7")][al("0x9")](Ac)[al("0x0")](t)}[al("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[al("0x7")][al("0x9")](Ac)[al("0x6")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[al("0x2")][al("0x7")][al("0x9")](Ac)[al("0xa")](t)}}const ll=["end","editor","init","name","editorCreator","createElement","set","createDocumentFragment","discardAllSuggestions","pluginName","TrackChangesData","document","data","getUser","appendChild","create","div","getDataWithDiscardedSuggestions","map","model","requires","constructor","config","trackChangesData.editorCreator","result","_adapter","trackChangesData","users","Users","get","TrackChangesEditing","function","destroy","track-changes-data-invalid-editor-creator","getFullData","plugins","addUser","TrackChangesDataGetter","reduce"];var ul,dl;ul=ll,dl=445,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=["Pagination"];class hl extends t.Plugin{static get[gl("0x4")](){return[Ac]}static get[gl("0x20")](){return gl("0x21")}[gl("0x19")](){const t=this.editor;if(t[gl("0x6")].define(gl("0x7"),(e=>{const n=t[gl("0x3")].document.getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[gl("0x5")][gl("0x26")](n,e)})),gl("0xf")!=typeof t[gl("0x6")].get(gl("0xa"))[gl("0x1b")])throw new e.CKEditorError(gl("0x11"))}getDataWithAcceptedSuggestions(t){return bl(this[gl("0x18")],!0,t)}[gl("0x1")](t){return bl(this[gl("0x18")],!1,t)}}class ml extends t.Plugin{static get pluginName(){return gl("0x15")}constructor(t){super(t),this[gl("0x8")]=gl("0x17")}[gl("0x19")](){this[gl("0x18")][gl("0x13")][gl("0xd")]("CommentsRepository")[gl("0x9")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[gl("0x18")][gl("0x13")][gl("0xd")](gl("0xe"))._adapter=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x13")].push(Ac,ml),r.rootsAttributes=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x1e")](),s=t[gl("0x6")].get(gl("0xa"))[gl("0x1b")],x=await s(r,(()=>function(t){const e=document[gl("0x1c")](gl("0x0"));return t[gl("0x25")](e),e}(i)));!function(t,e){const n=t[gl("0x3")][gl("0x22")].getRootNames()[gl("0x16")](((e,n)=>(e[n]=t[gl("0x23")][gl("0xd")]({rootName:n}),e)),{}),r=t[gl("0x13")].get(gl("0xc"))[gl("0xb")][gl("0x2")]((t=>({id:t.id,name:t[gl("0x1a")]}))),i=t[gl("0x13")][gl("0xd")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e.plugins[gl("0xd")](gl("0xc")),s=e[gl("0x13")][gl("0xd")]("TrackChangesEditing");for(const t of r)o[gl("0x24")](t.id)||o[gl("0x14")](t);o.me||o.useAnonymousUser();for(const t of i)s.addSuggestionData(t);e[gl("0x23")][gl("0x1d")](n)}(t,x),x.execute(e?"acceptAllSuggestions":gl("0x1f"));const a=pl(x)?x[gl("0x12")](n):x.data[gl("0xd")](n);return await x[gl("0x10")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),i=n(273),o=n(417),s=n(492),x=n(995);const a=["isEnabled","editor","value","affectsData","forceDisabled","refresh","commands","_isEnabledBasedOnSelection","TrackChangesCommand","execute","_enabledCommands","_disableUnsupportedCommands","clearForceDisabled","_enableCommands"];var c,l;c=a,l=461,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x3")]=!1,this[u("0x6")](),this[u("0x8")]=!1}[u("0x6")](){this[u("0x1")]=!0}[u("0xa")](){this.value=!this.value,this[u("0x3")]?this._disableUnsupportedCommands():this[u("0x0")]()}[u("0xc")](){for(const t of this[u("0x2")][u("0x7")].commands())t[u("0x4")]&&!this[u("0xb")].has(t)&&t[u("0x5")](u("0x9"))}[u("0x0")](){for(const t of this[u("0x2")].commands.commands())t[u("0x4")]&&!this[u("0xb")].has(t)&&t[u("0xd")](u("0x9"))}}const g=["model","getRanges","refresh","_isEnabledBasedOnSelection","TrackChangesEditing","get","execute","editor","acceptSuggestion","_suggestions","plugins"];var f,h;f=g,h=156,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x7")]=e,this[m("0x0")](),this[m("0x1")]=!1}[m("0x0")](){this.isEnabled=!0}[m("0x4")](t){const n=this[m("0x7")][m("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const r=n[m("0xa")]();this[m("0x5")][m("0x9")].canEditAt(r)&&this[m("0x5")][m("0x8")][m("0x3")](m("0x2"))[m("0x6")](n)}}const b=["_suggestions","model","getRanges","isEnabled","refresh","editor","discardSuggestion","canEditAt","_isEnabledBasedOnSelection","get","execute","TrackChangesEditing","track-changes-discard-suggestion-not-found"];var E,_;E=b,_=456,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[T("0xc")]=e,this[T("0x3")](),this[T("0x7")]=!1}[T("0x3")](){this[T("0x2")]=!0}[T("0x9")](t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(T("0xb"),this);const r=n[T("0x1")]();this[T("0x4")][T("0x0")][T("0x6")](r)&&this.editor.plugins[T("0x8")](T("0xa"))[T("0x5")](n)}}const C=["color","isMultiRange","isInContent","start","isIntersecting","createRange","add"," [color ","replace","from","createPositionBefore","getRanges","next","content","createPositionAfter","execute","sort","length","isTouching","end","push","isArray","type","deletion","join","map"];var A,k;A=C,k=132,function(t){for(;--t;)A.push(A.shift())}(++k);const R=function(t,e){return C[t-=0]};function S(t){return t[R("0xe")](((t,e)=>R("0x15")==t[R("0x14")]&&R("0x15")!=e[R("0x14")]?-1:R("0x15")!=t[R("0x14")]&&R("0x15")==e[R("0x14")]?1:0))}function I(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t[R("0xf")];){const s=t[r],x=t[r+1];n||(n=e[R("0x8")](s)),N(e,s,x)||(i[R("0x12")](e[R("0x3")](n,o.isObject(s)?e[R("0xc")](s):e.createPositionAt(s,R("0x11")))),n=null),r++}return i}function N(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t.createPositionBefore(n);return r[R("0x10")](i)}function v(t,e,n){for(;n[R("0xf")];){const r=n.splice(0,100);t.change((()=>{for(const t of r)t[R("0x0")]&&e[R("0xd")](t.id)}))}}const L=["some","from","isInContent","getRanges","editor","values","_command","_suggestions","_isEnabledBasedOnSelection","canEditAt","execute","refresh","model","isEnabled"];var M,w;M=L,w=392,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this[O("0x7")]=n,this[O("0xb")](),this[O("0x8")]=!1}[O("0xb")](){const t=Array[O("0x1")](this._suggestions[O("0x5")]())[O("0x0")]((t=>t[O("0x2")]));this[O("0xd")]=this[O("0x6")][O("0xd")]&&t}[O("0xa")](){const t=S(Array[O("0x1")](this[O("0x7")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x4")][O("0xc")][O("0x9")](t))return}v(this[O("0x4")].model,this[O("0x6")],t)}}const D=["execute","selection","_selectedSuggestions","document","isEnabled","canEditAt","editor","values","_command","size","getRanges","_isEnabledBasedOnSelection","refresh","model","from"];var B,P;B=D,P=120,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._suggestions=n,this[U("0x2")]=new Set,this[U("0xc")](),this[U("0xb")]=!1}[U("0xc")](){const t=this.editor[U("0xd")][U("0x3")][U("0x1")],e=Array[U("0xe")](this._suggestions[U("0x7")]());this[U("0x2")]=function(t,e){const n=Array[R("0x7")](t[R("0x9")]()),r=new Set;for(const i of e)if(i[R("0x0")])for(const e of n)for(const n of i.getRanges())(e[R("0x2")](n)||t.isCollapsed&&!i[R("0x19")]&&i[R("0xa")]&&n.end[R("0x10")](e[R("0x1")]))&&r[R("0x4")](i);return r}(t,e),this[U("0x4")]=this[U("0x8")][U("0x4")]&&!!this[U("0x2")][U("0x9")]}[U("0x0")](){const t=S(Array[U("0xe")](this[U("0x2")]));for(const e of t){const t=e[U("0xa")]();if(!this[U("0x6")][U("0xd")][U("0x5")](t))return}v(this[U("0x6")][U("0xd")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const 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 rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var i=xt.call(t);return r&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,Rt=At.hasOwnProperty,St=RegExp("^"+kt.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!ft(t)||Et(t))&&(ht(t)?St:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return It(n)?n:void 0};const Lt=vt(rt,"Map");const Mt=vt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function 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,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?rt.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Re&&Re.exports===ke&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Ne=Ie&&Ie.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),i=!n&&!r&&be(t),o=!n&&!r&&!i&&ve(t),s=n||r||i||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Je=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=vt(rt,"DataView");const fn=vt(rt,"Promise");const hn=vt(rt,"Set");const mn=vt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),Rn=Tt(mn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||hn&&Sn(new hn)!=En||mn&&Sn(new mn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case Rn:return _n}return e});const In=Sn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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 tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=In(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?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(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=pr(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Rr=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Ir=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Nr=it?it.prototype:void 0,vr=Nr?Nr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Sr;case"[object Set]":var a=1&r;if(x||(x=Ir),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Rr(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(vr)return vr.call(t)==vr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var p=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===p?h===m||i(h,m,n,r,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:In(t),c=x?Fr:In(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||ve(t)?Rr(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Qt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["getMultiRangeId","nodeBefore","_onDiscard","start","addMarker","decorate","_onAccept","attributes","filter","authoredAt","isIntersectingWithRange","hasComments","subType","toJSON","getMarkers","change","getFirstRange","substr","end","size","data","addRange","getFirstMarker","previous","removeAttribute","getRange","head","getRanges","suggestion:","add","getItems","creator","push","addMarkerName","isInContent","_isDataLoaded","discard","getAllAdjacentSuggestions","map","split","reduce","removeMarkers","_model","markers","clear","set","commentThread","author","createdAt","from","length","removeMarker","_markerNames","_onAttributesChange","accept","type","next","onAccept"];var Xr,$r;Xr=qr,$r=340,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x2b")]=!1,this.id=e.id,this[Zr("0x5")]=e[Zr("0x5")],this[Zr("0x14")]=e[Zr("0x14")]||null,this[Zr("0x37")]=e[Zr("0x37")],this[Zr("0x27")]=e.creator||e[Zr("0x37")],this.isExternal=Boolean(e[Zr("0xf")]&&e[Zr("0xf")]["@external"]),this[Zr("0x1c")]=null,this[Zr("0x32")]=t,this._onAccept=e[Zr("0x7")],this[Zr("0xa")]=e.onDiscard,this._onAttributesChange=e.onAttributesChange,this[Zr("0x2")]=new Set,this[Zr("0x38")]=null,this[Zr("0x35")](Zr("0x11"),null),this.set("attributes",e.attributes||{}),this[Zr("0x35")](Zr("0x1f"),null),this[Zr("0x35")](Zr("0x6"),null),this[Zr("0x35")](Zr("0x36"),null),this[Zr("0x35")]("_saved",!1),this[Zr("0xd")](Zr("0x4")),this.decorate(Zr("0x2c"))}get[Zr("0x22")](){let t=this;for(;t[Zr("0x1f")];)t=t[Zr("0x1f")];return t}get[Zr("0x13")](){return!!this[Zr("0x36")]&&this[Zr("0x36")][Zr("0x0")]>0}get isMultiRange(){return 0!=this[Zr("0x2")][Zr("0x1b")]&&6==Array[Zr("0x39")](this[Zr("0x2")])[0][Zr("0x2f")](":").length}get[Zr("0x2a")](){return null!==this[Zr("0x1e")]()}[Zr("0x29")](t){this[Zr("0x2")][Zr("0x25")](t)}getMarkerNames(){return Array[Zr("0x39")](this._markerNames)}getMarkers(){return this.getMarkerNames()[Zr("0x2e")]((t=>this[Zr("0x32")][Zr("0x33")].get(t)))[Zr("0x10")]((t=>t))}[Zr("0x1e")](){return this[Zr("0x16")]()[0]||null}removeMarkers(){this._model[Zr("0x17")]((t=>{for(const e of this[Zr("0x16")]())t[Zr("0x1")](e)})),this[Zr("0x2")][Zr("0x34")]()}removeMarker(t){this._model.change((e=>{e[Zr("0x1")](t)})),this[Zr("0x2")].delete(t)}[Zr("0x1d")](t){const e=Zr("0x24")+this.type+":"+this[Zr("0x14")]+":"+this.id+":"+this[Zr("0x27")].id+":"+Yr[Zr("0x8")]();this[Zr("0x29")](e),this[Zr("0x32")][Zr("0x17")]((n=>{n[Zr("0xc")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x12")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Zr("0x23")](){return this[Zr("0x16")]()[Zr("0x2e")]((t=>t[Zr("0x21")]()))}getItems(){return this[Zr("0x23")]()[Zr("0x30")](((t,e)=>[...t,...e[Zr("0x26")]()]),[])}[Zr("0x18")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Zr("0x21")]())||null}getContainedElement(){const t=this[Zr("0x23")]();if(1!=t[Zr("0x0")])return null;const e=t[0],n=e[Zr("0xb")].nodeAfter,r=e[Zr("0x1a")][Zr("0x9")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x4")](){this[Zr("0xe")](this.getRanges(),this.data,this[Zr("0xf")]),this[Zr("0x31")]()}[Zr("0x2c")](){this[Zr("0xa")](this[Zr("0x23")](),this.data,this[Zr("0xf")]),this.removeMarkers()}[Zr("0x2d")](){const t=[];let e=this[Zr("0x22")];for(;e;)t[Zr("0x28")](e),e=e[Zr("0x6")];return t}setAttribute(t,e){const n=er(this[Zr("0xf")]);Er(n,t,e),jr(n,this[Zr("0xf")])||(this[Zr("0xf")]=n,this[Zr("0x3")](n))}[Zr("0x20")](t){const e=er(this[Zr("0xf")]);Kr(e,t),jr(e,this.attributes)||(this[Zr("0xf")]=e,this[Zr("0x3")](this.attributes))}[Zr("0x15")](){return{id:this.id,type:this[Zr("0x14")]?this[Zr("0x5")]+":"+this[Zr("0x14")]:this[Zr("0x5")],authorId:this[Zr("0x27")].id,createdAt:this[Zr("0x38")],hasComments:this[Zr("0x13")],data:this[Zr("0x1c")],attributes:this[Zr("0xf")]}}static[Zr("0x8")](){return(0,e.uid)()[Zr("0x19")](1,5)}}function Jr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qr=["_customCallbacks","getItemLabel","REPLACE_TEXT","_itemLabelsCallbacks","softBreak","end","function","addFormat","getDescriptions","_handleCustomCallbackDescription","set","pop","removeObject","insertion","_resolveDescriptionItems","*Merge:* %0","isObject","*Insert:* %0","attribute","key","map","remove","join","EmptyContainer","registerElementLabel","Container","replace","_attributeLabels","*Remove:* %0","get","add","push","nextSibling","text","checkChild","element","removeContainer","*Remove format:* %0","skip","registerAttributeLabel","indexOf","isInContent","deletion","elementStart","newValue","addObject","name","label","quantity","nodeAfter","subType","$1 $2","_schema","ELEMENT_SPACE","isEmpty","removeFormat","type","matchingCallback","item","$text","length","_handleAttributeSuggestionDescription","previousSibling","has","$textProxy","_locale","match","Object","isEqual","addEmptyContainer","elementEnd","data","_addDescriptionItems","removeEmptyContainer","*Set format:* %0","start","getFirstRange","_itemLabels","format"];var ti,ei;ti=Qr,ei=397,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Qr[t-=0]};class ri{constructor(t,e){this[ni("0x4d")]=[],this[ni("0x4b")]=new Map,this[ni("0x1")]=[],this._attributeLabels=new Map,this[ni("0x32")]=t,this[ni("0x3f")]=e}[ni("0x6")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x3a")];i++){const o=t[i];if(!o[ni("0x27")])continue;const s=this[ni("0x7")](o);if(s){if(null!=o.subType){if(n[ni("0x3d")](o[ni("0x30")]))continue;n[ni("0x1c")](o[ni("0x30")])}e[ni("0x1d")](s)}else if(ni("0x10")!=o[ni("0x36")])ni("0xb")!=o[ni("0x36")]&&"deletion"!=o[ni("0x36")]||this._handleInsertRemoveSuggestionDescription(e,o,t[i+1]);else{const t=o[ni("0x45")][ni("0x11")];if(r[ni("0x3d")](t))continue;r[ni("0x1c")](o[ni("0x45")][ni("0x11")]),t==Cc?this._handleRenameSuggestionDescription(e,o):this[ni("0x3b")](e,o)}}return this[ni("0xc")](e)}registerDescriptionCallback(t){this[ni("0x4d")][ni("0x1d")](t)}[ni("0x16")](t,n,r=e.priorities.normal){ni("0x4")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x1")],{matchingCallback:t,label:n,priority:r}):this[ni("0x4b")][ni("0x8")](t,n)}[ni("0x25")](t,e){this[ni("0x19")].set(t,e)}[ni("0x4e")](t,e=1){let n;for(const e of this[ni("0x1")])if(e[ni("0x37")](t)){n=e[ni("0x2d")];break}return n||(n=this[ni("0x4b")].get(t[ni("0x2c")])),n?n(e):1!==e?e+" "+t[ni("0x2c")]+"s":""+t[ni("0x2c")]}[ni("0x46")](t,e){const n=e.getFirstRange().getWalker(),r=ni("0xb")==e.type?ni("0x1c"):"remove";for(const e of n){const i=e[ni("0x38")],o=t[t[ni("0x3a")]-1];if(i.is(ni("0x3e")))o&&o[ni("0x36")][ni("0x26")](ni("0x17"))>-1&&t[ni("0x9")](),o&&ni("0x1f")==o[ni("0x36")]?o[r]+=i[ni("0x45")]:t[ni("0x1d")]({type:"text",add:"add"==r?i[ni("0x45")]:"",remove:ni("0x13")==r?i.data:""});else if(this[ni("0x32")][ni("0xe")](i)){const s=i;if(o&&o.type[ni("0x26")]("Container")>-1&&t[ni("0x9")](),"elementEnd"==e[ni("0x36")])continue;o&&o[ni("0x36")]==r+ni("0x41")&&o[ni("0x21")][ni("0x2c")]==s[ni("0x2c")]?o.quantity++:t[ni("0x1d")]({type:r+ni("0x41"),element:s,quantity:1}),n[ni("0x24")]((t=>!(ni("0x44")==t[ni("0x36")]&&t[ni("0x38")]==i)))}else if(this[ni("0x32")][ni("0x20")](i,ni("0x39"))||i.is(ni("0x21"),ni("0x2"))){const n=i;if(ni("0x1c")==r&&ni("0x29")==e[ni("0x36")]||ni("0x13")==r&&ni("0x44")==e.type)continue;if(o&&-1==o.type.indexOf(ni("0x17"))){ni("0x1f")==o[ni("0x36")]&&(o[r]+="\n");continue}let s;if(s="add"==r?n[ni("0x1e")]&&!this[ni("0x32")][ni("0xe")](n.nextSibling)?n.nextSibling:null:n.previousSibling&&!this[ni("0x32")][ni("0xe")](n.previousSibling)?n[ni("0x3c")]:null,n[ni("0x34")]||s&&s[ni("0x34")]){const e=s&&s[ni("0x34")]?s:n;o&&o[ni("0x36")]==r+ni("0x15")&&o[ni("0x21")][ni("0x2c")]==e[ni("0x2c")]?o.quantity++:t[ni("0x1d")]({type:r+"EmptyContainer",element:e,quantity:1})}else t[ni("0x1d")]({type:r+ni("0x17"),element:n})}}}[ni("0xc")](t){const e=this[ni("0x3f")],n=[],r=[],i=[];for(const o of t)switch(o[ni("0x36")]){case ni("0x1f"):if(o.add=o[ni("0x1c")][ni("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[ni("0x18")](/\u000A/g,""),o[ni("0x13")]=o[ni("0x13")][ni("0x18")](/(\S)\u000A+(\S)/g,ni("0x31"))[ni("0x18")](/\u000A/g,""),""!=o[ni("0x1c")]&&""!=o[ni("0x13")]){n.push({type:"replace",content:Jr(e,ni("0x0"),['"'+o[ni("0x13")]+'"','"'+o[ni("0x1c")]+'"'])});continue}if(null!=o[ni("0x1c")][ni("0x40")](/^ +$/)){n[ni("0x1d")]({type:"insertion",content:Jr(e,ni("0xf"),Jr(e,"ELEMENT_SPACE",o[ni("0x1c")].length))});continue}if(null!=o[ni("0x13")].match(/^ +$/)){n[ni("0x1d")]({type:ni("0x28"),content:Jr(e,ni("0x1a"),Jr(e,ni("0x33"),o[ni("0x13")].length))});continue}if(""!=o[ni("0x1c")]){n.push({type:ni("0xb"),content:Jr(e,"*Insert:* %0",'"'+o[ni("0x1c")]+'"')});continue}n.push({type:ni("0x28"),content:Jr(e,ni("0x1a"),'"'+o[ni("0x13")]+'"')});continue;case ni("0x43"):case ni("0x2b"):n[ni("0x1d")]({type:ni("0xb"),content:Jr(e,ni("0xf"),this.getItemLabel(o[ni("0x21")],o[ni("0x2e")]))});continue;case ni("0x47"):case ni("0xa"):n[ni("0x1d")]({type:ni("0x28"),content:Jr(e,"*Remove:* %0",this[ni("0x4e")](o[ni("0x21")],o[ni("0x2e")]))});continue;case"addContainer":n[ni("0x1d")]({type:"insertion",content:Jr(e,"*Split:* %0",this[ni("0x4e")](o[ni("0x21")],o[ni("0x2e")]))});continue;case ni("0x22"):n.push({type:ni("0x28"),content:Jr(e,ni("0xd"),this.getItemLabel(o[ni("0x21")],o.quantity))});continue;case ni("0x5"):r.push(o[ni("0x11")]);continue;case"removeFormat":i[ni("0x1d")](o.key);continue;default:n[ni("0x1d")](o)}if(r[ni("0x3a")]){const t=r[ni("0x12")]((t=>this._attributeLabels[ni("0x3d")](t)?this[ni("0x19")][ni("0x1b")](t):t))[ni("0x14")](", ");n[ni("0x1d")]({type:"format",content:Jr(this[ni("0x3f")],ni("0x48"),t)})}if(i[ni("0x3a")]){const t=i[ni("0x12")]((t=>this[ni("0x19")][ni("0x3d")](t)?this._attributeLabels.get(t):t))[ni("0x14")](", ");n.push({type:ni("0x4c"),content:Jr(this[ni("0x3f")],ni("0x23"),t)})}return n}[ni("0x7")](t){for(const e of this[ni("0x4d")]){const n=e(t);if(n&&ni("0x36")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[ni("0x45")],r=void 0===n[ni("0x2a")]?ni("0x35"):"addFormat";t[ni("0x1d")]({type:r,key:n[ni("0x11")]})}_handleRenameSuggestionDescription(t,e){t.push({type:ni("0x4c"),content:Jr(this[ni("0x3f")],"*Change to:* %0",this[ni("0x4e")](e[ni("0x4a")]().start[ni("0x2f")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[ni("0x46")](t,e),n&&n[ni("0x4a")]()&&!e[ni("0x4a")]()[ni("0x3")][ni("0x42")](n[ni("0x4a")]()[ni("0x49")])){const n=t[t[ni("0x3a")]-1],r=ni("0xb")==e.type?ni("0x1c"):"remove";n&&ni("0x1f")==n.type&&(n[r]+="\n")}}}const ii=["enableCommand","TrackChangesEditing","commands","get","showAIAssistant"];var oi,si;oi=ii,si=490,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins[xi("0x3")](xi("0x1"));t[xi("0x2")][xi("0x3")](xi("0x4"))&&e[xi("0x0")]("showAIAssistant")}}const ci=["alignment","TrackChangesEditing","justify","type","editor","FORMAT_ALIGNMENT","right","plugins","get","FORMAT_ALIGN_TO_CENTER","commandParams","afterInit","locale","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","center","formatBlock","has","format","left","_descriptionFactory"];var li,ui;li=ci,ui=360,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{[di("0x8")](){const t=this[di("0x1")],e=t[di("0x9")];if(!t.plugins[di("0xe")]("AlignmentEditing"))return;const n=t.plugins[di("0x5")](di("0x13"));n._enableDefaultAttributesIntegration(di("0x12"),[],["alignment"]),n[di("0x11")].registerAttributeLabel(di("0x12"),Jr(e,di("0x2"))),this[di("0xb")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[di("0x4")][di("0x5")](di("0x13"))[di("0x11")].registerDescriptionCallback((t=>{if(di("0xd")!=t[di("0x0")])return;const{data:n}=t;if(n&&"alignment"==n.commandName){const t=n[di("0x7")][0].value;return{type:di("0xf"),content:Jr(e,"*Format:* %0",function(t){switch(t){case di("0x10"):return Jr(e,di("0xa"));case di("0x3"):return Jr(e,"FORMAT_ALIGN_TO_RIGHT");case di("0xc"):return Jr(e,di("0x6"));case di("0x14"):return Jr(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fi=["formatInline","_registerLegacyDescription","slice","*Remove format:* %0","has","SuperscriptEditing","FORMAT_ITALIC","FORMAT_BOLD","registerAttributeLabel","superscript","plugins","CodeEditing","underline","_enableDefaultAttributesIntegration","type","editor","*Format:* %0","code","locale","get","TrackChangesEditing","SubscriptEditing","ItalicEditing","_descriptionFactory","format","BoldEditing","commandName","subscript","toLowerCase","strikethrough","FORMAT_","registerDescriptionCallback","toUpperCase","FORMAT_SUPERSCRIPT","FORMAT_STRIKETHROUGH","forceValue","UnderlineEditing"];var hi,mi;hi=fi,mi=483,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const pi=function(t,e){return fi[t-=0]},bi=[pi("0x17"),pi("0x14"),pi("0x22"),pi("0x9"),"StrikethroughEditing",pi("0x13"),pi("0x3")];class Ei extends t.Plugin{afterInit(){const t=this[pi("0xd")],e=t[pi("0x8")][pi("0x11")](pi("0x12")),n=t[pi("0x10")];for(const r of bi){if(!t[pi("0x8")][pi("0x2")](r))continue;const i=r[pi("0x0")](0,-7)[pi("0x1a")](),o=pi("0x1c")+i[pi("0x1e")]();e[pi("0xb")](i,[i]),e[pi("0x15")][pi("0x6")](i,Jr(n,o))}this._registerLegacyDescription()}[pi("0x24")](){const t=this[pi("0xd")],e=t[pi("0x10")],n=t[pi("0x8")][pi("0x11")](pi("0x12"));function r(t,r){n[pi("0x15")][pi("0x1d")]((n=>{if(pi("0x23")!=n[pi("0xc")])return;const{data:i}=n;return i&&i[pi("0x18")]===t?i.commandParams[0][pi("0x21")]?{type:pi("0x16"),content:Jr(e,pi("0xe"),r)}:{type:"format",content:Jr(e,pi("0x1"),r)}:void 0}))}r("bold",Jr(e,pi("0x5"))),r("italic",Jr(e,pi("0x4"))),r(pi("0xa"),Jr(e,"FORMAT_UNDERLINE")),r(pi("0xf"),Jr(e,"FORMAT_CODE")),r(pi("0x1b"),Jr(e,pi("0x20"))),r(pi("0x19"),Jr(e,"FORMAT_SUBSCRIPT")),r(pi("0x7"),Jr(e,pi("0x1f")))}}const _i=["format","commandName","TrackChangesEditing","schema","registerDescriptionCallback","document","enableCommand","BlockQuoteEditing","commands","model","*Remove format:* %0","get","commandParams","_descriptionFactory","name","checkChild","filter","has","plugins","locale","change","blockQuote","*Set format:* %0","value","from","getSelectedBlocks","parent","selection","forceValue","editor"];var Ti,yi;Ti=_i,yi=491,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{afterInit(){const t=this[Ci("0x12")],e=t[Ci("0x8")];if(!t[Ci("0x7")][Ci("0x6")](Ci("0x1a")))return;const n=t[Ci("0x7")][Ci("0x0")](Ci("0x15")),r=this[Ci("0x12")][Ci("0x1b")][Ci("0x0")](Ci("0xa"));n[Ci("0x19")](Ci("0xa"),((e,i={})=>{const o=this[Ci("0x12")][Ci("0x1c")][Ci("0x18")][Ci("0x10")],s=i&&void 0!==i.forceValue?i[Ci("0x11")]:!r[Ci("0xc")];let x=[];if(s){const e=Array[Ci("0xd")](o[Ci("0xe")]())[Ci("0x5")]((t=>ki(t)||function(t,e){const n=e[Ci("0x4")](t[Ci("0xf")],Ci("0xa")),r=e[Ci("0x4")](["$root",Ci("0xa")],t);return n&&r}(t,this[Ci("0x12")].model[Ci("0x16")])));x=I(e,t[Ci("0x1c")])}else{const e=Array[Ci("0xd")](o.getSelectedBlocks()).filter((t=>ki(t)));x=I(e,t[Ci("0x1c")])}t[Ci("0x1c")][Ci("0x9")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ci("0xa"),commandParams:[{forceValue:s}]})}))})),n[Ci("0x2")][Ci("0x17")]((t=>{const{data:n}=t;if(n&&Ci("0xa")==n[Ci("0x14")]){const t=Jr(e,"ELEMENT_BLOCK_QUOTE");return n[Ci("0x1")][0][Ci("0x11")]?{type:Ci("0x13"),content:Jr(e,Ci("0xb"),t)}:{type:"format",content:Jr(e,Ci("0x1d"),t)}}}))}}function ki(t){return Ci("0xa")==t[Ci("0xf")][Ci("0x3")]}const Ri=["changeCaseUpper","has","afterInit","get","changeCaseTitle","CaseChange","plugins","enableCommand","TrackChangesEditing"];var Si,Ii;Si=Ri,Ii=339,function(t){for(;--t;)Si.push(Si.shift())}(++Ii);const Ni=function(t,e){return Ri[t-=0]};class vi extends t.Plugin{[Ni("0x5")](){const t=this.editor;t[Ni("0x0")][Ni("0x4")](Ni("0x8"))&&(t.plugins[Ni("0x6")](Ni("0x2"))[Ni("0x1")](Ni("0x3")),t[Ni("0x0")].get("TrackChangesEditing")[Ni("0x1")]("changeCaseLower"),t[Ni("0x0")][Ni("0x6")](Ni("0x2"))[Ni("0x1")](Ni("0x7")))}}const Li=["get","TrackChangesEditing","ckbox","enableCommand","plugins","editor","afterInit"];var Mi,wi;Mi=Li,wi=263,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x2")](){const t=this[Oi("0x1")];t.commands[Oi("0x3")](Oi("0x5"))&&t[Oi("0x0")][Oi("0x3")](Oi("0x4"))[Oi("0x6")](Oi("0x5"))}}const Di=["model","name","getSelectedBlocks","document","registerElementLabel","config","get","language","afterInit","toLowerCase","codeBlock","forceValue","filter","checkChild","outdentCodeBlock","_descriptionFactory","*Set format:* %0","parent","isLimit","*Remove format:* %0","ELEMENT_CODE_BLOCK","enableCommand","registerDescriptionCallback","blockName","value","has","editor","label","find","languages","commandName","formatBlock","selection","format","plugins","TrackChangesEditing","commandParams","rootElement","markBlockFormat","type"];var Bi,Pi;Bi=Di,Pi=246,function(t){for(;--t;)Bi.push(Bi.shift())}(++Pi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0x2")](){const t=this[Ui("0x14")];if(!t.plugins[Ui("0x13")]("CodeBlock"))return;const e=t[Ui("0x1c")].get(Ui("0x1d")),n=t.locale,r=t[Ui("0x27")][Ui("0x0")](Ui("0x4"))[Ui("0x17")],i=t.commands[Ui("0x0")](Ui("0x4"));e[Ui("0xf")]("indentCodeBlock"),e.enableCommand(Ui("0x8")),e[Ui("0xf")](Ui("0x4"),((n,o={})=>{const s=t[Ui("0x22")],x=t[Ui("0x22")][Ui("0x25")][Ui("0x1a")],a=o&&void 0!==o[Ui("0x5")]?o[Ui("0x5")]:!i[Ui("0x12")];let c;o.language||(o.language=r[0].language),c=a?Array.from(x[Ui("0x24")]()).filter((t=>{return Gi(t)||(e=t,n=s.schema,!e.is(Ui("0x1f"))&&!n[Ui("0xc")](e)&&n[Ui("0x7")](e[Ui("0xb")],Ui("0x4")));var e,n})):Array.from(x.getSelectedBlocks())[Ui("0x6")]((t=>Gi(t)));const l=I(c,s);s.change((()=>{for(const t of l)e[Ui("0x20")](t,{commandName:Ui("0x4"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x11")})}))})),e[Ui("0x9")][Ui("0x26")](Ui("0x4"),(t=>Jr(n,Ui("0xe"),t))),e[Ui("0x9")][Ui("0x10")]((t=>{if(Ui("0x19")!=t[Ui("0x21")])return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i[Ui("0x18")])return;const o=i[Ui("0x1e")][0][Ui("0x1")],s=e(r[Ui("0x16")]((t=>t[Ui("0x1")]===o))[Ui("0x15")])[Ui("0x3")]();return i.commandParams[0][Ui("0x5")]?{type:Ui("0x1b"),content:Jr(n,Ui("0xa"),Jr(n,Ui("0xe"),1)+" ("+s+")")}:{type:Ui("0x1b"),content:Jr(n,Ui("0xd"),Jr(n,Ui("0xe"),1))}}))}}function Gi(t){return Ui("0x4")==t[Ui("0x23")]}const Vi=["editor","afterInit","enableCommand","plugins","get","has"];var Hi,zi;Hi=Vi,zi=259,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x0")](){const t=this[Wi("0x5")];t[Wi("0x2")][Wi("0x4")]("CommentsEditing")&&t[Wi("0x2")][Wi("0x3")]("TrackChangesEditing")[Wi("0x1")]("addCommentThread")}}var qi=n(181);const Xi=["writer","hasAttribute","test","push","name","span","getAttribute","model","listIndent","isBlock","markerRange","elementEnd","consumable","includes","mapper","markerName","isAtEnd","isLimit","listItem","toViewPosition","TrackChangesEditing","addHighlight","nextSibling","isContent","plugins","previousPosition","bindElementToMarker","insert","element","createRangeOn","getItems"];var $i,Zi;$i=Xi,Zi=275,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Ji(t,e,n){const r=[];for(const i of e[Yi("0x3")]())i[Yi("0x5")](t)&&r[Yi("0x7")](n[Yi("0x2")](i));return r}function Qi(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1c")].get(Yi("0x18"));return(i,o,s)=>{if(!s[Yi("0x10")][Yi("0x6")](o.markerRange,i[Yi("0x8")]))return;const x=o[Yi("0xe")].getWalker(),a=o[Yi("0xe")].start,c=t[Yi("0xb")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[Yi("0x1b")](e);const n=s[Yi("0x12")].toViewElement(e);if(n&&n.getCustomProperty(Yi("0x19")))return;Yi("0xf")==t.type&&c[Yi("0xd")](e)&&!c[Yi("0x15")](e)&&(e[Yi("0x1a")]||a[Yi("0x14")]?l&&l.parent==e||(l=e,f(t[Yi("0x1d")]),g=!0):u=u||t[Yi("0x1d")])}function f(t){const i=s[Yi("0x4")].createUIElement(Yi("0x9"),{class:"ck-suggestion-marker-"+e}),x=s[Yi("0x12")][Yi("0x17")](t);n&&r.activeMarkers[Yi("0x11")](o[Yi("0x13")])&&s.writer.addClass("ck-suggestion-marker--active",i),s[Yi("0x4")][Yi("0x0")](x,i),s[Yi("0x12")][Yi("0x1e")](i,o[Yi("0x13")])}d||g||!u||f(u)}}const to=["TrackChangesEditing","setSelection","createRange","model","createSelection","delete","high","selection","uiElement","editor","unit","buffer","end","addMarker:suggestion:deletion","merge","isCollapsed","downcastDispatcher","lock","document","requires","markerName","showSuggestionHighlights","editing","get","fromRange","data","getFirstRange","deleteForward","remove","start","unbindElementFromMarkerName","enqueueChange","bind","mapper","forward","detach","$graveyard","enableCommand"];var eo,no;eo=to,no=174,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get[ro("0x23")](){return[qi.Delete]}init(){const t=this[ro("0x19")],e=t.plugins[ro("0x1")](ro("0x10"));e[ro("0xf")](ro("0x15"));const n=t.commands[ro("0x1")](ro("0x5"));e[ro("0xf")](ro("0x5"),((e,r={})=>{const i=t[ro("0x13")][ro("0x14")](t[ro("0x13")][ro("0x22")][ro("0x17")]);i[ro("0x1f")]&&t.model.modifySelection(i,{direction:ro("0xc"),unit:r[ro("0x1a")]});const o=i[ro("0x4")](),x=s.LiveRange[ro("0x2")](o);let a;e(r),a=ro("0xe")==x.root.rootName?t[ro("0x13")].createRange(o[ro("0x7")]):t[ro("0x13")][ro("0x12")](x[ro("0x7")],x[ro("0x1c")]),x[ro("0xd")](),t[ro("0x13")][ro("0x9")](n[ro("0x1b")].batch,(t=>{n[ro("0x1b")][ro("0x21")](),t[ro("0x11")](t.createRange(a[ro("0x1c")])),n.buffer.unlock()}))})),t[ro("0x0")][ro("0x20")].on(ro("0x1d"),Qi(t,ro("0x1e")),{priority:ro("0x16")}),t[ro("0x3")].downcastDispatcher.on(ro("0x1d"),((e,n,r)=>{r.options[ro("0x25")]&&Qi(t,"merge",{showActiveMarker:!1})[ro("0xa")](this)(e,n,r)}),{priority:ro("0x16")}),t[ro("0x0")].downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[ro("0xb")].markerNameToElements(e[ro("0x24")]);if(r)for(const t of r)t.is(ro("0x18"))&&(n[ro("0xb")][ro("0x8")](t,e[ro("0x24")]),n.writer[ro("0x6")](t))}),{priority:ro("0x16")})}}const oo=["bulletedList","noTrackChangesFixer","nodeAfter","getSuggestions","documentList","registerCustomCallback","document","plugins","outdentList","TodoListEditing","listItemIdFixer","forceValue","getChanges","isObject","listType","isUndo","getFirstRange","getFirstMarker","*Format:* insert into %0","*Merge:* %0","ELEMENT_TODO_LIST","deletion","refresh","listItemId","registerPostFixer","value","format","isLocal","TrackChangesEditing","key","end","*Remove format:* %0","commands","ELEMENT_BULLETED_LIST","mergeListItemBackward","listStart","map","locale","oldValue","removeMarker","_descriptionFactory","filter","commandName","schema","ELEMENT_NUMBERED_LIST","attributes","commandParams","range","_getAttributeKey","next","get","*Indent:* %0","_supportLegacySuggestions","config","listStyle","_findSuggestions","checkTodoList","meta","groupId","from","detach","change","createPositionAt","newValue","multipleBlocks","ELEMENT_","todoListCheck","attribute","_LIST","numberedList","indentList","mergeListItemForward","getAttribute","has","data","suggestion","push","model","bulleted","default","type","setAttribute","*Set format:* %0","_suggestionFactory","todoList","*Format:* remove from %0","numbered","*Change to:* %0","list.multiBlock","execute","*Outdent:* %0","containsItem","isNextTo","listReversed","formatBlock","previousSibling","listIndent","assureChains","trackChangesCommand","editor","start","find","parent","_enableDefaultAttributesIntegration","todoListChecked","head","batch","accept","toUpperCase","setSelection","registerElementLabel","length","includes","*Merge:* list item","every","*Split:* list item","_registerLegacyDescription","splitListItemBefore","registerDescriptionCallback","*Check item*","differ","todo"];var so,xo;so=oo,xo=214,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this[ao("0x7")];if(!t[ao("0x25")][ao("0x67")]("ListEditing"))return;const e=t[ao("0x43")],n=t[ao("0x25")][ao("0x50")](ao("0x3a")),r=t.plugins.has(ao("0x27")),i=!!t.config[ao("0x50")](ao("0x76"));function o(t){return{type:ao("0x38"),content:""+Jr(e,ao("0x70"),t)}}function s(t){return{type:ao("0x38"),content:""+Jr(e,ao("0x3d"),t)}}n[ao("0xb")](ao("0x63"),[],[ao("0x35"),ao("0x2c"),"listIndent"]),n[ao("0xb")](ao("0x1e")),n._enableDefaultAttributesIntegration(ao("0x64")),n[ao("0xb")](ao("0x26")),n[ao("0xb")]("splitListItemAfter"),n[ao("0xb")](ao("0x19")),i&&(n[ao("0xb")](ao("0x40")),n[ao("0xb")](ao("0x65"))),r&&(n._enableDefaultAttributesIntegration(ao("0x72")),n[ao("0xb")](ao("0x56"),[],[ao("0xc")]),n[ao("0x46")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ao("0xc")==n[ao("0x3b")])return{type:ao("0x38"),content:n[ao("0x5d")]?Jr(e,ao("0x1b")):Jr(e,"*Uncheck item*")}})),this[ao("0x7")][ao("0x6b")].document[ao("0x36")]((t=>{if(t.batch[ao("0x2d")])return!1;let e=!1;const r=n.getSuggestions({skipNotAttached:!0}).filter((t=>ao("0xc")===n._getAttributeKey(t)));for(const i of r)ao("0x1d")!=i[ao("0x2e")]()[ao("0x8")][ao("0x20")][ao("0x66")](ao("0x2c"))&&(n[ao("0x55")](i[ao("0x2e")](),ao("0x61"))[ao("0x9")]((t=>ao("0x2c")===n[ao("0x4e")](t.suggestion)))||(t[ao("0x45")](i[ao("0x2f")]()),e=!0));return e}))),n[ao("0x46")].registerAttributeLabel(ao("0x4"),Jr(e,"FORMAT_INDENT"));const x={type:ao("0x38"),content:""};n._descriptionFactory[ao("0x1a")]((t=>{const{data:n}=t;if(!n||ao("0x2c")!=n[ao("0x3b")])return;let r=t.head;for(;r;){if(r[ao("0x68")]&&("listStyle"==r[ao("0x68")][ao("0x3b")]&&(r[ao("0x68")].newValue&&ao("0x6d")!=r[ao("0x68")][ao("0x5d")]||ao("0x6d")!=r[ao("0x68")][ao("0x44")]&&!n[ao("0x5d")])||!i&&r.data.key==Cc))return x;r=r[ao("0x4f")]}if(null==n[ao("0x5d")])switch(n.oldValue){case ao("0x6c"):return s(Jr(e,"ELEMENT_BULLETED_LIST"));case ao("0x74"):return s(Jr(e,ao("0x4a")));case ao("0x1d"):return s(Jr(e,ao("0x32")))}switch(n[ao("0x5d")]){case"bulleted":return o(Jr(e,ao("0x3f")));case ao("0x74"):return o(Jr(e,"ELEMENT_NUMBERED_LIST"));case ao("0x1d"):return o(Jr(e,"ELEMENT_TODO_LIST"))}})),n[ao("0x46")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ao("0x4")==e[ao("0x3b")])return null==e[ao("0x5d")]||null==e[ao("0x44")]&&0==e[ao("0x5d")]?x:void 0})),n[ao("0x46")][ao("0x1a")]((t=>{if(ao("0x61")!=t[ao("0x6e")])return;const{data:n}=t;if(!n||ao("0x35")!=n[ao("0x3b")])return;const r=lo(t);return r?"newValue"==r?{type:ao("0x38"),content:Jr(e,ao("0x15"))}:"oldValue"==r?{type:"format",content:Jr(e,ao("0x17"))}:x:x})),t.model[ao("0x24")][ao("0x36")]((t=>this[ao("0x28")](t))),t[ao("0x6b")][ao("0x24")][ao("0x36")]((t=>this[ao("0x1f")](t))),t[ao("0x6b")][ao("0x24")][ao("0x36")]((t=>this.assureChains(t))),this[ao("0x52")]()}[ao("0x28")](t){if(t[ao("0xe")].isUndo||!t[ao("0xe")][ao("0x39")])return!1;let e=!1;const n=this.editor[ao("0x25")].get(ao("0x3a"))[ao("0x21")]({skipNotAttached:!0})[ao("0x47")]((t=>t.data&&ao("0x35")==t[ao("0x68")].key)).filter((t=>t[ao("0x68")][ao("0x5d")]&&t[ao("0x68")][ao("0x44")]));for(const r of n)lo(r)||(t[ao("0x45")](r[ao("0x2f")]()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0xe")][ao("0x2d")]||!t[ao("0xe")][ao("0x39")])return!1;const e=this[ao("0x7")].plugins[ao("0x50")](ao("0x3a"));if(e[ao("0x6")][ao("0x37")])return!1;let n=!1;const r=[ao("0x2c"),"listStyle",ao("0x35"),ao("0x4"),ao("0x41"),ao("0x1"),ao("0x60")],i=this[ao("0x7")].model[ao("0x24")][ao("0x1c")][ao("0x2a")]()[ao("0x47")]((t=>"attribute"==t[ao("0x6e")]))[ao("0x47")]((t=>r.includes(t.attributeKey)));if(0==i[ao("0x13")])return n;for(const o of i){const i=e[ao("0x55")](o[ao("0x4d")],"attribute")[ao("0x47")]((t=>!t[ao("0x57")][ao("0x0")]))[ao("0x42")]((t=>t[ao("0x69")]))[ao("0x47")]((t=>{const n=e[ao("0x4e")](t);return r[ao("0x14")](n)}));if(i[ao("0x13")]){for(const e of i)t[ao("0x45")](e[ao("0x2f")]());n=!0}}return n}[ao("0x5")](t){if(t[ao("0xe")][ao("0x2d")]||!t.batch.isLocal)return!1;const e=this[ao("0x7")][ao("0x25")][ao("0x50")]("TrackChangesEditing");let n=!1;const r=[ao("0x2c"),ao("0x54"),ao("0x35"),ao("0x4"),"listStart",ao("0x1"),ao("0x60")];for(const t of e.getSuggestions({skipNotAttached:!0})){const i=e[ao("0x55")](t[ao("0x2e")](),ao("0x61")).map((t=>t.suggestion))[ao("0x47")]((t=>t.data&&r[ao("0x14")](t.data[ao("0x3b")])));if(!i[ao("0x13")])continue;const s=i[0][ao("0xd")].attributes[ao("0x58")];if(!i[ao("0x16")]((t=>t.attributes[ao("0x58")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e.getSuggestions({skipNotAttached:!0})[ao("0x47")]((e=>ao("0x61")==e.type&&e[ao("0x4b")][ao("0x58")]==t)))r.setAttribute(ao("0x58"),n)}function o(t,e){let n=t[ao("0xd")],r=!1;for(;n;)n[ao("0x4b")][ao("0x58")]!=e&&(i(n[ao("0x4b")][ao("0x58")],e),n[ao("0x6f")]("groupId",e),r=!0),n=n[ao("0x4f")];return r}}[ao("0x52")](){const t=this[ao("0x7")],e=t[ao("0x43")],n=t[ao("0x25")][ao("0x50")]("TrackChangesEditing");this[ao("0x18")](),n[ao("0x71")][ao("0x23")](ao("0x2"),ao("0x22"),ao("0xf"),(function(e,n){const r=[];for(let n of e)n[ao("0x8")].nodeAfter===n[ao("0x3c")][ao("0xa")]&&(n=t.model.createRange(t[ao("0x6b")][ao("0x5c")](n.start[ao("0x20")],0))),r[ao("0x6a")](n);t[ao("0x6b")][ao("0x5b")]((e=>{const i=t.model[ao("0x24")].selection,o=Array[ao("0x59")](i.getRanges()).map((t=>s.LiveRange.fromRange(t)));e[ao("0x11")](r),t.commands[ao("0x50")](n.commandName)[ao("0x34")](),n[ao("0x4c")][ao("0x6a")]({forceDefaultExecution:!0}),t[ao("0x77")](n[ao("0x48")],...n[ao("0x4c")]),e[ao("0x11")](o);for(const t of o)t[ao("0x5a")]()}))})),n._descriptionFactory[ao("0x12")]((function(e){const n=!t[ao("0x6b")][ao("0x49")][ao("0x2b")](e),r=e[ao("0x3")],i=e.nextSibling,o=e[ao("0x66")](ao("0x35")),s=!r||r[ao("0x66")](ao("0x35"))!==o,x=!i||i.getAttribute(ao("0x35"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Jr(e,"ELEMENT_LIST_ITEM",t)))}[ao("0x18")](){const t=this[ao("0x7")],e=t[ao("0x43")];function n(e){const n=t.commands[ao("0x50")](ao("0x1e")).value,r=t[ao("0x3e")][ao("0x50")](ao("0x63"))[ao("0x37")];return ao("0x63")===e?n:r}t.plugins[ao("0x50")](ao("0x3a"))[ao("0x46")][ao("0x1a")]((function(r){if(ao("0x2")!=r[ao("0x6e")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i[ao("0x48")]){case"bulletedList":x=i[ao("0x4c")][0][ao("0x29")],a=n(i[ao("0x48")]),o=ao(x?"0x30":"0x73"),!a&&t[ao("0x53")].get(ao("0x76"))||(o="*Change to:* %0"),s={type:ao("0x38"),content:Jr(e,o,Jr(e,ao("0x3f")))};break;case ao("0x63"):x=i.commandParams[0][ao("0x29")],a=n(i[ao("0x48")]),o=ao(x?"0x30":"0x73"),!a&&t[ao("0x53")].get(ao("0x76"))||(o=ao("0x75")),s={type:"format",content:Jr(e,o,Jr(e,ao("0x4a")))};break;case"indentList":o=ao("0x51"),s={type:ao("0x38"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))};break;case ao("0x26"):o=function(t){const e=t[ao("0x2e")]();let n=e[ao("0x8")].nodeAfter;for(;n&&e[ao("0x79")](n);){if(n[ao("0x66")](ao("0x4"))>0)return!1;n=n.nextSibling}return!0}(r)?Jr(e,ao("0x73"),Jr(e,(c=r,ao("0x5f")+c.getFirstRange()[ao("0x8")][ao("0x20")][ao("0x66")](ao("0x2c"))[ao("0x10")]()+ao("0x62")))):Jr(e,ao("0x78"),Jr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x38"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===i[ao("0x5e")]&&(o=ao("0x31"),s={type:ao("0x33"),content:Jr(e,o,Jr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t.getFirstRange()[ao("0x8")][ao("0x20")].previousSibling;for(;e;){const n=e.getAttribute("listItemId");if(!n)return!1;if(n==t[ao("0x68")][ao("0x5d")])return ao("0x5d");if(n==t[ao("0x68")][ao("0x44")])return"oldValue";e=e[ao("0x3")]}return!1}const uo=["_LIST_DEFAULT","decimal-leading-zero","_getAttributeKey","head","ELEMENT_","has","listType","get","newValue","format","lower-roman","*Format:* set start index to %0","type","listStart","numbered","getFirstRange","getAttribute","registerDescriptionCallback","plugins","default","*Format:* set order to regular","data","_registerLegacyDescription","lower-latin","commandParams","editor","getFirstMarker","next","listStyle","find","registerPostFixer","disc","listReversed","*Set format:* %0","includes","afterInit","list.properties","replace","key","document","bind","upper-latin","_getTranslationKeyForListStyle","oldValue","_findSuggestions","attribute","toUpperCase","registerAttributeLabel","upper-roman","FORMAT_LIST_START","nodeAfter","locale","handleDescriptions","_enableDefaultAttributesIntegration","styles","_descriptionFactory","suggestion","filter","TrackChangesEditing","decimal","reversed","config","startIndex","_LIST_"];var go,fo;go=uo,fo=147,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x10")](){if(!this[ho("0x6")][ho("0x3f")][ho("0x32")]("ListPropertiesEditing"))return;const t=this[ho("0x6")][ho("0x2a")][ho("0x34")](ho("0x11")),e=this[ho("0x6")][ho("0x3f")][ho("0x34")](ho("0x27"));t[ho("0x23")]&&e[ho("0x22")](ho("0x9"),[],[ho("0x9")]),t[ho("0x29")]&&e[ho("0x22")](ho("0xd"),[],["listReversed"]),t[ho("0x2b")]&&e[ho("0x22")](ho("0x3a"),[],[ho("0x3a")]);const n={type:ho("0x36"),content:""};e._descriptionFactory[ho("0x3e")](this[ho("0x21")][ho("0x15")](this));const r=this[ho("0x6")][ho("0x20")];e[ho("0x24")][ho("0x1c")](ho("0xd"),Jr(r,"FORMAT_LIST_REVERSED")),e[ho("0x24")][ho("0x3e")]((t=>{const{data:e}=t;if(e&&ho("0xd")==e[ho("0x13")])return null==e[ho("0x35")]||0==e.newValue&&null==e.oldValue?n:void 0})),e[ho("0x24")][ho("0x1c")](ho("0x3a"),Jr(r,ho("0x1e"))),e._descriptionFactory[ho("0x3e")]((t=>{const{data:e}=t;if(e&&ho("0x3a")==e[ho("0x13")])return null==e[ho("0x35")]||1==e.newValue&&null==e[ho("0x18")]?n:void 0})),this[ho("0x6")].model[ho("0x14")][ho("0xb")]((t=>{if(t.batch.isUndo)return!1;let n=!1;const r=e.getSuggestions({skipNotAttached:!0})[ho("0x26")]((t=>{const n=e[ho("0x2f")](t);return ho("0x3a")==n||ho("0xd")==n}));for(const i of r)ho("0x3b")!=i[ho("0x3c")]().start.nodeAfter.getAttribute("listType")&&(e[ho("0x19")](i.getFirstRange(),ho("0x1a"))[ho("0xa")]((t=>ho("0x33")==e[ho("0x2f")](t[ho("0x25")])))||(t.removeMarker(i[ho("0x7")]()),n=!0));return n})),this[ho("0x3")]()}[ho("0x21")](t){const e=this[ho("0x6")][ho("0x20")],{data:n}=t,r={type:ho("0x36"),content:""};if(!n||ho("0x9")!=n[ho("0x13")])return;if(!n[ho("0x18")])return ho("0x0")==n[ho("0x35")]?r:{type:"format",content:""+Jr(e,ho("0xe"),Jr(e,this[ho("0x17")](n[ho("0x35")])))};if(!n[ho("0x35")]){if(ho("0x0")==n.oldValue)return r;let i=t[ho("0x30")];for(;i;){if(i[ho("0x2")]&&ho("0x33")==i[ho("0x2")][ho("0x13")]&&i[ho("0x2")].newValue)return r;i=i[ho("0x8")]}return{type:ho("0x36"),content:""+Jr(e,"*Remove format:* %0",Jr(e,this[ho("0x17")](n[ho("0x18")])))}}if(ho("0x0")!=n[ho("0x35")])return{type:"format",content:""+Jr(e,"*Set format:* %0",Jr(e,this._getTranslationKeyForListStyle(n[ho("0x35")])))};let i=t[ho("0x30")];for(;i;){if(i[ho("0x2")]&&ho("0x33")==i[ho("0x2")][ho("0x13")]&&i[ho("0x2")][ho("0x35")]&&i[ho("0x2")][ho("0x18")])return r;i=i[ho("0x8")]}const o=t[ho("0x3c")]().start[ho("0x1f")][ho("0x3d")](ho("0x33"));return{type:ho("0x36"),content:Jr(e,ho("0xe"),Jr(e,ho("0x31")+o[ho("0x1b")]()+ho("0x2d")))}}[ho("0x3")](){const t=this[ho("0x6")],e=t[ho("0x20")];t.plugins[ho("0x34")]("TrackChangesEditing")[ho("0x24")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(!n)return;let r,i;switch(n.commandName){case ho("0x9"):r="*Change to:* %0",i={type:"format",content:Jr(e,r,Jr(e,this[ho("0x17")](n.commandParams[0][ho("0x39")])))};break;case"listReversed":r=n[ho("0x5")][0][ho("0x29")]?"*Format:* set order to reversed":ho("0x1"),i={type:ho("0x36"),content:Jr(e,r)};break;case ho("0x3a"):r=ho("0x38"),i={type:ho("0x36"),content:Jr(e,r,n.commandParams[0].startIndex)}}return i}))}[ho("0x17")](t){return ho("0x31")+(e=t,po[ho("0xf")](e)?"bulleted":bo.includes(e)?"numbered":null)[ho("0x1b")]()+ho("0x2c")+t[ho("0x1b")]()[ho("0x12")](/-/g,"_");var e}}const po=[ho("0xc"),"circle","square"],bo=[ho("0x28"),ho("0x2e"),ho("0x37"),ho("0x1d"),ho("0x4"),ho("0x16")];var Eo=n(331);const _o=["get","writer","unbindElementFromMarkerName","removeMarker:suggestion:insertion","hasClass","markInsertion","end","enter","nextSibling","getFirstPosition","downcastDispatcher","fromRange","createPositionAt","getFirstRange","TrackChangesEditing","afterExecute","editor","markerName","showSuggestionHighlights","ck-suggestion-marker-split","change","detach","markerNameToElements","commands","split","remove","setSelection","options","enterBlock","high","parent","mapper","model","createRange","editing","addMarker:suggestion:insertion"];var To,yo;To=_o,yo=287,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}init(){const t=this[Co("0x11")],e=t.plugins.get(Co("0xf")),n=t[Co("0x18")][Co("0x1")](Co("0x8"));e.enableCommand(Co("0x8"),(()=>{t[Co("0x21")][Co("0x15")]((r=>{const i=t.model.document.selection,o=i[Co("0xa")](),x=s.LiveRange[Co("0xc")](i[Co("0xe")]());if(n[Co("0x1d")](r)){const n=t[Co("0x21")][Co("0xd")](o[Co("0x1f")][Co("0x9")],0),i=r[Co("0x22")](o,n);e[Co("0x6")](i)}else r[Co("0x1b")](r[Co("0x22")](x[Co("0x7")]));x[Co("0x16")](),n.fire(Co("0x10"),{writer:r})}))})),t[Co("0x23")][Co("0xb")].on(Co("0x0"),Qi(t,Co("0x19")),{priority:Co("0x1e")}),t[Co("0x23")].downcastDispatcher.on(Co("0x4"),((t,e,n)=>{const r=n.mapper[Co("0x17")](e[Co("0x12")]);if(r)for(const t of r)t[Co("0x5")](Co("0x14"))&&(n[Co("0x20")][Co("0x3")](t,e[Co("0x12")]),n[Co("0x2")][Co("0x1a")](t))}),{priority:Co("0x1e")}),t.data.downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,r)=>{r[Co("0x1c")][Co("0x13")]&&Qi(t,"split",{showActiveMarker:!1}).bind(this)(e,n,r)}),{priority:"high"})}}const ko=["TrackChangesEditing","findNext","string","replace","start","item","FindAndReplaceUtils","findByTextCallback","getMarkersGroup","findPrevious","handleFindCommand","model","_isInDeletionRange","createPositionAt","enableCommand","editor","bind","replaceAll","end","createRange","getIntersection","markers","get","getRange","suggestion:deletion","afterInit","plugins"];var Ro,So;Ro=ko,So=148,function(t){for(;--t;)Ro.push(Ro.shift())}(++So);const Io=function(t,e){return ko[t-=0]};class No extends t.Plugin{[Io("0xc")](){if(!this[Io("0x2")].plugins.has("FindAndReplaceEditing"))return;const t=this[Io("0x2")][Io("0xd")][Io("0x9")](Io("0xe"));t.enableCommand("find",this[Io("0x18")][Io("0x3")](this)),t[Io("0x1")](Io("0xf")),t[Io("0x1")](Io("0x17")),t[Io("0x1")](Io("0x11")),t.enableCommand(Io("0x4"))}handleFindCommand(t,e,n={}){const r=this.editor[Io("0xd")][Io("0x9")](Io("0x14"));return t((t=>(Io("0x10")==typeof e?r[Io("0x15")](e,n):e)(t).filter((e=>!1===this[Io("0x1a")](e,t[Io("0x13")])))),n)}[Io("0x1a")](t,e){const n=this[Io("0x2")][Io("0x19")][Io("0x6")](this[Io("0x2")].model[Io("0x0")](e,t[Io("0x12")]),this[Io("0x2")][Io("0x19")][Io("0x0")](e,t[Io("0x5")]));for(const t of this[Io("0x2")][Io("0x19")][Io("0x8")][Io("0x16")](Io("0xb")))if(null!==n[Io("0x7")](t[Io("0xa")]()))return!0;return!1}}const vo=["FORMAT_FONT_BACKGROUND","find","label","fontColor","normalizeSizeOptions","fontBackgroundColor.colors","fontBackgroundColor","config","plugins","FORMAT_FONT_FAMILY","model","editor","value","locale","formatInline","fontSize.options","afterInit","*Reset font background color*","*Set font family:* %0","format","FORMAT_FONT_SIZE","trim","*Set font size:* %0","TrackChangesEditing","toLowerCase","*Reset font color*","get","*Reset font family*","_descriptionFactory","*Reset font size*","_registerLegacyDescription","FontBackgroundColorEditing","commandParams","*Set font color:* %0","fontFamily","fontSize","registerAttributeLabel","commandName","fontColor.colors"];var Lo,Mo;Lo=vo,Mo=394,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return vo[t-=0]},Oo=[{pluginName:"FontSizeEditing",commandName:wo("0x1f")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:wo("0x26")},{pluginName:wo("0x1b"),commandName:wo("0x2")}];class Fo extends t.Plugin{[wo("0xc")](){const t=this.editor[wo("0x9")],e=this[wo("0x7")].plugins[wo("0x16")](wo("0x13"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x7")][wo("0x4")].has(t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[wo("0x18")].registerAttributeLabel("fontSize",Jr(t,wo("0x10"))),e._descriptionFactory[wo("0x20")](wo("0x1e"),Jr(t,wo("0x5"))),e[wo("0x18")][wo("0x20")]("fontColor",Jr(t,"FORMAT_FONT_COLOR")),e._descriptionFactory.registerAttributeLabel("fontBackgroundColor",Jr(t,wo("0x23"))),this[wo("0x1a")]()}_registerLegacyDescription(){const t=this[wo("0x7")],e=t.locale;t.plugins[wo("0x16")](wo("0x13"))[wo("0x18")].registerDescriptionCallback((t=>{const n=e.t;if(wo("0xa")!=t.type)return;const{data:r}=t;if(null!=r){if(wo("0x1f")==r[wo("0x21")]){const t=r[wo("0x1c")][0].value;if(t){const r=n(this[wo("0x7")].plugins.get("FontSize")[wo("0x0")](this[wo("0x7")][wo("0x3")].get(wo("0xb"))).find((e=>e[wo("0x6")]==t)).title)[wo("0x14")]();return{type:"format",content:Jr(e,wo("0x12"),r)}}return{type:wo("0xf"),content:Jr(e,wo("0x19"))}}if(wo("0x1e")==r[wo("0x21")]){const t=r.commandParams[0][wo("0x8")];return t?{type:"format",content:Jr(e,wo("0xe"),t)}:{type:wo("0xf"),content:Jr(e,wo("0x17"))}}if(wo("0x26")==r[wo("0x21")]){const t=r[wo("0x1c")][0][wo("0x8")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x16")](wo("0x22")))[wo("0x24")]((e=>e[wo("0x6")]==t));let o=t,s="";return r&&(o=r[wo("0x25")],s=n(o)[wo("0x14")]()),{type:wo("0xf"),content:Jr(e,wo("0x1d"),s)[wo("0x11")](),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,wo("0x15"))}}if("fontBackgroundColor"==r[wo("0x21")]){const t=r[wo("0x1c")][0][wo("0x8")];if(t){const r=(0,i.normalizeColorOptions)(this.editor[wo("0x3")][wo("0x16")](wo("0x1")))[wo("0x24")]((e=>e.model==t));let o=t,s="";return r&&(o=r[wo("0x25")],s=n(o)[wo("0x14")]()),{type:"format",content:Jr(e,"*Set font background color:* %0",s).trim(),color:{value:t,title:s||o}}}return{type:"format",content:Jr(e,wo("0xd"))}}}}))}}const Do=["plugins","FontSize","toUpperCase","afterInit","push","fontSize.options","TrackChangesEditing","copyFormat","fontColor","commandName","model","commandParams","*Set format to:* %0","entries","_enableDefaultAttributesIntegration","locale","toLowerCase","_registerLegacyDescription","type","fontColor.colors","fontBackgroundColor","boolean","normalizeSizeOptions","formatBlock","split","join","registerDescriptionCallback","fontSize","find","format","pasteFormat","config","get","title","*Remove all formatting*"];var Bo,Po;Bo=Do,Po=232,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x10")](){const t=this.editor,e=t[Uo("0xd")][Uo("0xa")](Uo("0x13")),n=t.commands[Uo("0xa")](Uo("0x14")),r=t.commands[Uo("0xa")](Uo("0x8"));n&&r&&(e[Uo("0x1b")](Uo("0x8")),e.enableCommand(Uo("0x14")),this[Uo("0x1e")]())}[Uo("0x1e")](){const t=this.editor,e=t[Uo("0x1c")];t[Uo("0xd")].get("TrackChangesEditing")._descriptionFactory[Uo("0x4")]((n=>{if(Uo("0x1")!=n[Uo("0x1f")]&&"formatInline"!=n[Uo("0x1f")])return;const{data:r}=n;if(r&&Uo("0x8")===r[Uo("0x16")]){const n=[],i=r[Uo("0x18")][0];for(const[e,r]of Object[Uo("0x1a")](i))n[Uo("0x11")](Go(t,e,r));return n.length?{type:Uo("0x7"),content:Jr(e,Uo("0x19"),n[Uo("0x3")](", "))}:{type:Uo("0x7"),content:Jr(e,Uo("0xc"))}}}))}}function Go(t,e,n){const r=t[Uo("0x1c")].t,o=e[Uo("0x2")](/(?=[A-Z])/)[Uo("0x3")](" "),s=r(o.charAt(0)[Uo("0xf")]()+o.slice(1))[Uo("0x1d")]();if(Uo("0x22")==typeof n)return s;if(Uo("0x15")===e||Uo("0x21")===e){const e=(0,i.normalizeColorOptions)(t.config[Uo("0xa")](Uo("0x20")))[Uo("0x6")]((t=>t[Uo("0x17")]==n));return s+" ("+(e?r(e.label)[Uo("0x1d")]():n)+")"}if(Uo("0x5")===e&&isNaN(parseFloat(n))){const e=t[Uo("0xd")].get(Uo("0xe"))[Uo("0x0")](t[Uo("0x9")].get(Uo("0x12")))[Uo("0x6")]((t=>t[Uo("0x17")]==n));return s+" ("+(e?r(e[Uo("0xb")])[Uo("0x1d")]():n)+")"}return s+" ("+n+")"}const Vo=["_enableDefaultAttributesIntegration","view","model","heading.options","find","heading","value","commandParams","locale","type","paragraph","name","format","_headingOptions","*Change to:* %0","TrackChangesEditing","afterInit","match","get","editor","ELEMENT_HEADING_CUSTOM","_getHeadingLevel","config","ELEMENT_HEADING","registerElementLabel","formatBlock","_descriptionFactory","has","title","HeadingEditing","plugins"];var Ho,zo;Ho=Vo,zo=169,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0x2")](){const t=this[Wo("0x5")];if(!t[Wo("0x10")][Wo("0xd")](Wo("0xf")))return;this._headingOptions=t[Wo("0x8")][Wo("0x4")](Wo("0x14"));const e=t[Wo("0x19")],n=t[Wo("0x10")][Wo("0x4")]("TrackChangesEditing");n[Wo("0x11")](Wo("0x16"));for(const t of this._headingOptions)Wo("0x1b")!=t[Wo("0x13")]&&n[Wo("0xc")][Wo("0xa")](t[Wo("0x13")],(n=>{const r=this[Wo("0x7")](t[Wo("0x13")]);return null!==r?(s=n,x=r,Jr(e,Wo("0x9"),[s,x])):(i=n,o=t[Wo("0xe")],Jr(e,Wo("0x6"),[i,o]));var i,o,s,x}));this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t.plugins[Wo("0x4")](Wo("0x1"))[Wo("0xc")].registerDescriptionCallback((t=>{if(Wo("0xb")!=t[Wo("0x1a")])return;const{data:n}=t;if(n&&Wo("0x16")==n.commandName){const t=n[Wo("0x18")][0][Wo("0x17")],s=this[Wo("0x7")](t);if(null!==s)return{type:"format",content:Jr(e,"*Change to:* %0",(1,o=s,Jr(e,Wo("0x9"),[1,o])))};const x=this._headingOptions.find((e=>e.model===t)).title;return{type:Wo("0x1d"),content:Jr(e,Wo("0x0"),(r=1,i=x,Jr(e,"ELEMENT_HEADING_CUSTOM",[r,i])))}}var r,i,o}))}[Wo("0x7")](t){var e,n;const r=t[Wo("0x3")](/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0x1e")])||void 0===e?void 0:e[Wo("0x15")]((e=>e[Wo("0x13")]==t));if(i&&i[Wo("0x12")]){const t=i[Wo("0x12")],e=(null!==(n=t[Wo("0x1c")])&&void 0!==n?n:t)[Wo("0x3")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["FORMAT_HIGHLIGHT","model","type","afterInit","config","value","locale","commandParams","HighlightEditing","formatInline","title","get","find","TrackChangesEditing","_registerLegacyDescription","has","format","highlight","editor","*Set highlight:* %0","commandName","registerDescriptionCallback","plugins","color","registerAttributeLabel","highlight.options"];var Xo,$o;Xo=qo,$o=139,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x14")](){const t=this[Zo("0x9")];if(!t[Zo("0xd")][Zo("0x6")](Zo("0x19")))return;const e=t[Zo("0xd")][Zo("0x2")](Zo("0x4")),n=t.locale;e._enableDefaultAttributesIntegration(Zo("0x8"),[Zo("0x8")]),e._descriptionFactory[Zo("0xf")](Zo("0x8"),Jr(n,Zo("0x11"))),this._registerLegacyDescription()}[Zo("0x5")](){const t=this.editor,e=t[Zo("0x17")];t[Zo("0xd")].get(Zo("0x4"))._descriptionFactory[Zo("0xc")]((n=>{if(Zo("0x0")!=n[Zo("0x13")])return;const{data:r}=n;if(r&&Zo("0x8")==r[Zo("0xb")]){const n=e.t,i=r[Zo("0x18")][0][Zo("0x16")];if(i){const r=t[Zo("0x15")][Zo("0x2")](Zo("0x10"))[Zo("0x3")]((t=>t[Zo("0x12")]==i)),o=n(r.title).toLowerCase();return{type:Zo("0x7"),content:Jr(e,Zo("0xa"),o),color:{value:r[Zo("0xe")],title:r[Zo("0x1")]}}}return{type:Zo("0x7"),content:Jr(e,"*Remove highlight*",Jr(e,"FORMAT_HIGHLIGHT"))}}}))}}const Jo=["TrackChangesEditing","high","registerElementLabel","addClass","insert","has","div","ck-horizontal-line","afterInit","createPositionAt","enableCommand","for","elementToStructure","locale","editor","plugins","ELEMENT_HORIZONTAL_LINE","get","createEmptyElement"];var Qo,ts;Qo=Jo,ts=368,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{[es("0x1")](){const t=this[es("0x7")];if(!t[es("0x8")][es("0x11")]("HorizontalLineEditing"))return;t[es("0x8")].get(es("0xc"))[es("0x3")]("horizontalLine");const e=t[es("0x8")][es("0xa")]("TrackChangesEditing"),n=t[es("0x6")];e._descriptionFactory[es("0xe")]("horizontalLine",(t=>Jr(n,es("0x9"),t))),t.conversion[es("0x4")]("dataDowncast")[es("0x5")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const r=e.createContainerElement(es("0x12")),i=e[es("0xb")]("hr");return e[es("0xf")](es("0x0"),r),e[es("0x10")](e[es("0x2")](r,0),i),r},converterPriority:es("0xd")})}}const rs=["key","commandName","_registerLegacyDescription","afterInit","_enableDefaultAttributesIntegration","HtmlEmbed","plugins","value","htmlEmbed","locale","_descriptionFactory","format","registerDescriptionCallback","formatBlock","rawHtml","registerElementLabel","editor","get","nodeAfter","*Change %0 content*","type","attribute","TrackChangesEditing","ELEMENT_HTML_EMBED"];var is,os;is=rs,os=164,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x7")](){const t=this[ss("0x14")];if(!t[ss("0xa")].has(ss("0x9")))return;const e=t.plugins[ss("0x15")](ss("0x2")),n=t[ss("0xd")];e._descriptionFactory[ss("0x13")](ss("0x12"),(t=>Jr(n,ss("0x3"),t))),e[ss("0x8")](ss("0xc"),[],[ss("0xb")]),e[ss("0xe")][ss("0x10")]((t=>{if(ss("0x1")!=t.type)return;const{data:e}=t;if(e&&ss("0xb")==e[ss("0x4")]&&t.getFirstRange().start[ss("0x16")].is("element",ss("0x12"))){const t=Jr(n,ss("0x3"));return{type:ss("0xf"),content:Jr(n,ss("0x17"),t)}}})),this._registerLegacyDescription()}[ss("0x6")](){const t=this[ss("0x14")],e=t.locale;t[ss("0xa")][ss("0x15")](ss("0x2"))._descriptionFactory[ss("0x10")]((t=>{if(ss("0x11")!=t[ss("0x0")])return;const{data:n}=t;if(n&&ss("0xc")==n[ss("0x5")]){const t=Jr(e,ss("0x3"));return{type:"format",content:Jr(e,"*Change %0 content*",t)}}}))}}const as=["nodeBefore","attribute","detach","alt","removeObject","commandParams","isCollapsed","model","previous","formatBlock","createRangeOn","backward","_descriptionFactory","deletion","nodeAfter","registerCustomCallback","has","*Remove image text alternative*","ImageResize","getFirstRange","start","imageTextAlternative","Inline image to block image","FORMAT_IMAGE_SIZE","find","toNext","change","getContainedElement","getCaptionFromImageModelElement","markBlockFormat","afterInit","document","imageStylePreApply","filter","chain","format","forward","accept","uploadImage","plugins","discard","*Set image width:* %0","isBefore","end","convertBlockImageToInline","resizeImage","subType","get","key","insertion","ImageTextAlternativeEditing","imageCaption","length","commandName","enableCommand","ImageUploadEditing","isEqual","_suggestionFactory","TrackChangesEditing","registerElementLabel","getClosestSelectedImageElement","*Set image text alternative:* %0","_enableDefaultAttributesIntegration","addObject","Block image to inline image","isBlockImage","createRange","markInsertion","ELEMENT_IMAGE","markDeletion","*Reset image width*","caption","locale","toPrevious","_registerLegacyDescription","ImageEditing","imageTypeInline","fromPosition","newValue","editor","element","resizedWidth","ImageUtils","join","convertInlineImageToBlock","registerDescriptionCallback","type","selection","_findSuggestions","ImageInlineEditing","getNearestSelectionRange","insertImage"];var cs,ls;cs=as,ls=443,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x2f")](){const t=this[us("0x4")];if(!t[us("0x38")][us("0x21")](us("0x0")))return;const e=t[us("0x38")][us("0x40")](us("0x4b")),n=t[us("0x38")][us("0x40")](us("0x7")),r=t[us("0x59")];e[us("0x47")](us("0x10")),e[us("0x1d")].registerElementLabel("imageBlock",(t=>Jr(r,us("0x55"),t))),e[us("0x1d")][us("0x4c")]("imageInline",(t=>Jr(r,"ELEMENT_INLINE_IMAGE",t))),e._descriptionFactory[us("0x4c")](us("0x58"),(()=>Jr(r,"ELEMENT_CAPTION"))),t.plugins[us("0x21")](us("0x48"))&&e[us("0x47")](us("0x37")),t[us("0x38")][us("0x21")]("ImageBlockEditing")&&t[us("0x38")][us("0x21")](us("0xe"))&&(e.enableCommand("imageTypeInline",((r,i)=>{const o=n.getClosestSelectedImageElement(t.model[us("0x30")][us("0xc")]);t[us("0x18")][us("0x2b")]((()=>{e.markBlockFormat(o,{commandName:us("0x1"),commandParams:[i]},[],us("0x3d"))}))})),e[us("0x47")]("imageTypeBlock",((r,i)=>{t[us("0x18")].change((o=>{let x=n[us("0x4d")](t[us("0x18")][us("0x30")][us("0xc")]),a=o.createRangeOn(x);const c=s.LivePosition[us("0x2")](a[us("0x25")],us("0x5a")),l=s.LivePosition[us("0x2")](a[us("0x3c")],us("0x2a"));e.forceDefaultExecution((()=>r(i))),x=n[us("0x4d")](t[us("0x18")][us("0x30")].selection),a=o.createRangeOn(x);const u=o[us("0x53")](c,l);c.detach(),l[us("0x13")](),e[us("0x2e")](x,{commandName:us("0x1"),commandParams:[i]},[],us("0x9")),u[us("0x25")][us("0x3b")](a.start)&&e.markInsertion(o[us("0x53")](u[us("0x25")],a[us("0x25")]),us("0x9")),a[us("0x3c")][us("0x3b")](u[us("0x3c")])&&e[us("0x54")](o[us("0x53")](a[us("0x3c")],u[us("0x3c")]),us("0x9"))}))})),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),us("0x8"),(()=>!1)),e[us("0x4a")][us("0x20")]("formatBlock",us("0x9"),"accept",(()=>!1)),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),"discard",e[us("0x4a")].getSuggestionCallback(us("0x1a"),"",us("0x36"))),e[us("0x4a")].registerCustomCallback("insertion",us("0x9"),us("0x8"),(()=>!1)),e[us("0x4a")][us("0x20")](us("0x42"),us("0x9"),us("0x39"),(([n])=>{const r=e[us("0x4a")].getSuggestionCallback(us("0x42"),"","discard");let i=n.start,o=n[us("0x3c")];const s=t.model.schema.getNearestSelectionRange(i,us("0x1c")),x=t.model.schema[us("0xf")](o,us("0x35"));s[us("0x17")]&&(i=s.start),x.isCollapsed&&(o=x[us("0x3c")]),r([t.model.createRange(i,o)])})),e[us("0x4a")][us("0x20")](us("0x1a"),us("0x9"),"chain",x),e[us("0x4a")][us("0x20")](us("0x42"),"convertInlineImageToBlock",us("0x33"),x)),t[us("0x38")].has("ImageCaptionEditing")&&(e[us("0x47")]("toggleImageCaption",((r,i)=>{const o=t.plugins[us("0x40")]("ImageCaptionUtils");let s=n[us("0x4d")](t.model.document[us("0xc")]),x=o[us("0x2d")](s);t[us("0x18")].change((()=>{if(x)return void e[us("0x56")](t[us("0x18")][us("0x1b")](x));const a=n[us("0x52")](s);r(i),s=n[us("0x4d")](t.model[us("0x30")][us("0xc")]),x=o[us("0x2d")](s),e.markInsertion(t[us("0x18")][us("0x1b")](x),a?null:"imageCaption")}))})),e._suggestionFactory.registerCustomCallback(us("0x42"),us("0x44"),"chain",x));const i=[{type:us("0x1a"),subType:us("0x31")},{type:us("0x42"),subType:us("0x44")},{type:"formatBlock",subType:us("0x9")},{type:us("0x42"),subType:us("0x9")}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t[us("0xb")]==e&&t.subType==n)),s=i.findIndex((({type:t,subType:e})=>r[us("0xb")]==t&&r.subType==e));if(o<0||s<0)return!1;const x=t[us("0x24")](),a=r[us("0x24")]();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=e[us("0xd")](x,us("0x42"))[us("0x32")]((({suggestion:t,meta:e})=>e.isOwn&&us("0x9")==t[us("0x3f")]));if(t[us("0x45")]>1&&a[us("0x3c")][us("0x49")](x.start))return!0;if(1==t[us("0x45")]&&(x[us("0x25")][us("0x49")](a[us("0x3c")])||x[us("0x3c")][us("0x49")](a[us("0x25")])))return!0}if(3==o&&3==s&&x[us("0x25")][us("0x3b")](a[us("0x25")])){const t=x.end[us("0x1f")],e=a[us("0x25")][us("0x11")];return n[us("0x52")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x38")][us("0x21")](us("0x23"))&&(e[us("0x4f")](us("0x3e"),[],[us("0x6")]),e[us("0x1d")].registerAttributeLabel("resizedWidth",Jr(r,us("0x28")))),t[us("0x38")][us("0x21")](us("0x43"))&&e[us("0x4f")](us("0x26"),[],[us("0x14")]),e[us("0x1d")][us("0xa")]((t=>{if(i[us("0x29")]((({type:e,subType:n})=>t[us("0xb")]==e&&t[us("0x3f")]==n)))return t[us("0x19")]?{}:void 0})),e[us("0x1d")].registerDescriptionCallback((t=>{if(us("0x42")==t.type||us("0x1e")==t[us("0xb")]){const e=t[us("0x2c")]();if(e&&e.is(us("0x5"),"caption"))return{type:us("0x42")==t[us("0xb")]?us("0x50"):us("0x15"),element:e,quantity:1}}})),e._descriptionFactory.registerDescriptionCallback((t=>"formatBlock"==t.type&&us("0x9")==t.subType?{type:us("0x34"),content:us("0x27")}:us("0x1a")==t[us("0xb")]&&us("0x3d")==t[us("0x3f")]?{type:us("0x34"),content:us("0x51")}:void 0)),e._descriptionFactory[us("0xa")]((t=>{if(us("0x12")!=t[us("0xb")])return;const{data:e}=t;if(!e||"alt"!=e[us("0x41")])return;const n=e[us("0x3")];return n?{type:us("0x34"),content:Jr(r,us("0x4e"),'"'+n+'"')}:{type:us("0x34"),content:Jr(r,us("0x22"))}})),this[us("0x5b")]()}_registerLegacyDescription(){const t=this[us("0x4")],e=t.locale;t[us("0x38")][us("0x40")](us("0x4b"))._descriptionFactory.registerDescriptionCallback((t=>{if(us("0x1a")!=t[us("0xb")]&&"formatInline"!=t[us("0xb")])return;const{data:n}=t;if(n){if(us("0x26")==n[us("0x46")]){const t=n[us("0x16")][0][us("0x3")];return t?{type:us("0x34"),content:Jr(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x34"),content:Jr(e,us("0x22"))}}if("resizeImage"==n[us("0x46")]){const t=n[us("0x16")][0].width;return t?{type:us("0x34"),content:Jr(e,us("0x3a"),t)}:{type:us("0x34"),content:Jr(e,us("0x57"))}}}}))}}const gs=["*Replace image URL*","plugins","replaceImageSource","ImageEditing","_suggestionFactory","_registerLegacyDescription","has","type","format","accept","src","editor","TrackChangesEditing","getSuggestionCallback","_descriptionFactory","registerCustomCallback","get","discard","oldValue","locale","_handleLegacySuggestions","*Format:* replace image URL","commandName","formatInline","registerDescriptionCallback","formatBlock","key","afterInit","newValue"];var fs,hs;fs=gs,hs=405,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x1c")](){if(!this[ms("0xc")].plugins[ms("0x7")](ms("0x4")))return;const t=this[ms("0xc")][ms("0x14")],e=this[ms("0xc")][ms("0x2")][ms("0x11")](ms("0xd"));e._enableDefaultAttributesIntegration("replaceImageSource",[],[ms("0xb")]),e[ms("0xf")][ms("0x19")]((e=>{if("attribute"!=e[ms("0x8")])return;const{data:n}=e;return n&&ms("0xb")==n[ms("0x1b")]?n[ms("0x0")]&&n[ms("0x13")]?{type:"format",content:Jr(t,ms("0x1"))}:{type:"format",content:""}:void 0})),this[ms("0x15")]()}[ms("0x15")](){const t=this[ms("0xc")].plugins[ms("0x11")](ms("0xd"));t[ms("0x5")].registerCustomCallback("formatBlock",ms("0x3"),ms("0xa"),t[ms("0x5")][ms("0xe")](ms("0x1a"),null,ms("0x12"))),t._suggestionFactory[ms("0x10")](ms("0x1a"),"replaceImageSource","discard",t[ms("0x5")][ms("0xe")](ms("0x1a"),null,ms("0xa"))),this[ms("0x6")]()}_registerLegacyDescription(){const t=this[ms("0xc")],e=t[ms("0x14")];t[ms("0x2")][ms("0x11")](ms("0xd"))._descriptionFactory[ms("0x19")]((t=>{if(ms("0x1a")!=t.type&&ms("0x18")!=t[ms("0x8")])return;const{data:n}=t;return n&&ms("0x3")==n[ms("0x17")]?{type:ms("0x9"),content:Jr(e,ms("0x16"))}:void 0}))}}const bs=["accept","_findSuggestions","Users","enableCommand","registerDescriptionCallback","isInlineImage","discardSuggestion","title","ImageStyleEditing","commands","isEqual","join","findIndex","suggestion","createRangeOn","get","getSuggestionCallback","imageTypeBlock","head","nodeAfter","isBlockImage","hasSuggestion","value","commandParams","ImageUtils","imageTypeInline","FORMAT_SIDE_IMAGE","imageStylePostApply","commandName","editor","_suggestionFactory","setImageNaturalSizeAttributes","isOwn","imageStyle","selection","imageCaption","markBlockFormat","document","getContainedElement","_splitMarkerName","TrackChangesEditing","end","imageStylePreApply","formatInline","registerCustomCallback","author","convertInlineImageToBlock","newRange","forEach","getClosestSelectedImageElement","start","isInContent","registerPostFixer","name","isIntersecting","insertion","type","length","plugins","differ","formatBlock","getFirstRange","model","discard","subType","_registerLegacyDescription","from","refresh","nodeBefore","locale","*Format:* %0","getSuggestion","_descriptionFactory","next","commandReversedParams","getSuggestions"];var Es,_s;Es=bs,_s=254,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x3")];if(!t.plugins.has(Ts("0x3a")))return;const n=t[Ts("0x20")].get(Ts("0xe")),r=t[Ts("0x20")][Ts("0x41")](Ts("0x4a")),i={};n[Ts("0x35")](Ts("0x7"),((i,o)=>{const s=t[Ts("0x20")].get(Ts("0x34")).me,x=t[Ts("0x3b")].get("imageStyle");let a=r[Ts("0x17")](t[Ts("0x24")][Ts("0xb")].selection),c=t[Ts("0x24")][Ts("0x40")](a),l=x[Ts("0x48")];if(l==o[Ts("0x48")])return;const u={commandName:"imageStyle",commandParams:[o],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[Ts("0x31")]().filter((t=>t.isInContent&&s==t[Ts("0x13")]&&(Ts("0x22")==t[Ts("0x1e")]||Ts("0x11")==t[Ts("0x1e")])&&(Ts("0x10")==t[Ts("0x26")]||"imageStylePostApply"==t[Ts("0x26")])&&t[Ts("0x23")]()[Ts("0x3c")](c)))[Ts("0x16")]((t=>n[Ts("0x38")](t[Ts("0x44")]))),a=r[Ts("0x17")](t[Ts("0x24")][Ts("0xb")].selection),c=t[Ts("0x24")].createRangeOn(a),x[Ts("0x29")](),t[Ts("0x3b")][Ts("0x41")](Ts("0x4b"))[Ts("0x29")](),t[Ts("0x3b")][Ts("0x41")](Ts("0x43"))[Ts("0x29")](),l=x[Ts("0x48")],l!=o.value)return r[Ts("0x37")](a)&&x.shouldConvertImageType(o[Ts("0x48")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x17")](t.model[Ts("0xb")][Ts("0x8")]),void n[Ts("0xa")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0x46")](a)?n.markBlockFormat(a,u,[],Ts("0x1")):n.markInlineFormat(c,u,Ts("0x1")))}))}));for(const e of t[Ts("0x20")].get(Ts("0x3a")).normalizedStyles)i[e[Ts("0x1b")]]=e[Ts("0x39")].toLowerCase();n[Ts("0x4")].registerCustomCallback("formatBlock",Ts("0x10"),Ts("0x3d"),(()=>!1)),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x1"),Ts("0x3d"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Ts("0x11"),Ts("0x1"),Ts("0x3d"),(()=>!1)),n._suggestionFactory[Ts("0x12")](Ts("0x22"),Ts("0x10"),Ts("0x32"),(([t])=>{r[Ts("0x5")](t[Ts("0xc")]())})),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x10"),Ts("0x25"),((t,e)=>{n[Ts("0x4")][Ts("0x42")](Ts("0x22"),"","accept")(t,{commandName:e[Ts("0x2")],commandParams:e[Ts("0x30")]})})),n[Ts("0x4")][Ts("0x12")](Ts("0x22"),Ts("0x10"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x22"),subType:"imageStylePreApply"},{type:Ts("0x1d"),subType:Ts("0x9")},{type:"formatBlock",subType:Ts("0x14")},{type:Ts("0x1d"),subType:Ts("0x14")}];function s(t,e){const i=o.findIndex((({type:e,subType:n})=>t[Ts("0x1e")]==e&&t.subType==n)),s=o[Ts("0x3e")]((({type:t,subType:n})=>e.type==t&&e[Ts("0x26")]==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[Ts("0x23")]();if((0==i||1==i)&&2==s&&x[Ts("0x1c")](a))return!0;if(2==i&&3==s){const t=n[Ts("0x33")](x,Ts("0x1d")).filter((({suggestion:t,meta:e})=>e[Ts("0x6")]&&Ts("0x14")==t[Ts("0x26")]));if(t[Ts("0x1f")]>1&&a[Ts("0xf")][Ts("0x3c")](x[Ts("0x18")]))return!0;if(1==t[Ts("0x1f")]&&(x[Ts("0x18")].isEqual(a[Ts("0xf")])||x[Ts("0xf")].isEqual(a[Ts("0x18")])))return!0}if(3==i&&3==s&&x[Ts("0x18")].isBefore(a[Ts("0x18")])){const t=x[Ts("0xf")][Ts("0x45")],e=a[Ts("0x18")][Ts("0x2a")];return r[Ts("0x46")](t)&&t===e}return!1}t[Ts("0x24")].document[Ts("0x1a")]((()=>{let e=!1;const i=Array[Ts("0x28")](t.model[Ts("0xb")][Ts("0x21")].getChangedMarkers());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0xd")](t);if(Ts("0x3f")==i&&n[Ts("0x47")](a)){if(Ts("0x22")==s&&(Ts("0x10")==x||"imageStylePostApply"==x)){const t=n[Ts("0x2d")](a);if(o[Ts("0x15")]){const i=t[Ts("0x23")]().getContainedElement();if(r[Ts("0x46")](i))continue;n[Ts("0x38")](t),e=!0}}if(Ts("0x1d")==s&&Ts("0x9")==x&&!o[Ts("0x15")]){const t=n[Ts("0x2d")](a);t[Ts("0x2f")]&&t[Ts("0x2f")][Ts("0x19")]&&(n.discardSuggestion(t[Ts("0x2f")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}[Ts("0x27")](t){const e=this.editor,n=e[Ts("0x2b")];e[Ts("0x20")][Ts("0x41")]("TrackChangesEditing")[Ts("0x2e")][Ts("0x36")]((e=>{if(Ts("0x22")!=e[Ts("0x1e")]&&Ts("0x11")!=e[Ts("0x1e")])return;const{data:r}=e;if(!r||Ts("0x7")!=r[Ts("0x2")])return;const i=r[Ts("0x49")][0][Ts("0x48")];return o="side"===i?Jr(n,Ts("0x0")):t[i]||i,{type:"format",content:Jr(n,Ts("0x2c"),o)};var o}))}}const Cs=["listenTo","Users","high","collaboration_features","value","forEach","commands","track_changes","_setSuggestionData","dataInsert","bind","importWord","_trackChangesValueDuringImport","trackChanges","TrackChangesEditing","editor","_handleImportedData","get","execute","lowest","plugins","_trackChangesExecuted"];var As,ks;As=Cs,ks=123,function(t){for(;--t;)As.push(As.shift())}(++ks);const Rs=function(t,e){return Cs[t-=0]};class Ss extends t.Plugin{constructor(t){super(t),this[Rs("0x15")]=!1,this[Rs("0x8")]=!1}afterInit(){const t=this[Rs("0x2")],e=t[Rs("0xf")][Rs("0x4")](Rs("0x14")),n=t[Rs("0xf")][Rs("0x4")](Rs("0x0"));e&&(e.on(Rs("0x5"),((t,[,e])=>{this[Rs("0x15")]=n[Rs("0xd")],e[Rs("0xc")][Rs("0x10")]=!this[Rs("0x15")]}),{priority:Rs("0xb")}),this[Rs("0x9")](e,Rs("0x12"),this[Rs("0x3")][Rs("0x13")](this)),this[Rs("0x9")](e,Rs("0x12"),(()=>{this[Rs("0x8")]&&(n[Rs("0x5")](),this[Rs("0x8")]=!1)}),{priority:Rs("0x6")}),t[Rs("0x7")][Rs("0x4")](Rs("0x1")).enableCommand(Rs("0x14")))}[Rs("0x3")](t,e){const{suggestions:n}=e,r=this.editor[Rs("0xf")][Rs("0x4")]("trackChanges"),i=r[Rs("0xd")];this._trackChangesValueDuringImport!==i&&(r[Rs("0x5")](),this[Rs("0x8")]=!0),n&&n[Rs("0xe")]((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this.editor[Rs("0x7")][Rs("0x4")](Rs("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:Rs("0x14")}}};this[Rs("0x2")].plugins[Rs("0x4")](Rs("0x1"))[Rs("0x11")](i)}))}}const Is=["registerAttributeLabel","get","type","editor","getItems","outdent","FORMAT_INDENT","indentBlock","format","IndentEditing","IndentBlock","_descriptionFactory","*Outdent:* %0","enableCommand","outdentBlock","locale","has","blockIndent","_registerLegacyDescription","_enableDefaultAttributesIntegration","TrackChangesEditing","_registerBlockAttribute","commandName","*Indent:* %0","plugins"];var Ns,vs;Ns=Is,vs=221,function(t){for(;--t;)Ns.push(Ns.shift())}(++vs);const Ls=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ls("0x7")],e=t[Ls("0x3")][Ls("0x5")](Ls("0x18"));if(t.plugins[Ls("0x14")](Ls("0xd"))&&(e[Ls("0x11")]("indent"),e[Ls("0x11")](Ls("0x9"))),t[Ls("0x3")][Ls("0x14")](Ls("0xe")))for(const t of[Ls("0xb"),"outdentBlock"])e[Ls("0x17")](t);const n=t[Ls("0x13")];e[Ls("0x0")](Ls("0x15")),e._descriptionFactory[Ls("0x4")](Ls("0x15"),Jr(n,Ls("0xa"))),this[Ls("0x16")]()}_registerLegacyDescription(){const t=this[Ls("0x7")],e=t[Ls("0x13")],n=t[Ls("0x3")][Ls("0x5")]("TrackChangesEditing");n[Ls("0xf")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Ls("0x6")])return;const{data:r}=t;if(!r)return;if(Ls("0xb")!=r[Ls("0x1")]&&"outdentBlock"!=r[Ls("0x1")])return;const i=t[Ls("0x8")]()[0],o=n[Ls("0xf")].getItemLabel(i);return"indentBlock"==r[Ls("0x1")]?{type:Ls("0xc"),content:Jr(e,Ls("0x2"),o)}:Ls("0x12")==r[Ls("0x1")]?{type:Ls("0xc"),content:Jr(e,Ls("0x10"),o)}:void 0}))}}var ws,Os,Fs=["plugins","init","editor","requires","TrackChangesEditing","enableCommand","get"];ws=Fs,Os=409,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x0")](){return[qi.Input]}[Ds("0x5")](){this[Ds("0x6")][Ds("0x4")][Ds("0x3")](Ds("0x1"))[Ds("0x2")]("input")}}const Ps=["manualDecorators","_descriptionFactory","editor","unlink","toLowerCase","format","get","linkHref","_enableDefaultAttributesIntegration","locale","registerDescriptionCallback","commandName","map","LinkEditing","*Remove link*","formatInline","*Set link:* %0","commandParams","has","link (","TrackChangesEditing","afterInit","link","_registerLegacyDescription","type","registerAttributeLabel","label"];var Us,js;Us=Ps,js=495,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0xc")](){const t=this.editor;if(!t.plugins[Gs("0x9")](Gs("0x4")))return;const e=t.plugins.get(Gs("0xb")),n=t.commands.get("link");e[Gs("0x1a")]("link",["linkHref",...n[Gs("0x12")][Gs("0x3")]((t=>t.id))]),e[Gs("0x1a")](Gs("0x15"));for(const t of n[Gs("0x12")])e[Gs("0x13")][Gs("0x10")](t.id,Gs("0xa")+t[Gs("0x11")][Gs("0x16")]()+")");e._descriptionFactory[Gs("0x1")]((e=>{if("attribute"!=e[Gs("0xf")])return;const{data:n}=e;if(!n||Gs("0x19")!=n.key)return;const r=n.newValue,i=t.locale;return{type:"format",content:null==r?Jr(i,Gs("0x5")):Jr(i,Gs("0x7"),'"'+r+'"')}})),this[Gs("0xe")]()}[Gs("0xe")](){const t=this[Gs("0x14")],e=t[Gs("0x0")];t.plugins[Gs("0x18")]("TrackChangesEditing")[Gs("0x13")][Gs("0x1")]((t=>{if(Gs("0x6")!=t.type)return;const{data:n}=t;if(n){if(Gs("0xd")==n.commandName){const t=n[Gs("0x8")][0];return{type:Gs("0x17"),content:Jr(e,Gs("0x7"),'"'+t+'"')}}return Gs("0x15")==n[Gs("0x2")]?{type:Gs("0x17"),content:Jr(e,Gs("0x5"))}:void 0}}))}}const Hs=["has","model","*Uncheck item*","enableCommand","registerDescriptionCallback","value","selection","markBlockFormat","formatInline","*Outdent:* %0","numberedList","createPositionAt","ELEMENT_BULLETED_LIST","slice","plugins","locale","findIndex","registerElementLabel","format","bulletedList","name","replace","change","LegacyTodoListEditing","execute","type","document","todoList","*Indent:* %0","outdentList","blockName","checkTodoList","getSelectedBlocks","listItem","List","element","LegacyListEditing","commands","end","todoListChecked","before","nextSibling","numbered","listType","editor","forceValue","from","todo","length","afterInit","schema","add","indentList","ELEMENT_LIST_ITEM","*Change to:* %0","_descriptionFactory","filter","ELEMENT_NUMBERED_LIST","commandParams","commandName","formatBlock","previousSibling","createRange","TrackChangesEditing","listIndent","getAttribute","get"];var zs,Ws;zs=Hs,Ws=250,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x0")](){const t=this[Ks("0x3e")],e=t[Ks("0x21")];if(!t[Ks("0x20")][Ks("0x12")](Ks("0x36")))return;const n=t[Ks("0x20")][Ks("0x11")](Ks("0xe")),r=t[Ks("0x20")][Ks("0x12")](Ks("0x29"));function i(e){return()=>{const r=t[Ks("0x13")][Ks("0x2c")][Ks("0x18")],i=t[Ks("0x37")][Ks("0x11")](e);if(i[Ks("0x17")])return void t[Ks("0x2a")]("paragraph",{});const o=e[Ks("0x1f")](0,-4),s=function(t,e,n){let r=Array[Ks("0x40")](t).filter((t=>{return e=t,(r=n).checkChild(e.parent,Ks("0x33"))&&!r.isObject(e);var e,r}));r=r.filter((t=>!t.is(Ks("0x35"),Ks("0x33"))||t[Ks("0x10")](Ks("0x3d"))!=e));const i=new Set;for(const t of r)t.is(Ks("0x35"),Ks("0x33"))?i[Ks("0x2")](Xs(t)):i[Ks("0x2")](t);return Array[Ks("0x40")](i)}(r.getSelectedBlocks(),o,t[Ks("0x13")][Ks("0x1")]);t.model[Ks("0x28")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ks("0x17")]}],formatGroupId:Ks("0x30")},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x40")](t);const n=e[Ks("0x22")]((t=>"listItem"!=t[Ks("0x26")]));return n>-1&&(e=e[Ks("0x1f")](0,n)),e}(t[Ks("0x13")].document[Ks("0x18")][Ks("0x32")]()),i=t.model[Ks("0xd")](t[Ks("0x13")][Ks("0x1d")](r[0],Ks("0x3a")),t.model[Ks("0x1d")](r[r[Ks("0x42")]-1],Ks("0x38")));t.model[Ks("0x28")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ks("0xf")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x3b")];for(;t&&t.getAttribute("listIndent")>n[Ks("0x10")](Ks("0xf"));)e[Ks("0x2")](t),t=t[Ks("0x3b")]}return Array[Ks("0x40")](e)}(r))}))}}n.enableCommand(Ks("0x1c"),i(Ks("0x1c"))),n[Ks("0x15")](Ks("0x25"),i("bulletedList")),r&&n[Ks("0x15")](Ks("0x2d"),i(Ks("0x2d"))),n[Ks("0x15")](Ks("0x3"),o(Ks("0x3"))),n[Ks("0x15")](Ks("0x2f"),o("outdentList")),r&&n[Ks("0x15")]("checkTodoList",(()=>{const e=t.commands[Ks("0x11")](Ks("0x31")),r=Array[Ks("0x40")](e._selectedElements);r[Ks("0x7")]((t=>t[Ks("0x10")](Ks("0x39"))!=e[Ks("0x17")])),t[Ks("0x13")][Ks("0x28")]((()=>{for(const t of r)n[Ks("0x19")](t,{commandName:Ks("0x31"),commandParams:[{forceValue:!e.value}]})}))})),n[Ks("0x6")][Ks("0x23")](Ks("0x33"),(t=>Jr(e,Ks("0x4"),t))),n[Ks("0x6")][Ks("0x16")]((t=>{if(Ks("0xb")!=t[Ks("0x2b")]&&Ks("0x1a")!=t.type)return;const{data:n}=t;if(n){if(Ks("0x1c")==n[Ks("0xa")]||Ks("0x25")==n[Ks("0xa")]||Ks("0x2d")==n[Ks("0xa")])switch(n[Ks("0xa")][Ks("0x27")](Ks("0x34"),"")){case"bulleted":return r(Jr(e,Ks("0x1e")));case Ks("0x3c"):return r(Jr(e,Ks("0x8")));case Ks("0x41"):return r(Jr(e,"ELEMENT_TODO_LIST"))}if(Ks("0x3")==n.commandName)return{type:"format",content:Jr(e,Ks("0x2e"),Jr(e,"ELEMENT_LIST_ITEM"))};if(Ks("0x2f")==n[Ks("0xa")])return{type:"format",content:Jr(e,Ks("0x1b"),Jr(e,Ks("0x4")))};if(Ks("0x31")==n[Ks("0xa")])return n[Ks("0x9")][0][Ks("0x3f")]?{type:Ks("0x24"),content:Jr(e,"*Check item*")}:{type:"format",content:Jr(e,Ks("0x14"))}}function r(t){return{type:Ks("0x24"),content:Jr(e,Ks("0x5"),t)}}}))}}function Xs(t){const e=t[Ks("0x10")](Ks("0xf"));if(0==e)return t;let n=t;for(;t[Ks("0xc")]&&t[Ks("0xc")].is(Ks("0x35"),"listItem");){const r=t.previousSibling[Ks("0x10")](Ks("0xf"));if(r==e)n=t.previousSibling;else if(r<e)break;t=t.previousSibling}return n}function $s(t){const e=[];if(t.is(Ks("0x35"),Ks("0x33"))&&t[Ks("0x10")]("listIndent")>0){let n=t[Ks("0x3b")];for(;n&&"listItem"==n[Ks("0x26")]&&n.getAttribute(Ks("0xf"))==t.getAttribute(Ks("0xf"));)e.push(n),n=n.nextSibling}return e}const Zs=["LegacyListUtils","listType","commandName","handleListStartCommand","commandParams","formatInline","backward","startIndex","getFirstPosition","document","getSelectedBlocks","handleListReversedCommand","*Format:* set start index to %0","get","styles","config","getSiblingNodes","editor","filter","listItem","numbered","forward","getLastPosition","model","formatBlock","_getTranslationKeyForListStyle","map","getListTypeFromListStyleType","selection","getAttribute","flat","locale","createRange","_getSuggestionBlocks","listStart","replace","type","listReversed","bind","push","format","listStyle","plugins","_getSuggestionBlocksForListStyle","list.properties","before","markMultiRangeBlockFormat","createPositionAt","reversed","TrackChangesEditing","_LIST_","length","registerDescriptionCallback","has","element","parent","handleListStyleCommand","*Format:* set order to reversed","change","handleDescriptions","_descriptionFactory","toUpperCase","ELEMENT_"];var Ys,Js;Ys=Zs,Js=351,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{afterInit(){if(!this.editor[Qs("0x6")][Qs("0x11")]("LegacyListPropertiesEditing"))return;const t=this[Qs("0x2c")][Qs("0x2a")][Qs("0x28")](Qs("0x8")),e=this[Qs("0x2c")].plugins[Qs("0x28")](Qs("0xd"));t[Qs("0x29")]&&e.enableCommand(Qs("0x5"),this[Qs("0x14")][Qs("0x2")](this)),t[Qs("0xc")]&&e.enableCommand("listReversed",this[Qs("0x26")].bind(this)),t[Qs("0x22")]&&e.enableCommand(Qs("0x3d"),this[Qs("0x1e")][Qs("0x2")](this)),e[Qs("0x18")][Qs("0x10")](this[Qs("0x17")].bind(this))}[Qs("0x14")](t,e={}){const n=this.editor[Qs("0x6")][Qs("0x28")]("TrackChangesEditing"),r=this[Qs("0x7")]();this[Qs("0x2c")].model.change((()=>{n[Qs("0xa")](r,{commandName:Qs("0x5"),commandParams:[{type:e.type}],formatGroupId:Qs("0x5")})}))}[Qs("0x26")](t,e={}){const n=this[Qs("0x2c")][Qs("0x6")][Qs("0x28")](Qs("0xd")),r=this[Qs("0x3c")]((t=>t.is(Qs("0x12"),"listItem")&&"numbered"===t[Qs("0x38")](Qs("0x1c"))));if(r.length<1)return;const i=r[Qs("0x35")]((t=>this[Qs("0x2c")][Qs("0x32")][Qs("0x3b")](this[Qs("0x2c")].model[Qs("0xb")](t,Qs("0x9")),this.editor.model[Qs("0xb")](t,0))));this.editor[Qs("0x32")][Qs("0x16")]((()=>{n[Qs("0xa")](i,{commandName:Qs("0x1"),commandParams:[{reversed:e[Qs("0xc")]}],formatGroupId:Qs("0x1")})}))}handleListStartCommand(t,e={}){const n=this[Qs("0x2c")][Qs("0x6")][Qs("0x28")](Qs("0xd")),r=this[Qs("0x3c")]((t=>t.is(Qs("0x12"),Qs("0x2e"))&&Qs("0x2f")===t.getAttribute(Qs("0x1c"))));if(r[Qs("0xf")]<1)return;const i=r[Qs("0x35")]((t=>this.editor.model[Qs("0x3b")](this.editor[Qs("0x32")][Qs("0xb")](t,Qs("0x9")),this.editor[Qs("0x32")][Qs("0xb")](t,0))));this[Qs("0x2c")][Qs("0x32")][Qs("0x16")]((()=>{n[Qs("0xa")](i,{commandName:"listStart",commandParams:[{startIndex:e[Qs("0x22")]}],formatGroupId:Qs("0x3d")})}))}handleDescriptions(t){if(Qs("0x33")!=t[Qs("0x0")]&&Qs("0x20")!=t.type)return;const e=this[Qs("0x2c")][Qs("0x3a")],{data:n}=t;if(!n)return;let r,i;switch(n[Qs("0x1d")]){case"listStyle":r="*Change to:* %0",i={type:"format",content:Jr(e,r,Jr(e,this[Qs("0x34")](n[Qs("0x1f")][0].type)))};break;case Qs("0x1"):r=n[Qs("0x1f")][0][Qs("0xc")]?Qs("0x15"):"*Format:* set order to regular",i={type:"format",content:Jr(e,r)};break;case Qs("0x3d"):r=Qs("0x27"),i={type:Qs("0x4"),content:Jr(e,r,n[Qs("0x1f")][0][Qs("0x22")])}}return i}[Qs("0x7")](){var t,e,n,r;const i=this.editor[Qs("0x6")].get(Qs("0x1b"));let o=Array.from(this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")][Qs("0x25")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x12"),Qs("0x2e")))&&o.unshift(...i[Qs("0x2b")](this.editor[Qs("0x32")][Qs("0x24")].selection[Qs("0x23")](),"backward")),(null===(e=o[o[Qs("0xf")]-1])||void 0===e?void 0:e.is(Qs("0x12"),"listItem"))&&o[Qs("0x3")](...i[Qs("0x2b")](this.editor.model.document.selection[Qs("0x31")](),Qs("0x30"))),o=[...new Set(o)],(null===(r=null===(n=this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")].getFirstPosition())||void 0===n?void 0:n[Qs("0x13")])||void 0===r?void 0:r.is(Qs("0x12"),Qs("0x2e")))&&(o=o[Qs("0x2d")]((t=>t.is(Qs("0x12"),"listItem")))),o}[Qs("0x3c")](t){const e=this.editor[Qs("0x6")][Qs("0x28")](Qs("0x1b"));let n=Array.from(this[Qs("0x2c")][Qs("0x32")][Qs("0x24")][Qs("0x37")].getSelectedBlocks()).filter(t)[Qs("0x35")]((t=>{const n=this.editor[Qs("0x32")][Qs("0xb")](t,0);return[...e[Qs("0x2b")](n,Qs("0x21")),...e[Qs("0x2b")](n,"forward")]}))[Qs("0x39")]();return n=[...new Set(n)],n}[Qs("0x34")](t){return Qs("0x1a")+this.editor[Qs("0x6")][Qs("0x28")](Qs("0x1b"))[Qs("0x36")](t)[Qs("0x19")]()+Qs("0xe")+t.toUpperCase()[Qs("0x3e")](/-/g,"_")}}const ex=["MediaEmbedEditing","afterInit","_descriptionFactory","conversion","TrackChangesEditing","dataDowncast","options","stop","data","for","enableCommand","showSuggestionHighlights","media","plugins","mediaEmbed","high","editor","ELEMENT_MEDIA","get","locale","createEmptyElement","has"];var nx,rx;nx=ex,rx=135,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x14")](){const t=this[ix("0xd")];if(!t.plugins[ix("0x12")](ix("0x13")))return;const e=t[ix("0xa")][ix("0xf")](ix("0x1")),n=t[ix("0x10")];e[ix("0x7")](ix("0xb")),e[ix("0x15")].registerElementLabel("media",(t=>Jr(n,ix("0xe"),t))),t[ix("0x0")][ix("0x6")](ix("0x2")).elementToElement({model:ix("0x9"),view:(t,{writer:e,options:n})=>{if(n[ix("0x8")])return e[ix("0x11")]("div")},converterPriority:"high"}),t[ix("0x5")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[ix("0x3")][ix("0x8")]&&t[ix("0x4")]()}),{priority:ix("0xc")})}}const sx=["TrackChangesEditing","has","plugins","enableCommand","editor","MentionEditing"];var xx,ax;xx=sx,ax=462,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{afterInit(){const t=this[cx("0x4")];t[cx("0x2")][cx("0x1")](cx("0x5"))&&t[cx("0x2")].get(cx("0x0"))[cx("0x3")]("mention")}}const ux=["locale","ELEMENT_PAGE_BREAK","_descriptionFactory","get","has","registerElementLabel","plugins","TrackChangesEditing","afterInit","PageBreakEditing","editor","pageBreak"];var dx,gx;dx=ux,gx=345,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0xb")](){const t=this[fx("0x1")];if(!t[fx("0x9")][fx("0x7")](fx("0x0")))return;t[fx("0x9")][fx("0x6")](fx("0xa")).enableCommand("pageBreak");const e=t[fx("0x9")].get(fx("0xa")),n=t[fx("0x3")];e[fx("0x5")][fx("0x8")](fx("0x2"),(t=>Jr(n,fx("0x4"),t)))}}const mx=["downcastDispatcher","consume","type","consumable","_enableDefaultAttributesIntegration","mapper","nodeAfter","has","isLimit","model","locale","options","insertion","Paragraph","ELEMENT_PARAGRAPH","bindElementToMarker","markerName","registerDescriptionCallback","commandName","formatBlock","registerElementLabel","includes","markerRange","paragraph","get","activeMarkers","getItemLabel","afterInit","editor","isBlock","_descriptionFactory","isTouching","span","highest","addMarker:suggestion:insertion","insert","addClass","TrackChangesEditing","writer","enableCommand","format","$text","_registerLegacyDescription","end","editing","showSuggestionHighlights","checkChild","plugins"];var px,bx;px=mx,bx=424,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x23")](){const t=this.editor;if(!t[Ex("0x7")][Ex("0xf")](Ex("0x15")))return;const e=t[Ex("0x12")],n=t[Ex("0x7")][Ex("0x20")](Ex("0x2d"));n[Ex("0x26")][Ex("0x1c")](Ex("0x1f"),(t=>Jr(e,Ex("0x16"),t))),n[Ex("0xc")](Ex("0x1f")),n[Ex("0x2f")]("insertParagraph"),t[Ex("0x4")].downcastDispatcher.on(Ex("0x2a"),Tx(t),{priority:Ex("0x29")}),t.data[Ex("0x8")].on(Ex("0x2a"),((e,n,r)=>{r[Ex("0x13")][Ex("0x5")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x29")});const r=n[Ex("0x26")];r[Ex("0x19")]((n=>{if(Ex("0x14")!==n[Ex("0xa")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x27")](o)||!i[Ex("0xe")])return;const s=t[Ex("0x11")].schema,x=i[Ex("0xe")];return s.isBlock(x)&&!s[Ex("0x10")](x)&&s[Ex("0x6")](x,Ex("0x1"))?{type:"insertion",content:Jr(e,"*Insert:* %0",r[Ex("0x22")](x,1))}:void 0})),this[Ex("0x2")]()}[Ex("0x2")](){const t=this[Ex("0x24")],e=t.locale;t[Ex("0x7")].get(Ex("0x2d"))[Ex("0x26")][Ex("0x19")]((t=>{if(Ex("0x1b")!=t.type)return;const{data:n}=t;return n&&Ex("0x1f")==n[Ex("0x1a")]?{type:Ex("0x0"),content:Jr(e,"*Change to:* %0",Jr(e,Ex("0x16")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Ex("0x7")][Ex("0x20")](Ex("0x2d")),s=r[Ex("0x1e")].start,x=r[Ex("0x1e")][Ex("0x3")],a=t[Ex("0x11")].schema;if(!s[Ex("0x27")](x)||!s[Ex("0xe")])return;const c=s[Ex("0xe")];if(a[Ex("0x25")](c)&&!a.isLimit(c)&&a[Ex("0x6")](c,Ex("0x1"))){if(!i[Ex("0xb")][Ex("0x9")](r[Ex("0x1e")],n.name))return;const t=i[Ex("0x2e")].createUIElement(Ex("0x28"),{class:"ck-suggestion-marker-split"}),s=i.mapper.toViewPosition(x);e&&o[Ex("0x21")][Ex("0x1d")](r[Ex("0x18")])&&i[Ex("0x2e")][Ex("0x2c")]("ck-suggestion-marker--active",t),i[Ex("0x2e")][Ex("0x2b")](s,t),i[Ex("0xd")][Ex("0x17")](t,r[Ex("0x18")])}}}const yx=["format","plugins","type","_registerLegacyDescription","locale","TrackChangesEditing","afterInit","has","RemoveFormatEditing","_descriptionFactory","_enableDefaultAttributesIntegration","registerDescriptionCallback","get","commandName","formatBlock","removeFormat"];var Cx,Ax;Cx=yx,Ax=204,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Rx extends t.Plugin{[kx("0xa")](){const t=this.editor;t[kx("0x5")][kx("0xb")](kx("0xc"))&&(t[kx("0x5")][kx("0x0")](kx("0x9"))[kx("0xe")](kx("0x3")),this[kx("0x7")]())}[kx("0x7")](){const t=this.editor;t.plugins[kx("0x0")](kx("0x9"))[kx("0xd")][kx("0xf")]((e=>{if(kx("0x2")!=e.type&&"formatInline"!=e[kx("0x6")])return;const{data:n}=e;return n&&kx("0x3")==n[kx("0x1")]?{type:kx("0x4"),content:Jr(t[kx("0x8")],"*Remove all formatting*")}:void 0}))}}const Sx=["get","afterInit","discardSuggestion","RestrictedEditingModeEditing","plugins","discardAllSuggestions","trackChanges","TrackChangesEditing","acceptSuggestion","enableCommand","discardSelectedSuggestions","editor"];var Ix,Nx;Ix=Sx,Nx=390,function(t){for(;--t;)Ix.push(Ix.shift())}(++Nx);const vx=function(t,e){return Sx[t-=0]};class Lx extends t.Plugin{[vx("0x7")](){const t=this[vx("0x5")];if(!t[vx("0xa")].has(vx("0x9")))return;const e=t[vx("0xa")][vx("0x6")](vx("0x1"));e[vx("0x3")]("goToPreviousRestrictedEditingException"),e[vx("0x3")]("goToNextRestrictedEditingException");const n=t[vx("0xa")][vx("0x6")](vx("0x9"));n.enableCommand(vx("0x0")),n[vx("0x3")](vx("0x2")),n[vx("0x3")](vx("0x8")),n[vx("0x3")]("acceptAllSuggestions"),n[vx("0x3")](vx("0xb")),n[vx("0x3")]("acceptSelectedSuggestions"),n[vx("0x3")](vx("0x4"))}}const Mx=["insert","addMarker:suggestion","ck-suggestion-marker--active","includes","split","markerName","consumable","high","markerRange","writer","editor","shiftEnter","data","bindElementToMarker","editing","ELEMENT_LINE_BREAK","options","getItems","createPositionBefore","activeMarkers","ck-suggestion-marker-","toViewPosition","softBreak","locale","element","span","addMarker:suggestion:deletion","enableCommand","createUIElement","merge","mapper","test","init","plugins","downcastDispatcher","registerElementLabel","_descriptionFactory","get"];var wx,Ox;wx=Mx,Ox=178,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get requires(){return[Eo.ShiftEnter]}[Fx("0x6")](){const t=this[Fx("0x16")],e=t[Fx("0x7")][Fx("0xb")]("TrackChangesEditing");e[Fx("0x1")](Fx("0x17")),t[Fx("0x1a")][Fx("0x8")].on("addMarker:suggestion:insertion",Bx(t),{priority:Fx("0x13")}),t.editing.downcastDispatcher.on(Fx("0x0"),Bx(t),{priority:Fx("0x13")}),t[Fx("0x18")][Fx("0x8")].on(Fx("0xd"),((e,n,r)=>{r[Fx("0x1c")].showSuggestionHighlights&&Bx(t,{showActiveMarker:!1})(e,n,r)})),e[Fx("0xa")][Fx("0x9")](Fx("0x22"),(e=>Jr(t[Fx("0x23")],Fx("0x1b"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x7")].get("TrackChangesEditing");if(!i[Fx("0x12")][Fx("0x5")](r.markerRange,n.name))return;const s=t.model;for(const t of r[Fx("0x14")][Fx("0x1d")]()){if(!t.is(Fx("0x24"),Fx("0x22")))continue;const n="deletion"==r.markerName[Fx("0x10")](":")[1]?Fx("0x3"):"split",x=i[Fx("0x15")][Fx("0x2")](Fx("0x25"),{class:Fx("0x20")+n}),a=i[Fx("0x4")][Fx("0x21")](s[Fx("0x1e")](t));e&&o[Fx("0x1f")][Fx("0xf")](r[Fx("0x11")])&&i[Fx("0x15")].addClass(Fx("0xe"),x),i[Fx("0x15")][Fx("0xc")](a,x),i[Fx("0x4")][Fx("0x19")](x,r.markerName)}}}const Px=["get","FORMAT_RESTRICTED_ENABLED","_descriptionFactory","change","restrictedEditingException","formatBlock","isCollapsed","markInlineFormat","StandardEditingModeEditing","TrackChangesEditing","has","selection","enableCommand","FORMAT_RESTRICTED_DISABLED","plugins","from","forceValue","commandName","commandParams","formatInline","registerDescriptionCallback","editor","model","getRanges","commands"];var Ux,jx;Ux=Px,jx=164,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{afterInit(){const t=this[Gx("0x7")],e=t[Gx("0x8")],n=t.locale;if(!t.plugins[Gx("0x15")](Gx("0x13")))return;const r=t[Gx("0x0")][Gx("0xb")](Gx("0x14")),i=Gx("0xf"),o=t[Gx("0xa")][Gx("0xb")](i);r[Gx("0x17")](i,((t,n={})=>{const s=e.document[Gx("0x16")];if(s[Gx("0x11")])return void t(n);const x=void 0!==n[Gx("0x2")]?n[Gx("0x2")]:!o.value;e[Gx("0xe")]((()=>{const t=Array[Gx("0x1")](s[Gx("0x9")]());for(const n of t){const t=x?[n]:Ji(i,n,e);for(const e of t)r[Gx("0x12")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r[Gx("0xd")][Gx("0x6")]((t=>{if(Gx("0x10")!=t.type&&Gx("0x5")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x3")]==i?e[Gx("0x4")][0][Gx("0x2")]?{type:"format",content:Jr(n,Gx("0xc"))}:{type:"format",content:Jr(n,Gx("0x18"))}:void 0}))}}const Hx=["has","_registerInlineAttribute","plugins","definitions","Style","type","commandParams","registerDescriptionCallback","StyleUtils","get","ghsAttributes","_registerBlockAttribute","_registerLegacyDescription","DataSchema","locale","_descriptionFactory","afterInit","forceValue","formatInline","format","config","element","style","editor","styleName","add","registerAttributeLabel","FORMAT_STYLE","GeneralHtmlSupport","toLowerCase"];var zx,Wx;zx=Hx,Wx=489,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x7")](){const t=this[Kx("0xe")];if(!t.plugins.has(Kx("0x19"))||!t[Kx("0x17")][Kx("0x15")](Kx("0x4")))return;const e=t[Kx("0x17")][Kx("0x0")]("TrackChangesEditing"),n=t[Kx("0x5")],r=t[Kx("0xb")][Kx("0x0")](Kx("0xd")),i=t[Kx("0x17")][Kx("0x0")](Kx("0x13")),o=t.plugins[Kx("0x0")](Kx("0x1d")).normalizeConfig(t[Kx("0x17")].get(Kx("0x4")),r[Kx("0x18")]);e._enableDefaultAttributesIntegration("style");const s=new Set;for(const t of o.block){const e=i.getGhsAttributeNameForElement(t.element);s[Kx("0x10")](e)}const x=new Set;for(const t of o.inline){const e=i.getGhsAttributeNameForElement(t[Kx("0xc")]);x[Kx("0x10")](e);for(const e of t[Kx("0x1")])x[Kx("0x10")](e)}for(const t of s)e[Kx("0x2")](t),e[Kx("0x6")].registerAttributeLabel(t,Jr(n,Kx("0x12")));for(const t of x)e[Kx("0x16")](t),e[Kx("0x6")][Kx("0x11")](t,Jr(n,"FORMAT_STYLE"));this[Kx("0x3")]()}[Kx("0x3")](){const t=this[Kx("0xe")],e=t.locale;t[Kx("0x17")].get("TrackChangesEditing")[Kx("0x6")][Kx("0x1c")]((t=>{if("formatBlock"!=t[Kx("0x1a")]&&Kx("0x9")!=t[Kx("0x1a")])return;const{data:n}=t;return n&&Kx("0xd")===n.commandName?n[Kx("0x1b")][0][Kx("0x8")]?{type:Kx("0xa"),content:Jr(e,"*Set format:* %0",n[Kx("0x1b")][0][Kx("0xf")][Kx("0x14")]())}:{type:Kx("0xa"),content:Jr(e,"*Remove format:* %0",n.commandParams[0][Kx("0xf")][Kx("0x14")]())}:void 0}))}}const Xx=["getAttribute","markMultiRangeDeletion","removeTableColumn","isArray","type","max","_setupColumnsRowsFixing","add","_getCoordsForCells","findAncestor","getRowIndexes","getItems","getSelectionAffectedTableCells","insertTableRowBelow","position","getChanges","rootName","_suggestionFactory","getCellLocation","insertTableColumnRight","TableUtils","values","_descriptionFactory","writer","tableCell","start","toViewElement","insert","deletion","includes","$textProxy","root","differ","classes","tablePaste","downcastDispatcher","getFirstRange","get","editor","_splitMarkerName","oldRange","execute","options","order","name","enableCommand","ELEMENT_TABLE","refresh","MAX_SAFE_INTEGER","addRange","isTouching","getSuggestion","push","commands","span","afterInit","fromRange","data","insertTable","last","min","addClass","_tablePostFixingSubtypes","$graveyard","map","rowspan","registerCustomCallback","createPositionAt","subType","detach","getColumnIndexes","_getSuggestionCoords","left","markMultiRangeInsertion","insertTableRowAbove","*Remove:* %0","ELEMENT_TABLE_WITH_TEXT","createRangeIn","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","isEqual","document","setSelection","from","filter","getRanges","insertion","substr","above","nodeAfter","low","join","hasAttribute","maxRow","getChangedMarkers","change:data","TableEditing","createTableWalker","MIN_SAFE_INTEGER","TrackChangesEditing","end","change","removeTableRow","highest","model","tableRow","isInContent","toLowerCase","registerDescriptionCallback","insertTableColumnLeft","has","mapper","removeClass","table","ELEMENT_TABLE_COLUMN_WITH_TEXT","_acceptFormatSuggestionCallbackFactory","cell","createRangeOn","_tableSuggestions","*Insert:* %0","length","element","ELEMENT_TABLE_COLUMN","tableColumn","selection","selectTableRow","some","colspan","discard","minRow"];var $x,Zx;$x=Xx,Zx=465,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x79")]=["tableRow","tableColumn"],this._tableSuggestions=new Set}[Yx("0x72")](){const t=this.editor,e=t[Yx("0x21")][Yx("0xa")][Yx("0x35")];if(!t[Yx("0x8")][Yx("0x27")](Yx("0x19")))return;const n=t.locale,r=t[Yx("0x8")][Yx("0x60")](Yx("0x1c")),i=t[Yx("0x8")][Yx("0x60")](Yx("0x4f"));r[Yx("0x51")].registerElementLabel(Yx("0x2a"),(t=>Jr(n,Yx("0x69"),t))),this[Yx("0x41")](),r[Yx("0x68")](Yx("0x75")),r[Yx("0x68")](Yx("0x36")),r[Yx("0x68")]("selectTableColumn");for(const n of[Yx("0x2"),Yx("0x48")]){const o=t[Yx("0x70")].get(n);r[Yx("0x68")](n,(n=>{t[Yx("0x21")][Yx("0x1e")]((t=>{n();const s=Yx("0x11")===o[Yx("0x66")],x=i[Yx("0x47")](e),a=i[Yx("0x45")](x),c=s?a[Yx("0x6")]-1:a[Yx("0x76")]+1,l=x[0][Yx("0x44")](Yx("0x2a")),u=i[Yx("0x1a")](l,{startRow:c,endRow:c}),d=Array.from(u).map((e=>t[Yx("0x2e")](e.cell)));r[Yx("0x1")](d,"tableRow")}))}))}for(const n of[Yx("0x26"),Yx("0x4e")]){const o=t.commands[Yx("0x60")](n);r[Yx("0x68")](n,(n=>{t.model[Yx("0x1e")]((t=>{n();const s=Yx("0x0")===o[Yx("0x66")],x=i.getSelectionAffectedTableCells(e),a=i[Yx("0x81")](x),c=s?a[Yx("0x6")]-1:a.last+1,l=x[0][Yx("0x44")](Yx("0x2a")),u=i[Yx("0x1a")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Yx("0x7b")]((e=>t.createRangeOn(e[Yx("0x2d")])));r[Yx("0x1")](d,Yx("0x34"))}))}))}for(const n of[Yx("0x1f"),Yx("0x3d")]){const o=n[Yx("0x10")](11),s=o[Yx("0x24")](),x=s[Yx("0x10")](0,3)+Yx("0x71"),a=Yx("0x2a")+o,c="min"+o,l=Yx("0x40")+o;r.enableCommand(n,(()=>{t[Yx("0x21")].change((t=>{const o=i[Yx("0x47")](e),u=o[0][Yx("0x44")](Yx("0x2a"));let d;if("removeTableRow"==n){const t=i[Yx("0x45")](o);d={startRow:t[Yx("0x6")],endRow:t[Yx("0x76")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(o);d={startColumn:t[Yx("0x6")],endColumn:t.last,includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array.from(g)[Yx("0x7b")]((({cell:t})=>t)),h=Qx(f[Yx("0xd")]((t=>t[Yx("0x15")](x)))),m=Qx(f[Yx("0xd")]((t=>!t.hasAttribute(x))))[Yx("0x7b")]((e=>t[Yx("0x2e")](e))),p=r[Yx("0x3c")](m,a);if(p&&(Yx("0x22")==p.subType||Yx("0x34")==p[Yx("0x7f")])){const e=this._getSuggestionCoords(p);for(const n of h){const r=t[Yx("0x2e")](n),o=i[Yx("0x4d")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Yx("0x6c")](r)}}}))}))}function o(n){const r=Array[Yx("0xc")](e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t)));t[Yx("0x21")][Yx("0x1e")]((e=>{const i=e.batch;n=n[Yx("0xd")]((t=>Yx("0x7a")!=t[Yx("0x5a")][Yx("0x4b")])),e[Yx("0xb")](n),t.commands[Yx("0x60")](Yx("0x1f"))[Yx("0x6a")](),t.execute(Yx("0x1f"),{forceDefaultExecution:!0}),t[Yx("0x21")].enqueueChange((()=>{t[Yx("0x21")].enqueueChange(i,(t=>{const e=r[Yx("0xd")]((t=>Yx("0x7a")!=t.root.rootName));e[Yx("0x31")]>0&&t[Yx("0xb")](e);for(const t of r)t[Yx("0x80")]()}))}))}))}function a(n){t.model[Yx("0x1e")]((r=>{const i=Array[Yx("0xc")](e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o.push(e);for(const e of o)Yx("0x7a")!=e[Yx("0x5a")].rootName&&(r.setSelection(r[Yx("0x7e")](e,0)),t[Yx("0x70")][Yx("0x60")]("removeTableColumn")[Yx("0x6a")](),t[Yx("0x64")](Yx("0x3d"),{forceDefaultExecution:!0}));const x=i[Yx("0xd")]((t=>"$graveyard"!=t[Yx("0x5a")][Yx("0x4b")]));x[Yx("0x31")]>0&&r[Yx("0xb")](x);for(const t of i)t[Yx("0x80")]()}))}function c(t,e){return e.every((e=>t[Yx("0x37")]((t=>t.end[Yx("0x9")](e[Yx("0x54")])||e.end.isEqual(t[Yx("0x54")])))))}function l(t,e){return t[Yx("0x37")]((t=>e[Yx("0x37")]((e=>t[Yx("0x1d")][Yx("0x6d")](e[Yx("0x54")])))))}t[Yx("0x74")][Yx("0x5e")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Yx("0x65")].showSuggestionHighlights)return;const r=e.item;if(!r)return;const i=n[Yx("0x28")][Yx("0x55")](r);function o(t){return Array[Yx("0x3e")](t)?t:[t]}i&&"tableCell"===r[Yx("0x67")]&&(0,x.setHighlightHandling)(i,n[Yx("0x52")],((t,e,n)=>n[Yx("0x78")](o(e[Yx("0x5c")]),t)),((t,e,n)=>n[Yx("0x29")](o(e[Yx("0x5c")]),t)))}),{priority:Yx("0x20")}),r[Yx("0x51")].registerDescriptionCallback((t=>{if(Yx("0xf")!=t[Yx("0x3f")]&&Yx("0x57")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Yx("0x32"),Yx("0x2a"))){if("insertion"==t[Yx("0x3f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t[Yx("0x74")]));if(e[Yx("0x31")])return{type:Yx("0xf"),content:Jr(n,"*Insert:* %0",Jr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Yx("0x14")](" ")+'"'))}}if("deletion"==t[Yx("0x3f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t.data));if(e.length)return{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x4"),'"'+e[Yx("0x14")](" ")+'"'))}}}})),r[Yx("0x51")][Yx("0x25")]((t=>{if("tableRow"==t[Yx("0x7f")]){const e=t.getItems()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t[Yx("0x74")])),r=this[Yx("0x82")](t),i=r[Yx("0x16")]-r[Yx("0x3a")]+1;if(Yx("0xf")==t[Yx("0x3f")])return e[Yx("0x31")]?{type:"insertion",content:Jr(n,Yx("0x30"),Jr(n,Yx("0x7"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_ROW",i))};if("deletion"==t.type)return e.length?{type:Yx("0x57"),content:Jr(n,"*Remove:* %0",Jr(n,Yx("0x7"),[i,'"'+e[Yx("0x14")](" ")+'"']))}:{type:"deletion",content:Jr(n,Yx("0x3"),Jr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x34")==t[Yx("0x7f")]){const e=t[Yx("0x46")]()[Yx("0xd")]((t=>t.is(Yx("0x59"))))[Yx("0x7b")]((t=>t.data)),r=this._getSuggestionCoords(t),i=r.maxColumn-r.minColumn+1;if(Yx("0xf")==t[Yx("0x3f")])return e[Yx("0x31")]?{type:Yx("0xf"),content:Jr(n,Yx("0x30"),Jr(n,Yx("0x2b"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0xf"),content:Jr(n,Yx("0x30"),Jr(n,"ELEMENT_TABLE_COLUMN",i))};if(Yx("0x57")==t.type)return e[Yx("0x31")]?{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x2b"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x57"),content:Jr(n,Yx("0x3"),Jr(n,Yx("0x33"),i))}}})),r[Yx("0x4c")].registerCustomCallback(Yx("0xf"),Yx("0x22"),Yx("0x39"),o),r[Yx("0x4c")][Yx("0x7d")](Yx("0x57"),Yx("0x22"),"accept",o),r[Yx("0x4c")][Yx("0x7d")](Yx("0xf"),"tableColumn","discard",a),r._suggestionFactory.registerCustomCallback(Yx("0x57"),Yx("0x34"),"accept",a),r[Yx("0x4c")][Yx("0x7d")](Yx("0xf"),"tableColumn",Yx("0x14"),c),r[Yx("0x4c")].registerCustomCallback("deletion",Yx("0x34"),"join",c),r._suggestionFactory.registerCustomCallback(Yx("0xf"),Yx("0x22"),Yx("0x14"),l),r[Yx("0x4c")].registerCustomCallback(Yx("0x57"),Yx("0x22"),Yx("0x14"),l)}[Yx("0x2c")](){const t=this[Yx("0x61")],e=t[Yx("0x21")][Yx("0xa")][Yx("0x35")];return(n,r)=>{t.model.change((i=>{const{commandName:o,commandParams:x}=r;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Yx("0x54")][Yx("0x12")]);const c=i[Yx("0x5")](a);if(Yx("0x7a")==c[Yx("0x5a")].rootName)return;const l=Array.from(e.getRanges())[Yx("0x7b")]((t=>s.LiveRange[Yx("0x73")](t)));i[Yx("0xb")](c),t.commands[Yx("0x60")](o)[Yx("0x6a")](),x[Yx("0x6f")]({forceDefaultExecution:!0}),t[Yx("0x64")](o,...x);const u=l.filter((t=>Yx("0x7a")!=t[Yx("0x5a")][Yx("0x4b")]));u[Yx("0x31")]>0&&i[Yx("0xb")](u);for(const t of l)t[Yx("0x80")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x61")][Yx("0x8")].get(Yx("0x4f"));let n=Number[Yx("0x6b")],r=Number[Yx("0x1b")],i=Number[Yx("0x6b")],o=Number.MIN_SAFE_INTEGER;for(const s of t){if(Yx("0x7a")==s[Yx("0x5a")][Yx("0x4b")])continue;const{row:t,column:x}=e[Yx("0x4d")](s),a=s[Yx("0x15")](Yx("0x7c"))?s[Yx("0x3b")](Yx("0x7c"))-1:0,c=s.hasAttribute(Yx("0x38"))?s[Yx("0x3b")](Yx("0x38"))-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}_setupColumnsRowsFixing(){const t=this.editor,e=t[Yx("0x8")][Yx("0x60")](Yx("0x1c")),n=t[Yx("0x8")][Yx("0x60")]("TableUtils");t[Yx("0x21")].document.on(Yx("0x18"),(()=>{const n=Array[Yx("0xc")](t[Yx("0x21")][Yx("0xa")][Yx("0x5b")][Yx("0x17")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e[Yx("0x62")](t);if("suggestion"!=n)continue;if(null!=r[Yx("0x63")])continue;const s=e[Yx("0x6e")](i);this[Yx("0x79")][Yx("0x58")](o)&&this._tableSuggestions[Yx("0x42")](s)}}),{priority:Yx("0x13")});const r=(t,e)=>{let r=!1;const i=e[Yx("0x2e")](t),o=t.findAncestor(Yx("0x2a")),s=n[Yx("0x4d")](t);for(const e of this[Yx("0x2f")]){const n=e[Yx("0x7f")],x=n.startsWith(Yx("0x5d")),a=n[Yx("0x10")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Yx("0x71"),u=Yx("0x77")+a,d=Yx("0x40")+a;if(!e[Yx("0x23")])continue;if(o!=e[Yx("0x5f")]()[Yx("0x54")][Yx("0x44")](Yx("0x2a")))continue;if(e.isIntersectingWithRange(i))continue;const g=t.hasAttribute(l)?t[Yx("0x3b")](l)-1:0,f=this[Yx("0x82")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x6c")](i),r=!0)}return r};t[Yx("0x21")].document.registerPostFixer((e=>{let n=!1;for(const i of t[Yx("0x21")].document[Yx("0x5b")][Yx("0x4a")]())if(Yx("0x56")==i[Yx("0x3f")])if(Yx("0x22")==i[Yx("0x67")])for(const t of i.position[Yx("0x12")].getChildren())n=n||r(t,e);else Yx("0x53")==i[Yx("0x67")]&&(n=n||r(i[Yx("0x49")][Yx("0x12")],e));return n}))}_getSuggestionCoords(t){return this[Yx("0x43")](t[Yx("0xe")]()[Yx("0x7b")]((t=>t.start[Yx("0x12")])))}}function Qx(t){return Array[Yx("0xc")](new Set(t)[Yx("0x50")]())}const ta=["value","registerCustomCallback","insertion","getAncestors","has","deletion","findAncestor","_suggestionFactory","cell","markMultiRangeBlockFormat","commandName","formatBlock","TableEditing","return","getSuggestions","getCellLocation","registerDescriptionCallback","author","highest","selection","add","subType","map","mergeTableCellDown","format","_areSelectedCellsMergable","getRanges","TrackChangesEditing","root","horizontally","refresh","type","$graveyard","_descriptionFactory","_areMergableCells","tableCell","from","editor","detach","_acceptFormatSuggestionCallbackFactory","createRangeOn","size","*Split cell:* vertically","element","table","trackChanges","splitTableCellHorizontally","direction","mergeTableCellRight","stop","plugins","get","enableCommand","setSelection","getFirstPosition","isInContent","model","locale","mergeTableCellUp","formatInline","commands","set:isEnabled","afterInit","mergeTableCells","createTableWalker","change","splitTableCellVertically","mergeTableCellLeft","getSelectionAffectedTableCells","containsRange","TableUtils","*Split cell:* horizontally","find","forceDefaultExecution","document","execute","accept","length"];var ea,na;ea=ta,na=451,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get requires(){return[Jx]}[ra("0x1")](){const t=this.editor,e=t[ra("0x49")][ra("0xd")][ra("0x24")],n=t[ra("0x4a")];if(!t.plugins[ra("0x15")](ra("0x1d")))return;const r=t[ra("0x43")][ra("0x44")](ra("0x2c")),i=t[ra("0x43")][ra("0x44")](ra("0x9")),o=t[ra("0x43")][ra("0x44")](Jx);o._tablePostFixingSubtypes.push(ra("0x2")),r.enableCommand(ra("0x2"),(()=>{const e=i[ra("0x7")](t[ra("0x49")][ra("0xd")][ra("0x24")]);t[ra("0x49")].change((()=>{r[ra("0x1a")](e,{commandName:ra("0x2"),commandParams:[]},[],ra("0x2"))}))})),t.commands[ra("0x44")](ra("0x2")).on("execute",((e,n)=>{t[ra("0x4d")].get(ra("0x3e"))[ra("0x11")]&&(n[ra("0x10")]>0&&n[n[ra("0x10")]-1]&&n[n.length-1][ra("0xc")]||r._isForcedDefaultExecutionBlock||this[ra("0x2a")]()||e[ra("0x42")]())}),{priority:ra("0x23")});for(const e of["mergeTableCellUp",ra("0x41"),ra("0x28"),ra("0x6")]){const n=t.commands[ra("0x44")](e);r[ra("0x45")](e,(()=>{const e=t.model[ra("0xd")].selection[ra("0x47")]()[ra("0x14")]()[ra("0xb")]((t=>t.is("element",ra("0x34")))),i=n[ra("0x11")];t[ra("0x49")][ra("0x4")]((()=>{r[ra("0x1a")]([e,i],{commandName:ra("0x2"),commandParams:[]},[],ra("0x2"))}))}))}for(const e of[ra("0x5"),ra("0x3f")]){const n=t[ra("0x4d")][ra("0x44")](e);r[ra("0x45")](e,(()=>{const o=i[ra("0x7")](t.model[ra("0xd")].selection)[0],s=o[ra("0x17")](ra("0x3d")),{column:x,row:a}=i[ra("0x20")](o);let c=[];if(ra("0x2e")==n[ra("0x40")]){const t=i[ra("0x3")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x35")](t)[ra("0x27")]((t=>t[ra("0x19")]))}else{const t=i[ra("0x3")](s,{column:x,includeAllSlots:!0});c=Array[ra("0x35")](t).map((t=>t[ra("0x19")]))}t[ra("0x49")][ra("0x4")]((t=>{r.markBlockFormat(t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}r._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ra("0x30")]&&ra("0x4c")!=t[ra("0x30")])return;const{data:e}=t;return e&&ra("0x2")==e[ra("0x1b")]?{type:"format",content:Jr(n,"*Merge cells*")}:void 0})),r[ra("0x32")][ra("0x21")]((t=>{if(ra("0x1c")!=t[ra("0x30")]&&ra("0x4c")!=t.type)return;const{data:e}=t;return e?"splitTableCellVertically"==e[ra("0x1b")]?{type:ra("0x29"),content:Jr(n,ra("0x3b"))}:"splitTableCellHorizontally"==e.commandName?{type:ra("0x29"),content:Jr(n,ra("0xa"))}:void 0:void 0}));const x=o[ra("0x38")]();for(const t of[ra("0x4b"),"mergeTableCellRight",ra("0x28"),ra("0x6")])r[ra("0x18")][ra("0x12")]("formatBlock",t,"accept",x);for(const t of[ra("0x5"),ra("0x3f")])r._suggestionFactory.registerCustomCallback(ra("0x1c"),t,ra("0xf"),x);r[ra("0x18")][ra("0x12")](ra("0x1c"),ra("0x2"),"accept",(n=>{t.model[ra("0x4")]((r=>{const i=Array[ra("0x35")](e[ra("0x2b")]())[ra("0x27")]((t=>s.LiveRange.fromRange(t)));r.setSelection(n),t[ra("0x4d")][ra("0x44")]("mergeTableCells")[ra("0x2f")](),t[ra("0xe")](ra("0x2"),{forceDefaultExecution:!0});const o=i.filter((t=>ra("0x31")!=t[ra("0x2d")].rootName));o.length>0&&r[ra("0x46")](o);for(const t of i)t[ra("0x37")]()}))}));for(const e of[ra("0x4b"),ra("0x28"),"mergeTableCellLeft","mergeTableCellRight"]){const n=t[ra("0x4d")][ra("0x44")](e);n.on(ra("0x0"),((e,r,i)=>{if(i){const r=t[ra("0x49")][ra("0xd")][ra("0x24")][ra("0x47")]()[ra("0x14")]()[ra("0xb")]((t=>t.is(ra("0x3c"),"tableCell")));this[ra("0x33")](n[ra("0x11")],r)||(e[ra("0x1e")]=!1,e[ra("0x42")]())}}),{priority:"low"})}}[ra("0x2a")](){const t=this.editor[ra("0x4d")][ra("0x44")](ra("0x2")),e=this.editor[ra("0x43")][ra("0x44")](ra("0x9"));if(!t.isEnabled)return!1;const n=e[ra("0x7")](this[ra("0x36")][ra("0x49")][ra("0xd")][ra("0x24")]);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x33")](t,e))return!1;return!0}[ra("0x33")](t,e){const n=this[ra("0x36")][ra("0x43")][ra("0x44")](ra("0x2c")),r=this[ra("0x36")][ra("0x49")][ra("0x39")](t),i=this[ra("0x36")].model[ra("0x39")](e),o=new Set,s=new Set;for(const t of n[ra("0x1f")]())if((ra("0x13")==t.type||ra("0x16")==t[ra("0x30")]||"mergeTableCells"==t[ra("0x26")])&&t[ra("0x48")])for(const e of t[ra("0x2b")]())e[ra("0x8")](r,!0)&&o[ra("0x25")](t[ra("0x30")]+":"+t[ra("0x22")].id),e[ra("0x8")](i,!0)&&s[ra("0x25")](t[ra("0x30")]+":"+t.author.id);if(o[ra("0x3a")]!=s.size)return!1;for(const t of o)if(!s[ra("0x15")](t))return!1;return!0}}const oa=["end","_enableDefaultAttributesIntegration","locale","type","addMarker:suggestion","markerNameToElements","formatBlock","has","forceValue","registerCustomCallback","ck-suggestion-marker-","nodeBefore","item","markerName","requires","downcastDispatcher","name","headingColumns","commandParams","format","bindElementToMarker","registerDescriptionCallback","getSuggestion","addClass","data-suggestion","setTableRowHeader","ck-suggestion-marker--active","nodeAfter","plugins","_registerLegacyDescription","createTableWalker","removeClass","TableUtils","editor","cell","_splitMarkerName","_suggestionFactory","FORMAT_REGULAR_COLUMN","*Format:* %0","registerAttributeLabel","getCellLocation","FORMAT_HEADER_COLUMN","FORMAT_HEADER_ROW","accept","commandName","editing","activeMarkers","get","TableEditing","writer","showSuggestionHighlights","TrackChangesEditing","options","includes","mapper","_acceptFormatSuggestionCallbackFactory","headingRows","parent","_descriptionFactory","setTableColumnHeader","_handleLegacySuggestions","highest","data","removeMarker:suggestion","FORMAT_REGULAR_ROW","markerRange","unbindElementFromMarkerName"];var sa,xa;sa=oa,xa=106,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x2a")](){return[Jx]}afterInit(){const t=this[aa("0x3d")];if(!t[aa("0x38")][aa("0x23")](aa("0x9")))return;const e=t[aa("0x1e")],n=t[aa("0x38")].get(aa("0xc"));n[aa("0x1d")]("setTableRowHeader",[],[aa("0x11")]),n[aa("0x1d")]("setTableColumnHeader",[],[aa("0x2d")]),n._descriptionFactory[aa("0x0")]("headingRows",Jr(e,aa("0x3"))),n[aa("0x13")].registerAttributeLabel("headingColumns",Jr(e,aa("0x2"))),this[aa("0x15")]()}[aa("0x15")](){const t=this[aa("0x3d")][aa("0x38")].get("TrackChangesEditing"),e=this[aa("0x3d")][aa("0x38")].get(aa("0x3c")),n=this[aa("0x3d")][aa("0x38")].get(Jx)[aa("0x10")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x3f")](o[aa("0x29")]),c=t[aa("0x32")](a),l=c[aa("0x17")];if("formatBlock"!=c[aa("0x1f")]||!l||aa("0x14")!=l.commandName)return;if(o[aa("0x28")])return void i.stop();if(!s.consumable.consume(o[aa("0x1a")],i[aa("0x2c")]))return;const u=o[aa("0x1a")].start[aa("0x37")],d=o[aa("0x1a")][aa("0x1c")][aa("0x27")],g=u.parent[aa("0x12")],{column:f}=e[aa("0x1")](u),{column:h}=e[aa("0x1")](d);for(let i=f;i<=h;i++){const c=e[aa("0x3a")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x3e")],c=s[aa("0xf")].toViewElement(i);s[aa("0xa")].addClass(aa("0x26")+x,c),r&&s[aa("0xa")].setAttribute("data-suggestion",a,c),s[aa("0xf")][aa("0x30")](c,o.markerName),n&&(t[aa("0x7")][aa("0xe")](o[aa("0x29")])?s[aa("0xa")][aa("0x33")]("ck-suggestion-marker--active",c):s[aa("0xa")].removeClass("ck-suggestion-marker--active",c))}}}}t[aa("0x40")][aa("0x25")]("formatBlock","setTableRowHeader",aa("0x4"),n),t[aa("0x40")][aa("0x25")](aa("0x22"),aa("0x14"),aa("0x4"),n),this[aa("0x3d")][aa("0x6")][aa("0x2b")].on(aa("0x20"),r(),{priority:aa("0x16")}),this[aa("0x3d")][aa("0x17")][aa("0x2b")].on("addMarker:suggestion",((t,e,n)=>{n[aa("0xd")][aa("0xb")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x16")}),this[aa("0x3d")][aa("0x6")][aa("0x2b")].on(aa("0x18"),((e,n,r)=>{const{type:i,id:o}=t._splitMarkerName(n[aa("0x29")]),s=t[aa("0x32")](o),x=s.data;if(aa("0x22")!=s.type||!x||"setTableColumnHeader"!=x.commandName)return;const a=r[aa("0xf")][aa("0x21")](n[aa("0x29")]);if(a)for(const t of a)r[aa("0xa")][aa("0x3b")](aa("0x26")+i,t),r[aa("0xa")][aa("0x3b")](aa("0x36"),t),r[aa("0xa")].removeAttribute(aa("0x34"),t),r[aa("0xf")][aa("0x1b")](t,n[aa("0x29")])}),{priority:aa("0x16")}),this[aa("0x39")]()}[aa("0x39")](){const t=this.editor,e=t[aa("0x1e")];function n(t){return{type:aa("0x2f"),content:Jr(e,aa("0x42"),t)}}t[aa("0x38")][aa("0x8")](aa("0xc"))[aa("0x13")][aa("0x31")]((t=>{if(aa("0x22")!=t[aa("0x1f")])return;const{data:r}=t;if(r){if(aa("0x35")==r.commandName){const t=r[aa("0x2e")][0].forceValue;return n(Jr(e,t?"FORMAT_HEADER_ROW":aa("0x19")))}if("setTableColumnHeader"==r[aa("0x5")]){const t=r[aa("0x2e")][0][aa("0x24")];return n(Jr(e,t?"FORMAT_HEADER_COLUMN":aa("0x41")))}}}))}}const la=["register","getRanges","suggestion:formatBlock:tablePasteCell","removeRows","name","redo","getSuggestion","locale","Users","model","row","rowInsertionIndexes","suggestion","getColumnIndexes","createRangeOn","getContainedElement","TrackChangesEditing","set","tablePasteRow","discard","nodeAfter","getShiftedBy","isEqual","tableCellBorderColor","TableClipboard","newRange","formatBlock","fill","position","options","_suggestionFactory","requires","markerAttributes","plugins","includes","view","TableUtils","accept","tableCellHorizontalAlignment","for","dataDowncast","tableCellPadding","filter","_splitMarkerName","showSuggestionHighlights","getSelectionAffectedTableCells","getRowIndexes","markerToHighlight","tableCellBackgroundColor","conversion","differ","getTableIfOnlyTableInContent","isEmpty","getAllAdjacentSuggestions","content","keys","document","unwrap","some","attributes","insertContent","createPositionBefore","ck-suggestion-marker--active","clipboardOutput","tableCell","editor","low","change","batch","findAncestor","join","registerPostFixer","isInContent","getRange","tablePaste","getSuggestions","getColumns","getAttributes","trackChanges","documentSelection","add","deletion","selection","*Replace table cells*","move","markerName","markers","remove","getMarkers","start","getChangedMarkers","schema","first","markMultiRangeInsertion","subType","element","find","tableCellBorderStyle","removeMarker","rowInsertionRanges","columns","get","elementToElement","cells","removeMarkers","tablePasteChainId","_tablePostFixingSubtypes","paragraph","fromEntries","commands","stop","table","return","previous","ck-suggestion-marker-insertion","removeColumns","length","endRow","has","column","value","getChildren","forceDefaultExecution","getChild","_createdBatches","columnInsertionIndexes","afterInit","last","startsWith","createRange","activeMarkers","push","insertRows","containsRange","next","ck-suggestion-marker","insertion","author","high","tablePasteCell","endColumn","from","root","tableCellBorderWidth","tablePasteColumn","insertionRanges","map","wrap","getRows","editing","oldRange","registerCustomCallback","createRangeIn","suggestionUnloaded","columnInsertionRanges","cell","suggestion-td","listenTo","_isForcedDefaultExecutionBlock","tableCellSuggestion","type","_getCoordsForCells","createTableWalker","insert","createElement","setAttributes"];var ua,da;ua=la,da=272,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x25"),ga("0x53"),ga("0x9d"),ga("0x62"),"tableCellVerticalAlignment",ga("0x6c"),ga("0x65")],ha=Object.fromEntries(fa[ga("0x28")]((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x5b")](){return[Jx]}[ga("0x14")](){const t=this[ga("0x7d")];if(!t.plugins[ga("0xc")]("TableClipboard"))return;const n=t[ga("0x5d")][ga("0xa1")](ga("0x4c")),r=t.plugins.get(ga("0x60")),i=t[ga("0x5d")].get(Jx),o=t.plugins[ga("0xa1")]("TableClipboard");i[ga("0x0")][ga("0x19")]("tablePasteRow",ga("0x26")),t[ga("0x45")][ga("0x97")][ga("0x3c")](ga("0x35"),{allowIn:ga("0x7c"),allowContentOf:ga("0x7c"),isLimit:!0}),t[ga("0x6d")][ga("0xa2")]({model:ga("0x35"),view:ga("0x32")});let s=null;t[ga("0x45")].on(ga("0x78"),((i,x)=>{const[a,c]=x,l=x[x[ga("0xa")]-1];l&&l[ga("0x10")]||n[ga("0x34")]||this[ga("0x7d")][ga("0x3")][ga("0xa1")](ga("0x8a"))[ga("0xe")]&&function(t,e,n,r,i){if(e&&!e.is(ga("0x8b")))return!1;const o=i[ga("0x6f")](t,n);if(!o||!ba(o,void 0,r))return!1;const s=r[ga("0x69")](n.document[ga("0x8e")]);if(!s[ga("0xa")])return!1;const x=s[0].findAncestor("table"),a=r[ga("0x6a")](s),c=r[ga("0x49")](s),l={startRow:a[ga("0x98")],endRow:a[ga("0x15")],startColumn:c[ga("0x98")],endColumn:c[ga("0x15")]};return 1==s.length&&(l[ga("0xb")]+=r[ga("0x2a")](o)-1,l[ga("0x22")]+=r[ga("0x88")](o)-1),ba(x,l,r)}(a,c,t[ga("0x45")],r,o)&&(i[ga("0x4")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x45")][ga("0x7f")]((()=>{t[ga("0x45")][ga("0x78")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0xa")]&&n.markMultiRangeInsertion(i,ga("0x4e"),{tablePasteChainId:r}),o.length&&n[ga("0x99")](o,ga("0x26"),{tablePasteChainId:r}),a[ga("0xa")]&&n.markMultiRangeInsertion(a,ga("0x86"),{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0xa")]&&n.markMultiRangeDeletion(c,ga("0x86"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ga("0x28")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:r});if(u){const e=u.getMarkers(),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t.model[ga("0x4a")](r),s=e[ga("0x9c")]((t=>t.getRange()[ga("0x52")](o)));s&&n[ga("0x19")]([s[ga("0x40")],i])}n[ga("0xa")]&&u.setAttribute("markerAttributes",Object[ga("0x2")](n))}s=null})))}),{priority:e.priorities[ga("0x20")]+10}),t[ga("0x5d")][ga("0xa1")](ga("0x54")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x4")]();const o=n[ga("0x31")],x=r,a=pa(o),c=pa(x);t[ga("0x6")]=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o.getChild(0));for(const t of Array.from(x[ga("0xf")]()))i[ga("0x39")](t,o,"end");const t=s[ga("0x47")][ga("0x5e")](n[ga("0x46")]),e=s[ga("0x13")].includes(n[ga("0xd")]);t||e||(l=i[ga("0x2e")](o))}else c&&!a&&(u=i[ga("0x2e")](o));else{const t=i[ga("0x3a")](ga("0x35")),e=i.createElement(ga("0x35"));i[ga("0x29")](i[ga("0x2e")](o),e),i[ga("0x39")](t,o,0);for(const e of Array[ga("0x23")](x[ga("0xf")]()))i[ga("0x39")](e,t,"end");l=i[ga("0x4a")](t),u=i[ga("0x4a")](e)}const d=Array[ga("0x23")](x[ga("0x89")]())[ga("0x66")]((([t])=>fa[ga("0x5e")](t)));s.cells.push({element:o,attributes:d[ga("0xa")]?Object.fromEntries(d):null}),l&&s[ga("0x27")][ga("0x19")](l),u&&s.deletionRanges.push(u)}),{priority:ga("0x20")}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0xa0")]||1;s[ga("0x13")]=new Array(a)[ga("0x57")](x).map(((t,e)=>t+e));for(const{cell:e}of r[ga("0x38")](i,{startColumn:x,endColumn:x+a-1}))s[ga("0x30")][ga("0x19")](t[ga("0x45")].createRangeOn(e))}),{priority:ga("0x7e")}),r.on(ga("0x1a"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[ga("0x47")]=new Array(a).fill(x)[ga("0x28")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x38")](i,{startRow:x,endRow:x+a-1}))s[ga("0x9f")][ga("0x19")](t.model.createRangeOn(e))}),{priority:ga("0x7e")}),n._descriptionFactory.registerDescriptionCallback((e=>{if(e[ga("0x9a")]&&e.subType[ga("0x16")](ga("0x86")))return e[ga("0x7")]?{}:{type:ga("0x1e"),content:Jr(t[ga("0x43")],ga("0x8f"))}}));const x=()=>!1;for(const t of[ga("0x86"),ga("0x26"),"tablePasteRow","tablePasteCell"])n[ga("0x5a")][ga("0x2d")]("insertion",t,ga("0x82"),x),n._suggestionFactory[ga("0x2d")](ga("0x8d"),t,ga("0x82"),x),n._suggestionFactory[ga("0x2d")](ga("0x56"),t,ga("0x82"),x);n[ga("0x5a")][ga("0x2d")](ga("0x56"),"tablePasteCell",ga("0x4f"),x),n._suggestionFactory[ga("0x2d")](ga("0x56"),ga("0x21"),ga("0x61"),((e,n,r)=>{const i=e[ga("0x28")]((t=>t.getContainedElement()))[ga("0x66")]((t=>t)),o=new Map(i.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0xa3")])e&&o[ga("0x4d")](t,e);else if(r&&r[ga("0x5c")])for(const[e,n]of Object.entries(r[ga("0x5c")])){const r=t[ga("0x45")][ga("0x92")].get(e),i=r?r[ga("0x85")]()[ga("0x4b")]():null;i&&o.set(i,n)}t[ga("0x45")][ga("0x7f")]((t=>{for(const[e,n]of o)t[ga("0x3b")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x5a")][ga("0x2d")](e,"tablePaste",r,((i,o,s)=>{t.model[ga("0x7f")]((t=>{const x=[];for(const t of i){const e=t[ga("0x95")][ga("0x50")];e.is(ga("0x9b"),ga("0x35"))&&x[ga("0x19")](e)}n[ga("0x5a")].getSuggestionCallback(e,null,r)(i,o,s);for(const e of x)"$graveyard"!=e[ga("0x24")].rootName&&t[ga("0x75")](e)}))}))};a(ga("0x1e"),ga("0x61")),a(ga("0x1e"),"discard"),a(ga("0x8d"),ga("0x61")),a(ga("0x8d"),"discard"),n[ga("0x5a")][ga("0x2d")](ga("0x1e"),"tablePasteRow","discard",(t=>{const e=t[ga("0x28")]((t=>t[ga("0x4b")]())),n=e[0][ga("0x81")](ga("0x5")),{minRow:o,maxRow:s}=i[ga("0x37")](e);r[ga("0x3f")](n,{at:o,rows:s-o+1})})),n[ga("0x5a")][ga("0x2d")]("insertion",ga("0x26"),"discard",(t=>{const e=t[ga("0x28")]((t=>t[ga("0x4b")]())),n=e[0].findAncestor(ga("0x5")),{minColumn:o,maxColumn:s}=i[ga("0x37")](e);r[ga("0x9")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x9a")]||!e[ga("0x9a")][ga("0x16")](ga("0x86")))return;const r=e.attributes[ga("0xa5")],i=n[ga("0x87")]().filter((t=>t[ga("0x84")]&&t.attributes&&t.attributes[ga("0xa5")]==r));i[ga("0xa")]&&e[ga("0x71")]().length!=i[ga("0xa")]&&i.reduce(((t,e)=>(t[ga("0x1c")]=e,e[ga("0x7")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ga("0x91")]),i=[ga("0x1d"),ga("0x8")],o=n[ga("0x18")].includes(t[ga("0x91")]);return o&&i[ga("0x19")](ga("0x7a")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ga("0x2f"),c,{priority:ga("0x20")}),t[ga("0x45")].document[ga("0x83")]((()=>{let e=!1;const r=Array[ga("0x23")](t[ga("0x45")][ga("0x74")][ga("0x6e")][ga("0x96")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x67")](i);if(ga("0x48")!=r||ga("0x8d")!=s||o[ga("0x2c")])continue;if(!n.hasSuggestion(x))continue;const a=n[ga("0x42")](x)[ga("0x3d")](),c=t.plugins[ga("0xa1")]("Users").me;for(const t of n[ga("0x87")]())if(t[ga("0x84")]&&t[ga("0x1f")]==c&&ga("0x56")==t[ga("0x36")]&&ga("0x21")==t[ga("0x9a")]&&t[ga("0x3d")]().every((t=>a[ga("0x76")]((e=>e[ga("0x1b")](t,!0))))))for(const n of t[ga("0x71")]())n[ga("0x84")]&&(n[ga("0x4f")](),e=!0)}return e})),t[ga("0x45")].document.registerPostFixer((e=>{const r=t[ga("0x3")].get(ga("0x41"));if(!r||!r[ga("0x12")][ga("0xc")](e[ga("0x80")]))return!1;let i=!1;const o=t[ga("0x5d")].get(ga("0x44")).me,s=t[ga("0x45")].document[ga("0x6e")].getChanges(),x=Array.from(t.model[ga("0x74")].differ.getChangedMarkers())[ga("0x66")]((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x67")](t);return ga("0x48")==r&&ga("0x86")==i&&s==o.id&&!e[ga("0x2c")]}));for(const t of s){if(ga("0x39")!=t.type||"tableCellSuggestion"!=t[ga("0x40")]||1!=t.length)continue;const n=e[ga("0x17")](t[ga("0x58")],t.position[ga("0x51")](1));if(!x[ga("0x9c")]((({data:t})=>t[ga("0x55")][ga("0x52")](n))))for(const{name:t,data:r}of x)if(n[ga("0x1b")](r.newRange)){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ga("0x45")][ga("0x74")][ga("0x83")]((e=>{let r=!1;const i=t[ga("0x5d")][ga("0xa1")](ga("0x44")).me,o=n[ga("0x87")]()[ga("0x66")]((t=>t[ga("0x84")]&&t[ga("0x1f")]==i)),s=new Set,x=new Set;for(const t of o)if("tablePaste"==t[ga("0x9a")])for(const e of t[ga("0x94")]()){const n=e.getRange()[ga("0x4b")]();if(n)if(n.is(ga("0x9b"),"tableCellSuggestion")&&pa(n)){t[ga("0x9e")](e[ga("0x40")]),s[ga("0x8c")](n),r=!0;const i=n.nextSibling,o=n.previousSibling,a=i&&i.is(ga("0x9b"),"tableCellSuggestion"),c=o&&o.is(ga("0x9b"),ga("0x35"));a&&!s.has(i)&&x.add(i),c&&!s.has(o)&&x[ga("0x8c")](o)}else n.is("element","paragraph")&&n[ga("0x70")]&&(t[ga("0x9e")](e[ga("0x40")]),r=!0)}else if("tablePasteCell"==t[ga("0x9a")]){if(!t.attributes||!t[ga("0x77")][ga("0xa5")])continue;const e=t[ga("0x77")].markerAttributes;if(e&&Object[ga("0x73")](e)[ga("0xa")])continue;const n=t[ga("0x77")].tablePasteChainId;let i=!0,s=!0;for(const e of o)if(e[ga("0x9a")]&&e[ga("0x9a")][ga("0x16")](ga("0x86"))){if(!e[ga("0x77")][ga("0xa5")]){s=!1;break}if(e.id!=t.id&&e[ga("0x77")][ga("0xa5")]==n){i=!1;break}}s&&i&&(t[ga("0xa4")](),r=!0)}for(const t of s)e.remove(t);for(const t of x)e[ga("0x75")](t);return r})),t[ga("0x6d")].for("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[ga("0x63")](ga("0x64"))[ga("0x6b")]({model:ga("0x3e"),view:(t,e)=>e[ga("0x59")][ga("0x68")]?l(t,!1):null,converterPriority:ga("0x20")});const u=t[ga("0x2b")][ga("0x5f")];this[ga("0x33")](u[ga("0x74")],ga("0x7b"),((t,e)=>{const n=[];for(const t of u[ga("0x2e")](e[ga("0x72")]).getItems())t.is(ga("0x9b"),ga("0x32"))&&n[ga("0x19")](t);u[ga("0x7f")]((t=>{for(const e of n)t[ga("0x90")](t[ga("0x2e")](e),t[ga("0x79")](e)),t[ga("0x93")](e)}))}))}}function pa(t){if(t[ga("0x70")])return!0;const e=t[ga("0x11")](0);return e.is(ga("0x9b"),ga("0x1"))&&e[ga("0x70")]}function ba(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n[ga("0x38")](t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["model","get","afterInit","subType","accept","type","has","document","*Format:* resize table","resizeTable","_suggestionFactory","formatInline","formatGroupId","plugins","handleSuggestionDescription","author","tableWidth","bind","locale","TableColumnResizeEditing","table","Users","getSelectedElement","formatBlock","discard","columnWidths","change","getSuggestions","commandParams","resizeTableWidth","editor","_descriptionFactory","getColumnGroupElement","markBlockFormat","format","handleResizeTableWidthCommand","registerCustomCallback","getAttribute","registerDescriptionCallback"];var _a,Ta;_a=Ea,Ta=372,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x14")](){if(!this[ya("0x9")].plugins[ya("0x18")](ya("0x25")))return;const t=this.editor.plugins[ya("0x13")]("TrackChangesEditing");t.enableCommand(ya("0x8"),this[ya("0xe")][ya("0x23")](this)),t[ya("0x1c")][ya("0xf")](ya("0x2"),ya("0x1b"),"accept",t._suggestionFactory.getSuggestionCallback("formatBlock",null,ya("0x3"))),t[ya("0x1c")][ya("0xf")](ya("0x2"),ya("0x1b"),ya("0x3"),t[ya("0x1c")].getSuggestionCallback(ya("0x2"),null,ya("0x16"))),t[ya("0xa")][ya("0x11")](this[ya("0x20")][ya("0x23")](this))}[ya("0xe")](t,e){const n=this.editor[ya("0x1f")].get("TrackChangesEditing"),r=this[ya("0x9")][ya("0x1f")][ya("0x13")](ya("0x25")),i=e[ya("0x26")]||this[ya("0x9")][ya("0x12")][ya("0x19")].selection[ya("0x1")]();this[ya("0x9")][ya("0x12")][ya("0x5")]((()=>{const o=r[ya("0xb")](i);let s=o?r.getTableColumnsWidths(o):null,x=i[ya("0x10")](ya("0x22"))||null;const a=e.tableWidth||x,c=e[ya("0x4")]||s,l=this[ya("0x9")][ya("0x1f")][ya("0x13")](ya("0x0")).me;for(const t of n[ya("0x6")]()){const e=t.getContainedElement();if("resizeTable"===t[ya("0x15")]&&e===i){t[ya("0x21")]!==l&&t[ya("0x3")]();const e=t.data[ya("0x7")];x=e[0][ya("0x22")],s=e[0][ya("0x4")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[ya("0xc")](i,{commandName:ya("0x8"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[ya("0x20")](t){if(ya("0x2")!=t[ya("0x17")]&&ya("0x1d")!=t.type)return;const{data:e}=t;if(e&&ya("0x1b")===e[ya("0x1e")]){const t=ya("0x1a");return{type:ya("0xd"),content:Jr(this[ya("0x9")][ya("0x24")],t)}}}}const Aa=["plugins","editor","has","Template","enableCommand","get","TrackChangesEditing"];var ka,Ra;ka=Aa,Ra=114,function(t){for(;--t;)ka.push(ka.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Sa("0x6")];t[Sa("0x5")][Sa("0x0")](Sa("0x1"))&&t[Sa("0x5")][Sa("0x3")](Sa("0x4"))[Sa("0x2")]("insertTemplate")}}const Na=["_descriptionFactory","get","editor","tableOfContents","insertTableOfContents","plugins","TrackChangesEditing","enableCommand","ELEMENT_TABLE_OF_CONTENTS"];var va,La;va=Na,La=241,function(t){for(;--t;)va.push(va.shift())}(++La);const Ma=function(t,e){return Na[t-=0]};class wa extends t.Plugin{afterInit(){const t=this[Ma("0x4")];if(!t.commands.get(Ma("0x6")))return;t[Ma("0x7")].get("TrackChangesEditing")[Ma("0x0")]("insertTableOfContents");const e=t[Ma("0x7")][Ma("0x3")](Ma("0x8")),n=t.locale;e[Ma("0x2")].registerElementLabel(Ma("0x5"),(t=>Jr(n,Ma("0x1"),t)))}}const Oa=["ELEMENT_TITLE","isCollapsed","registerElementLabel","createRange","newRange","isTouching","registerPostFixer","plugins","end","start","document","has","_splitMarkerName","locale","model","differ","from","Title","get","element","getChangedMarkers","updateMarker","schema","TrackChangesEditing","suggestion","title-content","forward","nodeBefore"];var Fa,Da;Fa=Oa,Da=439,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ba("0x10")][Ba("0x14")](Ba("0x1a")))return;const e=t[Ba("0x10")][Ba("0x1b")](Ba("0x4"));e._descriptionFactory[Ba("0xb")](Ba("0x6"),(()=>Jr(t[Ba("0x16")],Ba("0x9")))),t[Ba("0x17")].document[Ba("0xf")]((n=>{let r=!1;const i=Array[Ba("0x19")](t[Ba("0x17")][Ba("0x13")][Ba("0x18")][Ba("0x1")]());for(const{name:o,data:s}of i){const{group:i}=e[Ba("0x15")](o);if(Ba("0x5")!==i||!s[Ba("0xd")])continue;const x=s[Ba("0xd")],a=x[Ba("0x11")][Ba("0x8")];if(!a||!a.is(Ba("0x0"),Ba("0x6")))continue;if(!x[Ba("0x12")][Ba("0xe")](x.end))continue;const c=t[Ba("0x17")][Ba("0x3")].getNearestSelectionRange(x[Ba("0x11")],Ba("0x7"));if(c&&c[Ba("0xa")]){const t=n[Ba("0xc")](x[Ba("0x12")],c[Ba("0x12")]);t.isEqual(x)||(n[Ba("0x2")](o,{range:t}),r=!0)}r||(n.removeMarker(o),r=!0)}return r}))}}const Ua=["afterInit","redo","undo","enableCommand","plugins","UndoEditing","get"];var ja,Ga;ja=Ua,Ga=291,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this.editor,e=t.plugins[Va("0x2")]("TrackChangesEditing");t[Va("0x0")].has(Va("0x1"))&&(e[Va("0x6")](Va("0x5")),e[Va("0x6")](Va("0x4")))}}const za=["TrackChangesEditing","plugins","afterInit","requires","has","toggleTableCaption"];var Wa,Ka;Wa=za,Ka=202,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get[qa("0x5")](){return[Jx]}[qa("0x4")](){const t=this.editor;t[qa("0x3")][qa("0x0")]("TableCaptionEditing")&&t[qa("0x3")].get(qa("0x2")).enableCommand(qa("0x1"))}}const $a=["TablePropertiesEditing","getSuggestions","tableAlignment","document","tableBorderColor","format","getSuggestionCallback","get","setAttribute","getContainedElement","TableCellPropertiesEditing","enableCommand","handleSuggestionDescription","nodeAfter","commandParams","tableCellProperties","tableBackgroundColor","TrackChangesEditing","has","_suggestionFactory","tableCellHorizontalAlignment","start","registerDescriptionCallback","change","data","_getSuggestion","accept","handleDiscardAction","discard","tableCellWidth","tableProperties","join","tableBorderWidth","selection","tableCellBorderColor","editor","getAttribute","_descriptionFactory","locale","registerCustomCallback","_handlePropertyChange","tableCellVerticalAlignment","TrackChangesTableProperties","model","subType","table","plugins","enqueueChange","tableBorderStyle","findAncestor","tableCellHeight","formatBlock","getSelectionAffectedTableCells","markBlockFormat","tableCellBorderStyle","tableCellBackgroundColor"];var Za,Ya;Za=$a,Ya=276,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return $a[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ja("0x8"),Ja("0x34"),Ja("0x24"),Ja("0x6"),"tableWidth","tableHeight",Ja("0x14")],this[Ja("0x13")]=[Ja("0x26"),Ja("0x2"),"tableCellBorderWidth","tableCellPadding",Ja("0x21"),Ja("0x36"),Ja("0x3"),Ja("0x18"),Ja("0x2d")]}static get pluginName(){return Ja("0x2e")}afterInit(){const t=this[Ja("0x27")][Ja("0x32")].get(Ja("0x15"));if(this[Ja("0x27")][Ja("0x32")][Ja("0x16")](Ja("0x4"))){for(const e of this[Ja("0x22")])t[Ja("0xf")](e,((t,n)=>{const r=this.editor[Ja("0x2f")][Ja("0x7")][Ja("0x25")].getFirstPosition()[Ja("0x35")](Ja("0x31"));this[Ja("0x2c")](e,[r],this[Ja("0x22")],"tableProperties",t,n)}));t[Ja("0x17")][Ja("0x2b")]("formatBlock",Ja("0x22"),Ja("0x1e"),t[Ja("0x17")][Ja("0xa")](Ja("0x37"),null,Ja("0x20"))),t[Ja("0x17")].registerCustomCallback(Ja("0x37"),Ja("0x22"),"discard",((t,e)=>this[Ja("0x1f")](this[Ja("0x22")],t,e))),t._suggestionFactory.registerCustomCallback("formatBlock",Ja("0x22"),Ja("0x23"),(()=>!1))}if(this[Ja("0x27")][Ja("0x32")][Ja("0x16")](Ja("0xe"))){for(const e of this[Ja("0x13")])t[Ja("0xf")](e,((t,n)=>{const r=this[Ja("0x27")].plugins[Ja("0xb")]("TableUtils")[Ja("0x0")](this[Ja("0x27")].model[Ja("0x7")][Ja("0x25")]);this[Ja("0x2c")](e,r,this[Ja("0x13")],Ja("0x13"),t,n)}));t[Ja("0x17")][Ja("0x2b")](Ja("0x37"),Ja("0x13"),Ja("0x1e"),t[Ja("0x17")][Ja("0xa")](Ja("0x37"),null,Ja("0x20"))),t[Ja("0x17")][Ja("0x2b")]("formatBlock",Ja("0x13"),Ja("0x20"),((t,e)=>this.handleDiscardAction(this[Ja("0x13")],t,e))),t[Ja("0x17")][Ja("0x2b")](Ja("0x37"),Ja("0x13"),Ja("0x23"),(()=>!1))}t[Ja("0x29")][Ja("0x1a")]((t=>this[Ja("0x10")](t)))}[Ja("0x2c")](t,e,n,r,i,o){const s=this.editor[Ja("0x32")].get(Ja("0x15"));this.editor[Ja("0x2f")][Ja("0x33")](o.batch,(()=>{for(const t of e)if(this[Ja("0x1d")](t,r))i(o);else{const e={};for(const r of n){const n=t[Ja("0x28")](r);void 0!==n&&(e[r]=n)}i(o),s[Ja("0x1")](t,{commandParams:[e]},[],r)}}))}[Ja("0x1f")](t,e,n){const r=e[0][Ja("0x19")][Ja("0x11")],i=n[Ja("0x12")][0];this[Ja("0x27")][Ja("0x2f")][Ja("0x1b")]((e=>{for(const n of t)void 0!==i[n]?e[Ja("0xc")](n,i[n],r):e.removeAttribute(n,r)}))}handleSuggestionDescription(t){if(t[Ja("0x1c")])switch(t[Ja("0x30")]){case Ja("0x22"):return{type:"format",content:Jr(this[Ja("0x27")][Ja("0x2a")],"*Format:* change table properties")};case Ja("0x13"):return{type:Ja("0x9"),content:Jr(this[Ja("0x27")][Ja("0x2a")],"*Format:* change table cell properties")}}}[Ja("0x1d")](t,e){const n=this[Ja("0x27")].plugins[Ja("0xb")](Ja("0x15"));for(const r of n[Ja("0x5")]({skipNotAttached:!0})){const n=r[Ja("0xd")]();if(r[Ja("0x30")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["open","end","markerName","map","add","announce","never","isBlock","formatInline:discard","_registerBlockAttribute","_trackFormatChanges","removeMarker","plugins","acceptSuggestion","markerReady","unbindElementFromMarkerName","_adapter","activeMarkers","commands","toJSON","newRange","formatInline:accept","marker-count","elementStart","_joinWithAdjacentSuggestions","writer","addCommentThread","createRangeIn","getItems","size","rootName","_model","_registerDefaultCallbacks","_suggestionFactory","_getAttributeKey","getCustomProperty","deletion:accept","_setSuggestionRange","newValue","pop","track-changes-suggestion-not-found","isBefore","ck-suggestion-marker-formatInline","markInlineFormat","subType","getNearestSelectionRange","_isBlockAttribute","parent","containsItem","ready","differ","position","getRanges","formatBlock","isObject","formatBlock:discard","adapter","meta","isMultiRange","registerPostFixer","always","moveTargetPosition","insertion:chain","hasComments","_blockAttributeKeys","_getMarkerAnnouncementText","track-changes-enable-command-twice","default","discardAllSuggestions","clone","_refreshSuggestionsChain","_isForcedDefaultExecutionBlock","trackChanges","getShiftedBy","addMarker:suggestion:attribute","every","upcast","deletion:discard","ck-suggestion-marker-formatBlock","stopListening","get","CommentsRepository","detach","fire","removeMarkers","TrackChangesEditing","isAfter","mapper","markMultiRangeBlockFormat","PendingActions","_getExternalAuthor","_reduceExistingSuggestions","insertion","includes","getMarkers","suggestionUnloaded","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.","ck-suggestion-marker--active","locale","deletion:chain","markBlockFormat","$graveyard","containsRange","_isRegisteredAttribute","key","config","removeMarker:suggestion:formatBlock","ck-suggestion-marker-","hasCommentThread","dataToMarker","_recordAttributeSuggestions","addSuggestion","elementToElement","isLimit","formatBlock:accept","attribute:accept","getCommentThread","ck-suggestion-marker","_checkSuggestionCorrectness","suggestion:attribute:","isLocal","isEqual","forward","_editor","insertContent","backward","createElement","createSelection","root","skipNestingCheck","$marker","track-changes-user-not-found","removeMarker:suggestion:attribute","registerCustomCallback","getAllAdjacentSuggestions","_inlineAttributeKeys","Users","track-changes-adapter-missing-getsuggestion","containsRangeInObject","tablePasteChainId","push","_splitMarkerName","enableCommand","_cutOutSuggestionMarker","attribute:discard","_suggestions","howMany","updateSuggestion","isUndo","move","_addSuggestionMarker","_getSuggestionData","low","_enableDefaultAttributesIntegration","PENDING_ACTION_SUGGESTION","documentSelection","from","getContainedElement","showSuggestionHighlights","consumable","_rangeIsInLocalUserInsertion","execute","nodeAfter","_defaultCallbacks","commandName","oldValue","oldRange","deletion:join","isOwn","document","model","_customCallbacks","isIntersectingWithRange","getIntersection","insertion:","track-changes-command-not-found","$text","clear","markers","FORMATTING","schema","containsPosition","formatInline:join","resolve","delete","isExternal","getUser","creator","range","change:data","$elementName","splice","error-saving-suggestion-data-suggestion-discarded","getLastMatchingPosition","formatGroupId","_saved","trackChanges.trackFormatChanges","concat","element","getMultiRangeId","selection","deletion:","getSuggestionCallback","external:","formatInline:","substring","isAtStart","change","ariaLiveAnnouncer","stop","highest","collaboration.channelId","return","forceDefaultExecution","_getAuthorFromId","addMarker","listenTo","editing","isAtEnd","formatBlock:","attributeKey","createRange","_recordAttributeChanges","getAttribute","next","startsWith","type","_joinSuggestions","isIntersecting","setTo","dataDowncast","getFirstRange","suggestionChanged","_mergeNestedSuggestions","getChangedMarkers","conversion","addRange","fromCharCode","getDifference","attribute","addHighlight","addMarkerName","_initAriaMarkerChangeAnnouncements","authoredAt","isInContent","createPositionBefore","formatBlock:join","_afterChanges","_findSuggestions","before","_updateSuggestionData","catch","accept","getFirstMarker","accepted","has","_addThreadToSuggestion","isArray","toViewElement","createPositionAfter","editor","_handleNewSuggestionMarker","_createSuggestion","normal","addComment","fetchCommentThread","discardSelectedSuggestions","fromRange","toUpperCase","multi","item","$textProxy","format","markDeletion","_breakSuggestionMarker","start","chain","consume","createdAt","_refreshAttributeSuggestionsChain","suggestion","lowest","previous","_suggestionState","attribute:join","change:activeMarkers","addUser","markAttributeChange","pluginName","for","getWalker","attributeNewValue","markerNameToElements","join","enqueueChange","rejected","values","getSuggestion","filter","discardSuggestion","set","name","markMultiRangeInsertion","containerElement","groupId","length","getRange","enableReadOnlyMode","comments","define","acceptSelectedSuggestions","_setSuggestionData","suggestion:","_commentsRepository","notReady","buildSuggestion","setSelection","dataReady","getAncestors","formatInline:chain","updateMarker","reconvertMarker","value","rethrowUnexpectedError","multipleBlocks","deletion","createPositionAt","setAttribute","keys","track-changes-suggestion-data-mismatch","data-suggestion","trackChangesCommand","author","remove","originalSuggestionId","editingDowncast","init","attributeOldValue","isNextTo","after","addSuggestionData","change:_saved","_isDataLoaded","split","isInsideObject","insertion:discard","markerToHighlight","addClass","formatInline","removeClass","markMultiRangeDeletion","some","then","_processAttributeChanges","find","@external","insert","forEach","commentThread","_registerInlineAttribute","suggestionLoaded","_enabledCommands","sort","isCollapsed","options","attributes","removed","discard","high","removeAttribute","_removeSuggestion","getSuggestions","_onDiscard","batch","formatBlock:chain","_reduceSuggestionAttributeRange","data","trackChanges.mergeNestedSuggestions","_descriptionFactory","nodeBefore","getChanges","warn","addMarker:suggestion"];var _c,Tc;_c=Ec,Tc=303,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x10e");class Ac extends t.Plugin{static get requires(){return["CommentsRepository",o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,vi,ji,Ki,io,Ao,No,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Ss,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Rx,Lx,Dx,Vx,qx,Jx,ia,ca,Xa,ma,Ca,wa,Qa,Ia,Pa,Ha]}static get[yc("0x170")](){return yc("0xa5")}constructor(t){function e(t){return t[yc("0x53")]((t=>String[yc("0x13d")](t)))[yc("0x175")]("")}super(t),this[yc("0xbe")]=!1,this[yc("0x17c")](yc("0x61"),[]),this.on(yc("0x16d"),((e,n,r,i)=>{this[yc("0x6f")][yc("0x11f")]((()=>{for(const e of[...i,...r])this[yc("0x6f")][yc("0x102")][yc("0x14f")](e)&&t[yc("0x129")][yc("0x12")](e)}))})),this[yc("0x4b")]=new ri(this[yc("0x154")].model.schema,this[yc("0x154")][yc("0xb2")]),this._adapter=null,this[yc("0x71")]=new kc(this[yc("0x154")]),this[yc("0xe1")]=new Map,this._commentsRepository=t[yc("0x5c")][yc("0xa0")](yc("0xa1")),this[yc("0x3a")]=new Set,this[yc("0x6f")]=this[yc("0x154")][yc("0xfa")],this[yc("0x16b")]=new WeakMap,this[yc("0x97")]=!1,this._blockAttributeKeys=new Set(["$elementName"]),this[yc("0xd7")]=new Set,t[yc("0xb9")][yc("0x6")](yc("0x114"),yc("0x93")),this._trackFormatChanges=t[yc("0xb9")][yc("0xa0")](yc("0x114")),t[yc("0xb9")][yc("0x6")](yc("0x4a"),!0),this[yc("0x139")]=t.config[yc("0xa0")]("trackChanges.mergeNestedSuggestions"),this[yc("0x1c")]=new d(t,this._enabledCommands),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,52,56])}[yc("0x21")](){const t=this.editor,n=(t,e)=>{if("attribute"!=t)return yc("0xbb")+t;const n=e.split("|")[0];return this[yc("0x7e")](n)?yc("0x9e"):yc("0x7a")};t[yc("0x13b")][yc("0x171")]("editingDowncast").markerToHighlight({model:yc("0x168"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0xdd")](t[yc("0x52")]),o=[yc("0xc5"),n(r,i)];let s=3e3;return this[yc("0x61")][yc("0xad")](t[yc("0x52")])&&(o.push(yc("0xb1")),s=3010),"deletion"==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x13b")][yc("0x171")](yc("0x136")).add((e=>{e.on(yc("0x4f"),((e,n,r)=>{if(!r.options.showSuggestionHighlights)return;const i=n.item;if(!i)return;const o=r[yc("0xa7")][yc("0x152")](i);t[yc("0xfa")][yc("0x104")][yc("0x86")](i)&&o&&!o[yc("0x73")]("widget")&&o.is(yc("0x0"))&&(0,x.toWidget)(o,r[yc("0x69")])}),{priority:"high"})})),t[yc("0x13b")][yc("0x171")](yc("0x136"))[yc("0x2b")]({model:yc("0x168"),view:(t,e)=>{if(!e[yc("0x3d")][yc("0xee")])return null;const{type:r,subType:i}=this[yc("0xdd")](t[yc("0x52")]);return{classes:[yc("0xc5"),n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0x15e")])return;const{id:s}=this._splitMarkerName(i[yc("0x52")]);if(n){const t=this[yc("0xe1")].get(s),e=this._getAttributeKey(t);if(!this[yc("0x7e")](e))return}if(i[yc("0x15e")].is(yc("0x118")))return void o[yc("0xef")][yc("0x165")](i[yc("0x15e")],r[yc("0x17d")]);const x=o[yc("0xa7")].toViewElement(i[yc("0x15e")]);if(i[yc("0x15e")].is(yc("0x116"))&&t[yc("0xfa")][yc("0x104")].isBlock(i[yc("0x15e")])&&!x[yc("0x73")]("addHighlight")){o.writer[yc("0x2c")]([yc("0xc5"),yc("0x9e")],x),o[yc("0x69")][yc("0x18")]("data-suggestion",s,x),o[yc("0xa7")].bindElementToMarker(x,i.markerName),e&&(this[yc("0x61")].includes(i.markerName)?o[yc("0x69")][yc("0x2c")](yc("0xb1"),x):o[yc("0x69")][yc("0x2e")](yc("0xb1"),x));for(const e of t.model[yc("0x6b")](i[yc("0x15e")])[yc("0x6c")]())o.consumable[yc("0x165")](e,r[yc("0x17d")]);o[yc("0xef")][yc("0x165")](i[yc("0x15e")],r[yc("0x17d")])}};t[yc("0x13b")][yc("0x171")](yc("0x136"))[yc("0x54")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[yc("0x3d")][yc("0xee")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[yc("0x13b")][yc("0x171")](yc("0x136")).add((t=>{t.on(yc("0x9a"),((t,e,n)=>{n[yc("0x3d")][yc("0xee")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x122")})})),t[yc("0x13b")][yc("0x171")]("dataDowncast").markerToData({model:yc("0x168"),view:(t,e)=>e[yc("0x3d")][yc("0xee")]?null:{group:yc("0x168"),name:t.substr(11)}}),t.conversion[yc("0x171")](yc("0x9c"))[yc("0xc0")]({view:{name:yc("0x168"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute("suggestion-type")+":"+t.getAttribute("id");return t[yc("0x12f")](yc("0x66"))&&(n+=":"+t.getAttribute(yc("0x66"))),e[yc("0xce")](yc("0xd2"),{"data-name":n})}}),t[yc("0x13b")].for(yc("0x9c"))[yc("0xbd")]({view:"suggestion"}),t[yc("0x13b")][yc("0x171")](yc("0x20"))[yc("0x54")]((t=>{t.on("addMarker:suggestion:formatBlock",r(),{priority:"high"})})),t.conversion[yc("0x171")]("editingDowncast")[yc("0x54")]((t=>{t.on(yc("0x9a"),r({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion[yc("0x171")](yc("0x20")).add((t=>{t.on(yc("0xba"),((t,e,n)=>{const r=n[yc("0xa7")][yc("0x174")](e.markerName);if(r)for(const t of r)t[yc("0x73")]("addHighlight")||(n[yc("0x69")][yc("0x2e")]([yc("0xc5"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[yc("0x69")][yc("0x42")](yc("0x1b"),t),n[yc("0xa7")][yc("0x5f")](t,e[yc("0x52")]))}),{priority:yc("0x41")})})),t.conversion[yc("0x171")](yc("0x20"))[yc("0x54")]((t=>{t.on(yc("0xd4"),((t,e,n)=>{const r=n[yc("0xa7")][yc("0x174")](e.markerName);if(!r)return;const{id:i}=this._splitMarkerName(e[yc("0x52")]),o=this._suggestions[yc("0xa0")](i),s=this._getAttributeKey(o);if(this[yc("0x7e")](s))for(const t of r)t[yc("0x73")](yc("0x140"))||(n[yc("0x69")][yc("0x2e")](["ck-suggestion-marker",yc("0x9e"),yc("0xb1")],t),n[yc("0x69")][yc("0x42")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[yc("0x52")]))}),{priority:yc("0x41")})})),t[yc("0xfa")][yc("0xf9")].registerPostFixer((e=>{let n=!1;const r=Array[yc("0xec")](t[yc("0xfa")][yc("0xf9")].differ[yc("0x13a")]()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0xdd")](x);if(yc("0x168")!==r)continue;const d=this[yc("0xe1")].get(u);if(null!=a.newRange){yc("0x2d")==c&&(n=n||Ic(a[yc("0x64")],x,e,t[yc("0xfa")][yc("0x104")]));const r="attribute"==c&&this[yc("0x7e")](l[yc("0x28")]("|")[0]);if(a[yc("0x64")][yc("0x3c")]||yc("0xb5")==a[yc("0x64")].root[yc("0x6e")]||"formatBlock"==c&&!vc(a[yc("0x64")])||r&&!vc(a.newRange)||"deletion"==c&&(Sc(s=a[yc("0x64")])||(o=s)[yc("0x163")][yc("0x7f")]==o[yc("0x51")][yc("0x4c")]&&o[yc("0x163")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;i[yc("0x54")](d)}}}var o,s;return i[yc("0x6d")]>0&&(n=!!this[yc("0x68")](i)||n),n})),t[yc("0xfa")].document[yc("0x8b")]((e=>{let n=!1;for(const r of t.model[yc("0xf9")][yc("0x82")][yc("0x4d")]())if(yc("0x35")==r[yc("0x132")])for(const r of this[yc("0xe1")][yc("0x178")]()){if(r[yc("0x8a")]||!r.isInContent)continue;const i="formatBlock"==r.type,o=this[yc("0x72")](r),s=o&&this[yc("0x7e")](o);if(!i&&!s)continue;const x=r[yc("0x137")]();if(x[yc("0x163")][yc("0x7f")]!=x.end[yc("0x7f")]&&!x.end.isAtEnd){const i=t[yc("0xfa")].createPositionAt(x[yc("0x163")][yc("0xf2")],yc("0x51")),o=t[yc("0xfa")][yc("0x12d")](x.start,i);e.updateMarker(r[yc("0x14d")](),{range:o}),n=!0}}return n})),t[yc("0xfa")][yc("0xf9")][yc("0x8b")]((t=>this[yc("0x32")](t))),t[yc("0xfa")][yc("0xf9")][yc("0x8b")]((t=>!t[yc("0x46")].isLocal&&this._processAttributeSuggestions(t))),t[yc("0xfa")].on(yc("0x147"),(()=>{this._recordAttributeSuggestions=!1})),t[yc("0xfa")][yc("0xf9")].on(yc("0x10d"),((n,r)=>{if(!r[yc("0xc8")]||r[yc("0xe4")])return;if(!this[yc("0xbe")])return;const i=t[yc("0xfa")][yc("0xf9")][yc("0x82")].getChanges();if(0==i[yc("0x2")])return;const o=[],s=i[yc("0x17a")]((t=>yc("0x13f")==t[yc("0x132")])),x=i[yc("0x17a")]((t=>yc("0x35")==t.type&&yc("0x100")!=t[yc("0x17d")])),a=i[yc("0x17a")]((t=>yc("0x1e")==t[yc("0x132")]&&yc("0x100")!=t.name));for(const e of s)this[yc("0xb7")](e[yc("0x12c")])&&o.push({key:e[yc("0x12c")],newValue:e[yc("0x173")],oldValue:e[yc("0x22")],range:Lc(e[yc("0x10c")],t[yc("0xfa")])});for(const e of x){const n=a.find((t=>t._element===e._element));if(n){const r=Mc(e[yc("0x83")].nodeAfter,t.model);n.name!==e[yc("0x17d")]&&o[yc("0xdc")]({key:yc("0x10e"),newValue:e[yc("0x17d")],oldValue:n[yc("0x17d")],range:r});for(const[t,i]of n[yc("0x3e")]){if(!this[yc("0xb7")](t))continue;const n=e[yc("0x3e")].get(t);i!==n&&o.push({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0x3e")])this[yc("0xb7")](t)&&(n.attributes[yc("0x14f")](t)||o[yc("0xdc")]({key:t,newValue:i,oldValue:null,range:r}))}}0!=o.length&&t[yc("0xfa")].enqueueChange(r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x16f")](t,e,r,i,{groupId:n});this[yc("0xab")](t,o)}))}),{priority:"lowest"}),t[yc("0xfa")][yc("0x102")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[yc("0x17d")]),n=this[yc("0xe1")][yc("0xa0")](t);n&&n[yc("0x141")](e.name)}})),t[yc("0xfa")][yc("0xf9")].on(yc("0x10d"),(()=>{const e=Array[yc("0xec")](t[yc("0xfa")][yc("0xf9")][yc("0x82")][yc("0x13a")]()).filter((t=>yc("0x168")===this._splitMarkerName(t[yc("0x17d")]).group));if(0===e[yc("0x2")])return;e.sort(((t,e)=>{const n=t[yc("0x49")][yc("0xf6")],r=e.data[yc("0xf6")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0x163")][yc("0x79")](r.start)?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0xdd")](t);if(null===i[yc("0xf6")]){const e=this._handleNewSuggestionMarker(t);r[yc("0x54")](e)}else{const t=this[yc("0xe1")][yc("0xa0")](e);null!==i[yc("0x64")]||t[yc("0x144")]?(n[yc("0x54")](t.head),r[yc("0x54")](t)):this[yc("0x43")](t)}}r[yc("0x6d")]>0&&this._refreshSuggestionsChain(r);for(const t of n)this[yc("0xa3")](yc("0x138"),t)})),t[yc("0xfa")].on("applyOperation",((e,n)=>{const r=n[0];if(!this[yc("0xe1")][yc("0x6d")])return;if(!r.isDocumentOperation)return;if(r[yc("0x46")].isUndo||!r.batch.isLocal)return;let i,o;switch(r[yc("0x132")]){case yc("0x35"):i=t[yc("0xfa")][yc("0x17")](r[yc("0x83")]),o=i[yc("0x99")](r[yc("0xe2")]);break;case"split":i=t.model[yc("0x17")](r.splitPosition),o=t[yc("0xfa")][yc("0x17")](r[yc("0x8d")]);break;case yc("0xe5"):i=t.model[yc("0x17")](r.targetPosition),o=i[yc("0x99")](r[yc("0xe2")]);break;default:return}const s=t[yc("0xfa")][yc("0x12d")](i,o);t[yc("0xfa")][yc("0x11f")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x148")](s)){if(t.isMultiRange)continue;if(yc("0x2d")==t[yc("0x132")])continue;const n=this[yc("0x72")](t);if(n&&this[yc("0x7e")](n)&&"split"!=r[yc("0x132")])continue;const x=t.data&&t[yc("0x49")].multipleBlocks;("formatBlock"!=t[yc("0x132")]||yc("0x28")==r[yc("0x132")]&&!x)&&(e.containsRangeInObject||yc("0xac")==t[yc("0x132")]&&e[yc("0xf8")]||t[yc("0x137")]().containsRange(s)&&this[yc("0x162")](t,i,o))}}))}),{priority:yc("0x169")}),t[yc("0xfa")].on("deleteContent",((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0x125")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[yc("0x1c")].value)return;if(r.isCollapsed)return;const o=t[yc("0xfa")][yc("0x104")],{start:s,end:x}=r[yc("0x137")](),a=s[yc("0xf2")]&&o[yc("0xc1")](s[yc("0xf2")])?null:o[yc("0x7d")](s,yc("0xca")),c=x[yc("0x4c")]&&o.isLimit(x.nodeBefore)?null:o[yc("0x7d")](x,"backward"),l=t[yc("0xfa")][yc("0x12d")](a?a[yc("0x163")]:s,c?c[yc("0x51")]:x);t.model[yc("0x11f")]((e=>{this[yc("0x161")](l);const n=t[yc("0xfa")].schema[yc("0x7d")](l[yc("0x163")]);r.is(yc("0xeb"))?e.setSelection(n):r[yc("0x135")](n)})),e.stop()}),{priority:e.priorities[yc("0x157")]+10}),t[yc("0xfa")].on(yc("0xcc"),((e,n)=>{const r=n[n[yc("0x2")]-1];r&&r[yc("0x125")]||this[yc("0x97")]||this[yc("0x1c")][yc("0x13")]&&(t[yc("0xfa")].change((()=>{let r=t[yc("0xfa")][yc("0xcc")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0x124")]=r[yc("0x95")]();const i=r[yc("0x51")][yc("0x4c")],o=t[yc("0xfa")][yc("0x104")];i&&o[yc("0x57")](i)&&!o[yc("0x86")](i)&&(r=t[yc("0xfa")][yc("0x12d")](r.start,t.model[yc("0x17")](i,yc("0x51")))),this.markInsertion(r)})),e.stop())}),{priority:"high"}),this[yc("0x154")][yc("0x62")][yc("0x54")](yc("0x98"),this[yc("0x1c")]),this[yc("0xde")](yc("0x98"));const i=new p(t,this[yc("0xe1")]);t[yc("0x62")][yc("0x54")](yc("0x5d"),i),this.enableCommand(yc("0x5d"));const o=new y(t,this[yc("0xe1")]);t[yc("0x62")][yc("0x54")]("discardSuggestion",o),this[yc("0xde")](yc("0x17b")),t[yc("0x62")].add("acceptAllSuggestions",new F(t,i,this[yc("0xe1")])),this[yc("0xde")]("acceptAllSuggestions"),t[yc("0x62")][yc("0x54")](yc("0x94"),new F(t,o,this._suggestions)),this[yc("0xde")]("discardAllSuggestions"),t.commands.add("acceptSelectedSuggestions",new j(t,i,this[yc("0xe1")])),this[yc("0xde")](yc("0x7")),t[yc("0x62")].add(yc("0x15a"),new j(t,o,this[yc("0xe1")])),this[yc("0xde")](yc("0x15a"));const s=t.plugins[yc("0xa0")](yc("0xa1"));this[yc("0x128")](s,yc("0x158"),((t,{threadId:e})=>{const n=this[yc("0xe1")].get(e);n&&n[yc("0x37")]&&1===n[yc("0x37")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:yc("0xe8")}),this[yc("0x128")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0xe1")][yc("0xa0")](e);n&&n.commentThread&&!n[yc("0x37")][yc("0x2")]&&this[yc("0x14a")](e,{hasComments:!1})}),{priority:yc("0xe8")})}set[yc("0x88")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[yc("0x60")]=t}get[yc("0x88")](){return this[yc("0x60")]}[yc("0x44")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[yc("0x178")]())t&&!e[yc("0x144")]||n[yc("0xdc")](e);return e?n[yc("0x53")]((t=>t[yc("0x63")]())):n}[yc("0x179")](t){const n=this[yc("0xe1")].get(t);if(!n)throw new e.CKEditorError(yc("0x78"),this);return n}hasSuggestion(t){return this[yc("0xe1")].has(t)}[yc("0x25")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t[yc("0x132")][yc("0x28")](":"),s=this[yc("0xe1")][yc("0xa0")](n)||this._createSuggestion(i,o,n,e,r);if(this[yc("0x150")](s),this[yc("0xc6")](s,i,o||null,e),s[yc("0x166")]=t.createdAt,s[yc("0x27")]=!0,r&&r["@external"]){const t=r[yc("0x34")],e=this[yc("0xaa")](t.authorName);s[yc("0x143")]=t[yc("0x166")],s[yc("0x1d")]=e,s[yc("0x109")]=!0}else s.authoredAt=t.createdAt;switch(t.data&&(s.data=t[yc("0x49")]),t.attributes&&(s.attributes=t.attributes),this[yc("0x60")]&&this[yc("0x60")].addSuggestion||(s[yc("0x113")]=!0),this[yc("0x16b")][yc("0xa0")](s)){case yc("0xb"):this[yc("0x16b")][yc("0x17c")](s,"dataReady");break;case yc("0x5e"):s.isInContent?(this[yc("0x68")](new Set([s])),this[yc("0x96")](new Set([s])),this._suggestionState[yc("0x17c")](s,yc("0x81")),this.fire(yc("0x39"),s)):this._suggestionState.set(s,yc("0x3f"))}return s}[yc("0x5d")](t){this[yc("0x125")]((()=>{this[yc("0x154")][yc("0xfa")].change((()=>{for(const e of t[yc("0xd6")]())e[yc("0x14c")]()}))}))}[yc("0x17b")](t){this[yc("0x125")]((()=>{this[yc("0x154")][yc("0xfa")][yc("0x11f")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[yc("0x40")]()}))}))}[yc("0xde")](t,n){const r=this.editor[yc("0x62")][yc("0xa0")](t);if(!r)throw new e.CKEditorError(yc("0xff"),this,{commandName:t});if(this[yc("0x3a")].has(r))throw new e.CKEditorError(yc("0x92"),this,{commandName:t});this[yc("0x3a")][yc("0x54")](r),n&&r.on(yc("0xf1"),((t,e)=>{this[yc("0x1c")].value&&(this._isForcedDefaultExecutionBlock||(e[yc("0x2")]>0&&e[e[yc("0x2")]-1]&&e[e[yc("0x2")]-1].forceDefaultExecution?e[yc("0x77")]():(t[yc("0x124")]=n(((...t)=>r[yc("0xf1")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x121")]())))}),{priority:"high"})}[yc("0x125")](t){let n,r;const i=this[yc("0x97")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x97")]=!1),r&&e.CKEditorError[yc("0x14")](r,this),n}markInsertion(t,n=null,r={}){if(t[yc("0x3c")])return null;const i=this[yc("0x154")][yc("0x5c")].get(yc("0xd8")).me;for(const{suggestion:e,meta:i}of this[yc("0x148")](t,yc("0xac")))if(i[yc("0xf8")]){if(!i.isNextTo){if(i[yc("0xda")]){if(!this[yc("0x139")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this[yc("0x162")](e,t.start,t.end);break}if(n==e.subType&&Fc(e,r)){const n=e[yc("0x137")]();return n[yc("0x163")].isEqual(t.end)?this[yc("0x75")](e,this[yc("0x6f")][yc("0x12d")](t[yc("0x163")],n[yc("0x51")])):this[yc("0x75")](e,this._model[yc("0x12d")](n[yc("0x163")],t[yc("0x51")])),e}}const o=(0,e.uid)(),s=i.id,x=n?yc("0xfe")+n:yc("0xac"),a=this[yc("0x8")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xe6")](x,o,s,t),a}[yc("0x17e")](t,n=yc("0x15d"),r={}){const i=this.editor[yc("0x5c")][yc("0xa0")](yc("0xd8")).me,o=this[yc("0x71")][yc("0x11a")](yc("0xac"),n,yc("0x175"));for(const e of this[yc("0x44")]())if(e[yc("0x1d")].id==i.id&&yc("0xac")==e[yc("0x132")]&&e[yc("0x7c")]==n&&Fc(e,r)&&(o(e[yc("0x84")](),t)||o(t,e[yc("0x84")]()))){for(const n of t)e[yc("0x13c")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x148")](t,yc("0xac"))){if(!n.isOwn)continue;if(!this[yc("0x139")]&&n[yc("0xda")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x84")]())for(const e of t)if(!n[yc("0xb6")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=yc("0xfe")+n,c=this[yc("0x8")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yr.getMultiRangeId());return c}[yc("0x7b")](t,n,r=null,i={}){if(r=r||Nc(n),t[yc("0x3c")])return null;if(yc("0x56")===this[yc("0x5a")]){const e=this[yc("0x71")][yc("0x11a")](yc("0x2d"),r,yc("0x14c"));return this[yc("0x125")]((()=>e([t],n,i))),null}const o=this[yc("0x154")][yc("0x5c")][yc("0xa0")](yc("0xd8")).me,s=[];if("always"!==this[yc("0x5a")])for(const{suggestion:e,meta:n}of this[yc("0x148")](t,yc("0xac")))n.isOwn&&!n[yc("0x29")]&&s.push(...e[yc("0x84")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0xfd")](r);e&&n[yc("0xdc")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x2")];){const r=n[e][yc("0x13e")](t);n[yc("0x10f")](e,1,...r),e+=r[yc("0x2")]}}return n}(t,s);x[yc("0x2")]&&this[yc("0x6f")].change((()=>{for(const t of x){const e=this[yc("0x71")][yc("0x11a")]("formatInline",r,"accept");this[yc("0x125")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0x163")],a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x148")](t,yc("0x2d"))){if(!n[yc("0xf8")])continue;if(e[yc("0x7c")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0x137")]();if(o.containsRange(t,!0))return null;x=x[yc("0x79")](o[yc("0x163")])?x:o.start,a=a[yc("0xa6")](o[yc("0x51")])?a:o[yc("0x51")],s?o.start[yc("0x79")](s.getFirstRange().start)?(s[yc("0xa4")](),s=e):e[yc("0xa4")]():s=e}const c=this[yc("0x6f")][yc("0x12d")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this[yc("0x8")]({id:t,type:yc("0x11c")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker(yc("0x11c")+r,t,s,c)}}return null}[yc("0xb4")](t,n,r=[],i=null,o={}){n.formatGroupId||(n.formatGroupId=n[yc("0xf4")]),n[yc("0x15")]=t.is(yc("0x10c")),i=i||Nc(n);const s=r[yc("0x53")]((t=>Mc(t,this[yc("0x6f")]))),x=t.is(yc("0x10c"))?t:Mc(t,this[yc("0x6f")]);if("never"===this[yc("0x5a")]){const t=this[yc("0x71")][yc("0x11a")](yc("0x85"),i,"accept");return this[yc("0x125")]((()=>t([x],n,o))),null}s[yc("0xdc")](x);let a=!0;for(const t of s)if(!this[yc("0xf0")](t)){a=!1;break}if(a&&yc("0x8c")!==this[yc("0x5a")]){const t=this[yc("0x71")].getSuggestionCallback("formatBlock",i,yc("0x14c"));return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x.start,u=x[yc("0x51")];for(const{suggestion:t,meta:e}of this[yc("0x148")](x,yc("0x85"))){if(!e.isOwn)continue;if(e[yc("0x23")]||e[yc("0xda")]||e[yc("0x29")])continue;if(t[yc("0x49")][yc("0x112")]!=n[yc("0x112")])continue;if(!Fc(t,o))continue;const r=t[yc("0x137")]();if(t.subType==i){if(r[yc("0xb6")](x,!0))return null;l=l[yc("0x79")](r[yc("0x163")])?l:r[yc("0x163")],u=u[yc("0xa6")](r[yc("0x51")])?u:r[yc("0x51")],c?r.start.isBefore(c[yc("0x137")]()[yc("0x163")])?(c[yc("0xa4")](),c=t):t.removeMarkers():c=t}else{const e=x[yc("0xfd")](r);this[yc("0xdf")](t,e)}}const d=this.editor[yc("0x5c")][yc("0xa0")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x75")](c,this._model[yc("0x12d")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xe6")](yc("0x12b")+i,g,f,this[yc("0x6f")].createRange(l,u)),t}}[yc("0xa8")](t,n,r=[],i=null,o={}){n[yc("0x112")]||(n[yc("0x112")]=n.commandName);const s=t[0];n[yc("0x15")]=s.is(yc("0x10c")),i=i||Nc(n);const x=r[yc("0x53")]((t=>Mc(t,this[yc("0x6f")]))),a=s.is("range")?t:t[yc("0x53")]((t=>Mc(t,this[yc("0x6f")])));if(yc("0x56")===this[yc("0x5a")]){const t=this[yc("0x71")][yc("0x11a")](yc("0x85"),i,yc("0x14c"));return this[yc("0x125")]((()=>t(a,n,o))),null}x[yc("0xdc")](...a);let c=!0;for(const t of x)if(!this[yc("0xf0")](t)){c=!1;break}if(c&&yc("0x8c")!==this[yc("0x5a")]){const t=this[yc("0x71")][yc("0x11a")](yc("0x85"),i,yc("0x14c"));return this[yc("0x125")]((()=>t(a,n,o))),null}const l=this[yc("0x154")][yc("0x5c")][yc("0xa0")]("Users").me;for(const t of this[yc("0x44")]()){if(t[yc("0x1d")].id!=l.id)continue;if(yc("0x85")!=t[yc("0x132")]||t[yc("0x49")][yc("0x112")]!=n[yc("0x112")])continue;if(!Fc(t,o))continue;const e=t[yc("0x7c")]==i;for(let n=0;n<a[yc("0x2")];n++){const r=a[n];for(const i of t[yc("0xae")]()){const o=i[yc("0x3")]();if(r[yc("0xc9")](o)){e?(a.splice(n,1),n--):t.removeMarker(i[yc("0x17d")]);break}}}}if(0==a.length)return null;const u=this[yc("0x71")][yc("0x11a")](yc("0x85"),i,yc("0x175"));for(const t of this[yc("0x44")]())if(t.author.id==l.id&&yc("0x85")==t.type&&t[yc("0x49")][yc("0x112")]==n[yc("0x112")]&&t[yc("0x7c")]==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x84")]()))){for(const e of a)t[yc("0x13c")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x12b")+i,h=this[yc("0x8")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0xe6")](f,d,g,t,Yr.getMultiRangeId());return h}[yc("0x161")](t,n=null,r={}){if(t.isCollapsed)return null;const i=this[yc("0x154")][yc("0x5c")].get(yc("0xd8")).me,o=new s.LiveRange(t[yc("0x163")],t[yc("0x51")]);for(const{suggestion:t,meta:e}of this[yc("0x148")](o,yc("0xac")))if(e[yc("0xf8")]&&!e[yc("0x23")])if(t[yc("0x8a")]){const e=t.getRanges()[yc("0x17a")]((t=>yc("0xb5")!=t[yc("0xd0")][yc("0x6e")]));if(e[yc("0x9b")]((t=>o.containsRange(t,!0)))&&t.discard(),e[yc("0x30")]((t=>t[yc("0xb6")](o,!0)))){const t=this[yc("0x71")][yc("0x11a")](yc("0x16"),n,yc("0x14c"));return this[yc("0x125")]((()=>t([o],null,r))),null}}else{const e=o[yc("0xfd")](t[yc("0x137")]());null!==e&&t[yc("0x45")]([e],null,r)}if(o[yc("0xa2")](),o[yc("0x3c")]||yc("0xb5")==o[yc("0xd0")].rootName)return null;let x=null,a=o.start,c=o[yc("0x51")];const l=this[yc("0x148")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x6f")][yc("0x12d")](a,c);if(e[yc("0xf8")]&&(this[yc("0x139")]||!e.containsRangeInObject&&!e[yc("0x29")]))if(t.isMultiRange){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x84")]()){if(r[yc("0xb6")](n,!0))return t;n[yc("0xb6")](r)||(e=!1)}e&&t[yc("0x40")]()}else{const e=t.getFirstRange();if(e[yc("0xb6")](n,!0))return t;if(!Fc(t,r)){n[yc("0xb6")](e)?t[yc("0xa4")]():e[yc("0x105")](a)?a=e[yc("0x51")]:e[yc("0x105")](c)&&(c=e.start);continue}a=a[yc("0x79")](e[yc("0x163")])?a:e[yc("0x163")],c=c[yc("0xa6")](e[yc("0x51")])?c:e[yc("0x51")],r=Object.assign({},t.attributes),x?e[yc("0x163")].isBefore(x[yc("0x137")]().start)?(x[yc("0xa4")](),x=t):t[yc("0xa4")]():x=t}}if(x)return this[yc("0x75")](x,this._model[yc("0x12d")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x6f")][yc("0x12d")](a,c),s=i.id,x=n?yc("0x119")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,t,s,o),l}}[yc("0x2f")](t,n="multi",r={}){const i=this[yc("0x154")][yc("0x5c")][yc("0xa0")](yc("0xd8")).me,o=t[yc("0x53")]((t=>new s.LiveRange(t[yc("0x163")],t[yc("0x51")]))),x=new Set;for(const{suggestion:t,meta:e}of this[yc("0x148")](o,"insertion"))e[yc("0xf8")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e[yc("0x8a")]){const i=e[yc("0x84")]();if((!e.attributes||!e[yc("0x3e")].skipNestingCheck)&&i[yc("0x9b")]((t=>o[yc("0x30")]((e=>e.containsRange(t,!0)))))&&e[yc("0x40")](),o[yc("0x9b")]((t=>i[yc("0x30")]((e=>e[yc("0xb6")](t,!0)))))){const e=this[yc("0x71")][yc("0x11a")]("deletion",n,yc("0x14c"));return this[yc("0x125")]((()=>e(t,null,r))),null}}else{const t=e[yc("0x137")]();if(o.some((e=>e[yc("0xb6")](t,!0)))&&e.discard(),o[yc("0x9b")]((e=>t[yc("0xb6")](e,!0)))){const t=this._suggestionFactory[yc("0x11a")](yc("0x16"),n,yc("0x14c"));return this[yc("0x125")]((()=>t(o,null,r))),null}}const a=this._suggestionFactory[yc("0x11a")](yc("0x16"),n,"join");let c=null;for(const t of this[yc("0x44")]())if(t.author.id==i.id&&t[yc("0x144")]&&yc("0x16")==t.type&&t[yc("0x7c")]==n&&Fc(t,r)&&(a(t[yc("0x84")](),o)||a(o,t.getRanges())))if(c){if(t[yc("0x37")]&&t[yc("0x37")][yc("0x2")])continue;for(const e of t[yc("0x84")]())c.isIntersectingWithRange(e)||c.addRange(e);t[yc("0xa4")]()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[yc("0x101")]();for(const{suggestion:t,meta:e}of this[yc("0x148")](o,yc("0x16")))e.isOwn&&(this._mergeNestedSuggestions||!e[yc("0xda")]&&!e.isInsideObject)&&Fc(t,r)&&x[yc("0x54")](t);for(const t of x){const e=t.getRanges();if((!r||!r.skipNestingCheck)&&o.every((t=>e[yc("0x30")]((e=>e[yc("0xb6")](t,!0))))))return t;(!t.attributes||!t[yc("0x3e")][yc("0xd1")])&&e[yc("0x9b")]((t=>o[yc("0x30")]((e=>e[yc("0xb6")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=yc("0x119")+n,g=this[yc("0x8")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0xa2")](),t[yc("0x3c")]||yc("0xb5")==t[yc("0xd0")][yc("0x6e")]||this[yc("0xe6")](d,l,u,t,Yr[yc("0x117")]());return g}[yc("0x16f")](t,n,r,i,o){if(t[yc("0x3c")])return[];if(yc("0x56")===this[yc("0x5a")])return[];const s=this[yc("0x154")][yc("0x5c")].get(yc("0xd8")).me.id,x=Array.from(this[yc("0xe1")][yc("0x178")]()).filter((e=>yc("0x13f")==e.type&&e[yc("0x49")][yc("0xb8")]==n&&e[yc("0xfc")](t)));if(yc("0x93")===this._trackFormatChanges){const e=this[yc("0x148")](t,yc("0xac")).filter((({meta:t})=>t[yc("0xf8")]&&!t[yc("0x29")]&&!t.isNextTo))[yc("0x53")]((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,r]]);for(const t of x){const e="attribute"==t.type?t[yc("0x49")][yc("0xf5")]:void 0,o=t.getFirstRange(),s=Array.from(a[yc("0x19")]())[yc("0x33")]((t=>t[yc("0x134")](o)));if(!s)continue;const x=s[yc("0x13e")](o);this[yc("0x7e")](n)&&"insertion"==t.type&&0!=x.length||(a[yc("0x108")](s),x.forEach((t=>{a[yc("0x17c")](t,r)})),yc("0xac")!=t[yc("0x132")]&&e!=i&&a[yc("0x17c")](s[yc("0xfd")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n.length>37&&console[yc("0x4e")](yc("0xb0"),{key:n});const l=("attribute:"+n+"|"+Nc({newValue:i}))[yc("0x11d")](0,60),u=this[yc("0x8")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0xdc")](u),this._addSuggestionMarker(l,x,s,t)}return c}[yc("0x59")](t){this[yc("0x90")][yc("0x54")](t)}[yc("0x38")](t){this._inlineAttributeKeys[yc("0x54")](t)}[yc("0xe9")](t,e=[],n=[]){this[yc("0xde")](t,((t,...e)=>{this[yc("0x12e")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x38")](t);for(const t of n)this[yc("0x59")](t)}[yc("0x72")](t){return yc("0x13f")==t[yc("0x132")]?t[yc("0x7c")][yc("0x28")]("|")[0]:null}[yc("0x75")](t,e){const n=t.getFirstMarker();this[yc("0x6f")][yc("0x11f")]((t=>{t[yc("0x11")](n,{range:e})}))}[yc("0x150")](t){const e=t.id,n=this[yc("0x154")][yc("0xb9")].get(yc("0x123"));this[yc("0xa")][yc("0xbc")](e)||this[yc("0xa")][yc("0x6a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0xa")][yc("0xc4")](e);r.unbind("isRemovable"),r.isRemovable=!1,t.commentThread=r}[yc("0xc6")](t,n,r,i){if(t.type!=n||t[yc("0x7c")]!=r||t[yc("0x10b")].id!=i)throw this[yc("0x154")][yc("0x4")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(yc("0x1a"),this)}[yc("0xdf")](t,n){const r=t[yc("0x137")]();if(n[yc("0xc9")](r))t[yc("0xa4")]();else if(r.containsRange(n)){const i=this[yc("0x6f")][yc("0x17")](n[yc("0x163")].nodeBefore,yc("0x51"));this._setSuggestionRange(t,this[yc("0x6f")][yc("0x12d")](r[yc("0x163")],i));const o=(0,e.uid)(),s=t.creator.id,x=t[yc("0x132")]+":"+t[yc("0x7c")];this[yc("0x8")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x49")],attributes:t[yc("0x3e")]});const a=this._model.createPositionAt(n.end.parent,yc("0x24")),c=this[yc("0x6f")][yc("0x12d")](a,r.end);this[yc("0xe6")](x,o,s,c)}else if(r[yc("0x105")](n[yc("0x163")])){const e=this[yc("0x6f")][yc("0x17")](n[yc("0x163")][yc("0x4c")],yc("0x51"));this[yc("0x75")](t,this[yc("0x6f")][yc("0x12d")](r[yc("0x163")],e))}else{const e=this[yc("0x6f")][yc("0x17")](n[yc("0x51")][yc("0x7f")],yc("0x24"));this[yc("0x75")](t,this[yc("0x6f")][yc("0x12d")](e,r.end))}}[yc("0xf0")](t){for(const{suggestion:e,meta:n}of this[yc("0x148")](t,yc("0xac"))){if(!n[yc("0xf8")])continue;const r=e[yc("0x84")]();for(const e of r)if(!t[yc("0x13e")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[yc("0x154")][yc("0x5c")][yc("0xa0")](yc("0xd8")).getUser(t);if(!n)throw new e.CKEditorError(yc("0xd3"),this);return n}[yc("0xaa")](t){const e=this.editor[yc("0x5c")][yc("0xa0")](yc("0xd8")),n=(0,o.hashObject)(yc("0x11b")+t);return e[yc("0x10a")](n)||e[yc("0x16e")]({id:n,name:t})}_createSuggestion(t,e,n,r,i){const o=this[yc("0x126")](r),s=this[yc("0x71")][yc("0xc")](t,e,n,o,i,(t=>{this[yc("0x14a")](n,{attributes:t});const e=this[yc("0x179")](n);this[yc("0x68")](new Set([e])),this._refreshSuggestionsChain(new Set([e]))}));return this[yc("0x128")](s,yc("0x14c"),(()=>{this._updateSuggestionData(n,{state:yc("0x14e")})}),{priority:yc("0x41")}),this[yc("0x128")](s,yc("0x40"),(()=>{this._updateSuggestionData(n,{state:yc("0x177")})}),{priority:yc("0x41")}),this._suggestions[yc("0x17c")](n,s),this[yc("0x16b")][yc("0x17c")](s,yc("0xb")),s}[yc("0xdd")](t){const e=t[yc("0x28")](":");return{group:e[0],type:e[1],subType:e[yc("0x2")]>=5?e[2]:null,id:e[yc("0x2")]<5?e[2]:e[3],authorId:e[yc("0x2")]<5?e[3]:e[4],markerCount:6==e[yc("0x2")]?e[5]:null}}[yc("0x162")](t,n,r){const i=t.getFirstRange(),o=i[yc("0x163")],s=i[yc("0x51")];this[yc("0x75")](t,this[yc("0x6f")][yc("0x12d")](o,n));const x=(0,e.uid)(),a=t.creator.id,c=t[yc("0x132")]+(t[yc("0x7c")]?":"+t[yc("0x7c")]:"");this[yc("0x8")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[yc("0x3e")],data:t.data});const l=this[yc("0x72")](t);(yc("0x85")==t[yc("0x132")]||l&&this[yc("0x7e")](l))&&(r=this[yc("0x6f")][yc("0x145")](r[yc("0x7f")])),this._addSuggestionMarker(c,x,a,this[yc("0x6f")].createRange(r,s))}[yc("0x148")](t,e=null){const n=[],r=this.editor[yc("0x5c")].get(yc("0xd8")).me;Array[yc("0x151")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[yc("0x144")])continue;if(e&&i[yc("0x132")]!=e)continue;let o=!1;for(const e of i[yc("0x84")]()){for(const s of t){const t=s.start[yc("0xc9")](e[yc("0x51")])||s.end[yc("0xc9")](e.start);if(t||s[yc("0xfd")](e)){const x=s[yc("0xb6")](e)&&Rc(this[yc("0x6f")][yc("0x104")],e.start,s),a=e[yc("0xb6")](s)&&Rc(this._model[yc("0x104")],s.start,e);n[yc("0xdc")]({suggestion:i,meta:{isOwn:r==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}_addSuggestionMarker(t,e,n,r,i){this[yc("0x6f")][yc("0x11f")]((o=>{let s=yc("0x9")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x127")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[yc("0x43")](t){const e=t.previous,n=t[yc("0x130")];t.previous=null,t[yc("0x130")]=null,null!=e&&e[yc("0x130")]==t&&(e[yc("0x130")]=n),null!=n&&n.previous==t&&(n[yc("0x16a")]=e),"ready"==this[yc("0x16b")][yc("0xa0")](t)&&(this[yc("0x16b")].set(t,yc("0x3f")),this[yc("0xa3")](yc("0xaf"),t,e,n))}_setSuggestionData(t){const n=t.id,r=this[yc("0x25")](t);if(this._adapter&&this._adapter[yc("0xbf")]){const i=this.editor.plugins[yc("0xa0")](yc("0xa9")),o=r[yc("0x8f")],s=r[yc("0x7c")]?r[yc("0x132")]+":"+r.subType:r[yc("0x132")],x=this[yc("0x154")].locale,a=i[yc("0x54")](Jr(x,yc("0xea"))),c={id:n,type:s,hasComments:o,data:t[yc("0x49")]||null,originalSuggestionId:t[yc("0x1f")]||null,attributes:r.attributes};this[yc("0x60")][yc("0xbf")](c)[yc("0x31")]((t=>{r[yc("0x113")]=!0,i[yc("0x1e")](a),t&&t[yc("0x166")]&&(this[yc("0xe1")][yc("0xa0")](n)[yc("0x166")]=t[yc("0x166")])}))[yc("0x14b")]((t=>{throw(0,e.logWarning)(yc("0x110")),this[yc("0x154")][yc("0xfa")][yc("0x176")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0x9f")](),this[yc("0xe1")].delete(r.id),this[yc("0x16b")][yc("0x108")](r),t}))}return r}[yc("0x7e")](t){return this._blockAttributeKeys.has(t)}_updateSuggestionData(t,e){const n=this[yc("0x154")].plugins[yc("0xa0")](yc("0xa9")),r=this.getSuggestion(t);if(this[yc("0x60")]&&this[yc("0x60")][yc("0xe3")])if(r[yc("0x113")]){const r=n[yc("0x54")](Jr(this[yc("0x154")][yc("0xb2")],yc("0xea")));this[yc("0x60")].updateSuggestion(t,e)[yc("0x31")]((()=>{n[yc("0x1e")](r)}))}else r.on(yc("0x26"),(()=>{this._updateSuggestionData(t,e)}))}[yc("0xe7")](t){if(!this._adapter||!this[yc("0x60")][yc("0x179")])throw new e.CKEditorError(yc("0xd9"),this);return this[yc("0x60")][yc("0x179")](t)}[yc("0x155")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0xdd")](t),o=this[yc("0xe1")][yc("0xa0")](e)||this[yc("0x156")](n,r,e,i,{});switch(this[yc("0xc6")](o,n,r,i),this[yc("0x16b")].get(o)){case yc("0xb"):this._getSuggestionData(e)[yc("0x31")]((t=>{let n=Promise[yc("0x107")]();t[yc("0x8f")]&&(n=this[yc("0xa")][yc("0x159")]({channelId:this.editor[yc("0xb9")].get(yc("0x123")),threadId:e})),n.then((()=>{this[yc("0x25")](t)._saved=!0}))})),this[yc("0x16b")][yc("0x17c")](o,yc("0x5e"));break;case yc("0x3f"):this[yc("0x14a")](e,{state:yc("0x50")});case yc("0xe"):this._suggestionState[yc("0x17c")](o,yc("0x81")),this.fire(yc("0x39"),o);break;case yc("0x81"):this.fire(yc("0x138"),o)}return o[yc("0x141")](t),o}[yc("0x96")](t){const e=Array.from(t),n=e.filter((t=>yc("0x13f")==t[yc("0x132")]));this[yc("0x167")](n);const r=e.filter((t=>!t[yc("0x8a")]&&yc("0x13f")!=t.type)),i=this[yc("0x44")]({skipNotAttached:!0})[yc("0x17a")]((t=>!t.isMultiRange&&yc("0x13f")!=t[yc("0x132")])),o=i[yc("0x17a")]((e=>!t[yc("0x14f")](e))),s=new Map(i[yc("0x53")]((t=>[t,this[yc("0x71")][yc("0x11a")](t[yc("0x132")],t[yc("0x7c")],yc("0x164"))]))),x=new Map(i.map((t=>[t,t[yc("0x137")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x2")];t++)u(r[t],r,t+1);for(let t=0;t<r.length;t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r[yc("0x2")];t++){const e=r[t];!c[yc("0x14f")](e)&&e[yc("0x16a")]&&(l[yc("0x54")](e[yc("0x16a")]),e.previous[yc("0x130")]===e&&(e.previous[yc("0x130")]=null),e[yc("0x16a")]=null),!a[yc("0x14f")](e)&&e.next&&(l[yc("0x54")](e[yc("0x130")]),e[yc("0x130")].previous===e&&(e.next.previous=null),e[yc("0x130")]=null)}function u(t,e,n){for(let r=n;r<e.length;r++){const n=d(t,e[r]);n&&(n[0][yc("0x130")]=n[1],n[1][yc("0x16a")]=n[0],a[yc("0x54")](n[0]),c.add(n[1]))}}function d(t,e){if(t.author.id!==e[yc("0x1d")].id)return null;const n=s.get(t)(t,e,x[yc("0xa0")](t),x[yc("0xa0")](e));return n&&s[yc("0xa0")](e)(t,e,x[yc("0xa0")](t),x[yc("0xa0")](e))?n[1][yc("0x37")]&&n[1][yc("0x37")].length?null:n:null}l[yc("0x6d")]&&this[yc("0x96")](l)}[yc("0x167")](t){if(0==t[yc("0x2")])return;const e=this.getSuggestions({skipNotAttached:!0}).filter((t=>"attribute"==t[yc("0x132")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x3e")]);r.has(e)||(r[yc("0x17c")](e,n.length),n[yc("0xdc")]([]));const i=r[yc("0xa0")](e);n[i][yc("0xdc")](t)}!function(){n.sort(((t,e)=>{const n=t[0].createdAt,r=e[0].createdAt;return n==r?t[0].attributes[yc("0x1")]<e[0][yc("0x3e")][yc("0x1")]?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x3b")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][yc("0x2")])continue;const e=[];for(let r=t+1;r<n[yc("0x2")];r++)0!=n[r][yc("0x2")]&&i(n[t],n[r])&&e[yc("0xdc")](r);for(const r of e)n[t]=n[t][yc("0x115")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x2")];e++)t[e][yc("0x130")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[yc("0x2")];e++)t[e][yc("0x16a")]=t[e-1]||null;function i(t,e){if(t[0][yc("0x3e")][yc("0x1")]!==e[0][yc("0x3e")].groupId&&t[0][yc("0x1d")]!==e[0].author)return!1;if(n=t[0],r=e[0],(n[yc("0x8f")]||r[yc("0x8f")])&&(n[yc("0x8f")]&&r[yc("0x8f")]||!(n[yc("0x8f")]&&r[yc("0x166")]<n[yc("0x37")][yc("0x5")].get(0)[yc("0x166")]||r.hasComments&&n[yc("0x166")]<r[yc("0x37")][yc("0x5")][yc("0xa0")](0)[yc("0x166")])))return!1;var n,r;const i=bc(t[0][yc("0x3e")],"groupId"),o=bc(e[0][yc("0x3e")],yc("0x1"));return!!jr(i,o)&&(!!t[yc("0x9b")]((t=>e[yc("0x30")]((e=>t[yc("0x137")]()[yc("0xc9")](e.getFirstRange())))))&&e.every((e=>t.some((t=>e[yc("0x137")]().isEqual(t[yc("0x137")]()))))))}}[yc("0x68")](t){const e=Array[yc("0xec")](t),n=this.getSuggestions({skipNotAttached:!0}),r=n[yc("0x17a")]((e=>!t[yc("0x14f")](e))),i=new Map(e.map((t=>[t,this[yc("0x71")][yc("0x11a")](t[yc("0x132")],t[yc("0x7c")],yc("0x175"))]))),o=new Map(n[yc("0x53")]((t=>[t,t[yc("0x84")]()])));for(let t=0;t<e[yc("0x2")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x2")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x2")];s++){const r=n[s];if(r[yc("0x132")]!==e[yc("0x132")]||r[yc("0x1d")].id!==e[yc("0x1d")].id||r[yc("0x7c")]!==e[yc("0x7c")])continue;if(!Oc(e,r,["groupId"]))continue;if(yc("0x13f")==e.type&&e[yc("0x49")][yc("0xf5")]!=r.data[yc("0xf5")])continue;if(yc("0x13f")==e[yc("0x132")]&&t[yc("0x7e")](e[yc("0x49")][yc("0xb8")]))continue;if(yc("0x85")==e[yc("0x132")]){const n=t[yc("0x154")].model,r=e[yc("0xed")]();if(r&&(n[yc("0x104")][yc("0x86")](r)||n.schema[yc("0xc1")](r)))continue}const x=i.get(e),a=o[yc("0xa0")](e),c=o[yc("0xa0")](r),l=e[yc("0x37")]&&e[yc("0x37")][yc("0x2")],u=r.commentThread&&r.commentThread[yc("0x2")];if(!l&&x(c,a))return t[yc("0x133")](r,e),o.delete(e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,r),o.delete(r),!0}return!1}}[yc("0x133")](t,e){if(t.isMultiRange)for(const n of e[yc("0x84")]())t.addRange(n);else{const n=e.getFirstRange()[yc("0x51")];this[yc("0x75")](t,this._model[yc("0x12d")](t[yc("0x137")]()[yc("0x163")],n))}e[yc("0xa4")]()}_getMarkerAnnouncementText(t,e){const n=t[yc("0x131")](yc("0x160"))||t.startsWith(yc("0x13f"))?yc("0x103"):t[yc("0x15c")]();return Jr(this[yc("0x154")].locale,e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[yc("0x142")](){const t=this[yc("0x154")];(0,o.surroundingMarkersDetector)(this[yc("0x6f")],(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this._splitMarkerName(t.name);if(yc("0x168")===e){r[yc("0xdc")](this[yc("0x91")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[yc("0xdd")](t[yc("0x17d")]);if(yc("0x168")===e){r.push(this[yc("0x91")](n,"ENTER"));break}}r[yc("0x2")]&&t.ui[yc("0x120")][yc("0x55")](yc("0x98"),r[yc("0x175")](" "))}))}[yc("0x32")](t){if(this[yc("0xbe")])return!1;const e=this[yc("0x154")],n=e[yc("0xfa")][yc("0xf9")].differ[yc("0x4d")]();if(0==n[yc("0x2")])return!1;const r=[],i=n[yc("0x17a")]((t=>yc("0x13f")==t[yc("0x132")])),o=n[yc("0x17a")]((t=>yc("0x35")==t.type&&yc("0x100")!=t.name)),s=n[yc("0x17a")]((t=>yc("0x1e")==t[yc("0x132")]&&"$text"!=t[yc("0x17d")]));for(const t of i)r[yc("0xdc")]({key:t[yc("0x12c")],newValue:t.attributeNewValue,oldValue:t[yc("0x22")],range:Lc(t[yc("0x10c")],e[yc("0xfa")])});for(const t of o){const n=s[yc("0x33")]((e=>e[yc("0x83")][yc("0xc9")](t[yc("0x83")])));n&&r[yc("0xdc")]({key:yc("0x10e"),newValue:t[yc("0x17d")],oldValue:n[yc("0x17d")],range:e[yc("0xfa")].createRangeOn(t[yc("0x83")].nodeAfter)})}return 0!=r[yc("0x2")]&&this[yc("0xab")](t,r)}_processAttributeSuggestions(t){let e=!1;const n=this[yc("0x154")][yc("0xfa")][yc("0xf9")].differ[yc("0x13a")]()[yc("0x17a")]((t=>t.data[yc("0x64")]&&t.name[yc("0x131")](yc("0xc7"))));for(const r of n){const{subType:n,id:i}=this[yc("0xdd")](r[yc("0x17d")]),o=n[yc("0x28")]("|")[0];for(const n of this[yc("0x44")]({skipNotAttached:!0}))n.id!=i&&"attribute"==n[yc("0x132")]&&n[yc("0x49")]&&n.data[yc("0xb8")]==o&&n[yc("0x137")]()[yc("0x134")](r[yc("0x49")].newRange)&&(this[yc("0x48")](n,r.data[yc("0x64")],t),e=!0)}return e}[yc("0x12e")](t){this[yc("0x154")],this[yc("0xbe")]=!0,t()}[yc("0xb7")](t){const e=this._isBlockAttribute(t),n=this[yc("0xd7")][yc("0x14f")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const r of e){const e=this[yc("0x148")](r.range,yc("0x13f"))[yc("0x17a")]((t=>!t[yc("0x89")][yc("0x23")]))[yc("0x53")]((t=>t.suggestion)),i=(0,o.hashObject)({newValue:r[yc("0x76")]});e[yc("0x17a")]((t=>{const[e,n]=t[yc("0x7c")][yc("0x28")]("|");return e==r[yc("0xb8")]&&n!=i}))[yc("0x36")]((e=>{this._reduceSuggestionAttributeRange(e,r[yc("0x10c")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const r=t[yc("0x137")]()[yc("0x13e")](e);0!==r[yc("0x2")]?1!==r.length?this[yc("0x162")](t,e[yc("0x163")],e.end):this[yc("0x75")](t,r[0]):n[yc("0x5b")](t[yc("0x14d")]())}}class kc{constructor(t){this[yc("0xcb")]=t,this._model=t[yc("0xfa")],this._customCallbacks=new Map,this[yc("0xf3")]=new Map,this._registerDefaultCallbacks()}[yc("0xc")](t,e,n,r,i,o){return new Yr(this[yc("0x6f")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this[yc("0x11a")](t,e,yc("0x14c"))(...n),onDiscard:(...n)=>this[yc("0x11a")](t,e,"discard")(...n)})}[yc("0xd5")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0xfb")][yc("0x17c")](i,r)}[yc("0x11a")](t,e,n){const r=t+":"+e+":"+n;return this[yc("0xfb")][yc("0xa0")](r)||this[yc("0xf3")].get(t+":"+n)}[yc("0x70")](){const t=()=>!1,e=t=>{t[yc("0x3b")](((t,e)=>t.start[yc("0x79")](e[yc("0x163")])?1:-1)),this._model[yc("0x11f")]((e=>{for(const n of t){let t;t=n.end[yc("0x12a")]&&n[yc("0x51")][yc("0x7f")]==n[yc("0x163")][yc("0xf2")]?e[yc("0xcf")](n[yc("0x163")].nodeAfter,"on"):e[yc("0xcf")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x53")]((t=>(Sc(t)&&(t=this[yc("0x6f")][yc("0x12d")](t.end)),t))).filter((t=>yc("0xb5")!==t[yc("0xd0")][yc("0x6e")]));if(o[yc("0x2")]<1)return;const x=Array[yc("0xec")](this[yc("0x6f")].document[yc("0x118")][yc("0x84")]()).map((t=>s.LiveRange[yc("0x15b")](t)));n[yc("0xd")](o);for(const t of this[yc("0xcb")].commands.commands())t.refresh();i[yc("0xdc")]({forceDefaultExecution:!0}),this[yc("0xcb")][yc("0xf1")](r,...i);const a=x[yc("0x17a")]((t=>yc("0xb5")!=t[yc("0xd0")][yc("0x6e")]));a.length>0&&n[yc("0xd")](a);for(const t of x)t.detach()}))},r=(t,e)=>1==t[yc("0x2")]&&1==e.length&&t[0][yc("0x51")][yc("0xc9")](e[0][yc("0x163")]),i=(t,e,n,r)=>wc(t,e,n,r,this[yc("0x6f")])?[t,e]:wc(e,t,r,n,this[yc("0x6f")])?[e,t]:null;this[yc("0xf3")][yc("0x17c")]("insertion:accept",t),this[yc("0xf3")][yc("0x17c")](yc("0x2a"),e),this._defaultCallbacks.set("insertion:join",r),this[yc("0xf3")].set(yc("0x8e"),i),this[yc("0xf3")].set(yc("0x74"),e),this._defaultCallbacks[yc("0x17c")](yc("0x9d"),t),this[yc("0xf3")][yc("0x17c")](yc("0xf7"),r),this[yc("0xf3")].set(yc("0xb3"),i),this[yc("0xf3")][yc("0x17c")](yc("0x65"),n),this[yc("0xf3")].set(yc("0x58"),t),this[yc("0xf3")][yc("0x17c")](yc("0x106"),r),this[yc("0xf3")][yc("0x17c")](yc("0x10"),t),this[yc("0xf3")].set(yc("0xc2"),n),this[yc("0xf3")][yc("0x17c")](yc("0x87"),t),this[yc("0xf3")][yc("0x17c")](yc("0x146"),r),this[yc("0xf3")][yc("0x17c")](yc("0x47"),t),this[yc("0xf3")][yc("0x17c")](yc("0xc3"),t),this._defaultCallbacks[yc("0x17c")](yc("0xe0"),((t,e)=>{if(!e)return;const n=this[yc("0xcb")].plugins[yc("0xa0")](Ac);this[yc("0x6f")][yc("0x11f")]((r=>{if("$elementName"==e.key)for(const n of t){const t=n[yc("0x163")].nodeAfter,i=e.oldValue;r.rename(t,i)}else if(n[yc("0x7e")](e.key))for(const n of t)void 0!==e.oldValue?r[yc("0x18")](e.key,e[yc("0xf5")],n[yc("0x163")][yc("0xf2")]):r[yc("0x42")](e[yc("0xb8")],n[yc("0x163")][yc("0xf2")]);else for(const n of t)e[yc("0xf5")]?r[yc("0x18")](e[yc("0xb8")],e[yc("0xf5")],n):r[yc("0x42")](e.key,n)}))})),this._defaultCallbacks[yc("0x17c")](yc("0x16c"),r)}}function Rc(t,e,n){for(const r of e[yc("0x7f")][yc("0xf")]({includeSelf:!0,parentFirst:!0})){if(r[yc("0xd0")]==r)return!1;if(!n[yc("0x80")](r))return!1;if(t.isObject(r)||t[yc("0xc1")](r))return!0}return!1}function Sc(t){return t.end[yc("0x7f")]==t[yc("0x163")][yc("0xf2")]&&t[yc("0x51")][yc("0x11e")]}function Ic(t,e,n,r){const i=t=>!t.item.is(yc("0x15f"))&&!r[yc("0x86")](t.item),o=t[yc("0x163")][yc("0x111")](i),s=t[yc("0x51")].getLastMatchingPosition(i,{direction:yc("0xcd")});return!(t[yc("0x163")][yc("0xc9")](o)&&t[yc("0x51")][yc("0xc9")](s)||(o[yc("0x79")](s)?n[yc("0x11")](e,{range:n[yc("0x12d")](o,s)}):n.removeMarker(e),0))}function Nc(t){return(0,o.hashObject)(t)}function vc(t){const e=t[yc("0x163")].nodeAfter;return e&&e.is("element")}function Lc(t,e){return null==t.end[yc("0x4c")]&&t[yc("0x51")][yc("0x7f")]==t.start[yc("0xf2")]?Mc(t[yc("0x163")][yc("0xf2")],e):t}function Mc(t,e){const n=e.schema.isObject(t)||e[yc("0x104")].isSelectable(t);return e[yc("0x12d")](e.createPositionAt(t,yc("0x149")),n?e[yc("0x153")](t):e[yc("0x17")](t,yc("0x51")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x51")][yc("0xc9")](r[yc("0x163")]))return!0;if(t[yc("0x132")]!=e[yc("0x132")])return!1;if(!n[yc("0x51")].isTouching(r[yc("0x163")]))return!1;const o=i[yc("0x12d")](n[yc("0x51")],r.start)[yc("0x172")]();for(const t of o)if([yc("0x67"),"elementEnd"][yc("0xad")](t[yc("0x132")])&&i[yc("0x104")][yc("0xc1")](t.item))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x27")]||!e[yc("0x27")])&&jr(bc(t[yc("0x3e")],n),bc(e[yc("0x3e")],n))}function Fc(t,e){const n=Dc(t.attributes),r=Dc(e);if(!t[yc("0x27")])return!1;for(const t of Object[yc("0x19")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[yc("0xdb")],e}const Bc=["getRanges","view","plugins","stopListening","_editor","PENDING_ACTION_SUGGESTION","_acceptCommand","isEnabled","canAccept","_discardCommand","change:isDirty","execute","_pendingAction","canDiscard","isDirty","acceptSuggestion","unbind","listenTo","PendingActions","get","canEditAt","commands","model","discardSuggestion","_setPendingAction","bind","remove","destroy","commentThreadController","_removePendingAction"];var Pc,Uc;Pc=Bc,Uc=338,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0xe")]=e,this[jc("0x17")]=n,this[jc("0x14")]=r,this._editor=t,this._acceptCommand=t[jc("0xd")][jc("0xb")](jc("0x7")),this[jc("0x1")]=t[jc("0xd")][jc("0xb")]("discardSuggestion"),this[jc("0x17")].bind(jc("0x1d")).to(this._acceptCommand,this[jc("0x1")],((t,e)=>t||e)),this[jc("0x17")][jc("0x11")]("canAccept").to(this[jc("0x1c")],jc("0x1d"),(t=>t&&this[jc("0x1a")][jc("0xe")][jc("0xc")](e[jc("0x16")]()))),this.view.bind(jc("0x5")).to(this[jc("0x1")],jc("0x1d"),(t=>t&&this[jc("0x1a")][jc("0xe")][jc("0xc")](e[jc("0x16")]()))),this[jc("0x4")]=null,n[jc("0x6")]&&this[jc("0x10")](),this[jc("0x9")](n,jc("0x7"),(()=>this[jc("0x7")]())),this.listenTo(n,"discardSuggestion",(()=>this[jc("0xf")]())),this[jc("0x9")](n,jc("0x2"),(()=>{n.isDirty?this[jc("0x10")]():this[jc("0x15")]()}))}[jc("0x7")](){this[jc("0x1c")].execute(this.model.id)}[jc("0xf")](){this._discardCommand[jc("0x3")](this[jc("0xe")].id)}[jc("0x13")](){this[jc("0x17")][jc("0x8")](jc("0x1d")),this[jc("0x17")][jc("0x8")](jc("0x0")),this[jc("0x17")][jc("0x8")](jc("0x5")),this[jc("0x19")](),this[jc("0x14")][jc("0x13")](),this[jc("0x4")]&&this[jc("0x15")]()}[jc("0x10")](){const t=Jr(this[jc("0x1a")].locale,jc("0x1b"));this._pendingAction=this[jc("0x1a")][jc("0x18")][jc("0xb")](jc("0xa")).add(t)}[jc("0x15")](){null!==this[jc("0x4")]&&this._editor[jc("0x18")][jc("0xb")](jc("0xa"))[jc("0x12")](this[jc("0x4")]),this[jc("0x4")]=null}}const Vc=["CommentView","commentInputView","_config","editor","cancel","descriptionParts","element","fire","showInput","bind","addComment","_createCommentThreadInputView","canDiscard","value","delegate","commentsListView","_model","setData","assign","locale","destroy","length","commentThreadInputView","_localUser","focus","hasDirtyComment","set","updateComment","isActive","authoredAt","isDirty","isReadOnly","commentThread","_createCommentViews"];var Hc,zc;Hc=Vc,zc=250,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Wc("0xa")]=null,this[Wc("0xe")](Wc("0x10"),!1),this.set(Wc("0x11"),e.authoredAt),this[Wc("0x1f")]("authoredAt").to(e),this[Wc("0xe")](Wc("0x1b"),[]),this[Wc("0xe")](Wc("0x12"),!1),this[Wc("0xe")]("isEnabled",!1),this[Wc("0xe")]("canAccept",!1),this[Wc("0xe")](Wc("0x0"),!1),this[Wc("0x4")]=e,this[Wc("0xb")]=n,this[Wc("0x18")]=r,r.disableComments?this[Wc("0xe")](Wc("0x9"),1):this[Wc("0x15")]()}[Wc("0xc")](){this[Wc("0x1c")].focus()}[Wc("0x8")](){this[Wc("0x3")]&&this[Wc("0x3")][Wc("0x8")](),this[Wc("0xa")]&&this[Wc("0xa")][Wc("0x8")](),super[Wc("0x8")]()}[Wc("0x15")](){const{CommentsListView:t}=this[Wc("0x18")];this[Wc("0x3")]=new t(this[Wc("0x7")],this._model[Wc("0x14")],Object[Wc("0x6")]({CommentView:this[Wc("0x18")][Wc("0x16")]},this[Wc("0x18")])),this.commentsListView[Wc("0x2")]("removeComment").to(this),this.commentsListView[Wc("0x2")](Wc("0xf")).to(this),this[Wc("0x3")][Wc("0x1f")]("isActive").to(this),this[Wc("0xe")](Wc("0x9"),this[Wc("0x3")][Wc("0x9")]+1),this[Wc("0x1f")](Wc("0x9")).to(this[Wc("0x3")],"length",(t=>t+1)),this.commentThreadInputView=this[Wc("0x21")](),this.on("removeComment",(()=>this[Wc("0xc")]())),this[Wc("0x1f")](Wc("0x12")).to(this[Wc("0x3")],Wc("0xd"),this[Wc("0xa")][Wc("0x17")],Wc("0x1"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Wc("0x18")],e=new t(this[Wc("0x7")],this._localUser,this._config.editorConfig),n=e[Wc("0x17")];return e[Wc("0x1f")](Wc("0x1e")).to(this,Wc("0x10"),this[Wc("0x4")][Wc("0x14")],Wc("0x13"),n,Wc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Wc("0x1d")](Wc("0x20"),e),n[Wc("0x19")][Wc("0x5")]("")})),n.on(Wc("0x1a"),(()=>this[Wc("0xc")]())),n[Wc("0x1f")]("disabledSubmit").to(this[Wc("0x4")][Wc("0x14")],Wc("0x13")),e}}const qc=["innerText","join","bind","title","setTemplate","_model","EXTERNAL_AVATAR","ck-suggestion","commentThreadInputView","querySelector","<p>","map","canAccept","innerHTML","discardSuggestion","description","discardButton","ck-comment__external","cancel","split","locale","userView","element","attributes","_descriptionElement","descriptionParts","ck-suggestion-wrapper","color","</p>","isEnabled","type","span","_createButton","EXTERNAL_SUGGESTION","author",'<span class="ck-suggestion-color" style="background-color: ',"source","Accept suggestion","ck-suggestion--discard","fire","name","createElement","getUserViewNotificationText","ck-annotation__main","ck-suggestion__user","authoredAt","push","commentsListView","ck-suggestion-wrapper--active","isExternal","ck-comment__info-time","formatDateTime","commentThread","Discard suggestion","set","ck-suggestion-","ck-annotation__content-wrapper","execute","ck-suggestion__main","ck-suggestion__info","delegate","ck-suggestion--disabled-comments","editorReady","creator","importWord","ck-suggestion__info-name","getExternalSuggestionNote","ck-suggestion__actions","time","isActive","@external","extendTemplate","editorDestroyed","ck-annotation__user","getTemplate","check","_config",'" title="',"bindTemplate","ck-annotation__info-time","div","render","children"];var Xc,$c;Xc=qc,$c=163,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this.set(Zc("0x21"),""),this[Zc("0x5")](Zc("0x21")).to(this,Zc("0x1c"),(t=>t&&t[0]?t[0][Zc("0x21")]:"")),this[Zc("0x5")]("description").to(this,Zc("0x1c"),this,Zc("0x48"),((t,e)=>{let n="";for(const e of t)n+=Zc("0xd")+Jc(e.content,e[Zc("0x1e")])+Zc("0x1f");return e?n:(0,o.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[Zc("0x23")](Jr(e,Zc("0x28")),t.icons[Zc("0x4e")],"ck-suggestion--accept","acceptSuggestion","sw"),this.acceptButton[Zc("0x5")](Zc("0x20")).to(this,Zc("0xf")),this.discardButton=this[Zc("0x23")](Jr(e,Zc("0x38")),t.icons[Zc("0x15")],Zc("0x29"),Zc("0x11"),"sw"),this[Zc("0x13")].bind(Zc("0x20")).to(this,"canDiscard"),this[Zc("0x18")]=new o.UserView(e,this[Zc("0x8")][Zc("0x25")],this[Zc("0x2d")]()),this.userView[Zc("0x4a")]({attributes:{class:[Zc("0x2f"),Zc("0x4c")]}}),this[Zc("0x7")](this.getTemplate())}[Zc("0x4d")](){const t=this[Zc("0x51")],e=[{tag:Zc("0x0"),attributes:{class:[Zc("0x3e"),"ck-annotation__info"]},children:[{tag:Zc("0x22"),children:[{text:this.userView[Zc("0x2b")]}],attributes:{class:[Zc("0x44"),"ck-annotation__info-name"]}},{tag:Zc("0x47"),attributes:{datetime:t.to(Zc("0x30")),class:[Zc("0x35"),Zc("0x52")]},children:[{text:t.to(Zc("0x30"),(t=>this[Zc("0x4f")][Zc("0x36")](t)))}]}]},{tag:Zc("0x0"),attributes:{class:[Zc("0x46"),"ck-annotation__actions"]},children:[this.acceptButton,this[Zc("0x13")]]},{tag:"div",attributes:{class:[Zc("0x3b")]}}];this[Zc("0x8")].isExternal&&e.push({tag:"div",attributes:{class:[Zc("0x14")]},children:[{text:this[Zc("0x45")]()}]});const n={tag:Zc("0x0"),attributes:{class:[Zc("0x1d"),t.if(Zc("0x48"),Zc("0x33")),t.to("type",(t=>Zc("0x3a")+t)),this[Zc("0x4f")].disableComments&&Zc("0x40")],"data-suggestion-id":this._model.id,"data-thread-id":this[Zc("0x8")][Zc("0x37")].id,"data-author-id":this[Zc("0x8")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[Zc("0xa"),"ck-annotation"]},children:[this[Zc("0x18")],{tag:"div",attributes:{class:[Zc("0x3d"),Zc("0x2e")]},children:e}]}]};return this[Zc("0x32")]&&this[Zc("0xb")]&&(n[Zc("0x2")][Zc("0x31")](this[Zc("0x32")],this[Zc("0xb")]),this.commentsListView.delegate(Zc("0x41")).to(this),this[Zc("0x32")].delegate(Zc("0x4b")).to(this),this[Zc("0xb")][Zc("0x3f")]("editorReady").to(this),this.commentThreadInputView.delegate(Zc("0x4b")).to(this)),n}[Zc("0x1")](){super[Zc("0x1")](),this[Zc("0x1b")]=this[Zc("0x19")][Zc("0xc")](".ck-annotation__content-wrapper"),this[Zc("0x1b")][Zc("0x10")]=this[Zc("0x12")],this.on("change:description",((t,e,n)=>{this[Zc("0x1b")][Zc("0x10")]=n}))}[Zc("0x23")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x17")]);return s[Zc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x4a")]({attributes:{class:n}}),s.on(Zc("0x3c"),(()=>{this[Zc("0x2a")](r,this._model.id)})),s}[Zc("0x45")](){return Zc("0x43")===this[Zc("0x8")][Zc("0x1a")][Zc("0x49")].source?Jr(this[Zc("0x17")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jr(this[Zc("0x17")],Zc("0x24"))}getUserViewNotificationText(){return this[Zc("0x8")][Zc("0x34")]?Zc("0x43")===this._model[Zc("0x1a")][Zc("0x49")][Zc("0x27")]?Jr(this[Zc("0x17")],"EXTERNAL_IMPORT_WORD_AVATAR",this._model[Zc("0x42")][Zc("0x2b")]):Jr(this[Zc("0x17")],Zc("0x9"),this[Zc("0x8")][Zc("0x42")][Zc("0x2b")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x16")]("*")[Zc("0xe")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Qc(t)+"</span>":Qc(t)))[Zc("0x4")](""),e&&(n+=Zc("0x26")+e.value+Zc("0x50")+e[Zc("0x6")]+'"></span>'),n}function Qc(t){const e=document[Zc("0x2c")](Zc("0x22"));return e[Zc("0x3")]=t,e[Zc("0x10")]}const tl=["EditorAnnotations","registerAnnotation","Accept all suggestions","button","activeAnnotations","CommentsUI","TrackChangesUI","head","actionView","_viewToController","commands","getMarkers","suggestion-","plugins","hasSuggestion","descriptionParts","getSuggestion","TrackChangesEditing","arrowView","add","_createUIButton","map","requires","suggestionChanged","stopListening","_handleSuggestionControllerDelayed","set","config","locale","lowest","_refreshActiveMarkers","init","define","componentFactory","value","Annotations","has","comments.editorConfig","clear","delete","_destroyController","focus","_updateController","listenTo","destroy","_unbindEditors","isEnabled","Discard all suggestions","isOn","commentThread","mainView","trackChanges","reduce","pluginName","bind","getRanges","model","_disableComments","values","getByInnerView","push","comments.maxCommentCharsWhenCollapsed","editor","execute","switchbutton","buttonView","commandName","isDirty","length","suggestionLoaded","change:previous","comments","isInContent","innerView","acceptAllSuggestions","suggestionUnloaded","filter","trackChanges.disableComments","discardAllSuggestions","trackChanges.SuggestionThreadView","from","acceptSelectedSuggestions","_handleControllerBuffer","createCommentThreadController","change:activeAnnotations","comments.maxThreadTotalWeight","Track changes","previous","addComment","CommentsRepository","toMany","view","get","editing","_bindAnnotationToEditors","acceptButton","size","type","getJoined","getDescriptions","unbind","addSourceCollector","discardButton","_descriptionFactory","_suggestionToController","_annotationViews","getAllAdjacentSuggestions","separator","refreshSelectedViews"];var el,nl;el=tl,nl=135,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x69")](){return[Ac,o.Users,rl("0x3f"),"Annotations",rl("0x53")]}static get[rl("0x1b")](){return rl("0x59")}constructor(t){super(t),this[rl("0x4e")]=new Map,this[rl("0x5c")]=new Map,this[rl("0x4f")]=new Map,this[rl("0x38")]=new Map;const e=this[rl("0x24")].config;e[rl("0x6")](rl("0x35"),Yc),e[rl("0x6")]("trackChanges.disableComments",!1),this._disableComments=e[rl("0x42")](rl("0x33"))}_handleSuggestionControllerDelayed(t,e){0===this[rl("0x38")][rl("0x46")]&&setTimeout((()=>{for(const[t,e]of this[rl("0x38")]){const n=this._suggestionToController[rl("0xa")](t);n||e?n&&e&&this[rl("0xe")](t):this._initializeController(t)}this[rl("0x38")][rl("0xc")](),this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x53"))[rl("0x52")](),this[rl("0x4")]()}),10),this[rl("0x38")][rl("0x0")](t,e)}[rl("0x5")](){const t=this.editor,e=t[rl("0x60")].get(rl("0x64")),n=t.plugins.get(rl("0x9")),r=t[rl("0x60")].get(rl("0x53")),i=t[rl("0x60")][rl("0x42")](rl("0x3f"));t.ui[rl("0x7")][rl("0x66")](rl("0x19"),(t=>this[rl("0x67")](t))),r[rl("0x4b")]((()=>{const t=[];for(const[e,n]of Array[rl("0x36")](this[rl("0x4e")])){const r=e[rl("0x50")](),i=[];for(const t of r){if(!t[rl("0x2e")])continue;if(t.isMultiRange){i[rl("0x22")](...t[rl("0x1d")]());continue}const e=t.getFirstRange();if(i[rl("0x2a")]>0){const t=i[0][rl("0x48")](e);if(t){i[0]=t;continue}}i[rl("0x22")](e)}t.push([n[rl("0x41")],i])}return t})),this[rl("0x11")](e,rl("0x2b"),((t,e)=>{this[rl("0x11")](e,rl("0x2c"),((t,n,r,i)=>{e[rl("0x2e")]&&(null==r?(this._updateController(i[rl("0x5a")]),this[rl("0x6c")](e,!1)):(this[rl("0x10")](r.head),null==i&&this[rl("0x6c")](e,!0)))})),null!==e[rl("0x3d")]?this[rl("0x10")](e[rl("0x5a")]):this._handleSuggestionControllerDelayed(e,!1)})),this[rl("0x11")](e,rl("0x31"),((t,e,n)=>{this[rl("0x6b")](e,rl("0x2c")),this[rl("0x38")][rl("0xd")](e),this._suggestionToController[rl("0xa")](e)&&this._destroyController(e),n&&this._updateController(n.head)})),this[rl("0x11")](e,rl("0x6a"),((t,e)=>{this[rl("0x10")](e)})),this[rl("0x11")](n,rl("0x3a"),(()=>{this[rl("0x4")]()})),this[rl("0x11")](i,rl("0x3e"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x61")](n))return;const i=e[rl("0x63")](n);this[rl("0x4e")].get(i).view[rl("0xf")]()}),{priority:rl("0x3")})}[rl("0x4")](){const t=this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x9")),e=this[rl("0x24")].plugins.get(rl("0x64")),n=Array[rl("0x36")](t[rl("0x57")],(t=>t[rl("0x2f")]))[rl("0x32")]((t=>this._viewToController[rl("0xa")](t))),r=[];for(const t of n){const e=this[rl("0x5c")][rl("0x42")](t)[rl("0x1e")].getAllAdjacentSuggestions();r[rl("0x22")](...e[rl("0x1a")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=r}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this[rl("0x24")][rl("0x5d")][rl("0x42")](rl("0x19")),o=Jr(t,rl("0x3c"));n.buttonView[rl("0x0")]({tooltip:o,label:o,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[rl("0x27")][rl("0x1c")]("isOn").to(r,rl("0x8")),n[rl("0x27")].on("execute",(()=>{r[rl("0x25")](),this[rl("0x24")][rl("0x43")].view.focus()}));const s=new e.Collection,x=[{type:rl("0x26"),model:{withText:!0,label:o,commandName:rl("0x19")}},{type:rl("0x51")},{type:"button",model:{withText:!0,label:Jr(t,rl("0x55")),commandName:rl("0x30")}},{type:rl("0x56"),model:{withText:!0,label:Jr(t,"Accept all selected suggestions"),commandName:rl("0x37")}},{type:rl("0x56"),model:{withText:!0,label:Jr(t,rl("0x15")),commandName:rl("0x34")}},{type:"button",model:{withText:!0,label:Jr(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:rl("0x51")};if(t.model){const n=new i.ViewModel(t[rl("0x1e")]),r=this[rl("0x24")][rl("0x5d")].get(n[rl("0x28")]);n.bind(rl("0x16"),rl("0x14")).to(r,rl("0x8"),rl("0x14")),e={type:t[rl("0x47")],model:n}}s.add(e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x32")]((t=>null!=t.model))[rl("0x68")]((t=>this[rl("0x24")][rl("0x5d")][rl("0x42")](t[rl("0x1e")][rl("0x28")]))),c=n[rl("0x27")];return c[rl("0x5b")][rl("0x4a")](rl("0x14")),c[rl("0x65")][rl("0x4a")](rl("0x14")),c.actionView[rl("0x1c")](rl("0x14")).to(r,rl("0x14")),c.arrowView.bind(rl("0x14"))[rl("0x40")](a,rl("0x14"),((...t)=>t.some((t=>t)))),n.on(rl("0x25"),(t=>{this[rl("0x24")][rl("0x25")](t.source[rl("0x28")]),this[rl("0x24")][rl("0x43")][rl("0x41")][rl("0xf")]()})),n}_initializeController(t){const e=this.editor,n=e[rl("0x1")],r=e[rl("0x60")][rl("0x42")]("Annotations"),i=e.plugins[rl("0x42")](rl("0x3f")),s=e[rl("0x60")][rl("0x42")](rl("0x53")),x=e.plugins[rl("0x42")](o.Users).me,a=n[rl("0x42")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x60")].get(rl("0x58"));let u,d;this[rl("0x4f")][rl("0xa")](t.id)?(d=this[rl("0x4f")][rl("0x42")](t.id),u=d[rl("0x18")]):(u=new a(e.locale,t,x,{disableComments:this[rl("0x1f")],editorConfig:n[rl("0x42")](rl("0xb")),maxCommentsWhenCollapsed:n[rl("0x42")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[rl("0x42")](rl("0x3b")),maxCommentCharsWhenCollapsed:n.get(rl("0x23")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x42")](rl("0x2"))),CommentView:n[rl("0x42")](rl("0x2d")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[rl("0x45")].on(rl("0x25"),(()=>{e.editing[rl("0x41")][rl("0xf")]()})),u[rl("0x4c")].on(rl("0x25"),(()=>{e[rl("0x43")].view[rl("0xf")]()})),d=r.createAnnotationView(this[rl("0x24")][rl("0x2")],u),d.bind(rl("0x29")).to(u,rl("0x29")),d[rl("0x1c")]("length").to(u),d[rl("0x1c")](rl("0x47")).to(u,rl("0x47"),(t=>rl("0x5f")+t)),this[rl("0x4f")][rl("0x0")](t.id,d));const g=i[rl("0x39")](t[rl("0x17")],u),f=new Gc(e,t,u,g),h=t.getAllAdjacentSuggestions()[rl("0x32")]((t=>t[rl("0x2e")]));u.descriptionParts=e[rl("0x60")].get(rl("0x64"))[rl("0x4d")].getDescriptions(h),this[rl("0x4e")][rl("0x0")](t,f),this[rl("0x5c")][rl("0x0")](u,f);const m=r.createAnnotation({view:d,target:()=>{const n=[],r=t.getAllAdjacentSuggestions()[rl("0x32")]((t=>t.isInContent));for(const t of r)n[rl("0x22")](...t[rl("0x5e")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x43")],n)},type:()=>rl("0x5f")+f.view.type});i[rl("0x44")](u,m),r.add(m),s[rl("0x54")](m)}_destroyController(t){const e=this.editor[rl("0x60")][rl("0x42")]("CommentsRepository"),n=this[rl("0x24")][rl("0x60")][rl("0x42")](rl("0x9")),r=this[rl("0x4e")][rl("0x42")](t),i=r[rl("0x41")],o=n[rl("0x21")](i);e[rl("0x13")](i),o&&n.remove(o),this[rl("0x4e")][rl("0xd")](t),this[rl("0x5c")][rl("0xd")](i),r[rl("0x12")]()}_updateController(t){if(!t[rl("0x2e")]||!this[rl("0x4e")][rl("0xa")](t))return;const e=this.editor.plugins[rl("0x42")]("TrackChangesEditing"),n=this[rl("0x4e")][rl("0x42")](t),r=t[rl("0x50")]();n[rl("0x41")][rl("0x62")]=e[rl("0x4d")][rl("0x49")](r)}[rl("0x12")](){for(const t of this[rl("0x4e")].keys())this[rl("0xe")](t);for(const t of this[rl("0x4f")][rl("0x20")]())t[rl("0x18")][rl("0x12")]();super[rl("0x12")]()}}var ol,sl,xl=["plugins","adapter","get","getSuggestion","addSuggestionData","addSuggestion","editor","Comments","TrackChanges","requires","getSuggestions"];ol=xl,sl=235,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x5")](){return[Ac,il,al("0x3")]}static get pluginName(){return al("0x4")}set[al("0x8")](t){this[al("0x2")][al("0x7")][al("0x9")](Ac).adapter=t}get[al("0x8")](){return this[al("0x2")].plugins.get(Ac)[al("0x8")]}[al("0x1")](t){return this[al("0x2")][al("0x7")][al("0x9")](Ac)[al("0x0")](t)}[al("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[al("0x7")][al("0x9")](Ac)[al("0x6")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[al("0x2")][al("0x7")][al("0x9")](Ac)[al("0xa")](t)}}const ll=["end","editor","init","name","editorCreator","createElement","set","createDocumentFragment","discardAllSuggestions","pluginName","TrackChangesData","document","data","getUser","appendChild","create","div","getDataWithDiscardedSuggestions","map","model","requires","constructor","config","trackChangesData.editorCreator","result","_adapter","trackChangesData","users","Users","get","TrackChangesEditing","function","destroy","track-changes-data-invalid-editor-creator","getFullData","plugins","addUser","TrackChangesDataGetter","reduce"];var ul,dl;ul=ll,dl=445,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=["Pagination"];class hl extends t.Plugin{static get[gl("0x4")](){return[Ac]}static get[gl("0x20")](){return gl("0x21")}[gl("0x19")](){const t=this.editor;if(t[gl("0x6")].define(gl("0x7"),(e=>{const n=t[gl("0x3")].document.getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[gl("0x5")][gl("0x26")](n,e)})),gl("0xf")!=typeof t[gl("0x6")].get(gl("0xa"))[gl("0x1b")])throw new e.CKEditorError(gl("0x11"))}getDataWithAcceptedSuggestions(t){return bl(this[gl("0x18")],!0,t)}[gl("0x1")](t){return bl(this[gl("0x18")],!1,t)}}class ml extends t.Plugin{static get pluginName(){return gl("0x15")}constructor(t){super(t),this[gl("0x8")]=gl("0x17")}[gl("0x19")](){this[gl("0x18")][gl("0x13")][gl("0xd")]("CommentsRepository")[gl("0x9")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[gl("0x18")][gl("0x13")][gl("0xd")](gl("0xe"))._adapter=null}}function pl(t){return void 0!==t.getRootsAttributes}async function bl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r[gl("0x13")].push(Ac,ml),r.rootsAttributes=pl(t)?t.getRootsAttributes():void 0;const i=document[gl("0x1e")](),s=t[gl("0x6")].get(gl("0xa"))[gl("0x1b")],x=await s(r,(()=>function(t){const e=document[gl("0x1c")](gl("0x0"));return t[gl("0x25")](e),e}(i)));!function(t,e){const n=t[gl("0x3")][gl("0x22")].getRootNames()[gl("0x16")](((e,n)=>(e[n]=t[gl("0x23")][gl("0xd")]({rootName:n}),e)),{}),r=t[gl("0x13")].get(gl("0xc"))[gl("0xb")][gl("0x2")]((t=>({id:t.id,name:t[gl("0x1a")]}))),i=t[gl("0x13")][gl("0xd")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),o=e.plugins[gl("0xd")](gl("0xc")),s=e[gl("0x13")][gl("0xd")]("TrackChangesEditing");for(const t of r)o[gl("0x24")](t.id)||o[gl("0x14")](t);o.me||o.useAnonymousUser();for(const t of i)s.addSuggestionData(t);e[gl("0x23")][gl("0x1d")](n)}(t,x),x.execute(e?"acceptAllSuggestions":gl("0x1f"));const a=pl(x)?x[gl("0x12")](n):x.data[gl("0xd")](n);return await x[gl("0x10")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|