@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.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/CHANGELOG.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),o=n(417),s=n(492),x=n(995);const a=["_enabledCommands","commands","_disableUnsupportedCommands","TrackChangesCommand","value","editor","_isEnabledBasedOnSelection","forceDisabled","refresh","clearForceDisabled","has"];var c,l;c=a,l=432,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("0x8")]=e,this[u("0x1")]=!1,this[u("0x5")](),this[u("0x3")]=!1}[u("0x5")](){this.isEnabled=!0}execute(){this[u("0x1")]=!this[u("0x1")],this[u("0x1")]?this._disableUnsupportedCommands():this._enableCommands()}[u("0xa")](){for(const t of this[u("0x2")][u("0x9")][u("0x9")]())t.affectsData&&!this[u("0x8")][u("0x7")](t)&&t[u("0x4")](u("0x0"))}_enableCommands(){for(const t of this[u("0x2")][u("0x9")][u("0x9")]())t.affectsData&&!this[u("0x8")].has(t)&&t[u("0x6")](u("0x0"))}}const g=["_suggestions","model","plugins","_isEnabledBasedOnSelection","get","refresh","acceptSuggestion","track-changes-accept-suggestion-not-found","getRanges","canEditAt","isEnabled","TrackChangesEditing","editor"];var f,m;f=g,m=335,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x3")]=e,this[h("0x8")](),this[h("0x6")]=!1}[h("0x8")](){this[h("0x0")]=!0}execute(t){const n=this[h("0x3")].get(t);if(!n)throw new e.CKEditorError(h("0xa"),this);const i=n[h("0xb")]();this[h("0x2")][h("0x4")][h("0xc")](i)&&this[h("0x2")][h("0x5")][h("0x7")](h("0x1"))[h("0x9")](n)}}const b=["refresh","_isEnabledBasedOnSelection","discardSuggestion","editor","get","execute","getRanges","model","_suggestions","plugins","isEnabled"];var E,_;E=b,_=371,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x3")](),this[T("0x4")]=!1}[T("0x3")](){this[T("0x2")]=!0}[T("0x8")](t){const n=this[T("0x0")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const i=n[T("0x9")]();this.editor[T("0xa")].canEditAt(i)&&this[T("0x6")][T("0x1")][T("0x7")]("TrackChangesEditing")[T("0x5")](n)}}const C=["isInContent","isCollapsed","deletion","isIntersecting","execute","isArray","from","color","end","createPositionAt","push","createRange","createPositionAfter","type","content"," [color ","splice","value","createPositionBefore","change","getRanges","start","next","length","map","isTouching"];var A,k;A=C,k=395,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t[I("0x8")]&&"deletion"!=e[I("0x8")]?-1:I("0x17")!=t[I("0x8")]&&I("0x17")==e.type?1:0))}function v(t,e){let n,i=0;const r=[],o=e.schema;for(;i<t[I("0x12")];){const s=t[i],x=t[i+1];n||(n=e[I("0xd")](s)),S(e,s,x)||(r[I("0x5")](e[I("0x6")](n,o.isObject(s)?e[I("0x7")](s):e[I("0x4")](s,I("0x3")))),n=null),i++}return r}function S(t,e,n){if(!n)return!1;const i=t[I("0x7")](e),r=t[I("0xd")](n);return i[I("0x14")](r)}function N(t,e,n){for(;n[I("0x12")];){const i=n[I("0xb")](0,100);t[I("0xe")]((()=>{for(const t of i)t[I("0x15")]&&e[I("0x19")](t.id)}))}}const L=["isEnabled","isInContent","_suggestions","from","_isEnabledBasedOnSelection","_command","values","refresh","some","model"];var M,w;M=L,w=320,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x2")]=n,this[O("0x7")](),this[O("0x4")]=!1}[O("0x7")](){const t=Array[O("0x3")](this._suggestions[O("0x6")]())[O("0x8")]((t=>t[O("0x1")]));this.isEnabled=this[O("0x5")][O("0x0")]&&t}execute(){const t=R(Array[O("0x3")](this[O("0x2")][O("0x6")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x9")].canEditAt(t))return}N(this.editor[O("0x9")],this[O("0x5")],t)}}const D=["selection","_isEnabledBasedOnSelection","values","model","_command","from","canEditAt","getRanges","isEnabled","document","editor","_suggestions","_selectedSuggestions","refresh"];var B,P;B=D,P=365,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x3")]=e,this._suggestions=n,this[U("0xb")]=new Set,this[U("0xc")](),this[U("0x0")]=!1}[U("0xc")](){const t=this[U("0x9")][U("0x2")][U("0x8")][U("0xd")],e=Array[U("0x4")](this[U("0xa")][U("0x1")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x1")](t[I("0xf")]()),i=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[I("0xf")]())(e[I("0x18")](n)||t[I("0x16")]&&!r.isMultiRange&&r[I("0x11")]&&n[I("0x3")][I("0x14")](e[I("0x10")]))&&i.add(r);return i}(t,e),this[U("0x7")]=this[U("0x3")][U("0x7")]&&!!this[U("0xb")].size}execute(){const t=R(Array[U("0x4")](this._selectedSuggestions));for(const e of t){const t=e[U("0x6")]();if(!this.editor[U("0x2")][U("0x5")](t))return}N(this.editor[U("0x2")],this[U("0x3")],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 $=function(t,e){var n=this.__data__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const it=et||nt||Function("return this")();const rt=it.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var r=xt.call(t);return i&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=it["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=St(t,e);return vt(n)?n:void 0};const Lt=Nt(it,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var i=n.__data__;if(!Lt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ie=Object.prototype.hasOwnProperty;const re=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?it.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Ne=Se?Ae(Se):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),i=!n&&de(t),r=!n&&!i&&be(t),o=!n&&!i&&!r&&Ne(t),s=n||i||r||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||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)&&!mt(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 i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?it.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=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,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,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 i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(it,"DataView");const fn=Nt(it,"Promise");const mn=Nt(it,"Set");const hn=Nt(it,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=it.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var $n=ve&&ve.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const ti=function t(e,n,i,r,o,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=o?i(e,r,o,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=vn(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),Xn(e)?e.forEach((function(r){x.add(t(r,n,i,r,e,s))})):Kn(e)&&e.forEach((function(r,o){x.set(o,t(r,n,i,o,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,o){m&&(r=e[o=r]),re(x,o,t(r,n,i,o,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ri=/^\w*$/;const oi=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(ri.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ai,(function(t,n,i,r){e.push(i?r.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var di=rt?rt.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mi=function(t){return null==t?"":fi(t)};const hi=function(t,e){return ge(t)?t:oi(t,e)?[t]:li(mi(t))};const pi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const bi=function(t,e,n,i){if(!ft(t))return t;for(var r=-1,o=(e=hi(e,t)).length,s=o-1,x=t;null!=x&&++r<o;){var a=pi(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:bi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Ii=function(t,e,n,i,r,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 Ci:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],m=e[u];if(i)var h=s?i(m,f,u,e,t,o):i(f,m,u,t,e,o);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||r(f,t,n,i,o)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const vi=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Si=rt?rt.prototype:void 0,Ni=Si?Si.valueOf:void 0;const Li=function(t,e,n,i,r,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=Ri;case"[object Set]":var a=1&i;if(x||(x=vi),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Ii(x(t),x(e),i,r,o,s);return s.delete(t),l;case"[object Symbol]":if(Ni)return Ni.call(t)==Ni.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,r,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:Mi.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 m=t[l=x[c]],h=e[l];if(i)var p=s?i(h,m,l,e,t,o):i(m,h,l,t,e,o);if(!(void 0===p?m===h||r(m,h,n,i,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 Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,r,o){var s=ge(t),x=ge(e),a=s?Fi:vn(t),c=x?Fi:vn(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Ne(t)?Ii(t,e,n,i,r,o):Li(t,e,a,n,i,r,o);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return o||(o=new Qt),r(m,h,n,i,o)}}return!!d&&(o||(o=new Qt),wi(t,e,n,i,r,o))};const Ui=function t(e,n,i,r,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,r,t,o))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=hi(e,t)).length;null!=t&&n<i;)t=t[pi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=hi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["setAttribute","hasComments","getFirstMarker","accept","nodeAfter","length","removeMarker","getItems","previous","addRange","getMarkerNames","filter","removeAttribute","attributes","removeMarkers","next","change","head","addMarker","_markerNames","_model","isInContent","isMultiRange","getContainedElement","onDiscard","map","getRange","isExternal","subType","end","commentThread","reduce","from","_onAccept","getFirstRange","set","onAccept","getMultiRangeId","type","creator","decorate","add","push","_onAttributesChange","_onDiscard","data","author","authoredAt","addMarkerName","suggestion:","isIntersectingWithRange","getAllAdjacentSuggestions","getRanges","_saved","getMarkers","onAttributesChange","clear","nodeBefore"];var $i,Xi;$i=qi,Xi=180,function(t){for(;--t;)$i.push($i.shift())}(++Xi);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Zi("0x20")]=e.type,this.subType=e.subType||null,this.author=e[Zi("0x28")],this[Zi("0x21")]=e[Zi("0x21")]||e[Zi("0x28")],this[Zi("0x15")]=Boolean(e[Zi("0x7")]&&e.attributes["@external"]),this[Zi("0x27")]=null,this[Zi("0xe")]=t,this[Zi("0x1b")]=e[Zi("0x1e")],this[Zi("0x26")]=e[Zi("0x12")],this._onAttributesChange=e[Zi("0x31")],this[Zi("0xd")]=new Set,this.createdAt=null,this[Zi("0x1d")](Zi("0x29"),null),this[Zi("0x1d")](Zi("0x7"),e.attributes||{}),this[Zi("0x1d")](Zi("0x2"),null),this[Zi("0x1d")](Zi("0x9"),null),this[Zi("0x1d")](Zi("0x18"),null),this.set(Zi("0x2f"),!1),this[Zi("0x22")](Zi("0x37")),this[Zi("0x22")]("discard")}get[Zi("0xb")](){let t=this;for(;t[Zi("0x2")];)t=t[Zi("0x2")];return t}get[Zi("0x35")](){return!!this[Zi("0x18")]&&this.commentThread[Zi("0x39")]>0}get[Zi("0x10")](){return 0!=this._markerNames.size&&6==Array[Zi("0x1a")](this[Zi("0xd")])[0].split(":")[Zi("0x39")]}get[Zi("0xf")](){return null!==this[Zi("0x36")]()}[Zi("0x2a")](t){this[Zi("0xd")][Zi("0x23")](t)}[Zi("0x4")](){return Array[Zi("0x1a")](this[Zi("0xd")])}[Zi("0x30")](){return this[Zi("0x4")]()[Zi("0x13")]((t=>this[Zi("0xe")].markers.get(t)))[Zi("0x5")]((t=>t))}[Zi("0x36")](){return this[Zi("0x30")]()[0]||null}removeMarkers(){this[Zi("0xe")].change((t=>{for(const e of this.getMarkers())t[Zi("0x0")](e)})),this._markerNames[Zi("0x32")]()}removeMarker(t){this[Zi("0xe")][Zi("0xa")]((e=>{e[Zi("0x0")](t)})),this[Zi("0xd")].delete(t)}[Zi("0x3")](t){const e=Zi("0x2b")+this[Zi("0x20")]+":"+this[Zi("0x16")]+":"+this.id+":"+this[Zi("0x21")].id+":"+Yi[Zi("0x1f")]();this[Zi("0x2a")](e),this[Zi("0xe")][Zi("0xa")]((n=>{n[Zi("0xc")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zi("0x2c")](t){for(const e of this[Zi("0x2e")]())if(e.isIntersecting(t))return!0;return!1}[Zi("0x2e")](){return this[Zi("0x30")]()[Zi("0x13")]((t=>t[Zi("0x14")]()))}[Zi("0x1")](){return this[Zi("0x2e")]()[Zi("0x19")](((t,e)=>[...t,...e[Zi("0x1")]()]),[])}[Zi("0x1c")](){var t;return(null===(t=this[Zi("0x36")]())||void 0===t?void 0:t[Zi("0x14")]())||null}[Zi("0x11")](){const t=this[Zi("0x2e")]();if(1!=t[Zi("0x39")])return null;const e=t[0],n=e.start[Zi("0x38")],i=e[Zi("0x17")][Zi("0x33")];return n instanceof s.Element?n!=i?null:n:null}[Zi("0x37")](){this[Zi("0x1b")](this[Zi("0x2e")](),this.data,this[Zi("0x7")]),this[Zi("0x8")]()}discard(){this._onDiscard(this[Zi("0x2e")](),this[Zi("0x27")],this.attributes),this[Zi("0x8")]()}[Zi("0x2d")](){const t=[];let e=this[Zi("0xb")];for(;e;)t[Zi("0x24")](e),e=e[Zi("0x9")];return t}[Zi("0x34")](t,e){const n=ei(this.attributes);Ei(n,t,e),ji(n,this[Zi("0x7")])||(this[Zi("0x7")]=n,this[Zi("0x25")](n))}[Zi("0x6")](t){const e=ei(this[Zi("0x7")]);Ki(e,t),ji(e,this[Zi("0x7")])||(this[Zi("0x7")]=e,this[Zi("0x25")](this[Zi("0x7")]))}toJSON(){return{id:this.id,type:this[Zi("0x16")]?this[Zi("0x20")]+":"+this[Zi("0x16")]:this[Zi("0x20")],authorId:this[Zi("0x21")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Zi("0x27")],attributes:this[Zi("0x7")]}}static[Zi("0x1f")](){return(0,e.uid)().substr(1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["isEqual","get","_customCallbacks","match","map","getWalker","insertion","data","name","$1 $2","getDescriptions","element","replace","isEmpty","skip","*Change to:* %0","_itemLabelsCallbacks","*Remove:* %0","pop","type","addObject","removeFormat","push","deletion","addContainer","attribute","_handleAttributeSuggestionDescription","softBreak","add","checkChild","_handleInsertRemoveSuggestionDescription","EmptyContainer","has","$textProxy","isInContent","text","removeObject","set","ELEMENT_SPACE","removeEmptyContainer","end","_locale","_handleCustomCallbackDescription","_handleRenameSuggestionDescription","_addDescriptionItems","length","getFirstRange","matchingCallback","addFormat","_itemLabels","indexOf","$text","subType","*Insert:* %0","newValue","getItemLabel","item","Container","remove","*Set format:* %0","_resolveDescriptionItems","_attributeLabels","Object","_schema","addEmptyContainer","*Remove format:* %0","join","elementEnd","*Split:* %0","quantity","previousSibling","start","isObject","key","nodeAfter","format"];var tr,er;tr=Qi,er=241,function(t){for(;--t;)tr.push(tr.shift())}(++er);const nr=function(t,e){return Qi[t-=0]};class ir{constructor(t,e){this[nr("0x41")]=[],this[nr("0x24")]=new Map,this._itemLabelsCallbacks=[],this._attributeLabels=new Map,this._schema=t,this._locale=e}[nr("0x49")](t){const e=[],n=new Set,i=new Set;for(let r=0;r<t[nr("0x20")];r++){const o=t[r];if(!o[nr("0x15")])continue;const s=this[nr("0x1d")](o);if(s){if(null!=o[nr("0x27")]){if(n.has(o[nr("0x27")]))continue;n[nr("0xf")](o[nr("0x27")])}e[nr("0x9")](s)}else if(nr("0xc")!=o[nr("0x6")])nr("0x45")!=o.type&&nr("0xa")!=o[nr("0x6")]||this[nr("0x11")](e,o,t[r+1]);else{const t=o[nr("0x46")][nr("0x3c")];if(i.has(t))continue;i[nr("0xf")](o[nr("0x46")][nr("0x3c")]),t==mc?this[nr("0x1e")](e,o):this[nr("0xd")](e,o)}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[nr("0x41")][nr("0x9")](t)}registerElementLabel(t,n,i=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[nr("0x3")],{matchingCallback:t,label:n,priority:i}):this[nr("0x24")][nr("0x18")](t,n)}registerAttributeLabel(t,e){this[nr("0x30")].set(t,e)}[nr("0x2a")](t,e=1){let n;for(const e of this[nr("0x3")])if(e[nr("0x22")](t)){n=e.label;break}return n||(n=this[nr("0x24")].get(t[nr("0x47")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[nr("0x47")]}[nr("0x1f")](t,e){const n=e[nr("0x21")]()[nr("0x44")](),i=nr("0x45")==e[nr("0x6")]?nr("0xf"):"remove";for(const e of n){const r=e.item,o=t[t[nr("0x20")]-1];if(r.is(nr("0x14")))o&&o.type[nr("0x25")](nr("0x2c"))>-1&&t[nr("0x5")](),o&&nr("0x16")==o[nr("0x6")]?o[i]+=r[nr("0x46")]:t.push({type:nr("0x16"),add:nr("0xf")==i?r[nr("0x46")]:"",remove:nr("0x2d")==i?r.data:""});else if(this[nr("0x32")][nr("0x3b")](r)){const s=r;if(o&&o[nr("0x6")][nr("0x25")](nr("0x2c"))>-1&&t[nr("0x5")](),"elementEnd"==e[nr("0x6")])continue;o&&o.type==i+nr("0x31")&&o[nr("0x4a")].name==s.name?o[nr("0x38")]++:t.push({type:i+nr("0x31"),element:s,quantity:1}),n[nr("0x1")]((t=>!("elementEnd"==t[nr("0x6")]&&t[nr("0x2b")]==r)))}else if(this[nr("0x32")][nr("0x10")](r,nr("0x26"))||r.is(nr("0x4a"),nr("0xe"))){const n=r;if(nr("0xf")==i&&"elementStart"==e.type||nr("0x2d")==i&&nr("0x36")==e[nr("0x6")])continue;if(o&&-1==o[nr("0x6")][nr("0x25")]("Container")){nr("0x16")==o.type&&(o[i]+="\n");continue}let s;if(s=nr("0xf")==i?n.nextSibling&&!this._schema[nr("0x3b")](n.nextSibling)?n.nextSibling:null:n[nr("0x39")]&&!this[nr("0x32")][nr("0x3b")](n[nr("0x39")])?n[nr("0x39")]:null,n.isEmpty||s&&s[nr("0x0")]){const e=s&&s[nr("0x0")]?s:n;o&&o[nr("0x6")]==i+nr("0x12")&&o[nr("0x4a")][nr("0x47")]==e.name?o[nr("0x38")]++:t[nr("0x9")]({type:i+"EmptyContainer",element:e,quantity:1})}else t[nr("0x9")]({type:i+nr("0x2c"),element:n})}}}[nr("0x2f")](t){const e=this[nr("0x1c")],n=[],i=[],r=[];for(const o of t)switch(o[nr("0x6")]){case"text":if(o.add=o[nr("0xf")][nr("0x4b")](/(\S)\u000A+(\S)/g,nr("0x48"))[nr("0x4b")](/\u000A/g,""),o.remove=o[nr("0x2d")][nr("0x4b")](/(\S)\u000A+(\S)/g,nr("0x48"))[nr("0x4b")](/\u000A/g,""),""!=o.add&&""!=o[nr("0x2d")]){n[nr("0x9")]({type:nr("0x4b"),content:Ji(e,"REPLACE_TEXT",['"'+o.remove+'"','"'+o[nr("0xf")]+'"'])});continue}if(null!=o[nr("0xf")][nr("0x42")](/^ +$/)){n[nr("0x9")]({type:nr("0x45"),content:Ji(e,nr("0x28"),Ji(e,"ELEMENT_SPACE",o[nr("0xf")][nr("0x20")]))});continue}if(null!=o[nr("0x2d")][nr("0x42")](/^ +$/)){n.push({type:nr("0xa"),content:Ji(e,nr("0x4"),Ji(e,nr("0x19"),o.remove[nr("0x20")]))});continue}if(""!=o[nr("0xf")]){n[nr("0x9")]({type:nr("0x45"),content:Ji(e,nr("0x28"),'"'+o[nr("0xf")]+'"')});continue}n[nr("0x9")]({type:nr("0xa"),content:Ji(e,nr("0x4"),'"'+o.remove+'"')});continue;case nr("0x33"):case nr("0x7"):n.push({type:nr("0x45"),content:Ji(e,"*Insert:* %0",this[nr("0x2a")](o[nr("0x4a")],o[nr("0x38")]))});continue;case nr("0x1a"):case nr("0x17"):n.push({type:nr("0xa"),content:Ji(e,nr("0x4"),this[nr("0x2a")](o.element,o[nr("0x38")]))});continue;case nr("0xb"):n.push({type:"insertion",content:Ji(e,nr("0x37"),this[nr("0x2a")](o.element,o[nr("0x38")]))});continue;case"removeContainer":n[nr("0x9")]({type:nr("0xa"),content:Ji(e,"*Merge:* %0",this[nr("0x2a")](o[nr("0x4a")],o[nr("0x38")]))});continue;case nr("0x23"):i[nr("0x9")](o.key);continue;case"removeFormat":r[nr("0x9")](o[nr("0x3c")]);continue;default:n.push(o)}if(i[nr("0x20")]){const t=i[nr("0x43")]((t=>this[nr("0x30")][nr("0x13")](t)?this[nr("0x30")][nr("0x40")](t):t))[nr("0x35")](", ");n[nr("0x9")]({type:nr("0x3e"),content:Ji(this[nr("0x1c")],nr("0x2e"),t)})}if(r[nr("0x20")]){const t=r[nr("0x43")]((t=>this[nr("0x30")][nr("0x13")](t)?this[nr("0x30")].get(t):t)).join(", ");n[nr("0x9")]({type:nr("0x3e"),content:Ji(this._locale,nr("0x34"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[nr("0x41")]){const n=e(t);if(n&&nr("0x6")in n)return n}}[nr("0xd")](t,e){const n=e[nr("0x46")],i=void 0===n[nr("0x29")]?nr("0x8"):nr("0x23");t[nr("0x9")]({type:i,key:n[nr("0x3c")]})}[nr("0x1e")](t,e){t.push({type:nr("0x3e"),content:Ji(this[nr("0x1c")],nr("0x2"),this[nr("0x2a")](e[nr("0x21")]()[nr("0x3a")][nr("0x3d")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[nr("0x1f")](t,e),n&&n[nr("0x21")]()&&!e[nr("0x21")]()[nr("0x1b")][nr("0x3f")](n.getFirstRange()[nr("0x3a")])){const n=t[t[nr("0x20")]-1],i=nr("0x45")==e.type?"add":nr("0x2d");n&&nr("0x16")==n[nr("0x6")]&&(n[i]+="\n")}}}const rr=["editor","get","showAIAssistant","afterInit","commands","plugins"];var or,sr;or=rr,sr=218,function(t){for(;--t;)or.push(or.shift())}(++sr);const xr=function(t,e){return rr[t-=0]};class ar extends t.Plugin{[xr("0x1")](){const t=this[xr("0x4")],e=t[xr("0x3")][xr("0x5")]("TrackChangesEditing");t[xr("0x2")][xr("0x5")]("showAIAssistant")&&e.enableCommand(xr("0x0"))}}const cr=["commandName","FORMAT_JUSTIFY_TEXT","left","get","registerAttributeLabel","FORMAT_ALIGNMENT","_enableDefaultAttributesIntegration","afterInit","alignment","AlignmentEditing","registerDescriptionCallback","*Format:* %0","type","FORMAT_ALIGN_TO_CENTER","commandParams","locale","has","editor","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","justify","_descriptionFactory","value","right","TrackChangesEditing","plugins"];var lr,ur;lr=cr,ur=234,function(t){for(;--t;)lr.push(lr.shift())}(++ur);const dr=function(t,e){return cr[t-=0]};class gr extends t.Plugin{[dr("0x10")](){const t=this[dr("0x1a")],e=t[dr("0x18")];if(!t[dr("0x8")][dr("0x19")](dr("0x12")))return;const n=t[dr("0x8")][dr("0xc")](dr("0x7"));n[dr("0xf")](dr("0x11"),[],[dr("0x11")]),n._descriptionFactory[dr("0xd")](dr("0x11"),Ji(e,dr("0xe"))),this[dr("0x2")]()}[dr("0x2")](){const t=this.editor,e=t[dr("0x18")];t[dr("0x8")][dr("0xc")](dr("0x7"))[dr("0x4")][dr("0x13")]((t=>{if("formatBlock"!=t[dr("0x15")])return;const{data:n}=t;if(n&&dr("0x11")==n[dr("0x9")]){const t=n[dr("0x17")][0][dr("0x5")];return{type:"format",content:Ji(e,dr("0x14"),function(t){switch(t){case dr("0xb"):return Ji(e,dr("0x1"));case dr("0x6"):return Ji(e,dr("0x0"));case"center":return Ji(e,dr("0x16"));case dr("0x3"):return Ji(e,dr("0xa"))}}(t))}}}))}}const fr=["FORMAT_SUPERSCRIPT","_descriptionFactory","superscript","FORMAT_CODE","commandName","subscript","FORMAT_ITALIC","get","SubscriptEditing","_registerLegacyDescription","strikethrough","FORMAT_","plugins","slice","editor","registerAttributeLabel","TrackChangesEditing","BoldEditing","registerDescriptionCallback","format","*Format:* %0","commandParams","FORMAT_STRIKETHROUGH","formatInline","ItalicEditing","UnderlineEditing","toLowerCase","underline","has","code","type","italic","*Remove format:* %0","FORMAT_SUBSCRIPT","FORMAT_UNDERLINE","SuperscriptEditing","toUpperCase","locale","forceValue"];var mr,hr;mr=fr,hr=122,function(t){for(;--t;)mr.push(mr.shift())}(++hr);const pr=function(t,e){return fr[t-=0]},br=[pr("0xc"),pr("0x13"),pr("0x14"),"CodeEditing","StrikethroughEditing",pr("0x3"),pr("0x1e")];class Er extends t.Plugin{afterInit(){const t=this[pr("0x9")],e=t[pr("0x7")][pr("0x2")](pr("0xb")),n=t.locale;for(const i of br){if(!t[pr("0x7")][pr("0x17")](i))continue;const r=i[pr("0x8")](0,-7)[pr("0x15")](),o=pr("0x6")+r[pr("0x1f")]();e._enableDefaultAttributesIntegration(r,[r]),e[pr("0x23")][pr("0xa")](r,Ji(n,o))}this[pr("0x4")]()}[pr("0x4")](){const t=this[pr("0x9")],e=t[pr("0x20")],n=t[pr("0x7")][pr("0x2")](pr("0xb"));function i(t,i){n[pr("0x23")][pr("0xd")]((n=>{if(pr("0x12")!=n[pr("0x19")])return;const{data:r}=n;return r&&r[pr("0x26")]===t?r[pr("0x10")][0][pr("0x21")]?{type:pr("0xe"),content:Ji(e,pr("0xf"),i)}:{type:pr("0xe"),content:Ji(e,pr("0x1b"),i)}:void 0}))}i("bold",Ji(e,"FORMAT_BOLD")),i(pr("0x1a"),Ji(e,pr("0x1"))),i(pr("0x16"),Ji(e,pr("0x1d"))),i(pr("0x18"),Ji(e,pr("0x25"))),i(pr("0x5"),Ji(e,pr("0x11"))),i(pr("0x0"),Ji(e,pr("0x1c"))),i(pr("0x24"),Ji(e,pr("0x22")))}}const _r=["*Set format:* %0","document","blockQuote","get","registerDescriptionCallback","forceValue","afterInit","name","markBlockFormat","_descriptionFactory","schema","format","commandName","$root","from","has","BlockQuoteEditing","commandParams","selection","model","value","*Remove format:* %0","editor","getSelectedBlocks","checkChild","parent","plugins"];var Tr,yr;Tr=_r,yr=310,function(t){for(;--t;)Tr.push(Tr.shift())}(++yr);const Cr=function(t,e){return _r[t-=0]};class Ar extends t.Plugin{[Cr("0x14")](){const t=this[Cr("0x9")],e=t.locale;if(!t[Cr("0xd")][Cr("0x2")](Cr("0x3")))return;const n=t[Cr("0xd")][Cr("0x11")]("TrackChangesEditing"),i=this[Cr("0x9")].commands[Cr("0x11")](Cr("0x10"));n.enableCommand(Cr("0x10"),((e,r={})=>{const o=this.editor[Cr("0x6")][Cr("0xf")][Cr("0x5")],s=r&&void 0!==r.forceValue?r[Cr("0x13")]:!i[Cr("0x7")];let x=[];if(s){const e=Array.from(o[Cr("0xa")]()).filter((t=>kr(t)||function(t,e){const n=e[Cr("0xb")](t.parent,Cr("0x10")),i=e[Cr("0xb")]([Cr("0x0"),Cr("0x10")],t);return n&&i}(t,this[Cr("0x9")][Cr("0x6")][Cr("0x18")])));x=v(e,t[Cr("0x6")])}else{const e=Array[Cr("0x1")](o.getSelectedBlocks()).filter((t=>kr(t)));x=v(e,t.model)}t[Cr("0x6")].change((()=>{for(const t of x)n[Cr("0x16")](t,{commandName:Cr("0x10"),commandParams:[{forceValue:s}]})}))})),n[Cr("0x17")][Cr("0x12")]((t=>{const{data:n}=t;if(n&&Cr("0x10")==n[Cr("0x1a")]){const t=Ji(e,"ELEMENT_BLOCK_QUOTE");return n[Cr("0x4")][0].forceValue?{type:"format",content:Ji(e,Cr("0xe"),t)}:{type:Cr("0x19"),content:Ji(e,Cr("0x8"),t)}}}))}}function kr(t){return"blockQuote"==t[Cr("0xc")][Cr("0x15")]}const Ir=["get","enableCommand","afterInit","ckbox","editor","commands","plugins"];var Rr,vr;Rr=Ir,vr=243,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Sr=function(t,e){return Ir[t-=0]};class Nr extends t.Plugin{[Sr("0x4")](){const t=this[Sr("0x6")];t[Sr("0x0")][Sr("0x2")](Sr("0x5"))&&t[Sr("0x1")][Sr("0x2")]("TrackChangesEditing")[Sr("0x3")](Sr("0x5"))}}const Lr=["config","indentCodeBlock","commandParams","rootElement","enableCommand","schema","from","languages","plugins","getSelectedBlocks","registerDescriptionCallback","format","has","locale","forceValue","language","commandName","codeBlock","afterInit","formatBlock","get","toLowerCase","TrackChangesEditing","blockName","find","label","model","filter","name","parent","ELEMENT_CODE_BLOCK","type","registerElementLabel","selection","isLimit","*Remove format:* %0","change"];var Mr,wr;Mr=Lr,wr=498,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Lr[t-=0]};class Fr extends t.Plugin{[Or("0x1")](){const t=this.editor;if(!t[Or("0x1c")][Or("0x20")]("CodeBlock"))return;const e=t.plugins[Or("0x3")](Or("0x5")),n=t[Or("0x21")],i=t[Or("0x14")][Or("0x3")](Or("0x0"))[Or("0x1b")],r=t.commands[Or("0x3")](Or("0x0"));e[Or("0x18")](Or("0x15")),e.enableCommand("outdentCodeBlock"),e[Or("0x18")](Or("0x0"),((n,o={})=>{const s=t[Or("0x9")],x=t[Or("0x9")].document[Or("0x10")],a=o&&void 0!==o[Or("0x22")]?o[Or("0x22")]:!r.value;let c;o[Or("0x23")]||(o[Or("0x23")]=i[0][Or("0x23")]),c=a?Array[Or("0x1a")](x[Or("0x1d")]())[Or("0xa")]((t=>{return Dr(t)||(e=t,n=s[Or("0x19")],!e.is(Or("0x17"))&&!n[Or("0x11")](e)&&n.checkChild(e[Or("0xc")],Or("0x0")));var e,n})):Array[Or("0x1a")](x.getSelectedBlocks())[Or("0xa")]((t=>Dr(t)));const l=v(c,s);s[Or("0x13")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Or("0x0"),commandParams:[{...o,forceValue:a}],formatGroupId:Or("0x6")})}))})),e._descriptionFactory[Or("0xf")](Or("0x0"),(t=>Ji(n,Or("0xd"),t))),e._descriptionFactory[Or("0x1e")]((t=>{if(Or("0x2")!=t[Or("0xe")])return;const e=n.t,{data:r}=t;if(!r||"codeBlock"!=r[Or("0x24")])return;const o=r[Or("0x16")][0].language,s=e(i[Or("0x7")]((t=>t[Or("0x23")]===o))[Or("0x8")])[Or("0x4")]();return r[Or("0x16")][0].forceValue?{type:Or("0x1f"),content:Ji(n,"*Set format:* %0",Ji(n,Or("0xd"),1)+" ("+s+")")}:{type:"format",content:Ji(n,Or("0x12"),Ji(n,Or("0xd"),1))}}))}}function Dr(t){return Or("0x0")==t[Or("0xb")]}const Br=["plugins","has","afterInit","enableCommand","CommentsEditing","get","editor","addCommentThread","TrackChangesEditing"];var Pr,Ur;Pr=Br,Ur=485,function(t){for(;--t;)Pr.push(Pr.shift())}(++Ur);const jr=function(t,e){return Br[t-=0]};class Gr extends t.Plugin{[jr("0x3")](){const t=this[jr("0x7")];t[jr("0x1")][jr("0x2")](jr("0x5"))&&t[jr("0x1")][jr("0x6")](jr("0x0"))[jr("0x4")](jr("0x8"))}}var Vr=n(181);const Hr=["createUIElement","test","listIndent","markerRange","getAttribute","getWalker","isContent","start","mapper","get","element","hasAttribute","createRangeOn","writer","name","parent","nextSibling","isBlock","toViewElement","addClass","push","previousPosition","markerName","model","ck-suggestion-marker--active","isLimit","includes","getItems","insert","listItem","elementEnd","bindElementToMarker","item","isAtEnd","type","toViewPosition","schema","getCustomProperty"];var zr,Wr;zr=Hr,Wr=444,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Kr=function(t,e){return Hr[t-=0]};function qr(t,e,n){const i=[];for(const r of e[Kr("0x1")]())r[Kr("0x17")](t)&&i.push(n[Kr("0x18")](r));return i}function $r(t,e,{showActiveMarker:n=!0}={}){const i=t.plugins[Kr("0x15")]("TrackChangesEditing");return(r,o,s)=>{if(!s.consumable[Kr("0xd")](o[Kr("0xf")],r[Kr("0x1a")]))return;const x=o[Kr("0xf")][Kr("0x11")](),a=o[Kr("0xf")][Kr("0x13")],c=t[Kr("0x23")][Kr("0xa")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Kr("0x6")];d=d||c[Kr("0x12")](e);const n=s[Kr("0x14")][Kr("0x1e")](e);if(n&&n[Kr("0xb")]("addHighlight"))return;Kr("0x4")==t[Kr("0x8")]&&c[Kr("0x1d")](e)&&!c[Kr("0x25")](e)&&(e.nextSibling||a[Kr("0x7")]?l&&l[Kr("0x1b")]==e||(l=e,f(t[Kr("0x21")]),g=!0):u=u||t[Kr("0x21")])}function f(t){const r=s.writer[Kr("0xc")]("span",{class:"ck-suggestion-marker-"+e}),x=s[Kr("0x14")][Kr("0x9")](t);n&&i.activeMarkers[Kr("0x0")](o[Kr("0x22")])&&s[Kr("0x19")][Kr("0x1f")](Kr("0x24"),r),s.writer[Kr("0x2")](x,r),s[Kr("0x14")][Kr("0x5")](r,o[Kr("0x22")])}d||g||!u||f(u)}}const Xr=["getFirstRange","model","uiElement","editor","modifySelection","init","isCollapsed","fromRange","options","root","remove","setSelection","high","enableCommand","createRange","addMarker:suggestion:deletion","merge","editing","deleteForward","lock","removeMarker:suggestion:deletion","markerName","rootName","mapper","buffer","unlock","bind","writer","batch","get","unbindElementFromMarkerName","createSelection","showSuggestionHighlights","downcastDispatcher","commands","selection","plugins","requires","start","document","forward","data","unit","TrackChangesEditing","end","detach"];var Zr,Yr;Zr=Xr,Yr=245,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{static get[Jr("0x16")](){return[Vr.Delete]}[Jr("0x24")](){const t=this[Jr("0x22")],e=t[Jr("0x15")][Jr("0xe")](Jr("0x1c"));e.enableCommand("delete");const n=t[Jr("0x13")][Jr("0xe")](Jr("0x3"));e[Jr("0x2c")](Jr("0x3"),((e,i={})=>{const r=t[Jr("0x20")][Jr("0x10")](t[Jr("0x20")][Jr("0x18")][Jr("0x14")]);r[Jr("0x25")]&&t[Jr("0x20")][Jr("0x23")](r,{direction:Jr("0x19"),unit:i[Jr("0x1b")]});const o=r[Jr("0x1f")](),x=s.LiveRange[Jr("0x26")](o);let a;e(i),a="$graveyard"==x[Jr("0x28")][Jr("0x7")]?t[Jr("0x20")][Jr("0x2d")](o.start):t.model.createRange(x[Jr("0x17")],x[Jr("0x1d")]),x[Jr("0x1e")](),t[Jr("0x20")].enqueueChange(n[Jr("0x9")][Jr("0xd")],(t=>{n[Jr("0x9")][Jr("0x4")](),t[Jr("0x2a")](t.createRange(a[Jr("0x1d")])),n[Jr("0x9")][Jr("0xa")]()}))})),t[Jr("0x2")].downcastDispatcher.on(Jr("0x0"),$r(t,Jr("0x1")),{priority:"high"}),t[Jr("0x1a")][Jr("0x12")].on("addMarker:suggestion:deletion",((e,n,i)=>{i[Jr("0x27")][Jr("0x11")]&&$r(t,"merge",{showActiveMarker:!1})[Jr("0xb")](this)(e,n,i)}),{priority:Jr("0x2b")}),t[Jr("0x2")][Jr("0x12")].on(Jr("0x5"),((t,e,n)=>{const i=n.mapper.markerNameToElements(e[Jr("0x6")]);if(i)for(const t of i)t.is(Jr("0x21"))&&(n[Jr("0x8")][Jr("0xf")](t,e[Jr("0x6")]),n[Jr("0xc")][Jr("0x29")](t))}),{priority:Jr("0x2b")})}}const to=["markBlockFormat","detach","type","has","before","isFirstBlockOfListItem","afterInit","editor","format","nodeAfter","createRange","length","enableCommand","indentList","change","commandParams","from","selection","listItemId","outdentList","mergeListItemForward","getRanges","nextSibling","TrackChangesEditing","ELEMENT_LIST_ITEM","_suggestionFactory","config","numberedList","execute","plugins","_descriptionFactory","commandName","setSelection","listType","locale","registerElementLabel","getFirstRange","commands","start","getAttribute","*Format:* insert into %0","*Format:* remove from %0","accept","splitListItemAfter","paragraph","get","deletion","bulletedList","createPositionAt","add","getSelectedBlocks","DocumentListEditing","push","after","schema","formatInline","documentList","hasAttribute","registerDescriptionCallback","value","ELEMENT_","map","list.multiBlock","forceValue","formatBlock","findIndex","*Merge:* %0","expandListBlocksToCompleteList","containsItem","markMultiRangeBlockFormat","model","DocumentListUtils","*Change to:* %0","slice","document","next","splitListItemBefore","end","previousSibling","ELEMENT_NUMBERED_LIST","isObject"];var eo,no;eo=to,no=193,function(t){for(;--t;)eo.push(eo.shift())}(++no);const io=function(t,e){return to[t-=0]};class ro extends t.Plugin{[io("0x38")](){const t=this[io("0x39")];if(!t[io("0x4f")][io("0x35")](io("0x14")))return;const e=t[io("0x3")],n=t[io("0x4f")].get(io("0x49")),i=t.plugins.get(io("0x28"));function r(e){return()=>{const r=t.commands.get(e);if(r[io("0x1c")]&&!t[io("0x4c")].get(io("0x1f")))return void t[io("0x4e")](io("0xd"),{});let o=Array.from(t[io("0x27")].document.selection[io("0x13")]());if(a(e)){o=i[io("0x24")](o);const t=[];for(const e of o)i[io("0x37")](e)&&t[io("0x15")](e);o=t}t[io("0x27")][io("0x40")]((()=>{n[io("0x26")](o,{commandName:e,commandParams:[{forceValue:!r[io("0x1c")]}],formatGroupId:io("0x2")},[],"documentList")}))}}function o(e){return()=>{const i=function(t){let e=Array[io("0x42")](t);const n=e[io("0x22")]((t=>!t[io("0x1a")](io("0x44"))));return n>-1&&(e=e[io("0x2a")](0,n)),e}(t.model.document[io("0x43")][io("0x13")]()),r=i[i[io("0x3d")]-1],o=t[io("0x27")][io("0x17")][io("0x31")](r)?io("0x16"):io("0x2e"),s=t[io("0x27")][io("0x3c")](t[io("0x27")][io("0x11")](i[0],io("0x36")),t[io("0x27")][io("0x11")](r,o));t[io("0x27")][io("0x40")]((()=>{n[io("0x32")](s,{commandName:e,commandParams:[],formatGroupId:io("0x2")},function(t){const e=new Set;for(const n of t){let t=n[io("0x48")];for(;t&&t[io("0x8")]("listIndent")>n[io("0x8")]("listIndent");)e[io("0x12")](t),t=t[io("0x48")]}return Array[io("0x42")](e)}(i))}))}}function x(e){return()=>{const i=t.model[io("0x2b")][io("0x43")][io("0x13")]()[io("0x2c")]()[io("0x1c")],r=t.model.createPositionAt(i,io("0x36")),o=t[io("0x27")][io("0x11")](i,0),s=t.model[io("0x3c")](r,o);t.model[io("0x40")]((()=>{n[io("0x32")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[io("0x6")][io("0xe")]("bulletedList")[io("0x1c")],i=t.commands[io("0xe")]("numberedList")[io("0x1c")];return io("0x4d")===e?n:i}n[io("0x3e")](io("0x4d"),r(io("0x4d"))),n[io("0x3e")](io("0x10"),r(io("0x10"))),n[io("0x3e")]("indentList",o(io("0x3f"))),n.enableCommand(io("0x45"),o("outdentList")),n[io("0x3e")]("splitListItemAfter",x(io("0xc"))),n[io("0x3e")](io("0x2d"),x("splitListItemBefore")),n._descriptionFactory[io("0x4")]((function(e){const n=!t[io("0x27")].schema.isObject(e),i=e[io("0x2f")],r=e.nextSibling,o=e[io("0x8")](io("0x44")),s=!i||i.getAttribute(io("0x44"))!==o,x=!r||r[io("0x8")](io("0x44"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Ji(e,"ELEMENT_LIST_ITEM",t))),n[io("0x50")][io("0x1b")]((function(n){if(io("0x21")!=n[io("0x34")]&&io("0x18")!=n[io("0x34")])return;const{data:i}=n;if(!i)return;let r,o,s,x;switch(i[io("0x0")]){case io("0x10"):s=i[io("0x41")][0][io("0x20")],x=a(i[io("0x0")]),r=io(s?"0x9":"0xa"),!x&&t[io("0x4c")][io("0xe")]("list.multiBlock")||(r=io("0x29")),o={type:io("0x3a"),content:Ji(e,r,Ji(e,"ELEMENT_BULLETED_LIST"))};break;case"numberedList":s=i[io("0x41")][0].forceValue,x=a(i.commandName),r=io(s?"0x9":"0xa"),!x&&t.config[io("0xe")](io("0x1f"))||(r=io("0x29")),o={type:io("0x3a"),content:Ji(e,r,Ji(e,io("0x30")))};break;case io("0x3f"):r="*Indent:* %0",o={type:io("0x3a"),content:Ji(e,r,Ji(e,"ELEMENT_LIST_ITEM"))};break;case io("0x45"):r=function(t){const e=t[io("0x5")]();let n=e[io("0x7")][io("0x3b")];for(;n&&e[io("0x25")](n);){if(n[io("0x8")]("listIndent")>0)return!1;n=n[io("0x48")]}return!0}(n)?Ji(e,io("0xa"),Ji(e,function(t){const e=t[io("0x5")]()[io("0x7")].nodeAfter;return io("0x1d")+e.getAttribute("listType").toUpperCase()+"_LIST"}(n))):Ji(e,"*Outdent:* %0",Ji(e,io("0x4a"))),o={type:"format",content:r};break;case"mergeListItemBackward":case io("0x46"):!1===i.multipleBlocks&&(r=io("0x23"),o={type:io("0xf"),content:Ji(e,r,Ji(e,"ELEMENT_LIST_ITEM"))})}return o})),n[io("0x4b")].registerCustomCallback(io("0x21"),io("0x19"),io("0xb"),(function(e,n){const i=[];for(let n of e)n[io("0x7")][io("0x3b")]===n[io("0x2e")].parent&&(n=t.model[io("0x3c")](t[io("0x27")][io("0x11")](n[io("0x7")][io("0x3b")],0))),i[io("0x15")](n);t.model[io("0x40")]((e=>{const r=t[io("0x27")].document[io("0x43")],o=Array[io("0x42")](r[io("0x47")]())[io("0x1e")]((t=>s.LiveRange.fromRange(t)));e[io("0x1")](i),t.commands[io("0xe")](n[io("0x0")]).refresh(),n[io("0x41")][io("0x15")]({forceDefaultExecution:!0}),t.execute(n[io("0x0")],...n.commandParams),e[io("0x1")](o);for(const t of o)t[io("0x33")]()}))}))}}const oo=["formatBlock","registerDescriptionCallback","expandListBlocksToCompleteList","type","handleListStyleCommand","plugins","push","handleListReversedCommand","DocumentListUtils","*Format:* set order to regular","_LIST_","replace","enableCommand","ELEMENT_","afterInit","_descriptionFactory","listStart","getSelectedBlocks","model","get","handleListStartCommand","format","isFirstBlockOfListItem","commandName","commandParams","DocumentListPropertiesUtils","isListItemBlock","_getTranslationKeyForListStyle","formatInline","listReversed","getAttribute","from","TrackChangesEditing","startIndex","listStyle","*Change to:* %0","listType","numbered","editor","filter","_getSuggestionBlocks","*Format:* set order to reversed","_getSuggestionBlocksForListStyle","change","markMultiRangeBlockFormat","reversed","handleDescriptions","selection","bind","list.properties","toUpperCase","document"];var so,xo;so=oo,xo=279,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x2f")](){if(!this[ao("0x13")][ao("0x26")].has("DocumentListPropertiesEditing"))return;const t=this[ao("0x13")].config[ao("0x0")](ao("0x1e")),e=this.editor.plugins[ao("0x0")]("TrackChangesEditing");t.styles&&e[ao("0x2d")](ao("0xf"),this[ao("0x25")][ao("0x1d")](this)),t[ao("0x1a")]&&e[ao("0x2d")]("listReversed",this.handleListReversedCommand[ao("0x1d")](this)),t.startIndex&&e[ao("0x2d")](ao("0x31"),this[ao("0x1")][ao("0x1d")](this)),e[ao("0x30")][ao("0x22")](this[ao("0x1b")][ao("0x1d")](this))}[ao("0x25")](t,e={}){const n=this.editor[ao("0x26")].get(ao("0xd")),i=this[ao("0x17")]();this[ao("0x13")].model[ao("0x18")]((()=>{n[ao("0x19")](i,{commandName:ao("0xf"),commandParams:[{type:e.type}],formatGroupId:ao("0xf")})}))}[ao("0x28")](t,e={}){const n=this[ao("0x13")][ao("0x26")][ao("0x0")]("TrackChangesEditing"),i=this[ao("0x13")][ao("0x26")].get("DocumentListUtils"),r=this[ao("0x15")]((t=>i.isListItemBlock(t)&&ao("0x12")===t[ao("0xb")](ao("0x11"))));null!==r&&this[ao("0x13")][ao("0x33")][ao("0x18")]((()=>{n[ao("0x19")](r,{commandName:ao("0xa"),commandParams:[{reversed:e[ao("0x1a")]}],formatGroupId:ao("0xa")})}))}[ao("0x1")](t,e={}){const n=this[ao("0x13")].plugins[ao("0x0")](ao("0xd")),i=this[ao("0x13")].plugins[ao("0x0")]("DocumentListUtils"),r=this[ao("0x15")]((t=>i[ao("0x7")](t)&&ao("0x12")===t[ao("0xb")]("listType")));null!==r&&this.editor.model[ao("0x18")]((()=>{n[ao("0x19")](r,{commandName:"listStart",commandParams:[{startIndex:e[ao("0xe")]}],formatGroupId:ao("0x31")})}))}[ao("0x1b")](t){if(ao("0x21")!=t.type&&ao("0x9")!=t.type)return;const e=this[ao("0x13")].locale,{data:n}=t;if(!n)return;let i,r;switch(n[ao("0x4")]){case ao("0xf"):i=ao("0x10"),r={type:ao("0x2"),content:Ji(e,i,Ji(e,this[ao("0x8")](n[ao("0x5")][0][ao("0x24")])))};break;case ao("0xa"):i=n[ao("0x5")][0].reversed?ao("0x16"):ao("0x2a"),r={type:ao("0x2"),content:Ji(e,i)};break;case ao("0x31"):i="*Format:* set start index to %0",r={type:"format",content:Ji(e,i,n.commandParams[0].startIndex)}}return r}[ao("0x17")](){const t=this[ao("0x13")][ao("0x26")].get(ao("0x29"));let e=Array[ao("0xc")](this[ao("0x13")][ao("0x33")][ao("0x20")][ao("0x1c")][ao("0x32")]());return e[ao("0x27")](...t[ao("0x23")](e)),e=[...new Set(e)],e}[ao("0x15")](t){const e=this.editor[ao("0x26")][ao("0x0")](ao("0x29"));let n=Array.from(this[ao("0x13")].model.document[ao("0x1c")][ao("0x32")]())[ao("0x14")](t);if(!n.length)return null;n=e[ao("0x23")](n);const i=[];for(const t of n)e[ao("0x3")](t)&&i[ao("0x27")](t);return i}[ao("0x8")](t){return ao("0x2e")+this[ao("0x13")][ao("0x26")][ao("0x0")](ao("0x6")).getListTypeFromListStyleType(t)[ao("0x1f")]()+ao("0x2b")+t.toUpperCase()[ao("0x2c")](/-/g,"_")}}var lo=n(331);const uo=["options","setSelection","fromRange","nextSibling","parent","bind","afterExecute","enterBlock","downcastDispatcher","getFirstRange","markInsertion","get","change","document","fire","TrackChangesEditing","createPositionAt","markerName","ck-suggestion-marker-split","high","split","mapper","end","commands","enter","hasClass","plugins","addMarker:suggestion:insertion","detach","createRange","removeMarker:suggestion:insertion","selection","init","remove","enableCommand","model","editing","markerNameToElements"];var go,fo;go=uo,fo=222,function(t){for(;--t;)go.push(go.shift())}(++fo);const mo=function(t,e){return uo[t-=0]};class ho extends t.Plugin{static get requires(){return[lo.Enter]}[mo("0x0")](){const t=this.editor,e=t[mo("0x20")][mo("0x11")](mo("0x15")),n=t[mo("0x1d")][mo("0x11")](mo("0x1e"));e[mo("0x2")](mo("0x1e"),(()=>{t[mo("0x3")][mo("0x12")]((i=>{const r=t.model[mo("0x13")][mo("0x25")],o=r.getFirstPosition(),x=s.LiveRange[mo("0x8")](r[mo("0xf")]());if(n[mo("0xd")](i)){const n=t[mo("0x3")][mo("0x16")](o[mo("0xa")][mo("0x9")],0),r=i.createRange(o,n);e[mo("0x10")](r)}else i[mo("0x7")](i[mo("0x23")](x[mo("0x1c")]));x[mo("0x22")](),n[mo("0x14")](mo("0xc"),{writer:i})}))})),t[mo("0x4")][mo("0xe")].on("addMarker:suggestion:insertion",$r(t,mo("0x1a")),{priority:mo("0x19")}),t[mo("0x4")][mo("0xe")].on(mo("0x24"),((t,e,n)=>{const i=n[mo("0x1b")][mo("0x5")](e[mo("0x17")]);if(i)for(const t of i)t[mo("0x1f")](mo("0x18"))&&(n[mo("0x1b")].unbindElementFromMarkerName(t,e[mo("0x17")]),n.writer[mo("0x1")](t))}),{priority:mo("0x19")}),t.data[mo("0xe")].on(mo("0x21"),((e,n,i)=>{i[mo("0x6")].showSuggestionHighlights&&$r(t,mo("0x1a"),{showActiveMarker:!1})[mo("0xb")](this)(e,n,i)}),{priority:mo("0x19")})}}const po=["findByTextCallback","suggestion:deletion","handleFindCommand","_isInDeletionRange","replaceAll","find","get","findPrevious","start","getRange","getMarkersGroup","TrackChangesEditing","enableCommand","findNext","editor","string","createPositionAt","end","markers","model","FindAndReplaceEditing","FindAndReplaceUtils","plugins","afterInit","item"];var bo,Eo;bo=po,Eo=203,function(t){for(;--t;)bo.push(bo.shift())}(++Eo);const _o=function(t,e){return po[t-=0]};class To extends t.Plugin{[_o("0x14")](){if(!this[_o("0xb")][_o("0x13")].has(_o("0x11")))return;const t=this[_o("0xb")][_o("0x13")][_o("0x3")](_o("0x8"));t[_o("0x9")](_o("0x2"),this.handleFindCommand.bind(this)),t[_o("0x9")](_o("0xa")),t.enableCommand(_o("0x4")),t[_o("0x9")]("replace"),t.enableCommand(_o("0x1"))}[_o("0x18")](t,e,n={}){const i=this[_o("0xb")][_o("0x13")][_o("0x3")](_o("0x12"));return t((t=>(_o("0xc")==typeof e?i[_o("0x16")](e,n):e)(t).filter((e=>!1===this[_o("0x0")](e,t[_o("0x15")])))),n)}[_o("0x0")](t,e){const n=this.editor.model.createRange(this[_o("0xb")].model[_o("0xd")](e,t[_o("0x5")]),this.editor[_o("0x10")].createPositionAt(e,t[_o("0xe")]));for(const t of this[_o("0xb")][_o("0x10")][_o("0xf")][_o("0x7")](_o("0x17")))if(null!==n.getIntersection(t[_o("0x6")]()))return!0;return!1}}const yo=["find","_registerLegacyDescription","toLowerCase","FontFamilyEditing","commandParams","FORMAT_FONT_SIZE","fontFamily","FORMAT_FONT_FAMILY","registerDescriptionCallback","*Reset font family*","FontBackgroundColorEditing","label","commandName","*Reset font background color*","*Set font color:* %0","formatInline","fontColor.colors","normalizeSizeOptions","TrackChangesEditing","*Set font size:* %0","_descriptionFactory","fontColor","registerAttributeLabel","fontSize","locale","trim","type","plugins","fontBackgroundColor.colors","model","get","FORMAT_FONT_COLOR","*Set font background color:* %0","afterInit","format","FontColorEditing","editor","FontSize","value","title","*Reset font size*","fontBackgroundColor","config","FontSizeEditing"];var Co,Ao;Co=yo,Ao=119,function(t){for(;--t;)Co.push(Co.shift())}(++Ao);const ko=function(t,e){return yo[t-=0]},Io=[{pluginName:ko("0xc"),commandName:ko("0x24")},{pluginName:ko("0x10"),commandName:"fontFamily"},{pluginName:ko("0x4"),commandName:ko("0x22")},{pluginName:ko("0x17"),commandName:ko("0xa")}];class Ro extends t.Plugin{[ko("0x2")](){const t=this.editor[ko("0x25")],e=this.editor[ko("0x28")].get("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Io)this[ko("0x5")][ko("0x28")].has(t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[ko("0x21")][ko("0x23")](ko("0x24"),Ji(t,ko("0x12"))),e._descriptionFactory[ko("0x23")](ko("0x13"),Ji(t,ko("0x14"))),e._descriptionFactory.registerAttributeLabel("fontColor",Ji(t,ko("0x0"))),e[ko("0x21")][ko("0x23")](ko("0xa"),Ji(t,"FORMAT_FONT_BACKGROUND")),this[ko("0xe")]()}[ko("0xe")](){const t=this[ko("0x5")],e=t[ko("0x25")];t[ko("0x28")][ko("0x2b")](ko("0x1f"))._descriptionFactory[ko("0x15")]((t=>{const n=e.t;if(ko("0x1c")!=t[ko("0x27")])return;const{data:i}=t;if(null!=i){if(ko("0x24")==i[ko("0x19")]){const t=i[ko("0x11")][0][ko("0x7")];if(t){const i=n(this[ko("0x5")][ko("0x28")][ko("0x2b")](ko("0x6"))[ko("0x1e")](this[ko("0x5")].config[ko("0x2b")]("fontSize.options")).find((e=>e.model==t))[ko("0x8")]).toLowerCase();return{type:ko("0x3"),content:Ji(e,ko("0x20"),i)}}return{type:ko("0x3"),content:Ji(e,ko("0x9"))}}if(ko("0x13")==i[ko("0x19")]){const t=i[ko("0x11")][0].value;return t?{type:ko("0x3"),content:Ji(e,"*Set font family:* %0",t)}:{type:ko("0x3"),content:Ji(e,ko("0x16"))}}if(ko("0x22")==i[ko("0x19")]){const t=i[ko("0x11")][0].value;if(t){const i=(0,r.normalizeColorOptions)(this[ko("0x5")][ko("0xb")].get(ko("0x1d"))).find((e=>e[ko("0x2a")]==t));let o=t,s="";return i&&(o=i[ko("0x18")],s=n(o)[ko("0xf")]()),{type:"format",content:Ji(e,ko("0x1b"),s)[ko("0x26")](),color:{value:t,title:s||o}}}return{type:"format",content:Ji(e,"*Reset font color*")}}if(ko("0xa")==i[ko("0x19")]){const t=i[ko("0x11")][0].value;if(t){const i=(0,r.normalizeColorOptions)(this[ko("0x5")][ko("0xb")][ko("0x2b")](ko("0x29")))[ko("0xd")]((e=>e[ko("0x2a")]==t));let o=t,s="";return i&&(o=i[ko("0x18")],s=n(o)[ko("0xf")]()),{type:ko("0x3"),content:Ji(e,ko("0x1"),s)[ko("0x26")](),color:{value:t,title:s||o}}}return{type:ko("0x3"),content:Ji(e,ko("0x1a"))}}}}))}}const vo=["join","locale","*Set format to:* %0","copyFormat","pasteFormat","get","registerDescriptionCallback","plugins","formatBlock","_descriptionFactory","commandName","fontColor","toLowerCase","FontSize","format","enableCommand","charAt","config","split","commands","fontSize.options","afterInit","push","type","_enableDefaultAttributesIntegration","boolean","fontBackgroundColor","_registerLegacyDescription","normalizeSizeOptions","find","length","model","fontColor.colors","entries","commandParams","toUpperCase","TrackChangesEditing"];var So,No;So=vo,No=208,function(t){for(;--t;)So.push(So.shift())}(++No);const Lo=function(t,e){return vo[t-=0]};class Mo extends t.Plugin{[Lo("0x23")](){const t=this.editor,e=t[Lo("0x15")][Lo("0x13")](Lo("0xd")),n=t.commands.get(Lo("0x11")),i=t[Lo("0x21")].get("pasteFormat");n&&i&&(e[Lo("0x1")](Lo("0x12")),e[Lo("0x1d")]("copyFormat"),this._registerLegacyDescription())}[Lo("0x4")](){const t=this.editor,e=t[Lo("0xf")];t.plugins[Lo("0x13")](Lo("0xd"))[Lo("0x17")][Lo("0x14")]((n=>{if(Lo("0x16")!=n[Lo("0x0")]&&"formatInline"!=n[Lo("0x0")])return;const{data:i}=n;if(i&&Lo("0x12")===i[Lo("0x18")]){const n=[],r=i[Lo("0xb")][0];for(const[e,i]of Object[Lo("0xa")](r))n[Lo("0x24")](wo(t,e,i));return n[Lo("0x7")]?{type:Lo("0x1c"),content:Ji(e,Lo("0x10"),n[Lo("0xe")](", "))}:{type:"format",content:Ji(e,"*Remove all formatting*")}}}))}}function wo(t,e,n){const i=t.locale.t,o=e[Lo("0x20")](/(?=[A-Z])/).join(" "),s=i(o[Lo("0x1e")](0)[Lo("0xc")]()+o.slice(1)).toLowerCase();if(Lo("0x2")==typeof n)return s;if(Lo("0x19")===e||Lo("0x3")===e){const e=(0,r.normalizeColorOptions)(t.config[Lo("0x13")](Lo("0x9")))[Lo("0x6")]((t=>t[Lo("0x8")]==n));return s+" ("+(e?i(e.label)[Lo("0x1a")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins[Lo("0x13")](Lo("0x1b"))[Lo("0x5")](t[Lo("0x1f")][Lo("0x13")](Lo("0x22"))).find((t=>t[Lo("0x8")]==n));return s+" ("+(e?i(e.title)[Lo("0x1a")]():n)+")"}return s+" ("+n+")"}const Oo=["locale","afterInit","_headingOptions","TrackChangesEditing","registerDescriptionCallback","name","HeadingEditing","type","_getHeadingLevel","format","view","match","plugins","find","get","formatBlock","heading","model","commandParams","_registerLegacyDescription","registerElementLabel","config","*Change to:* %0","paragraph","ELEMENT_HEADING","title","_enableDefaultAttributesIntegration","heading.options","editor"];var Fo,Do;Fo=Oo,Do=238,function(t){for(;--t;)Fo.push(Fo.shift())}(++Do);const Bo=function(t,e){return Oo[t-=0]};class Po extends t.Plugin{[Bo("0x18")](){const t=this.editor;if(!t[Bo("0x6")].has(Bo("0x0")))return;this._headingOptions=t[Bo("0xf")][Bo("0x8")](Bo("0x15"));const e=t.locale,n=t[Bo("0x6")].get(Bo("0x1a"));n[Bo("0x14")](Bo("0xa"));for(const t of this[Bo("0x19")])Bo("0x11")!=t[Bo("0xb")]&&n._descriptionFactory[Bo("0xe")](t[Bo("0xb")],(n=>{const i=this[Bo("0x2")](t[Bo("0xb")]);return null!==i?(s=n,x=i,Ji(e,Bo("0x12"),[s,x])):(r=n,o=t[Bo("0x13")],Ji(e,"ELEMENT_HEADING_CUSTOM",[r,o]));var r,o,s,x}));this[Bo("0xd")]()}[Bo("0xd")](){const t=this[Bo("0x16")],e=t[Bo("0x17")];t[Bo("0x6")][Bo("0x8")](Bo("0x1a"))._descriptionFactory[Bo("0x1b")]((t=>{if(Bo("0x9")!=t[Bo("0x1")])return;const{data:n}=t;if(n&&Bo("0xa")==n.commandName){const t=n[Bo("0xc")][0].value,s=this[Bo("0x2")](t);if(null!==s)return{type:Bo("0x3"),content:Ji(e,Bo("0x10"),(1,o=s,Ji(e,Bo("0x12"),[1,o])))};const x=this._headingOptions.find((e=>e[Bo("0xb")]===t))[Bo("0x13")];return{type:"format",content:Ji(e,Bo("0x10"),(i=1,r=x,Ji(e,"ELEMENT_HEADING_CUSTOM",[i,r])))}}var i,r,o}))}_getHeadingLevel(t){var e,n;const i=t[Bo("0x5")](/^heading(\d+)/);if(i)return i[1];const r=null===(e=this[Bo("0x19")])||void 0===e?void 0:e[Bo("0x7")]((e=>e[Bo("0xb")]==t));if(r&&r[Bo("0x4")]){const t=r[Bo("0x4")],e=(null!==(n=t[Bo("0x1c")])&&void 0!==n?n:t)[Bo("0x5")](/^h(\d+)/);if(e)return e[1]}return null}}const Uo=["commandParams","title","_enableDefaultAttributesIntegration","registerAttributeLabel","find","plugins","_descriptionFactory","FORMAT_HIGHLIGHT","type","formatInline","model","TrackChangesEditing","value","toLowerCase","config","locale","*Remove highlight*","format","registerDescriptionCallback","highlight.options","highlight","editor","get","*Set highlight:* %0","HighlightEditing"];var jo,Go;jo=Uo,Go=249,function(t){for(;--t;)jo.push(jo.shift())}(++Go);const Vo=function(t,e){return Uo[t-=0]};class Ho extends t.Plugin{afterInit(){const t=this[Vo("0x16")];if(!t.plugins.has(Vo("0x0")))return;const e=t.plugins[Vo("0x17")](Vo("0xc")),n=t[Vo("0x10")];e[Vo("0x3")](Vo("0x15"),[Vo("0x15")]),e[Vo("0x7")][Vo("0x4")](Vo("0x15"),Ji(n,"FORMAT_HIGHLIGHT")),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Vo("0x16")],e=t[Vo("0x10")];t[Vo("0x6")][Vo("0x17")]("TrackChangesEditing")[Vo("0x7")][Vo("0x13")]((n=>{if(Vo("0xa")!=n[Vo("0x9")])return;const{data:i}=n;if(i&&"highlight"==i.commandName){const n=e.t,r=i[Vo("0x1")][0][Vo("0xd")];if(r){const i=t[Vo("0xf")][Vo("0x17")](Vo("0x14"))[Vo("0x5")]((t=>t[Vo("0xb")]==r)),o=n(i.title)[Vo("0xe")]();return{type:Vo("0x12"),content:Ji(e,Vo("0x18"),o),color:{value:i.color,title:i[Vo("0x2")]}}}return{type:Vo("0x12"),content:Ji(e,Vo("0x11"),Ji(e,Vo("0x8")))}}}))}}const zo=["for","horizontalLine","plugins","TrackChangesEditing","addClass","dataDowncast","createEmptyElement","afterInit","enableCommand","ELEMENT_HORIZONTAL_LINE","createContainerElement","conversion","_descriptionFactory","createPositionAt","has","high","elementToStructure","registerElementLabel","HorizontalLineEditing","get","editor","insert"];var Wo,Ko;Wo=zo,Ko=200,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};class $o extends t.Plugin{[qo("0x5")](){const t=this[qo("0x12")];if(!t[qo("0x0")][qo("0xc")](qo("0x10")))return;t[qo("0x0")][qo("0x11")](qo("0x1"))[qo("0x6")](qo("0x15"));const e=t.plugins[qo("0x11")]("TrackChangesEditing"),n=t.locale;e[qo("0xa")][qo("0xf")](qo("0x15"),(t=>Ji(n,qo("0x7"),t))),t[qo("0x9")][qo("0x14")](qo("0x3"))[qo("0xe")]({model:qo("0x15"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const i=e[qo("0x8")]("div"),r=e[qo("0x4")]("hr");return e[qo("0x2")]("ck-horizontal-line",i),e[qo("0x13")](e[qo("0xb")](i,0),r),i},converterPriority:qo("0xd")})}}const Xo=["htmlEmbed","rawHtml","HtmlEmbed","_enableDefaultAttributesIntegration","type","has","_registerLegacyDescription","get","registerElementLabel","ELEMENT_HTML_EMBED","element","locale","value","formatBlock","attribute","_descriptionFactory","format","getFirstRange","start","TrackChangesEditing","registerDescriptionCallback","key","*Change %0 content*","plugins"];var Zo,Yo;Zo=Xo,Yo=275,function(t){for(;--t;)Zo.push(Zo.shift())}(++Yo);const Jo=function(t,e){return Xo[t-=0]};class Qo extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jo("0xc")][Jo("0x12")](Jo("0xf")))return;const e=t[Jo("0xc")].get("TrackChangesEditing"),n=t[Jo("0x0")];e[Jo("0x4")][Jo("0x15")]("rawHtml",(t=>Ji(n,Jo("0x16"),t))),e[Jo("0x10")](Jo("0xd"),[],[Jo("0x1")]),e[Jo("0x4")][Jo("0x9")]((t=>{if(Jo("0x3")!=t[Jo("0x11")])return;const{data:e}=t;if(e&&Jo("0x1")==e[Jo("0xa")]&&t[Jo("0x6")]()[Jo("0x7")].nodeAfter.is(Jo("0x17"),Jo("0xe"))){const t=Ji(n,Jo("0x16"));return{type:Jo("0x5"),content:Ji(n,"*Change %0 content*",t)}}})),this[Jo("0x13")]()}[Jo("0x13")](){const t=this.editor,e=t[Jo("0x0")];t[Jo("0xc")][Jo("0x14")](Jo("0x8"))[Jo("0x4")][Jo("0x9")]((t=>{if(Jo("0x2")!=t[Jo("0x11")])return;const{data:n}=t;if(n&&Jo("0xd")==n.commandName){const t=Ji(e,Jo("0x16"));return{type:"format",content:Ji(e,Jo("0xb"),t)}}}))}}const ts=["findIndex","subType","nodeAfter","_suggestionFactory","*Set image text alternative:* %0","*Remove image text alternative*","resizeImage","format","nodeBefore","markBlockFormat","ELEMENT_IMAGE","forward","forceDefaultExecution","deletion","convertBlockImageToInline","getClosestSelectedImageElement","filter","accept","registerCustomCallback","start","isCollapsed","detach","alt","addObject","markDeletion","get","ELEMENT_INLINE_IMAGE","createRange","_registerLegacyDescription","imageBlock","TrackChangesEditing","registerAttributeLabel","toggleImageCaption","change","isEqual","ImageResize","previous","registerDescriptionCallback","fromPosition","markInsertion","end","ImageUploadEditing","getSuggestionCallback","getNearestSelectionRange","toNext","formatInline","enableCommand","schema","ImageEditing","imageCaption","type","_descriptionFactory","convertInlineImageToBlock","model","removeObject","discard","commandName","_enableDefaultAttributesIntegration","element","createRangeOn","backward","isOwn","insertion","*Set image width:* %0","resizedWidth","toPrevious","ELEMENT_CAPTION","imageTypeInline","ImageCaptionEditing","caption","newValue","imageTextAlternative","ImageInlineEditing","ImageBlockEditing","ImageTextAlternativeEditing","insertImage","has","Inline image to block image","commandParams","isIntersecting","imageInline","isBlockImage","ImageUtils","document","width","imageStylePreApply","find","selection","plugins","chain","editor","join","FORMAT_IMAGE_SIZE","length","uploadImage","registerElementLabel","locale","formatBlock","getCaptionFromImageModelElement","getFirstRange"];var es,ns;es=ts,ns=274,function(t){for(;--t;)es.push(es.shift())}(++ns);const is=function(t,e){return ts[t-=0]};class rs extends t.Plugin{afterInit(){const t=this[is("0x10")];if(!t.plugins[is("0x2")](is("0x4a")))return;const e=t[is("0xe")].get("TrackChangesEditing"),n=t.plugins[is("0x33")](is("0x8")),i=t[is("0x16")];e[is("0x48")](is("0x1")),e._descriptionFactory[is("0x15")](is("0x37"),(t=>Ji(i,is("0x24"),t))),e._descriptionFactory[is("0x15")](is("0x6"),(t=>Ji(i,is("0x34"),t))),e[is("0x4d")].registerElementLabel(is("0x5f"),(()=>Ji(i,is("0x5c")))),t.plugins[is("0x2")](is("0x43"))&&e[is("0x48")](is("0x14")),t[is("0xe")].has(is("0x63"))&&t[is("0xe")][is("0x2")](is("0x62"))&&(e.enableCommand("imageTypeInline",((i,r)=>{const o=n[is("0x29")](t[is("0x4f")].document[is("0xd")]);t[is("0x4f")][is("0x3b")]((()=>{e.markBlockFormat(o,{commandName:is("0x5d"),commandParams:[r]},[],is("0x28"))}))})),e.enableCommand("imageTypeBlock",((i,r)=>{t[is("0x4f")][is("0x3b")]((o=>{let x=n[is("0x29")](t[is("0x4f")][is("0x9")][is("0xd")]),a=o[is("0x55")](x);const c=s.LivePosition[is("0x40")](a.start,is("0x5b")),l=s.LivePosition[is("0x40")](a[is("0x42")],is("0x46"));e[is("0x26")]((()=>i(r))),x=n[is("0x29")](t.model.document.selection),a=o.createRangeOn(x);const u=o[is("0x35")](c,l);c.detach(),l[is("0x2f")](),e[is("0x23")](x,{commandName:is("0x5d"),commandParams:[r]},[],is("0x4e")),u.start.isBefore(a[is("0x2d")])&&e[is("0x41")](o[is("0x35")](u[is("0x2d")],a[is("0x2d")]),is("0x4e")),a[is("0x42")].isBefore(u[is("0x42")])&&e.markInsertion(o.createRange(a.end,u.end),"convertInlineImageToBlock")}))})),e[is("0x1d")][is("0x2c")](is("0x17"),"convertInlineImageToBlock",is("0x11"),(()=>!1)),e[is("0x1d")][is("0x2c")]("formatBlock",is("0x4e"),is("0x2b"),(()=>!1)),e[is("0x1d")][is("0x2c")](is("0x17"),"convertInlineImageToBlock",is("0x51"),e[is("0x1d")][is("0x44")](is("0x17"),"","accept")),e._suggestionFactory[is("0x2c")](is("0x58"),is("0x4e"),is("0x11"),(()=>!1)),e._suggestionFactory[is("0x2c")](is("0x58"),is("0x4e"),is("0x51"),(([n])=>{const i=e[is("0x1d")][is("0x44")](is("0x58"),"","discard");let r=n[is("0x2d")],o=n.end;const s=t[is("0x4f")][is("0x49")][is("0x45")](r,is("0x56")),x=t[is("0x4f")][is("0x49")][is("0x45")](o,is("0x25"));s[is("0x2e")]&&(r=s[is("0x2d")]),x[is("0x2e")]&&(o=x[is("0x42")]),i([t[is("0x4f")].createRange(r,o)])})),e._suggestionFactory.registerCustomCallback("formatBlock",is("0x4e"),is("0xf"),x),e[is("0x1d")].registerCustomCallback(is("0x58"),is("0x4e"),"chain",x)),t[is("0xe")].has(is("0x5e"))&&(e[is("0x48")](is("0x3a"),((i,r)=>{const o=t[is("0xe")].get("ImageCaptionUtils");let s=n[is("0x29")](t[is("0x4f")].document[is("0xd")]),x=o[is("0x18")](s);t[is("0x4f")][is("0x3b")]((()=>{if(x)return void e[is("0x32")](t[is("0x4f")][is("0x55")](x));const a=n[is("0x7")](s);i(r),s=n[is("0x29")](t[is("0x4f")].document[is("0xd")]),x=o.getCaptionFromImageModelElement(s),e.markInsertion(t[is("0x4f")][is("0x55")](x),a?null:is("0x4b"))}))})),e[is("0x1d")][is("0x2c")](is("0x58"),is("0x4b"),is("0xf"),x));const r=[{type:"formatBlock",subType:is("0xb")},{type:is("0x58"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:is("0x58"),subType:"convertInlineImageToBlock"}];function o(t,i){const o=r[is("0x1a")]((({type:e,subType:n})=>t[is("0x4c")]==e&&t.subType==n)),s=r.findIndex((({type:t,subType:e})=>i[is("0x4c")]==t&&i[is("0x1b")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=i[is("0x19")]();if((0==o||1==o)&&2==s&&x[is("0x5")](a))return!0;if(2==o&&3==s){const t=e._findSuggestions(x,is("0x58"))[is("0x2a")]((({suggestion:t,meta:e})=>e[is("0x57")]&&is("0x4e")==t.subType));if(t[is("0x13")]>1&&a[is("0x42")][is("0x3c")](x[is("0x2d")]))return!0;if(1==t[is("0x13")]&&(x[is("0x2d")][is("0x3c")](a[is("0x42")])||x[is("0x42")][is("0x3c")](a.start)))return!0}if(3==o&&3==s&&x[is("0x2d")].isBefore(a.start)){const t=x[is("0x42")][is("0x1c")],e=a.start[is("0x22")];return n[is("0x7")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t.plugins[is("0x2")](is("0x3d"))&&(e[is("0x53")](is("0x20"),[],[is("0x5a")]),e._descriptionFactory[is("0x39")](is("0x5a"),Ji(i,is("0x12")))),t[is("0xe")].has(is("0x0"))&&e[is("0x53")]("imageTextAlternative",[],["alt"]),e[is("0x4d")][is("0x3f")]((t=>{if(r[is("0xc")]((({type:e,subType:n})=>t[is("0x4c")]==e&&t[is("0x1b")]==n)))return t[is("0x3e")]?{}:void 0})),e[is("0x4d")][is("0x3f")]((t=>{if(is("0x58")==t[is("0x4c")]||is("0x27")==t[is("0x4c")]){const e=t.getContainedElement();if(e&&e.is(is("0x54"),is("0x5f")))return{type:is("0x58")==t[is("0x4c")]?is("0x31"):is("0x50"),element:e,quantity:1}}})),e[is("0x4d")][is("0x3f")]((t=>is("0x17")==t[is("0x4c")]&&"convertInlineImageToBlock"==t.subType?{type:is("0x21"),content:is("0x3")}:is("0x17")==t[is("0x4c")]&&is("0x28")==t[is("0x1b")]?{type:is("0x21"),content:"Block image to inline image"}:void 0)),e[is("0x4d")][is("0x3f")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||is("0x30")!=e.key)return;const n=e[is("0x60")];return n?{type:"format",content:Ji(i,is("0x1e"),'"'+n+'"')}:{type:is("0x21"),content:Ji(i,"*Remove image text alternative*")}})),this[is("0x36")]()}[is("0x36")](){const t=this.editor,e=t[is("0x16")];t[is("0xe")][is("0x33")](is("0x38"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[is("0x4c")]&&is("0x47")!=t[is("0x4c")])return;const{data:n}=t;if(n){if(is("0x61")==n[is("0x52")]){const t=n[is("0x4")][0][is("0x60")];return t?{type:"format",content:Ji(e,is("0x1e"),'"'+t+'"')}:{type:is("0x21"),content:Ji(e,is("0x1f"))}}if("resizeImage"==n[is("0x52")]){const t=n[is("0x4")][0][is("0xa")];return t?{type:is("0x21"),content:Ji(e,is("0x59"),t)}:{type:is("0x21"),content:Ji(e,"*Reset image width*")}}}}))}}const os=["oldValue","get","discard","TrackChangesEditing","*Replace image URL*","commandName","has","key","formatInline","getSuggestionCallback","type","formatBlock","_enableDefaultAttributesIntegration","_registerLegacyDescription","ImageEditing","locale","plugins","afterInit","editor","_descriptionFactory","src","accept","registerDescriptionCallback","format","_handleLegacySuggestions","replaceImageSource","attribute","_suggestionFactory","*Format:* replace image URL"];var ss,xs;ss=os,xs=257,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return os[t-=0]};class cs extends t.Plugin{[as("0x15")](){if(!this[as("0x16")].plugins[as("0xa")](as("0x12")))return;const t=this[as("0x16")][as("0x13")],e=this[as("0x16")][as("0x14")][as("0x5")](as("0x7"));e[as("0x10")]("replaceImageSource",[],[as("0x18")]),e._descriptionFactory[as("0x1a")]((e=>{if(as("0x1")!=e[as("0xe")])return;const{data:n}=e;return n&&as("0x18")==n[as("0xb")]?n.newValue&&n[as("0x4")]?{type:as("0x1b"),content:Ji(t,as("0x8"))}:{type:as("0x1b"),content:""}:void 0})),this[as("0x1c")]()}[as("0x1c")](){const t=this[as("0x16")][as("0x14")][as("0x5")](as("0x7"));t._suggestionFactory.registerCustomCallback(as("0xf"),as("0x0"),as("0x19"),t[as("0x2")][as("0xd")]("formatBlock",null,as("0x6"))),t._suggestionFactory.registerCustomCallback(as("0xf"),as("0x0"),as("0x6"),t[as("0x2")].getSuggestionCallback(as("0xf"),null,as("0x19"))),this._registerLegacyDescription()}[as("0x11")](){const t=this[as("0x16")],e=t[as("0x13")];t.plugins[as("0x5")](as("0x7"))[as("0x17")][as("0x1a")]((t=>{if(as("0xf")!=t[as("0xe")]&&as("0xc")!=t[as("0xe")])return;const{data:n}=t;return n&&as("0x0")==n[as("0x9")]?{type:as("0x1b"),content:Ji(e,as("0x3"))}:void 0}))}}const ls=["shouldConvertImageType","_splitMarkerName","subType","discardSuggestion","*Format:* %0","_suggestionFactory","TrackChangesEditing","model","locale","head","discard","has","normalizedStyles","isBefore","imageStylePreApply","getSuggestionCallback","registerCustomCallback","convertInlineImageToBlock","editor","_findSuggestions","isInContent","findIndex","type","markBlockFormat","imageStylePostApply","selection","isInlineImage","filter","chain","end","enableCommand","insertion","commands","setImageNaturalSizeAttributes","next","join","author","suggestion","start","differ","accept","name","getSuggestion","document","_registerLegacyDescription","ImageStyleEditing","isBlockImage","length","getSuggestions","formatInline","nodeBefore","imageTypeBlock","isOwn","registerDescriptionCallback","refresh","forEach","commandReversedParams","isEqual","createRangeOn","commandName","format","value","commandParams","get","toLowerCase","Users","getContainedElement","newRange","afterInit","plugins","getClosestSelectedImageElement","imageCaption","change","imageStyle","formatBlock","nodeAfter"];var us,ds;us=ls,ds=106,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x26")](){const t=this[gs("0x40")];if(!t[gs("0x27")][gs("0x39")](gs("0xf")))return;const n=t[gs("0x27")][gs("0x21")](gs("0x34")),i=t[gs("0x27")].get("ImageUtils"),r={};n[gs("0x0")](gs("0x2b"),((r,o)=>{const s=t[gs("0x27")][gs("0x21")](gs("0x23")).me,x=t[gs("0x2")][gs("0x21")](gs("0x2b"));let a=i[gs("0x28")](t[gs("0x35")].document[gs("0x47")]),c=t[gs("0x35")][gs("0x1c")](a),l=x[gs("0x1f")];if(l==o[gs("0x1f")])return;const u={commandName:gs("0x2b"),commandParams:[o],formatGroupId:(0,e.uid)()};t[gs("0x35")][gs("0x2a")]((()=>{if(n[gs("0x12")]()[gs("0x49")]((t=>t[gs("0x42")]&&s==t[gs("0x6")]&&(gs("0x2c")==t[gs("0x44")]||gs("0x13")==t[gs("0x44")])&&(gs("0x3c")==t[gs("0x30")]||gs("0x46")==t.subType)&&t.getFirstRange()[gs("0x1b")](c)))[gs("0x19")]((t=>n[gs("0x31")](t[gs("0x37")]))),a=i[gs("0x28")](t[gs("0x35")].document.selection),c=t[gs("0x35")][gs("0x1c")](a),x[gs("0x18")](),t.commands.get("imageTypeInline")[gs("0x18")](),t[gs("0x2")][gs("0x21")](gs("0x15"))[gs("0x18")](),l=x.value,l!=o[gs("0x1f")])return i[gs("0x48")](a)&&x[gs("0x2e")](o.value,a)?(r({...o,setImageSizes:!1}),a=i[gs("0x28")](t[gs("0x35")][gs("0xd")].selection),void n[gs("0x45")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(i[gs("0x10")](a)?n[gs("0x45")](a,u,[],gs("0x46")):n.markInlineFormat(c,u,gs("0x46")))}))}));for(const e of t.plugins[gs("0x21")](gs("0xf"))[gs("0x3a")])r[e[gs("0xb")]]=e.title[gs("0x22")]();n._suggestionFactory.registerCustomCallback(gs("0x2c"),"imageStylePreApply",gs("0x5"),(()=>!1)),n._suggestionFactory[gs("0x3e")](gs("0x2c"),gs("0x46"),gs("0x5"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatInline",gs("0x46"),"join",(()=>!1)),n[gs("0x33")][gs("0x3e")](gs("0x2c"),gs("0x3c"),gs("0xa"),(([t])=>{i[gs("0x3")](t.getContainedElement())})),n[gs("0x33")][gs("0x3e")](gs("0x2c"),"imageStylePreApply",gs("0x38"),((t,e)=>{n[gs("0x33")][gs("0x3d")](gs("0x2c"),"",gs("0xa"))(t,{commandName:e[gs("0x1d")],commandParams:e[gs("0x1a")]})})),n[gs("0x33")].registerCustomCallback(gs("0x2c"),gs("0x3c"),gs("0x4a"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:gs("0x2c"),subType:"imageStylePreApply"},{type:"insertion",subType:gs("0x29")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:"insertion",subType:gs("0x3f")}];function s(t,e){const r=o[gs("0x43")]((({type:e,subType:n})=>t[gs("0x44")]==e&&t[gs("0x30")]==n)),s=o[gs("0x43")]((({type:t,subType:n})=>e[gs("0x44")]==t&&e[gs("0x30")]==n));if(r<0||s<0)return!1;const x=t.getFirstRange(),a=e.getFirstRange();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[gs("0x41")](x,gs("0x1"))[gs("0x49")]((({suggestion:t,meta:e})=>e[gs("0x16")]&&gs("0x3f")==t[gs("0x30")]));if(t[gs("0x11")]>1&&a.end[gs("0x1b")](x[gs("0x8")]))return!0;if(1==t[gs("0x11")]&&(x[gs("0x8")].isEqual(a[gs("0x4b")])||x[gs("0x4b")][gs("0x1b")](a[gs("0x8")])))return!0}if(3==r&&3==s&&x.start[gs("0x3b")](a[gs("0x8")])){const t=x[gs("0x4b")][gs("0x2d")],e=a[gs("0x8")][gs("0x14")];return i[gs("0x10")](t)&&t===e}return!1}t[gs("0x35")][gs("0xd")].registerPostFixer((()=>{let e=!1;const r=Array.from(t.model.document[gs("0x9")].getChangedMarkers());for(const{name:t,data:o}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x2f")](t);if(gs("0x7")==r&&n.hasSuggestion(a)){if("formatBlock"==s&&(gs("0x3c")==x||gs("0x46")==x)){const t=n[gs("0xc")](a);if(o.newRange){const r=t.getFirstRange()[gs("0x24")]();if(i.isBlockImage(r))continue;n[gs("0x31")](t),e=!0}}if("insertion"==s&&"imageCaption"==x&&!o[gs("0x25")]){const t=n[gs("0xc")](a);t[gs("0x4")]&&t[gs("0x4")][gs("0x42")]&&(n.discardSuggestion(t[gs("0x4")]),e=!0)}}}return e})),this[gs("0xe")](r)}_registerLegacyDescription(t){const e=this[gs("0x40")],n=e[gs("0x36")];e[gs("0x27")][gs("0x21")](gs("0x34"))._descriptionFactory[gs("0x17")]((e=>{if(gs("0x2c")!=e[gs("0x44")]&&gs("0x13")!=e[gs("0x44")])return;const{data:i}=e;if(!i||"imageStyle"!=i.commandName)return;const r=i[gs("0x20")][0][gs("0x1f")];return o="side"===r?Ji(n,"FORMAT_SIDE_IMAGE"):t[r]||r,{type:gs("0x1e"),content:Ji(n,gs("0x32"),o)};var o}))}}const ms=["lowest","listenTo","execute","value","trackChanges","_trackChangesValueDuringImport","commands","track_changes","Users","enableCommand","editor","bind","afterInit","dataInsert","forEach","plugins","_trackChangesExecuted","_setSuggestionData","_handleImportedData","collaboration_features","TrackChangesEditing","get","importWord"];var hs,ps;hs=ms,ps=211,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[bs("0x8")](){const t=this[bs("0x6")],e=t.commands[bs("0x11")]("importWord"),n=t[bs("0x2")][bs("0x11")](bs("0x0"));e&&(e.on("execute",((t,[,e])=>{this[bs("0x1")]=n[bs("0x16")],e[bs("0xf")][bs("0x3")]=!this[bs("0x1")]}),{priority:"high"}),this[bs("0x14")](e,bs("0x9"),this[bs("0xe")][bs("0x7")](this)),this[bs("0x14")](e,bs("0x9"),(()=>{this[bs("0xc")]&&(n[bs("0x15")](),this[bs("0xc")]=!1)}),{priority:bs("0x13")}),t[bs("0xb")].get(bs("0x10"))[bs("0x5")]("importWord"))}[bs("0xe")](t,e){const{suggestions:n}=e,i=this[bs("0x6")][bs("0x2")][bs("0x11")](bs("0x0")),r=i[bs("0x16")];this[bs("0x1")]!==r&&(i[bs("0x15")](),this[bs("0xc")]=!0),n&&n[bs("0xa")]((({id:t,type:e,author:n,created_at:i})=>{const r={id:t,type:e,authorId:this[bs("0x6")][bs("0xb")][bs("0x11")](bs("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:bs("0x12")}}};this[bs("0x6")].plugins[bs("0x11")]("TrackChangesEditing")[bs("0xd")](r)}))}}const _s=["TrackChangesEditing","getItemLabel","indent","get","*Outdent:* %0","outdent","indentBlock","plugins","blockIndent","has","FORMAT_INDENT","formatBlock","editor","_enableDefaultAttributesIntegration","type","outdentBlock","registerAttributeLabel","locale","enableCommand","getItems","_descriptionFactory","afterInit","commandName","_registerLegacyDescription","format"];var Ts,ys;Ts=_s,ys=422,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x18")](){const t=this.editor,e=t[Cs("0xa")].get(Cs("0x3"));if(t[Cs("0xa")][Cs("0xc")]("IndentEditing")&&(e[Cs("0x15")](Cs("0x5")),e[Cs("0x15")](Cs("0x8"))),t.plugins[Cs("0xc")]("IndentBlock"))for(const t of[Cs("0x9"),Cs("0x12")])e[Cs("0x10")](t);const n=t[Cs("0x14")];e._registerBlockAttribute(Cs("0xb")),e[Cs("0x17")][Cs("0x13")]("blockIndent",Ji(n,Cs("0xd"))),this._registerLegacyDescription()}[Cs("0x1")](){const t=this[Cs("0xf")],e=t.locale,n=t[Cs("0xa")][Cs("0x6")](Cs("0x3"));n[Cs("0x17")].registerDescriptionCallback((t=>{if(Cs("0xe")!=t[Cs("0x11")])return;const{data:i}=t;if(!i)return;if(Cs("0x9")!=i[Cs("0x0")]&&Cs("0x12")!=i[Cs("0x0")])return;const r=t[Cs("0x16")]()[0],o=n._descriptionFactory[Cs("0x4")](r);return"indentBlock"==i[Cs("0x0")]?{type:Cs("0x2"),content:Ji(e,"*Indent:* %0",o)}:Cs("0x12")==i[Cs("0x0")]?{type:Cs("0x2"),content:Ji(e,Cs("0x7"),o)}:void 0}))}}var ks,Is,Rs=["TrackChangesEditing","get","requires","input","plugins","editor","enableCommand"];ks=Rs,Is=374,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Rs[t-=0]};class Ss extends t.Plugin{static get[vs("0x6")](){return[Vr.Input]}init(){this[vs("0x2")][vs("0x1")][vs("0x5")](vs("0x4"))[vs("0x3")](vs("0x0"))}}const Ns=["format","get","afterInit","has","_descriptionFactory","unlink","*Set link:* %0","commandName","*Remove link*","registerDescriptionCallback","label","TrackChangesEditing","formatInline","link (","plugins","locale","map","_registerLegacyDescription","_enableDefaultAttributesIntegration","LinkEditing","manualDecorators","registerAttributeLabel","type","key","commands","link","toLowerCase","attribute"];var Ls,Ms;Ls=Ns,Ms=135,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x7")](){const t=this.editor;if(!t[ws("0x13")][ws("0x8")](ws("0x18")))return;const e=t.plugins[ws("0x6")]("TrackChangesEditing"),n=t[ws("0x1")].get(ws("0x2"));e[ws("0x17")]("link",["linkHref",...n[ws("0x19")][ws("0x15")]((t=>t.id))]),e[ws("0x17")](ws("0xa"));for(const t of n.manualDecorators)e[ws("0x9")][ws("0x1a")](t.id,ws("0x12")+t[ws("0xf")][ws("0x3")]()+")");e[ws("0x9")][ws("0xe")]((e=>{if(ws("0x4")!=e[ws("0x1b")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0x0")])return;const i=n.newValue,r=t.locale;return{type:ws("0x5"),content:null==i?Ji(r,ws("0xd")):Ji(r,ws("0xb"),'"'+i+'"')}})),this._registerLegacyDescription()}[ws("0x16")](){const t=this.editor,e=t[ws("0x14")];t[ws("0x13")][ws("0x6")](ws("0x10"))[ws("0x9")].registerDescriptionCallback((t=>{if(ws("0x11")!=t.type)return;const{data:n}=t;if(n){if(ws("0x2")==n[ws("0xc")]){const t=n.commandParams[0];return{type:ws("0x5"),content:Ji(e,ws("0xb"),'"'+t+'"')}}return ws("0xa")==n.commandName?{type:ws("0x5"),content:Ji(e,ws("0xd"))}:void 0}}))}}const Fs=["registerElementLabel","List","findIndex","add","commandParams","commandName","before","TodoListEditing","ListEditing","commands","value","bulletedList","_selectedElements","format","push","todoListChecked","locale","ELEMENT_LIST_ITEM","enableCommand","type","checkTodoList","listItem","createPositionAt","from","filter","blockName","selection","registerDescriptionCallback","change","has","listIndent","getSelectedBlocks","afterInit","get","forceValue","createRange","todoList","ELEMENT_NUMBERED_LIST","todo","*Indent:* %0","checkChild","_descriptionFactory","execute","ELEMENT_TODO_LIST","previousSibling","paragraph","markBlockFormat","length","name","*Uncheck item*","TrackChangesEditing","indentList","model","schema","numberedList","*Change to:* %0","document","listType","getAttribute","nextSibling","ELEMENT_BULLETED_LIST","replace","element","plugins","slice","outdentList"];var Ds,Bs;Ds=Fs,Bs=388,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x28")](){const t=this.editor,e=t[Ps("0x18")];if(!t[Ps("0x5")][Ps("0x25")](Ps("0x10")))return;const n=t[Ps("0x5")][Ps("0x29")](Ps("0x3a")),i=t[Ps("0x5")][Ps("0x25")](Ps("0xf"));function r(e){return()=>{const i=t[Ps("0x3c")][Ps("0x40")][Ps("0x22")],r=t[Ps("0x11")][Ps("0x29")](e);if(r[Ps("0x12")])return void t[Ps("0x32")](Ps("0x35"),{});const o=e[Ps("0x6")](0,-4),s=function(t,e,n){let i=Array[Ps("0x1f")](t).filter((t=>{return e=t,(i=n)[Ps("0x30")](e.parent,Ps("0x1d"))&&!i.isObject(e);var e,i}));i=i.filter((t=>!t.is("element",Ps("0x1d"))||t[Ps("0x0")](Ps("0x41"))!=e));const r=new Set;for(const t of i)t.is(Ps("0x4"),Ps("0x1d"))?r[Ps("0xb")](js(t)):r[Ps("0xb")](t);return Array[Ps("0x1f")](r)}(i.getSelectedBlocks(),o,t[Ps("0x3c")][Ps("0x3d")]);t[Ps("0x3c")][Ps("0x24")]((()=>{for(const t of s)n[Ps("0x36")](t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:Ps("0x21")},Gs(t))}))}}function o(e){return()=>{const i=function(t){let e=Array[Ps("0x1f")](t);const n=e[Ps("0xa")]((t=>"listItem"!=t[Ps("0x38")]));return n>-1&&(e=e[Ps("0x6")](0,n)),e}(t[Ps("0x3c")].document[Ps("0x22")][Ps("0x27")]()),r=t[Ps("0x3c")][Ps("0x2b")](t.model[Ps("0x1e")](i[0],Ps("0xe")),t[Ps("0x3c")][Ps("0x1e")](i[i[Ps("0x37")]-1],"end"));t[Ps("0x3c")].change((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:Ps("0x26")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1")];for(;t&&t[Ps("0x0")](Ps("0x26"))>n[Ps("0x0")](Ps("0x26"));)e[Ps("0xb")](t),t=t[Ps("0x1")]}return Array.from(e)}(i))}))}}n[Ps("0x1a")](Ps("0x3e"),r("numberedList")),n[Ps("0x1a")]("bulletedList",r(Ps("0x13"))),i&&n.enableCommand(Ps("0x2c"),r(Ps("0x2c"))),n[Ps("0x1a")](Ps("0x3b"),o(Ps("0x3b"))),n.enableCommand("outdentList",o(Ps("0x7"))),i&&n[Ps("0x1a")](Ps("0x1c"),(()=>{const e=t.commands.get(Ps("0x1c")),i=Array[Ps("0x1f")](e[Ps("0x14")]);i[Ps("0x20")]((t=>t.getAttribute(Ps("0x17"))!=e[Ps("0x12")])),t[Ps("0x3c")][Ps("0x24")]((()=>{for(const t of i)n[Ps("0x36")](t,{commandName:Ps("0x1c"),commandParams:[{forceValue:!e[Ps("0x12")]}]})}))})),n._descriptionFactory[Ps("0x8")](Ps("0x1d"),(t=>Ji(e,Ps("0x19"),t))),n[Ps("0x31")][Ps("0x23")]((t=>{if("formatBlock"!=t[Ps("0x1b")]&&"formatInline"!=t[Ps("0x1b")])return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0xd")]||Ps("0x13")==n[Ps("0xd")]||Ps("0x2c")==n.commandName)switch(n[Ps("0xd")][Ps("0x3")](Ps("0x9"),"")){case"bulleted":return i(Ji(e,Ps("0x2")));case"numbered":return i(Ji(e,Ps("0x2d")));case Ps("0x2e"):return i(Ji(e,Ps("0x33")))}if(Ps("0x3b")==n.commandName)return{type:Ps("0x15"),content:Ji(e,Ps("0x2f"),Ji(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x7")==n[Ps("0xd")])return{type:Ps("0x15"),content:Ji(e,"*Outdent:* %0",Ji(e,Ps("0x19")))};if(Ps("0x1c")==n[Ps("0xd")])return n[Ps("0xc")][0][Ps("0x2a")]?{type:Ps("0x15"),content:Ji(e,"*Check item*")}:{type:Ps("0x15"),content:Ji(e,Ps("0x39"))}}function i(t){return{type:Ps("0x15"),content:Ji(e,Ps("0x3f"),t)}}}))}}function js(t){const e=t[Ps("0x0")](Ps("0x26"));if(0==e)return t;let n=t;for(;t[Ps("0x34")]&&t[Ps("0x34")].is(Ps("0x4"),Ps("0x1d"));){const i=t[Ps("0x34")][Ps("0x0")](Ps("0x26"));if(i==e)n=t[Ps("0x34")];else if(i<e)break;t=t[Ps("0x34")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x4"),Ps("0x1d"))&&t[Ps("0x0")](Ps("0x26"))>0){let n=t.nextSibling;for(;n&&Ps("0x1d")==n[Ps("0x38")]&&n[Ps("0x0")](Ps("0x26"))==t.getAttribute(Ps("0x26"));)e[Ps("0x16")](n),n=n[Ps("0x1")]}return e}const Vs=["registerDescriptionCallback","ListUtils","element","listType","_getSuggestionBlocks","listStart","handleListReversedCommand","enableCommand","afterInit","model","getLastPosition","formatBlock","_LIST_","*Format:* set order to reversed","parent","getListTypeFromListStyleType","from","getSiblingNodes","before","bind","has","_getSuggestionBlocksForListStyle","commandName","createRange","commandParams","selection","listItem","createPositionAt","unshift","_descriptionFactory","*Format:* set start index to %0","list.properties","TrackChangesEditing","toUpperCase","type","document","push","handleListStyleCommand","filter","ListPropertiesEditing","forward","listStyle","backward","replace","get","plugins","reversed","length","handleDescriptions","styles","numbered","flat","*Format:* set order to regular","_getTranslationKeyForListStyle","handleListStartCommand","getFirstPosition","listReversed","getSelectedBlocks","startIndex","map","change","format","markMultiRangeBlockFormat","editor","getAttribute"];var Hs,zs;Hs=Vs,zs=342,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x38")](){if(!this[Ws("0x2e")].plugins[Ws("0x3")](Ws("0x16")))return;const t=this.editor.config[Ws("0x1b")](Ws("0xe")),e=this[Ws("0x2e")][Ws("0x1c")][Ws("0x1b")]("TrackChangesEditing");t[Ws("0x20")]&&e[Ws("0x37")]("listStyle",this[Ws("0x14")][Ws("0x2")](this)),t.reversed&&e[Ws("0x37")](Ws("0x27"),this.handleListReversedCommand.bind(this)),t[Ws("0x29")]&&e.enableCommand("listStart",this[Ws("0x25")].bind(this)),e[Ws("0xc")][Ws("0x30")](this.handleDescriptions.bind(this))}[Ws("0x14")](t,e={}){const n=this[Ws("0x2e")][Ws("0x1c")][Ws("0x1b")](Ws("0xf")),i=this[Ws("0x4")]();this.editor[Ws("0x39")][Ws("0x2b")]((()=>{n[Ws("0x2d")](i,{commandName:Ws("0x18"),commandParams:[{type:e.type}],formatGroupId:Ws("0x18")})}))}[Ws("0x36")](t,e={}){const n=this.editor.plugins[Ws("0x1b")](Ws("0xf")),i=this[Ws("0x34")]((t=>t.is(Ws("0x32"),"listItem")&&Ws("0x21")===t[Ws("0x2f")](Ws("0x33"))));if(i[Ws("0x1e")]<1)return;const r=i[Ws("0x2a")]((t=>this.editor[Ws("0x39")][Ws("0x6")](this[Ws("0x2e")].model[Ws("0xa")](t,Ws("0x1")),this[Ws("0x2e")][Ws("0x39")][Ws("0xa")](t,0))));this.editor[Ws("0x39")][Ws("0x2b")]((()=>{n[Ws("0x2d")](r,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x27")})}))}[Ws("0x25")](t,e={}){const n=this[Ws("0x2e")][Ws("0x1c")][Ws("0x1b")](Ws("0xf")),i=this[Ws("0x34")]((t=>t.is(Ws("0x32"),"listItem")&&Ws("0x21")===t[Ws("0x2f")]("listType")));if(i[Ws("0x1e")]<1)return;const r=i[Ws("0x2a")]((t=>this[Ws("0x2e")][Ws("0x39")][Ws("0x6")](this.editor[Ws("0x39")].createPositionAt(t,"before"),this[Ws("0x2e")][Ws("0x39")].createPositionAt(t,0))));this[Ws("0x2e")][Ws("0x39")][Ws("0x2b")]((()=>{n[Ws("0x2d")](r,{commandName:Ws("0x35"),commandParams:[{startIndex:e[Ws("0x29")]}],formatGroupId:"listStart"})}))}[Ws("0x1f")](t){if(Ws("0x3b")!=t[Ws("0x11")]&&"formatInline"!=t[Ws("0x11")])return;const e=this[Ws("0x2e")].locale,{data:n}=t;if(!n)return;let i,r;switch(n[Ws("0x5")]){case"listStyle":i="*Change to:* %0",r={type:Ws("0x2c"),content:Ji(e,i,Ji(e,this[Ws("0x24")](n.commandParams[0][Ws("0x11")])))};break;case Ws("0x27"):i=n[Ws("0x7")][0][Ws("0x1d")]?Ws("0x3d"):Ws("0x23"),r={type:Ws("0x2c"),content:Ji(e,i)};break;case Ws("0x35"):i=Ws("0xd"),r={type:Ws("0x2c"),content:Ji(e,i,n[Ws("0x7")][0][Ws("0x29")])}}return r}[Ws("0x4")](){var t,e,n,i;const r=this[Ws("0x2e")][Ws("0x1c")][Ws("0x1b")]("ListUtils");let o=Array[Ws("0x40")](this[Ws("0x2e")][Ws("0x39")][Ws("0x12")][Ws("0x8")][Ws("0x28")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Ws("0x32"),Ws("0x9")))&&o[Ws("0xb")](...r[Ws("0x0")](this[Ws("0x2e")][Ws("0x39")][Ws("0x12")][Ws("0x8")][Ws("0x26")](),Ws("0x19"))),(null===(e=o[o[Ws("0x1e")]-1])||void 0===e?void 0:e.is(Ws("0x32"),"listItem"))&&o[Ws("0x13")](...r.getSiblingNodes(this[Ws("0x2e")][Ws("0x39")][Ws("0x12")].selection[Ws("0x3a")](),Ws("0x17"))),o=[...new Set(o)],(null===(i=null===(n=this.editor[Ws("0x39")][Ws("0x12")][Ws("0x8")][Ws("0x26")]())||void 0===n?void 0:n[Ws("0x3e")])||void 0===i?void 0:i.is(Ws("0x32"),Ws("0x9")))&&(o=o[Ws("0x15")]((t=>t.is(Ws("0x32"),Ws("0x9"))))),o}[Ws("0x34")](t){const e=this[Ws("0x2e")][Ws("0x1c")][Ws("0x1b")](Ws("0x31"));let n=Array[Ws("0x40")](this.editor[Ws("0x39")].document[Ws("0x8")].getSelectedBlocks())[Ws("0x15")](t).map((t=>{const n=this.editor[Ws("0x39")][Ws("0xa")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,Ws("0x17"))]}))[Ws("0x22")]();return n=[...new Set(n)],n}[Ws("0x24")](t){return"ELEMENT_"+this[Ws("0x2e")].plugins[Ws("0x1b")](Ws("0x31"))[Ws("0x3f")](t)[Ws("0x10")]()+Ws("0x3c")+t[Ws("0x10")]()[Ws("0x1a")](/-/g,"_")}}const qs=["for","mediaEmbed","editor","downcastDispatcher","conversion","high","locale","media","createEmptyElement","options","TrackChangesEditing","ELEMENT_MEDIA","showSuggestionHighlights","plugins","registerElementLabel","dataDowncast","div","enableCommand","has"];var $s,Xs;$s=qs,Xs=394,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){const t=this[Zs("0x7")];if(!t[Zs("0x12")][Zs("0x4")]("MediaEmbedEditing"))return;const e=t.plugins.get(Zs("0xf")),n=t[Zs("0xb")];e[Zs("0x3")](Zs("0x6")),e._descriptionFactory[Zs("0x0")](Zs("0xc"),(t=>Ji(n,Zs("0x10"),t))),t[Zs("0x9")][Zs("0x5")](Zs("0x1")).elementToElement({model:Zs("0xc"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0xd")](Zs("0x2"))},converterPriority:Zs("0xa")}),t.data[Zs("0x8")].on("attribute:url:media",((t,e,n)=>{n[Zs("0xe")][Zs("0x11")]&&t.stop()}),{priority:"high"})}}const Js=["has","afterInit","enableCommand","mention","MentionEditing"];var Qs,tx;Qs=Js,tx=259,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x2")](){const t=this.editor;t.plugins[ex("0x1")](ex("0x0"))&&t.plugins.get("TrackChangesEditing")[ex("0x3")](ex("0x4"))}}const ix=["plugins","ELEMENT_PAGE_BREAK","PageBreakEditing","has","locale","afterInit","TrackChangesEditing","pageBreak","enableCommand"];var rx,ox;rx=ix,ox=290,function(t){for(;--t;)rx.push(rx.shift())}(++ox);const sx=function(t,e){return ix[t-=0]};class xx extends t.Plugin{[sx("0x3")](){const t=this.editor;if(!t[sx("0x7")][sx("0x1")](sx("0x0")))return;t[sx("0x7")].get("TrackChangesEditing")[sx("0x6")](sx("0x5"));const e=t[sx("0x7")].get(sx("0x4")),n=t[sx("0x2")];e._descriptionFactory.registerElementLabel("pageBreak",(t=>Ji(n,sx("0x8"),t)))}}const ax=["showSuggestionHighlights","isBlock","ELEMENT_PARAGRAPH","insertion","model","_registerLegacyDescription","locale","format","writer","insertParagraph","afterInit","_descriptionFactory","mapper","nodeAfter","start","ck-suggestion-marker-split","data","enableCommand","span","toViewPosition","consumable","end","get","ck-suggestion-marker--active","editor","registerDescriptionCallback","markerRange","commandName","getFirstRange","TrackChangesEditing","schema","plugins","isLimit","consume","formatBlock","has","getItemLabel","editing","markerName","_enableDefaultAttributesIntegration","highest","checkChild","$text","downcastDispatcher","includes","*Change to:* %0","*Insert:* %0","isTouching","Paragraph","createUIElement","activeMarkers"];var cx,lx;cx=ax,lx=497,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x17")](){const t=this[ux("0x25")];if(!t[ux("0x2c")][ux("0x30")](ux("0xa")))return;const e=t[ux("0x13")],n=t[ux("0x2c")][ux("0x23")](ux("0x2a"));n[ux("0x18")].registerElementLabel("paragraph",(t=>Ji(e,ux("0xf"),t))),n[ux("0x1")]("paragraph"),n[ux("0x1e")](ux("0x16")),t[ux("0x32")][ux("0x5")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0x2")}),t[ux("0x1d")][ux("0x5")].on("addMarker:suggestion:insertion",((e,n,i)=>{i.options[ux("0xd")]&&gx(t,{showActiveMarker:!1})(e,n,i)}),{priority:"highest"});const i=n[ux("0x18")];i[ux("0x26")]((n=>{if(ux("0x10")!==n.type)return;const{start:r,end:o}=n[ux("0x29")]();if(!r.isTouching(o)||!r.nodeAfter)return;const s=t[ux("0x11")][ux("0x2b")],x=r.nodeAfter;return s[ux("0xe")](x)&&!s[ux("0x2d")](x)&&s[ux("0x3")](x,ux("0x4"))?{type:"insertion",content:Ji(e,ux("0x8"),i[ux("0x31")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x12")](){const t=this[ux("0x25")],e=t.locale;t[ux("0x2c")].get(ux("0x2a"))[ux("0x18")].registerDescriptionCallback((t=>{if(ux("0x2f")!=t.type)return;const{data:n}=t;return n&&"paragraph"==n[ux("0x28")]?{type:ux("0x14"),content:Ji(e,ux("0x7"),Ji(e,ux("0xf")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[ux("0x2c")][ux("0x23")](ux("0x2a")),s=i[ux("0x27")][ux("0x1b")],x=i[ux("0x27")][ux("0x22")],a=t[ux("0x11")].schema;if(!s[ux("0x9")](x)||!s.nodeAfter)return;const c=s[ux("0x1a")];if(a[ux("0xe")](c)&&!a.isLimit(c)&&a[ux("0x3")](c,ux("0x4"))){if(!r[ux("0x21")][ux("0x2e")](i[ux("0x27")],n.name))return;const t=r[ux("0x15")][ux("0xb")](ux("0x1f"),{class:ux("0x1c")}),s=r[ux("0x19")][ux("0x20")](x);e&&o[ux("0xc")][ux("0x6")](i[ux("0x0")])&&r[ux("0x15")].addClass(ux("0x24"),t),r.writer.insert(s,t),r[ux("0x19")].bindElementToMarker(t,i.markerName)}}}const fx=["_registerLegacyDescription","TrackChangesEditing","removeFormat","formatInline","has","afterInit","format","plugins","type","*Remove all formatting*","get","locale","RemoveFormatEditing","commandName","editor"];var mx,hx;mx=fx,hx=382,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xd")](){const t=this[px("0x7")];t[px("0x0")][px("0xc")](px("0x5"))&&(t.plugins[px("0x3")](px("0x9"))._enableDefaultAttributesIntegration(px("0xa")),this[px("0x8")]())}[px("0x8")](){const t=this[px("0x7")];t.plugins[px("0x3")](px("0x9"))._descriptionFactory.registerDescriptionCallback((e=>{if("formatBlock"!=e[px("0x1")]&&px("0xb")!=e[px("0x1")])return;const{data:n}=e;return n&&px("0xa")==n[px("0x6")]?{type:px("0xe"),content:Ji(t[px("0x4")],px("0x2"))}:void 0}))}}const Ex=["goToNextRestrictedEditingException","get","editor","TrackChangesEditing","discardSelectedSuggestions","plugins","has","trackChanges","acceptSelectedSuggestions","discardSuggestion","enableCommand","afterInit","RestrictedEditingModeEditing","acceptSuggestion"];var _x,Tx;_x=Ex,Tx=249,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x5")];if(!t[yx("0x8")][yx("0x9")](yx("0x1")))return;const e=t[yx("0x8")][yx("0x4")](yx("0x6"));e.enableCommand("goToPreviousRestrictedEditingException"),e[yx("0xd")](yx("0x3"));const n=t[yx("0x8")].get(yx("0x1"));n[yx("0xd")](yx("0xa")),n[yx("0xd")](yx("0x2")),n[yx("0xd")](yx("0xc")),n.enableCommand("acceptAllSuggestions"),n[yx("0xd")]("discardAllSuggestions"),n[yx("0xd")](yx("0xb")),n.enableCommand(yx("0x7"))}}const Ax=["createPositionBefore","options","locale","includes","addMarker:suggestion","shiftEnter","init","test","enableCommand","addMarker:suggestion:deletion","span","merge","TrackChangesEditing","addClass","ck-suggestion-marker--active","writer","requires","mapper","insert","plugins","editing","createUIElement","model","softBreak","name","data","downcastDispatcher","element","deletion","markerRange","_descriptionFactory","high","addMarker:suggestion:insertion","ELEMENT_LINE_BREAK","get","markerName"];var kx,Ix;kx=Ax,Ix=467,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Rx("0x11")](){return[lo.ShiftEnter]}[Rx("0x7")](){const t=this.editor,e=t[Rx("0x14")][Rx("0x23")](Rx("0xd"));e[Rx("0x9")](Rx("0x6")),t[Rx("0x15")][Rx("0x1b")].on(Rx("0x21"),Sx(t),{priority:Rx("0x20")}),t[Rx("0x15")][Rx("0x1b")].on(Rx("0xa"),Sx(t),{priority:"high"}),t[Rx("0x1a")][Rx("0x1b")].on(Rx("0x5"),((e,n,i)=>{i[Rx("0x2")].showSuggestionHighlights&&Sx(t,{showActiveMarker:!1})(e,n,i)})),e[Rx("0x1f")].registerElementLabel(Rx("0x18"),(e=>Ji(t[Rx("0x3")],Rx("0x22"),e)))}}function Sx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t.plugins[Rx("0x23")](Rx("0xd"));if(!r.consumable[Rx("0x8")](i.markerRange,n[Rx("0x19")]))return;const s=t[Rx("0x17")];for(const t of i[Rx("0x1e")].getItems()){if(!t.is(Rx("0x1c"),"softBreak"))continue;const n=Rx("0x1d")==i[Rx("0x0")].split(":")[1]?Rx("0xc"):"split",x=r[Rx("0x10")][Rx("0x16")](Rx("0xb"),{class:"ck-suggestion-marker-"+n}),a=r[Rx("0x12")].toViewPosition(s[Rx("0x1")](t));e&&o.activeMarkers[Rx("0x4")](i.markerName)&&r[Rx("0x10")][Rx("0xe")](Rx("0xf"),x),r.writer[Rx("0x13")](a,x),r[Rx("0x12")].bindElementToMarker(x,i[Rx("0x0")])}}}const Nx=["type","format","forceValue","has","markInlineFormat","afterInit","model","formatBlock","value","commandName","editor","restrictedEditingException","StandardEditingModeEditing","isCollapsed","enableCommand","get","_descriptionFactory","commands","formatInline","commandParams","plugins","FORMAT_RESTRICTED_DISABLED","locale","from"];var Lx,Mx;Lx=Nx,Mx=353,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xc")](){const t=this[wx("0x11")],e=t[wx("0xd")],n=t[wx("0x5")];if(!t[wx("0x3")][wx("0xa")](wx("0x13")))return;const i=t[wx("0x3")][wx("0x16")]("TrackChangesEditing"),r=wx("0x12"),o=t[wx("0x0")][wx("0x16")](r);i[wx("0x15")](r,((t,n={})=>{const s=e.document.selection;if(s[wx("0x14")])return void t(n);const x=void 0!==n[wx("0x9")]?n.forceValue:!o[wx("0xf")];e.change((()=>{const t=Array[wx("0x6")](s.getRanges());for(const n of t){const t=x?[n]:qr(r,n,e);for(const e of t)i[wx("0xb")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),i[wx("0x17")].registerDescriptionCallback((t=>{if(wx("0xe")!=t[wx("0x7")]&&wx("0x1")!=t[wx("0x7")])return;const{data:e}=t;return e&&e[wx("0x10")]==r?e[wx("0x2")][0][wx("0x9")]?{type:wx("0x8"),content:Ji(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0x8"),content:Ji(n,wx("0x4"))}:void 0}))}}const Fx=["commandName","has","Style","add","editor","normalizeConfig","*Set format:* %0","forceValue","getGhsAttributeNameForElement","commandParams","_descriptionFactory","element","FORMAT_STYLE","DataSchema","registerAttributeLabel","StyleUtils","styleName","_registerLegacyDescription","style","plugins","GeneralHtmlSupport","type","get","toLowerCase","_registerBlockAttribute","locale","format","_registerInlineAttribute","TrackChangesEditing","block","registerDescriptionCallback","definitions"];var Dx,Bx;Dx=Fx,Bx=241,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[Px("0x2")][Px("0x10")](Px("0x11"))||!t[Px("0x2")].has(Px("0x1c")))return;const e=t.plugins.get(Px("0xb")),n=t[Px("0x8")],i=t.config[Px("0x5")](Px("0x1")),r=t[Px("0x2")][Px("0x5")](Px("0x3")),o=t[Px("0x2")][Px("0x5")](Px("0x1e"))[Px("0x14")](t[Px("0x2")][Px("0x5")](Px("0x1c")),i[Px("0xe")]);e._enableDefaultAttributesIntegration(Px("0x1"));const s=new Set;for(const t of o[Px("0xc")]){const e=r[Px("0x17")](t[Px("0x1a")]);s[Px("0x12")](e)}const x=new Set;for(const t of o.inline){const e=r[Px("0x17")](t[Px("0x1a")]);x.add(e);for(const e of t.ghsAttributes)x[Px("0x12")](e)}for(const t of s)e[Px("0x7")](t),e[Px("0x19")].registerAttributeLabel(t,Ji(n,"FORMAT_STYLE"));for(const t of x)e[Px("0xa")](t),e[Px("0x19")][Px("0x1d")](t,Ji(n,Px("0x1b")));this[Px("0x0")]()}_registerLegacyDescription(){const t=this[Px("0x13")],e=t[Px("0x8")];t[Px("0x2")][Px("0x5")](Px("0xb"))[Px("0x19")][Px("0xd")]((t=>{if("formatBlock"!=t[Px("0x4")]&&"formatInline"!=t[Px("0x4")])return;const{data:n}=t;return n&&Px("0x1")===n[Px("0xf")]?n[Px("0x18")][0][Px("0x16")]?{type:"format",content:Ji(e,Px("0x15"),n[Px("0x18")][0][Px("0x1f")][Px("0x6")]())}:{type:Px("0x9"),content:Ji(e,"*Remove format:* %0",n[Px("0x18")][0][Px("0x1f")][Px("0x6")]())}:void 0}))}}const jx=["map","nodeBefore","ELEMENT_TABLE_COLUMN_WITH_TEXT","$textProxy","plugins","maxRow","getItems","$graveyard","change","TableUtils","highest","classes","suggestion","first","refresh","hasAttribute","accept","removeTableRow","type","TableEditing","addMarker:suggestion","createPositionAt","deletion","table","getFirstRange","_splitMarkerName","item","getRanges","_getSuggestionCoords","isInContent","add","isArray","_tableSuggestions","TrackChangesEditing","locale","above","detach","has","max","_getCoordsForCells","substr","_descriptionFactory","*Remove:* %0","model","nodeAfter","showSuggestionHighlights","insertTableColumnLeft","length","start","tableCell","ELEMENT_TABLE","every","markMultiRangeDeletion","writer","createRangeOn","some","mapper","get","getChanges","from","push","isIntersectingWithRange","change:data","MIN_SAFE_INTEGER","minColumn","setSelection","filter","batch","getAttribute","createTableWalker","addClass","span","afterInit","ELEMENT_TABLE_ROW","discard","getColumnIndexes","low","cell","subType","tableRow","toLowerCase","addRange","tablePaste","last","tableColumn","document","ELEMENT_TABLE_WITH_TEXT","data","enqueueChange","markMultiRangeInsertion","insertTableRowBelow","registerPostFixer","getChildren","oldRange","findAncestor","insertTableColumnRight","colspan","values","selectTableColumn","_suggestionFactory","order","end","getContainedElement","*Insert:* %0","commands","maxColumn","editor","selectTableRow","join","root","removeTableColumn","registerCustomCallback","downcastDispatcher","execute","position","getCellLocation","ELEMENT_TABLE_ROW_WITH_TEXT","insertTableRowAbove","getSelectionAffectedTableCells","createRangeIn","insertion","registerDescriptionCallback","enableCommand","_setupColumnsRowsFixing","isEqual","getSuggestion","fromRange","registerElementLabel","ELEMENT_TABLE_COLUMN","selection","rowspan","insert","options","name","left","rootName"];var Gx,Vx;Gx=jx,Vx=183,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x20"),Hx("0x25")],this[Hx("0x79")]=new Set}[Hx("0x19")](){const t=this[Hx("0x3b")],e=t[Hx("0x84")][Hx("0x26")][Hx("0x52")];if(!t[Hx("0x5d")][Hx("0x7e")](Hx("0x6c")))return;const n=t[Hx("0x7b")],i=t[Hx("0x5d")].get("TrackChangesEditing"),r=t.plugins[Hx("0xa")]("TableUtils");i._descriptionFactory[Hx("0x50")](Hx("0x70"),(t=>Ji(n,Hx("0x3"),t))),this[Hx("0x4c")](),i[Hx("0x4b")]("insertTable"),i[Hx("0x4b")](Hx("0x3c")),i[Hx("0x4b")](Hx("0x33"));for(const n of[Hx("0x46"),Hx("0x2b")]){const o=t[Hx("0x39")].get(n);i[Hx("0x4b")](n,(n=>{t[Hx("0x84")][Hx("0x61")]((t=>{n();const s=Hx("0x7c")===o.order,x=r[Hx("0x47")](e),a=r.getRowIndexes(x),c=s?a[Hx("0x66")]-1:a[Hx("0x24")]+1,l=x[0][Hx("0x2f")](Hx("0x70")),u=r[Hx("0x16")](l,{startRow:c,endRow:c}),d=Array[Hx("0xc")](u).map((e=>t[Hx("0x7")](e[Hx("0x1e")])));i.markMultiRangeInsertion(d,Hx("0x20"))}))}))}for(const n of[Hx("0x87"),Hx("0x30")]){const o=t[Hx("0x39")].get(n);i.enableCommand(n,(n=>{t.model[Hx("0x61")]((t=>{n();const s=Hx("0x57")===o[Hx("0x35")],x=r[Hx("0x47")](e),a=r.getColumnIndexes(x),c=s?a[Hx("0x66")]-1:a.last+1,l=x[0][Hx("0x2f")]("table"),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0xc")](u).map((e=>t.createRangeOn(e[Hx("0x1e")])));i[Hx("0x2a")](d,Hx("0x25"))}))}))}for(const n of[Hx("0x6a"),Hx("0x3f")]){const o=n[Hx("0x81")](11),s=o[Hx("0x21")](),x=s[Hx("0x81")](0,3)+Hx("0x18"),a=Hx("0x70")+o,c="min"+o,l="max"+o;i[Hx("0x4b")](n,(()=>{t.model[Hx("0x61")]((t=>{const o=r[Hx("0x47")](e),u=o[0][Hx("0x2f")](Hx("0x70"));let d;if(Hx("0x6a")==n){const t=r.getRowIndexes(o);d={startRow:t[Hx("0x66")],endRow:t.last,includeAllSlots:!0}}else{const t=r[Hx("0x1c")](o);d={startColumn:t.first,endColumn:t.last,includeAllSlots:!0}}const g=r[Hx("0x16")](u,d),f=Array[Hx("0xc")](g)[Hx("0x59")]((({cell:t})=>t)),m=Wx(f[Hx("0x13")]((t=>t[Hx("0x68")](x)))),h=Wx(f[Hx("0x13")]((t=>!t.hasAttribute(x))))[Hx("0x59")]((e=>t[Hx("0x7")](e))),p=i[Hx("0x5")](h,a);if(p&&(Hx("0x20")==p[Hx("0x1f")]||Hx("0x25")==p.subType)){const e=this[Hx("0x75")](p);for(const n of m){const i=t[Hx("0x7")](n),o=r[Hx("0x44")](n),a=n[Hx("0x15")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p[Hx("0x22")](i)}}}))}))}function o(n){const i=Array[Hx("0xc")](e[Hx("0x74")]())[Hx("0x59")]((t=>s.LiveRange.fromRange(t)));t.model[Hx("0x61")]((e=>{const r=e[Hx("0x14")];n=n.filter((t=>Hx("0x60")!=t[Hx("0x3e")][Hx("0x58")])),e[Hx("0x12")](n),t[Hx("0x39")][Hx("0xa")](Hx("0x6a"))[Hx("0x67")](),t[Hx("0x42")](Hx("0x6a"),{forceDefaultExecution:!0}),t.model[Hx("0x29")]((()=>{t[Hx("0x84")].enqueueChange(r,(t=>{const e=i.filter((t=>"$graveyard"!=t.root[Hx("0x58")]));e[Hx("0x0")]>0&&t[Hx("0x12")](e);for(const t of i)t[Hx("0x7d")]()}))}))}))}function a(n){t[Hx("0x84")][Hx("0x61")]((i=>{const r=Array[Hx("0xc")](e.getRanges())[Hx("0x59")]((t=>s.LiveRange.fromRange(t))),o=[];for(const t of n)for(const e of t.getItems({shallow:!0}))o.push(e);for(const e of o)"$graveyard"!=e[Hx("0x3e")][Hx("0x58")]&&(i.setSelection(i[Hx("0x6e")](e,0)),t[Hx("0x39")][Hx("0xa")](Hx("0x3f"))[Hx("0x67")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=r[Hx("0x13")]((t=>"$graveyard"!=t[Hx("0x3e")][Hx("0x58")]));x.length>0&&i.setSelection(x);for(const t of r)t[Hx("0x7d")]()}))}function c(t,e){return e[Hx("0x4")]((e=>t[Hx("0x8")]((t=>t.end[Hx("0x4d")](e.start)||e[Hx("0x36")].isEqual(t[Hx("0x1")])))))}function l(t,e){return t[Hx("0x8")]((t=>e[Hx("0x8")]((e=>t[Hx("0x36")].isTouching(e[Hx("0x1")])))))}t[Hx("0x28")][Hx("0x41")].on(Hx("0x6d"),((t,e,n)=>{if(!n[Hx("0x55")][Hx("0x86")])return;const i=e[Hx("0x73")];if(!i)return;const r=n[Hx("0x9")].toViewElement(i);function o(t){return Array[Hx("0x78")](t)?t:[t]}r&&"tableCell"===i[Hx("0x56")]&&(0,x.setHighlightHandling)(r,n[Hx("0x6")],((t,e,n)=>n[Hx("0x17")](o(e[Hx("0x64")]),t)),((t,e,n)=>n.removeClass(o(e[Hx("0x64")]),t)))}),{priority:Hx("0x63")}),i[Hx("0x82")][Hx("0x4a")]((t=>{if("insertion"!=t[Hx("0x6b")]&&"deletion"!=t[Hx("0x6b")])return;const e=t[Hx("0x37")]();if(null!=e&&e.is("element",Hx("0x70"))){if("insertion"==t.type){const e=t[Hx("0x5f")]().filter((t=>t.is(Hx("0x5c"))))[Hx("0x59")]((t=>t.data));if(e[Hx("0x0")])return{type:Hx("0x49"),content:Ji(n,"*Insert:* %0",Ji(n,Hx("0x27"),'"'+e[Hx("0x3d")](" ")+'"'))}}if(Hx("0x6f")==t[Hx("0x6b")]){const e=t[Hx("0x5f")]()[Hx("0x13")]((t=>t.is("$textProxy")))[Hx("0x59")]((t=>t[Hx("0x28")]));if(e[Hx("0x0")])return{type:Hx("0x6f"),content:Ji(n,Hx("0x83"),Ji(n,Hx("0x27"),'"'+e[Hx("0x3d")](" ")+'"'))}}}})),i[Hx("0x82")][Hx("0x4a")]((t=>{if(Hx("0x20")==t.subType){const e=t[Hx("0x5f")]()[Hx("0x13")]((t=>t.is("$textProxy"))).map((t=>t[Hx("0x28")])),i=this[Hx("0x75")](t),r=i[Hx("0x5e")]-i.minRow+1;if("insertion"==t[Hx("0x6b")])return e[Hx("0x0")]?{type:Hx("0x49"),content:Ji(n,Hx("0x38"),Ji(n,Hx("0x45"),[r,'"'+e[Hx("0x3d")](" ")+'"']))}:{type:"insertion",content:Ji(n,Hx("0x38"),Ji(n,Hx("0x1a"),r))};if(Hx("0x6f")==t.type)return e.length?{type:Hx("0x6f"),content:Ji(n,Hx("0x83"),Ji(n,Hx("0x45"),[r,'"'+e[Hx("0x3d")](" ")+'"']))}:{type:Hx("0x6f"),content:Ji(n,"*Remove:* %0",Ji(n,Hx("0x1a"),r))}}if("tableColumn"==t[Hx("0x1f")]){const e=t[Hx("0x5f")]()[Hx("0x13")]((t=>t.is(Hx("0x5c")))).map((t=>t.data)),i=this[Hx("0x75")](t),r=i[Hx("0x3a")]-i[Hx("0x11")]+1;if(Hx("0x49")==t[Hx("0x6b")])return e[Hx("0x0")]?{type:"insertion",content:Ji(n,Hx("0x38"),Ji(n,Hx("0x5b"),[r,'"'+e[Hx("0x3d")](" ")+'"']))}:{type:"insertion",content:Ji(n,"*Insert:* %0",Ji(n,Hx("0x51"),r))};if(Hx("0x6f")==t.type)return e[Hx("0x0")]?{type:Hx("0x6f"),content:Ji(n,Hx("0x83"),Ji(n,Hx("0x5b"),[r,'"'+e[Hx("0x3d")](" ")+'"']))}:{type:Hx("0x6f"),content:Ji(n,Hx("0x83"),Ji(n,Hx("0x51"),r))}}})),i[Hx("0x34")][Hx("0x40")](Hx("0x49"),Hx("0x20"),Hx("0x1b"),o),i[Hx("0x34")][Hx("0x40")]("deletion","tableRow",Hx("0x69"),o),i._suggestionFactory[Hx("0x40")](Hx("0x49"),"tableColumn",Hx("0x1b"),a),i._suggestionFactory[Hx("0x40")]("deletion",Hx("0x25"),Hx("0x69"),a),i[Hx("0x34")][Hx("0x40")]("insertion","tableColumn","join",c),i[Hx("0x34")][Hx("0x40")](Hx("0x6f"),Hx("0x25"),Hx("0x3d"),c),i[Hx("0x34")].registerCustomCallback(Hx("0x49"),Hx("0x20"),Hx("0x3d"),l),i[Hx("0x34")].registerCustomCallback(Hx("0x6f"),Hx("0x20"),"join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this.editor,e=t[Hx("0x84")][Hx("0x26")].selection;return(n,i)=>{t[Hx("0x84")][Hx("0x61")]((r=>{const{commandName:o,commandParams:x}=i;let a=n[0].end[Hx("0x5a")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0x1")][Hx("0x85")]);const c=r[Hx("0x48")](a);if(Hx("0x60")==c.root.rootName)return;const l=Array[Hx("0xc")](e[Hx("0x74")]())[Hx("0x59")]((t=>s.LiveRange[Hx("0x4f")](t)));r.setSelection(c),t.commands[Hx("0xa")](o)[Hx("0x67")](),x[Hx("0xd")]({forceDefaultExecution:!0}),t[Hx("0x42")](o,...x);const u=l[Hx("0x13")]((t=>Hx("0x60")!=t[Hx("0x3e")].rootName));u[Hx("0x0")]>0&&r[Hx("0x12")](u);for(const t of l)t.detach()}))}}[Hx("0x80")](t){const e=this[Hx("0x3b")].plugins[Hx("0xa")](Hx("0x62"));let n=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x10")];for(const s of t){if(Hx("0x60")==s[Hx("0x3e")][Hx("0x58")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Hx("0x68")](Hx("0x53"))?s.getAttribute(Hx("0x53"))-1:0,c=s[Hx("0x68")](Hx("0x31"))?s.getAttribute("colspan")-1:0;n=t<n?t:n,i=t+a>i?t+a:i,r=x<r?x:r,o=x+c>o?x+c:o}return{minRow:n,maxRow:i,minColumn:r,maxColumn:o}}[Hx("0x4c")](){const t=this[Hx("0x3b")],e=t[Hx("0x5d")][Hx("0xa")](Hx("0x7a")),n=t.plugins.get(Hx("0x62"));t[Hx("0x84")][Hx("0x26")].on(Hx("0xf"),(()=>{const n=Array[Hx("0xc")](t.model[Hx("0x26")].differ.getChangedMarkers());for(const{name:t,data:i}of n){const{group:n,id:r,subType:o}=e[Hx("0x72")](t);if(Hx("0x65")!=n)continue;if(null!=i[Hx("0x2e")])continue;const s=e[Hx("0x4e")](r);this._tablePostFixingSubtypes.includes(o)&&this._tableSuggestions[Hx("0x77")](s)}}),{priority:Hx("0x1d")});const i=(t,e)=>{let i=!1;const r=e[Hx("0x7")](t),o=t.findAncestor(Hx("0x70")),s=n.getCellLocation(t);for(const e of this[Hx("0x79")]){const n=e[Hx("0x1f")],x=n.startsWith(Hx("0x23")),a=n[Hx("0x81")](x?10:5),c=a[Hx("0x21")](),l=c[Hx("0x81")](0,3)+Hx("0x18"),u="min"+a,d=Hx("0x7f")+a;if(!e[Hx("0x76")])continue;if(o!=e[Hx("0x71")]()[Hx("0x1")][Hx("0x2f")](Hx("0x70")))continue;if(e[Hx("0xe")](r))continue;const g=t[Hx("0x68")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x75")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(r),i=!0)}return i};t[Hx("0x84")][Hx("0x26")][Hx("0x2c")]((e=>{let n=!1;for(const r of t[Hx("0x84")][Hx("0x26")].differ[Hx("0xb")]())if(Hx("0x54")==r[Hx("0x6b")])if("tableRow"==r[Hx("0x56")])for(const t of r[Hx("0x43")][Hx("0x85")][Hx("0x2d")]())n=n||i(t,e);else Hx("0x2")==r.name&&(n=n||i(r[Hx("0x43")][Hx("0x85")],e));return n}))}[Hx("0x75")](t){return this[Hx("0x80")](t.getRanges()[Hx("0x59")]((t=>t.start[Hx("0x85")])))}}function Wx(t){return Array[Hx("0xc")](new Set(t)[Hx("0x32")]())}const Kx=["get","formatInline","*Merge cells*","plugins","isInContent","registerDescriptionCallback","from","mergeTableCellUp","commands","*Split cell:* horizontally","accept","enableCommand","TableUtils","add","createTableWalker","mergeTableCellRight","document","locale","commandName","_areSelectedCellsMergable","_areMergableCells","rootName","horizontally","getSuggestions","mergeTableCells","isEnabled","*Split cell:* vertically","_suggestionFactory","selection","forceDefaultExecution","type","getAncestors","deletion","change","formatBlock","detach","TrackChangesEditing","low","fromRange","_descriptionFactory","find","filter","registerCustomCallback","cell","has","tableCell","_isForcedDefaultExecutionBlock","editor","set:isEnabled","TableEditing","_acceptFormatSuggestionCallbackFactory","containsRange","$graveyard","size","afterInit","stop","subType","insertion","push","getFirstPosition","requires","setSelection","trackChanges","getSelectionAffectedTableCells","map","getCellLocation","length","value","refresh","markMultiRangeBlockFormat","findAncestor","format","mergeTableCellDown","markBlockFormat","createRangeOn","getRanges","model","splitTableCellVertically","mergeTableCellLeft","author","splitTableCellHorizontally"];var qx,$x;qx=Kx,$x=467,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[Xx("0x4f")](){return[zx]}[Xx("0x49")](){const t=this[Xx("0x42")],e=t.model[Xx("0x23")][Xx("0x2f")],n=t[Xx("0x24")];if(!t[Xx("0x16")][Xx("0x3f")](Xx("0x44")))return;const i=t[Xx("0x16")][Xx("0x13")](Xx("0x37")),r=t[Xx("0x16")].get(Xx("0x1f")),o=t[Xx("0x16")][Xx("0x13")](zx);o._tablePostFixingSubtypes[Xx("0x4d")](Xx("0x2b")),i[Xx("0x1e")](Xx("0x2b"),(()=>{const e=r.getSelectionAffectedTableCells(t[Xx("0xe")][Xx("0x23")][Xx("0x2f")]);t[Xx("0xe")].change((()=>{i[Xx("0x7")](e,{commandName:Xx("0x2b"),commandParams:[]},[],"mergeTableCells")}))})),t[Xx("0x1b")][Xx("0x13")]("mergeTableCells").on("execute",((e,n)=>{t.commands[Xx("0x13")](Xx("0x0")).value&&(n[Xx("0x4")]>0&&n[n[Xx("0x4")]-1]&&n[n[Xx("0x4")]-1][Xx("0x30")]||i[Xx("0x41")]||this[Xx("0x26")]()||e[Xx("0x4a")]())}),{priority:"highest"});for(const e of[Xx("0x1a"),"mergeTableCellRight",Xx("0xa"),Xx("0x10")]){const n=t[Xx("0x1b")].get(e);i[Xx("0x1e")](e,(()=>{const e=t[Xx("0xe")].document[Xx("0x2f")][Xx("0x4e")]()[Xx("0x32")]().find((t=>t.is("element",Xx("0x40")))),r=n.value;t.model[Xx("0x34")]((()=>{i.markMultiRangeBlockFormat([e,r],{commandName:Xx("0x2b"),commandParams:[]},[],Xx("0x2b"))}))}))}for(const e of[Xx("0xf"),Xx("0x12")]){const n=t.commands[Xx("0x13")](e);i.enableCommand(e,(()=>{const o=r[Xx("0x1")](t[Xx("0xe")][Xx("0x23")].selection)[0],s=o[Xx("0x8")]("table"),{column:x,row:a}=r[Xx("0x3")](o);let c=[];if(Xx("0x29")==n.direction){const t=r[Xx("0x21")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x19")](t).map((t=>t[Xx("0x3e")]))}else{const t=r.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t.cell))}t[Xx("0xe")].change((t=>{i[Xx("0xb")](t.createRangeOn(o),{commandName:e,commandParams:[]},c,e)}))}))}i[Xx("0x3a")][Xx("0x18")]((t=>{if(Xx("0x35")!=t[Xx("0x31")]&&Xx("0x14")!=t[Xx("0x31")])return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:"format",content:Ji(n,Xx("0x15"))}:void 0})),i._descriptionFactory[Xx("0x18")]((t=>{if(Xx("0x35")!=t.type&&"formatInline"!=t[Xx("0x31")])return;const{data:e}=t;return e?"splitTableCellVertically"==e[Xx("0x25")]?{type:Xx("0x9"),content:Ji(n,Xx("0x2d"))}:Xx("0x12")==e[Xx("0x25")]?{type:Xx("0x9"),content:Ji(n,Xx("0x1c"))}:void 0:void 0}));const x=o[Xx("0x45")]();for(const t of["mergeTableCellUp",Xx("0x22"),"mergeTableCellDown",Xx("0x10")])i[Xx("0x2e")][Xx("0x3d")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])i[Xx("0x2e")][Xx("0x3d")](Xx("0x35"),t,Xx("0x1d"),x);i[Xx("0x2e")][Xx("0x3d")](Xx("0x35"),Xx("0x2b"),Xx("0x1d"),(n=>{t.model[Xx("0x34")]((i=>{const r=Array[Xx("0x19")](e[Xx("0xd")]())[Xx("0x2")]((t=>s.LiveRange[Xx("0x39")](t)));i[Xx("0x50")](n),t[Xx("0x1b")].get("mergeTableCells")[Xx("0x6")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const o=r[Xx("0x3c")]((t=>Xx("0x47")!=t.root[Xx("0x28")]));o[Xx("0x4")]>0&&i.setSelection(o);for(const t of r)t[Xx("0x36")]()}))}));for(const e of["mergeTableCellUp",Xx("0xa"),Xx("0x10"),"mergeTableCellRight"]){const n=t[Xx("0x1b")].get(e);n.on(Xx("0x43"),((e,i,r)=>{if(r){const i=t[Xx("0xe")][Xx("0x23")][Xx("0x2f")][Xx("0x4e")]()[Xx("0x32")]()[Xx("0x3b")]((t=>t.is("element",Xx("0x40"))));this[Xx("0x27")](n[Xx("0x5")],i)||(e.return=!1,e[Xx("0x4a")]())}}),{priority:Xx("0x38")})}}_areSelectedCellsMergable(){const t=this[Xx("0x42")].commands[Xx("0x13")]("mergeTableCells"),e=this[Xx("0x42")][Xx("0x16")][Xx("0x13")]("TableUtils");if(!t[Xx("0x2c")])return!1;const n=e.getSelectionAffectedTableCells(this.editor[Xx("0xe")].document[Xx("0x2f")]);for(const t of n)for(const e of n)if(t!=e&&!this[Xx("0x27")](t,e))return!1;return!0}[Xx("0x27")](t,e){const n=this.editor.plugins[Xx("0x13")]("TrackChangesEditing"),i=this.editor.model[Xx("0xc")](t),r=this.editor[Xx("0xe")][Xx("0xc")](e),o=new Set,s=new Set;for(const t of n[Xx("0x2a")]())if((Xx("0x4c")==t.type||Xx("0x33")==t.type||Xx("0x2b")==t[Xx("0x4b")])&&t[Xx("0x17")])for(const e of t[Xx("0xd")]())e[Xx("0x46")](i,!0)&&o[Xx("0x20")](t[Xx("0x31")]+":"+t[Xx("0x11")].id),e.containsRange(r,!0)&&s[Xx("0x20")](t[Xx("0x31")]+":"+t[Xx("0x11")].id);if(o[Xx("0x48")]!=s.size)return!1;for(const t of o)if(!s[Xx("0x3f")](t))return!1;return!0}}const Yx=["getSuggestion","consume","get","TableUtils","bindElementToMarker","_splitMarkerName","registerCustomCallback","FORMAT_REGULAR_COLUMN","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","_enableDefaultAttributesIntegration","writer","afterInit","markerName","nodeBefore","FORMAT_REGULAR_ROW","options","has","data-suggestion","registerAttributeLabel","TrackChangesEditing","addMarker:suggestion","format","item","addClass","consumable","cell","markerRange","editor","showSuggestionHighlights","requires","FORMAT_HEADER_ROW","toViewElement","parent","setTableRowHeader","accept","type","_handleLegacySuggestions","FORMAT_HEADER_COLUMN","removeClass","createTableWalker","commandParams","_registerLegacyDescription","editing","formatBlock","registerDescriptionCallback","data","downcastDispatcher","TableEditing","headingColumns","plugins","commandName","forceValue","locale","highest","setTableColumnHeader","unbindElementFromMarkerName","setAttribute","getCellLocation","end","mapper","nodeAfter","_descriptionFactory"];var Jx,Qx;Jx=Yx,Qx=100,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x38")](){return[zx]}[ta("0x26")](){const t=this[ta("0x36")];if(!t.plugins[ta("0x2b")](ta("0xb")))return;const e=t[ta("0x10")],n=t[ta("0xd")].get(ta("0x2e"));n[ta("0x24")](ta("0x3c"),[],["headingRows"]),n._enableDefaultAttributesIntegration(ta("0x12"),[],[ta("0xc")]),n[ta("0x19")][ta("0x2d")]("headingRows",Ji(e,ta("0x39"))),n[ta("0x19")][ta("0x2d")](ta("0xc"),Ji(e,"FORMAT_HEADER_COLUMN")),this[ta("0x0")]()}[ta("0x0")](){const t=this[ta("0x36")][ta("0xd")][ta("0x1c")](ta("0x2e")),e=this[ta("0x36")][ta("0xd")][ta("0x1c")](ta("0x1d")),n=this[ta("0x36")].plugins[ta("0x1c")](zx)[ta("0x23")]();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(r,o,s)=>{const{type:x,id:a}=t._splitMarkerName(o[ta("0x27")]),c=t[ta("0x1a")](a),l=c[ta("0x9")];if(ta("0x7")!=c[ta("0x3e")]||!l||ta("0x12")!=l[ta("0xe")])return;if(o[ta("0x31")])return void r.stop();if(!s[ta("0x33")][ta("0x1b")](o[ta("0x35")],r.name))return;const u=o[ta("0x35")].start[ta("0x18")],d=o.markerRange[ta("0x16")][ta("0x28")],g=u[ta("0x3b")][ta("0x3b")],{column:f}=e[ta("0x15")](u),{column:m}=e[ta("0x15")](d);for(let r=f;r<=m;r++){const c=e[ta("0x3")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x34")],c=s[ta("0x17")][ta("0x3a")](r);s[ta("0x25")][ta("0x32")]("ck-suggestion-marker-"+x,c),i&&s[ta("0x25")][ta("0x14")](ta("0x2c"),a,c),s[ta("0x17")][ta("0x1e")](c,o.markerName),n&&(t.activeMarkers.includes(o[ta("0x27")])?s[ta("0x25")][ta("0x32")]("ck-suggestion-marker--active",c):s.writer[ta("0x2")]("ck-suggestion-marker--active",c))}}}}t._suggestionFactory[ta("0x20")](ta("0x7"),"setTableRowHeader",ta("0x3d"),n),t._suggestionFactory[ta("0x20")](ta("0x7"),"setTableColumnHeader",ta("0x3d"),n),this[ta("0x36")].editing[ta("0xa")].on(ta("0x2f"),i(),{priority:ta("0x11")}),this[ta("0x36")].data.downcastDispatcher.on(ta("0x2f"),((t,e,n)=>{n[ta("0x2a")][ta("0x37")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x11")}),this.editor[ta("0x6")].downcastDispatcher.on("removeMarker:suggestion",((e,n,i)=>{const{type:r,id:o}=t[ta("0x1f")](n[ta("0x27")]),s=t.getSuggestion(o),x=s[ta("0x9")];if("formatBlock"!=s[ta("0x3e")]||!x||ta("0x12")!=x.commandName)return;const a=i[ta("0x17")].markerNameToElements(n[ta("0x27")]);if(a)for(const t of a)i[ta("0x25")].removeClass("ck-suggestion-marker-"+r,t),i[ta("0x25")][ta("0x2")](ta("0x22"),t),i[ta("0x25")].removeAttribute(ta("0x2c"),t),i.mapper[ta("0x13")](t,n.markerName)}),{priority:ta("0x11")}),this[ta("0x5")]()}_registerLegacyDescription(){const t=this[ta("0x36")],e=t[ta("0x10")];function n(t){return{type:ta("0x30"),content:Ji(e,"*Format:* %0",t)}}t[ta("0xd")][ta("0x1c")](ta("0x2e"))._descriptionFactory[ta("0x8")]((t=>{if("formatBlock"!=t[ta("0x3e")])return;const{data:i}=t;if(i){if("setTableRowHeader"==i[ta("0xe")]){const t=i[ta("0x4")][0][ta("0xf")];return n(Ji(e,ta(t?"0x39":"0x29")))}if("setTableColumnHeader"==i[ta("0xe")]){const t=i[ta("0x4")][0][ta("0xf")];return n(Ji(e,ta(t?"0x1":"0x21")))}}}))}}const na=["suggestionLoaded","formatBlock","from","keys","dataDowncast","_getCoordsForCells","createPositionBefore","getColumns","join","tablePasteRow","map","_suggestionFactory","tableCellBorderColor","removeColumns","tablePasteCell","conversion","ck-suggestion-marker","getChangedMarkers","getMarkers","commands","subType","markerAttributes","columnInsertionIndexes","find","getChildren","markMultiRangeInsertion","view","ck-suggestion-marker-insertion","startsWith","rootName","deletionRanges","type","listenTo","set","redo","getContainedElement","nextSibling","registerPostFixer","findAncestor","tableCellSuggestion","getSuggestions","remove","tablePasteChainId","removeRows","getRows","move","plugins","columnInsertionRanges","editingDowncast","rowInsertionIndexes","markers","cell","suggestion","TableClipboard","getSuggestionCallback","tableCellBorderStyle","unwrap","options","insert","fromEntries","getItems","next","isEqual","markMultiRangeBlockFormat","name","row","nodeAfter","start","createRangeIn","isEmpty","tablePasteColumn","previousSibling","ck-suggestion-marker--active","cells","createRangeOn","getRanges","isInContent","low","for","accept","setAttribute","oldRange","getColumnIndexes","columns","batch","register","requires","get","tableCellBackgroundColor","add","_isForcedDefaultExecutionBlock","$graveyard","wrap","_tablePostFixingSubtypes","tableCellBorderWidth","Users","removeMarker","length","containsRange","first","registerDescriptionCallback","markerName","markMultiRangeDeletion","stop","deletion","clipboardOutput","insertionRanges","setAttributes","end","registerCustomCallback","document","newRange","removeMarkers","TableUtils","tableCellHorizontalAlignment","getAllAdjacentSuggestions","attributes","element","includes","TrackChangesEditing","schema","insertColumns","author","markerToHighlight","tableCellVerticalAlignment","getRange","model","paragraph","suggestionUnloaded","suggestion-td","getChild","change","content","previous","column","insertion","root","trackChanges","push","_replaceTableSlotCell","activeMarkers","_splitMarkerName","return","locale","high","getAttributes","forceDefaultExecution","fill","suggestion:formatBlock:tablePasteCell","hasSuggestion","editing","getTableIfOnlyTableInContent","updateMarker","discard","has","createTableWalker","getSuggestion","table","tablePaste","_descriptionFactory","filter","createElement","tableCell","entries","*Replace table cells*","some"];var ia,ra;ia=na,ra=352,function(t){for(;--t;)ia.push(ia.shift())}(++ra);const oa=function(t,e){return na[t-=0]},sa=[oa("0x4a"),oa("0x9e"),oa("0x23"),oa("0x5e"),oa("0x68"),oa("0x44"),"tableCellPadding"],xa=Object[oa("0x27")](sa[oa("0x9c")]((t=>[t,null])));class aa extends t.Plugin{static get[oa("0x42")](){return[zx]}afterInit(){const t=this.editor;if(!t.plugins[oa("0x86")]("TableClipboard"))return;const n=t[oa("0x1a")][oa("0x43")](oa("0x63")),i=t[oa("0x1a")].get(oa("0x5d")),r=t.plugins.get(zx),o=t[oa("0x1a")][oa("0x43")](oa("0x21"));r[oa("0x49")].push(oa("0x9b"),oa("0x32")),t[oa("0x6a")][oa("0x64")][oa("0x41")](oa("0x13"),{allowIn:oa("0x8e"),allowContentOf:oa("0x8e"),isLimit:!0}),t[oa("0xa1")].elementToElement({model:oa("0x13"),view:oa("0x6d")});let s=null;t[oa("0x6a")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[oa("0x4d")]-1];l&&l[oa("0x7e")]||n[oa("0x46")]||this.editor[oa("0xa5")][oa("0x43")](oa("0x75")).value&&function(t,e,n,i,r){if(e&&!e.is("documentSelection"))return!1;const o=r[oa("0x83")](t,n);if(!o||!la(o,void 0,i))return!1;const s=i.getSelectionAffectedTableCells(n[oa("0x5a")].selection);if(!s[oa("0x4d")])return!1;const x=s[0].findAncestor(oa("0x89")),a=i.getRowIndexes(s),c=i[oa("0x3e")](s),l={startRow:a[oa("0x4f")],endRow:a.last,startColumn:c[oa("0x4f")],endColumn:c.last};return 1==s[oa("0x4d")]&&(l.endRow+=i[oa("0x18")](o)-1,l.endColumn+=i[oa("0x99")](o)-1),la(x,l,i)}(a,c,t.model,i,o)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[oa("0x6a")][oa("0x6f")]((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n.markMultiRangeInsertion(r,oa("0x9b"),{tablePasteChainId:i}),o.length&&n[oa("0x5")](o,oa("0x32"),{tablePasteChainId:i}),a[oa("0x4d")]&&n[oa("0x5")](a,oa("0x8a"),{tablePasteChainId:i,skipNestingCheck:!0}),c[oa("0x4d")]&&n[oa("0x52")](c,oa("0x8a"),{tablePasteChainId:i,skipNestingCheck:!0});const u=n[oa("0x2b")](l[oa("0x9c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],oa("0xa0"),{tablePasteChainId:i});if(u){const e=u[oa("0xa4")](),n=[];for(const{element:i,attributes:r}of l){if(!r)continue;const o=t.model[oa("0x36")](i),s=e[oa("0x3")]((t=>t[oa("0x69")]()[oa("0x2a")](o)));s&&n[oa("0x76")]([s[oa("0x2c")],r])}n[oa("0x4d")]&&u[oa("0x3c")](oa("0x1"),Object[oa("0x27")](n))}s=null})))}),{priority:e.priorities[oa("0x7c")]+10}),t[oa("0x1a")][oa("0x43")](oa("0x21")).on(oa("0x77"),((t,e)=>{const[n,i,,r]=e;if(!s)return;t[oa("0x53")]();const o=n[oa("0x1f")],x=i,a=ca(o),c=ca(x);t[oa("0x7a")]=o;let l=null,u=null;if(c||a)if(a&&!c){r.remove(o[oa("0x6e")](0));for(const t of Array[oa("0x94")](x[oa("0x4")]()))r[oa("0x26")](t,o,"end");const t=s[oa("0x1d")].includes(n[oa("0x2d")]),e=s.columnInsertionIndexes[oa("0x62")](n[oa("0x72")]);t||e||(l=r[oa("0x30")](o))}else c&&!a&&(u=r.createRangeIn(o));else{const t=r[oa("0x8d")](oa("0x13")),e=r[oa("0x8d")](oa("0x13"));r[oa("0x48")](r.createRangeIn(o),e),r.insert(t,o,0);for(const e of Array[oa("0x94")](x.getChildren()))r[oa("0x26")](e,t,oa("0x58"));l=r[oa("0x36")](t),u=r.createRangeOn(e)}const d=Array.from(x[oa("0x7d")]()).filter((([t])=>sa[oa("0x62")](t)));s.cells[oa("0x76")]({element:o,attributes:d.length?Object[oa("0x27")](d):null}),l&&s[oa("0x56")][oa("0x76")](l),u&&s[oa("0xa")][oa("0x76")](u)}),{priority:oa("0x7c")}),i.on(oa("0x65"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[oa("0x3f")]||1;s[oa("0x2")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of i[oa("0x87")](r,{startColumn:x,endColumn:x+a-1}))s[oa("0x1b")][oa("0x76")](t[oa("0x6a")].createRangeOn(e))}),{priority:oa("0x39")}),i.on("insertRows",((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o.rows||1;s[oa("0x1d")]=new Array(a)[oa("0x7f")](x)[oa("0x9c")](((t,e)=>t+e));for(const{cell:e}of i[oa("0x87")](r,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges[oa("0x76")](t.model[oa("0x36")](e))}),{priority:"low"}),n[oa("0x8b")][oa("0x50")]((e=>{if(e.subType&&e.subType[oa("0x8")](oa("0x8a")))return e[oa("0x71")]?{}:{type:oa("0x73"),content:Ji(t[oa("0x7b")],oa("0x90"))}}));const x=()=>!1;for(const t of[oa("0x8a"),"tablePasteColumn",oa("0x9b"),oa("0xa0")])n[oa("0x9d")][oa("0x59")](oa("0x73"),t,oa("0x9a"),x),n[oa("0x9d")][oa("0x59")](oa("0x54"),t,oa("0x9a"),x),n._suggestionFactory[oa("0x59")](oa("0x93"),t,"join",x);n[oa("0x9d")][oa("0x59")](oa("0x93"),oa("0xa0"),oa("0x85"),x),n[oa("0x9d")][oa("0x59")](oa("0x93"),"tablePasteCell","accept",((e,n,i)=>{const r=e[oa("0x9c")]((t=>t[oa("0xf")]())).filter((t=>t)),o=new Map(r[oa("0x9c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[oa("0x35")])e&&o[oa("0xd")](t,e);else if(i&&i[oa("0x1")])for(const[e,n]of Object[oa("0x8f")](i[oa("0x1")])){const i=t.model[oa("0x1e")][oa("0x43")](e),r=i?i[oa("0x69")]()[oa("0xf")]():null;r&&o[oa("0xd")](r,n)}t.model[oa("0x6f")]((t=>{for(const[e,n]of o)t[oa("0x57")]({...xa,...n},e)}))}));const a=(e,i)=>{n[oa("0x9d")][oa("0x59")](e,"tablePaste",i,((r,o,s)=>{t.model.change((t=>{const x=[];for(const t of r){const e=t[oa("0x2f")][oa("0x2e")];e.is(oa("0x61"),oa("0x13"))&&x.push(e)}n[oa("0x9d")][oa("0x22")](e,null,i)(r,o,s);for(const e of x)oa("0x47")!=e[oa("0x74")][oa("0x9")]&&t[oa("0x24")](e)}))}))};a(oa("0x73"),oa("0x3b")),a(oa("0x73"),oa("0x85")),a(oa("0x54"),oa("0x3b")),a(oa("0x54"),oa("0x85")),n[oa("0x9d")][oa("0x59")](oa("0x73"),"tablePasteRow",oa("0x85"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][oa("0x12")](oa("0x89")),{minRow:o,maxRow:s}=r[oa("0x97")](e);i[oa("0x17")](n,{at:o,rows:s-o+1})})),n[oa("0x9d")].registerCustomCallback(oa("0x73"),oa("0x32"),oa("0x85"),(t=>{const e=t.map((t=>t[oa("0xf")]())),n=e[0][oa("0x12")](oa("0x89")),{minColumn:o,maxColumn:s}=r._getCoordsForCells(e);i[oa("0x9f")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e.subType||!e[oa("0x0")][oa("0x8")](oa("0x8a")))return;const i=e.attributes[oa("0x16")],r=n.getSuggestions()[oa("0x8c")]((t=>t.isInContent&&t.attributes&&t[oa("0x60")].tablePasteChainId==i));r.length&&e.getAllAdjacentSuggestions()[oa("0x4d")]!=r[oa("0x4d")]&&r.reduce(((t,e)=>(t[oa("0x29")]=e,e[oa("0x71")]=t,e)))};function l(t,e=!0){const{id:i}=n[oa("0x79")](t[oa("0x51")]),r=[oa("0xa2"),oa("0x7")],o=n[oa("0x78")][oa("0x62")](t[oa("0x51")]);return o&&r[oa("0x76")](oa("0x34")),{classes:r,attributes:{"data-suggestion":i},priority:o&&e?3010:3e3}}n.on(oa("0x92"),c,{priority:"high"}),n.on(oa("0x6c"),c,{priority:oa("0x7c")}),t.model[oa("0x5a")][oa("0x11")]((()=>{let e=!1;const i=Array[oa("0x94")](t.model[oa("0x5a")].differ[oa("0xa3")]());for(const{name:r,data:o}of i){const{group:i,type:s,id:x}=n._splitMarkerName(r);if("suggestion"!=i||oa("0x54")!=s||o[oa("0x3d")])continue;if(!n[oa("0x81")](x))continue;const a=n[oa("0x88")](x)[oa("0x37")](),c=t[oa("0x1a")][oa("0x43")](oa("0x4b")).me;for(const t of n[oa("0x14")]())if(t[oa("0x38")]&&t.author==c&&"formatBlock"==t.type&&oa("0xa0")==t[oa("0x0")]&&t.getRanges().every((t=>a[oa("0x91")]((e=>e.containsRange(t,!0))))))for(const n of t[oa("0x5f")]())n[oa("0x38")]&&(n.discard(),e=!0)}return e})),t.model[oa("0x5a")][oa("0x11")]((e=>{const i=t.commands.get(oa("0xe"));if(!i||!i._createdBatches[oa("0x86")](e[oa("0x40")]))return!1;let r=!1;const o=t[oa("0x1a")][oa("0x43")](oa("0x4b")).me,s=t[oa("0x6a")][oa("0x5a")].differ.getChanges(),x=Array[oa("0x94")](t[oa("0x6a")][oa("0x5a")].differ[oa("0xa3")]())[oa("0x8c")]((({name:t,data:e})=>{const{group:i,subType:r,authorId:s}=n[oa("0x79")](t);return oa("0x20")==i&&oa("0x8a")==r&&s==o.id&&!e.oldRange}));for(const t of s){if(oa("0x26")!=t[oa("0xb")]||oa("0x13")!=t.name||1!=t[oa("0x4d")])continue;const n=e.createRange(t.position,t.position.getShiftedBy(1));if(!x[oa("0x3")]((({data:t})=>t.newRange[oa("0x2a")](n))))for(const{name:t,data:i}of x)if(n[oa("0x4e")](i[oa("0x5b")])){e[oa("0x84")](t,{range:n}),r=!0;break}}return r})),t[oa("0x6a")][oa("0x5a")].registerPostFixer((e=>{let i=!1;const r=t[oa("0x1a")].get(oa("0x4b")).me,o=n.getSuggestions()[oa("0x8c")]((t=>t[oa("0x38")]&&t[oa("0x66")]==r)),s=new Set,x=new Set;for(const t of o)if(oa("0x8a")==t.subType)for(const e of t[oa("0xa4")]()){const n=e.getRange()[oa("0xf")]();if(n)if(n.is(oa("0x61"),oa("0x13"))&&ca(n)){t.removeMarker(e.name),s[oa("0x45")](n),i=!0;const r=n[oa("0x10")],o=n[oa("0x33")],a=r&&r.is("element",oa("0x13")),c=o&&o.is(oa("0x61"),oa("0x13"));a&&!s[oa("0x86")](r)&&x.add(r),c&&!s[oa("0x86")](o)&&x[oa("0x45")](o)}else n.is(oa("0x61"),"paragraph")&&n[oa("0x31")]&&(t[oa("0x4c")](e.name),i=!0)}else if(oa("0xa0")==t[oa("0x0")]){if(!t.attributes||!t[oa("0x60")][oa("0x16")])continue;const e=t.attributes[oa("0x1")];if(e&&Object[oa("0x95")](e).length)continue;const n=t[oa("0x60")][oa("0x16")];let r=!0,s=!0;for(const e of o)if(e[oa("0x0")]&&e[oa("0x0")][oa("0x8")](oa("0x8a"))){if(!e.attributes[oa("0x16")]){s=!1;break}if(e.id!=t.id&&e[oa("0x60")][oa("0x16")]==n){r=!1;break}}s&&r&&(t[oa("0x5c")](),i=!0)}for(const t of s)e[oa("0x15")](t);for(const t of x)e[oa("0x24")](t);return i})),t[oa("0xa1")][oa("0x3a")](oa("0x1c"))[oa("0x67")]({model:oa("0x80"),view:(t,e)=>l(t),converterPriority:"high"}),t[oa("0xa1")][oa("0x3a")](oa("0x96")).markerToHighlight({model:oa("0x80"),view:(t,e)=>e[oa("0x25")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t[oa("0x82")][oa("0x6")];this[oa("0xc")](u.document,oa("0x55"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[oa("0x70")])[oa("0x28")]())t.is("element",oa("0x6d"))&&n[oa("0x76")](t);u[oa("0x6f")]((t=>{for(const e of n)t[oa("0x19")](t[oa("0x30")](e),t[oa("0x98")](e)),t[oa("0x15")](e)}))}))}}function ca(t){if(t.isEmpty)return!0;const e=t[oa("0x6e")](0);return e.is(oa("0x61"),oa("0x6b"))&&e[oa("0x31")]}function la(t,e={},n){for(const{isAnchor:i,cellHeight:r,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!i||1!=r||1!=o)return!1;return!0}const ua=["locale","resizeTableWidth","discard","resizeTable","getSuggestionCallback","formatInline","has","getTableColumnsWidths","get","registerDescriptionCallback","type","_suggestionFactory","columnWidths","handleResizeTableWidthCommand","editor","enableCommand","commandParams","model","_descriptionFactory","formatBlock","TableColumnResizeEditing","change","plugins","markBlockFormat","handleSuggestionDescription","registerCustomCallback","selection","document","format","getContainedElement","getAttribute","accept","TrackChangesEditing","author","bind","Users","formatGroupId","afterInit","tableWidth","*Format:* resize table"];var da,ga;da=ua,ga=349,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x8")](){if(!this[fa("0x19")][fa("0x21")][fa("0x11")]("TableColumnResizeEditing"))return;const t=this[fa("0x19")].plugins[fa("0x13")](fa("0x3"));t[fa("0x1a")](fa("0xc"),this[fa("0x18")][fa("0x5")](this)),t[fa("0x16")][fa("0x24")](fa("0x1e"),fa("0xe"),"accept",t[fa("0x16")][fa("0xf")](fa("0x1e"),null,fa("0xd"))),t[fa("0x16")].registerCustomCallback(fa("0x1e"),fa("0xe"),fa("0xd"),t[fa("0x16")][fa("0xf")]("formatBlock",null,fa("0x2"))),t[fa("0x1d")][fa("0x14")](this[fa("0x23")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0x19")].plugins[fa("0x13")](fa("0x3")),i=this[fa("0x19")][fa("0x21")][fa("0x13")](fa("0x1f")),r=e.table||this[fa("0x19")].model[fa("0x26")][fa("0x25")].getSelectedElement();this[fa("0x19")][fa("0x1c")][fa("0x20")]((()=>{const o=i.getColumnGroupElement(r);let s=o?i[fa("0x12")](o):null,x=r[fa("0x1")](fa("0x9"))||null;const a=e[fa("0x9")]||x,c=e[fa("0x17")]||s,l=this[fa("0x19")][fa("0x21")][fa("0x13")](fa("0x6")).me;for(const t of n.getSuggestions()){const e=t[fa("0x0")]();if("resizeTable"===t.subType&&e===r){t[fa("0x4")]!==l&&t[fa("0xd")]();const e=t.data[fa("0x1b")];x=e[0][fa("0x9")],s=e[0][fa("0x17")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x22")](r,{commandName:fa("0xc"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0xe")},[],"resizeTable")}))}handleSuggestionDescription(t){if("formatBlock"!=t[fa("0x15")]&&fa("0x10")!=t[fa("0x15")])return;const{data:e}=t;if(e&&fa("0xe")===e[fa("0x7")]){const t=fa("0xa");return{type:fa("0x27"),content:Ji(this[fa("0x19")][fa("0xb")],t)}}}}const ha=["enableCommand","has","TrackChangesEditing","plugins","insertTemplate"];var pa,ba;pa=ha,ba=128,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this.editor;t[Ea("0x0")][Ea("0x3")]("Template")&&t.plugins.get(Ea("0x4"))[Ea("0x2")](Ea("0x1"))}}const Ta=["commands","editor","enableCommand","_descriptionFactory","plugins","registerElementLabel","get","insertTableOfContents","TrackChangesEditing"];var ya,Ca;ya=Ta,Ca=490,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[Aa("0x6")];if(!t[Aa("0x5")].get("insertTableOfContents"))return;t[Aa("0x0")][Aa("0x2")](Aa("0x4"))[Aa("0x7")](Aa("0x3"));const e=t[Aa("0x0")][Aa("0x2")](Aa("0x4")),n=t.locale;e[Aa("0x8")][Aa("0x1")]("tableOfContents",(t=>Ji(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["editor","updateMarker","isCollapsed","TrackChangesEditing","schema","removeMarker","getChangedMarkers","nodeBefore","forward","element","_descriptionFactory","differ","suggestion","isTouching","registerElementLabel","model","start","_splitMarkerName","ELEMENT_TITLE","createRange","plugins","newRange","Title","title-content","locale","end","getNearestSelectionRange","get","from"];var Ra,va;Ra=Ia,va=490,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Sa=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[Sa("0x3")];if(!t[Sa("0x17")].has(Sa("0x19")))return;const e=t[Sa("0x17")][Sa("0x1")](Sa("0x6"));e[Sa("0xd")][Sa("0x11")](Sa("0x1a"),(()=>Ji(t[Sa("0x1b")],Sa("0x15")))),t[Sa("0x12")].document.registerPostFixer((n=>{let i=!1;const r=Array[Sa("0x2")](t[Sa("0x12")].document[Sa("0xe")][Sa("0x9")]());for(const{name:o,data:s}of r){const{group:r}=e[Sa("0x14")](o);if(Sa("0xf")!==r||!s[Sa("0x18")])continue;const x=s[Sa("0x18")],a=x[Sa("0x1c")][Sa("0xa")];if(!a||!a.is(Sa("0xc"),Sa("0x1a")))continue;if(!x[Sa("0x13")][Sa("0x10")](x[Sa("0x1c")]))continue;const c=t.model[Sa("0x7")][Sa("0x0")](x[Sa("0x1c")],Sa("0xb"));if(c&&c[Sa("0x5")]){const t=n[Sa("0x16")](x[Sa("0x13")],c.start);t.isEqual(x)||(n[Sa("0x4")](o,{range:t}),i=!0)}i||(n[Sa("0x8")](o),i=!0)}return i}))}}const La=["editor","afterInit","plugins","has","UndoEditing","TrackChangesEditing","enableCommand","undo"];var Ma,wa;Ma=La,wa=100,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x5")](){const t=this[Oa("0x4")],e=t[Oa("0x6")].get(Oa("0x1"));t[Oa("0x6")][Oa("0x7")](Oa("0x0"))&&(e[Oa("0x2")](Oa("0x3")),e[Oa("0x2")]("redo"))}}const Da=["afterInit","has","toggleTableCaption","get","editor","TrackChangesEditing","plugins","TableCaptionEditing"];var Ba,Pa;Ba=Da,Pa=483,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get requires(){return[zx]}[Ua("0x5")](){const t=this[Ua("0x1")];t[Ua("0x3")][Ua("0x6")](Ua("0x4"))&&t[Ua("0x3")][Ua("0x0")](Ua("0x2")).enableCommand(Ua("0x7"))}}const Ga=["start","TablePropertiesEditing","tableCellProperties","tableCellBorderColor","join","accept","tableCellBorderStyle","change","tableBorderWidth","getContainedElement","getSuggestionCallback","discard","model","TableCellPropertiesEditing","afterInit","locale","tableBackgroundColor","removeAttribute","TableUtils","*Format:* change table cell properties","_handlePropertyChange","_getSuggestion","handleDiscardAction","tableCellVerticalAlignment","handleSuggestionDescription","tableCellPadding","findAncestor","format","nodeAfter","selection","tableCellWidth","tableProperties","_descriptionFactory","editor","document","tableBorderColor","table","enableCommand","TrackChangesEditing","getSelectionAffectedTableCells","getSuggestions","TrackChangesTableProperties","tableCellBackgroundColor","registerCustomCallback","pluginName","formatBlock","subType","_suggestionFactory","get","tableHeight","plugins","commandParams","tableCellBorderWidth","tableCellHorizontalAlignment","has"];var Va,Ha;Va=Ga,Ha=300,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x6")]=[za("0xa"),"tableBorderStyle",za("0x26"),"tableAlignment","tableWidth",za("0x18"),za("0x2e")],this[za("0x20")]=[za("0x21"),za("0x24"),za("0x1b"),za("0x0"),za("0x5"),"tableCellHeight",za("0x11"),za("0x1c"),za("0x35")]}static get[za("0x13")](){return za("0x10")}[za("0x2c")](){const t=this[za("0x8")][za("0x19")][za("0x17")]("TrackChangesEditing");if(this.editor.plugins.has(za("0x1f"))){for(const e of this[za("0x6")])t[za("0xc")](e,((t,n)=>{const i=this[za("0x8")].model.document[za("0x4")].getFirstPosition()[za("0x1")](za("0xb"));this._handlePropertyChange(e,[i],this[za("0x6")],"tableProperties",t,n)}));t[za("0x16")].registerCustomCallback(za("0x14"),za("0x6"),"accept",t[za("0x16")].getSuggestionCallback(za("0x14"),null,za("0x29"))),t._suggestionFactory[za("0x12")]("formatBlock",za("0x6"),za("0x29"),((t,e)=>this.handleDiscardAction(this[za("0x6")],t,e))),t[za("0x16")].registerCustomCallback(za("0x14"),za("0x6"),"join",(()=>!1))}if(this[za("0x8")][za("0x19")][za("0x1d")](za("0x2b"))){for(const e of this.tableCellProperties)t[za("0xc")](e,((t,n)=>{const i=this[za("0x8")][za("0x19")][za("0x17")](za("0x30"))[za("0xe")](this[za("0x8")][za("0x2a")][za("0x9")][za("0x4")]);this[za("0x32")](e,i,this[za("0x20")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x12")]("formatBlock",za("0x20"),za("0x23"),t._suggestionFactory[za("0x28")](za("0x14"),null,"discard")),t[za("0x16")][za("0x12")](za("0x14"),za("0x20"),za("0x29"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[za("0x16")][za("0x12")](za("0x14"),za("0x20"),za("0x22"),(()=>!1))}t[za("0x7")].registerDescriptionCallback((t=>this[za("0x36")](t)))}[za("0x32")](t,e,n,i,r,o){const s=this[za("0x8")][za("0x19")].get(za("0xd"));this[za("0x8")][za("0x2a")].enqueueChange(o.batch,(()=>{for(const t of e)if(this[za("0x33")](t,i))r(o);else{const e={};for(const i of n){const n=t.getAttribute(i);void 0!==n&&(e[i]=n)}r(o),s.markBlockFormat(t,{commandParams:[e]},[],i)}}))}[za("0x34")](t,e,n){const i=e[0][za("0x1e")][za("0x3")],r=n[za("0x1a")][0];this.editor[za("0x2a")][za("0x25")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],i):e[za("0x2f")](n,i)}))}[za("0x36")](t){if(t.data)switch(t[za("0x15")]){case"tableProperties":return{type:za("0x2"),content:Ji(this[za("0x8")][za("0x2d")],"*Format:* change table properties")};case za("0x20"):return{type:za("0x2"),content:Ji(this[za("0x8")][za("0x2d")],za("0x31"))}}}_getSuggestion(t,e){const n=this.editor.plugins[za("0x17")]("TrackChangesEditing");for(const i of n[za("0xf")]({skipNotAttached:!0})){const n=i[za("0x27")]();if(i[za("0x15")]===e&&n===t)return i}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,i,r,o){var s=-1,x=e.length;for(i||(i=tc),o||(o=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,r,o):sn(o,a):r||(o[o.length]=a)}return o};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const ic=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const oc=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=rc(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=i[r];return x[e]=n(s),ic(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var i=ac(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(oc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var i=!1;e=ui(e,(function(e){return e=hi(e,t),i||(i=e.length>1),e})),oe(t,dn(t),n),i&&(n=ti(n,7,Ja));for(var r=e.length;r--;)Wi(n,e[r]);return n})),uc=["accept","size","getContainedElement","warn","hasComments","_SUGGESTION_ANNOUNCEMENT","_suggestions","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.","fire","_setSuggestionData","document","_customCallbacks","change:activeMarkers","includes","next","attribute:","getFirstMarker","rethrowUnexpectedError","@external","CommentsRepository","newName","from","chain","attribute:accept","applyOperation","value","_enableDefaultAttributesIntegration","getShiftedBy","registerCustomCallback","_cutOutSuggestionMarker","normal","discard","isAtEnd","subType","insertion:chain","getOperations","_suggestionState","formatInline","_saved","markerToHighlight","clear","rootName","isRemovable","getIntersection","_initAriaMarkerChangeAnnouncements","containsRange","writer","editing","suggestion:attribute:","has","createPositionAt","selection","formatBlock:chain","getAllAdjacentSuggestions","isSelectable","setAttribute","discardAllSuggestions","isIntersecting","isInContent","containsRangeInObject","_getMarkerAnnouncementText","isBefore","values","stop","authoredAt","group","containsItem","always","setTo","suggestion-type","track-changes-user-not-found","discardSelectedSuggestions","_getAuthorFromId","set","refresh","batch","formatInline:","isIntersectingWithRange","insert","getChanges","isArray","getRange","trackChangesCommand","listenTo","elementStart","addSuggestion","getCustomProperty","every","unbindElementFromMarkerName","execute","_rangeIsInLocalUserInsertion","commands","attributes","_recordAttributeSuggestionsFromVersion","createdAt","forceDefaultExecution","_isDataLoaded","attributeOldValue","track-changes-adapter-missing-getsuggestion","markAttributeChange","format","split","isExternal","discardSuggestion","key","assign","_commentsRepository","meta","deletion:join","consume","_refreshSuggestionsChain","_adapter","_handleNewSuggestionMarker","forEach","nodeAfter","mapper","low","author","trackChanges","forward","howMany","comments","root","plugins","addHighlight","removeClass","attribute","isObject","ENTER","stopListening","addRange","TrackChangesEditing","markInlineFormat","element","_processAttributeSuggestions","isBlock","formatInline:discard","change:_saved","delete","range","addUser","unshift","getChangedMarkers","addMarker:suggestion","insertion:join","isTouching","originalSuggestionId","editor","removeComment","change","acceptSuggestion","getAttribute","dataReady","previous","change:data","notReady","enqueueChange","enableReadOnlyMode","_joinSuggestions","editingDowncast","consumable","push","_descriptionFactory","options","dataDowncast","_reduceExistingSuggestions","_mergeNestedSuggestions","ck-suggestion-marker","unbind","insertContent","ariaLiveAnnouncer","formatBlock:discard","newRange","keys","addAttribute","$marker","init","dataToMarker","removeMarkers","suggestionLoaded","_processAttributeChanges","deletion:chain","trackChanges.trackFormatChanges","createRangeOn","_registerInlineAttribute","_addSuggestionMarker","name","find","_removeSuggestion","_refreshAttributeSuggestionsChain","define","newValue","backward","markerName","suggestion:","commentThread","some","ck-suggestion-marker--active","_checkSuggestionCorrectness","markMultiRangeDeletion","suggestionChanged","getDifference","setSelection","changeAttribute","deletion:","addMarkerName","deleteContent","_inlineAttributeKeys","reconvertMarker","showSuggestionHighlights","isEqual","widget","markDeletion","multipleBlocks","createPositionBefore","detach","_recordAttributeChanges","suggestionUnloaded","Users","removed","_breakSuggestionMarker","removeAttribute","createRange","toViewElement","rejected","item","conversion","requires","_suggestionFactory","getCommentThread","formatBlock","for","then","addMarker","addSuggestionData","nodeBefore","_isBlockAttribute","join","deletion","formatBlock:join","splitPosition","ck-suggestion-marker-formatBlock","never","_findSuggestions","markerNameToElements","markerReady","end","getSuggestionCallback","attributeKey","before","locale","announce","containsPosition","track-changes-suggestion-data-mismatch","getAncestors","insertion:","addCommentThread","multi","getSuggestions","head","update:suggestion","formatBlock:accept","oldRange","accepted","createRangeIn","elementEnd","getMultiRangeId","removeMarker","removeMarker:suggestion:formatBlock","oldValue","LEAVE","markInsertion","attributeNewValue","_splitMarkerName","getNearestSelectionRange","registerPostFixer","isInsideObject","_registerDefaultCallbacks","attribute:join","addComment","rename","containerElement","$graveyard","markMultiRangeBlockFormat","updateSuggestion","track-changes-adapter-already-set","high","substring","filter","createPositionAfter","splice","fromCharCode","pop","acceptAllSuggestions","add","createSelection","history","parent","_trackFormatChanges","isNextTo","_registerBlockAttribute","acceptSelectedSuggestions","model","getRanges","enableCommand","_setSuggestionRange","insertion","isAfter","isLimit","isLocal","addClass","_isForcedDefaultExecutionBlock","buildSuggestion","isMultiRange","after","clone","external:","data-suggestion","addMarker:suggestion:attribute","config","length","_updateSuggestionData","_reduceSuggestionAttributeRange","activeMarkers","_model","isAtStart","highest","getSuggestion","data","get","position","_getSuggestionData","_joinWithAdjacentSuggestions","formatInline:join","_blockAttributeKeys","differ","trackChanges.mergeNestedSuggestions","type","tablePasteChainId","deletion:discard","formatGroupId","start","fetchCommentThread","isUndo","isOwn","_addThreadToSuggestion","getLastMatchingPosition","remove","open","marker-count","suggestion","adapter","upcast","schema","groupId","formatBlock:","getMarkers","getUser","_defaultCallbacks","bindElementToMarker","default","updateMarker","addMarker:suggestion:formatBlock","getWalker","skipNestingCheck","_enabledCommands","markers","catch","PENDING_ACTION_SUGGESTION","startsWith","getFirstRange","creator","$elementName","_editor","ready","isCollapsed","getItems","$text","toJSON","sort","_createSuggestion","return","track-changes-enable-command-twice","collaboration.channelId","map","insertion:discard"];var dc,gc;dc=uc,gc=152,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xdc");class hc extends t.Plugin{static get[fc("0x4b")](){return[fc("0xfd"),o.Users,t.PendingActions,ar,gr,Er,Ar,Nr,Fr,Gr,Qr,ro,co,ho,To,Ro,Mo,Po,Ho,$o,Qo,rs,fs,cs,Es,As,Ss,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x16d")}constructor(t){function e(t){return t[fc("0xe8")]((t=>String[fc("0x8b")](t))).join("")}super(t),this[fc("0x147")]=null,this[fc("0x133")](fc("0xab"),[]),this.on(fc("0xf6"),((e,n,i,r)=>{this._model[fc("0x17f")]((()=>{for(const e of[...r,...i])this._model[fc("0xd6")][fc("0x11b")](e)&&t[fc("0x119")][fc("0x38")](e)}))})),this[fc("0xa")]=new ir(this[fc("0x17d")].model[fc("0xc9")],this[fc("0x17d")][fc("0x62")]),this[fc("0x159")]=null,this._suggestionFactory=new pc(this.editor),this[fc("0xf0")]=new Map,this[fc("0x154")]=t[fc("0x165")].get(fc("0xfd")),this[fc("0xd5")]=new Set,this[fc("0xac")]=this[fc("0x17d")][fc("0x96")],this[fc("0x10e")]=new WeakMap,this[fc("0x9f")]=!1,this[fc("0xb6")]=new Set([fc("0xdc")]),this._inlineAttributeKeys=new Set,t.config.define(fc("0x1e"),fc("0xd0")),this[fc("0x92")]=t[fc("0xa7")][fc("0xb1")](fc("0x1e")),t[fc("0xa7")][fc("0x26")](fc("0xb8"),!0),this[fc("0xe")]=t.config[fc("0xb1")](fc("0xb8")),this[fc("0x13c")]=new d(t,this[fc("0xd5")]),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,54,50,52,51,48])}[fc("0x18")](){const t=this.editor,n=(t,e)=>{if(fc("0x168")!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x14f")]("|")[0];return this[fc("0x54")](n)?"ck-suggestion-marker-formatBlock":"ck-suggestion-marker-formatInline"};t[fc("0x4a")][fc("0x4f")](fc("0x7"))[fc("0x111")]({model:"suggestion",view:t=>{const{id:e,type:i,subType:r}=this._splitMarkerName(t[fc("0x29")]),o=[fc("0xf"),n(i,r)];let s=3e3;return this[fc("0xab")].includes(t[fc("0x29")])&&(o.push("ck-suggestion-marker--active"),s=3010),fc("0x56")==i&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(fc("0xc"))[fc("0x8e")]((e=>{e.on(fc("0x179"),((e,n,i)=>{if(!i[fc("0xb")][fc("0x39")])return;const r=n[fc("0x49")];if(!r)return;const o=i.mapper[fc("0x47")](r);t[fc("0x96")][fc("0xc9")][fc("0x169")](r)&&o&&!o[fc("0x140")](fc("0x3b"))&&o.is(fc("0x81"))&&(0,x.toWidget)(o,i.writer)}),{priority:fc("0x86")})})),t.conversion[fc("0x4f")](fc("0xc"))[fc("0x111")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0xb")].showSuggestionHighlights)return null;const{type:i,subType:r}=this[fc("0x79")](t[fc("0x29")]);return{classes:["ck-suggestion-marker",n(i,r)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,r,o)=>{if(!r[fc("0x49")])return;const{id:s}=this[fc("0x79")](r[fc("0x29")]);if(n){const t=vc(this[fc("0xf0")][fc("0xb1")](s));if(!this[fc("0x54")](t))return}if(r[fc("0x49")].is(fc("0x11d")))return void o[fc("0x8")][fc("0x157")](r.item,i.name);const x=o.mapper[fc("0x47")](r[fc("0x49")]);if(r[fc("0x49")].is(fc("0x16f"))&&t[fc("0x96")][fc("0xc9")][fc("0x171")](r.item)&&!x[fc("0x140")]("addHighlight")){o[fc("0x118")].addClass([fc("0xf"),fc("0x59")],x),o[fc("0x118")][fc("0x121")](fc("0xa5"),s,x),o.mapper[fc("0xcf")](x,r[fc("0x29")]),e&&(this[fc("0xab")][fc("0xf7")](r.markerName)?o[fc("0x118")][fc("0x9e")](fc("0x2d"),x):o[fc("0x118")][fc("0x167")](fc("0x2d"),x));for(const e of t[fc("0x96")][fc("0x70")](r[fc("0x49")])[fc("0xe0")]())o[fc("0x8")][fc("0x157")](e,i[fc("0x22")]);o.consumable.consume(r[fc("0x49")],i.name)}};t[fc("0x4a")][fc("0x4f")](fc("0xc"))[fc("0x8e")]((t=>{t.on(fc("0xd2"),((t,e,n)=>{n[fc("0xb")][fc("0x39")]&&i({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0xae")})})),t[fc("0x4a")].for(fc("0xc"))[fc("0x8e")]((t=>{t.on(fc("0xa6"),((t,e,n)=>{n[fc("0xb")][fc("0x39")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x4a")][fc("0x4f")](fc("0xc")).markerToData({model:fc("0xc6"),view:(t,e)=>e[fc("0xb")][fc("0x39")]?null:{group:"suggestion",name:t.substr(11)}}),t[fc("0x4a")][fc("0x4f")]("upcast").elementToElement({view:{name:fc("0xc6"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x2a")+t[fc("0x181")](fc("0x12f"))+":"+t[fc("0x181")]("id");return t.getAttribute(fc("0xc5"))&&(n+=":"+t[fc("0x181")](fc("0xc5"))),e.createElement(fc("0x17"),{"data-name":n})}}),t[fc("0x4a")][fc("0x4f")](fc("0xc8"))[fc("0x19")]({view:fc("0xc6")}),t[fc("0x4a")][fc("0x4f")](fc("0x7"))[fc("0x8e")]((t=>{t.on(fc("0xd2"),i(),{priority:fc("0x86")})})),t[fc("0x4a")].for("editingDowncast").add((t=>{t.on("addMarker:suggestion:attribute",i({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion[fc("0x4f")](fc("0x7")).add((t=>{t.on(fc("0x74"),((t,e,n)=>{const i=n[fc("0x15d")][fc("0x5c")](e[fc("0x29")]);if(i)for(const t of i)t[fc("0x140")](fc("0x166"))||(n[fc("0x118")][fc("0x167")]([fc("0xf"),fc("0x59"),fc("0x2d")],t),n[fc("0x118")][fc("0x45")](fc("0xa5"),t),n[fc("0x15d")][fc("0x142")](t,e[fc("0x29")]))}),{priority:fc("0x86")})})),t[fc("0x4a")].for("editingDowncast")[fc("0x8e")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const i=n[fc("0x15d")][fc("0x5c")](e.markerName);if(!i)return;const{id:r}=this._splitMarkerName(e[fc("0x29")]),o=vc(this[fc("0xf0")].get(r));if(this._isBlockAttribute(o))for(const t of i)t.getCustomProperty(fc("0x166"))||(n[fc("0x118")][fc("0x167")]([fc("0xf"),fc("0x59"),"ck-suggestion-marker--active"],t),n.writer[fc("0x45")](fc("0xa5"),t),n[fc("0x15d")][fc("0x142")](t,e[fc("0x29")]))}),{priority:fc("0x86")})})),t.model[fc("0xf4")][fc("0x7b")]((e=>{let n=!1;const i=Array[fc("0xff")](t[fc("0x96")][fc("0xf4")][fc("0xb7")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this._splitMarkerName(x);if("suggestion"!==i)continue;const d=this[fc("0xf0")][fc("0xb1")](u);if(null!=a[fc("0x14")]){fc("0x10f")==c&&(n=n||_c(a[fc("0x14")],x,e,t[fc("0x96")].schema));const i="attribute"==c&&this[fc("0x54")](l.split("|")[0]);if(a.newRange[fc("0xdf")]||fc("0x82")==a[fc("0x14")][fc("0x164")][fc("0x113")]||fc("0x4e")==c&&!yc(a.newRange)||i&&!yc(a.newRange)||fc("0x56")==c&&(Ec(s=a[fc("0x14")])||(o=s)[fc("0xbd")][fc("0x91")]==o[fc("0x5e")][fc("0x53")]&&o[fc("0xbd")][fc("0x10a")]))e[fc("0x73")](x),n=!0;else{if(!d||!d[fc("0x124")])continue;r[fc("0x8e")](d)}}}var o,s;return r[fc("0xeb")]>0&&(n=!!this[fc("0xb4")](r)||n),n})),t[fc("0x96")][fc("0xf4")][fc("0x7b")]((e=>{let n=!1;for(const i of t.model[fc("0xf4")].differ[fc("0x139")]())if(fc("0x138")==i[fc("0xb9")])for(const i of this[fc("0xf0")][fc("0x128")]()){if(i[fc("0xa1")]||!i[fc("0x124")])continue;const r=fc("0x4e")==i.type,o=vc(i),s=o&&this._isBlockAttribute(o);if(!r&&!s)continue;const x=i[fc("0xda")]();if(x[fc("0xbd")][fc("0x91")]!=x[fc("0x5e")][fc("0x91")]&&!x[fc("0x5e")][fc("0x10a")]){const r=t[fc("0x96")][fc("0x11c")](x[fc("0xbd")].nodeAfter,fc("0x5e")),o=t[fc("0x96")][fc("0x46")](x[fc("0xbd")],r);e[fc("0xd1")](i[fc("0xfa")](),{range:o}),n=!0}}return n})),t[fc("0x96")][fc("0xf4")][fc("0x7b")]((t=>this[fc("0x1c")](t))),t[fc("0x96")][fc("0xf4")][fc("0x7b")]((t=>!t.batch[fc("0x9d")]&&this[fc("0x170")](t))),t.model[fc("0xd6")].on(fc("0x6c"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[fc("0xf0")].get(t);n&&n[fc("0x35")](e[fc("0x22")])}})),t[fc("0x96")][fc("0xf4")].on(fc("0x2"),(()=>{const e=Array[fc("0xff")](t[fc("0x96")].document[fc("0xb7")][fc("0x178")]())[fc("0x88")]((t=>fc("0xc6")===this._splitMarkerName(t.name)[fc("0x12b")]));if(0===e[fc("0xa8")])return;e[fc("0xe3")](((t,e)=>{const n=t[fc("0xb0")][fc("0x6e")],i=e[fc("0xb0")][fc("0x6e")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n.start[fc("0x127")](i[fc("0xbd")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x79")](t);if(null===r[fc("0x6e")]){const e=this[fc("0x15a")](t);i[fc("0x8e")](e)}else{const t=this._suggestions[fc("0xb1")](e);null!==r[fc("0x14")]||t.isInContent?(n[fc("0x8e")](t[fc("0x6b")]),i[fc("0x8e")](t)):this[fc("0x24")](t)}}i[fc("0xeb")]>0&&this._refreshSuggestionsChain(i);for(const t of n)this[fc("0xf2")](fc("0x30"),t)})),t.model.on(fc("0x102"),((e,n)=>{const i=n[0];if(!this._suggestions.size)return;if(!i.isDocumentOperation)return;if(i[fc("0x135")][fc("0xbf")]||!i[fc("0x135")][fc("0x9d")])return;let r,o;switch(i[fc("0xb9")]){case fc("0x138"):r=t.model[fc("0x11c")](i.position),o=r[fc("0x105")](i[fc("0x162")]);break;case"split":r=t[fc("0x96")][fc("0x11c")](i[fc("0x58")]),o=t[fc("0x96")][fc("0x11c")](i.moveTargetPosition);break;case"move":r=t[fc("0x96")][fc("0x11c")](i.targetPosition),o=r[fc("0x105")](i.howMany);break;default:return}const s=t[fc("0x96")][fc("0x46")](r,o);t[fc("0x96")][fc("0x17f")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x5b")](s)){if(t[fc("0xa1")])continue;if(fc("0x10f")==t[fc("0xb9")])continue;const n=vc(t);if(n&&this[fc("0x54")](n)&&fc("0x14f")!=i[fc("0xb9")])continue;const x=t[fc("0xb0")]&&t.data[fc("0x3d")];(fc("0x4e")!=t.type||fc("0x14f")==i[fc("0xb9")]&&!x)&&(e[fc("0x125")]||fc("0x9a")==t[fc("0xb9")]&&e[fc("0xc0")]||t[fc("0xda")]()[fc("0x117")](s)&&this[fc("0x44")](t,r,o))}}))}),{priority:"lowest"}),t.model.on(fc("0x36"),((e,n)=>{const i=n[0],r=n[1];if(r&&r[fc("0x149")])return;if(this[fc("0x9f")])return;if(!this[fc("0x13c")][fc("0x103")])return;if(i[fc("0xdf")])return;const o=t[fc("0x96")][fc("0xc9")],{start:s,end:x}=i[fc("0xda")](),a=s[fc("0x15c")]&&o[fc("0x9c")](s[fc("0x15c")])?null:o[fc("0x7a")](s,fc("0x161")),c=x.nodeBefore&&o[fc("0x9c")](x[fc("0x53")])?null:o[fc("0x7a")](x,fc("0x28")),l=t.model[fc("0x46")](a?a.start:s,c?c.end:x);t[fc("0x96")][fc("0x17f")]((e=>{this[fc("0x3c")](l);const n=t[fc("0x96")][fc("0xc9")].getNearestSelectionRange(l.start);i.is("documentSelection")?e.setSelection(n):i[fc("0x12e")](n)})),e[fc("0x129")]()}),{priority:e.priorities[fc("0x108")]+10}),t[fc("0x96")].on(fc("0x11"),((e,n)=>{const i=n[n[fc("0xa8")]-1];i&&i.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[fc("0x103")]&&(t[fc("0x96")][fc("0x17f")]((()=>{let i=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e.return=i[fc("0xa3")]();const r=i[fc("0x5e")][fc("0x53")],o=t.model[fc("0xc9")];r&&o[fc("0x171")](r)&&!o.isObject(r)&&(i=t[fc("0x96")][fc("0x46")](i[fc("0xbd")],t[fc("0x96")][fc("0x11c")](r,"end"))),this[fc("0x77")](i)})),e.stop())}),{priority:"high"}),this.editor.commands[fc("0x8e")]("trackChanges",this[fc("0x13c")]),this[fc("0x98")]("trackChanges");const r=new p(t,this[fc("0xf0")]);t[fc("0x145")][fc("0x8e")](fc("0x180"),r),this[fc("0x98")]("acceptSuggestion");const o=new y(t,this[fc("0xf0")]);t[fc("0x145")].add(fc("0x151"),o),this[fc("0x98")](fc("0x151")),t[fc("0x145")].add("acceptAllSuggestions",new F(t,r,this[fc("0xf0")])),this[fc("0x98")](fc("0x8d")),t.commands[fc("0x8e")](fc("0x122"),new F(t,o,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[fc("0x145")][fc("0x8e")](fc("0x95"),new j(t,r,this._suggestions)),this.enableCommand("acceptSelectedSuggestions"),t[fc("0x145")][fc("0x8e")](fc("0x131"),new j(t,o,this._suggestions)),this[fc("0x98")](fc("0x131"));const s=t[fc("0x165")][fc("0xb1")]("CommentsRepository");this[fc("0x13d")](s,fc("0x7f"),((t,{threadId:e})=>{const n=this[fc("0xf0")][fc("0xb1")](e);n&&n[fc("0x2b")]&&1===n.commentThread[fc("0xa8")]&&this[fc("0xa9")](e,{hasComments:!0})}),{priority:fc("0x15e")}),this[fc("0x13d")](s,fc("0x17e"),((t,{threadId:e})=>{const n=this[fc("0xf0")][fc("0xb1")](e);n&&n[fc("0x2b")]&&!n[fc("0x2b")][fc("0xa8")]&&this[fc("0xa9")](e,{hasComments:!1})}),{priority:fc("0x15e")})}set adapter(t){if(this[fc("0x159")])throw new e.CKEditorError(fc("0x85"),this);this[fc("0x159")]=t}get[fc("0xc7")](){return this._adapter}[fc("0x6a")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xf0")][fc("0x128")]())t&&!e[fc("0x124")]||n.push(e);return e?n[fc("0xe8")]((t=>t[fc("0xe2")]())):n}[fc("0xaf")](t){const n=this[fc("0xf0")][fc("0xb1")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[fc("0xf0")][fc("0x11b")](t)}[fc("0x52")](t){const{authorId:e,id:n,attributes:i}=t,[r,o]=t[fc("0xb9")][fc("0x14f")](":"),s=this[fc("0xf0")][fc("0xb1")](n)||this[fc("0xe4")](r,o,n,e,i);if(this[fc("0xc1")](s),this[fc("0x2e")](s,r,o||null,e),s.createdAt=t[fc("0x148")],s._isDataLoaded=!0,i&&i[fc("0xfc")]){const t=i["@external"],e=this._getExternalAuthor(t.authorName);s[fc("0x12a")]=t[fc("0x148")],s[fc("0x15f")]=e,s[fc("0x150")]=!0}else s[fc("0x12a")]=t[fc("0x148")];switch(t[fc("0xb0")]&&(s[fc("0xb0")]=t[fc("0xb0")]),t[fc("0x146")]&&(s[fc("0x146")]=t.attributes),this[fc("0x159")]&&this[fc("0x159")].addSuggestion||(s[fc("0x110")]=!0),this[fc("0x10e")][fc("0xb1")](s)){case fc("0x3"):this[fc("0x10e")][fc("0x133")](s,fc("0x0"));break;case fc("0x5d"):s[fc("0x124")]?(this._refreshSuggestionsChain(new Set([s])),this[fc("0xb4")](new Set([s])),this[fc("0x10e")][fc("0x133")](s,fc("0xde")),this[fc("0xf2")](fc("0x1b"),s)):this[fc("0x10e")].set(s,fc("0x43"))}return s}[fc("0x180")](t){this[fc("0x149")]((()=>{this.editor.model[fc("0x17f")]((()=>{for(const e of t[fc("0x11f")]())e[fc("0xea")]()}))}))}discardSuggestion(t){this[fc("0x149")]((()=>{this[fc("0x17d")][fc("0x96")][fc("0x17f")]((()=>{for(const e of t[fc("0x11f")]())e[fc("0x109")]()}))}))}[fc("0x98")](t,n){const i=this[fc("0x17d")][fc("0x145")][fc("0xb1")](t);if(!i)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0xd5")][fc("0x11b")](i))throw new e.CKEditorError(fc("0xe6"),this,{commandName:t});this[fc("0xd5")][fc("0x8e")](i),n&&i.on(fc("0x143"),((t,e)=>{this.trackChangesCommand[fc("0x103")]&&(this._isForcedDefaultExecutionBlock||(e[fc("0xa8")]>0&&e[e[fc("0xa8")]-1]&&e[e[fc("0xa8")]-1][fc("0x149")]?e[fc("0x8c")]():(t[fc("0xe5")]=n(((...t)=>i[fc("0x143")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x129")]())))}),{priority:"high"})}[fc("0x149")](t){let n,i;const r=this[fc("0x9f")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){i=t}return r||(this._isForcedDefaultExecutionBlock=!1),i&&e.CKEditorError[fc("0xfb")](i,this),n}markInsertion(t,n=null,i={}){if(t.isCollapsed)return null;const r=this[fc("0x17d")][fc("0x165")][fc("0xb1")](fc("0x42")).me;for(const{suggestion:e,meta:r}of this._findSuggestions(t,fc("0x9a")))if(r[fc("0xc0")]){if(!r.isNextTo){if(r[fc("0x125")]){if(!this[fc("0xe")]||!Ic(e,i))continue;return e}if(Ic(e,i))return e;this[fc("0x44")](e,t.start,t[fc("0x5e")]);break}if(n==e[fc("0x10b")]&&Ic(e,i)){const n=e.getFirstRange();return n.start[fc("0x3a")](t[fc("0x5e")])?this[fc("0x99")](e,this._model[fc("0x46")](t[fc("0xbd")],n[fc("0x5e")])):this[fc("0x99")](e,this[fc("0xac")][fc("0x46")](n[fc("0xbd")],t[fc("0x5e")])),e}}const o=(0,e.uid)(),s=r.id,x=n?fc("0x67")+n:"insertion",a=this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,attributes:i});return this[fc("0x21")](x,o,s,t),a}markMultiRangeInsertion(t,n="multi",i={}){const r=this[fc("0x17d")][fc("0x165")][fc("0xb1")]("Users").me,o=this[fc("0x4c")][fc("0x5f")](fc("0x9a"),n,fc("0x55"));for(const e of this[fc("0x6a")]())if(e[fc("0x15f")].id==r.id&&fc("0x9a")==e[fc("0xb9")]&&e.subType==n&&Ic(e,i)&&(o(e[fc("0x97")](),t)||o(t,e[fc("0x97")]()))){for(const n of t)e[fc("0x16c")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,fc("0x9a"))){if(!n[fc("0xc0")])continue;if(!this[fc("0xe")]&&n[fc("0x125")])continue;if(!Ic(e,i))continue;let r=!0;for(const n of e[fc("0x97")]())for(const e of t)if(!n[fc("0x117")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this[fc("0xf3")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this[fc("0x21")](a,s,x,e,Yi.getMultiRangeId());return c}[fc("0x16e")](t,n,i=null,r={}){if(i=i||Tc(n),t[fc("0xdf")])return null;if(fc("0x5a")===this[fc("0x92")]){const e=this[fc("0x4c")][fc("0x5f")](fc("0x10f"),i,fc("0xea"));return this.forceDefaultExecution((()=>e([t],n,r))),null}const o=this[fc("0x17d")].plugins[fc("0xb1")](fc("0x42")).me,s=[];if(fc("0x12d")!==this[fc("0x92")])for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,fc("0x9a")))n[fc("0xc0")]&&!n[fc("0x7c")]&&s[fc("0x9")](...e.getRanges());const x=function(t,e){const n=[];for(const i of e){const e=t[fc("0x115")](i);e&&n[fc("0x9")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xa8")];){const i=n[e][fc("0x31")](t);n.splice(e,1,...i),e+=i[fc("0xa8")]}}return n}(t,s);x.length&&this[fc("0xac")][fc("0x17f")]((()=>{for(const t of x){const e=this[fc("0x4c")][fc("0x5f")](fc("0x10f"),i,fc("0xea"));this[fc("0x149")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0xbd")],a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,fc("0x10f"))){if(!n[fc("0xc0")])continue;if(e[fc("0x10b")]!=i)continue;if(!Ic(e,r))continue;const o=e.getFirstRange();if(o[fc("0x117")](t,!0))return null;x=x[fc("0x127")](o[fc("0xbd")])?x:o.start,a=a[fc("0x9b")](o[fc("0x5e")])?a:o[fc("0x5e")],s?o[fc("0xbd")][fc("0x127")](s[fc("0xda")]()[fc("0xbd")])?(s.removeMarkers(),s=e):e.removeMarkers():s=e}const c=this[fc("0xac")][fc("0x46")](x,a);if(s)this[fc("0x99")](s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:fc("0x136")+i,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x21")](fc("0x136")+i,t,s,c)}}return null}markBlockFormat(t,n,i=[],r=null,o={}){n[fc("0xbc")]||(n[fc("0xbc")]=n.commandName),n.multipleBlocks=t.is(fc("0x175")),r=r||Tc(n);const s=i[fc("0xe8")]((t=>Cc(t,this._model))),x=t.is(fc("0x175"))?t:Cc(t,this._model);if(fc("0x5a")===this[fc("0x92")]){const t=this[fc("0x4c")].getSuggestionCallback("formatBlock",r,fc("0xea"));return this[fc("0x149")]((()=>t([x],n,o))),null}s[fc("0x9")](x);let a=!0;for(const t of s)if(!this[fc("0x144")](t)){a=!1;break}if(a&&fc("0x12d")!==this[fc("0x92")]){const t=this[fc("0x4c")][fc("0x5f")](fc("0x4e"),r,fc("0xea"));return this[fc("0x149")]((()=>t([x],n,o))),null}let c=null,l=x[fc("0xbd")],u=x[fc("0x5e")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e.isOwn)continue;if(e[fc("0x93")]||e[fc("0x125")]||e[fc("0x7c")])continue;if(t.data[fc("0xbc")]!=n.formatGroupId)continue;if(!Ic(t,o))continue;const i=t[fc("0xda")]();if(t.subType==r){if(i[fc("0x117")](x,!0))return null;l=l.isBefore(i[fc("0xbd")])?l:i[fc("0xbd")],u=u[fc("0x9b")](i[fc("0x5e")])?u:i[fc("0x5e")],c?i[fc("0xbd")][fc("0x127")](c[fc("0xda")]()[fc("0xbd")])?(c[fc("0x1a")](),c=t):t[fc("0x1a")]():c=t}else{const e=x[fc("0x115")](i);this[fc("0x107")](t,e)}}const d=this[fc("0x17d")][fc("0x165")][fc("0xb1")](fc("0x42")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x99")](c,this[fc("0xac")][fc("0x46")](l,u)),c;{const t=this[fc("0xf3")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:o});return this._addSuggestionMarker(fc("0xcb")+r,g,f,this[fc("0xac")][fc("0x46")](l,u)),t}}[fc("0x83")](t,n,i=[],r=null,o={}){n[fc("0xbc")]||(n.formatGroupId=n.commandName);const s=t[0];n[fc("0x3d")]=s.is(fc("0x175")),r=r||Tc(n);const x=i[fc("0xe8")]((t=>Cc(t,this[fc("0xac")]))),a=s.is(fc("0x175"))?t:t[fc("0xe8")]((t=>Cc(t,this[fc("0xac")])));if("never"===this[fc("0x92")]){const t=this[fc("0x4c")].getSuggestionCallback("formatBlock",r,fc("0xea"));return this[fc("0x149")]((()=>t(a,n,o))),null}x[fc("0x9")](...a);let c=!0;for(const t of x)if(!this[fc("0x144")](t)){c=!1;break}if(c&&fc("0x12d")!==this[fc("0x92")]){const t=this._suggestionFactory[fc("0x5f")](fc("0x4e"),r,fc("0xea"));return this[fc("0x149")]((()=>t(a,n,o))),null}const l=this[fc("0x17d")][fc("0x165")][fc("0xb1")]("Users").me;for(const t of this[fc("0x6a")]()){if(t[fc("0x15f")].id!=l.id)continue;if(fc("0x4e")!=t[fc("0xb9")]||t[fc("0xb0")][fc("0xbc")]!=n.formatGroupId)continue;if(!Ic(t,o))continue;const e=t[fc("0x10b")]==r;for(let n=0;n<a[fc("0xa8")];n++){const i=a[n];for(const r of t[fc("0xcc")]()){const o=r[fc("0x13b")]();if(i[fc("0x3a")](o)){e?(a[fc("0x8a")](n,1),n--):t[fc("0x73")](r[fc("0x22")]);break}}}}if(0==a[fc("0xa8")])return null;const u=this._suggestionFactory[fc("0x5f")](fc("0x4e"),r,"join");for(const t of this[fc("0x6a")]())if(t[fc("0x15f")].id==l.id&&fc("0x4e")==t[fc("0xb9")]&&t[fc("0xb0")][fc("0xbc")]==n[fc("0xbc")]&&t.subType==r&&Ic(t,o)&&(u(t[fc("0x97")](),a)||u(a,t[fc("0x97")]()))){for(const e of a)t[fc("0x16c")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xcb")+r,m=this[fc("0xf3")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[fc("0x21")](f,d,g,t,Yi[fc("0x72")]());return m}markDeletion(t,n=null,i={}){if(t[fc("0xdf")])return null;const r=this[fc("0x17d")][fc("0x165")][fc("0xb1")]("Users").me,o=new s.LiveRange(t.start,t[fc("0x5e")]);for(const{suggestion:t,meta:e}of this[fc("0x5b")](o,"insertion"))if(e[fc("0xc0")]&&!e.isNextTo)if(t[fc("0xa1")]){const e=t[fc("0x97")]()[fc("0x88")]((t=>"$graveyard"!=t[fc("0x164")][fc("0x113")]));if(e[fc("0x141")]((t=>o[fc("0x117")](t,!0)))&&t.discard(),e[fc("0x2c")]((t=>t[fc("0x117")](o,!0)))){const t=this._suggestionFactory[fc("0x5f")]("deletion",n,fc("0xea"));return this[fc("0x149")]((()=>t([o],null,i))),null}}else{const e=o.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,i)}if(o.detach(),o.isCollapsed||fc("0x82")==o[fc("0x164")][fc("0x113")])return null;let x=null,a=o.start,c=o[fc("0x5e")];const l=this[fc("0x5b")](o,fc("0x56"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0xac")][fc("0x46")](a,c);if(e[fc("0xc0")]&&(this[fc("0xe")]||!e[fc("0x125")]&&!e[fc("0x7c")]))if(t[fc("0xa1")]){if(!Ic(t,i))continue;let e=!0;for(const i of t[fc("0x97")]()){if(i[fc("0x117")](n,!0))return t;n[fc("0x117")](i)||(e=!1)}e&&t.discard()}else{const e=t[fc("0xda")]();if(e[fc("0x117")](n,!0))return t;if(!Ic(t,i)){n[fc("0x117")](e)?t[fc("0x1a")]():e.containsPosition(a)?a=e[fc("0x5e")]:e[fc("0x64")](c)&&(c=e[fc("0xbd")]);continue}a=a.isBefore(e[fc("0xbd")])?a:e.start,c=c.isAfter(e[fc("0x5e")])?c:e[fc("0x5e")],i=Object[fc("0x153")]({},t[fc("0x146")]),x?e[fc("0xbd")][fc("0x127")](x.getFirstRange().start)?(x.removeMarkers(),x=t):t[fc("0x1a")]():x=t}}if(x)return this[fc("0x99")](x,this[fc("0xac")][fc("0x46")](a,c)),x;{const t=(0,e.uid)(),o=this[fc("0xac")][fc("0x46")](a,c),s=r.id,x=n?fc("0x34")+n:fc("0x56"),l=this[fc("0xf3")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this._addSuggestionMarker(x,t,s,o),l}}[fc("0x2f")](t,n=fc("0x69"),i={}){const r=this.editor[fc("0x165")][fc("0xb1")](fc("0x42")).me,o=t.map((t=>new s.LiveRange(t[fc("0xbd")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x5b")](o,fc("0x9a")))e[fc("0xc0")]&&!e[fc("0x93")]&&x[fc("0x8e")](t);for(const e of x)if(e[fc("0xa1")]){const r=e[fc("0x97")]();if((!e[fc("0x146")]||!e[fc("0x146")][fc("0xd4")])&&r.every((t=>o[fc("0x2c")]((e=>e[fc("0x117")](t,!0)))))&&e[fc("0x109")](),o.every((t=>r[fc("0x2c")]((e=>e[fc("0x117")](t,!0)))))){const e=this[fc("0x4c")][fc("0x5f")]("deletion",n,fc("0xea"));return this.forceDefaultExecution((()=>e(t,null,i))),null}}else{const t=e[fc("0xda")]();if(o.some((e=>e[fc("0x117")](t,!0)))&&e[fc("0x109")](),o[fc("0x141")]((e=>t[fc("0x117")](e,!0)))){const t=this[fc("0x4c")][fc("0x5f")](fc("0x56"),n,"accept");return this[fc("0x149")]((()=>t(o,null,i))),null}}const a=this._suggestionFactory[fc("0x5f")](fc("0x56"),n,"join");let c=null;for(const t of this[fc("0x6a")]())if(t[fc("0x15f")].id==r.id&&t[fc("0x124")]&&fc("0x56")==t[fc("0xb9")]&&t[fc("0x10b")]==n&&Ic(t,i)&&(a(t.getRanges(),o)||a(o,t[fc("0x97")]())))if(c){if(t[fc("0x2b")]&&t[fc("0x2b")][fc("0xa8")])continue;for(const e of t[fc("0x97")]())c[fc("0x137")](e)||c[fc("0x16c")](e);t[fc("0x1a")]()}else{c=t;for(const e of o)t[fc("0x137")](e)||t[fc("0x16c")](e)}if(c)return c;x[fc("0x112")]();for(const{suggestion:t,meta:e}of this[fc("0x5b")](o,"deletion"))e[fc("0xc0")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e.isInsideObject)&&Ic(t,i)&&x[fc("0x8e")](t);for(const t of x){const e=t.getRanges();if((!i||!i.skipNestingCheck)&&o.every((t=>e[fc("0x2c")]((e=>e[fc("0x117")](t,!0))))))return t;(!t[fc("0x146")]||!t[fc("0x146")].skipNestingCheck)&&e[fc("0x141")]((t=>o[fc("0x2c")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=fc("0x34")+n,g=this[fc("0xf3")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of o)t[fc("0x3f")](),t[fc("0xdf")]||fc("0x82")==t.root[fc("0x113")]||this[fc("0x21")](d,l,u,t,Yi[fc("0x72")]());return g}[fc("0x14d")](t,n,i,r,o){if(t[fc("0xdf")])return[];if(fc("0x5a")===this[fc("0x92")])return[];const s=this[fc("0x17d")][fc("0x165")][fc("0xb1")](fc("0x42")).me.id,x=Array[fc("0xff")](this[fc("0xf0")][fc("0x128")]()).filter((e=>fc("0x168")==e[fc("0xb9")]&&e.data.key==n&&e[fc("0x137")](t)));if(fc("0xd0")===this._trackFormatChanges){const e=this[fc("0x5b")](t,fc("0x9a"))[fc("0x88")]((({meta:t})=>t[fc("0xc0")]&&!t.isInsideObject&&!t.isNextTo))[fc("0xe8")]((({suggestion:t})=>t));x[fc("0x177")](...e)}const a=new Map([[t,i]]);for(const t of x){const e="attribute"==t[fc("0xb9")]?t[fc("0xb0")][fc("0x75")]:void 0,o=t[fc("0xda")](),s=Array.from(a[fc("0x15")]())[fc("0x23")]((t=>t[fc("0x123")](o)));if(!s)continue;const x=s.getDifference(o);this[fc("0x54")](n)&&fc("0x9a")==t[fc("0xb9")]&&0!=x.length||(a.delete(s),x[fc("0x15b")]((t=>{a[fc("0x133")](t,i)})),fc("0x9a")!=t[fc("0xb9")]&&e!=r&&a[fc("0x133")](s[fc("0x115")](o),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:r};n.length>37&&console[fc("0xed")](fc("0xf1"),{key:n});const l=(fc("0xf9")+(n+"|")+Tc({newValue:r}))[fc("0x87")](0,60),u=this[fc("0xf3")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[fc("0x9")](u),this[fc("0x21")](l,x,s,t)}return c}_registerBlockAttribute(t){this[fc("0xb6")][fc("0x8e")](t)}[fc("0x20")](t){this._inlineAttributeKeys[fc("0x8e")](t)}[fc("0x104")](t,e=[],n=[]){this[fc("0x98")](t,((t,...e)=>{this[fc("0x40")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[fc("0x94")](t)}[fc("0x99")](t,e){const n=t[fc("0xfa")]();this[fc("0xac")][fc("0x17f")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x17d")][fc("0xa7")][fc("0xb1")](fc("0xe7"));this[fc("0x154")].hasCommentThread(e)||this[fc("0x154")][fc("0x68")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this[fc("0x154")][fc("0x4d")](e);i[fc("0x10")](fc("0x114")),i[fc("0x114")]=!1,t[fc("0x2b")]=i}[fc("0x2e")](t,n,i,r){if(t.type!=n||t[fc("0x10b")]!=i||t[fc("0xdb")].id!=r)throw this[fc("0x17d")][fc("0x5")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0x65"),this)}[fc("0x107")](t,n){const i=t.getFirstRange();if(n[fc("0x3a")](i))t[fc("0x1a")]();else if(i[fc("0x117")](n)){const r=this._model[fc("0x11c")](n[fc("0xbd")][fc("0x53")],fc("0x5e"));this[fc("0x99")](t,this[fc("0xac")][fc("0x46")](i[fc("0xbd")],r));const o=(0,e.uid)(),s=t[fc("0xdb")].id,x=t.type+":"+t[fc("0x10b")];this[fc("0xf3")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[fc("0xb0")],attributes:t[fc("0x146")]});const a=this[fc("0xac")][fc("0x11c")](n[fc("0x5e")].parent,fc("0xa2")),c=this._model.createRange(a,i[fc("0x5e")]);this[fc("0x21")](x,o,s,c)}else if(i.containsPosition(n.start)){const e=this[fc("0xac")][fc("0x11c")](n[fc("0xbd")][fc("0x53")],"end");this[fc("0x99")](t,this[fc("0xac")][fc("0x46")](i[fc("0xbd")],e))}else{const e=this[fc("0xac")][fc("0x11c")](n[fc("0x5e")].parent,"after");this._setSuggestionRange(t,this[fc("0xac")][fc("0x46")](e,i[fc("0x5e")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,"insertion")){if(!n.isOwn)continue;const i=e[fc("0x97")]();for(const e of i)if(!t[fc("0x31")](e)[fc("0xa8")])return!0}return!1}[fc("0x132")](t){const n=this[fc("0x17d")][fc("0x165")][fc("0xb1")](fc("0x42"))[fc("0xcd")](t);if(!n)throw new e.CKEditorError(fc("0x130"),this);return n}_getExternalAuthor(t){const e=this[fc("0x17d")][fc("0x165")][fc("0xb1")]("Users"),n=(0,o.hashObject)(fc("0xa4")+t);return e.getUser(n)||e[fc("0x176")]({id:n,name:t})}_createSuggestion(t,e,n,i,r){const o=this[fc("0x132")](i),s=this._suggestionFactory[fc("0xa0")](t,e,n,o,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this[fc("0x13d")](s,fc("0xea"),(()=>{this._updateSuggestionData(n,{state:fc("0x6f")})}),{priority:fc("0x86")}),this.listenTo(s,"discard",(()=>{this[fc("0xa9")](n,{state:fc("0x48")})}),{priority:fc("0x86")}),this[fc("0xf0")][fc("0x133")](n,s),this[fc("0x10e")][fc("0x133")](s,"notReady"),s}[fc("0x79")](t){const e=t[fc("0x14f")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0xa8")]<5?e[3]:e[4],markerCount:6==e[fc("0xa8")]?e[5]:null}}[fc("0x44")](t,n,i){const r=t[fc("0xda")](),o=r[fc("0xbd")],s=r.end;this._setSuggestionRange(t,this[fc("0xac")][fc("0x46")](o,n));const x=(0,e.uid)(),a=t[fc("0xdb")].id,c=t[fc("0xb9")]+(t[fc("0x10b")]?":"+t.subType:"");this[fc("0xf3")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0xb0")]});const l=vc(t);(fc("0x4e")==t.type||l&&this[fc("0x54")](l))&&(i=this[fc("0xac")][fc("0x3e")](i[fc("0x91")])),this[fc("0x21")](c,x,a,this._model[fc("0x46")](i,s))}[fc("0x5b")](t,e=null){const n=[],i=this[fc("0x17d")][fc("0x165")].get("Users").me;Array[fc("0x13a")](t)||(t=[t]);for(const r of this[fc("0x6a")]()){if(!r.isInContent)continue;if(e&&r[fc("0xb9")]!=e)continue;let o=!1;for(const e of r[fc("0x97")]()){for(const s of t){const t=s.start.isEqual(e.end)||s[fc("0x5e")][fc("0x3a")](e[fc("0xbd")]);if(t||s[fc("0x115")](e)){const x=s.containsRange(e)&&bc(this._model[fc("0xc9")],e.start,s),a=e[fc("0x117")](s)&&bc(this[fc("0xac")].schema,s[fc("0xbd")],e);n[fc("0x9")]({suggestion:r,meta:{isOwn:i==r[fc("0x15f")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[fc("0x21")](t,e,n,i,r){this[fc("0xac")].change((o=>{let s=fc("0x2a")+t+":"+e+":"+n;r&&(s=s+":"+r),o[fc("0x51")](s,{range:i,usingOperation:!0,affectsData:!0})}))}[fc("0x24")](t){const e=t[fc("0x1")],n=t[fc("0xf8")];t[fc("0x1")]=null,t[fc("0xf8")]=null,null!=e&&(e[fc("0xf8")]=n),null!=n&&(n[fc("0x1")]=e),fc("0xde")==this[fc("0x10e")][fc("0xb1")](t)&&(this._suggestionState[fc("0x133")](t,"removed"),this[fc("0xf2")](fc("0x41"),t,e,n))}[fc("0xf3")](t){const n=t.id,i=this[fc("0x52")](t);if(this._adapter&&this[fc("0x159")][fc("0x13f")]){const r=this[fc("0x17d")][fc("0x165")].get("PendingActions"),o=i.hasComments,s=i[fc("0x10b")]?i.type+":"+i[fc("0x10b")]:i[fc("0xb9")],x=this.editor[fc("0x62")],a=r[fc("0x8e")](Ji(x,fc("0xd8"))),c={id:n,type:s,hasComments:o,data:t.data||null,originalSuggestionId:t[fc("0x17c")]||null,attributes:i[fc("0x146")]};this._adapter[fc("0x13f")](c)[fc("0x50")]((t=>{i[fc("0x110")]=!0,r.remove(a),t&&t[fc("0x148")]&&(this[fc("0xf0")].get(n)[fc("0x148")]=t[fc("0x148")])}))[fc("0xd7")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[fc("0x96")].enqueueChange({isUndoable:!1},(()=>{i[fc("0x109")]()})),i[fc("0x16b")](),this[fc("0xf0")][fc("0x174")](i.id),this[fc("0x10e")][fc("0x174")](i),t}))}return i}[fc("0x54")](t){return this._blockAttributeKeys[fc("0x11b")](t)}[fc("0xa9")](t,e){const n=this.editor[fc("0x165")].get("PendingActions"),i=this.getSuggestion(t);if(this[fc("0x159")]&&this[fc("0x159")][fc("0x84")])if(i[fc("0x110")]){const i=n[fc("0x8e")](Ji(this.editor[fc("0x62")],fc("0xd8")));this[fc("0x159")][fc("0x84")](t,e)[fc("0x50")]((()=>{n[fc("0xc3")](i)}))}else i.on(fc("0x173"),(()=>{this[fc("0xa9")](t,e)}))}[fc("0xb3")](t){if(!this._adapter||!this[fc("0x159")][fc("0xaf")])throw new e.CKEditorError(fc("0x14c"),this);return this[fc("0x159")][fc("0xaf")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:i,authorId:r}=this[fc("0x79")](t),o=this[fc("0xf0")][fc("0xb1")](e)||this[fc("0xe4")](n,i,e,r,{});switch(this[fc("0x2e")](o,n,i,r),this._suggestionState[fc("0xb1")](o)){case fc("0x3"):this[fc("0xb3")](e)[fc("0x50")]((t=>{let n=Promise.resolve();t[fc("0xee")]&&(n=this._commentsRepository[fc("0xbe")]({channelId:this[fc("0x17d")][fc("0xa7")].get(fc("0xe7")),threadId:e})),n[fc("0x50")]((()=>{this[fc("0x52")](t)[fc("0x110")]=!0}))})),this[fc("0x10e")].set(o,"markerReady");break;case fc("0x43"):this._updateSuggestionData(e,{state:fc("0xc4")});case fc("0x0"):this._suggestionState[fc("0x133")](o,fc("0xde")),this[fc("0xf2")](fc("0x1b"),o);break;case"ready":this[fc("0xf2")](fc("0x30"),o)}return o[fc("0x35")](t),o}_refreshSuggestionsChain(t){const e=Array[fc("0xff")](t),n=e[fc("0x88")]((t=>fc("0x168")==t[fc("0xb9")]));this[fc("0x25")](n);const i=e[fc("0x88")]((t=>!t[fc("0xa1")]&&"attribute"!=t[fc("0xb9")])),r=this[fc("0x6a")]({skipNotAttached:!0}).filter((t=>!t[fc("0xa1")]&&fc("0x168")!=t.type)),o=r[fc("0x88")]((e=>!t[fc("0x11b")](e))),s=new Map(r[fc("0xe8")]((t=>[t,this._suggestionFactory[fc("0x5f")](t[fc("0xb9")],t[fc("0x10b")],fc("0x100"))]))),x=new Map(r[fc("0xe8")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<i[fc("0xa8")];t++)u(i[t],i,t+1);for(let t=0;t<i[fc("0xa8")];t++)u(i[t],o,0);const l=new Set;for(let t=0;t<i[fc("0xa8")];t++){const e=i[t];!c[fc("0x11b")](e)&&e[fc("0x1")]&&(l[fc("0x8e")](e.previous),e.previous[fc("0xf8")]===e&&(e.previous[fc("0xf8")]=null),e[fc("0x1")]=null),!a[fc("0x11b")](e)&&e[fc("0xf8")]&&(l[fc("0x8e")](e[fc("0xf8")]),e.next[fc("0x1")]===e&&(e[fc("0xf8")][fc("0x1")]=null),e[fc("0xf8")]=null)}function u(t,e,n){for(let i=n;i<e[fc("0xa8")];i++){const n=d(t,e[i]);n&&(n[0][fc("0xf8")]=n[1],n[1][fc("0x1")]=n[0],a[fc("0x8e")](n[0]),c[fc("0x8e")](n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x15f")].id)return null;const n=s[fc("0xb1")](t)(t,e,x[fc("0xb1")](t),x[fc("0xb1")](e));return n&&s[fc("0xb1")](e)(t,e,x.get(t),x[fc("0xb1")](e))?n[1][fc("0x2b")]&&n[1][fc("0x2b")].length?null:n:null}l.size&&this[fc("0x158")](l)}[fc("0x25")](t){if(0==t[fc("0xa8")])return;const e=this[fc("0x6a")]({skipNotAttached:!0})[fc("0x88")]((t=>fc("0x168")==t[fc("0xb9")]&&t[fc("0x14a")])),n=[],i=new Map;for(const t of e){const e=(0,o.hashObject)(t[fc("0x146")]);i[fc("0x11b")](e)||(i[fc("0x133")](e,n[fc("0xa8")]),n[fc("0x9")]([]));const r=i[fc("0xb1")](e);n[r][fc("0x9")](t)}!function(){n[fc("0xe3")](((t,e)=>{const n=t[0][fc("0x148")],i=e[0].createdAt;return n==i?t[0].attributes.groupId<e[0][fc("0x146")][fc("0xca")]?-1:1:n<i?-1:1}));for(const t of n)t[fc("0xe3")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xa8")];t++){if(0==n[t][fc("0xa8")])continue;const e=[];for(let i=t+1;i<n[fc("0xa8")];i++)0!=n[i].length&&r(n[t],n[i])&&e[fc("0x9")](i);for(const i of e)n[t]=n[t].concat(n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0xf8")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function r(t,e){if(t[0][fc("0x15f")]!==e[0][fc("0x15f")])return!1;if(n=t[0],i=e[0],(n[fc("0xee")]||i[fc("0xee")])&&(n[fc("0xee")]&&i[fc("0xee")]||!(n[fc("0xee")]&&i[fc("0x148")]<n.commentThread[fc("0x163")][fc("0xb1")](0).createdAt||i[fc("0xee")]&&n[fc("0x148")]<i[fc("0x2b")][fc("0x163")].get(0)[fc("0x148")])))return!1;var n,i;const r=lc(t[0].attributes,fc("0xca")),o=lc(e[0][fc("0x146")],fc("0xca"));return!!ji(r,o)&&(!!t[fc("0x141")]((t=>e.some((e=>t.getFirstRange()[fc("0x3a")](e[fc("0xda")]())))))&&e[fc("0x141")]((e=>t[fc("0x2c")]((t=>e[fc("0xda")]()[fc("0x3a")](t[fc("0xda")]()))))))}}[fc("0xb4")](t){const e=Array[fc("0xff")](t),n=this.getSuggestions({skipNotAttached:!0}),i=n[fc("0x88")]((e=>!t[fc("0x11b")](e))),r=new Map(e.map((t=>[t,this[fc("0x4c")][fc("0x5f")](t[fc("0xb9")],t[fc("0x10b")],fc("0x55"))]))),o=new Map(n[fc("0xe8")]((t=>[t,t[fc("0x97")]()])));for(let t=0;t<e[fc("0xa8")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xa8")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[fc("0xa8")];s++){const i=n[s];if(i.type!==e[fc("0xb9")]||i[fc("0x15f")].id!==e[fc("0x15f")].id||i[fc("0x10b")]!==e[fc("0x10b")])continue;if(!kc(e,i))continue;if(fc("0x168")==e[fc("0xb9")]&&e[fc("0xb0")][fc("0x75")]!=i[fc("0xb0")].oldValue)continue;if("attribute"==e[fc("0xb9")]&&t[fc("0x54")](e[fc("0xb0")][fc("0x152")]))continue;if(fc("0x4e")==e[fc("0xb9")]){const n=t[fc("0x17d")][fc("0x96")],i=e[fc("0xec")]();if(i&&(n[fc("0xc9")][fc("0x169")](i)||n[fc("0xc9")].isLimit(i)))continue}const x=r[fc("0xb1")](e),a=o.get(e),c=o.get(i),l=e.commentThread&&e[fc("0x2b")][fc("0xa8")],u=i[fc("0x2b")]&&i.commentThread[fc("0xa8")];if(!l&&x(c,a))return t[fc("0x6")](i,e),o.delete(e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,i),o[fc("0x174")](i),!0}return!1}}[fc("0x6")](t,e){if(t.isMultiRange)for(const n of e.getRanges())t[fc("0x16c")](n);else{const n=e[fc("0xda")]().end;this[fc("0x99")](t,this._model[fc("0x46")](t[fc("0xda")]()[fc("0xbd")],n))}e[fc("0x1a")]()}[fc("0x126")](t,e){const n=t.startsWith(fc("0x14e"))||t[fc("0xd9")](fc("0x168"))?"FORMATTING":t.toUpperCase();return Ji(this[fc("0x17d")].locale,e+"_"+n+fc("0xef"))}[fc("0x116")](){const t=this.editor;(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[fc("0x79")](t[fc("0x22")]);if("suggestion"===e){i.push(this._getMarkerAnnouncementText(n,fc("0x76")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x79")](t[fc("0x22")]);if(fc("0xc6")===e){i[fc("0x9")](this[fc("0x126")](n,fc("0x16a")));break}}i.length&&t.ui[fc("0x12")][fc("0x63")](fc("0x160"),i.join(" "))}))}[fc("0x1c")](t){if(null!==this[fc("0x147")])return!1;const e=this[fc("0x17d")],n=e[fc("0x96")][fc("0xf4")].differ[fc("0x139")]();if(0==n[fc("0xa8")])return!1;const i=[],r=n[fc("0x88")]((t=>fc("0x168")==t[fc("0xb9")])),o=n[fc("0x88")]((t=>fc("0x138")==t[fc("0xb9")]&&fc("0xe1")!=t[fc("0x22")])),s=n.filter((t=>"remove"==t[fc("0xb9")]&&fc("0xe1")!=t[fc("0x22")]));for(const t of r)i[fc("0x9")]({key:t[fc("0x60")],newValue:t[fc("0x78")],oldValue:t[fc("0x14b")],range:(x=t.range,null==x[fc("0x5e")][fc("0x53")]&&x[fc("0x5e")].parent==x.start.nodeAfter?Cc(x[fc("0xbd")][fc("0x15c")],e.model):x)});var x;for(const t of o){const n=s[fc("0x23")]((e=>e[fc("0xb2")][fc("0x3a")](t[fc("0xb2")])));n&&i[fc("0x9")]({key:fc("0xdc"),newValue:t[fc("0x22")],oldValue:n[fc("0x22")],range:e.model[fc("0x1f")](t.position.nodeAfter)})}return 0!=i[fc("0xa8")]&&this[fc("0xd")](t,i)}[fc("0x170")](t){let e=!1;const n=this[fc("0x17d")][fc("0x96")][fc("0xf4")].differ.getChangedMarkers()[fc("0x88")]((t=>t.data[fc("0x14")]&&t.name[fc("0xd9")](fc("0x11a"))));for(const i of n){const{subType:n,id:r}=this._splitMarkerName(i.name),o=n.split("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=r&&fc("0x168")==n[fc("0xb9")]&&n[fc("0xb0")]&&n[fc("0xb0")][fc("0x152")]==o&&n[fc("0xda")]()[fc("0x123")](i[fc("0xb0")][fc("0x14")])&&(this[fc("0xaa")](n,i[fc("0xb0")][fc("0x14")],t),e=!0)}return e}[fc("0x40")](t){if(null!==this[fc("0x147")])return void t();const n=this[fc("0x17d")];this[fc("0x147")]=n.model[fc("0xf4")].version,t();const i=new Map;for(const t of n[fc("0x96")][fc("0xf4")][fc("0x90")][fc("0x10d")](this[fc("0x147")]))if([fc("0x80"),fc("0x16"),fc("0x45"),fc("0x33")][fc("0xf7")](t[fc("0xb9")])){const e=t[fc("0x135")],n=i[fc("0xb1")](e)||[];n.push(t),i[fc("0x133")](e,n)}this[fc("0x147")]=null;for(const[t,r]of i){const i=(0,e.uid)();n[fc("0x96")][fc("0x4")](t,(t=>{const e=[];for(const t of r){let r,o,s,x;if(fc("0x80")==t[fc("0xb9")]){const e=t;r=Cc(e.position[fc("0x15c")],n.model),o=fc("0xdc"),s=e[fc("0xfe")],x=e.oldName}else{const e=t,i=this[fc("0x54")](e.key),a=this[fc("0x37")].has(e.key);if(!i&&!a)continue;r=i?Cc(e[fc("0x175")][fc("0xbd")][fc("0x15c")],n[fc("0x96")]):e[fc("0x175")],o=e[fc("0x152")],s="removeAttribute"==t[fc("0xb9")]?void 0:e[fc("0x27")],x=e[fc("0x75")]}this[fc("0x14d")](r,o,x,s,{groupId:i}),e[fc("0x9")]({range:r,key:o,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[fc("0xd")](t,e){if(0==e.length)return!1;let n=!1;for(const i of e){const e=this[fc("0x5b")](i.range,fc("0x168")).filter((t=>!t[fc("0x155")][fc("0x93")]))[fc("0xe8")]((t=>t[fc("0xc6")])),r=(0,o.hashObject)({newValue:i.newValue});e[fc("0x88")]((t=>{const[e,n]=t[fc("0x10b")].split("|");return e==i[fc("0x152")]&&n!=r}))[fc("0x15b")]((e=>{this._reduceSuggestionAttributeRange(e,i[fc("0x175")],t),n=!0}))}return n}[fc("0xaa")](t,e,n){const i=t[fc("0xda")]()[fc("0x31")](e);0!==i[fc("0xa8")]?1!==i[fc("0xa8")]?this[fc("0x44")](t,e[fc("0xbd")],e[fc("0x5e")]):this[fc("0x99")](t,i[0]):n[fc("0x73")](t.getFirstMarker())}}class pc{constructor(t){this[fc("0xdd")]=t,this[fc("0xac")]=t[fc("0x96")],this._customCallbacks=new Map,this[fc("0xce")]=new Map,this[fc("0x7d")]()}[fc("0xa0")](t,e,n,i,r,o){return new Yi(this[fc("0xac")],{type:t,subType:e,id:n,author:i,creator:i,attributes:r,onAttributesChange:o,onAccept:(...n)=>this[fc("0x5f")](t,e,fc("0xea"))(...n),onDiscard:(...n)=>this[fc("0x5f")](t,e,fc("0x109"))(...n)})}[fc("0x106")](t,e,n,i){const r=t+":"+e+":"+n;this[fc("0xf5")][fc("0x133")](r,i)}[fc("0x5f")](t,e,n){const i=t+":"+e+":"+n;return this[fc("0xf5")].get(i)||this[fc("0xce")].get(t+":"+n)}[fc("0x7d")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0xbd")][fc("0x127")](e.start)?1:-1)),this[fc("0xac")].change((e=>{for(const n of t){let t;t=n[fc("0x5e")][fc("0x10a")]&&n.end[fc("0x91")]==n[fc("0xbd")][fc("0x15c")]?e[fc("0x8f")](n[fc("0xbd")][fc("0x15c")],"on"):e[fc("0x8f")](n),this[fc("0xac")][fc("0x36")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0xac")][fc("0x17f")]((n=>{const{commandName:i,commandParams:r=[]}=e,o=t[fc("0xe8")]((t=>(Ec(t)&&(t=this[fc("0xac")][fc("0x46")](t[fc("0x5e")])),t)))[fc("0x88")]((t=>fc("0x82")!==t[fc("0x164")][fc("0x113")]));if(o.length<1)return;const x=Array.from(this[fc("0xac")][fc("0xf4")].selection[fc("0x97")]())[fc("0xe8")]((t=>s.LiveRange.fromRange(t)));n.setSelection(o);for(const t of this[fc("0xdd")][fc("0x145")][fc("0x145")]())t[fc("0x134")]();r[fc("0x9")]({forceDefaultExecution:!0}),this[fc("0xdd")][fc("0x143")](i,...r);const a=x.filter((t=>"$graveyard"!=t[fc("0x164")][fc("0x113")]));a[fc("0xa8")]>0&&n[fc("0x32")](a);for(const t of x)t[fc("0x3f")]()}))},i=(t,e)=>1==t[fc("0xa8")]&&1==e[fc("0xa8")]&&t[0][fc("0x5e")][fc("0x3a")](e[0][fc("0xbd")]),r=(t,e,n,i)=>Ac(t,e,n,i,this[fc("0xac")])?[t,e]:Ac(e,t,i,n,this[fc("0xac")])?[e,t]:null;this[fc("0xce")][fc("0x133")]("insertion:accept",t),this[fc("0xce")].set(fc("0xe9"),e),this[fc("0xce")][fc("0x133")](fc("0x17a"),i),this[fc("0xce")][fc("0x133")](fc("0x10c"),r),this._defaultCallbacks[fc("0x133")]("deletion:accept",e),this._defaultCallbacks[fc("0x133")](fc("0xbb"),t),this._defaultCallbacks[fc("0x133")](fc("0x156"),i),this[fc("0xce")][fc("0x133")](fc("0x1d"),r),this[fc("0xce")].set("formatInline:accept",n),this[fc("0xce")][fc("0x133")](fc("0x172"),t),this[fc("0xce")][fc("0x133")](fc("0xb5"),i),this._defaultCallbacks[fc("0x133")]("formatInline:chain",t),this._defaultCallbacks[fc("0x133")](fc("0x6d"),n),this._defaultCallbacks[fc("0x133")](fc("0x13"),t),this._defaultCallbacks[fc("0x133")](fc("0x57"),i),this[fc("0xce")].set(fc("0x11e"),t),this._defaultCallbacks[fc("0x133")](fc("0x101"),t),this._defaultCallbacks[fc("0x133")]("attribute:discard",((t,e)=>{if(!e)return;const n=this._editor[fc("0x165")].get(hc);this[fc("0xac")][fc("0x17f")]((i=>{if("$elementName"==e[fc("0x152")])for(const n of t){const t=n[fc("0xbd")][fc("0x15c")],r=e[fc("0x75")];i[fc("0x80")](t,r)}else if(n[fc("0x54")](e[fc("0x152")]))for(const n of t)void 0!==e[fc("0x75")]?i[fc("0x121")](e[fc("0x152")],e[fc("0x75")],n[fc("0xbd")][fc("0x15c")]):i[fc("0x45")](e[fc("0x152")],n[fc("0xbd")][fc("0x15c")]);else for(const n of t)e[fc("0x75")]?i[fc("0x121")](e[fc("0x152")],e[fc("0x75")],n):i[fc("0x45")](e[fc("0x152")],n)}))})),this[fc("0xce")].set(fc("0x7e"),i)}}function bc(t,e,n){for(const i of e.parent[fc("0x66")]({includeSelf:!0,parentFirst:!0})){if(i[fc("0x164")]==i)return!1;if(!n[fc("0x12c")](i))return!1;if(t[fc("0x169")](i)||t[fc("0x9c")](i))return!0}return!1}function Ec(t){return t[fc("0x5e")].parent==t[fc("0xbd")][fc("0x15c")]&&t[fc("0x5e")][fc("0xad")]}function _c(t,e,n,i){const r=t=>!t[fc("0x49")].is("$textProxy")&&!i.isObject(t[fc("0x49")]),o=t.start[fc("0xc2")](r),s=t.end[fc("0xc2")](r,{direction:fc("0x28")});return!(t[fc("0xbd")][fc("0x3a")](o)&&t[fc("0x5e")][fc("0x3a")](s)||(o[fc("0x127")](s)?n[fc("0xd1")](e,{range:n[fc("0x46")](o,s)}):n[fc("0x73")](e),0))}function Tc(t){return(0,o.hashObject)(t)}function yc(t){const e=t[fc("0xbd")][fc("0x15c")];return e&&e.is(fc("0x16f"))}function Cc(t,e){const n=e[fc("0xc9")][fc("0x169")](t)||e[fc("0xc9")][fc("0x120")](t);return e[fc("0x46")](e[fc("0x11c")](t,fc("0x61")),n?e[fc("0x89")](t):e[fc("0x11c")](t,fc("0x5e")))}function Ac(t,e,n,i,r){if(!kc(t,e))return!1;if(n[fc("0x5e")][fc("0x3a")](i.start))return!0;if(t[fc("0xb9")]!=e[fc("0xb9")])return!1;if(!n[fc("0x5e")][fc("0x17b")](i[fc("0xbd")]))return!1;const o=r[fc("0x46")](n[fc("0x5e")],i[fc("0xbd")])[fc("0xd3")]();for(const t of o)if([fc("0x13e"),fc("0x71")].includes(t[fc("0xb9")])&&r[fc("0xc9")].isLimit(t[fc("0x49")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x14a")]||!e[fc("0x14a")])&&ji(t[fc("0x146")],e[fc("0x146")])}function Ic(t,e){const n=Rc(t[fc("0x146")]),i=Rc(e);if(!t[fc("0x14a")])return!1;for(const t of Object[fc("0x15")](i))if(!ji(n[t],i[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x153")]({},t);return delete e[fc("0xd4")],delete e[fc("0xba")],e}function vc(t){return"attribute"==t.type?t[fc("0x10b")].split("|")[0]:null}const Sc=["discardSuggestion","_pendingAction","unbind","_setPendingAction","_removePendingAction","view","destroy","stopListening","isEnabled","_discardCommand","bind","get","model","PendingActions","listenTo","canDiscard","acceptSuggestion","canAccept","execute","plugins","commands","_editor","locale","canEditAt","remove","getRanges","PENDING_ACTION_SUGGESTION","isDirty","_acceptCommand","commentThreadController"];var Nc,Lc;Nc=Sc,Lc=387,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return Sc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,i){super(),this.model=e,this[Mc("0x8")]=n,this[Mc("0x2")]=i,this[Mc("0x18")]=t,this[Mc("0x1")]=t.commands[Mc("0xe")](Mc("0x13")),this[Mc("0xc")]=t[Mc("0x17")].get(Mc("0x3")),this[Mc("0x8")][Mc("0xd")](Mc("0xb")).to(this._acceptCommand,this[Mc("0xc")],((t,e)=>t||e)),this[Mc("0x8")][Mc("0xd")](Mc("0x14")).to(this._acceptCommand,Mc("0xb"),(t=>t&&this._editor[Mc("0xf")][Mc("0x1a")](e[Mc("0x1c")]()))),this[Mc("0x8")][Mc("0xd")](Mc("0x12")).to(this._discardCommand,"isEnabled",(t=>t&&this[Mc("0x18")].model[Mc("0x1a")](e[Mc("0x1c")]()))),this._pendingAction=null,n.isDirty&&this[Mc("0x6")](),this.listenTo(n,Mc("0x13"),(()=>this.acceptSuggestion())),this[Mc("0x11")](n,Mc("0x3"),(()=>this[Mc("0x3")]())),this[Mc("0x11")](n,"change:isDirty",(()=>{n[Mc("0x0")]?this[Mc("0x6")]():this[Mc("0x7")]()}))}[Mc("0x13")](){this._acceptCommand[Mc("0x15")](this.model.id)}[Mc("0x3")](){this[Mc("0xc")][Mc("0x15")](this.model.id)}[Mc("0x9")](){this[Mc("0x8")][Mc("0x5")](Mc("0xb")),this[Mc("0x8")][Mc("0x5")](Mc("0x14")),this[Mc("0x8")][Mc("0x5")]("canDiscard"),this[Mc("0xa")](),this.commentThreadController[Mc("0x9")](),this[Mc("0x4")]&&this[Mc("0x7")]()}[Mc("0x6")](){const t=Ji(this[Mc("0x18")][Mc("0x19")],Mc("0x1d"));this._pendingAction=this[Mc("0x18")][Mc("0x16")][Mc("0xe")](Mc("0x10")).add(t)}_removePendingAction(){null!==this._pendingAction&&this._editor[Mc("0x16")][Mc("0xe")](Mc("0x10"))[Mc("0x1b")](this[Mc("0x4")]),this[Mc("0x4")]=null}}const Oc=["delegate","commentThread","isReadOnly","bind","setData","set","updateComment","submit","commentThreadInputView","removeComment","length","descriptionParts","destroy","authoredAt","cancel","disableComments","_config","assign","element","isActive","commentInputView","isDirty","locale","disabledSubmit","hasDirtyComment","showInput","commentsListView","value","isEnabled","_model","_localUser","focus","_createCommentThreadInputView","addComment","fire"];var Fc,Dc;Fc=Oc,Dc=380,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,i){super(t),this.commentsListView=null,this[Bc("0xd")]=null,this[Bc("0xa")](Bc("0x18"),!1),this[Bc("0xa")]("authoredAt",e.authoredAt),this[Bc("0x8")](Bc("0x12")).to(e),this.set(Bc("0x10"),[]),this[Bc("0xa")](Bc("0x1a"),!1),this[Bc("0xa")](Bc("0x21"),!1),this.set("canAccept",!1),this[Bc("0xa")]("canDiscard",!1),this[Bc("0x22")]=e,this._localUser=n,this[Bc("0x15")]=i,i[Bc("0x14")]?this[Bc("0xa")]("length",1):this._createCommentViews()}[Bc("0x1")](){this[Bc("0x17")][Bc("0x1")]()}[Bc("0x11")](){this[Bc("0x1f")]&&this.commentsListView[Bc("0x11")](),this[Bc("0xd")]&&this[Bc("0xd")][Bc("0x11")](),super.destroy()}_createCommentViews(){const{CommentsListView:t}=this._config;this.commentsListView=new t(this[Bc("0x1b")],this[Bc("0x22")][Bc("0x6")],Object[Bc("0x16")]({CommentView:this._config.CommentView},this._config)),this[Bc("0x1f")][Bc("0x5")](Bc("0xe")).to(this),this[Bc("0x1f")][Bc("0x5")](Bc("0xb")).to(this),this[Bc("0x1f")].bind(Bc("0x18")).to(this),this[Bc("0xa")](Bc("0xf"),this.commentsListView.length+1),this[Bc("0x8")](Bc("0xf")).to(this[Bc("0x1f")],Bc("0xf"),(t=>t+1)),this[Bc("0xd")]=this._createCommentThreadInputView(),this.on(Bc("0xe"),(()=>this[Bc("0x1")]())),this[Bc("0x8")](Bc("0x1a")).to(this.commentsListView,Bc("0x1d"),this[Bc("0xd")][Bc("0x19")],Bc("0x20"),((t,e)=>t||!!e))}[Bc("0x2")](){const{CommentThreadInputView:t}=this[Bc("0x15")],e=new t(this.locale,this[Bc("0x0")],this[Bc("0x15")].editorConfig),n=e[Bc("0x19")];return e[Bc("0x8")](Bc("0x1e")).to(this,"isActive",this[Bc("0x22")][Bc("0x6")],Bc("0x7"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Bc("0xc"),((t,e)=>{this[Bc("0x4")](Bc("0x3"),e),n.editor[Bc("0x9")]("")})),n.on(Bc("0x13"),(()=>this[Bc("0x1")]())),n[Bc("0x8")](Bc("0x1c")).to(this._model[Bc("0x6")],Bc("0x7")),e}}const Uc=["formatDateTime","source","cancel","commentsListView","Accept suggestion","name","locale","_createButton","userView","type","render","ck-annotation__user","extendTemplate","Discard suggestion","</span>","description","editorDestroyed","ck-annotation__info-time","color","ck-suggestion__info","commentThreadInputView","_descriptionElement","editorReady","creator",'<span class="ck-suggestion-color" style="background-color: ',"author","time","canAccept","ck-annotation","commentThread","ck-suggestion-wrapper--active","set","fire","ck-suggestion--disabled-comments","ck-suggestion__main","ck-suggestion--accept","push","descriptionParts","ck-annotation__info-name","isExternal","acceptSuggestion","div","canDiscard",'" title="',"map","_config","setTemplate","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion-wrapper","ck-annotation__actions","title","@external","_model","ck-suggestion-","ck-annotation__info","value","discardSuggestion","getUserViewNotificationText","innerText","bindTemplate","join","isEnabled","discardButton","getExternalSuggestionNote","element","attributes",".ck-annotation__content-wrapper","isActive","importWord","EXTERNAL_IMPORT_WORD_SUGGESTION","getTemplate","ck-suggestion__actions","disableComments","innerHTML","delegate","bind","ck-suggestion--discard","authoredAt","<p>","querySelector","</p>",'<span class="ck-suggestion-type">',"acceptButton"];var jc,Gc;jc=Uc,Gc=254,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,i,r){super(e,n,i,r),this[Vc("0x1a")]("type",""),this.bind(Vc("0x4")).to(this,Vc("0x20"),(t=>t&&t[0]?t[0][Vc("0x4")]:"")),this[Vc("0x46")](Vc("0xa")).to(this,Vc("0x20"),this,Vc("0x3e"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x49")+zc(e.content,e[Vc("0xd")])+Vc("0x4b");return e?n:(0,o.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Vc("0x4d")]=this[Vc("0x2")](Ji(e,Vc("0x52")),t.icons.check,Vc("0x1e"),Vc("0x23"),"sw"),this[Vc("0x4d")][Vc("0x46")]("isEnabled").to(this,Vc("0x16")),this.discardButton=this[Vc("0x2")](Ji(e,Vc("0x8")),t.icons[Vc("0x50")],Vc("0x47"),Vc("0x33"),"sw"),this[Vc("0x39")][Vc("0x46")](Vc("0x38")).to(this,Vc("0x25")),this[Vc("0x3")]=new o.UserView(e,this._model[Vc("0x14")],this[Vc("0x34")]()),this[Vc("0x3")][Vc("0x7")]({attributes:{class:["ck-suggestion__user",Vc("0x6")]}}),this[Vc("0x29")](this[Vc("0x41")]())}getTemplate(){const t=this[Vc("0x36")],e=[{tag:Vc("0x24"),attributes:{class:[Vc("0xe"),Vc("0x31")]},children:[{tag:"span",children:[{text:this[Vc("0x3")][Vc("0x0")]}],attributes:{class:["ck-suggestion__info-name",Vc("0x21")]}},{tag:Vc("0x15"),attributes:{datetime:t.to(Vc("0x48")),class:["ck-comment__info-time",Vc("0xc")]},children:[{text:t.to(Vc("0x48"),(t=>this[Vc("0x28")][Vc("0x4e")](t)))}]}]},{tag:Vc("0x24"),attributes:{class:[Vc("0x42"),Vc("0x2c")]},children:[this[Vc("0x4d")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x2f")][Vc("0x22")]&&e.push({tag:Vc("0x24"),attributes:{class:["ck-comment__external"]},children:[{text:this[Vc("0x3a")]()}]});const n={tag:Vc("0x24"),attributes:{class:[Vc("0x2b"),t.if(Vc("0x3e"),Vc("0x19")),t.to(Vc("0x4"),(t=>Vc("0x30")+t)),this[Vc("0x28")][Vc("0x43")]&&Vc("0x1c")],"data-suggestion-id":this[Vc("0x2f")].id,"data-thread-id":this[Vc("0x2f")][Vc("0x18")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:Vc("0x24"),attributes:{class:["ck-suggestion",Vc("0x17")]},children:[this[Vc("0x3")],{tag:"div",attributes:{class:[Vc("0x1d"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0x51")]&&this[Vc("0xf")]&&(n.children[Vc("0x1f")](this.commentsListView,this.commentThreadInputView),this[Vc("0x51")][Vc("0x45")](Vc("0x11")).to(this),this[Vc("0x51")][Vc("0x45")](Vc("0xb")).to(this),this[Vc("0xf")][Vc("0x45")](Vc("0x11")).to(this),this[Vc("0xf")].delegate(Vc("0xb")).to(this)),n}[Vc("0x5")](){super[Vc("0x5")](),this[Vc("0x10")]=this[Vc("0x3b")][Vc("0x4a")](Vc("0x3d")),this[Vc("0x10")].innerHTML=this[Vc("0xa")],this.on("change:description",((t,e,n)=>{this._descriptionElement[Vc("0x44")]=n}))}[Vc("0x2")](t,e,n,i,o){const s=new r.ButtonView(this[Vc("0x1")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s.extendTemplate({attributes:{class:n}}),s.on("execute",(()=>{this[Vc("0x1b")](i,this._model.id)})),s}getExternalSuggestionNote(){return Vc("0x3f")===this[Vc("0x2f")][Vc("0x3c")][Vc("0x2e")][Vc("0x4f")]?Ji(this[Vc("0x1")],Vc("0x40")):Ji(this[Vc("0x1")],"EXTERNAL_SUGGESTION")}[Vc("0x34")](){return this[Vc("0x2f")][Vc("0x22")]?Vc("0x3f")===this[Vc("0x2f")].attributes[Vc("0x2e")][Vc("0x4f")]?Ji(this[Vc("0x1")],Vc("0x2a"),this[Vc("0x2f")][Vc("0x12")][Vc("0x0")]):Ji(this[Vc("0x1")],"EXTERNAL_AVATAR",this[Vc("0x2f")][Vc("0x12")][Vc("0x0")]):null}}function zc(t,e){let n="";return n+=t.split("*")[Vc("0x27")](((t,e)=>e%2!=0?Vc("0x4c")+Wc(t)+Vc("0x9"):Wc(t)))[Vc("0x37")](""),e&&(n+=Vc("0x13")+e[Vc("0x32")]+Vc("0x26")+e[Vc("0x2d")]+'"></span>'),n}function Wc(t){const e=document.createElement("span");return e[Vc("0x35")]=t,e[Vc("0x44")]}const Kc=["length","locale","button","CommentsRepository","acceptButton","comments","switchbutton","value","_handleControllerBuffer","mainView","from","Accept all selected suggestions","execute","unbind","TrackChangesEditing","registerAnnotation","createAnnotationView","_createUIButton","getAllAdjacentSuggestions","_initializeController","Annotations","reduce","_suggestionToController","_refreshActiveMarkers","acceptAllSuggestions","_annotationViews","keys","listenTo","comments.maxCommentsWhenCollapsed","addComment","activeAnnotations","Discard all selected suggestions","filter","_updateController","isOn","commands","add","has","suggestionLoaded","trackChanges.SuggestionThreadView","CommentsUI","_viewToController","commentThread","suggestion-","view","requires","descriptionParts","CommentView","editor","hasSuggestion","editing","trackChanges","isDirty","refreshSelectedViews","_disableComments","isMultiRange","model","buttonView","separator","discardAllSuggestions","push","isInContent","source","values","focus","Discard all suggestions","getDescriptions","Track changes","clear","_descriptionFactory","discardSelectedSuggestions","getByInnerView","init","actionView","config","head","TrackChangesUI","define","Accept all suggestions","type","_destroyController","pluginName","suggestionUnloaded","get","commandName","isEnabled","createCommentThreadController","createAnnotation","lowest","plugins","trackChanges.disableComments","getMarkerNames","change:activeAnnotations","remove","change:previous","_handleSuggestionControllerDelayed","innerView","getSuggestion","destroy","_unbindEditors","bind","getMarkers","getRanges","EditorAnnotations","arrowView","delete","comments.maxThreadTotalWeight","set","SuggestionThreadView"];var qc,$c;qc=Kc,$c=220,function(t){for(;--t;)qc.push(qc.shift())}(++$c);const Xc=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[Xc("0x2b")](){return[hc,o.Users,Xc("0x1"),Xc("0x12"),Xc("0x65")]}static get[Xc("0x4f")](){return Xc("0x4a")}constructor(t){super(t),this._suggestionToController=new Map,this[Xc("0x27")]=new Map,this[Xc("0x17")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Xc("0x48")];e[Xc("0x4b")](Xc("0x25"),Hc),e.define(Xc("0x58"),!1),this._disableComments=e[Xc("0x51")](Xc("0x58"))}[Xc("0x5d")](t,e){0===this._handleControllerBuffer.size&&setTimeout((()=>{for(const[t,e]of this[Xc("0x6")]){const n=this._suggestionToController.has(t);n||e?n&&e&&this[Xc("0x4e")](t):this._initializeController(t)}this[Xc("0x2e")][Xc("0x57")][Xc("0x51")](Xc("0x65"))[Xc("0x33")](),this[Xc("0x15")](),this[Xc("0x6")][Xc("0x42")]()}),10),this[Xc("0x6")].set(t,e)}[Xc("0x46")](){const t=this.editor,e=t[Xc("0x57")][Xc("0x51")](Xc("0xc")),n=t[Xc("0x57")][Xc("0x51")]("Annotations"),i=t[Xc("0x57")].get(Xc("0x65")),r=t.plugins.get("CommentsRepository");t.ui.componentFactory[Xc("0x22")](Xc("0x31"),(t=>this[Xc("0xf")](t))),i.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x14")])){const i=e[Xc("0x10")](),r=[];for(const t of i){if(!t[Xc("0x3b")])continue;if(t[Xc("0x35")]){r[Xc("0x3a")](...t[Xc("0x64")]());continue}const e=t.getFirstRange();if(r[Xc("0x6b")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[Xc("0x3a")](e)}t[Xc("0x3a")]([n.view,r])}return t})),this[Xc("0x19")](e,Xc("0x24"),((t,e)=>{this[Xc("0x19")](e,"change:previous",((t,n,i,r)=>{e.isInContent&&(null==i?(this[Xc("0x1f")](r[Xc("0x49")]),this[Xc("0x5d")](e,!1)):(this[Xc("0x1f")](i[Xc("0x49")]),null==r&&this[Xc("0x5d")](e,!0)))})),null!==e.previous?this._updateController(e[Xc("0x49")]):this[Xc("0x5d")](e,!1)})),this[Xc("0x19")](e,Xc("0x50"),((t,e,n)=>{this.stopListening(e,Xc("0x5c")),this[Xc("0x6")][Xc("0x67")](e),this[Xc("0x14")][Xc("0x23")](e)&&this[Xc("0x4e")](e),n&&this[Xc("0x1f")](n[Xc("0x49")])})),this.listenTo(e,"suggestionChanged",((t,e)=>{this[Xc("0x1f")](e)})),this[Xc("0x19")](n,Xc("0x5a"),(()=>{this[Xc("0x15")]()})),this[Xc("0x19")](r,Xc("0x1b"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[Xc("0x2f")](n))return;const r=e[Xc("0x5f")](n);this._suggestionToController.get(r)[Xc("0x2a")][Xc("0x3e")]()}),{priority:Xc("0x56")})}[Xc("0x15")](){const t=this[Xc("0x2e")][Xc("0x57")].get(Xc("0x12")),e=this[Xc("0x2e")][Xc("0x57")][Xc("0x51")](Xc("0xc")),n=Array[Xc("0x8")](t[Xc("0x1c")],(t=>t[Xc("0x5e")])).filter((t=>this[Xc("0x27")].has(t))),i=[];for(const t of n){const e=this[Xc("0x27")][Xc("0x51")](t)[Xc("0x36")].getAllAdjacentSuggestions();i[Xc("0x3a")](...e[Xc("0x13")](((t,e)=>[...t,...e[Xc("0x59")]()]),[]))}e.activeMarkers=i}[Xc("0xf")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),i=this[Xc("0x2e")].commands[Xc("0x51")](Xc("0x31")),o=Ji(t,Xc("0x41"));n[Xc("0x37")][Xc("0x69")]({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-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x37")][Xc("0x62")](Xc("0x20")).to(i,"value"),n.buttonView.on(Xc("0xa"),(()=>{i[Xc("0xa")](),this[Xc("0x2e")][Xc("0x30")][Xc("0x2a")][Xc("0x3e")]()}));const s=new e.Collection,x=[{type:Xc("0x4"),model:{withText:!0,label:o,commandName:"trackChanges"}},{type:Xc("0x38")},{type:Xc("0x0"),model:{withText:!0,label:Ji(t,Xc("0x4c")),commandName:Xc("0x16")}},{type:Xc("0x0"),model:{withText:!0,label:Ji(t,Xc("0x9")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Ji(t,Xc("0x3f")),commandName:Xc("0x39")}},{type:Xc("0x0"),model:{withText:!0,label:Ji(t,Xc("0x1d")),commandName:Xc("0x44")}}];for(const t of x){let e={type:"separator"};if(t[Xc("0x36")]){const n=new r.Model(t.model),i=this[Xc("0x2e")][Xc("0x21")][Xc("0x51")](n[Xc("0x52")]);n[Xc("0x62")](Xc("0x20"),Xc("0x53")).to(i,Xc("0x5"),Xc("0x53")),e={type:t[Xc("0x4d")],model:n}}s[Xc("0x22")](e)}(0,r.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model)).map((t=>this[Xc("0x2e")].commands[Xc("0x51")](t[Xc("0x36")][Xc("0x52")]))),c=n[Xc("0x37")];return c.actionView[Xc("0xb")](Xc("0x53")),c[Xc("0x66")][Xc("0xb")]("isEnabled"),c[Xc("0x47")][Xc("0x62")]("isEnabled").to(i,Xc("0x53")),c[Xc("0x66")].bind(Xc("0x53")).toMany(a,Xc("0x53"),((...t)=>t.some((t=>t)))),n.on(Xc("0xa"),(t=>{this[Xc("0x2e")].execute(t[Xc("0x3c")][Xc("0x52")]),this[Xc("0x2e")][Xc("0x30")][Xc("0x2a")][Xc("0x3e")]()})),n}[Xc("0x11")](t){const e=this.editor,n=e[Xc("0x48")],i=e.plugins[Xc("0x51")](Xc("0x12")),r=e[Xc("0x57")][Xc("0x51")](Xc("0x1")),s=e[Xc("0x57")][Xc("0x51")](Xc("0x65")),x=e[Xc("0x57")][Xc("0x51")](o.Users).me,a=n[Xc("0x51")]("trackChanges")[Xc("0x6a")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x57")].get(Xc("0x26"));let u,d;this[Xc("0x17")][Xc("0x23")](t.id)?(d=this[Xc("0x17")][Xc("0x51")](t.id),u=d[Xc("0x7")]):(u=new a(e[Xc("0x6c")],t,x,{disableComments:this[Xc("0x34")],editorConfig:n[Xc("0x51")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Xc("0x51")](Xc("0x1a")),maxThreadTotalWeight:n.get(Xc("0x68")),maxCommentCharsWhenCollapsed:n[Xc("0x51")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,o.getDateTimeFormatter)(n[Xc("0x51")]("locale")),CommentView:n[Xc("0x51")](Xc("0x3"))[Xc("0x2d")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x2")].on(Xc("0xa"),(()=>{e.editing[Xc("0x2a")][Xc("0x3e")]()})),u.discardButton.on(Xc("0xa"),(()=>{e.editing[Xc("0x2a")][Xc("0x3e")]()})),d=i[Xc("0xe")](this[Xc("0x2e")].locale,u),d.bind(Xc("0x32")).to(u,"isDirty"),d[Xc("0x62")](Xc("0x6b")).to(u),d[Xc("0x62")]("type").to(u,Xc("0x4d"),(t=>"suggestion-"+t)),this[Xc("0x17")].set(t.id,d));const g=r[Xc("0x54")](t[Xc("0x28")],u),f=new wc(e,t,u,g),m=t[Xc("0x10")]().filter((t=>t[Xc("0x3b")]));u[Xc("0x2c")]=e.plugins[Xc("0x51")](Xc("0xc"))[Xc("0x43")].getDescriptions(m),this[Xc("0x14")].set(t,f),this[Xc("0x27")].set(u,f);const h=i[Xc("0x55")]({view:d,target:()=>{const n=[],i=t[Xc("0x10")]()[Xc("0x1e")]((t=>t.isInContent));for(const t of i)n.push(...t[Xc("0x63")]());return(0,o.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Xc("0x29")+f.view[Xc("0x4d")]});r._bindAnnotationToEditors(u,h),i[Xc("0x22")](h),s[Xc("0xd")](h)}[Xc("0x4e")](t){const e=this[Xc("0x2e")][Xc("0x57")][Xc("0x51")](Xc("0x1")),n=this.editor[Xc("0x57")][Xc("0x51")](Xc("0x12")),i=this._suggestionToController[Xc("0x51")](t),r=i.view,o=n[Xc("0x45")](r);e[Xc("0x61")](r),o&&n[Xc("0x5b")](o),this[Xc("0x14")][Xc("0x67")](t),this[Xc("0x27")][Xc("0x67")](r),i[Xc("0x60")]()}[Xc("0x1f")](t){if(!t.isInContent||!this[Xc("0x14")][Xc("0x23")](t))return;const e=this[Xc("0x2e")][Xc("0x57")].get(Xc("0xc")),n=this[Xc("0x14")].get(t),i=t[Xc("0x10")]();n.view[Xc("0x2c")]=e._descriptionFactory[Xc("0x40")](i)}[Xc("0x60")](){for(const t of this[Xc("0x14")][Xc("0x18")]())this[Xc("0x4e")](t);for(const t of this[Xc("0x17")][Xc("0x3d")]())t[Xc("0x7")].destroy();super[Xc("0x60")]()}}var Yc,Jc,Qc=["addSuggestion","pluginName","get","editor","addSuggestionData","Comments","getSuggestion","adapter","plugins","getSuggestions","requires"];Yc=Qc,Jc=210,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x9")](){return[hc,Zc,tl("0x4")]}static get[tl("0x0")](){return"TrackChanges"}set[tl("0x6")](t){this[tl("0x2")].plugins.get(hc).adapter=t}get[tl("0x6")](){return this.editor[tl("0x7")].get(hc)[tl("0x6")]}[tl("0xa")](t){return this[tl("0x2")][tl("0x7")].get(hc)[tl("0x3")](t)}[tl("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x7")].get(hc)[tl("0x8")]({skipNotAttached:t,toJSON:e})}[tl("0x5")](t){return this.editor[tl("0x7")][tl("0x1")](hc)[tl("0x5")](t)}}const nl=["destroy","config","plugins","execute","track-changes-data-invalid-editor-creator","getSuggestions","get","trackChangesData.editorCreator","addSuggestionData","createElement","_adapter","editor","Pagination","Users","getRootNames","discardAllSuggestions","TrackChangesDataGetter","map","create","addUser","TrackChangesData","acceptAllSuggestions","document","function","model","getRootsAttributes","reduce","constructor","TrackChangesEditing","end","name","useAnonymousUser","data","getDataWithDiscardedSuggestions","trackChangesData","div","pluginName","appendChild","getFullData","getDataWithAcceptedSuggestions","users","createDocumentFragment","editorCreator","define","init"];var il,rl;il=nl,rl=278,function(t){for(;--t;)il.push(il.shift())}(++rl);const ol=function(t,e){return nl[t-=0]},sl=[ol("0x4")];class xl extends t.Plugin{static get requires(){return[hc]}static get[ol("0x1c")](){return ol("0xc")}[ol("0x24")](){const t=this[ol("0x3")];if(t[ol("0x26")][ol("0x23")](ol("0x2c"),(e=>{const n=t[ol("0x10")][ol("0xe")][ol("0x6")]()[ol("0x12")](((t,e)=>(t[e]="",t)),{});return t[ol("0x13")][ol("0xa")](n,e)})),ol("0xf")!=typeof t.config[ol("0x2b")]("trackChangesData")[ol("0x22")])throw new e.CKEditorError(ol("0x29"))}[ol("0x1f")](t){return ll(this.editor,!0,t)}[ol("0x19")](t){return ll(this[ol("0x3")],!1,t)}}class al extends t.Plugin{static get[ol("0x1c")](){return ol("0x8")}constructor(t){super(t),this.result=ol("0x15")}[ol("0x24")](){this.editor[ol("0x27")][ol("0x2b")]("CommentsRepository")[ol("0x2")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[ol("0x3")].plugins.get("TrackChangesEditing")[ol("0x2")]=null}}function cl(t){return void 0!==t[ol("0x11")]}async function ll(t,e,n){const i=(0,o.sanitizeEditorConfig)(t,sl);i[ol("0x27")].push(hc,al),i.rootsAttributes=cl(t)?t[ol("0x11")]():void 0;const r=document[ol("0x21")](),s=t[ol("0x26")][ol("0x2b")](ol("0x1a")).editorCreator,x=await s(i,(()=>function(t){const e=document[ol("0x1")](ol("0x1b"));return t[ol("0x1d")](e),e}(r)));!function(t,e){const n=t[ol("0x10")][ol("0xe")][ol("0x6")]()[ol("0x12")](((e,n)=>(e[n]=t[ol("0x18")][ol("0x2b")]({rootName:n}),e)),{}),i=t[ol("0x27")][ol("0x2b")](ol("0x5"))[ol("0x20")][ol("0x9")]((t=>({id:t.id,name:t[ol("0x16")]}))),r=t[ol("0x27")][ol("0x2b")]("TrackChangesEditing")[ol("0x2a")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins[ol("0x2b")](ol("0x5")),s=e.plugins.get(ol("0x14"));for(const t of i)o.getUser(t.id)||o[ol("0xb")](t);o.me||o[ol("0x17")]();for(const t of r)s[ol("0x0")](t);e[ol("0x18")].set(n)}(t,x),x[ol("0x28")](ol(e?"0xd":"0x7"));const a=cl(x)?x[ol("0x1e")](n):x[ol("0x18")][ol("0x2b")](n);return await x[ol("0x25")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["_disableUnsupportedCommands","commands","_enableCommands","forceDisabled","value","clearForceDisabled","affectsData","execute","editor","refresh","_enabledCommands","has","_isEnabledBasedOnSelection"];var c,l;c=a,l=240,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("0x4")]=e,this.value=!1,this[u("0x3")](),this[u("0x6")]=!1}[u("0x3")](){this.isEnabled=!0}[u("0x1")](){this[u("0xb")]=!this[u("0xb")],this.value?this[u("0x7")]():this[u("0x9")]()}_disableUnsupportedCommands(){for(const t of this[u("0x2")][u("0x8")][u("0x8")]())t[u("0x0")]&&!this._enabledCommands[u("0x5")](t)&&t[u("0xa")]("TrackChangesCommand")}_enableCommands(){for(const t of this[u("0x2")][u("0x8")].commands())t.affectsData&&!this[u("0x4")].has(t)&&t[u("0xc")]("TrackChangesCommand")}}const g=["TrackChangesEditing","getRanges","canEditAt","get","editor","refresh","plugins","track-changes-accept-suggestion-not-found","_suggestions","acceptSuggestion","isEnabled"];var f,m;f=g,m=229,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x7")](),this._isEnabledBasedOnSelection=!1}[h("0x7")](){this[h("0x1")]=!0}execute(t){const n=this[h("0xa")].get(t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x6")].model[h("0x4")](o)&&this[h("0x6")][h("0x8")][h("0x5")](h("0x2"))[h("0x0")](n)}}const b=["plugins","_isEnabledBasedOnSelection","_suggestions","model","TrackChangesEditing","getRanges","track-changes-discard-suggestion-not-found","isEnabled","get","editor","discardSuggestion","refresh","execute"];var E,_;E=b,_=298,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("0x3")]=e,this[T("0xc")](),this[T("0x2")]=!1}[T("0xc")](){this[T("0x8")]=!0}[T("0x0")](t){const n=this[T("0x3")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x7"),this);const o=n[T("0x6")]();this[T("0xa")][T("0x4")].canEditAt(o)&&this.editor[T("0x1")].get(T("0x5"))[T("0xb")](n)}}const C=["isInContent","end","deletion","map","execute","length","isArray","type","isCollapsed","isTouching","join","isObject","createPositionAt"," [color ","replace","createPositionBefore","content","start","value","createPositionAfter","add","isMultiRange","change","push","splice","getRanges","color","from","schema"];var A,k;A=C,k=222,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>I("0xc")==t[I("0x11")]&&I("0xc")!=e[I("0x11")]?-1:I("0xc")!=t[I("0x11")]&&I("0xc")==e.type?1:0))}function R(t,e){let n,o=0;const r=[],i=e[I("0x9")];for(;o<t.length;){const s=t[o],x=t[o+1];n||(n=e[I("0x19")](s)),v(e,s,x)||(r[I("0x4")](e.createRange(n,i[I("0x15")](s)?e[I("0x0")](s):e[I("0x16")](s,I("0xb")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0x0")](e),r=t[I("0x19")](n);return o[I("0x13")](r)}function N(t,e,n){for(;n[I("0xf")];){const o=n[I("0x5")](0,100);t[I("0x3")]((()=>{for(const t of o)t[I("0xa")]&&e[I("0xe")](t.id)}))}}const L=["isInContent","values","canEditAt","_isEnabledBasedOnSelection","isEnabled","_command","_suggestions","execute","some","refresh","editor","from","model"];var M,w;M=L,w=246,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x7")]=n,this[O("0xa")](),this[O("0x4")]=!1}[O("0xa")](){const t=Array[O("0xc")](this[O("0x7")][O("0x2")]())[O("0x9")]((t=>t[O("0x1")]));this.isEnabled=this[O("0x6")][O("0x5")]&&t}[O("0x8")](){const t=S(Array[O("0xc")](this._suggestions[O("0x2")]()));for(const e of t){const t=e.getRanges();if(!this[O("0xb")][O("0x0")][O("0x3")](t))return}N(this[O("0xb")][O("0x0")],this[O("0x6")],t)}}const D=["isEnabled","getRanges","_selectedSuggestions","model","from","_suggestions","refresh","_isEnabledBasedOnSelection","canEditAt","execute","document","selection","editor","_command","size"];var B,P;B=D,P=271,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0xc")]=e,this[U("0x4")]=n,this[U("0x1")]=new Set,this[U("0x5")](),this[U("0x6")]=!1}[U("0x5")](){const t=this[U("0xb")][U("0x2")][U("0x9")][U("0xa")],e=Array[U("0x3")](this[U("0x4")].values());this._selectedSuggestions=function(t,e){const n=Array[I("0x8")](t.getRanges()),o=new Set;for(const r of e)if(r[I("0xa")])for(const e of n)for(const n of r[I("0x6")]())(e.isIntersecting(n)||t[I("0x12")]&&!r[I("0x2")]&&r.next&&n[I("0xb")][I("0x13")](e[I("0x1b")]))&&o[I("0x1")](r);return o}(t,e),this[U("0xe")]=this[U("0xc")][U("0xe")]&&!!this[U("0x1")][U("0xd")]}[U("0x8")](){const t=S(Array[U("0x3")](this[U("0x1")]));for(const e of t){const t=e[U("0x0")]();if(!this[U("0xb")][U("0x2")][U("0x7")](t))return}N(this.editor[U("0x2")],this[U("0xc")],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 $=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var $n=Re&&Re.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=po(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===p?m===h||r(m,h,n,o,i):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?So(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["_isDataLoaded","data","attributes","markers","next","getMarkers","map","hasComments","subType","_onAccept","removeAttribute","change","set","clear","removeMarkers","getFirstMarker","from","author","filter","split","createdAt","substr","_model","nodeAfter","nodeBefore","isIntersecting","length","addMarkerName","getRange","push","toJSON","end","removeMarker","addMarker","_onAttributesChange","commentThread","getMarkerNames","_markerNames","creator","isExternal","isIntersectingWithRange","accept","get","@external","getFirstRange","getRanges","isMultiRange","getItems","head","authoredAt","previous","_saved","getMultiRangeId","discard","suggestion:","size","addRange","type"];var Xo,Zo;Xo=$o,Zo=300,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x30")]=!1,this.id=e.id,this.type=e.type,this[Yo("0x38")]=e[Yo("0x38")]||null,this[Yo("0x7")]=e[Yo("0x7")],this[Yo("0x1c")]=e[Yo("0x1c")]||e[Yo("0x7")],this[Yo("0x1d")]=Boolean(e[Yo("0x32")]&&e[Yo("0x32")][Yo("0x21")]),this[Yo("0x31")]=null,this[Yo("0xc")]=t,this._onAccept=e.onAccept,this._onDiscard=e.onDiscard,this[Yo("0x18")]=e.onAttributesChange,this[Yo("0x1b")]=new Set,this[Yo("0xa")]=null,this.set(Yo("0x27"),null),this[Yo("0x2")](Yo("0x32"),e[Yo("0x32")]||{}),this.set("previous",null),this.set("next",null),this[Yo("0x2")](Yo("0x19"),null),this.set(Yo("0x29"),!1),this.decorate("accept"),this.decorate("discard")}get[Yo("0x26")](){let t=this;for(;t[Yo("0x28")];)t=t.previous;return t}get[Yo("0x37")](){return!!this[Yo("0x19")]&&this[Yo("0x19")][Yo("0x10")]>0}get[Yo("0x24")](){return 0!=this[Yo("0x1b")][Yo("0x2d")]&&6==Array[Yo("0x6")](this[Yo("0x1b")])[0][Yo("0x9")](":")[Yo("0x10")]}get isInContent(){return null!==this[Yo("0x5")]()}[Yo("0x11")](t){this._markerNames.add(t)}getMarkerNames(){return Array[Yo("0x6")](this[Yo("0x1b")])}[Yo("0x35")](){return this[Yo("0x1a")]()[Yo("0x36")]((t=>this._model[Yo("0x33")][Yo("0x20")](t)))[Yo("0x8")]((t=>t))}getFirstMarker(){return this[Yo("0x35")]()[0]||null}[Yo("0x4")](){this[Yo("0xc")][Yo("0x1")]((t=>{for(const e of this[Yo("0x35")]())t[Yo("0x16")](e)})),this[Yo("0x1b")][Yo("0x3")]()}removeMarker(t){this[Yo("0xc")].change((e=>{e[Yo("0x16")](t)})),this._markerNames.delete(t)}[Yo("0x2e")](t){const e=Yo("0x2c")+this.type+":"+this[Yo("0x38")]+":"+this.id+":"+this[Yo("0x1c")].id+":"+Jo[Yo("0x2a")]();this[Yo("0x11")](e),this[Yo("0xc")][Yo("0x1")]((n=>{n[Yo("0x17")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x1e")](t){for(const e of this[Yo("0x23")]())if(e[Yo("0xf")](t))return!0;return!1}getRanges(){return this[Yo("0x35")]()[Yo("0x36")]((t=>t[Yo("0x12")]()))}[Yo("0x25")](){return this[Yo("0x23")]().reduce(((t,e)=>[...t,...e[Yo("0x25")]()]),[])}[Yo("0x22")](){var t;return(null===(t=this[Yo("0x5")]())||void 0===t?void 0:t[Yo("0x12")]())||null}getContainedElement(){const t=this[Yo("0x23")]();if(1!=t[Yo("0x10")])return null;const e=t[0],n=e.start[Yo("0xd")],o=e[Yo("0x15")][Yo("0xe")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x1f")](){this[Yo("0x39")](this.getRanges(),this[Yo("0x31")],this.attributes),this[Yo("0x4")]()}[Yo("0x2b")](){this._onDiscard(this[Yo("0x23")](),this[Yo("0x31")],this[Yo("0x32")]),this[Yo("0x4")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Yo("0x26")];for(;e;)t[Yo("0x13")](e),e=e[Yo("0x34")];return t}setAttribute(t,e){const n=eo(this[Yo("0x32")]);_o(n,t,e),Go(n,this.attributes)||(this.attributes=n,this[Yo("0x18")](n))}[Yo("0x0")](t){const e=eo(this[Yo("0x32")]);qo(e,t),Go(e,this.attributes)||(this[Yo("0x32")]=e,this._onAttributesChange(this[Yo("0x32")]))}[Yo("0x14")](){return{id:this.id,type:this[Yo("0x38")]?this[Yo("0x2f")]+":"+this.subType:this[Yo("0x2f")],authorId:this[Yo("0x1c")].id,createdAt:this[Yo("0xa")],hasComments:this[Yo("0x37")],data:this.data,attributes:this[Yo("0x32")]}}static[Yo("0x2a")](){return(0,e.uid)()[Yo("0xb")](1,5)}}function Qo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["elementEnd","add","name","softBreak","*Merge:* %0","_handleAttributeSuggestionDescription","getItemLabel","isEqual","_handleRenameSuggestionDescription","matchingCallback","addFormat","*Split:* %0","deletion","_customCallbacks","has","type","nodeAfter","remove","_locale","*Set format:* %0","key","*Remove:* %0","getDescriptions","_attributeLabels","element","attribute","data","Object","_addDescriptionItems","*Remove format:* %0","format","label","ELEMENT_SPACE","text","pop","replace","*Insert:* %0","isObject","Container","insertion","checkChild","addContainer","isEmpty","_schema","map","previousSibling","getWalker","push","length","get","REPLACE_TEXT","isInContent","set","subType","EmptyContainer","_itemLabels","removeObject","_handleCustomCallbackDescription","removeEmptyContainer","quantity","registerDescriptionCallback","match","start","addObject","nextSibling","item","_itemLabelsCallbacks","$1 $2","removeFormat","registerAttributeLabel","join","getFirstRange","indexOf","skip","registerElementLabel"];var er,nr;er=tr,nr=115,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x30")]=[],this._itemLabels=new Map,this._itemLabelsCallbacks=[],this._attributeLabels=new Map,this._schema=t,this[or("0x35")]=e}[or("0x39")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0xb")])continue;const s=this[or("0x11")](i);if(s){if(null!=i[or("0xd")]){if(n.has(i.subType))continue;n[or("0x24")](i[or("0xd")])}e[or("0x7")](s)}else if(or("0x3c")!=i[or("0x32")])"insertion"!=i[or("0x32")]&&or("0x2f")!=i[or("0x32")]||this._handleInsertRemoveSuggestionDescription(e,i,t[r+1]);else{const t=i.data[or("0x37")];if(o.has(t))continue;o[or("0x24")](i[or("0x3d")][or("0x37")]),t==mc?this[or("0x2b")](e,i):this[or("0x28")](e,i)}}return this._resolveDescriptionItems(e)}[or("0x14")](t){this[or("0x30")][or("0x7")](t)}[or("0x22")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x1a")],{matchingCallback:t,label:n,priority:o}):this[or("0xf")].set(t,n)}[or("0x1d")](t,e){this._attributeLabels[or("0xc")](t,e)}[or("0x29")](t,e=1){let n;for(const e of this[or("0x1a")])if(e[or("0x2c")](t)){n=e[or("0x42")];break}return n||(n=this._itemLabels[or("0x9")](t.name)),n?n(e):1!==e?e+" "+t[or("0x25")]+"s":""+t[or("0x25")]}_addDescriptionItems(t,e){const n=e[or("0x1f")]()[or("0x6")](),o=or("0x4a")==e[or("0x32")]?or("0x24"):or("0x34");for(const e of n){const r=e[or("0x19")],i=t[t[or("0x8")]-1];if(r.is("$textProxy"))i&&i[or("0x32")][or("0x20")](or("0x49"))>-1&&t[or("0x45")](),i&&or("0x44")==i[or("0x32")]?i[o]+=r[or("0x3d")]:t.push({type:"text",add:or("0x24")==o?r[or("0x3d")]:"",remove:or("0x34")==o?r[or("0x3d")]:""});else if(this[or("0x3")][or("0x48")](r)){const s=r;if(i&&i.type[or("0x20")](or("0x49"))>-1&&t[or("0x45")](),or("0x23")==e[or("0x32")])continue;i&&i[or("0x32")]==o+or("0x3e")&&i.element[or("0x25")]==s[or("0x25")]?i[or("0x13")]++:t[or("0x7")]({type:o+or("0x3e"),element:s,quantity:1}),n[or("0x21")]((t=>!("elementEnd"==t[or("0x32")]&&t[or("0x19")]==r)))}else if(this[or("0x3")][or("0x0")](r,"$text")||r.is(or("0x3b"),or("0x26"))){const n=r;if(or("0x24")==o&&"elementStart"==e.type||or("0x34")==o&&or("0x23")==e[or("0x32")])continue;if(i&&-1==i[or("0x32")][or("0x20")](or("0x49"))){or("0x44")==i[or("0x32")]&&(i[o]+="\n");continue}let s;if(s=or("0x24")==o?n[or("0x18")]&&!this[or("0x3")].isObject(n[or("0x18")])?n[or("0x18")]:null:n.previousSibling&&!this[or("0x3")][or("0x48")](n[or("0x5")])?n.previousSibling:null,n[or("0x2")]||s&&s[or("0x2")]){const e=s&&s[or("0x2")]?s:n;i&&i.type==o+or("0xe")&&i[or("0x3b")][or("0x25")]==e.name?i.quantity++:t[or("0x7")]({type:o+or("0xe"),element:e,quantity:1})}else t[or("0x7")]({type:o+or("0x49"),element:n})}}}_resolveDescriptionItems(t){const e=this[or("0x35")],n=[],o=[],r=[];for(const i of t)switch(i[or("0x32")]){case or("0x44"):if(i[or("0x24")]=i[or("0x24")][or("0x46")](/(\S)\u000A+(\S)/g,or("0x1b")).replace(/\u000A/g,""),i[or("0x34")]=i[or("0x34")][or("0x46")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x46")](/\u000A/g,""),""!=i[or("0x24")]&&""!=i[or("0x34")]){n.push({type:or("0x46"),content:Qo(e,or("0xa"),['"'+i[or("0x34")]+'"','"'+i[or("0x24")]+'"'])});continue}if(null!=i[or("0x24")][or("0x15")](/^ +$/)){n.push({type:"insertion",content:Qo(e,or("0x47"),Qo(e,or("0x43"),i[or("0x24")][or("0x8")]))});continue}if(null!=i[or("0x34")][or("0x15")](/^ +$/)){n.push({type:or("0x2f"),content:Qo(e,"*Remove:* %0",Qo(e,or("0x43"),i[or("0x34")][or("0x8")]))});continue}if(""!=i[or("0x24")]){n[or("0x7")]({type:or("0x4a"),content:Qo(e,"*Insert:* %0",'"'+i[or("0x24")]+'"')});continue}n.push({type:or("0x2f"),content:Qo(e,or("0x38"),'"'+i.remove+'"')});continue;case"addEmptyContainer":case or("0x17"):n.push({type:or("0x4a"),content:Qo(e,"*Insert:* %0",this.getItemLabel(i.element,i[or("0x13")]))});continue;case or("0x12"):case or("0x10"):n.push({type:"deletion",content:Qo(e,"*Remove:* %0",this[or("0x29")](i[or("0x3b")],i.quantity))});continue;case or("0x1"):n[or("0x7")]({type:"insertion",content:Qo(e,or("0x2e"),this[or("0x29")](i.element,i[or("0x13")]))});continue;case"removeContainer":n[or("0x7")]({type:or("0x2f"),content:Qo(e,or("0x27"),this[or("0x29")](i[or("0x3b")],i.quantity))});continue;case or("0x2d"):o[or("0x7")](i[or("0x37")]);continue;case"removeFormat":r[or("0x7")](i[or("0x37")]);continue;default:n[or("0x7")](i)}if(o[or("0x8")]){const t=o[or("0x4")]((t=>this[or("0x3a")][or("0x31")](t)?this._attributeLabels[or("0x9")](t):t)).join(", ");n.push({type:or("0x41"),content:Qo(this[or("0x35")],or("0x36"),t)})}if(r[or("0x8")]){const t=r[or("0x4")]((t=>this._attributeLabels[or("0x31")](t)?this[or("0x3a")][or("0x9")](t):t))[or("0x1e")](", ");n[or("0x7")]({type:or("0x41"),content:Qo(this[or("0x35")],or("0x40"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[or("0x30")]){const n=e(t);if(n&&"type"in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e.data,o=void 0===n.newValue?or("0x1c"):or("0x2d");t[or("0x7")]({type:o,key:n.key})}_handleRenameSuggestionDescription(t,e){t.push({type:"format",content:Qo(this[or("0x35")],"*Change to:* %0",this[or("0x29")](e[or("0x1f")]()[or("0x16")][or("0x33")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[or("0x3f")](t,e),n&&n.getFirstRange()&&!e[or("0x1f")]().end[or("0x2a")](n[or("0x1f")]()[or("0x16")])){const n=t[t[or("0x8")]-1],o=or("0x4a")==e[or("0x32")]?or("0x24"):or("0x34");n&&or("0x44")==n[or("0x32")]&&(n[o]+="\n")}}}const ir=["editor","afterInit","showAIAssistant","commands","enableCommand","get","plugins"];var sr,xr;sr=ir,xr=239,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x0")](){const t=this[ar("0x6")],e=t[ar("0x5")][ar("0x4")]("TrackChangesEditing");t[ar("0x2")][ar("0x4")](ar("0x1"))&&e[ar("0x3")](ar("0x1"))}}const lr=["_descriptionFactory","type","FORMAT_ALIGN_TO_RIGHT","commandParams","get","FORMAT_ALIGNMENT","justify","registerAttributeLabel","editor","locale","value","afterInit","TrackChangesEditing","FORMAT_ALIGN_TO_CENTER","right","registerDescriptionCallback","AlignmentEditing","_enableDefaultAttributesIntegration","has","alignment","formatBlock","center","FORMAT_ALIGN_TO_LEFT","_registerLegacyDescription","format","plugins"];var ur,dr;ur=lr,dr=350,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x19")](){const t=this.editor,e=t[gr("0x17")];if(!t[gr("0xd")][gr("0x6")](gr("0x4")))return;const n=t[gr("0xd")][gr("0x12")](gr("0x0"));n[gr("0x5")](gr("0x7"),[],[gr("0x7")]),n[gr("0xe")][gr("0x15")](gr("0x7"),Qo(e,gr("0x13"))),this[gr("0xb")]()}[gr("0xb")](){const t=this[gr("0x16")],e=t.locale;t[gr("0xd")][gr("0x12")](gr("0x0"))[gr("0xe")][gr("0x3")]((t=>{if(gr("0x8")!=t[gr("0xf")])return;const{data:n}=t;if(n&&gr("0x7")==n.commandName){const t=n[gr("0x11")][0][gr("0x18")];return{type:gr("0xc"),content:Qo(e,"*Format:* %0",function(t){switch(t){case"left":return Qo(e,gr("0xa"));case gr("0x2"):return Qo(e,gr("0x10"));case gr("0x9"):return Qo(e,gr("0x1"));case gr("0x14"):return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["format","afterInit","*Format:* %0","toUpperCase","plugins","locale","_descriptionFactory","type","code","_registerLegacyDescription","strikethrough","slice","superscript","commandName","italic","registerDescriptionCallback","commandParams","has","FORMAT_","*Remove format:* %0","CodeEditing","SubscriptEditing","formatInline","get","SuperscriptEditing","FORMAT_SUBSCRIPT","registerAttributeLabel","editor","FORMAT_STRIKETHROUGH","_enableDefaultAttributesIntegration","TrackChangesEditing","UnderlineEditing","underline","ItalicEditing","FORMAT_BOLD","FORMAT_ITALIC"];var hr,pr;hr=mr,pr=366,function(t){for(;--t;)hr.push(hr.shift())}(++pr);const br=function(t,e){return mr[t-=0]},Er=["BoldEditing",br("0x1b"),br("0x19"),br("0xe"),"StrikethroughEditing",br("0xf"),br("0x12")];class _r extends t.Plugin{[br("0x1f")](){const t=this.editor,e=t[br("0x22")].get(br("0x18")),n=t.locale;for(const o of Er){if(!t.plugins[br("0xb")](o))continue;const r=o[br("0x5")](0,-7).toLowerCase(),i=br("0xc")+r[br("0x21")]();e[br("0x17")](r,[r]),e[br("0x0")][br("0x14")](r,Qo(n,i))}this._registerLegacyDescription()}[br("0x3")](){const t=this[br("0x15")],e=t[br("0x23")],n=t[br("0x22")][br("0x11")](br("0x18"));function o(t,o){n[br("0x0")][br("0x9")]((n=>{if(br("0x10")!=n[br("0x1")])return;const{data:r}=n;return r&&r[br("0x7")]===t?r[br("0xa")][0].forceValue?{type:br("0x1e"),content:Qo(e,br("0x20"),o)}:{type:br("0x1e"),content:Qo(e,br("0xd"),o)}:void 0}))}o("bold",Qo(e,br("0x1c"))),o(br("0x8"),Qo(e,br("0x1d"))),o(br("0x1a"),Qo(e,"FORMAT_UNDERLINE")),o(br("0x2"),Qo(e,"FORMAT_CODE")),o(br("0x4"),Qo(e,br("0x16"))),o("subscript",Qo(e,br("0x13"))),o(br("0x6"),Qo(e,"FORMAT_SUPERSCRIPT"))}}const Tr=["forceValue","plugins","commandName","has","get","markBlockFormat","BlockQuoteEditing","document","blockQuote","ELEMENT_BLOCK_QUOTE","parent","checkChild","*Set format:* %0","afterInit","*Remove format:* %0","filter","commands","TrackChangesEditing","getSelectedBlocks","from","name","selection","$root","commandParams","value","model","editor","enableCommand"];var yr,Cr;yr=Tr,Cr=230,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x7")](){const t=this[Ar("0x14")],e=t.locale;if(!t[Ar("0x17")][Ar("0x19")](Ar("0x0")))return;const n=t.plugins[Ar("0x1a")](Ar("0xb")),o=this[Ar("0x14")][Ar("0xa")][Ar("0x1a")]("blockQuote");n[Ar("0x15")](Ar("0x2"),((e,r={})=>{const i=this[Ar("0x14")][Ar("0x13")][Ar("0x1")][Ar("0xf")],s=r&&void 0!==r[Ar("0x16")]?r.forceValue:!o[Ar("0x12")];let x=[];if(s){const e=Array[Ar("0xd")](i.getSelectedBlocks())[Ar("0x9")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t[Ar("0x4")],Ar("0x2")),o=e[Ar("0x5")]([Ar("0x10"),Ar("0x2")],t);return n&&o}(t,this[Ar("0x14")][Ar("0x13")].schema)));x=R(e,t[Ar("0x13")])}else{const e=Array[Ar("0xd")](i[Ar("0xc")]())[Ar("0x9")]((t=>Ir(t)));x=R(e,t.model)}t[Ar("0x13")].change((()=>{for(const t of x)n[Ar("0x1b")](t,{commandName:Ar("0x2"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ar("0x18")]){const t=Qo(e,Ar("0x3"));return n[Ar("0x11")][0][Ar("0x16")]?{type:"format",content:Qo(e,Ar("0x6"),t)}:{type:"format",content:Qo(e,Ar("0x8"),t)}}}))}}function Ir(t){return Ar("0x2")==t.parent[Ar("0xe")]}const Sr=["get","commands","editor","afterInit","ckbox","plugins"];var Rr,vr;Rr=Sr,vr=469,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Nr=function(t,e){return Sr[t-=0]};class Lr extends t.Plugin{[Nr("0x2")](){const t=this[Nr("0x1")];t[Nr("0x0")][Nr("0x5")](Nr("0x3"))&&t[Nr("0x4")][Nr("0x5")]("TrackChangesEditing").enableCommand(Nr("0x3"))}}const Mr=["find","commandName","indentCodeBlock","formatBlock","commands","has","languages","toLowerCase","codeBlock","outdentCodeBlock","commandParams","language","change","filter","ELEMENT_CODE_BLOCK","checkChild","config","model","locale","label","TrackChangesEditing","plugins","from","selection","getSelectedBlocks","schema","get","registerDescriptionCallback","afterInit","isLimit","enableCommand","format","registerElementLabel","*Set format:* %0","markBlockFormat","forceValue"];var wr,Or;wr=Mr,Or=241,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x3")](){const t=this.editor;if(!t[Fr("0x20")][Fr("0x10")]("CodeBlock"))return;const e=t[Fr("0x20")].get(Fr("0x1f")),n=t[Fr("0x1d")],o=t[Fr("0x1b")][Fr("0x1")](Fr("0x13"))[Fr("0x11")],r=t[Fr("0xf")][Fr("0x1")](Fr("0x13"));e[Fr("0x5")](Fr("0xd")),e[Fr("0x5")](Fr("0x14")),e[Fr("0x5")](Fr("0x13"),((n,i={})=>{const s=t[Fr("0x1c")],x=t[Fr("0x1c")].document[Fr("0x22")],a=i&&void 0!==i[Fr("0xa")]?i[Fr("0xa")]:!r.value;let c;i[Fr("0x16")]||(i[Fr("0x16")]=o[0][Fr("0x16")]),c=a?Array[Fr("0x21")](x[Fr("0x23")]())[Fr("0x18")]((t=>{return Br(t)||(e=t,n=s[Fr("0x0")],!e.is("rootElement")&&!n[Fr("0x4")](e)&&n[Fr("0x1a")](e.parent,"codeBlock"));var e,n})):Array[Fr("0x21")](x[Fr("0x23")]())[Fr("0x18")]((t=>Br(t)));const l=R(c,s);s[Fr("0x17")]((()=>{for(const t of l)e[Fr("0x9")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Fr("0x7")]("codeBlock",(t=>Qo(n,Fr("0x19"),t))),e._descriptionFactory[Fr("0x2")]((t=>{if(Fr("0xe")!=t.type)return;const e=n.t,{data:r}=t;if(!r||Fr("0x13")!=r[Fr("0xc")])return;const i=r[Fr("0x15")][0][Fr("0x16")],s=e(o[Fr("0xb")]((t=>t[Fr("0x16")]===i))[Fr("0x1e")])[Fr("0x12")]();return r[Fr("0x15")][0][Fr("0xa")]?{type:Fr("0x6"),content:Qo(n,Fr("0x8"),Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fr("0x6"),content:Qo(n,"*Remove format:* %0",Qo(n,Fr("0x19"),1))}}))}}function Br(t){return Fr("0x13")==t.name}const Pr=["plugins","addCommentThread","get","editor"];var Ur,jr;Ur=Pr,jr=164,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Gr("0x3")];t[Gr("0x0")].has("CommentsEditing")&&t.plugins[Gr("0x2")]("TrackChangesEditing").enableCommand(Gr("0x1"))}}var Hr=n(181);const zr=["TrackChangesEditing","ck-suggestion-marker-","isAtEnd","name","toViewElement","test","isContent","isBlock","writer","listItem","schema","elementEnd","createRangeOn","getWalker","span","get","consumable","markerName","element","mapper","push","previousPosition","model","activeMarkers","item","getCustomProperty","bindElementToMarker","ck-suggestion-marker--active","listIndent","start","isLimit","getAttribute","toViewPosition","markerRange","hasAttribute","plugins","type","createUIElement","nextSibling","addClass","insert"];var Wr,Kr;Wr=zr,Kr=358,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function $r(t,e,n){const o=[];for(const r of e.getItems())r[qr("0x4")](t)&&o[qr("0x1f")](n[qr("0x17")](r));return o}function Xr(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x5")][qr("0x1a")](qr("0xb"));return(r,i,s)=>{if(!s[qr("0x1b")][qr("0x10")](i[qr("0x3")],r[qr("0xe")]))return;const x=i.markerRange[qr("0x18")](),a=i[qr("0x3")][qr("0x28")],c=t[qr("0x21")][qr("0x15")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x23")];d=d||c[qr("0x11")](e);const n=s.mapper[qr("0xf")](e);if(n&&n[qr("0x24")]("addHighlight"))return;qr("0x16")==t[qr("0x6")]&&c[qr("0x12")](e)&&!c[qr("0x0")](e)&&(e[qr("0x8")]||a[qr("0xd")]?l&&l.parent==e||(l=e,f(t[qr("0x20")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s.writer[qr("0x7")](qr("0x19"),{class:qr("0xc")+e}),x=s[qr("0x1e")][qr("0x2")](t);n&&o[qr("0x22")].includes(i[qr("0x1c")])&&s[qr("0x13")][qr("0x9")](qr("0x26"),r),s.writer[qr("0xa")](x,r),s[qr("0x1e")][qr("0x25")](r,i[qr("0x1c")])}d||g||!u||f(u)}}const Zr=["high","uiElement","start","mapper","requires","fromRange","document","downcastDispatcher","isCollapsed","createSelection","root","unlock","bind","markerNameToElements","TrackChangesEditing","get","delete","deleteForward","showSuggestionHighlights","addMarker:suggestion:deletion","unbindElementFromMarkerName","enableCommand","selection","buffer","removeMarker:suggestion:deletion","remove","createRange","init","merge","model","detach","end","setSelection","lock","markerName","commands","data","modifySelection","getFirstRange","editor","enqueueChange","options","editing"];var Yr,Jr;Yr=Zr,Jr=373,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x12")](){return[Hr.Delete]}[Qr("0x29")](){const t=this[Qr("0xa")],e=t.plugins[Qr("0x1d")](Qr("0x1c"));e[Qr("0x23")](Qr("0x1e"));const n=t[Qr("0x6")].get(Qr("0x1f"));e[Qr("0x23")](Qr("0x1f"),((e,o={})=>{const r=t[Qr("0x0")][Qr("0x17")](t.model[Qr("0x14")][Qr("0x24")]);r[Qr("0x16")]&&t[Qr("0x0")][Qr("0x8")](r,{direction:"forward",unit:o.unit});const i=r[Qr("0x9")](),x=s.LiveRange[Qr("0x13")](i);let a;e(o),a="$graveyard"==x[Qr("0x18")].rootName?t[Qr("0x0")][Qr("0x28")](i[Qr("0x10")]):t[Qr("0x0")].createRange(x[Qr("0x10")],x.end),x[Qr("0x1")](),t[Qr("0x0")][Qr("0xb")](n.buffer.batch,(t=>{n[Qr("0x25")][Qr("0x4")](),t[Qr("0x3")](t[Qr("0x28")](a[Qr("0x2")])),n.buffer[Qr("0x19")]()}))})),t[Qr("0xd")][Qr("0x15")].on(Qr("0x21"),Xr(t,Qr("0x2a")),{priority:Qr("0xe")}),t[Qr("0x7")][Qr("0x15")].on(Qr("0x21"),((e,n,o)=>{o[Qr("0xc")][Qr("0x20")]&&Xr(t,Qr("0x2a"),{showActiveMarker:!1})[Qr("0x1a")](this)(e,n,o)}),{priority:Qr("0xe")}),t[Qr("0xd")].downcastDispatcher.on(Qr("0x26"),((t,e,n)=>{const o=n[Qr("0x11")][Qr("0x1b")](e[Qr("0x5")]);if(o)for(const t of o)t.is(Qr("0xf"))&&(n[Qr("0x11")][Qr("0x22")](t,e[Qr("0x5")]),n.writer[Qr("0x27")](t))}),{priority:Qr("0xe")})}}const ei=["detach","add","commands","getAttribute","registerCustomCallback","indentList","document","get","selection","*Merge:* %0","change","accept","getFirstRange","markMultiRangeBlockFormat","*Outdent:* %0","fromRange","formatInline","enableCommand","splitListItemBefore","hasAttribute","slice","nextSibling","*Format:* remove from %0","commandParams","nodeAfter","push","format","type","numberedList","from","*Indent:* %0","*Format:* insert into %0","next","bulletedList","model","end","documentList","registerDescriptionCallback","list.multiBlock","expandListBlocksToCompleteList","createRange","isObject","has","value","schema","ELEMENT_NUMBERED_LIST","splitListItemAfter","commandName","plugins","mergeListItemBackward","setSelection","findIndex","ELEMENT_LIST_ITEM","listIndent","listItemId","length","config","getRanges","createPositionAt","before","ELEMENT_BULLETED_LIST","getSelectedBlocks","isFirstBlockOfListItem","start","multipleBlocks","containsItem","parent","outdentList","afterInit","*Change to:* %0","map","formatBlock","forceValue","execute","mergeListItemForward","listType"];var ni,oi;ni=ei,oi=201,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x13")](){const t=this.editor;if(!t[ri("0x4b")][ri("0x45")]("DocumentListEditing"))return;const e=t.locale,n=t[ri("0x4b")][ri("0x22")]("TrackChangesEditing"),o=t.plugins[ri("0x22")]("DocumentListUtils");function r(e){return()=>{const r=t[ri("0x1d")].get(e);if(r[ri("0x46")]&&!t.config[ri("0x22")](ri("0x41")))return void t[ri("0x18")]("paragraph",{});let i=Array[ri("0x38")](t[ri("0x3d")][ri("0x21")][ri("0x23")][ri("0xc")]());if(a(e)){i=o[ri("0x42")](i);const t=[];for(const e of i)o[ri("0xd")](e)&&t[ri("0x34")](e);i=t}t[ri("0x3d")][ri("0x25")]((()=>{n[ri("0x28")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x46")]}],formatGroupId:ri("0x1a")},[],ri("0x3f"))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ri("0x2")]((t=>!t[ri("0x2e")](ri("0x5"))));return n>-1&&(e=e[ri("0x2f")](0,n)),e}(t[ri("0x3d")].document[ri("0x23")][ri("0xc")]()),r=o[o[ri("0x6")]-1],i=t[ri("0x3d")][ri("0x47")][ri("0x44")](r)?"after":ri("0x3e"),s=t[ri("0x3d")][ri("0x43")](t[ri("0x3d")][ri("0x9")](o[0],ri("0xa")),t.model[ri("0x9")](r,i));t[ri("0x3d")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ri("0x30")];for(;t&&t.getAttribute(ri("0x4"))>n[ri("0x1e")]("listIndent");)e[ri("0x1c")](t),t=t.nextSibling}return Array[ri("0x38")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x3d")][ri("0x21")][ri("0x23")][ri("0xc")]()[ri("0x3b")]().value,r=t.model[ri("0x9")](o,ri("0xa")),i=t[ri("0x3d")][ri("0x9")](o,0),s=t[ri("0x3d")][ri("0x43")](r,i);t[ri("0x3d")].change((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x1a")})}))}}function a(e){const n=t.commands[ri("0x22")]("bulletedList")[ri("0x46")],o=t.commands.get(ri("0x37"))[ri("0x46")];return"numberedList"===e?n:o}n.enableCommand("numberedList",r(ri("0x37"))),n.enableCommand(ri("0x3c"),r("bulletedList")),n[ri("0x2c")](ri("0x20"),i(ri("0x20"))),n[ri("0x2c")](ri("0x12"),i(ri("0x12"))),n[ri("0x2c")]("splitListItemAfter",x(ri("0x49"))),n[ri("0x2c")]("splitListItemBefore",x(ri("0x2d"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[ri("0x3d")][ri("0x47")].isObject(e),o=e.previousSibling,r=e.nextSibling,i=e[ri("0x1e")]("listItemId"),s=!o||o.getAttribute(ri("0x5"))!==i,x=!r||r[ri("0x1e")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[ri("0x40")]((function(n){if(ri("0x16")!=n[ri("0x36")]&&ri("0x2b")!=n[ri("0x36")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x4a")]){case ri("0x3c"):s=o[ri("0x32")][0][ri("0x17")],x=a(o[ri("0x4a")]),r=ri(s?"0x3a":"0x31"),!x&&t[ri("0x7")].get("list.multiBlock")||(r=ri("0x14")),i={type:ri("0x35"),content:Qo(e,r,Qo(e,ri("0xb")))};break;case ri("0x37"):s=o[ri("0x32")][0].forceValue,x=a(o[ri("0x4a")]),r=ri(s?"0x3a":"0x31"),!x&&t[ri("0x7")][ri("0x22")]("list.multiBlock")||(r="*Change to:* %0"),i={type:ri("0x35"),content:Qo(e,r,Qo(e,ri("0x48")))};break;case ri("0x20"):r=ri("0x39"),i={type:ri("0x35"),content:Qo(e,r,Qo(e,ri("0x3")))};break;case ri("0x12"):r=function(t){const e=t[ri("0x27")]();let n=e[ri("0xe")].nodeAfter;for(;n&&e[ri("0x10")](n);){if(n[ri("0x1e")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ri("0x31"),Qo(e,"ELEMENT_"+n[ri("0x27")]()[ri("0xe")][ri("0x33")].getAttribute(ri("0x1a")).toUpperCase()+"_LIST")):Qo(e,ri("0x29"),Qo(e,ri("0x3"))),i={type:"format",content:r};break;case ri("0x0"):case ri("0x19"):!1===o[ri("0xf")]&&(r=ri("0x24"),i={type:"deletion",content:Qo(e,r,Qo(e,ri("0x3")))})}return i})),n._suggestionFactory[ri("0x1f")](ri("0x16"),"documentList",ri("0x26"),(function(e,n){const o=[];for(let n of e)n[ri("0xe")][ri("0x33")]===n[ri("0x3e")][ri("0x11")]&&(n=t[ri("0x3d")][ri("0x43")](t[ri("0x3d")][ri("0x9")](n[ri("0xe")].nodeAfter,0))),o[ri("0x34")](n);t[ri("0x3d")][ri("0x25")]((e=>{const r=t[ri("0x3d")].document[ri("0x23")],i=Array[ri("0x38")](r[ri("0x8")]())[ri("0x15")]((t=>s.LiveRange[ri("0x2a")](t)));e[ri("0x1")](o),t.commands[ri("0x22")](n[ri("0x4a")]).refresh(),n[ri("0x32")][ri("0x34")]({forceDefaultExecution:!0}),t[ri("0x18")](n[ri("0x4a")],...n[ri("0x32")]),e[ri("0x1")](i);for(const t of i)t[ri("0x1b")]()}))}))}}const si=["commandParams","list.properties","listReversed","push","filter","DocumentListUtils","startIndex","ELEMENT_","handleDescriptions","reversed","from","_getSuggestionBlocks","getSelectedBlocks","plugins","listStyle","selection","length","listStart","document","_descriptionFactory","handleListStartCommand","DocumentListPropertiesUtils","*Format:* set start index to %0","handleListStyleCommand","*Format:* set order to regular","markMultiRangeBlockFormat","_getTranslationKeyForListStyle","get","has","TrackChangesEditing","config","format","enableCommand","_getSuggestionBlocksForListStyle","handleListReversedCommand","formatInline","bind","numbered","expandListBlocksToCompleteList","*Change to:* %0","afterInit","editor","type","commandName","formatBlock","listType","model","toUpperCase","change"];var xi,ai;xi=si,ai=267,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x12")](){if(!this[ci("0x13")].plugins[ci("0x6")]("DocumentListPropertiesEditing"))return;const t=this[ci("0x13")][ci("0x8")][ci("0x5")](ci("0x1c")),e=this.editor[ci("0x28")][ci("0x5")](ci("0x7"));t.styles&&e[ci("0xa")](ci("0x29"),this.handleListStyleCommand.bind(this)),t.reversed&&e[ci("0xa")](ci("0x1d"),this[ci("0xc")][ci("0xe")](this)),t[ci("0x21")]&&e[ci("0xa")](ci("0x2c"),this[ci("0x2f")].bind(this)),e[ci("0x2e")].registerDescriptionCallback(this.handleDescriptions.bind(this))}[ci("0x1")](t,e={}){const n=this[ci("0x13")][ci("0x28")][ci("0x5")](ci("0x7")),o=this[ci("0xb")]();this[ci("0x13")][ci("0x18")][ci("0x1a")]((()=>{n[ci("0x3")](o,{commandName:ci("0x29"),commandParams:[{type:e[ci("0x14")]}],formatGroupId:ci("0x29")})}))}[ci("0xc")](t,e={}){const n=this.editor[ci("0x28")][ci("0x5")](ci("0x7")),o=this[ci("0x13")].plugins[ci("0x5")](ci("0x20")),r=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute("listType")));null!==r&&this.editor.model[ci("0x1a")]((()=>{n[ci("0x3")](r,{commandName:ci("0x1d"),commandParams:[{reversed:e.reversed}],formatGroupId:ci("0x1d")})}))}[ci("0x2f")](t,e={}){const n=this.editor[ci("0x28")].get(ci("0x7")),o=this[ci("0x13")][ci("0x28")].get("DocumentListUtils"),r=this[ci("0x26")]((t=>o.isListItemBlock(t)&&ci("0xf")===t.getAttribute(ci("0x17"))));null!==r&&this.editor.model.change((()=>{n[ci("0x3")](r,{commandName:ci("0x2c"),commandParams:[{startIndex:e[ci("0x21")]}],formatGroupId:ci("0x2c")})}))}[ci("0x23")](t){if(ci("0x16")!=t[ci("0x14")]&&ci("0xd")!=t[ci("0x14")])return;const e=this.editor.locale,{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x15")]){case ci("0x29"):o=ci("0x11"),r={type:ci("0x9"),content:Qo(e,o,Qo(e,this[ci("0x4")](n[ci("0x1b")][0].type)))};break;case ci("0x1d"):o=n[ci("0x1b")][0][ci("0x24")]?"*Format:* set order to reversed":ci("0x2"),r={type:"format",content:Qo(e,o)};break;case ci("0x2c"):o=ci("0x0"),r={type:"format",content:Qo(e,o,n[ci("0x1b")][0][ci("0x21")])}}return r}[ci("0xb")](){const t=this.editor[ci("0x28")].get(ci("0x20"));let e=Array[ci("0x25")](this[ci("0x13")][ci("0x18")][ci("0x2d")][ci("0x2a")][ci("0x27")]());return e[ci("0x1e")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[ci("0x13")][ci("0x28")][ci("0x5")](ci("0x20"));let n=Array.from(this[ci("0x13")][ci("0x18")][ci("0x2d")][ci("0x2a")].getSelectedBlocks())[ci("0x1f")](t);if(!n[ci("0x2b")])return null;n=e[ci("0x10")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[ci("0x1e")](t);return o}[ci("0x4")](t){return ci("0x22")+this.editor[ci("0x28")][ci("0x5")](ci("0x30")).getListTypeFromListStyleType(t).toUpperCase()+"_LIST_"+t[ci("0x19")]().replace(/-/g,"_")}}var ui=n(331);const di=["fire","afterExecute","high","split","get","enableCommand","addMarker:suggestion:insertion","selection","parent","enter","remove","editing","writer","requires","end","createRange","ck-suggestion-marker-split","downcastDispatcher","bind","editor","document","createPositionAt","unbindElementFromMarkerName","commands","TrackChangesEditing","model","removeMarker:suggestion:insertion","plugins","markInsertion","nextSibling","change","hasClass","showSuggestionHighlights","markerName","data","setSelection","getFirstPosition"];var gi,fi;gi=di,fi=444,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0xd")](){return[ui.Enter]}init(){const t=this[mi("0x13")],e=t[mi("0x1b")][mi("0x4")](mi("0x18")),n=t[mi("0x17")][mi("0x4")](mi("0x9"));e[mi("0x5")](mi("0x9"),(()=>{t[mi("0x19")][mi("0x1e")]((o=>{const r=t[mi("0x19")][mi("0x14")][mi("0x7")],i=r[mi("0x24")](),x=s.LiveRange.fromRange(r.getFirstRange());if(n.enterBlock(o)){const n=t[mi("0x19")][mi("0x15")](i[mi("0x8")][mi("0x1d")],0),r=o[mi("0xf")](i,n);e[mi("0x1c")](r)}else o[mi("0x23")](o[mi("0xf")](x[mi("0xe")]));x.detach(),n[mi("0x0")](mi("0x1"),{writer:o})}))})),t[mi("0xb")][mi("0x11")].on(mi("0x6"),Xr(t,mi("0x3")),{priority:mi("0x2")}),t[mi("0xb")][mi("0x11")].on(mi("0x1a"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[mi("0x21")]);if(o)for(const t of o)t[mi("0x1f")](mi("0x10"))&&(n.mapper[mi("0x16")](t,e[mi("0x21")]),n[mi("0xc")][mi("0xa")](t))}),{priority:"high"}),t[mi("0x22")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[mi("0x20")]&&Xr(t,"split",{showActiveMarker:!1})[mi("0x12")](this)(e,n,o)}),{priority:"high"})}}const pi=["filter","findByTextCallback","findNext","replace","bind","_isInDeletionRange","model","createPositionAt","createRange","start","find","string","afterInit","enableCommand","plugins","markers","end","get","TrackChangesEditing","FindAndReplaceUtils","getIntersection","editor","FindAndReplaceEditing","findPrevious"];var bi,Ei;bi=pi,Ei=380,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0x10")](){if(!this[_i("0x1")][_i("0x12")].has(_i("0x2")))return;const t=this[_i("0x1")].plugins[_i("0x15")](_i("0x16"));t[_i("0x11")](_i("0xe"),this.handleFindCommand[_i("0x8")](this)),t.enableCommand(_i("0x6")),t[_i("0x11")](_i("0x3")),t[_i("0x11")](_i("0x7")),t.enableCommand("replaceAll")}handleFindCommand(t,e,n={}){const o=this[_i("0x1")][_i("0x12")][_i("0x15")](_i("0x17"));return t((t=>(_i("0xf")==typeof e?o[_i("0x5")](e,n):e)(t)[_i("0x4")]((e=>!1===this[_i("0x9")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this.editor[_i("0xa")][_i("0xc")](this[_i("0x1")][_i("0xa")][_i("0xb")](e,t[_i("0xd")]),this[_i("0x1")][_i("0xa")][_i("0xb")](e,t[_i("0x14")]));for(const t of this[_i("0x1")][_i("0xa")][_i("0x13")].getMarkersGroup("suggestion:deletion"))if(null!==n[_i("0x0")](t.getRange()))return!0;return!1}}const yi=["title","fontSize.options","format","has","registerDescriptionCallback","label","editor","_enableDefaultAttributesIntegration","normalizeSizeOptions","*Reset font size*","find","*Set font size:* %0","plugins","_registerLegacyDescription","toLowerCase","get","model","type","*Reset font family*","commandParams","value","fontColor.colors","locale","registerAttributeLabel","_descriptionFactory","commandName","FontBackgroundColorEditing","FORMAT_FONT_FAMILY","trim","*Set font family:* %0","FontColorEditing","config","*Reset font color*","FontSizeEditing","afterInit","formatInline","FontFamilyEditing","fontBackgroundColor","fontSize","FORMAT_FONT_COLOR","fontColor","FontSize","FORMAT_FONT_BACKGROUND","fontFamily"];var Ci,Ai;Ci=yi,Ai=284,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0xd"),commandName:"fontSize"},{pluginName:ki("0x10"),commandName:ki("0x17")},{pluginName:ki("0xa"),commandName:ki("0x14")},{pluginName:ki("0x6"),commandName:ki("0x11")}];class Si extends t.Plugin{[ki("0xe")](){const t=this[ki("0x1e")][ki("0x2")],e=this[ki("0x1e")][ki("0x24")][ki("0x27")]("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Ii)this[ki("0x1e")].plugins[ki("0x1b")](t)&&e[ki("0x1f")](n,[n]);t.t,e[ki("0x4")][ki("0x3")](ki("0x12"),Qo(t,"FORMAT_FONT_SIZE")),e[ki("0x4")].registerAttributeLabel(ki("0x17"),Qo(t,ki("0x7"))),e._descriptionFactory[ki("0x3")](ki("0x14"),Qo(t,ki("0x13"))),e._descriptionFactory[ki("0x3")]("fontBackgroundColor",Qo(t,ki("0x16"))),this[ki("0x25")]()}_registerLegacyDescription(){const t=this[ki("0x1e")],e=t.locale;t[ki("0x24")][ki("0x27")]("TrackChangesEditing")[ki("0x4")][ki("0x1c")]((t=>{const n=e.t;if(ki("0xf")!=t[ki("0x29")])return;const{data:o}=t;if(null!=o){if(ki("0x12")==o[ki("0x5")]){const t=o[ki("0x2b")][0][ki("0x0")];if(t){const o=n(this[ki("0x1e")][ki("0x24")][ki("0x27")](ki("0x15"))[ki("0x20")](this[ki("0x1e")].config[ki("0x27")](ki("0x19")))[ki("0x22")]((e=>e[ki("0x28")]==t))[ki("0x18")])[ki("0x26")]();return{type:ki("0x1a"),content:Qo(e,ki("0x23"),o)}}return{type:ki("0x1a"),content:Qo(e,ki("0x21"))}}if(ki("0x17")==o[ki("0x5")]){const t=o.commandParams[0][ki("0x0")];return t?{type:ki("0x1a"),content:Qo(e,ki("0x9"),t)}:{type:ki("0x1a"),content:Qo(e,ki("0x2a"))}}if(ki("0x14")==o[ki("0x5")]){const t=o[ki("0x2b")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1e")][ki("0xb")][ki("0x27")](ki("0x1"))).find((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x1d")],s=n(i)[ki("0x26")]()),{type:"format",content:Qo(e,"*Set font color:* %0",s)[ki("0x8")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,ki("0xc"))}}if(ki("0x11")==o[ki("0x5")]){const t=o[ki("0x2b")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1e")][ki("0xb")][ki("0x27")]("fontBackgroundColor.colors"))[ki("0x22")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x1d")],s=n(i).toLowerCase()),{type:ki("0x1a"),content:Qo(e,"*Set font background color:* %0",s)[ki("0x8")](),color:{value:t,title:s||i}}}return{type:"format",content:Qo(e,"*Reset font background color*")}}}}))}}const Ri=["fontSize.options","_descriptionFactory","join","boolean","*Remove all formatting*","normalizeSizeOptions","formatInline","toLowerCase","formatBlock","TrackChangesEditing","fontColor","charAt","afterInit","commandParams","type","pasteFormat","_registerLegacyDescription","fontBackgroundColor","_enableDefaultAttributesIntegration","split","FontSize","slice","copyFormat","commands","registerDescriptionCallback","enableCommand","plugins","get","fontSize","fontColor.colors","commandName","model","config","push","locale","format","editor","title","find"];var vi,Ni;vi=Ri,Ni=293,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{[Li("0x1f")](){const t=this[Li("0x10")],e=t[Li("0x6")][Li("0x7")](Li("0x1c")),n=t[Li("0x3")].get(Li("0x2")),o=t[Li("0x3")][Li("0x7")](Li("0x22"));n&&o&&(e[Li("0x25")](Li("0x22")),e[Li("0x5")](Li("0x2")),this._registerLegacyDescription())}[Li("0x23")](){const t=this.editor,e=t.locale;t[Li("0x6")][Li("0x7")](Li("0x1c"))[Li("0x14")][Li("0x4")]((n=>{if(Li("0x1b")!=n[Li("0x21")]&&Li("0x19")!=n[Li("0x21")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Li("0xa")]){const n=[],r=o[Li("0x20")][0];for(const[e,o]of Object.entries(r))n[Li("0xd")](wi(t,e,o));return n.length?{type:Li("0xf"),content:Qo(e,"*Set format to:* %0",n[Li("0x15")](", "))}:{type:Li("0xf"),content:Qo(e,Li("0x17"))}}}))}}function wi(t,e,n){const o=t[Li("0xe")].t,i=e[Li("0x26")](/(?=[A-Z])/)[Li("0x15")](" "),s=o(i[Li("0x1e")](0).toUpperCase()+i[Li("0x1")](1)).toLowerCase();if(Li("0x16")==typeof n)return s;if(Li("0x1d")===e||Li("0x24")===e){const e=(0,r.normalizeColorOptions)(t[Li("0xc")].get(Li("0x9")))[Li("0x12")]((t=>t[Li("0xb")]==n));return s+" ("+(e?o(e.label)[Li("0x1a")]():n)+")"}if(Li("0x8")===e&&isNaN(parseFloat(n))){const e=t.plugins[Li("0x7")](Li("0x0"))[Li("0x18")](t[Li("0xc")][Li("0x7")](Li("0x13")))[Li("0x12")]((t=>t[Li("0xb")]==n));return s+" ("+(e?o(e[Li("0x11")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Oi=["formatBlock","registerElementLabel","match","commandName","_registerLegacyDescription","heading.options","model","value","_getHeadingLevel","view","ELEMENT_HEADING_CUSTOM","HeadingEditing","locale","commandParams","_headingOptions","*Change to:* %0","title","type","_descriptionFactory","afterInit","TrackChangesEditing","editor","find","ELEMENT_HEADING","plugins","get"];var Fi,Di;Fi=Oi,Di=385,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x18")](){const t=this[Bi("0x0")];if(!t[Bi("0x3")].has(Bi("0x10")))return;this._headingOptions=t.config.get(Bi("0xa"));const e=t[Bi("0x11")],n=t[Bi("0x3")].get("TrackChangesEditing");n._enableDefaultAttributesIntegration("heading");for(const t of this[Bi("0x13")])"paragraph"!=t[Bi("0xb")]&&n._descriptionFactory[Bi("0x6")](t.model,(n=>{const o=this[Bi("0xd")](t[Bi("0xb")]);return null!==o?Qo(e,"ELEMENT_HEADING",[n,o]):(r=n,i=t[Bi("0x15")],Qo(e,Bi("0xf"),[r,i]));var r,i}));this[Bi("0x9")]()}[Bi("0x9")](){const t=this[Bi("0x0")],e=t[Bi("0x11")];t[Bi("0x3")][Bi("0x4")](Bi("0x19"))[Bi("0x17")].registerDescriptionCallback((t=>{if(Bi("0x5")!=t[Bi("0x16")])return;const{data:n}=t;if(n&&"heading"==n[Bi("0x8")]){const t=n[Bi("0x12")][0][Bi("0xc")],s=this._getHeadingLevel(t);if(null!==s)return{type:"format",content:Qo(e,Bi("0x14"),(1,i=s,Qo(e,Bi("0x2"),[1,i])))};const x=this._headingOptions[Bi("0x1")]((e=>e[Bi("0xb")]===t)).title;return{type:"format",content:Qo(e,Bi("0x14"),(o=1,r=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,r])))}}var o,r,i}))}[Bi("0xd")](t){var e,n;const o=t[Bi("0x7")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x13")])||void 0===e?void 0:e[Bi("0x1")]((e=>e[Bi("0xb")]==t));if(r&&r[Bi("0xe")]){const t=r.view,e=(null!==(n=t.name)&&void 0!==n?n:t)[Bi("0x7")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["registerDescriptionCallback","toLowerCase","*Set highlight:* %0","value","*Remove highlight*","_descriptionFactory","find","formatInline","has","highlight.options","_registerLegacyDescription","TrackChangesEditing","FORMAT_HIGHLIGHT","format","model","get","type","editor","registerAttributeLabel","color","locale","HighlightEditing","commandParams","title","config","plugins","highlight"];var ji,Gi;ji=Ui,Gi=357,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Vi("0xb")];if(!t[Vi("0x13")][Vi("0x2")](Vi("0xf")))return;const e=t[Vi("0x13")].get(Vi("0x5")),n=t.locale;e._enableDefaultAttributesIntegration("highlight",[Vi("0x14")]),e[Vi("0x1a")][Vi("0xc")](Vi("0x14"),Qo(n,Vi("0x6"))),this[Vi("0x4")]()}_registerLegacyDescription(){const t=this[Vi("0xb")],e=t[Vi("0xe")];t[Vi("0x13")][Vi("0x9")](Vi("0x5"))[Vi("0x1a")][Vi("0x15")]((n=>{if(Vi("0x1")!=n[Vi("0xa")])return;const{data:o}=n;if(o&&Vi("0x14")==o.commandName){const n=e.t,r=o[Vi("0x10")][0][Vi("0x18")];if(r){const o=t[Vi("0x12")][Vi("0x9")](Vi("0x3"))[Vi("0x0")]((t=>t[Vi("0x8")]==r)),i=n(o.title)[Vi("0x16")]();return{type:Vi("0x7"),content:Qo(e,Vi("0x17"),i),color:{value:o[Vi("0xd")],title:o[Vi("0x11")]}}}return{type:Vi("0x7"),content:Qo(e,Vi("0x19"),Qo(e,Vi("0x6")))}}}))}}const zi=["locale","insert","plugins","createContainerElement","high","TrackChangesEditing","HorizontalLineEditing","ck-horizontal-line","createEmptyElement","horizontalLine","registerElementLabel","editor","get","addClass","div","showSuggestionHighlights","conversion","dataDowncast","_descriptionFactory"];var Wi,Ki;Wi=zi,Ki=280,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[qi("0x10")];if(!t[qi("0x7")].has(qi("0xb")))return;t[qi("0x7")][qi("0x11")](qi("0xa")).enableCommand("horizontalLine");const e=t[qi("0x7")].get("TrackChangesEditing"),n=t[qi("0x5")];e[qi("0x4")][qi("0xf")](qi("0xe"),(t=>Qo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[qi("0x2")].for(qi("0x3")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qi("0x1")])return null;const o=e[qi("0x8")](qi("0x0")),r=e[qi("0xd")]("hr");return e[qi("0x12")](qi("0xc"),o),e[qi("0x6")](e.createPositionAt(o,0),r),o},converterPriority:qi("0x9")})}}const Xi=["element","_registerLegacyDescription","HtmlEmbed","key","ELEMENT_HTML_EMBED","editor","get","*Change %0 content*","attribute","value","type","plugins","formatBlock","has","TrackChangesEditing","htmlEmbed","format","commandName","_descriptionFactory","locale","registerDescriptionCallback","start"];var Zi,Yi;Zi=Xi,Yi=411,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return Xi[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0xc")];if(!t.plugins[Ji("0x14")](Ji("0x9")))return;const e=t.plugins.get(Ji("0x15")),n=t.locale;e[Ji("0x3")].registerElementLabel("rawHtml",(t=>Qo(n,Ji("0xb"),t))),e._enableDefaultAttributesIntegration("htmlEmbed",[],[Ji("0x10")]),e._descriptionFactory[Ji("0x5")]((t=>{if(Ji("0xf")!=t.type)return;const{data:e}=t;if(e&&Ji("0x10")==e[Ji("0xa")]&&t.getFirstRange()[Ji("0x6")].nodeAfter.is(Ji("0x7"),"rawHtml")){const t=Qo(n,Ji("0xb"));return{type:"format",content:Qo(n,Ji("0xe"),t)}}})),this._registerLegacyDescription()}[Ji("0x8")](){const t=this[Ji("0xc")],e=t[Ji("0x4")];t[Ji("0x12")][Ji("0xd")](Ji("0x15"))._descriptionFactory.registerDescriptionCallback((t=>{if(Ji("0x13")!=t[Ji("0x11")])return;const{data:n}=t;if(n&&Ji("0x0")==n[Ji("0x2")]){const t=Qo(e,Ji("0xb"));return{type:Ji("0x1"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["filter","forward","getContainedElement","markDeletion","TrackChangesEditing","caption","getClosestSelectedImageElement","*Remove image text alternative*","ImageEditing","discard","markBlockFormat","_suggestionFactory","convertBlockImageToInline","plugins","getSuggestionCallback","_registerLegacyDescription","nodeAfter","editor","FORMAT_IMAGE_SIZE","get","imageStylePreApply","markInsertion","chain","alt","imageTextAlternative","*Set image width:* %0","change","accept","key","isBlockImage","ImageUploadEditing","Block image to inline image","imageInline","length","Inline image to block image","isEqual","*Set image text alternative:* %0","ELEMENT_CAPTION","ELEMENT_IMAGE","registerDescriptionCallback","convertInlineImageToBlock","toPrevious","backward","registerElementLabel","fromPosition","width","ImageUtils","join","*Reset image width*","schema","isBefore","previous","resizedWidth","has","toNext","attribute","imageTypeInline","imageCaption","end","_enableDefaultAttributesIntegration","registerAttributeLabel","ImageBlockEditing","getFirstRange","deletion","subType","resizeImage","newValue","registerCustomCallback","detach","commandParams","imageBlock","insertImage","type","selection","commandName","getNearestSelectionRange","formatBlock","find","toggleImageCaption","start","insertion","createRange","format","ELEMENT_INLINE_IMAGE","ImageResize","removeObject","_descriptionFactory","isCollapsed","locale","afterInit","isOwn","createRangeOn","document","getCaptionFromImageModelElement","enableCommand","model"];var es,ns;es=ts,ns=385,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x58")](){const t=this.editor;if(!t[os("0xc")][os("0x34")](os("0x7")))return;const e=t[os("0xc")].get(os("0x3")),n=t[os("0xc")][os("0x12")](os("0x2d")),o=t[os("0x57")];e.enableCommand(os("0x46")),e[os("0x55")].registerElementLabel(os("0x45"),(t=>Qo(o,os("0x25"),t))),e[os("0x55")].registerElementLabel(os("0x1f"),(t=>Qo(o,os("0x52"),t))),e[os("0x55")][os("0x2a")](os("0x4"),(()=>Qo(o,os("0x24")))),t[os("0xc")].has(os("0x1d"))&&e[os("0x5d")]("uploadImage"),t.plugins[os("0x34")](os("0x3c"))&&t[os("0xc")].has("ImageInlineEditing")&&(e[os("0x5d")](os("0x37"),((o,r)=>{const i=n[os("0x5")](t[os("0x5e")][os("0x5b")][os("0x48")]);t[os("0x5e")][os("0x19")]((()=>{e[os("0x9")](i,{commandName:os("0x37"),commandParams:[r]},[],os("0xb"))}))})),e[os("0x5d")]("imageTypeBlock",((o,r)=>{t[os("0x5e")][os("0x19")]((i=>{let x=n.getClosestSelectedImageElement(t[os("0x5e")][os("0x5b")].selection),a=i[os("0x5a")](x);const c=s.LivePosition[os("0x2b")](a[os("0x4e")],os("0x28")),l=s.LivePosition[os("0x2b")](a[os("0x39")],os("0x35"));e.forceDefaultExecution((()=>o(r))),x=n[os("0x5")](t[os("0x5e")].document[os("0x48")]),a=i.createRangeOn(x);const u=i[os("0x50")](c,l);c[os("0x43")](),l[os("0x43")](),e[os("0x9")](x,{commandName:os("0x37"),commandParams:[r]},[],os("0x27")),u[os("0x4e")][os("0x31")](a[os("0x4e")])&&e.markInsertion(i.createRange(u[os("0x4e")],a[os("0x4e")]),os("0x27")),a[os("0x39")][os("0x31")](u.end)&&e[os("0x14")](i[os("0x50")](a.end,u.end),"convertInlineImageToBlock")}))})),e[os("0xa")][os("0x42")]("formatBlock",os("0x27"),"join",(()=>!1)),e._suggestionFactory[os("0x42")](os("0x4b"),os("0x27"),os("0x1a"),(()=>!1)),e[os("0xa")][os("0x42")](os("0x4b"),"convertInlineImageToBlock",os("0x8"),e[os("0xa")][os("0xd")](os("0x4b"),"",os("0x1a"))),e[os("0xa")].registerCustomCallback("insertion",os("0x27"),os("0x2e"),(()=>!1)),e[os("0xa")].registerCustomCallback("insertion",os("0x27"),os("0x8"),(([n])=>{const o=e[os("0xa")][os("0xd")](os("0x4f"),"",os("0x8"));let r=n[os("0x4e")],i=n.end;const s=t[os("0x5e")][os("0x30")][os("0x4a")](r,os("0x29")),x=t[os("0x5e")][os("0x30")].getNearestSelectionRange(i,os("0x0"));s[os("0x56")]&&(r=s[os("0x4e")]),x[os("0x56")]&&(i=x[os("0x39")]),o([t[os("0x5e")].createRange(r,i)])})),e[os("0xa")].registerCustomCallback(os("0x4b"),"convertInlineImageToBlock","chain",x),e._suggestionFactory[os("0x42")](os("0x4f"),os("0x27"),os("0x15"),x)),t[os("0xc")][os("0x34")]("ImageCaptionEditing")&&(e.enableCommand(os("0x4d"),((o,r)=>{const i=t[os("0xc")].get("ImageCaptionUtils");let s=n[os("0x5")](t[os("0x5e")][os("0x5b")][os("0x48")]),x=i[os("0x5c")](s);t[os("0x5e")][os("0x19")]((()=>{if(x)return void e[os("0x2")](t[os("0x5e")].createRangeOn(x));const a=n[os("0x1c")](s);o(r),s=n.getClosestSelectedImageElement(t[os("0x5e")][os("0x5b")][os("0x48")]),x=i.getCaptionFromImageModelElement(s),e.markInsertion(t[os("0x5e")][os("0x5a")](x),a?null:os("0x38"))}))})),e._suggestionFactory[os("0x42")](os("0x4f"),"imageCaption",os("0x15"),x));const r=[{type:os("0x4b"),subType:os("0x13")},{type:"insertion",subType:os("0x38")},{type:os("0x4b"),subType:os("0x27")},{type:os("0x4f"),subType:os("0x27")}];function i(t,o){const i=r.findIndex((({type:e,subType:n})=>t[os("0x47")]==e&&t[os("0x3f")]==n)),s=r.findIndex((({type:t,subType:e})=>o[os("0x47")]==t&&o[os("0x3f")]==e));if(i<0||s<0)return!1;const x=t[os("0x3d")](),a=o[os("0x3d")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,"insertion")[os("0x5f")]((({suggestion:t,meta:e})=>e[os("0x59")]&&os("0x27")==t[os("0x3f")]));if(t[os("0x20")]>1&&a[os("0x39")][os("0x22")](x[os("0x4e")]))return!0;if(1==t.length&&(x[os("0x4e")].isEqual(a[os("0x39")])||x[os("0x39")][os("0x22")](a[os("0x4e")])))return!0}if(3==i&&3==s&&x.start.isBefore(a.start)){const t=x[os("0x39")][os("0xf")],e=a[os("0x4e")].nodeBefore;return n[os("0x1c")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0xc")].has(os("0x53"))&&(e[os("0x3a")](os("0x40"),[],[os("0x33")]),e[os("0x55")][os("0x3b")](os("0x33"),Qo(o,os("0x11")))),t[os("0xc")][os("0x34")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration(os("0x17"),[],[os("0x16")]),e[os("0x55")].registerDescriptionCallback((t=>{if(r[os("0x4c")]((({type:e,subType:n})=>t[os("0x47")]==e&&t[os("0x3f")]==n)))return t[os("0x32")]?{}:void 0})),e[os("0x55")][os("0x26")]((t=>{if(os("0x4f")==t[os("0x47")]||os("0x3e")==t[os("0x47")]){const e=t[os("0x1")]();if(e&&e.is("element","caption"))return{type:"insertion"==t[os("0x47")]?"addObject":os("0x54"),element:e,quantity:1}}})),e._descriptionFactory[os("0x26")]((t=>os("0x4b")==t[os("0x47")]&&os("0x27")==t.subType?{type:os("0x51"),content:os("0x21")}:os("0x4b")==t.type&&os("0xb")==t.subType?{type:"format",content:os("0x1e")}:void 0)),e._descriptionFactory[os("0x26")]((t=>{if(os("0x36")!=t[os("0x47")])return;const{data:e}=t;if(!e||os("0x16")!=e[os("0x1b")])return;const n=e[os("0x41")];return n?{type:os("0x51"),content:Qo(o,os("0x23"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0x6"))}})),this._registerLegacyDescription()}[os("0xe")](){const t=this[os("0x10")],e=t[os("0x57")];t[os("0xc")][os("0x12")]("TrackChangesEditing")[os("0x55")][os("0x26")]((t=>{if("formatBlock"!=t[os("0x47")]&&"formatInline"!=t[os("0x47")])return;const{data:n}=t;if(n){if("imageTextAlternative"==n[os("0x49")]){const t=n[os("0x44")][0][os("0x41")];return t?{type:"format",content:Qo(e,os("0x23"),'"'+t+'"')}:{type:os("0x51"),content:Qo(e,os("0x6"))}}if("resizeImage"==n[os("0x49")]){const t=n[os("0x44")][0][os("0x2c")];return t?{type:os("0x51"),content:Qo(e,os("0x18"),t)}:{type:"format",content:Qo(e,os("0x2f"))}}}}))}}const is=["locale","_enableDefaultAttributesIntegration","afterInit","type","has","format","editor","accept","TrackChangesEditing","_suggestionFactory","formatInline","key","formatBlock","registerDescriptionCallback","newValue","discard","src","plugins","_handleLegacySuggestions","*Format:* replace image URL","getSuggestionCallback","_descriptionFactory","get","_registerLegacyDescription","attribute","replaceImageSource","ImageEditing","oldValue","registerCustomCallback"];var ss,xs;ss=is,xs=434,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x3")](){if(!this.editor[as("0x12")][as("0x5")](as("0x1b")))return;const t=this[as("0x7")][as("0x1")],e=this.editor[as("0x12")][as("0x17")](as("0x9"));e[as("0x2")](as("0x1a"),[],[as("0x11")]),e[as("0x16")][as("0xe")]((e=>{if(as("0x19")!=e.type)return;const{data:n}=e;return n&&as("0x11")==n[as("0xc")]?n[as("0xf")]&&n[as("0x1c")]?{type:as("0x6"),content:Qo(t,"*Replace image URL*")}:{type:"format",content:""}:void 0})),this[as("0x13")]()}[as("0x13")](){const t=this[as("0x7")][as("0x12")].get(as("0x9"));t[as("0xa")][as("0x0")]("formatBlock","replaceImageSource",as("0x8"),t[as("0xa")][as("0x15")](as("0xd"),null,as("0x10"))),t[as("0xa")].registerCustomCallback(as("0xd"),as("0x1a"),as("0x10"),t._suggestionFactory[as("0x15")]("formatBlock",null,as("0x8"))),this[as("0x18")]()}[as("0x18")](){const t=this.editor,e=t.locale;t.plugins[as("0x17")](as("0x9"))._descriptionFactory[as("0xe")]((t=>{if(as("0xd")!=t[as("0x4")]&&as("0xb")!=t[as("0x4")])return;const{data:n}=t;return n&&as("0x1a")==n.commandName?{type:as("0x6"),content:Qo(e,as("0x14"))}:void 0}))}}const ls=["FORMAT_SIDE_IMAGE","editor","refresh","registerCustomCallback","has","registerDescriptionCallback","ImageUtils","subType","start","name","getFirstRange","imageStylePreApply","suggestion","setImageNaturalSizeAttributes","length","join","imageStyle","getChangedMarkers","commandReversedParams","commandParams","nodeBefore","locale","afterInit","next","title","isBlockImage","differ","formatBlock","registerPostFixer","isIntersecting","from","isEqual","plugins","getSuggestion","ImageStyleEditing","imageTypeBlock","side","model","end","_findSuggestions","document","findIndex","commandName","format","getClosestSelectedImageElement","convertInlineImageToBlock","normalizedStyles","enableCommand","get","toLowerCase","value","filter","author","commands","discardSuggestion","discard","shouldConvertImageType","accept","*Format:* %0","markBlockFormat","formatInline","getContainedElement","_splitMarkerName","Users","_suggestionFactory","_registerLegacyDescription","insertion","imageStylePostApply","newRange","getSuggestions","imageCaption","isInContent","isInlineImage","createRangeOn","type","_descriptionFactory","forEach","selection","getSuggestionCallback"];var us,ds;us=ls,ds=324,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xe")](){const t=this[gs("0x48")];if(!t[gs("0x18")][gs("0x4b")]("ImageStyleEditing"))return;const n=t[gs("0x18")][gs("0x28")]("TrackChangesEditing"),o=t.plugins[gs("0x28")](gs("0x4d")),r={};n[gs("0x27")](gs("0x8"),((r,i)=>{const s=t.plugins[gs("0x28")](gs("0x37")).me,x=t[gs("0x2d")][gs("0x28")](gs("0x8"));let a=o.getClosestSelectedImageElement(t.model[gs("0x20")][gs("0x45")]),c=t.model[gs("0x41")](a),l=x[gs("0x2a")];if(l==i[gs("0x2a")])return;const u={commandName:gs("0x8"),commandParams:[i],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[gs("0x3d")]()[gs("0x2b")]((t=>t[gs("0x3f")]&&s==t[gs("0x2c")]&&(gs("0x13")==t[gs("0x42")]||gs("0x34")==t[gs("0x42")])&&(gs("0x3")==t[gs("0x4e")]||gs("0x3b")==t[gs("0x4e")])&&t[gs("0x2")]()[gs("0x17")](c)))[gs("0x44")]((t=>n[gs("0x2e")](t.head))),a=o[gs("0x24")](t[gs("0x1d")][gs("0x20")].selection),c=t.model[gs("0x41")](a),x[gs("0x49")](),t.commands[gs("0x28")]("imageTypeInline")[gs("0x49")](),t[gs("0x2d")].get(gs("0x1b"))[gs("0x49")](),l=x.value,l!=i[gs("0x2a")])return o[gs("0x40")](a)&&x[gs("0x30")](i[gs("0x2a")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x24")](t[gs("0x1d")].document.selection),void n[gs("0x33")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0x11")](a)?n[gs("0x33")](a,u,[],gs("0x3b")):n.markInlineFormat(c,u,gs("0x3b")))}))}));for(const e of t[gs("0x18")][gs("0x28")](gs("0x1a"))[gs("0x26")])r[e[gs("0x1")]]=e[gs("0x10")][gs("0x29")]();n._suggestionFactory[gs("0x4a")](gs("0x13"),gs("0x3"),gs("0x7"),(()=>!1)),n._suggestionFactory.registerCustomCallback(gs("0x13"),gs("0x3b"),"join",(()=>!1)),n[gs("0x38")][gs("0x4a")](gs("0x34"),gs("0x3b"),"join",(()=>!1)),n._suggestionFactory[gs("0x4a")](gs("0x13"),"imageStylePreApply",gs("0x31"),(([t])=>{o[gs("0x5")](t.getContainedElement())})),n[gs("0x38")].registerCustomCallback(gs("0x13"),gs("0x3"),gs("0x2f"),((t,e)=>{n[gs("0x38")][gs("0x46")]("formatBlock","",gs("0x31"))(t,{commandName:e[gs("0x22")],commandParams:e[gs("0xa")]})})),n[gs("0x38")][gs("0x4a")](gs("0x13"),gs("0x3"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x13"),subType:gs("0x3")},{type:"insertion",subType:gs("0x3e")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:gs("0x3a"),subType:gs("0x25")}];function s(t,e){const r=i.findIndex((({type:e,subType:n})=>t[gs("0x42")]==e&&t[gs("0x4e")]==n)),s=i[gs("0x21")]((({type:t,subType:n})=>e[gs("0x42")]==t&&e[gs("0x4e")]==n));if(r<0||s<0)return!1;const x=t[gs("0x2")](),a=e[gs("0x2")]();if((0==r||1==r)&&2==s&&x[gs("0x15")](a))return!0;if(2==r&&3==s){const t=n[gs("0x1f")](x,gs("0x3a"))[gs("0x2b")]((({suggestion:t,meta:e})=>e.isOwn&&gs("0x25")==t[gs("0x4e")]));if(t.length>1&&a[gs("0x1e")][gs("0x17")](x[gs("0x0")]))return!0;if(1==t[gs("0x6")]&&(x[gs("0x0")][gs("0x17")](a[gs("0x1e")])||x[gs("0x1e")][gs("0x17")](a.start)))return!0}if(3==r&&3==s&&x[gs("0x0")].isBefore(a[gs("0x0")])){const t=x[gs("0x1e")].nodeAfter,e=a[gs("0x0")][gs("0xc")];return o.isBlockImage(t)&&t===e}return!1}t.model[gs("0x20")][gs("0x14")]((()=>{let e=!1;const r=Array[gs("0x16")](t[gs("0x1d")][gs("0x20")][gs("0x12")][gs("0x9")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x36")](t);if(gs("0x4")==r&&n.hasSuggestion(a)){if(gs("0x13")==s&&(gs("0x3")==x||"imageStylePostApply"==x)){const t=n[gs("0x19")](a);if(i[gs("0x3c")]){const r=t[gs("0x2")]()[gs("0x35")]();if(o[gs("0x11")](r))continue;n[gs("0x2e")](t),e=!0}}if("insertion"==s&&gs("0x3e")==x&&!i.newRange){const t=n[gs("0x19")](a);t[gs("0xf")]&&t[gs("0xf")][gs("0x3f")]&&(n[gs("0x2e")](t[gs("0xf")]),e=!0)}}}return e})),this[gs("0x39")](r)}[gs("0x39")](t){const e=this[gs("0x48")],n=e[gs("0xd")];e[gs("0x18")].get("TrackChangesEditing")[gs("0x43")][gs("0x4c")]((e=>{if("formatBlock"!=e[gs("0x42")]&&"formatInline"!=e[gs("0x42")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x22")])return;const r=o[gs("0xb")][0][gs("0x2a")];return i=gs("0x1c")===r?Qo(n,gs("0x47")):t[r]||r,{type:gs("0x23"),content:Qo(n,gs("0x32"),i)};var i}))}}const ms=["editor","forEach","importWord","_trackChangesExecuted","dataInsert","get","_trackChangesValueDuringImport","commands","execute","_handleImportedData","listenTo","_setSuggestionData","trackChanges","TrackChangesEditing","value","plugins"];var hs,ps;hs=ms,ps=127,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x7")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[bs("0x1")],e=t.commands[bs("0x6")](bs("0x3")),n=t[bs("0x8")].get(bs("0xd"));e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features.track_changes=!this[bs("0x7")]}),{priority:"high"}),this.listenTo(e,bs("0x5"),this[bs("0xa")].bind(this)),this[bs("0xb")](e,bs("0x5"),(()=>{this[bs("0x4")]&&(n[bs("0x9")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[bs("0x0")][bs("0x6")](bs("0xe")).enableCommand(bs("0x3")))}[bs("0xa")](t,e){const{suggestions:n}=e,o=this.editor[bs("0x8")].get("trackChanges"),r=o[bs("0xf")];this[bs("0x7")]!==r&&(o[bs("0x9")](),this[bs("0x4")]=!0),n&&n[bs("0x2")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[bs("0x1")][bs("0x0")][bs("0x6")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0x1")][bs("0x0")][bs("0x6")](bs("0xe"))[bs("0xc")](r)}))}}const _s=["FORMAT_INDENT","enableCommand","_descriptionFactory","indent","IndentEditing","get","getItemLabel","_registerBlockAttribute","has","locale","plugins","outdent","IndentBlock","*Indent:* %0","afterInit","outdentBlock","commandName","formatBlock","editor","blockIndent","registerAttributeLabel","_registerLegacyDescription","indentBlock","format"];var Ts,ys;Ts=_s,ys=481,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0xd")](){const t=this[Cs("0x11")],e=t[Cs("0x9")][Cs("0x4")]("TrackChangesEditing");if(t[Cs("0x9")][Cs("0x7")](Cs("0x3"))&&(e[Cs("0x0")](Cs("0x2")),e[Cs("0x0")](Cs("0xa"))),t[Cs("0x9")][Cs("0x7")](Cs("0xb")))for(const t of[Cs("0x15"),Cs("0xe")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x8")];e[Cs("0x6")]("blockIndent"),e[Cs("0x1")][Cs("0x13")](Cs("0x12"),Qo(n,Cs("0x17"))),this._registerLegacyDescription()}[Cs("0x14")](){const t=this.editor,e=t[Cs("0x8")],n=t.plugins[Cs("0x4")]("TrackChangesEditing");n[Cs("0x1")].registerDescriptionCallback((t=>{if(Cs("0x10")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x15")!=o[Cs("0xf")]&&Cs("0xe")!=o[Cs("0xf")])return;const r=t.getItems()[0],i=n[Cs("0x1")][Cs("0x5")](r);return Cs("0x15")==o[Cs("0xf")]?{type:Cs("0x16"),content:Qo(e,Cs("0xc"),i)}:"outdentBlock"==o[Cs("0xf")]?{type:Cs("0x16"),content:Qo(e,"*Outdent:* %0",i)}:void 0}))}}var ks,Is,Ss=["enableCommand","requires","TrackChangesEditing","init","editor","get","plugins"];ks=Ss,Is=122,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get[Rs("0x5")](){return[Hr.Input]}[Rs("0x0")](){this[Rs("0x1")][Rs("0x3")][Rs("0x2")](Rs("0x6"))[Rs("0x4")]("input")}}const Ns=["plugins","newValue","key","get","link (","label","format","formatInline","TrackChangesEditing","locale","commands","_descriptionFactory","*Remove link*","LinkEditing","*Set link:* %0","commandName","unlink","manualDecorators","afterInit","type","_enableDefaultAttributesIntegration","editor","registerDescriptionCallback","has","_registerLegacyDescription","link"];var Ls,Ms;Ls=Ns,Ms=359,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x17")](){const t=this[ws("0x0")];if(!t.plugins[ws("0x2")](ws("0x12")))return;const e=t[ws("0x5")][ws("0x8")]("TrackChangesEditing"),n=t[ws("0xf")][ws("0x8")](ws("0x4"));e[ws("0x19")](ws("0x4"),["linkHref",...n[ws("0x16")].map((t=>t.id))]),e[ws("0x19")](ws("0x15"));for(const t of n[ws("0x16")])e[ws("0x10")].registerAttributeLabel(t.id,ws("0x9")+t[ws("0xa")].toLowerCase()+")");e[ws("0x10")][ws("0x1")]((e=>{if("attribute"!=e[ws("0x18")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0x7")])return;const o=n[ws("0x6")],r=t[ws("0xe")];return{type:ws("0xb"),content:null==o?Qo(r,ws("0x11")):Qo(r,ws("0x13"),'"'+o+'"')}})),this[ws("0x3")]()}[ws("0x3")](){const t=this[ws("0x0")],e=t[ws("0xe")];t.plugins.get(ws("0xd"))[ws("0x10")].registerDescriptionCallback((t=>{if(ws("0xc")!=t[ws("0x18")])return;const{data:n}=t;if(n){if(ws("0x4")==n[ws("0x14")]){const t=n.commandParams[0];return{type:ws("0xb"),content:Qo(e,ws("0x13"),'"'+t+'"')}}return"unlink"==n.commandName?{type:ws("0xb"),content:Qo(e,ws("0x11"))}:void 0}}))}}const Fs=["plugins","type","listItem","afterInit","markBlockFormat","name","locale","forceValue","formatInline","add","indentList","end","createRange","has","ListEditing","commandParams","ELEMENT_BULLETED_LIST","*Uncheck item*","formatBlock","_descriptionFactory","before","createPositionAt","checkChild","editor","*Check item*","nextSibling","listType","format","commands","todoList","commandName","bulletedList","from","schema","get","previousSibling","blockName","slice","registerDescriptionCallback","checkTodoList","model","length","listIndent","element","getSelectedBlocks","ELEMENT_TODO_LIST","paragraph","ELEMENT_NUMBERED_LIST","parent","document","numberedList","value","selection","numbered","*Indent:* %0","*Change to:* %0","enableCommand","List","change","execute","ELEMENT_LIST_ITEM","registerElementLabel","outdentList","TodoListEditing","bulleted","todoListChecked","getAttribute","filter","todo"];var Ds,Bs;Ds=Fs,Bs=199,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0xb")](){const t=this[Ps("0x1f")],e=t[Ps("0xe")];if(!t[Ps("0x8")][Ps("0x15")](Ps("0x16")))return;const n=t[Ps("0x8")].get("TrackChangesEditing"),o=t.plugins[Ps("0x15")](Ps("0x2"));function r(e){return()=>{const o=t[Ps("0x30")][Ps("0x39")][Ps("0x3c")],r=t[Ps("0x24")][Ps("0x2a")](e);if(r[Ps("0x3b")])return void t[Ps("0x43")](Ps("0x36"),{});const i=e[Ps("0x2d")](0,-4),s=function(t,e,n){let o=Array[Ps("0x28")](t)[Ps("0x6")]((t=>{return e=t,(o=n)[Ps("0x1e")](e[Ps("0x38")],Ps("0xa"))&&!o.isObject(e);var e,o}));o=o[Ps("0x6")]((t=>!t.is("element",Ps("0xa"))||t[Ps("0x5")](Ps("0x22"))!=e));const r=new Set;for(const t of o)t.is(Ps("0x33"),"listItem")?r[Ps("0x11")](js(t)):r.add(t);return Array[Ps("0x28")](r)}(o[Ps("0x34")](),i,t[Ps("0x30")][Ps("0x29")]);t[Ps("0x30")][Ps("0x42")]((()=>{for(const t of s)n[Ps("0xc")](t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:Ps("0x2c")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x28")](t);const n=e.findIndex((t=>Ps("0xa")!=t[Ps("0xd")]));return n>-1&&(e=e[Ps("0x2d")](0,n)),e}(t[Ps("0x30")].document[Ps("0x3c")][Ps("0x34")]()),r=t[Ps("0x30")][Ps("0x14")](t[Ps("0x30")].createPositionAt(o[0],Ps("0x1c")),t[Ps("0x30")][Ps("0x1d")](o[o[Ps("0x31")]-1],Ps("0x13")));t[Ps("0x30")][Ps("0x42")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:Ps("0x32")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x21")];for(;t&&t.getAttribute(Ps("0x32"))>n[Ps("0x5")](Ps("0x32"));)e[Ps("0x11")](t),t=t[Ps("0x21")]}return Array[Ps("0x28")](e)}(o))}))}}n[Ps("0x40")](Ps("0x3a"),r(Ps("0x3a"))),n.enableCommand(Ps("0x27"),r("bulletedList")),o&&n.enableCommand(Ps("0x25"),r("todoList")),n[Ps("0x40")](Ps("0x12"),i(Ps("0x12"))),n[Ps("0x40")]("outdentList",i(Ps("0x1"))),o&&n[Ps("0x40")](Ps("0x2f"),(()=>{const e=t.commands[Ps("0x2a")](Ps("0x2f")),o=Array[Ps("0x28")](e._selectedElements);o[Ps("0x6")]((t=>t.getAttribute(Ps("0x4"))!=e[Ps("0x3b")])),t.model.change((()=>{for(const t of o)n[Ps("0xc")](t,{commandName:Ps("0x2f"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x1b")][Ps("0x0")](Ps("0xa"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x1b")][Ps("0x2e")]((t=>{if(Ps("0x1a")!=t[Ps("0x9")]&&Ps("0x10")!=t[Ps("0x9")])return;const{data:n}=t;if(n){if(Ps("0x3a")==n[Ps("0x26")]||Ps("0x27")==n[Ps("0x26")]||Ps("0x25")==n[Ps("0x26")])switch(n[Ps("0x26")].replace(Ps("0x41"),"")){case Ps("0x3"):return o(Qo(e,Ps("0x18")));case Ps("0x3d"):return o(Qo(e,Ps("0x37")));case Ps("0x7"):return o(Qo(e,Ps("0x35")))}if(Ps("0x12")==n[Ps("0x26")])return{type:Ps("0x23"),content:Qo(e,Ps("0x3e"),Qo(e,Ps("0x44")))};if(Ps("0x1")==n[Ps("0x26")])return{type:Ps("0x23"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0x44")))};if("checkTodoList"==n[Ps("0x26")])return n[Ps("0x17")][0][Ps("0xf")]?{type:"format",content:Qo(e,Ps("0x20"))}:{type:"format",content:Qo(e,Ps("0x19"))}}function o(t){return{type:Ps("0x23"),content:Qo(e,Ps("0x3f"),t)}}}))}}function js(t){const e=t[Ps("0x5")](Ps("0x32"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(Ps("0x33"),"listItem");){const o=t[Ps("0x2b")].getAttribute(Ps("0x32"));if(o==e)n=t[Ps("0x2b")];else if(o<e)break;t=t[Ps("0x2b")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0xa"))&&t.getAttribute(Ps("0x32"))>0){let n=t[Ps("0x21")];for(;n&&"listItem"==n[Ps("0xd")]&&n[Ps("0x5")](Ps("0x32"))==t[Ps("0x5")](Ps("0x32"));)e.push(n),n=n[Ps("0x21")]}return e}const Vs=["has","type","replace","formatBlock","*Format:* set order to regular","createRange","getAttribute","selection","listType","document","toUpperCase","reversed","handleListStartCommand","styles","enableCommand","format","map","getFirstPosition","*Format:* set start index to %0","before","startIndex","markMultiRangeBlockFormat","handleListStyleCommand","getSiblingNodes","length","_getSuggestionBlocks","handleListReversedCommand","getListTypeFromListStyleType","from","locale","commandName","ListUtils","_getTranslationKeyForListStyle","change","getLastPosition","*Change to:* %0","commandParams","listReversed","filter","getSelectedBlocks","listStyle","numbered","listItem","editor","_descriptionFactory","list.properties","config","TrackChangesEditing","model","ListPropertiesEditing","forward","parent","get","registerDescriptionCallback","element","listStart","plugins","handleDescriptions","createPositionAt","push","bind","backward"];var Hs,zs;Hs=Vs,zs=214,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this[Ws("0xf")][Ws("0x1c")][Ws("0x22")](Ws("0x15")))return;const t=this[Ws("0xf")][Ws("0x12")][Ws("0x18")](Ws("0x11")),e=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13"));t[Ws("0x2f")]&&e[Ws("0x30")](Ws("0xc"),this[Ws("0x38")][Ws("0x20")](this)),t[Ws("0x2d")]&&e[Ws("0x30")](Ws("0x9"),this[Ws("0x3c")].bind(this)),t[Ws("0x36")]&&e.enableCommand(Ws("0x1b"),this[Ws("0x2e")].bind(this)),e[Ws("0x10")][Ws("0x19")](this[Ws("0x1d")][Ws("0x20")](this))}[Ws("0x38")](t,e={}){const n=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13")),o=this._getSuggestionBlocksForListStyle();this[Ws("0xf")].model.change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0xc"),commandParams:[{type:e[Ws("0x23")]}],formatGroupId:Ws("0xc")})}))}[Ws("0x3c")](t,e={}){const n=this[Ws("0xf")][Ws("0x1c")][Ws("0x18")](Ws("0x13")),o=this[Ws("0x3b")]((t=>t.is(Ws("0x1a"),Ws("0xe"))&&Ws("0xd")===t[Ws("0x28")](Ws("0x2a"))));if(o[Ws("0x3a")]<1)return;const r=o.map((t=>this[Ws("0xf")][Ws("0x14")][Ws("0x27")](this[Ws("0xf")][Ws("0x14")].createPositionAt(t,Ws("0x35")),this[Ws("0xf")][Ws("0x14")].createPositionAt(t,0))));this[Ws("0xf")].model[Ws("0x5")]((()=>{n[Ws("0x37")](r,{commandName:Ws("0x9"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x9")})}))}[Ws("0x2e")](t,e={}){const n=this[Ws("0xf")].plugins.get(Ws("0x13")),o=this[Ws("0x3b")]((t=>t.is(Ws("0x1a"),Ws("0xe"))&&"numbered"===t[Ws("0x28")](Ws("0x2a"))));if(o[Ws("0x3a")]<1)return;const r=o[Ws("0x32")]((t=>this.editor[Ws("0x14")].createRange(this[Ws("0xf")][Ws("0x14")][Ws("0x1e")](t,Ws("0x35")),this.editor[Ws("0x14")][Ws("0x1e")](t,0))));this[Ws("0xf")][Ws("0x14")][Ws("0x5")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x1b"),commandParams:[{startIndex:e[Ws("0x36")]}],formatGroupId:Ws("0x1b")})}))}[Ws("0x1d")](t){if(Ws("0x25")!=t.type&&"formatInline"!=t[Ws("0x23")])return;const e=this[Ws("0xf")][Ws("0x1")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x2")]){case Ws("0xc"):o=Ws("0x7"),r={type:Ws("0x31"),content:Qo(e,o,Qo(e,this[Ws("0x4")](n[Ws("0x8")][0][Ws("0x23")])))};break;case Ws("0x9"):o=n.commandParams[0].reversed?"*Format:* set order to reversed":Ws("0x26"),r={type:Ws("0x31"),content:Qo(e,o)};break;case Ws("0x1b"):o=Ws("0x34"),r={type:Ws("0x31"),content:Qo(e,o,n.commandParams[0][Ws("0x36")])}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,o;const r=this[Ws("0xf")].plugins[Ws("0x18")](Ws("0x3"));let i=Array[Ws("0x0")](this[Ws("0xf")][Ws("0x14")].document.selection[Ws("0xb")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x1a"),"listItem"))&&i.unshift(...r[Ws("0x39")](this[Ws("0xf")][Ws("0x14")][Ws("0x2b")][Ws("0x29")][Ws("0x33")](),Ws("0x21"))),(null===(e=i[i[Ws("0x3a")]-1])||void 0===e?void 0:e.is(Ws("0x1a"),"listItem"))&&i[Ws("0x1f")](...r[Ws("0x39")](this[Ws("0xf")][Ws("0x14")][Ws("0x2b")][Ws("0x29")][Ws("0x6")](),"forward")),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0xf")].model[Ws("0x2b")][Ws("0x29")][Ws("0x33")]())||void 0===n?void 0:n[Ws("0x17")])||void 0===o?void 0:o.is(Ws("0x1a"),"listItem"))&&(i=i[Ws("0xa")]((t=>t.is("element","listItem")))),i}[Ws("0x3b")](t){const e=this[Ws("0xf")].plugins[Ws("0x18")](Ws("0x3"));let n=Array[Ws("0x0")](this[Ws("0xf")][Ws("0x14")].document[Ws("0x29")][Ws("0xb")]())[Ws("0xa")](t).map((t=>{const n=this[Ws("0xf")][Ws("0x14")][Ws("0x1e")](t,0);return[...e[Ws("0x39")](n,Ws("0x21")),...e[Ws("0x39")](n,Ws("0x16"))]})).flat();return n=[...new Set(n)],n}[Ws("0x4")](t){return"ELEMENT_"+this.editor.plugins[Ws("0x18")](Ws("0x3"))[Ws("0x3d")](t)[Ws("0x2c")]()+"_LIST_"+t.toUpperCase()[Ws("0x24")](/-/g,"_")}}const qs=["data","ELEMENT_MEDIA","showSuggestionHighlights","createEmptyElement","has","options","plugins","MediaEmbedEditing","locale","TrackChangesEditing","registerElementLabel","downcastDispatcher","div","stop","attribute:url:media","mediaEmbed","get","_descriptionFactory","high","conversion","elementToElement","dataDowncast","enableCommand","media","afterInit"];var $s,Xs;$s=qs,Xs=197,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x2")](){const t=this.editor;if(!t[Zs("0x9")][Zs("0x7")](Zs("0xa")))return;const e=t[Zs("0x9")][Zs("0x13")](Zs("0xc")),n=t[Zs("0xb")];e[Zs("0x0")](Zs("0x12")),e[Zs("0x14")][Zs("0xd")](Zs("0x1"),(t=>Qo(n,Zs("0x4"),t))),t[Zs("0x16")].for(Zs("0x18"))[Zs("0x17")]({model:Zs("0x1"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x5")])return e[Zs("0x6")](Zs("0xf"))},converterPriority:Zs("0x15")}),t[Zs("0x3")][Zs("0xe")].on(Zs("0x11"),((t,e,n)=>{n[Zs("0x8")][Zs("0x5")]&&t[Zs("0x10")]()}),{priority:"high"})}}const Js=["plugins","has","get","mention","editor","afterInit","MentionEditing","TrackChangesEditing","enableCommand"];var Qs,tx;Qs=Js,tx=410,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x8")];t[ex("0x4")][ex("0x5")](ex("0x1"))&&t[ex("0x4")][ex("0x6")](ex("0x2"))[ex("0x3")](ex("0x7"))}}const ox=["ELEMENT_PAGE_BREAK","registerElementLabel","TrackChangesEditing","afterInit","locale","has","PageBreakEditing","pageBreak","enableCommand","get","plugins"];var rx,ix;rx=ox,ix=280,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x9")](){const t=this.editor;if(!t[sx("0x5")][sx("0x0")](sx("0x1")))return;t[sx("0x5")][sx("0x4")](sx("0x8"))[sx("0x3")](sx("0x2"));const e=t[sx("0x5")][sx("0x4")](sx("0x8")),n=t[sx("0xa")];e._descriptionFactory[sx("0x7")](sx("0x2"),(t=>Qo(n,sx("0x6"),t)))}}const ax=["span","locale","plugins","registerDescriptionCallback","getFirstRange","consumable","format","isBlock","editor","createUIElement","bindElementToMarker","highest","isLimit","consume","schema","get","isTouching","ck-suggestion-marker--active","_registerLegacyDescription","type","editing","formatBlock","insertion","mapper","addMarker:suggestion:insertion","checkChild","*Change to:* %0","downcastDispatcher","$text","model","markerName","markerRange","start","_enableDefaultAttributesIntegration","data","Paragraph","options","writer","name","has","nodeAfter","end","commandName","insert","*Insert:* %0","_descriptionFactory","paragraph","getItemLabel","TrackChangesEditing","afterInit","showSuggestionHighlights"];var cx,lx;cx=ax,lx=470,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x26")](){const t=this[ux("0x30")];if(!t[ux("0x2a")][ux("0x1c")](ux("0x18")))return;const e=t.locale,n=t.plugins[ux("0x4")](ux("0x25"));n._descriptionFactory.registerElementLabel(ux("0x23"),(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x16")](ux("0x23")),n.enableCommand("insertParagraph"),t[ux("0x9")][ux("0x10")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0x0")}),t[ux("0x17")][ux("0x10")].on(ux("0xd"),((e,n,o)=>{o[ux("0x19")][ux("0x27")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x22")];o[ux("0x2b")]((n=>{if(ux("0xb")!==n[ux("0x8")])return;const{start:r,end:i}=n[ux("0x2c")]();if(!r[ux("0x5")](i)||!r[ux("0x1d")])return;const s=t[ux("0x12")].schema,x=r[ux("0x1d")];return s.isBlock(x)&&!s[ux("0x1")](x)&&s.checkChild(x,ux("0x11"))?{type:ux("0xb"),content:Qo(e,ux("0x21"),o[ux("0x24")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x7")](){const t=this[ux("0x30")],e=t[ux("0x29")];t[ux("0x2a")][ux("0x4")](ux("0x25"))[ux("0x22")][ux("0x2b")]((t=>{if(ux("0xa")!=t[ux("0x8")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x1f")]?{type:ux("0x2e"),content:Qo(e,ux("0xf"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x2a")][ux("0x4")](ux("0x25")),s=o.markerRange[ux("0x15")],x=o[ux("0x14")][ux("0x1e")],a=t[ux("0x12")][ux("0x3")];if(!s[ux("0x5")](x)||!s[ux("0x1d")])return;const c=s[ux("0x1d")];if(a[ux("0x2f")](c)&&!a[ux("0x1")](c)&&a[ux("0xe")](c,ux("0x11"))){if(!r[ux("0x2d")][ux("0x2")](o.markerRange,n[ux("0x1b")]))return;const t=r.writer[ux("0x31")](ux("0x28"),{class:"ck-suggestion-marker-split"}),s=r[ux("0xc")].toViewPosition(x);e&&i.activeMarkers.includes(o.markerName)&&r.writer.addClass(ux("0x6"),t),r[ux("0x1a")][ux("0x20")](s,t),r[ux("0xc")][ux("0x32")](t,o[ux("0x13")])}}}const fx=["editor","registerDescriptionCallback","_enableDefaultAttributesIntegration","type","has","commandName","format","get","removeFormat","formatBlock","locale","plugins","*Remove all formatting*","_registerLegacyDescription","afterInit","RemoveFormatEditing","formatInline"];var mx,hx;mx=fx,hx=348,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x6")](){const t=this[px("0x9")];t[px("0x3")][px("0xd")](px("0x7"))&&(t[px("0x3")][px("0x10")]("TrackChangesEditing")[px("0xb")](px("0x0")),this[px("0x5")]())}[px("0x5")](){const t=this[px("0x9")];t.plugins[px("0x10")]("TrackChangesEditing")._descriptionFactory[px("0xa")]((e=>{if(px("0x1")!=e[px("0xc")]&&px("0x8")!=e[px("0xc")])return;const{data:n}=e;return n&&px("0x0")==n[px("0xe")]?{type:px("0xf"),content:Qo(t[px("0x2")],px("0x4"))}:void 0}))}}const Ex=["acceptSuggestion","RestrictedEditingModeEditing","get","editor","plugins","afterInit","discardSelectedSuggestions","discardSuggestion","goToPreviousRestrictedEditingException","TrackChangesEditing","acceptSelectedSuggestions","discardAllSuggestions","goToNextRestrictedEditingException","has","enableCommand"];var _x,Tx;_x=Ex,Tx=410,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0xd")];if(!t[yx("0xe")][yx("0x8")](yx("0xb")))return;const e=t.plugins[yx("0xc")](yx("0x4"));e[yx("0x9")](yx("0x3")),e.enableCommand(yx("0x7"));const n=t[yx("0xe")].get(yx("0xb"));n[yx("0x9")]("trackChanges"),n[yx("0x9")](yx("0xa")),n[yx("0x9")](yx("0x2")),n[yx("0x9")]("acceptAllSuggestions"),n[yx("0x9")](yx("0x6")),n[yx("0x9")](yx("0x5")),n[yx("0x9")](yx("0x1"))}}const Ax=["get","deletion","bindElementToMarker","requires","mapper","addMarker:suggestion","data","getItems","name","element","createPositionBefore","split","showSuggestionHighlights","downcastDispatcher","markerName","addClass","TrackChangesEditing","createUIElement","activeMarkers","span","enableCommand","high","writer","editor","ck-suggestion-marker-","merge","test","plugins","markerRange","toViewPosition","includes","editing","locale","init","ELEMENT_LINE_BREAK","consumable","shiftEnter","options","insert","softBreak"];var kx,Ix;kx=Ax,Ix=158,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x5")](){return[ui.ShiftEnter]}[Sx("0x23")](){const t=this[Sx("0x19")],e=t[Sx("0x1d")][Sx("0x2")](Sx("0x12"));e[Sx("0x16")](Sx("0x26")),t[Sx("0x21")].downcastDispatcher.on("addMarker:suggestion:insertion",vx(t),{priority:Sx("0x17")}),t.editing[Sx("0xf")].on("addMarker:suggestion:deletion",vx(t),{priority:"high"}),t[Sx("0x8")].downcastDispatcher.on(Sx("0x7"),((e,n,o)=>{o[Sx("0x27")][Sx("0xe")]&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel("softBreak",(e=>Qo(t[Sx("0x22")],Sx("0x24"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Sx("0x1d")][Sx("0x2")](Sx("0x12"));if(!r[Sx("0x25")][Sx("0x1c")](o[Sx("0x1e")],n[Sx("0xa")]))return;const s=t.model;for(const t of o[Sx("0x1e")][Sx("0x9")]()){if(!t.is(Sx("0xb"),Sx("0x1")))continue;const n=Sx("0x3")==o[Sx("0x10")][Sx("0xd")](":")[1]?Sx("0x1b"):Sx("0xd"),x=r.writer[Sx("0x13")](Sx("0x15"),{class:Sx("0x1a")+n}),a=r.mapper[Sx("0x1f")](s[Sx("0xc")](t));e&&i[Sx("0x14")][Sx("0x20")](o.markerName)&&r[Sx("0x18")][Sx("0x11")]("ck-suggestion-marker--active",x),r[Sx("0x18")][Sx("0x0")](a,x),r[Sx("0x6")][Sx("0x4")](x,o[Sx("0x10")])}}}const Nx=["FORMAT_RESTRICTED_ENABLED","enableCommand","plugins","from","commands","editor","type","formatBlock","afterInit","forceValue","value","has","StandardEditingModeEditing","isCollapsed","locale","getRanges","selection","registerDescriptionCallback","format","restrictedEditingException","change","get","formatInline"];var Lx,Mx;Lx=Nx,Mx=208,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x7")](){const t=this[wx("0x4")],e=t.model,n=t[wx("0xd")];if(!t[wx("0x1")][wx("0xa")](wx("0xb")))return;const o=t[wx("0x1")].get("TrackChangesEditing"),r=wx("0x12"),i=t[wx("0x3")][wx("0x14")](r);o[wx("0x0")](r,((t,n={})=>{const s=e.document[wx("0xf")];if(s[wx("0xc")])return void t(n);const x=void 0!==n[wx("0x8")]?n[wx("0x8")]:!i[wx("0x9")];e[wx("0x13")]((()=>{const t=Array[wx("0x2")](s[wx("0xe")]());for(const n of t){const t=x?[n]:$r(r,n,e);for(const e of t)o.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0x10")]((t=>{if(wx("0x6")!=t.type&&wx("0x15")!=t[wx("0x5")])return;const{data:e}=t;return e&&e.commandName==r?e.commandParams[0].forceValue?{type:wx("0x11"),content:Qo(n,wx("0x16"))}:{type:wx("0x11"),content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["ghsAttributes","type","_registerBlockAttribute","forceValue","DataSchema","inline","normalizeConfig","plugins","FORMAT_STYLE","add","*Remove format:* %0","element","registerAttributeLabel","formatBlock","locale","has","commandParams","TrackChangesEditing","StyleUtils","*Set format:* %0","config","registerDescriptionCallback","afterInit","style","styleName","_registerLegacyDescription","getGhsAttributeNameForElement","format","_enableDefaultAttributesIntegration","toLowerCase","GeneralHtmlSupport","get","_descriptionFactory","editor","formatInline","_registerInlineAttribute"];var Dx,Bx;Dx=Fx,Bx=459,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x1f")](){const t=this.editor;if(!t[Px("0x10")][Px("0x18")]("Style")||!t[Px("0x10")][Px("0x18")](Px("0xd")))return;const e=t.plugins[Px("0x4")](Px("0x1a")),n=t.locale,o=t[Px("0x1d")][Px("0x4")](Px("0x20")),r=t.plugins[Px("0x4")](Px("0x3")),i=t.plugins[Px("0x4")](Px("0x1b"))[Px("0xf")](t[Px("0x10")][Px("0x4")]("DataSchema"),o.definitions);e[Px("0x1")](Px("0x20"));const s=new Set;for(const t of i.block){const e=r[Px("0x23")](t[Px("0x14")]);s[Px("0x12")](e)}const x=new Set;for(const t of i[Px("0xe")]){const e=r.getGhsAttributeNameForElement(t[Px("0x14")]);x.add(e);for(const e of t[Px("0x9")])x[Px("0x12")](e)}for(const t of s)e[Px("0xb")](t),e[Px("0x5")][Px("0x15")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x8")](t),e[Px("0x5")][Px("0x15")](t,Qo(n,Px("0x11")));this[Px("0x22")]()}[Px("0x22")](){const t=this[Px("0x6")],e=t[Px("0x17")];t[Px("0x10")][Px("0x4")](Px("0x1a"))[Px("0x5")][Px("0x1e")]((t=>{if(Px("0x16")!=t[Px("0xa")]&&Px("0x7")!=t[Px("0xa")])return;const{data:n}=t;return n&&"style"===n.commandName?n[Px("0x19")][0][Px("0xc")]?{type:Px("0x0"),content:Qo(e,Px("0x1c"),n[Px("0x19")][0][Px("0x21")][Px("0x2")]())}:{type:Px("0x0"),content:Qo(e,Px("0x13"),n[Px("0x19")][0][Px("0x21")][Px("0x2")]())}:void 0}))}}const jx=["commands","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","isInContent","setSelection","_splitMarkerName","start","plugins","detach","add","getAttribute","editor","ELEMENT_TABLE_WITH_TEXT","getRanges","TableUtils","document","tableColumn","_getCoordsForCells","deletion","registerElementLabel","addRange","_getSuggestionCoords","length","insertTableColumnRight","discard","TrackChangesEditing","ELEMENT_TABLE","push","hasAttribute","getRowIndexes","insertTable","registerPostFixer","tableRow","getChildren","max","substr","filter","change:data","_acceptFormatSuggestionCallbackFactory","_tableSuggestions","rowspan","toLowerCase","classes","*Remove:* %0","createRangeIn","registerDescriptionCallback","createTableWalker","getSuggestion","isEqual","name","selection","nodeAfter","values","getSelectionAffectedTableCells","root","_suggestionFactory","from","batch","insertion","tableCell","every","get","getColumnIndexes","type","locale","$graveyard","_descriptionFactory","low","insertTableRowBelow","end","has","change","highest","subType","getChangedMarkers","span","ELEMENT_TABLE_ROW","selectTableColumn","position","addClass","element","ELEMENT_TABLE_ROW_WITH_TEXT","some","removeTableRow","removeTableColumn","TableEditing","MAX_SAFE_INTEGER","model","options","isArray","enableCommand","accept","first","includes","getCellLocation","above","fromRange","differ","_tablePostFixingSubtypes","enqueueChange","min","createPositionAt","colspan","registerCustomCallback","$textProxy","downcastDispatcher","join","cell","data","_setupColumnsRowsFixing","createRangeOn","map","forceValue","isTouching","MIN_SAFE_INTEGER","*Insert:* %0","minRow","last","item","showSuggestionHighlights","ELEMENT_TABLE_COLUMN","getItems","rootName","refresh","table","order","maxRow","maxColumn","findAncestor"];var Gx,Vx;Gx=jx,Vx=369,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x74")]=[Hx("0x32"),Hx("0x22")],this[Hx("0x39")]=new Set}afterInit(){const t=this[Hx("0x1d")],e=t.model[Hx("0x21")][Hx("0x44")];if(!t[Hx("0x19")][Hx("0x58")](Hx("0x67")))return;const n=t[Hx("0x52")],o=t[Hx("0x19")][Hx("0x4f")](Hx("0x2b")),r=t.plugins.get(Hx("0x20"));o._descriptionFactory[Hx("0x25")]("table",(t=>Qo(n,Hx("0x2c"),t))),this._setupColumnsRowsFixing(),o[Hx("0x6c")](Hx("0x30")),o[Hx("0x6c")]("selectTableRow"),o[Hx("0x6c")](Hx("0x5f"));for(const n of["insertTableRowAbove",Hx("0x56")]){const i=t[Hx("0x12")][Hx("0x4f")](n);o[Hx("0x6c")](n,(n=>{t.model.change((t=>{n();const s=Hx("0x71")===i[Hx("0xe")],x=r.getSelectionAffectedTableCells(e),a=r[Hx("0x2f")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x6")]+1,l=x[0].findAncestor(Hx("0xd")),u=r[Hx("0x40")](l,{startRow:c,endRow:c}),d=Array[Hx("0x4a")](u).map((e=>t[Hx("0x80")](e[Hx("0x7d")])));o.markMultiRangeInsertion(d,Hx("0x32"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x29")]){const i=t[Hx("0x12")][Hx("0x4f")](n);o.enableCommand(n,(n=>{t[Hx("0x69")].change((t=>{n();const s="left"===i.order,x=r.getSelectionAffectedTableCells(e),a=r[Hx("0x50")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x6")]+1,l=x[0][Hx("0x11")](Hx("0xd")),u=r[Hx("0x40")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x4a")](u)[Hx("0x0")]((e=>t[Hx("0x80")](e[Hx("0x7d")])));o.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Hx("0x65"),Hx("0x66")]){const i=n[Hx("0x35")](11),s=i[Hx("0x3b")](),x=s[Hx("0x35")](0,3)+Hx("0x5d"),a=Hx("0xd")+i,c=Hx("0x76")+i,l="max"+i;o.enableCommand(n,(()=>{t[Hx("0x69")].change((t=>{const i=r[Hx("0x47")](e),u=i[0][Hx("0x11")](Hx("0xd"));let d;if(Hx("0x65")==n){const t=r[Hx("0x2f")](i);d={startRow:t[Hx("0x6e")],endRow:t[Hx("0x6")],includeAllSlots:!0}}else{const t=r[Hx("0x50")](i);d={startColumn:t[Hx("0x6e")],endColumn:t.last,includeAllSlots:!0}}const g=r[Hx("0x40")](u,d),f=Array[Hx("0x4a")](g).map((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x2e")](x)))),h=Wx(f.filter((t=>!t[Hx("0x2e")](x))))[Hx("0x0")]((e=>t[Hx("0x80")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Hx("0x32")==p[Hx("0x5b")]||"tableColumn"==p[Hx("0x5b")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t.createRangeOn(n),i=r.getCellLocation(n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x26")](o)}}}))}))}function i(n){const o=Array.from(e.getRanges())[Hx("0x0")]((t=>s.LiveRange[Hx("0x72")](t)));t[Hx("0x69")].change((e=>{const r=e[Hx("0x4b")];n=n[Hx("0x36")]((t=>Hx("0x53")!=t[Hx("0x48")][Hx("0xb")])),e.setSelection(n),t[Hx("0x12")][Hx("0x4f")]("removeTableRow").refresh(),t[Hx("0x14")]("removeTableRow",{forceDefaultExecution:!0}),t.model[Hx("0x75")]((()=>{t.model[Hx("0x75")](r,(t=>{const e=o[Hx("0x36")]((t=>Hx("0x53")!=t[Hx("0x48")][Hx("0xb")]));e[Hx("0x28")]>0&&t[Hx("0x16")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Hx("0x69")][Hx("0x59")]((o=>{const r=Array[Hx("0x4a")](e[Hx("0x1f")]())[Hx("0x0")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t.getItems({shallow:!0}))i[Hx("0x2d")](e);for(const e of i)"$graveyard"!=e[Hx("0x48")][Hx("0xb")]&&(o[Hx("0x16")](o[Hx("0x77")](e,0)),t.commands.get(Hx("0x66"))[Hx("0xc")](),t.execute(Hx("0x66"),{forceDefaultExecution:!0}));const x=r[Hx("0x36")]((t=>"$graveyard"!=t.root[Hx("0xb")]));x[Hx("0x28")]>0&&o[Hx("0x16")](x);for(const t of r)t.detach()}))}function c(t,e){return e[Hx("0x4e")]((e=>t[Hx("0x64")]((t=>t.end.isEqual(e[Hx("0x18")])||e[Hx("0x57")][Hx("0x42")](t[Hx("0x18")])))))}function l(t,e){return t[Hx("0x64")]((t=>e[Hx("0x64")]((e=>t[Hx("0x57")][Hx("0x2")](e.start)))))}t[Hx("0x7e")][Hx("0x7b")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Hx("0x6a")][Hx("0x8")])return;const o=e[Hx("0x7")];if(!o)return;const r=n.mapper.toViewElement(o);function i(t){return Array[Hx("0x6b")](t)?t:[t]}r&&"tableCell"===o.name&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Hx("0x61")](i(e[Hx("0x3c")]),t)),((t,e,n)=>n.removeClass(i(e[Hx("0x3c")]),t)))}),{priority:Hx("0x5a")}),o[Hx("0x54")][Hx("0x3f")]((t=>{if(Hx("0x4c")!=t[Hx("0x51")]&&"deletion"!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x62"),"table")){if(Hx("0x4c")==t[Hx("0x51")]){const e=t[Hx("0xa")]().filter((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")]));if(e.length)return{type:Hx("0x4c"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x1e"),'"'+e[Hx("0x7c")](" ")+'"'))}}if(Hx("0x24")==t[Hx("0x51")]){const e=t.getItems().filter((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")]));if(e[Hx("0x28")])return{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x7c")](" ")+'"'))}}}})),o[Hx("0x54")][Hx("0x3f")]((t=>{if(Hx("0x32")==t.subType){const e=t.getItems()[Hx("0x36")]((t=>t.is("$textProxy"))).map((t=>t[Hx("0x7e")])),o=this[Hx("0x27")](t),r=o[Hx("0xf")]-o[Hx("0x5")]+1;if(Hx("0x4c")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x63"),[r,'"'+e[Hx("0x7c")](" ")+'"']))}:{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x5e"),r))};if(Hx("0x24")==t[Hx("0x51")])return e.length?{type:"deletion",content:Qo(n,Hx("0x3d"),Qo(n,Hx("0x63"),[r,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x3d"),Qo(n,Hx("0x5e"),r))}}if(Hx("0x22")==t[Hx("0x5b")]){const e=t[Hx("0xa")]()[Hx("0x36")]((t=>t.is(Hx("0x7a"))))[Hx("0x0")]((t=>t[Hx("0x7e")])),o=this[Hx("0x27")](t),r=o[Hx("0x10")]-o.minColumn+1;if(Hx("0x4c")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x4c"),content:Qo(n,Hx("0x4"),Qo(n,Hx("0x13"),[r,'"'+e[Hx("0x7c")](" ")+'"']))}:{type:Hx("0x4c"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",r))};if(Hx("0x24")==t[Hx("0x51")])return e[Hx("0x28")]?{type:Hx("0x24"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e.join(" ")+'"']))}:{type:Hx("0x24"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x9"),r))}}})),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x32"),Hx("0x2a"),i),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x32"),Hx("0x6d"),i),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x22"),Hx("0x2a"),a),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x22"),Hx("0x6d"),a),o[Hx("0x49")].registerCustomCallback(Hx("0x4c"),Hx("0x22"),Hx("0x7c"),c),o[Hx("0x49")][Hx("0x79")]("deletion",Hx("0x22"),Hx("0x7c"),c),o[Hx("0x49")][Hx("0x79")](Hx("0x4c"),"tableRow",Hx("0x7c"),l),o._suggestionFactory[Hx("0x79")](Hx("0x24"),Hx("0x32"),Hx("0x7c"),l)}[Hx("0x38")](){const t=this[Hx("0x1d")],e=t[Hx("0x69")].document[Hx("0x44")];return(n,o)=>{t[Hx("0x69")][Hx("0x59")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Hx("0x1")]&&(a=n[0][Hx("0x18")][Hx("0x45")]);const c=r[Hx("0x3e")](a);if(Hx("0x53")==c.root[Hx("0xb")])return;const l=Array[Hx("0x4a")](e[Hx("0x1f")]())[Hx("0x0")]((t=>s.LiveRange[Hx("0x72")](t)));r.setSelection(c),t.commands[Hx("0x4f")](i).refresh(),x[Hx("0x2d")]({forceDefaultExecution:!0}),t[Hx("0x14")](i,...x);const u=l[Hx("0x36")]((t=>"$graveyard"!=t.root.rootName));u.length>0&&r[Hx("0x16")](u);for(const t of l)t[Hx("0x1a")]()}))}}[Hx("0x23")](t){const e=this[Hx("0x1d")][Hx("0x19")].get(Hx("0x20"));let n=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x3")],r=Number[Hx("0x68")],i=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[Hx("0x48")][Hx("0xb")])continue;const{row:t,column:x}=e[Hx("0x70")](s),a=s[Hx("0x2e")](Hx("0x3a"))?s[Hx("0x1c")](Hx("0x3a"))-1:0,c=s[Hx("0x2e")](Hx("0x78"))?s.getAttribute(Hx("0x78"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}[Hx("0x7f")](){const t=this.editor,e=t[Hx("0x19")][Hx("0x4f")](Hx("0x2b")),n=t[Hx("0x19")][Hx("0x4f")](Hx("0x20"));t[Hx("0x69")][Hx("0x21")].on(Hx("0x37"),(()=>{const n=Array[Hx("0x4a")](t[Hx("0x69")][Hx("0x21")][Hx("0x73")][Hx("0x5c")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x17")](t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x41")](r);this[Hx("0x74")][Hx("0x6f")](i)&&this._tableSuggestions[Hx("0x1b")](s)}}),{priority:Hx("0x55")});const o=(t,e)=>{let o=!1;const r=e.createRangeOn(t),i=t.findAncestor("table"),s=n[Hx("0x70")](t);for(const e of this[Hx("0x39")]){const n=e[Hx("0x5b")],x=n.startsWith("tablePaste"),a=n[Hx("0x35")](x?10:5),c=a[Hx("0x3b")](),l=c[Hx("0x35")](0,3)+Hx("0x5d"),u=Hx("0x76")+a,d=Hx("0x34")+a;if(!e[Hx("0x15")])continue;if(i!=e.getFirstRange()[Hx("0x18")].findAncestor(Hx("0xd")))continue;if(e.isIntersectingWithRange(r))continue;const g=t.hasAttribute(l)?t[Hx("0x1c")](l)-1:0,f=this[Hx("0x27")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x26")](r),o=!0)}return o};t[Hx("0x69")][Hx("0x21")][Hx("0x31")]((e=>{let n=!1;for(const r of t[Hx("0x69")][Hx("0x21")][Hx("0x73")].getChanges())if("insert"==r[Hx("0x51")])if(Hx("0x32")==r[Hx("0x43")])for(const t of r[Hx("0x60")][Hx("0x45")][Hx("0x33")]())n=n||o(t,e);else Hx("0x4d")==r[Hx("0x43")]&&(n=n||o(r[Hx("0x60")].nodeAfter,e));return n}))}[Hx("0x27")](t){return this[Hx("0x23")](t[Hx("0x1f")]().map((t=>t.start.nodeAfter)))}}function Wx(t){return Array[Hx("0x4a")](new Set(t)[Hx("0x46")]())}const Kx=["get","detach","getAncestors","setSelection","add","mergeTableCellDown","map","markBlockFormat","mergeTableCellRight","length","formatBlock","execute","selection","element","registerCustomCallback","containsRange","$graveyard","plugins","*Split cell:* horizontally","model","insertion","createTableWalker","mergeTableCellLeft","direction","commandName","splitTableCellVertically","horizontally","value","markMultiRangeBlockFormat","size","commands","table","formatInline","find","_areSelectedCellsMergable","_isForcedDefaultExecutionBlock","findAncestor","splitTableCellHorizontally","createRangeOn","format","TrackChangesEditing","low","return","enableCommand","stop","afterInit","getSuggestions","forceDefaultExecution","has","rootName","_areMergableCells","*Split cell:* vertically","refresh","getSelectionAffectedTableCells","push","getRanges","author","mergeTableCells","getFirstPosition","_suggestionFactory","locale","highest","type","document","mergeTableCellUp","editor","deletion","_descriptionFactory","subType","set:isEnabled","change","registerDescriptionCallback","TableEditing","accept","TableUtils","from","fromRange"];var qx,$x;qx=Kx,$x=495,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get requires(){return[zx]}[Xx("0xc")](){const t=this[Xx("0x20")],e=t[Xx("0x3f")][Xx("0x1e")][Xx("0x38")],n=t[Xx("0x1b")];if(!t[Xx("0x3d")][Xx("0xf")](Xx("0x27")))return;const o=t[Xx("0x3d")][Xx("0x2c")](Xx("0x7")),r=t[Xx("0x3d")][Xx("0x2c")](Xx("0x29")),i=t[Xx("0x3d")][Xx("0x2c")](zx);i._tablePostFixingSubtypes[Xx("0x15")]("mergeTableCells"),o[Xx("0xa")](Xx("0x18"),(()=>{const e=r[Xx("0x14")](t[Xx("0x3f")][Xx("0x1e")][Xx("0x38")]);t[Xx("0x3f")][Xx("0x25")]((()=>{o[Xx("0x48")](e,{commandName:Xx("0x18"),commandParams:[]},[],Xx("0x18"))}))})),t[Xx("0x4a")][Xx("0x2c")](Xx("0x18")).on(Xx("0x37"),((e,n)=>{t[Xx("0x4a")][Xx("0x2c")]("trackChanges")[Xx("0x47")]&&(n[Xx("0x35")]>0&&n[n[Xx("0x35")]-1]&&n[n[Xx("0x35")]-1][Xx("0xe")]||o[Xx("0x2")]||this[Xx("0x1")]()||e[Xx("0xb")]())}),{priority:Xx("0x1c")});for(const e of[Xx("0x1f"),"mergeTableCellRight","mergeTableCellDown",Xx("0x42")]){const n=t[Xx("0x4a")].get(e);o.enableCommand(e,(()=>{const e=t.model[Xx("0x1e")].selection[Xx("0x19")]()[Xx("0x2e")]()[Xx("0x0")]((t=>t.is("element","tableCell"))),r=n[Xx("0x47")];t.model[Xx("0x25")]((()=>{o[Xx("0x48")]([e,r],{commandName:Xx("0x18"),commandParams:[]},[],Xx("0x18"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[Xx("0x4a")].get(e);o[Xx("0xa")](e,(()=>{const i=r[Xx("0x14")](t.model[Xx("0x1e")][Xx("0x38")])[0],s=i[Xx("0x3")](Xx("0x4b")),{column:x,row:a}=r.getCellLocation(i);let c=[];if(Xx("0x46")==n[Xx("0x43")]){const t=r[Xx("0x41")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x2a")](t)[Xx("0x32")]((t=>t.cell))}else{const t=r[Xx("0x41")](s,{column:x,includeAllSlots:!0});c=Array[Xx("0x2a")](t)[Xx("0x32")]((t=>t.cell))}t.model[Xx("0x25")]((t=>{o[Xx("0x33")](t[Xx("0x5")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[Xx("0x22")][Xx("0x26")]((t=>{if(Xx("0x36")!=t[Xx("0x1d")]&&Xx("0x4c")!=t.type)return;const{data:e}=t;return e&&Xx("0x18")==e[Xx("0x44")]?{type:Xx("0x6"),content:Qo(n,"*Merge cells*")}:void 0})),o[Xx("0x22")][Xx("0x26")]((t=>{if(Xx("0x36")!=t[Xx("0x1d")]&&Xx("0x4c")!=t[Xx("0x1d")])return;const{data:e}=t;return e?Xx("0x45")==e[Xx("0x44")]?{type:Xx("0x6"),content:Qo(n,Xx("0x12"))}:Xx("0x4")==e[Xx("0x44")]?{type:Xx("0x6"),content:Qo(n,Xx("0x3e"))}:void 0:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[Xx("0x1f"),"mergeTableCellRight",Xx("0x31"),Xx("0x42")])o._suggestionFactory[Xx("0x3a")](Xx("0x36"),t,Xx("0x28"),x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[Xx("0x1a")][Xx("0x3a")](Xx("0x36"),t,Xx("0x28"),x);o._suggestionFactory[Xx("0x3a")](Xx("0x36"),Xx("0x18"),"accept",(n=>{t[Xx("0x3f")][Xx("0x25")]((o=>{const r=Array[Xx("0x2a")](e[Xx("0x16")]()).map((t=>s.LiveRange[Xx("0x2b")](t)));o[Xx("0x2f")](n),t.commands.get("mergeTableCells")[Xx("0x13")](),t[Xx("0x37")](Xx("0x18"),{forceDefaultExecution:!0});const i=r.filter((t=>Xx("0x3c")!=t.root[Xx("0x10")]));i[Xx("0x35")]>0&&o[Xx("0x2f")](i);for(const t of r)t[Xx("0x2d")]()}))}));for(const e of["mergeTableCellUp",Xx("0x31"),Xx("0x42"),Xx("0x34")]){const n=t[Xx("0x4a")][Xx("0x2c")](e);n.on(Xx("0x24"),((e,o,r)=>{if(r){const o=t.model[Xx("0x1e")][Xx("0x38")][Xx("0x19")]()[Xx("0x2e")]()[Xx("0x0")]((t=>t.is(Xx("0x39"),"tableCell")));this._areMergableCells(n[Xx("0x47")],o)||(e[Xx("0x9")]=!1,e[Xx("0xb")]())}}),{priority:Xx("0x8")})}}[Xx("0x1")](){const t=this[Xx("0x20")].commands[Xx("0x2c")](Xx("0x18")),e=this[Xx("0x20")][Xx("0x3d")].get("TableUtils");if(!t.isEnabled)return!1;const n=e[Xx("0x14")](this[Xx("0x20")].model[Xx("0x1e")][Xx("0x38")]);for(const t of n)for(const e of n)if(t!=e&&!this[Xx("0x11")](t,e))return!1;return!0}[Xx("0x11")](t,e){const n=this.editor[Xx("0x3d")][Xx("0x2c")]("TrackChangesEditing"),o=this[Xx("0x20")].model[Xx("0x5")](t),r=this.editor[Xx("0x3f")][Xx("0x5")](e),i=new Set,s=new Set;for(const t of n[Xx("0xd")]())if((Xx("0x40")==t[Xx("0x1d")]||Xx("0x21")==t[Xx("0x1d")]||Xx("0x18")==t[Xx("0x23")])&&t.isInContent)for(const e of t[Xx("0x16")]())e[Xx("0x3b")](o,!0)&&i.add(t[Xx("0x1d")]+":"+t[Xx("0x17")].id),e[Xx("0x3b")](r,!0)&&s[Xx("0x30")](t.type+":"+t.author.id);if(i[Xx("0x49")]!=s.size)return!1;for(const t of i)if(!s[Xx("0xf")](t))return!1;return!0}}const Yx=["createTableWalker","end","_splitMarkerName","accept","activeMarkers","commandName","mapper","commandParams","FORMAT_HEADER_COLUMN","FORMAT_HEADER_ROW","plugins","_suggestionFactory","get","addMarker:suggestion","consumable","name","downcastDispatcher","forceValue","requires","editing","markerName","TableEditing","unbindElementFromMarkerName","editor","getSuggestion","has","ck-suggestion-marker--active","ck-suggestion-marker-","format","_descriptionFactory","removeMarker:suggestion","_registerLegacyDescription","getCellLocation","showSuggestionHighlights","formatBlock","nodeAfter","_enableDefaultAttributesIntegration","cell","markerRange","includes","setTableColumnHeader","removeClass","headingColumns","removeAttribute","writer","TableUtils","setTableRowHeader","registerAttributeLabel","TrackChangesEditing","locale","bindElementToMarker","_handleLegacySuggestions","options","highest","parent","_acceptFormatSuggestionCallbackFactory","type","addClass","data","consume","setAttribute","start","registerCustomCallback","markerNameToElements","nodeBefore"];var Jx,Qx;Jx=Yx,Qx=215,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x3f")](){return[zx]}afterInit(){const t=this.editor;if(!t[ta("0x37")][ta("0x5")](ta("0x1")))return;const e=t[ta("0x1d")],n=t[ta("0x37")].get(ta("0x1c"));n[ta("0x10")]("setTableRowHeader",[],["headingRows"]),n[ta("0x10")](ta("0x14"),[],[ta("0x16")]),n[ta("0x9")][ta("0x1b")]("headingRows",Qo(e,ta("0x36"))),n[ta("0x9")][ta("0x1b")]("headingColumns",Qo(e,ta("0x35"))),this[ta("0x1f")]()}[ta("0x1f")](){const t=this[ta("0x3")][ta("0x37")][ta("0x39")](ta("0x1c")),e=this.editor.plugins[ta("0x39")](ta("0x19")),n=this.editor[ta("0x37")][ta("0x39")](zx)[ta("0x23")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t._splitMarkerName(i[ta("0x0")]),c=t.getSuggestion(a),l=c.data;if(ta("0xe")!=c.type||!l||ta("0x14")!=l[ta("0x32")])return;if(i.item)return void r.stop();if(!s[ta("0x3b")][ta("0x27")](i[ta("0x12")],r[ta("0x3c")]))return;const u=i[ta("0x12")][ta("0x29")][ta("0xf")],d=i[ta("0x12")][ta("0x2e")][ta("0x2c")],g=u.parent[ta("0x22")],{column:f}=e[ta("0xc")](u),{column:m}=e[ta("0xc")](d);for(let r=f;r<=m;r++){const c=e[ta("0x2d")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[ta("0x11")],c=s[ta("0x33")].toViewElement(r);s.writer[ta("0x25")](ta("0x7")+x,c),o&&s.writer[ta("0x28")]("data-suggestion",a,c),s.mapper[ta("0x1e")](c,i[ta("0x0")]),n&&(t[ta("0x31")][ta("0x13")](i[ta("0x0")])?s[ta("0x18")][ta("0x25")]("ck-suggestion-marker--active",c):s.writer.removeClass(ta("0x6"),c))}}}}t._suggestionFactory[ta("0x2a")](ta("0xe"),ta("0x1a"),ta("0x30"),n),t[ta("0x38")][ta("0x2a")](ta("0xe"),ta("0x14"),ta("0x30"),n),this[ta("0x3")][ta("0x40")][ta("0x3d")].on(ta("0x3a"),o(),{priority:ta("0x21")}),this.editor[ta("0x26")][ta("0x3d")].on(ta("0x3a"),((t,e,n)=>{n[ta("0x20")][ta("0xd")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x21")}),this[ta("0x3")].editing[ta("0x3d")].on(ta("0xa"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x2f")](n[ta("0x0")]),s=t[ta("0x4")](i),x=s[ta("0x26")];if(ta("0xe")!=s[ta("0x24")]||!x||ta("0x14")!=x[ta("0x32")])return;const a=o.mapper[ta("0x2b")](n[ta("0x0")]);if(a)for(const t of a)o[ta("0x18")][ta("0x15")](ta("0x7")+r,t),o[ta("0x18")][ta("0x15")]("ck-suggestion-marker--active",t),o[ta("0x18")][ta("0x17")]("data-suggestion",t),o[ta("0x33")][ta("0x2")](t,n[ta("0x0")])}),{priority:"highest"}),this[ta("0xb")]()}[ta("0xb")](){const t=this.editor,e=t[ta("0x1d")];function n(t){return{type:ta("0x8"),content:Qo(e,"*Format:* %0",t)}}t.plugins.get(ta("0x1c"))._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[ta("0x24")])return;const{data:o}=t;if(o){if(ta("0x1a")==o[ta("0x32")]){const t=o[ta("0x34")][0].forceValue;return n(Qo(e,t?ta("0x36"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==o.commandName){const t=o[ta("0x34")][0][ta("0x3e")];return n(Qo(e,t?ta("0x35"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["isEmpty","first","push","registerCustomCallback","wrap","change","tablePasteCell","_descriptionFactory","suggestionLoaded","createRangeIn","for","trackChanges","getSuggestions","schema","return","markMultiRangeInsertion","markerAttributes","low","getTableIfOnlyTableInContent","nodeAfter","get","_tablePostFixingSubtypes","remove","tableCellVerticalAlignment","_createdBatches","elementToElement","hasSuggestion","_getCoordsForCells","tableCellBorderColor","createTableWalker","add","tablePasteColumn","createRange","join","columnInsertionRanges","rowInsertionIndexes","Users","markerName","insertRows","tableCellBackgroundColor","tableCellBorderStyle","registerPostFixer","differ","TableClipboard","insertColumns","end","content","columns","tablePasteChainId","length","formatBlock","tableCellSuggestion","unwrap","editor","tablePasteRow","removeColumns","redo","nextSibling","getChanges","element","subType","fromEntries","previous","fill","getChangedMarkers","afterInit","getRowIndexes","getContainedElement","set","rowInsertionRanges","_suggestionFactory","startsWith","createRangeOn","conversion","rows","cells","deletion","insert","tableCell","from","_replaceTableSlotCell","insertContent","suggestion","markers","containsRange","setAttributes","tableCellPadding","findAncestor","paragraph","ck-suggestion-marker-insertion","insertion","getColumnIndexes","plugins","registerDescriptionCallback","getAttributes","suggestion-td","isEqual","batch","getShiftedBy","*Replace table cells*","TableUtils","move","getSuggestionCallback","name","rootName","locale","markerToHighlight","tablePaste","entries","$graveyard","getMarkers","author","suggestion:formatBlock:tablePasteCell","position","endColumn","createPositionBefore","showSuggestionHighlights","includes","getRange","removeMarker","isInContent","filter","has","TrackChangesEditing","removeRows","_splitMarkerName","documentSelection","model","forceDefaultExecution","markMultiRangeBlockFormat","getChildren","cell","editing","columnInsertionIndexes","document","discard","getAllAdjacentSuggestions","createElement","oldRange","commands","getColumns","type","editingDowncast","start","endRow","table","getRows","getSelectionAffectedTableCells","getSuggestion","newRange","map","high","column","attributes","next","getRanges","removeMarkers","row","ck-suggestion-marker--active","reduce","find","getChild","clipboardOutput"];var oa,ra;oa=na,ra=348,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x6"),ia("0x12"),"tableCellHorizontalAlignment",ia("0x1"),ia("0x11"),ia("0x40")],xa=Object.fromEntries(sa[ia("0x80")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ia("0x2b")](){const t=this[ia("0x1f")];if(!t[ia("0x46")].has(ia("0x15")))return;const n=t[ia("0x46")][ia("0xa1")](ia("0x65")),o=t[ia("0x46")][ia("0xa1")](ia("0x4e")),r=t[ia("0x46")].get(zx),i=t[ia("0x46")].get("TableClipboard");r[ia("0xa2")][ia("0x8f")]("tablePasteRow",ia("0x9")),t[ia("0x69")][ia("0x9a")].register("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:ia("0x38"),isLimit:!0}),t.conversion[ia("0x3")]({model:"tableCellSuggestion",view:ia("0x49")});let s=null;t[ia("0x69")].on(ia("0x3b"),((r,x)=>{const[a,c]=x,l=x[x[ia("0x1b")]-1];l&&l[ia("0x6a")]||n._isForcedDefaultExecutionBlock||this.editor[ia("0x75")][ia("0xa1")](ia("0x98")).value&&function(t,e,n,o,r){if(e&&!e.is(ia("0x68")))return!1;const i=r[ia("0x9f")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x7d")](n[ia("0x70")].selection);if(!s.length)return!1;const x=s[0][ia("0x41")](ia("0x7b")),a=o[ia("0x2c")](s),c=o[ia("0x45")](s),l={startRow:a[ia("0x8e")],endRow:a.last,startColumn:c[ia("0x8e")],endColumn:c.last};return 1==s[ia("0x1b")]&&(l[ia("0x7a")]+=o[ia("0x7c")](i)-1,l[ia("0x5c")]+=o[ia("0x76")](i)-1),la(x,l,o)}(a,c,t.model,o,i)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ia("0x92")]((()=>{t[ia("0x69")][ia("0x3b")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r.length&&n.markMultiRangeInsertion(r,ia("0x20"),{tablePasteChainId:o}),i.length&&n[ia("0x9c")](i,ia("0x9"),{tablePasteChainId:o}),a[ia("0x1b")]&&n[ia("0x9c")](a,ia("0x55"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x1b")]&&n.markMultiRangeDeletion(c,ia("0x55"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ia("0x6b")](l[ia("0x80")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x93"),{tablePasteChainId:o});if(u){const e=u[ia("0x58")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x69")][ia("0x32")](o),s=e[ia("0x8a")]((t=>t[ia("0x60")]()[ia("0x4a")](i)));s&&n[ia("0x8f")]([s.name,r])}n[ia("0x1b")]&&u.setAttribute(ia("0x9d"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x81")]+10}),t[ia("0x46")][ia("0xa1")](ia("0x15")).on(ia("0x3a"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t.stop();const i=n[ia("0x6d")],x=o,a=ca(i),c=ca(x);t[ia("0x9b")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x0")](i[ia("0x8b")](0));for(const t of Array[ia("0x39")](x[ia("0x6c")]()))r[ia("0x37")](t,i,"end");const t=s[ia("0xd")][ia("0x5f")](n[ia("0x87")]),e=s[ia("0x6f")][ia("0x5f")](n[ia("0x82")]);t||e||(l=r[ia("0x96")](i))}else c&&!a&&(u=r[ia("0x96")](i));else{const t=r[ia("0x73")]("tableCellSuggestion"),e=r.createElement(ia("0x1d"));r[ia("0x91")](r.createRangeIn(i),e),r.insert(t,i,0);for(const e of Array[ia("0x39")](x[ia("0x6c")]()))r[ia("0x37")](e,t,ia("0x17"));l=r[ia("0x32")](t),u=r.createRangeOn(e)}const d=Array[ia("0x39")](x[ia("0x48")]()).filter((([t])=>sa[ia("0x5f")](t)));s[ia("0x35")][ia("0x8f")]({element:i,attributes:d[ia("0x1b")]?Object[ia("0x27")](d):null}),l&&s.insertionRanges[ia("0x8f")](l),u&&s.deletionRanges[ia("0x8f")](u)}),{priority:ia("0x81")}),o.on(ia("0x16"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x19")]||1;s[ia("0x6f")]=new Array(a)[ia("0x29")](x)[ia("0x80")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ia("0xc")].push(t.model[ia("0x32")](e))}),{priority:"low"}),o.on(ia("0x10"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x34")]||1;s[ia("0xd")]=new Array(a)[ia("0x29")](x)[ia("0x80")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))s[ia("0x2f")][ia("0x8f")](t[ia("0x69")][ia("0x32")](e))}),{priority:ia("0x9e")}),n[ia("0x94")][ia("0x47")]((e=>{if(e.subType&&e[ia("0x26")][ia("0x31")](ia("0x55")))return e[ia("0x28")]?{}:{type:ia("0x44"),content:Qo(t[ia("0x53")],ia("0x4d"))}}));const x=()=>!1;for(const t of["tablePaste",ia("0x9"),ia("0x20"),ia("0x93")])n[ia("0x30")][ia("0x90")](ia("0x44"),t,ia("0xb"),x),n[ia("0x30")][ia("0x90")](ia("0x36"),t,ia("0xb"),x),n[ia("0x30")].registerCustomCallback("formatBlock",t,"join",x);n._suggestionFactory.registerCustomCallback("formatBlock",ia("0x93"),ia("0x71"),x),n[ia("0x30")].registerCustomCallback(ia("0x1c"),"tablePasteCell","accept",((e,n,o)=>{const r=e[ia("0x80")]((t=>t[ia("0x2d")]()))[ia("0x63")]((t=>t)),i=new Map(r[ia("0x80")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x35")])e&&i[ia("0x2e")](t,e);else if(o&&o[ia("0x9d")])for(const[e,n]of Object[ia("0x56")](o[ia("0x9d")])){const o=t[ia("0x69")][ia("0x3d")][ia("0xa1")](e),r=o?o[ia("0x60")]()[ia("0x2d")]():null;r&&i.set(r,n)}t[ia("0x69")][ia("0x92")]((t=>{for(const[e,n]of i)t[ia("0x3f")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x30")][ia("0x90")](e,ia("0x55"),o,((r,i,s)=>{t[ia("0x69")][ia("0x92")]((t=>{const x=[];for(const t of r){const e=t[ia("0x79")][ia("0xa0")];e.is(ia("0x25"),ia("0x1d"))&&x[ia("0x8f")](e)}n[ia("0x30")][ia("0x50")](e,null,o)(r,i,s);for(const e of x)ia("0x57")!=e.root[ia("0x52")]&&t[ia("0x1e")](e)}))}))};a(ia("0x44"),"accept"),a(ia("0x44"),ia("0x71")),a(ia("0x36"),"accept"),a(ia("0x36"),"discard"),n[ia("0x30")][ia("0x90")](ia("0x44"),ia("0x20"),ia("0x71"),(t=>{const e=t[ia("0x80")]((t=>t[ia("0x2d")]())),n=e[0].findAncestor("table"),{minRow:i,maxRow:s}=r[ia("0x5")](e);o[ia("0x66")](n,{at:i,rows:s-i+1})})),n[ia("0x30")][ia("0x90")](ia("0x44"),ia("0x9"),ia("0x71"),(t=>{const e=t.map((t=>t[ia("0x2d")]())),n=e[0][ia("0x41")](ia("0x7b")),{minColumn:i,maxColumn:s}=r._getCoordsForCells(e);o[ia("0x21")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x26")]||!e[ia("0x26")][ia("0x31")](ia("0x55")))return;const o=e[ia("0x83")].tablePasteChainId,r=n[ia("0x99")]().filter((t=>t[ia("0x62")]&&t.attributes&&t[ia("0x83")][ia("0x1a")]==o));r[ia("0x1b")]&&e.getAllAdjacentSuggestions().length!=r[ia("0x1b")]&&r[ia("0x89")](((t,e)=>(t[ia("0x84")]=e,e[ia("0x28")]=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0x67")](t[ia("0xf")]),r=["ck-suggestion-marker",ia("0x43")],i=n.activeMarkers[ia("0x5f")](t[ia("0xf")]);return i&&r[ia("0x8f")](ia("0x88")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x95"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ia("0x81")}),t.model[ia("0x70")][ia("0x13")]((()=>{let e=!1;const o=Array.from(t[ia("0x69")][ia("0x70")].differ.getChangedMarkers());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n._splitMarkerName(r);if("suggestion"!=o||"deletion"!=s||i[ia("0x74")])continue;if(!n[ia("0x4")](x))continue;const a=n[ia("0x7e")](x)[ia("0x85")](),c=t[ia("0x46")][ia("0xa1")](ia("0xe")).me;for(const t of n[ia("0x99")]())if(t.isInContent&&t[ia("0x59")]==c&&ia("0x1c")==t[ia("0x77")]&&ia("0x93")==t[ia("0x26")]&&t[ia("0x85")]().every((t=>a.some((e=>e[ia("0x3e")](t,!0))))))for(const n of t[ia("0x72")]())n[ia("0x62")]&&(n[ia("0x71")](),e=!0)}return e})),t.model.document[ia("0x13")]((e=>{const o=t[ia("0x75")][ia("0xa1")](ia("0x22"));if(!o||!o[ia("0x2")][ia("0x64")](e[ia("0x4b")]))return!1;let r=!1;const i=t[ia("0x46")][ia("0xa1")](ia("0xe")).me,s=t.model[ia("0x70")][ia("0x14")][ia("0x24")](),x=Array[ia("0x39")](t.model[ia("0x70")].differ[ia("0x2a")]())[ia("0x63")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x67")](t);return ia("0x3c")==o&&ia("0x55")==r&&s==i.id&&!e[ia("0x74")]}));for(const t of s){if("insert"!=t[ia("0x77")]||"tableCellSuggestion"!=t[ia("0x51")]||1!=t[ia("0x1b")])continue;const n=e[ia("0xa")](t[ia("0x5b")],t[ia("0x5b")][ia("0x4c")](1));if(!x[ia("0x8a")]((({data:t})=>t.newRange[ia("0x4a")](n))))for(const{name:t,data:o}of x)if(n[ia("0x3e")](o[ia("0x7f")])){e.updateMarker(t,{range:n}),r=!0;break}}return r})),t.model[ia("0x70")][ia("0x13")]((e=>{let o=!1;const r=t.plugins[ia("0xa1")](ia("0xe")).me,i=n[ia("0x99")]()[ia("0x63")]((t=>t[ia("0x62")]&&t[ia("0x59")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x55")==t.subType)for(const e of t[ia("0x58")]()){const n=e[ia("0x60")]()[ia("0x2d")]();if(n)if(n.is("element","tableCellSuggestion")&&ca(n)){t[ia("0x61")](e[ia("0x51")]),s[ia("0x8")](n),o=!0;const r=n[ia("0x23")],i=n.previousSibling,a=r&&r.is("element","tableCellSuggestion"),c=i&&i.is(ia("0x25"),ia("0x1d"));a&&!s[ia("0x64")](r)&&x[ia("0x8")](r),c&&!s[ia("0x64")](i)&&x.add(i)}else n.is("element","paragraph")&&n[ia("0x8d")]&&(t[ia("0x61")](e[ia("0x51")]),o=!0)}else if(ia("0x93")==t.subType){if(!t[ia("0x83")]||!t[ia("0x83")][ia("0x1a")])continue;const e=t.attributes.markerAttributes;if(e&&Object.keys(e)[ia("0x1b")])continue;const n=t[ia("0x83")][ia("0x1a")];let r=!0,s=!0;for(const e of i)if(e[ia("0x26")]&&e[ia("0x26")].startsWith(ia("0x55"))){if(!e[ia("0x83")][ia("0x1a")]){s=!1;break}if(e.id!=t.id&&e[ia("0x83")][ia("0x1a")]==n){r=!1;break}}s&&r&&(t[ia("0x86")](),o=!0)}for(const t of s)e[ia("0x0")](t);for(const t of x)e[ia("0x1e")](t);return o})),t[ia("0x33")][ia("0x97")](ia("0x78"))[ia("0x54")]({model:ia("0x5a"),view:(t,e)=>l(t),converterPriority:ia("0x81")}),t[ia("0x33")].for("dataDowncast")[ia("0x54")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[ia("0x5e")]?l(t,!1):null,converterPriority:ia("0x81")});const u=t[ia("0x6e")].view;this.listenTo(u[ia("0x70")],ia("0x8c"),((t,e)=>{const n=[];for(const t of u[ia("0x96")](e[ia("0x18")]).getItems())t.is(ia("0x25"),ia("0x49"))&&n[ia("0x8f")](t);u[ia("0x92")]((t=>{for(const e of n)t[ia("0x4f")](t[ia("0x96")](e),t[ia("0x5d")](e)),t.remove(e)}))}))}}function ca(t){if(t[ia("0x8d")])return!0;const e=t[ia("0x8b")](0);return e.is(ia("0x25"),ia("0x42"))&&e[ia("0x8d")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x7")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["handleSuggestionDescription","change","document","editor","author","formatInline","get","getAttribute","table","TableColumnResizeEditing","enableCommand","markBlockFormat","has","data","plugins","getSelectedElement","Users","_descriptionFactory","registerDescriptionCallback","_suggestionFactory","TrackChangesEditing","afterInit","commandParams","columnWidths","registerCustomCallback","getSuggestions","resizeTableWidth","getSuggestionCallback","type","subType","discard","resizeTable","formatGroupId","format","formatBlock","*Format:* resize table","tableWidth","accept","handleResizeTableWidthCommand","getTableColumnsWidths","bind"];var da,ga;da=ua,ga=118,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x1a")](){if(!this[fa("0x8")][fa("0x13")][fa("0x11")](fa("0xe")))return;const t=this[fa("0x8")].plugins[fa("0xb")](fa("0x19"));t[fa("0xf")](fa("0x1f"),this.handleResizeTableWidthCommand[fa("0x4")](this)),t._suggestionFactory[fa("0x1d")](fa("0x27"),fa("0x24"),"accept",t[fa("0x18")][fa("0x20")](fa("0x27"),null,fa("0x23"))),t[fa("0x18")][fa("0x1d")](fa("0x27"),fa("0x24"),fa("0x23"),t[fa("0x18")][fa("0x20")](fa("0x27"),null,fa("0x1"))),t[fa("0x16")][fa("0x17")](this[fa("0x5")][fa("0x4")](this))}[fa("0x2")](t,e){const n=this[fa("0x8")].plugins[fa("0xb")](fa("0x19")),o=this.editor[fa("0x13")][fa("0xb")]("TableColumnResizeEditing"),r=e[fa("0xd")]||this[fa("0x8")].model[fa("0x7")].selection[fa("0x14")]();this.editor.model[fa("0x6")]((()=>{const i=o.getColumnGroupElement(r);let s=i?o[fa("0x3")](i):null,x=r[fa("0xc")](fa("0x0"))||null;const a=e[fa("0x0")]||x,c=e[fa("0x1c")]||s,l=this[fa("0x8")][fa("0x13")].get(fa("0x15")).me;for(const t of n[fa("0x1e")]()){const e=t.getContainedElement();if(fa("0x24")===t[fa("0x22")]&&e===r){t[fa("0x9")]!==l&&t[fa("0x23")]();const e=t[fa("0x12")][fa("0x1b")];x=e[0].tableWidth,s=e[0][fa("0x1c")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x10")](r,{commandName:fa("0x1f"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x24")},[],fa("0x24"))}))}[fa("0x5")](t){if(fa("0x27")!=t[fa("0x21")]&&fa("0xa")!=t[fa("0x21")])return;const{data:e}=t;if(e&&fa("0x24")===e[fa("0x25")]){const t=fa("0x28");return{type:fa("0x26"),content:Qo(this[fa("0x8")].locale,t)}}}}const ha=["enableCommand","TrackChangesEditing","plugins","has"];var pa,ba;pa=ha,ba=294,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{afterInit(){const t=this.editor;t[Ea("0x0")][Ea("0x1")]("Template")&&t[Ea("0x0")].get(Ea("0x3"))[Ea("0x2")]("insertTemplate")}}const Ta=["plugins","_descriptionFactory","registerElementLabel","insertTableOfContents","editor","ELEMENT_TABLE_OF_CONTENTS","enableCommand","TrackChangesEditing","tableOfContents","get","locale"];var ya,Ca;ya=Ta,Ca=308,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[Aa("0x4")];if(!t.commands[Aa("0x9")](Aa("0x3")))return;t[Aa("0x0")][Aa("0x9")](Aa("0x7"))[Aa("0x6")](Aa("0x3"));const e=t[Aa("0x0")][Aa("0x9")](Aa("0x7")),n=t[Aa("0xa")];e[Aa("0x1")][Aa("0x2")](Aa("0x8"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["newRange","plugins","updateMarker","ELEMENT_TITLE","element","registerPostFixer","get","title-content","locale","TrackChangesEditing","nodeBefore","suggestion","isCollapsed","forward","from","_descriptionFactory","editor","getChangedMarkers","_splitMarkerName","schema","end","getNearestSelectionRange","differ","removeMarker","isTouching","start","isEqual","Title","model","afterInit","document"];var Sa,Ra;Sa=Ia,Ra=378,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x17")](){const t=this[va("0xa")];if(!t[va("0x1a")].has(va("0x15")))return;const e=t[va("0x1a")][va("0x0")](va("0x3"));e[va("0x9")].registerElementLabel(va("0x1"),(()=>Qo(t[va("0x2")],va("0x1c")))),t.model[va("0x18")][va("0x1e")]((n=>{let o=!1;const r=Array[va("0x8")](t[va("0x16")].document[va("0x10")][va("0xb")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0xc")](i);if(va("0x5")!==r||!s[va("0x19")])continue;const x=s.newRange,a=x[va("0xe")][va("0x4")];if(!a||!a.is(va("0x1d"),va("0x1")))continue;if(!x[va("0x13")][va("0x12")](x[va("0xe")]))continue;const c=t[va("0x16")][va("0xd")][va("0xf")](x.end,va("0x7"));if(c&&c[va("0x6")]){const t=n.createRange(x.start,c[va("0x13")]);t[va("0x14")](x)||(n[va("0x1b")](i,{range:t}),o=!0)}o||(n[va("0x11")](i),o=!0)}return o}))}}const La=["TrackChangesEditing","redo","editor","plugins","get","UndoEditing","afterInit"];var Ma,wa;Ma=La,wa=499,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x4")](){const t=this[Oa("0x0")],e=t[Oa("0x1")][Oa("0x2")](Oa("0x5"));t[Oa("0x1")].has(Oa("0x3"))&&(e.enableCommand("undo"),e.enableCommand(Oa("0x6")))}}const Da=["get","enableCommand","requires","plugins","has","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=105,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}afterInit(){const t=this.editor;t[Ua("0x0")][Ua("0x1")]("TableCaptionEditing")&&t[Ua("0x0")][Ua("0x3")](Ua("0x2"))[Ua("0x4")]("toggleTableCaption")}}const Ga=["_handlePropertyChange","tableCellBackgroundColor","join","batch","tableHeight","enableCommand","tableCellHeight","getFirstPosition","TrackChangesTableProperties","formatBlock","document","tableCellBorderColor","handleDiscardAction","nodeAfter","tableProperties","discard","*Format:* change table cell properties","TrackChangesEditing","table","tableWidth","findAncestor","tableCellPadding","markBlockFormat","getSuggestionCallback","tableCellVerticalAlignment","subType","_getSuggestion","afterInit","get","registerCustomCallback","tableAlignment","getSelectionAffectedTableCells","editor","commandParams","_suggestionFactory","tableBorderWidth","tableBorderStyle","getContainedElement","format","locale","TablePropertiesEditing","change","handleSuggestionDescription","TableCellPropertiesEditing","tableCellProperties","enqueueChange","data","tableCellBorderStyle","plugins","*Format:* change table properties","registerDescriptionCallback","tableCellHorizontalAlignment","pluginName","selection","_descriptionFactory","has","model","setAttribute","accept"];var Va,Ha;Va=Ga,Ha=403,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=["tableBorderColor",za("0x2e"),za("0x2d"),za("0x28"),za("0x1d"),za("0xe"),"tableBackgroundColor"],this[za("0x36")]=[za("0x15"),za("0x39"),"tableCellBorderWidth",za("0x1f"),"tableCellWidth",za("0x10"),za("0xb"),za("0x2"),za("0x22")]}static get[za("0x3")](){return za("0x12")}[za("0x25")](){const t=this[za("0x2a")].plugins[za("0x26")](za("0x1b"));if(this[za("0x2a")][za("0x3a")].has(za("0x32"))){for(const e of this[za("0x18")])t.enableCommand(e,((t,n)=>{const o=this[za("0x2a")][za("0x7")][za("0x14")][za("0x4")][za("0x11")]()[za("0x1e")](za("0x1c"));this[za("0xa")](e,[o],this.tableProperties,za("0x18"),t,n)}));t._suggestionFactory[za("0x27")]("formatBlock",za("0x18"),"accept",t._suggestionFactory.getSuggestionCallback(za("0x13"),null,za("0x19"))),t[za("0x2c")].registerCustomCallback(za("0x13"),"tableProperties",za("0x19"),((t,e)=>this.handleDiscardAction(this[za("0x18")],t,e))),t._suggestionFactory[za("0x27")]("formatBlock",za("0x18"),za("0xc"),(()=>!1))}if(this[za("0x2a")].plugins[za("0x6")](za("0x35"))){for(const e of this[za("0x36")])t[za("0xf")](e,((t,n)=>{const o=this[za("0x2a")].plugins[za("0x26")]("TableUtils")[za("0x29")](this.editor[za("0x7")].document[za("0x4")]);this[za("0xa")](e,o,this.tableCellProperties,za("0x36"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x13"),za("0x36"),za("0x9"),t._suggestionFactory[za("0x21")](za("0x13"),null,za("0x19"))),t[za("0x2c")].registerCustomCallback(za("0x13"),za("0x36"),za("0x19"),((t,e)=>this[za("0x16")](this[za("0x36")],t,e))),t[za("0x2c")][za("0x27")](za("0x13"),"tableCellProperties","join",(()=>!1))}t[za("0x5")][za("0x1")]((t=>this[za("0x34")](t)))}[za("0xa")](t,e,n,o,r,i){const s=this.editor[za("0x3a")][za("0x26")](za("0x1b"));this.editor[za("0x7")][za("0x37")](i[za("0xd")],(()=>{for(const t of e)if(this._getSuggestion(t,o))r(i);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(i),s[za("0x20")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0x17")],r=n[za("0x2b")][0];this[za("0x2a")][za("0x7")][za("0x33")]((e=>{for(const n of t)void 0!==r[n]?e[za("0x8")](n,r[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[za("0x38")])switch(t.subType){case za("0x18"):return{type:"format",content:Qo(this[za("0x2a")][za("0x31")],za("0x0"))};case"tableCellProperties":return{type:za("0x30"),content:Qo(this[za("0x2a")][za("0x31")],za("0x1a"))}}}[za("0x24")](t,e){const n=this[za("0x2a")][za("0x3a")][za("0x26")](za("0x1b"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x2f")]();if(o[za("0x23")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["$textProxy","deletion:accept","splice","comments","unbind","_addSuggestionMarker","_getSuggestionData","length","createElement","_descriptionFactory","getAllAdjacentSuggestions","keys","isAtEnd","dataDowncast","formatInline:discard","range","author","formatBlock:chain","forceDefaultExecution","elementToElement","deletion","createPositionBefore","default","targetPosition","then","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.","PENDING_ACTION_SUGGESTION","data-suggestion","bindElementToMarker","formatInline:join","set","markerName","isDocumentOperation","removeClass","isUndo","createRange","FORMATTING","formatBlock","formatInline:","getSuggestions","change","some","_blockAttributeKeys","getUser","getChangedMarkers","getWalker","toViewElement","head","suggestion-type","removeMarkers","acceptAllSuggestions","commentThread","schema","commands","upcast","filter","fromRange","nodeAfter","ck-suggestion-marker-formatBlock","getCustomProperty","rethrowUnexpectedError","markInlineFormat","execute","insertion:chain","_editor","add","includes","newRange","$elementName","containsRange","authoredAt","requires","accepted","containsPosition","_isDataLoaded","startsWith","enableReadOnlyMode","isSelectable","config","enqueueChange","ck-suggestion-marker-","markAttributeChange","move","PendingActions","next","_saved","suggestionChanged","multi","_reduceSuggestionAttributeRange","parent","createPositionAfter","consumable","define","insertContent","subType","trackChangesCommand","getDifference","markerToData","_onDiscard","getCommentThread","formatGroupId","deletion:chain","markers","skipNestingCheck","attribute:discard","registerCustomCallback","acceptSuggestion","chain","addMarkerName","setAttribute","setTo","_enabledCommands","howMany","isObject","updateMarker","low","insertion:join","options","nodeBefore","key","getRanges","_splitMarkerName","newValue","rename","enableCommand","return","_processAttributeChanges","join","detach","getChanges","containsItem","buildSuggestion","isLimit","ENTER","applyOperation","toJSON","clear","has","creator","highest","notReady","marker-count","suggestion:attribute:","get","isAfter","_registerDefaultCallbacks","batch","position","_refreshSuggestionsChain","fire","createPositionAt","track-changes-user-not-found","getAttribute","_isForcedDefaultExecutionBlock","hasComments","attribute:","oldName","attributes","getNearestSelectionRange","formatInline:accept","_adapter","ck-suggestion-marker--active","_handleNewSuggestionMarker","from","_reduceExistingSuggestions","attribute","CommentsRepository","suggestionUnloaded","_setSuggestionRange","rejected","track-changes-suggestion-data-mismatch","addComment","error-saving-suggestion-data-suggestion-discarded","authorName","adapter","getRange","insert","format","catch","updateSuggestion","getShiftedBy","activeMarkers","attribute:join","formatBlock:accept","type","formatInline","groupId","unbindElementFromMarkerName","getSuggestion","external:","markerNameToElements","isInContent","_removeSuggestion","getLastMatchingPosition","_model","_addThreadToSuggestion","markInsertion","elementEnd","_registerBlockAttribute","end","values","removed","Users","discardSuggestion","change:_saved","writer","addAttribute","newName","_suggestions","_trackFormatChanges","_findSuggestions","documentSelection","attributeOldValue","delete","pluginName","lowest","stop","createSelection","consume","track-changes-suggestion-not-found","backward","containerElement","pop","_createSuggestion","discard","addMarker:suggestion:formatBlock","collaboration.channelId","previous","@external","differ","deletion:join","removeMarker","$text","getAncestors","insertion:discard","split","push","for","before","version","oldRange","suggestion","find","locale","open","_recordAttributeChanges","removeMarker:suggestion:formatBlock","reconvertMarker","isTouching","multipleBlocks","$graveyard","addHighlight","deleteContent","splitPosition","_getAuthorFromId","editor","_refreshAttributeSuggestionsChain","deletion:discard","fromCharCode","markBlockFormat","LEAVE","conversion","size","rootName","getIntersection","addMarker:suggestion:attribute","dataReady","createdAt","markerReady","substr","remove","tablePasteChainId","originalSuggestionId","ready","isExternal","markMultiRangeBlockFormat","listenTo","_mergeNestedSuggestions","insertion:","_joinSuggestions","removeAttribute","markMultiRangeDeletion","attribute:accept","_defaultCallbacks","_isBlockAttribute","normal","suggestionLoaded","isAtStart","addRange","name","isInsideObject","model","isBlock","containsRangeInObject","getSuggestionCallback","trackChanges.mergeNestedSuggestions","discardAllSuggestions","isLocal","_customCallbacks","track-changes-command-not-found","addUser","stopListening","addMarker","_setSuggestionData","mapper","oldValue","plugins","insertion:accept","forward","every","acceptSelectedSuggestions","isNextTo","_inlineAttributeKeys","_getExternalAuthor","changeAttribute","trackChanges","moveTargetPosition","toUpperCase","addSuggestionData","_processAttributeSuggestions","_commentsRepository","accept","forEach","refresh","isIntersecting","formatBlock:discard","_suggestionState","_updateSuggestionData","sort","addClass","isOwn","isCollapsed","_checkSuggestionCorrectness","data","isMultiRange","_SUGGESTION_ANNOUNCEMENT","ck-suggestion-marker","getContainedElement","insertion","trackChanges.trackFormatChanges","getFirstMarker","addCommentThread","high","formatInline:chain","setSelection","formatBlock:","root","never","registerPostFixer","_suggestionFactory","showSuggestionHighlights","attributeNewValue","dataToMarker","editingDowncast","getFirstRange","addSuggestion","_cutOutSuggestionMarker","assign","_recordAttributeSuggestionsFromVersion","warn","always","isIntersectingWithRange","after","start","commandName","_breakSuggestionMarker","value","getMultiRangeId","map","editing","announce","item","markerToHighlight","_joinWithAdjacentSuggestions","isBefore","hasSuggestion","deletion:","_getMarkerAnnouncementText","isEqual","_rangeIsInLocalUserInsertion","document","group","selection","suggestion:"];var dc,gc;dc=uc,gc=110,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc="$elementName";class hc extends t.Plugin{static get[fc("0x159")](){return["CommentsRepository",i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Si,Mi,Pi,Hi,$i,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x68")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String[fc("0x94")](t)))[fc("0x11")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0x130")](fc("0x47"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[fc("0x54")][fc("0x13a")]((()=>{for(const e of[...r,...o])this._model[fc("0x178")].has(e)&&t[fc("0x103")][fc("0x89")](e)}))})),this[fc("0x11b")]=new rr(this[fc("0x91")][fc("0xb5")][fc("0x146")],this[fc("0x91")][fc("0x85")]),this[fc("0x32")]=null,this._suggestionFactory=new pc(this[fc("0x91")]),this[fc("0x62")]=new Map,this._commentsRepository=t[fc("0xc4")][fc("0x21")](fc("0x38")),this[fc("0x1")]=new Set,this[fc("0x54")]=this[fc("0x91")][fc("0xb5")],this[fc("0xd8")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[fc("0x13c")]=new Set(["$elementName"]),this[fc("0xca")]=new Set,t[fc("0x160")][fc("0x16e")]("trackChanges.trackFormatChanges",fc("0x128")),this[fc("0x63")]=t.config[fc("0x21")](fc("0xe5")),t[fc("0x160")].define(fc("0xb9"),!0),this[fc("0xa7")]=t.config[fc("0x21")]("trackChanges.mergeNestedSuggestions"),this[fc("0x171")]=new d(t,this[fc("0x1")]),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,54,50,52,51,52])}init(){const t=this[fc("0x91")],n=(t,e)=>{if(fc("0x37")!=t)return fc("0x162")+t;const n=e[fc("0x7d")]("|")[0];return this[fc("0xae")](n)?"ck-suggestion-marker-formatBlock":"ck-suggestion-marker-formatInline"};t[fc("0x97")][fc("0x7f")]("editingDowncast")[fc("0x106")]({model:fc("0x83"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0xb")](t[fc("0x131")]),i=[fc("0xe2"),n(o,r)];let s=3e3;return this.activeMarkers[fc("0x154")](t[fc("0x131")])&&(i[fc("0x7e")](fc("0x33")),s=3010),fc("0x126")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x97")].for(fc("0x11f"))[fc("0x153")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[fc("0xf0")])return;const r=n[fc("0x105")];if(!r)return;const i=o.mapper[fc("0x140")](r);t[fc("0xb5")][fc("0x146")][fc("0x3")](r)&&i&&!i[fc("0x14d")]("widget")&&i.is(fc("0x6f"))&&(0,x.toWidget)(i,o[fc("0x5f")])}),{priority:fc("0xe8")})})),t[fc("0x97")][fc("0x7f")](fc("0x11f"))[fc("0x106")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0x7")][fc("0xf0")])return null;const{type:o,subType:r}=this[fc("0xb")](t[fc("0x131")]);return{classes:["ck-suggestion-marker",n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x105")])return;const{id:s}=this._splitMarkerName(r[fc("0x131")]);if(n){const t=Rc(this[fc("0x62")][fc("0x21")](s));if(!this[fc("0xae")](t))return}if(r[fc("0x105")].is(fc("0x110")))return void i[fc("0x16d")].consume(r[fc("0x105")],o[fc("0xb3")]);const x=i[fc("0xc2")][fc("0x140")](r[fc("0x105")]);if(r.item.is("element")&&t[fc("0xb5")][fc("0x146")][fc("0xb6")](r[fc("0x105")])&&!x.getCustomProperty(fc("0x8d"))){i[fc("0x5f")][fc("0xdb")]([fc("0xe2"),"ck-suggestion-marker-formatBlock"],x),i[fc("0x5f")][fc("0x17f")](fc("0x12d"),s,x),i[fc("0xc2")][fc("0x12e")](x,r[fc("0x131")]),e&&(this.activeMarkers[fc("0x154")](r[fc("0x131")])?i[fc("0x5f")][fc("0xdb")](fc("0x33"),x):i.writer.removeClass(fc("0x33"),x));for(const e of t[fc("0xb5")].createRangeIn(r[fc("0x105")]).getItems())i[fc("0x16d")].consume(e,o[fc("0xb3")]);i[fc("0x16d")][fc("0x6c")](r[fc("0x105")],o[fc("0xb3")])}};t[fc("0x97")].for(fc("0x11f"))[fc("0x153")]((t=>{t.on(fc("0x73"),((t,e,n)=>{n[fc("0x7")][fc("0xf0")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x1d")})})),t[fc("0x97")][fc("0x7f")](fc("0x11f")).add((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x7")][fc("0xf0")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x1d")})})),t[fc("0x97")][fc("0x7f")](fc("0x11f"))[fc("0x173")]({model:fc("0x83"),view:(t,e)=>e[fc("0x7")].showSuggestionHighlights?null:{group:"suggestion",name:t[fc("0x9f")](11)}}),t[fc("0x97")][fc("0x7f")](fc("0x148"))[fc("0x125")]({view:{name:fc("0x83"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x111")+t[fc("0x2a")](fc("0x142"))+":"+t.getAttribute("id");return t[fc("0x2a")](fc("0x1f"))&&(n+=":"+t.getAttribute(fc("0x1f"))),e[fc("0x11a")]("$marker",{"data-name":n})}}),t[fc("0x97")][fc("0x7f")](fc("0x148"))[fc("0xf2")]({view:fc("0x83")}),t[fc("0x97")][fc("0x7f")](fc("0xf3"))[fc("0x153")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:"high"})})),t[fc("0x97")][fc("0x7f")]("editingDowncast")[fc("0x153")]((t=>{t.on(fc("0x9b"),o({isAttributeSuggestion:!0}),{priority:fc("0xe8")})})),t.conversion[fc("0x7f")](fc("0xf3"))[fc("0x153")]((t=>{t.on(fc("0x88"),((t,e,n)=>{const o=n[fc("0xc2")][fc("0x50")](e[fc("0x131")]);if(o)for(const t of o)t.getCustomProperty(fc("0x8d"))||(n[fc("0x5f")][fc("0x133")](["ck-suggestion-marker",fc("0x14c"),fc("0x33")],t),n[fc("0x5f")][fc("0xaa")](fc("0x12d"),t),n.mapper[fc("0x4d")](t,e[fc("0x131")]))}),{priority:"high"})})),t.conversion[fc("0x7f")](fc("0xf3"))[fc("0x153")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0xc2")][fc("0x50")](e[fc("0x131")]);if(!o)return;const{id:r}=this[fc("0xb")](e[fc("0x131")]),i=Rc(this[fc("0x62")][fc("0x21")](r));if(this[fc("0xae")](i))for(const t of o)t[fc("0x14d")]("addHighlight")||(n[fc("0x5f")][fc("0x133")]([fc("0xe2"),fc("0x14c"),fc("0x33")],t),n[fc("0x5f")][fc("0xaa")](fc("0x12d"),t),n.mapper.unbindElementFromMarkerName(t,e[fc("0x131")]))}),{priority:"high"})})),t[fc("0xb5")][fc("0x10e")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0x35")](t[fc("0xb5")][fc("0x10e")][fc("0x77")].getChangedMarkers()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xb")](x);if(fc("0x83")!==o)continue;const d=this[fc("0x62")][fc("0x21")](u);if(null!=a[fc("0x155")]){"formatInline"==c&&(n=n||_c(a[fc("0x155")],x,e,t.model[fc("0x146")]));const o=fc("0x37")==c&&this._isBlockAttribute(l[fc("0x7d")]("|")[0]);if(a.newRange[fc("0xdd")]||fc("0x8c")==a[fc("0x155")][fc("0xec")].rootName||fc("0x137")==c&&!yc(a[fc("0x155")])||o&&!yc(a[fc("0x155")])||fc("0x126")==c&&(Ec(s=a[fc("0x155")])||(i=s)[fc("0xfd")][fc("0x16b")]==i.end[fc("0x8")]&&i[fc("0xfd")].isAtEnd))e[fc("0x79")](x),n=!0;else{if(!d||!d[fc("0x51")])continue;r[fc("0x153")](d)}}}var i,s;return r[fc("0x98")]>0&&(n=!!this._joinWithAdjacentSuggestions(r)||n),n})),t[fc("0xb5")][fc("0x10e")].registerPostFixer((e=>{let n=!1;for(const o of t[fc("0xb5")][fc("0x10e")][fc("0x77")].getChanges())if("insert"==o[fc("0x4a")])for(const o of this[fc("0x62")][fc("0x5a")]()){if(o[fc("0xe0")]||!o[fc("0x51")])continue;const r=fc("0x137")==o[fc("0x4a")],i=Rc(o),s=i&&this[fc("0xae")](i);if(!r&&!s)continue;const x=o[fc("0xf4")]();if(x[fc("0xfd")][fc("0x16b")]!=x.end[fc("0x16b")]&&!x[fc("0x59")][fc("0x11e")]){const r=t[fc("0xb5")].createPositionAt(x[fc("0xfd")][fc("0x14b")],"end"),i=t[fc("0xb5")][fc("0x135")](x.start,r);e[fc("0x4")](o[fc("0xe6")](),{range:i}),n=!0}}return n})),t[fc("0xb5")].document.registerPostFixer((t=>this[fc("0x10")](t))),t[fc("0xb5")][fc("0x10e")][fc("0xee")]((t=>!t.batch.isLocal&&this[fc("0xd1")](t))),t[fc("0xb5")][fc("0x178")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xb")](e[fc("0xb3")]),n=this[fc("0x62")][fc("0x21")](t);n&&n[fc("0x17e")](e[fc("0xb3")])}})),t[fc("0xb5")][fc("0x10e")].on("change:data",(()=>{const e=Array.from(t[fc("0xb5")][fc("0x10e")][fc("0x77")][fc("0x13e")]()).filter((t=>fc("0x83")===this._splitMarkerName(t[fc("0xb3")])[fc("0x10f")]));if(0===e[fc("0x119")])return;e.sort(((t,e)=>{const n=t[fc("0xdf")][fc("0x82")],o=e[fc("0xdf")][fc("0x82")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xfd")][fc("0x108")](o[fc("0xfd")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0xb")](t);if(null===r[fc("0x82")]){const e=this._handleNewSuggestionMarker(t);o[fc("0x153")](e)}else{const t=this[fc("0x62")].get(e);null!==r.newRange||t.isInContent?(n[fc("0x153")](t[fc("0x141")]),o[fc("0x153")](t)):this[fc("0x52")](t)}}o[fc("0x98")]>0&&this[fc("0x26")](o);for(const t of n)this.fire(fc("0x168"),t)})),t.model.on(fc("0x18"),((e,n)=>{const o=n[0];if(!this[fc("0x62")][fc("0x98")])return;if(!o[fc("0x132")])return;if(o.batch[fc("0x134")]||!o[fc("0x24")][fc("0xbb")])return;let r,i;switch(o.type){case fc("0x42"):r=t[fc("0xb5")][fc("0x28")](o[fc("0x25")]),i=r[fc("0x46")](o[fc("0x2")]);break;case fc("0x7d"):r=t.model[fc("0x28")](o[fc("0x8f")]),i=t[fc("0xb5")][fc("0x28")](o[fc("0xce")]);break;case fc("0x164"):r=t[fc("0xb5")][fc("0x28")](o[fc("0x129")]),i=r.getShiftedBy(o[fc("0x2")]);break;default:return}const s=t[fc("0xb5")][fc("0x135")](r,i);t[fc("0xb5")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[fc("0xe0")])continue;if("formatInline"==t[fc("0x4a")])continue;const n=Rc(t);if(n&&this[fc("0xae")](n)&&fc("0x7d")!=o[fc("0x4a")])continue;const x=t.data&&t[fc("0xdf")][fc("0x8b")];("formatBlock"!=t[fc("0x4a")]||fc("0x7d")==o[fc("0x4a")]&&!x)&&(e[fc("0xb7")]||fc("0xe4")==t.type&&e[fc("0xdc")]||t[fc("0xf4")]()[fc("0x157")](s)&&this[fc("0xff")](t,r,i))}}))}),{priority:fc("0x69")}),t[fc("0xb5")].on(fc("0x8e"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[fc("0x124")])return;if(this[fc("0x2b")])return;if(!this[fc("0x171")].value)return;if(o[fc("0xdd")])return;const i=t.model[fc("0x146")],{start:s,end:x}=o[fc("0xf4")](),a=s[fc("0x14b")]&&i[fc("0x16")](s[fc("0x14b")])?null:i[fc("0x30")](s,fc("0xc6")),c=x[fc("0x8")]&&i.isLimit(x[fc("0x8")])?null:i.getNearestSelectionRange(x,fc("0x6e")),l=t.model.createRange(a?a[fc("0xfd")]:s,c?c[fc("0x59")]:x);t[fc("0xb5")][fc("0x13a")]((e=>{this.markDeletion(l);const n=t[fc("0xb5")][fc("0x146")].getNearestSelectionRange(l[fc("0xfd")]);o.is(fc("0x65"))?e[fc("0xea")](n):o[fc("0x0")](n)})),e[fc("0x6a")]()}),{priority:e.priorities[fc("0xaf")]+10}),t[fc("0xb5")].on("insertContent",((e,n)=>{const o=n[n[fc("0x119")]-1];o&&o[fc("0x124")]||this[fc("0x2b")]||this[fc("0x171")][fc("0x100")]&&(t[fc("0xb5")].change((()=>{let o=t[fc("0xb5")][fc("0x16f")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xf")]=o.clone();const r=o.end[fc("0x8")],i=t.model[fc("0x146")];r&&i[fc("0xb6")](r)&&!i.isObject(r)&&(o=t[fc("0xb5")][fc("0x135")](o[fc("0xfd")],t[fc("0xb5")][fc("0x28")](r,fc("0x59")))),this[fc("0x56")](o)})),e[fc("0x6a")]())}),{priority:fc("0xe8")}),this[fc("0x91")][fc("0x147")][fc("0x153")](fc("0xcd"),this[fc("0x171")]),this.enableCommand(fc("0xcd"));const r=new p(t,this[fc("0x62")]);t[fc("0x147")][fc("0x153")](fc("0x17c"),r),this[fc("0xe")](fc("0x17c"));const i=new y(t,this[fc("0x62")]);t[fc("0x147")][fc("0x153")]("discardSuggestion",i),this[fc("0xe")](fc("0x5d")),t[fc("0x147")][fc("0x153")](fc("0x144"),new F(t,r,this[fc("0x62")])),this[fc("0xe")](fc("0x144")),t.commands.add("discardAllSuggestions",new F(t,i,this._suggestions)),this.enableCommand(fc("0xba")),t.commands.add(fc("0xc8"),new j(t,r,this._suggestions)),this[fc("0xe")]("acceptSelectedSuggestions"),t[fc("0x147")][fc("0x153")]("discardSelectedSuggestions",new j(t,i,this[fc("0x62")])),this[fc("0xe")]("discardSelectedSuggestions");const s=t[fc("0xc4")][fc("0x21")](fc("0x38"));this[fc("0xa6")](s,fc("0x3d"),((t,{threadId:e})=>{const n=this[fc("0x62")][fc("0x21")](e);n&&n.commentThread&&1===n[fc("0x145")][fc("0x119")]&&this[fc("0xd9")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0xa6")](s,"removeComment",((t,{threadId:e})=>{const n=this[fc("0x62")][fc("0x21")](e);n&&n.commentThread&&!n[fc("0x145")][fc("0x119")]&&this[fc("0xd9")](e,{hasComments:!1})}),{priority:fc("0x5")})}set adapter(t){if(this[fc("0x32")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[fc("0x40")](){return this[fc("0x32")]}[fc("0x139")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x62")][fc("0x5a")]())t&&!e[fc("0x51")]||n[fc("0x7e")](e);return e?n[fc("0x102")]((t=>t[fc("0x19")]())):n}[fc("0x4e")](t){const n=this[fc("0x62")][fc("0x21")](t);if(!n)throw new e.CKEditorError(fc("0x6d"),this);return n}[fc("0x109")](t){return this[fc("0x62")][fc("0x1b")](t)}[fc("0xd0")](t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x4a")][fc("0x7d")](":"),s=this[fc("0x62")][fc("0x21")](n)||this[fc("0x71")](r,i,n,e,o);if(this[fc("0x55")](s),this[fc("0xde")](s,r,i||null,e),s[fc("0x9d")]=t[fc("0x9d")],s[fc("0x15c")]=!0,o&&o[fc("0x76")]){const t=o[fc("0x76")],e=this[fc("0xcb")](t[fc("0x3f")]);s[fc("0x158")]=t.createdAt,s[fc("0x122")]=e,s[fc("0xa4")]=!0}else s[fc("0x158")]=t[fc("0x9d")];switch(t.data&&(s.data=t[fc("0xdf")]),t.attributes&&(s[fc("0x2f")]=t[fc("0x2f")]),this._adapter&&this[fc("0x32")][fc("0xf5")]||(s[fc("0x167")]=!0),this._suggestionState[fc("0x21")](s)){case fc("0x1e"):this._suggestionState[fc("0x130")](s,fc("0x9c"));break;case fc("0x9e"):s.isInContent?(this._refreshSuggestionsChain(new Set([s])),this[fc("0x107")](new Set([s])),this[fc("0xd8")].set(s,fc("0xa3")),this[fc("0x27")](fc("0xb0"),s)):this[fc("0xd8")][fc("0x130")](s,"removed")}return s}[fc("0x17c")](t){this[fc("0x124")]((()=>{this[fc("0x91")][fc("0xb5")].change((()=>{for(const e of t[fc("0x11c")]())e[fc("0xd3")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[fc("0x91")].model.change((()=>{for(const e of t[fc("0x11c")]())e[fc("0x72")]()}))}))}enableCommand(t,n){const o=this[fc("0x91")].commands[fc("0x21")](t);if(!o)throw new e.CKEditorError(fc("0xbd"),this,{commandName:t});if(this[fc("0x1")][fc("0x1b")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x1")].add(o),n&&o.on(fc("0x150"),((t,e)=>{this[fc("0x171")].value&&(this[fc("0x2b")]||(e[fc("0x119")]>0&&e[e.length-1]&&e[e.length-1][fc("0x124")]?e[fc("0x70")]():(t[fc("0xf")]=n(((...t)=>o[fc("0x150")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x6a")]())))}),{priority:fc("0xe8")})}forceDefaultExecution(t){let n,o;const r=this[fc("0x2b")];this[fc("0x2b")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x2b")]=!1),o&&e.CKEditorError[fc("0x14e")](o,this),n}[fc("0x56")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this[fc("0x91")].plugins[fc("0x21")](fc("0x5c")).me;for(const{suggestion:e,meta:r}of this[fc("0x64")](t,fc("0xe4")))if(r[fc("0xdc")]){if(!r[fc("0xc9")]){if(r[fc("0xb7")]){if(!this[fc("0xa7")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xff")](e,t[fc("0xfd")],t[fc("0x59")]);break}if(n==e[fc("0x170")]&&Ic(e,o)){const n=e[fc("0xf4")]();return n[fc("0xfd")].isEqual(t[fc("0x59")])?this._setSuggestionRange(e,this[fc("0x54")][fc("0x135")](t[fc("0xfd")],n.end)):this[fc("0x3a")](e,this[fc("0x54")].createRange(n.start,t[fc("0x59")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0xa8")+n:fc("0xe4"),a=this[fc("0xc1")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x117")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const r=this[fc("0x91")][fc("0xc4")][fc("0x21")](fc("0x5c")).me,i=this[fc("0xef")][fc("0xb8")]("insertion",n,"join");for(const e of this[fc("0x139")]())if(e[fc("0x122")].id==r.id&&fc("0xe4")==e.type&&e[fc("0x170")]==n&&Ic(e,o)&&(i(e.getRanges(),t)||i(t,e.getRanges()))){for(const n of t)e[fc("0xb2")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x64")](t,"insertion")){if(!n.isOwn)continue;if(!this[fc("0xa7")]&&n[fc("0xb7")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e[fc("0xa")]())for(const e of t)if(!n.containsRange(e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0xa8")+n,c=this[fc("0xc1")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,s,x,e,Jo[fc("0x101")]());return c}[fc("0x14f")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0xdd")])return null;if(fc("0xed")===this[fc("0x63")]){const e=this[fc("0xef")][fc("0xb8")](fc("0x4b"),o,fc("0xd3"));return this.forceDefaultExecution((()=>e([t],n,r))),null}const i=this.editor.plugins[fc("0x21")](fc("0x5c")).me,s=[];if(fc("0xfa")!==this[fc("0x63")])for(const{suggestion:e,meta:n}of this[fc("0x64")](t,"insertion"))n.isOwn&&!n[fc("0xb4")]&&s[fc("0x7e")](...e[fc("0xa")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x9a")](o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[fc("0x119")]}}return n}(t,s);x.length&&this[fc("0x54")][fc("0x13a")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0xb8")]("formatInline",o,fc("0xd3"));this[fc("0x124")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[fc("0xfd")],a=t[fc("0x59")];for(const{suggestion:e,meta:n}of this[fc("0x64")](t,"formatInline")){if(!n[fc("0xdc")])continue;if(e[fc("0x170")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0xf4")]();if(i[fc("0x157")](t,!0))return null;x=x[fc("0x108")](i[fc("0xfd")])?x:i[fc("0xfd")],a=a.isAfter(i[fc("0x59")])?a:i.end,s?i[fc("0xfd")].isBefore(s[fc("0xf4")]()[fc("0xfd")])?(s[fc("0x143")](),s=e):e[fc("0x143")]():s=e}const c=this[fc("0x54")][fc("0x135")](x,a);if(s)this[fc("0x3a")](s,c);else{const t=(0,e.uid)(),s=i.id;this._setSuggestionData({id:t,type:fc("0x138")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x117")](fc("0x138")+o,t,s,c)}}return null}[fc("0x95")](t,n,o=[],r=null,i={}){n[fc("0x176")]||(n[fc("0x176")]=n[fc("0xfe")]),n[fc("0x8b")]=t.is(fc("0x121")),r=r||Tc(n);const s=o.map((t=>Cc(t,this[fc("0x54")]))),x=t.is("range")?t:Cc(t,this[fc("0x54")]);if(fc("0xed")===this[fc("0x63")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",r,fc("0xd3"));return this.forceDefaultExecution((()=>t([x],n,i))),null}s[fc("0x7e")](x);let a=!0;for(const t of s)if(!this[fc("0x10d")](t)){a=!1;break}if(a&&fc("0xfa")!==this[fc("0x63")]){const t=this[fc("0xef")][fc("0xb8")](fc("0x137"),r,fc("0xd3"));return this[fc("0x124")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0xfd")],u=x[fc("0x59")];for(const{suggestion:t,meta:e}of this[fc("0x64")](x,fc("0x137"))){if(!e[fc("0xdc")])continue;if(e[fc("0xc9")]||e[fc("0xb7")]||e[fc("0xb4")])continue;if(t[fc("0xdf")][fc("0x176")]!=n[fc("0x176")])continue;if(!Ic(t,i))continue;const o=t[fc("0xf4")]();if(t[fc("0x170")]==r){if(o[fc("0x157")](x,!0))return null;l=l.isBefore(o[fc("0xfd")])?l:o.start,u=u[fc("0x22")](o[fc("0x59")])?u:o[fc("0x59")],c?o[fc("0xfd")][fc("0x108")](c[fc("0xf4")]()[fc("0xfd")])?(c[fc("0x143")](),c=t):t.removeMarkers():c=t}else{const e=x[fc("0x9a")](o);this[fc("0xf6")](t,e)}}const d=this[fc("0x91")][fc("0xc4")][fc("0x21")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x3a")](c,this._model[fc("0x135")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x117")](fc("0xeb")+r,g,f,this._model[fc("0x135")](l,u)),t}}[fc("0xa5")](t,n,o=[],r=null,i={}){n[fc("0x176")]||(n[fc("0x176")]=n[fc("0xfe")]);const s=t[0];n[fc("0x8b")]=s.is(fc("0x121")),r=r||Tc(n);const x=o[fc("0x102")]((t=>Cc(t,this[fc("0x54")]))),a=s.is(fc("0x121"))?t:t[fc("0x102")]((t=>Cc(t,this._model)));if(fc("0xed")===this[fc("0x63")]){const t=this[fc("0xef")][fc("0xb8")]("formatBlock",r,fc("0xd3"));return this[fc("0x124")]((()=>t(a,n,i))),null}x[fc("0x7e")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",r,"accept");return this[fc("0x124")]((()=>t(a,n,i))),null}const l=this.editor[fc("0xc4")][fc("0x21")](fc("0x5c")).me;for(const t of this[fc("0x139")]()){if(t.author.id!=l.id)continue;if(fc("0x137")!=t[fc("0x4a")]||t.data.formatGroupId!=n[fc("0x176")])continue;if(!Ic(t,i))continue;const e=t[fc("0x170")]==r;for(let n=0;n<a[fc("0x119")];n++){const o=a[n];for(const r of t.getMarkers()){const i=r[fc("0x41")]();if(o.isEqual(i)){e?(a[fc("0x114")](n,1),n--):t[fc("0x79")](r[fc("0xb3")]);break}}}}if(0==a.length)return null;const u=this[fc("0xef")][fc("0xb8")](fc("0x137"),r,fc("0x11"));for(const t of this.getSuggestions())if(t[fc("0x122")].id==l.id&&fc("0x137")==t[fc("0x4a")]&&t[fc("0xdf")][fc("0x176")]==n.formatGroupId&&t[fc("0x170")]==r&&Ic(t,i)&&(u(t[fc("0xa")](),a)||u(a,t[fc("0xa")]()))){for(const e of a)t[fc("0xb2")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x117")](f,d,g,t,Jo[fc("0x101")]());return m}markDeletion(t,n=null,o={}){if(t[fc("0xdd")])return null;const r=this[fc("0x91")].plugins[fc("0x21")](fc("0x5c")).me,i=new s.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[fc("0x64")](i,fc("0xe4")))if(e[fc("0xdc")]&&!e[fc("0xc9")])if(t.isMultiRange){const e=t.getRanges().filter((t=>fc("0x8c")!=t[fc("0xec")][fc("0x99")]));if(e[fc("0xc7")]((t=>i.containsRange(t,!0)))&&t.discard(),e[fc("0x13b")]((t=>t[fc("0x157")](i,!0)))){const t=this[fc("0xef")].getSuggestionCallback(fc("0x126"),n,"accept");return this[fc("0x124")]((()=>t([i],null,o))),null}}else{const e=i[fc("0x9a")](t[fc("0xf4")]());null!==e&&t[fc("0x174")]([e],null,o)}if(i[fc("0x12")](),i[fc("0xdd")]||fc("0x8c")==i[fc("0xec")][fc("0x99")])return null;let x=null,a=i[fc("0xfd")],c=i[fc("0x59")];const l=this[fc("0x64")](i,fc("0x126"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x135")](a,c);if(e.isOwn&&(this[fc("0xa7")]||!e.containsRangeInObject&&!e.isInsideObject))if(t.isMultiRange){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0xa")]()){if(o.containsRange(n,!0))return t;n[fc("0x157")](o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0xf4")]();if(e[fc("0x157")](n,!0))return t;if(!Ic(t,o)){n[fc("0x157")](e)?t[fc("0x143")]():e[fc("0x15b")](a)?a=e.end:e.containsPosition(c)&&(c=e[fc("0xfd")]);continue}a=a[fc("0x108")](e.start)?a:e[fc("0xfd")],c=c[fc("0x22")](e[fc("0x59")])?c:e.end,o=Object[fc("0xf7")]({},t[fc("0x2f")]),x?e.start[fc("0x108")](x[fc("0xf4")]()[fc("0xfd")])?(x.removeMarkers(),x=t):t[fc("0x143")]():x=t}}if(x)return this._setSuggestionRange(x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x54")][fc("0x135")](a,c),s=r.id,x=n?fc("0x10a")+n:fc("0x126"),l=this[fc("0xc1")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x117")](x,t,s,i),l}}[fc("0xab")](t,n=fc("0x169"),o={}){const r=this[fc("0x91")][fc("0xc4")][fc("0x21")]("Users").me,i=t[fc("0x102")]((t=>new s.LiveRange(t.start,t[fc("0x59")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x64")](i,fc("0xe4")))e.isOwn&&!e[fc("0xc9")]&&x.add(t);for(const e of x)if(e[fc("0xe0")]){const r=e[fc("0xa")]();if((!e[fc("0x2f")]||!e.attributes.skipNestingCheck)&&r[fc("0xc7")]((t=>i[fc("0x13b")]((e=>e[fc("0x157")](t,!0)))))&&e[fc("0x72")](),i[fc("0xc7")]((t=>r[fc("0x13b")]((e=>e[fc("0x157")](t,!0)))))){const e=this[fc("0xef")][fc("0xb8")](fc("0x126"),n,fc("0xd3"));return this[fc("0x124")]((()=>e(t,null,o))),null}}else{const t=e[fc("0xf4")]();if(i[fc("0x13b")]((e=>e.containsRange(t,!0)))&&e[fc("0x72")](),i.every((e=>t[fc("0x157")](e,!0)))){const t=this[fc("0xef")][fc("0xb8")]("deletion",n,"accept");return this[fc("0x124")]((()=>t(i,null,o))),null}}const a=this[fc("0xef")][fc("0xb8")](fc("0x126"),n,fc("0x11"));let c=null;for(const t of this[fc("0x139")]())if(t.author.id==r.id&&t.isInContent&&"deletion"==t.type&&t[fc("0x170")]==n&&Ic(t,o)&&(a(t[fc("0xa")](),i)||a(i,t[fc("0xa")]())))if(c){if(t.commentThread&&t[fc("0x145")][fc("0x119")])continue;for(const e of t[fc("0xa")]())c.isIntersectingWithRange(e)||c[fc("0xb2")](e);t.removeMarkers()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0xb2")](e)}if(c)return c;x[fc("0x1a")]();for(const{suggestion:t,meta:e}of this[fc("0x64")](i,fc("0x126")))e[fc("0xdc")]&&(this[fc("0xa7")]||!e[fc("0xb7")]&&!e[fc("0xb4")])&&Ic(t,o)&&x[fc("0x153")](t);for(const t of x){const e=t[fc("0xa")]();if((!o||!o[fc("0x179")])&&i[fc("0xc7")]((t=>e.some((e=>e[fc("0x157")](t,!0))))))return t;(!t[fc("0x2f")]||!t[fc("0x2f")][fc("0x179")])&&e.every((t=>i.some((e=>e.containsRange(t,!0)))))&&t[fc("0x72")]()}const l=(0,e.uid)(),u=r.id,d="deletion:"+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t[fc("0x12")](),t[fc("0xdd")]||fc("0x8c")==t[fc("0xec")][fc("0x99")]||this[fc("0x117")](d,l,u,t,Jo[fc("0x101")]());return g}[fc("0x163")](t,n,o,r,i){if(t[fc("0xdd")])return[];if("never"===this[fc("0x63")])return[];const s=this[fc("0x91")][fc("0xc4")][fc("0x21")](fc("0x5c")).me.id,x=Array[fc("0x35")](this[fc("0x62")][fc("0x5a")]())[fc("0x149")]((e=>fc("0x37")==e[fc("0x4a")]&&e[fc("0xdf")][fc("0x9")]==n&&e[fc("0xfb")](t)));if(fc("0x128")===this[fc("0x63")]){const e=this[fc("0x64")](t,"insertion")[fc("0x149")]((({meta:t})=>t.isOwn&&!t[fc("0xb4")]&&!t[fc("0xc9")])).map((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x37")==t[fc("0x4a")]?t.data[fc("0xc3")]:void 0,i=t[fc("0xf4")](),s=Array[fc("0x35")](a[fc("0x11d")]())[fc("0x84")]((t=>t.isIntersecting(i)));if(!s)continue;const x=s[fc("0x172")](i);this[fc("0xae")](n)&&fc("0xe4")==t[fc("0x4a")]&&0!=x[fc("0x119")]||(a[fc("0x67")](s),x[fc("0xd4")]((t=>{a.set(t,o)})),fc("0xe4")!=t.type&&e!=r&&a[fc("0x130")](s[fc("0x9a")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x119")]>37&&console[fc("0xf9")](fc("0x12b"),{key:n});const l=(fc("0x2d")+(n+"|")+Tc({newValue:r})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x7e")](u),this[fc("0x117")](l,x,s,t)}return c}[fc("0x58")](t){this._blockAttributeKeys[fc("0x153")](t)}_registerInlineAttribute(t){this[fc("0xca")].add(t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this._registerBlockAttribute(t)}[fc("0x3a")](t,e){const n=t.getFirstMarker();this[fc("0x54")][fc("0x13a")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[fc("0x160")][fc("0x21")](fc("0x74"));this[fc("0xd2")].hasCommentThread(e)||this[fc("0xd2")][fc("0xe7")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xd2")][fc("0x175")](e);o[fc("0x116")]("isRemovable"),o.isRemovable=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,r){if(t[fc("0x4a")]!=n||t[fc("0x170")]!=o||t.creator.id!=r)throw this[fc("0x91")][fc("0x15e")](fc("0x3c")),new e.CKEditorError(fc("0x3c"),this)}[fc("0xf6")](t,n){const o=t[fc("0xf4")]();if(n[fc("0x10c")](o))t[fc("0x143")]();else if(o[fc("0x157")](n)){const r=this[fc("0x54")][fc("0x28")](n[fc("0xfd")].nodeBefore,"end");this[fc("0x3a")](t,this._model[fc("0x135")](o[fc("0xfd")],r));const i=(0,e.uid)(),s=t[fc("0x1c")].id,x=t[fc("0x4a")]+":"+t[fc("0x170")];this[fc("0xc1")]({id:i,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[fc("0x2f")]});const a=this._model.createPositionAt(n[fc("0x59")].parent,fc("0xfc")),c=this._model[fc("0x135")](a,o.end);this[fc("0x117")](x,i,s,c)}else if(o[fc("0x15b")](n[fc("0xfd")])){const e=this[fc("0x54")].createPositionAt(n[fc("0xfd")][fc("0x8")],fc("0x59"));this[fc("0x3a")](t,this[fc("0x54")][fc("0x135")](o[fc("0xfd")],e))}else{const e=this[fc("0x54")][fc("0x28")](n[fc("0x59")][fc("0x16b")],fc("0xfc"));this[fc("0x3a")](t,this[fc("0x54")][fc("0x135")](e,o[fc("0x59")]))}}[fc("0x10d")](t){for(const{suggestion:e,meta:n}of this[fc("0x64")](t,fc("0xe4"))){if(!n.isOwn)continue;const o=e.getRanges();for(const e of o)if(!t[fc("0x172")](e).length)return!0}return!1}[fc("0x90")](t){const n=this[fc("0x91")][fc("0xc4")][fc("0x21")](fc("0x5c"))[fc("0x13d")](t);if(!n)throw new e.CKEditorError(fc("0x29"),this);return n}[fc("0xcb")](t){const e=this.editor[fc("0xc4")][fc("0x21")](fc("0x5c")),n=(0,i.hashObject)(fc("0x4f")+t);return e[fc("0x13d")](n)||e[fc("0xbe")]({id:n,name:t})}[fc("0x71")](t,e,n,o,r){const i=this[fc("0x90")](o),s=this[fc("0xef")][fc("0x15")](t,e,n,i,r,(t=>this[fc("0xd9")](n,{attributes:t})));return this[fc("0xa6")](s,fc("0xd3"),(()=>{this._updateSuggestionData(n,{state:fc("0x15a")})}),{priority:fc("0xe8")}),this.listenTo(s,fc("0x72"),(()=>{this[fc("0xd9")](n,{state:fc("0x3b")})}),{priority:fc("0xe8")}),this[fc("0x62")][fc("0x130")](n,s),this[fc("0xd8")][fc("0x130")](s,"notReady"),s}[fc("0xb")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x119")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[fc("0x119")]?e[5]:null}}[fc("0xff")](t,n,o){const r=t.getFirstRange(),i=r[fc("0xfd")],s=r[fc("0x59")];this[fc("0x3a")](t,this._model[fc("0x135")](i,n));const x=(0,e.uid)(),a=t[fc("0x1c")].id,c=t[fc("0x4a")]+(t[fc("0x170")]?":"+t[fc("0x170")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x2f")],data:t[fc("0xdf")]});const l=Rc(t);(fc("0x137")==t[fc("0x4a")]||l&&this._isBlockAttribute(l))&&(o=this[fc("0x54")][fc("0x127")](o[fc("0x16b")])),this[fc("0x117")](c,x,a,this[fc("0x54")][fc("0x135")](o,s))}[fc("0x64")](t,e=null){const n=[],o=this[fc("0x91")][fc("0xc4")][fc("0x21")](fc("0x5c")).me;Array.isArray(t)||(t=[t]);for(const r of this[fc("0x139")]()){if(!r[fc("0x51")])continue;if(e&&r.type!=e)continue;let i=!1;for(const e of r[fc("0xa")]()){for(const s of t){const t=s.start[fc("0x10c")](e.end)||s[fc("0x59")][fc("0x10c")](e.start);if(t||s.getIntersection(e)){const x=s[fc("0x157")](e)&&bc(this[fc("0x54")][fc("0x146")],e.start,s),a=e[fc("0x157")](s)&&bc(this[fc("0x54")][fc("0x146")],s[fc("0xfd")],e);n[fc("0x7e")]({suggestion:r,meta:{isOwn:o==r[fc("0x122")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x117")](t,e,n,o,r){this[fc("0x54")][fc("0x13a")]((i=>{let s=fc("0x111")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0xc0")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x52")](t){const e=t.previous,n=t[fc("0x166")];t[fc("0x75")]=null,t[fc("0x166")]=null,null!=e&&(e[fc("0x166")]=n),null!=n&&(n.previous=e),"ready"==this[fc("0xd8")][fc("0x21")](t)&&(this[fc("0xd8")][fc("0x130")](t,"removed"),this[fc("0x27")](fc("0x39"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[fc("0xd0")](t);if(this._adapter&&this[fc("0x32")].addSuggestion){const r=this[fc("0x91")].plugins[fc("0x21")](fc("0x165")),i=o[fc("0x2c")],s=o[fc("0x170")]?o[fc("0x4a")]+":"+o[fc("0x170")]:o[fc("0x4a")],x=this[fc("0x91")][fc("0x85")],a=r[fc("0x153")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:i,data:t[fc("0xdf")]||null,originalSuggestionId:t[fc("0xa2")]||null,attributes:o.attributes};this[fc("0x32")][fc("0xf5")](c)[fc("0x12a")]((t=>{o._saved=!0,r[fc("0xa0")](a),t&&t.createdAt&&(this[fc("0x62")][fc("0x21")](n)[fc("0x9d")]=t[fc("0x9d")])}))[fc("0x44")]((t=>{throw(0,e.logWarning)(fc("0x3e")),this.editor.model.enqueueChange({isUndoable:!1},(()=>{o[fc("0x72")]()})),o[fc("0xbf")](),this._suggestions[fc("0x67")](o.id),this._suggestionState[fc("0x67")](o),t}))}return o}[fc("0xae")](t){return this._blockAttributeKeys[fc("0x1b")](t)}[fc("0xd9")](t,e){const n=this[fc("0x91")][fc("0xc4")].get(fc("0x165")),o=this.getSuggestion(t);if(this._adapter&&this[fc("0x32")].updateSuggestion)if(o._saved){const o=n[fc("0x153")](Qo(this.editor[fc("0x85")],fc("0x12c")));this._adapter[fc("0x45")](t,e).then((()=>{n[fc("0xa0")](o)}))}else o.on(fc("0x5e"),(()=>{this[fc("0xd9")](t,e)}))}[fc("0x118")](t){if(!this[fc("0x32")]||!this[fc("0x32")][fc("0x4e")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this._adapter[fc("0x4e")](t)}[fc("0x34")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0xb")](t),i=this._suggestions[fc("0x21")](e)||this[fc("0x71")](n,o,e,r,{});switch(this[fc("0xde")](i,n,o,r),this[fc("0xd8")].get(i)){case fc("0x1e"):this[fc("0x118")](e)[fc("0x12a")]((t=>{let n=Promise.resolve();t[fc("0x2c")]&&(n=this[fc("0xd2")].fetchCommentThread({channelId:this[fc("0x91")][fc("0x160")].get(fc("0x74")),threadId:e})),n[fc("0x12a")]((()=>{this.addSuggestionData(t)[fc("0x167")]=!0}))})),this[fc("0xd8")][fc("0x130")](i,"markerReady");break;case fc("0x5b"):this[fc("0xd9")](e,{state:fc("0x86")});case fc("0x9c"):this[fc("0xd8")][fc("0x130")](i,fc("0xa3")),this.fire("suggestionLoaded",i);break;case fc("0xa3"):this[fc("0x27")](fc("0x168"),i)}return i[fc("0x17e")](t),i}[fc("0x26")](t){const e=Array[fc("0x35")](t),n=e.filter((t=>fc("0x37")==t[fc("0x4a")]));this[fc("0x92")](n);const o=e[fc("0x149")]((t=>!t[fc("0xe0")]&&"attribute"!=t[fc("0x4a")])),r=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[fc("0xe0")]&&fc("0x37")!=t[fc("0x4a")])),i=r[fc("0x149")]((e=>!t[fc("0x1b")](e))),s=new Map(r[fc("0x102")]((t=>[t,this[fc("0xef")][fc("0xb8")](t[fc("0x4a")],t[fc("0x170")],fc("0x17d"))]))),x=new Map(r.map((t=>[t,t[fc("0xf4")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x119")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x119")];t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x1b")](e)&&e.previous&&(l[fc("0x153")](e[fc("0x75")]),e[fc("0x75")][fc("0x166")]===e&&(e[fc("0x75")][fc("0x166")]=null),e[fc("0x75")]=null),!a.has(e)&&e[fc("0x166")]&&(l[fc("0x153")](e.next),e[fc("0x166")].previous===e&&(e.next[fc("0x75")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[fc("0x119")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x166")]=n[1],n[1][fc("0x75")]=n[0],a[fc("0x153")](n[0]),c[fc("0x153")](n[1]))}}function d(t,e){if(t[fc("0x122")].id!==e[fc("0x122")].id)return null;const n=s[fc("0x21")](t)(t,e,x[fc("0x21")](t),x[fc("0x21")](e));return n&&s[fc("0x21")](e)(t,e,x[fc("0x21")](t),x.get(e))?n[1][fc("0x145")]&&n[1][fc("0x145")][fc("0x119")]?null:n:null}l[fc("0x98")]&&this._refreshSuggestionsChain(l)}[fc("0x92")](t){if(0==t[fc("0x119")])return;const e=this[fc("0x139")]({skipNotAttached:!0})[fc("0x149")]((t=>"attribute"==t.type&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x2f")]);o[fc("0x1b")](e)||(o[fc("0x130")](e,n[fc("0x119")]),n[fc("0x7e")]([]));const r=o[fc("0x21")](e);n[r][fc("0x7e")](t)}!function(){n[fc("0xda")](((t,e)=>{const n=t[0][fc("0x9d")],o=e[0][fc("0x9d")];return n==o?t[0][fc("0x2f")].groupId<e[0][fc("0x2f")][fc("0x4c")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0xda")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x119")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0x119")];o++)0!=n[o][fc("0x119")]&&r(n[t],n[o])&&e[fc("0x7e")](o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x119")];e++)t[e][fc("0x166")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x75")]=t[e-1]||null;function r(t,e){if(t[0][fc("0x122")]!==e[0][fc("0x122")])return!1;if(n=t[0],o=e[0],(n.hasComments||o[fc("0x2c")])&&(n[fc("0x2c")]&&o[fc("0x2c")]||!(n[fc("0x2c")]&&o[fc("0x9d")]<n[fc("0x145")][fc("0x115")][fc("0x21")](0)[fc("0x9d")]||o[fc("0x2c")]&&n[fc("0x9d")]<o[fc("0x145")][fc("0x115")][fc("0x21")](0)[fc("0x9d")])))return!1;var n,o;const r=lc(t[0].attributes,"groupId"),i=lc(e[0][fc("0x2f")],fc("0x4c"));return!!Go(r,i)&&(!!t[fc("0xc7")]((t=>e[fc("0x13b")]((e=>t[fc("0xf4")]()[fc("0x10c")](e[fc("0xf4")]())))))&&e[fc("0xc7")]((e=>t[fc("0x13b")]((t=>e[fc("0xf4")]()[fc("0x10c")](t[fc("0xf4")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[fc("0x35")](t),n=this[fc("0x139")]({skipNotAttached:!0}),o=n[fc("0x149")]((e=>!t.has(e))),r=new Map(e[fc("0x102")]((t=>[t,this[fc("0xef")].getSuggestionCallback(t[fc("0x4a")],t.subType,fc("0x11"))]))),i=new Map(n[fc("0x102")]((t=>[t,t[fc("0xa")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x119")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x119")];s++){const o=n[s];if(o[fc("0x4a")]!==e[fc("0x4a")]||o.author.id!==e[fc("0x122")].id||o.subType!==e[fc("0x170")])continue;if(!kc(e,o))continue;if("attribute"==e.type&&e[fc("0xdf")][fc("0xc3")]!=o[fc("0xdf")].oldValue)continue;if(fc("0x37")==e[fc("0x4a")]&&t[fc("0xae")](e[fc("0xdf")][fc("0x9")]))continue;if(fc("0x137")==e[fc("0x4a")]){const n=t[fc("0x91")].model,o=e[fc("0xe3")]();if(o&&(n[fc("0x146")][fc("0x3")](o)||n[fc("0x146")][fc("0x16")](o)))continue}const x=r[fc("0x21")](e),a=i[fc("0x21")](e),c=i[fc("0x21")](o),l=e[fc("0x145")]&&e.commentThread[fc("0x119")],u=o[fc("0x145")]&&o[fc("0x145")][fc("0x119")];if(!l&&x(c,a))return t[fc("0xa9")](o,e),i[fc("0x67")](e),!0;if(!u&&x(a,c))return t[fc("0xa9")](e,o),i.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[fc("0xe0")])for(const n of e[fc("0xa")]())t[fc("0xb2")](n);else{const n=e.getFirstRange().end;this[fc("0x3a")](t,this[fc("0x54")][fc("0x135")](t[fc("0xf4")]()[fc("0xfd")],n))}e.removeMarkers()}_getMarkerAnnouncementText(t,e){const n=t[fc("0x15d")](fc("0x43"))||t.startsWith("attribute")?fc("0x136"):t[fc("0xcf")]();return Qo(this[fc("0x91")][fc("0x85")],e+"_"+n+fc("0xe1"))}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x91")];(0,i.surroundingMarkersDetector)(this[fc("0x54")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xb")](t[fc("0xb3")]);if("suggestion"===e){o[fc("0x7e")](this._getMarkerAnnouncementText(n,fc("0x96")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xb")](t[fc("0xb3")]);if(fc("0x83")===e){o[fc("0x7e")](this[fc("0x10b")](n,fc("0x17")));break}}o[fc("0x119")]&&t.ui.ariaLiveAnnouncer[fc("0x104")](fc("0xcd"),o[fc("0x11")](" "))}))}[fc("0x10")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return!1;const e=this[fc("0x91")],n=e[fc("0xb5")][fc("0x10e")].differ[fc("0x13")]();if(0==n[fc("0x119")])return!1;const o=[],r=n[fc("0x149")]((t=>"attribute"==t[fc("0x4a")])),i=n.filter((t=>fc("0x42")==t[fc("0x4a")]&&fc("0x7a")!=t[fc("0xb3")])),s=n[fc("0x149")]((t=>fc("0xa0")==t[fc("0x4a")]&&fc("0x7a")!=t[fc("0xb3")]));for(const t of r)o[fc("0x7e")]({key:t.attributeKey,newValue:t[fc("0xf1")],oldValue:t[fc("0x66")],range:(x=t[fc("0x121")],null==x[fc("0x59")][fc("0x8")]&&x[fc("0x59")].parent==x.start.nodeAfter?Cc(x[fc("0xfd")].nodeAfter,e.model):x)});var x;for(const t of i){const n=s.find((e=>e[fc("0x25")][fc("0x10c")](t[fc("0x25")])));n&&o[fc("0x7e")]({key:fc("0x156"),newValue:t.name,oldValue:n[fc("0xb3")],range:e[fc("0xb5")].createRangeOn(t[fc("0x25")].nodeAfter)})}return 0!=o.length&&this[fc("0x36")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this.editor[fc("0xb5")].document[fc("0x77")][fc("0x13e")]()[fc("0x149")]((t=>t.data.newRange&&t.name[fc("0x15d")](fc("0x20"))));for(const o of n){const{subType:n,id:r}=this[fc("0xb")](o.name),i=n[fc("0x7d")]("|")[0];for(const n of this[fc("0x139")]({skipNotAttached:!0}))n.id!=r&&fc("0x37")==n[fc("0x4a")]&&n.data&&n[fc("0xdf")][fc("0x9")]==i&&n[fc("0xf4")]()[fc("0xd6")](o[fc("0xdf")][fc("0x155")])&&(this[fc("0x16a")](n,o.data.newRange,t),e=!0)}return e}[fc("0x87")](t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x91")];this[fc("0xf8")]=n[fc("0xb5")][fc("0x10e")][fc("0x81")],t();const o=new Map;for(const t of n[fc("0xb5")][fc("0x10e")].history.getOperations(this[fc("0xf8")]))if([fc("0xd"),fc("0x60"),fc("0xaa"),fc("0xcc")].includes(t[fc("0x4a")])){const e=t[fc("0x24")],n=o[fc("0x21")](e)||[];n[fc("0x7e")](t),o[fc("0x130")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0xb5")][fc("0x161")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0xd")==t[fc("0x4a")]){const e=t;r=Cc(e[fc("0x25")][fc("0x14b")],n.model),i=fc("0x156"),s=e[fc("0x61")],x=e[fc("0x2e")]}else{const e=t,o=this[fc("0xae")](e[fc("0x9")]),a=this._inlineAttributeKeys[fc("0x1b")](e[fc("0x9")]);if(!o&&!a)continue;r=o?Cc(e[fc("0x121")][fc("0xfd")].nodeAfter,n[fc("0xb5")]):e[fc("0x121")],i=e[fc("0x9")],s=fc("0xaa")==t[fc("0x4a")]?void 0:e[fc("0xc")],x=e[fc("0xc3")]}this.markAttributeChange(r,i,x,s,{groupId:o}),e[fc("0x7e")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x36")](t,e)}))}}[fc("0x36")](t,e){if(0==e[fc("0x119")])return!1;let n=!1;for(const o of e){const e=this[fc("0x64")](o[fc("0x121")],"attribute").filter((t=>!t.meta[fc("0xc9")]))[fc("0x102")]((t=>t[fc("0x83")])),r=(0,i.hashObject)({newValue:o.newValue});e[fc("0x149")]((t=>{const[e,n]=t.subType[fc("0x7d")]("|");return e==o.key&&n!=r}))[fc("0xd4")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0x121")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0xf4")]()[fc("0x172")](e);0!==o[fc("0x119")]?1!==o[fc("0x119")]?this[fc("0xff")](t,e[fc("0xfd")],e.end):this[fc("0x3a")](t,o[0]):n.removeMarker(t[fc("0xe6")]())}}class pc{constructor(t){this[fc("0x152")]=t,this._model=t[fc("0xb5")],this[fc("0xbc")]=new Map,this[fc("0xad")]=new Map,this[fc("0x23")]()}[fc("0x15")](t,e,n,o,r,i){return new Jo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0xb8")](t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0xb8")](t,e,fc("0x72"))(...n)})}[fc("0x17b")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0xbc")][fc("0x130")](r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[fc("0xbc")].get(o)||this[fc("0xad")][fc("0x21")](t+":"+n)}[fc("0x23")](){const t=()=>!1,e=t=>{t[fc("0xda")](((t,e)=>t.start[fc("0x108")](e[fc("0xfd")])?1:-1)),this[fc("0x54")][fc("0x13a")]((e=>{for(const n of t){let t;t=n[fc("0x59")][fc("0x11e")]&&n[fc("0x59")][fc("0x16b")]==n[fc("0xfd")].nodeAfter?e[fc("0x6b")](n[fc("0xfd")].nodeAfter,"on"):e[fc("0x6b")](n),this[fc("0x54")][fc("0x8e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x54")][fc("0x13a")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0x54")].createRange(t[fc("0x59")])),t)))[fc("0x149")]((t=>fc("0x8c")!==t[fc("0xec")][fc("0x99")]));if(i[fc("0x119")]<1)return;const x=Array.from(this._model[fc("0x10e")][fc("0x110")][fc("0xa")]())[fc("0x102")]((t=>s.LiveRange[fc("0x14a")](t)));n[fc("0xea")](i);for(const t of this[fc("0x152")].commands[fc("0x147")]())t[fc("0xd5")]();r[fc("0x7e")]({forceDefaultExecution:!0}),this[fc("0x152")][fc("0x150")](o,...r);const a=x[fc("0x149")]((t=>fc("0x8c")!=t[fc("0xec")].rootName));a[fc("0x119")]>0&&n[fc("0xea")](a);for(const t of x)t[fc("0x12")]()}))},o=(t,e)=>1==t[fc("0x119")]&&1==e[fc("0x119")]&&t[0].end[fc("0x10c")](e[0][fc("0xfd")]),r=(t,e,n,o)=>Ac(t,e,n,o,this._model)?[t,e]:Ac(e,t,o,n,this[fc("0x54")])?[e,t]:null;this._defaultCallbacks[fc("0x130")](fc("0xc5"),t),this[fc("0xad")].set(fc("0x7c"),e),this._defaultCallbacks[fc("0x130")](fc("0x6"),o),this._defaultCallbacks[fc("0x130")](fc("0x151"),r),this[fc("0xad")].set(fc("0x113"),e),this[fc("0xad")].set(fc("0x93"),t),this._defaultCallbacks[fc("0x130")](fc("0x78"),o),this[fc("0xad")][fc("0x130")](fc("0x177"),r),this[fc("0xad")].set(fc("0x31"),n),this[fc("0xad")][fc("0x130")](fc("0x120"),t),this[fc("0xad")][fc("0x130")](fc("0x12f"),o),this._defaultCallbacks[fc("0x130")](fc("0xe9"),t),this[fc("0xad")][fc("0x130")](fc("0x49"),n),this[fc("0xad")][fc("0x130")](fc("0xd7"),t),this[fc("0xad")][fc("0x130")]("formatBlock:join",o),this[fc("0xad")][fc("0x130")](fc("0x123"),t),this[fc("0xad")][fc("0x130")](fc("0xac"),t),this._defaultCallbacks[fc("0x130")](fc("0x17a"),((t,e)=>{if(!e)return;const n=this._editor[fc("0xc4")][fc("0x21")](hc);this._model[fc("0x13a")]((o=>{if("$elementName"==e.key)for(const n of t){const t=n.start[fc("0x14b")],r=e.oldValue;o[fc("0xd")](t,r)}else if(n[fc("0xae")](e.key))for(const n of t)void 0!==e[fc("0xc3")]?o[fc("0x17f")](e[fc("0x9")],e[fc("0xc3")],n[fc("0xfd")][fc("0x14b")]):o[fc("0xaa")](e[fc("0x9")],n[fc("0xfd")].nodeAfter);else for(const n of t)e.oldValue?o[fc("0x17f")](e.key,e[fc("0xc3")],n):o.removeAttribute(e[fc("0x9")],n)}))})),this[fc("0xad")].set(fc("0x48"),o)}}function bc(t,e,n){for(const o of e.parent[fc("0x7b")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xec")]==o)return!1;if(!n[fc("0x14")](o))return!1;if(t[fc("0x3")](o)||t[fc("0x16")](o))return!0}return!1}function Ec(t){return t[fc("0x59")].parent==t[fc("0xfd")][fc("0x14b")]&&t[fc("0x59")][fc("0xb1")]}function _c(t,e,n,o){const r=t=>!t.item.is(fc("0x112"))&&!o[fc("0x3")](t[fc("0x105")]),i=t.start[fc("0x53")](r),s=t[fc("0x59")][fc("0x53")](r,{direction:"backward"});return!(t.start[fc("0x10c")](i)&&t[fc("0x59")][fc("0x10c")](s)||(i[fc("0x108")](s)?n[fc("0x4")](e,{range:n[fc("0x135")](i,s)}):n.removeMarker(e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t.start.nodeAfter;return e&&e.is("element")}function Cc(t,e){const n=e.schema[fc("0x3")](t)||e[fc("0x146")][fc("0x15f")](t);return e[fc("0x135")](e[fc("0x28")](t,fc("0x80")),n?e[fc("0x16c")](t):e[fc("0x28")](t,fc("0x59")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x59")].isEqual(o.start))return!0;if(t.type!=e[fc("0x4a")])return!1;if(!n[fc("0x59")][fc("0x8a")](o[fc("0xfd")]))return!1;const i=r[fc("0x135")](n[fc("0x59")],o[fc("0xfd")])[fc("0x13f")]();for(const t of i)if(["elementStart",fc("0x57")][fc("0x154")](t[fc("0x4a")])&&r[fc("0x146")].isLimit(t[fc("0x105")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x15c")]||!e._isDataLoaded)&&Go(t[fc("0x2f")],e.attributes)}function Ic(t,e){const n=Sc(t.attributes),o=Sc(e);if(!t[fc("0x15c")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0xf7")]({},t);return delete e[fc("0x179")],delete e[fc("0xa1")],e}function Rc(t){return fc("0x37")==t[fc("0x4a")]?t.subType[fc("0x7d")]("|")[0]:null}const vc=["execute","_pendingAction","_acceptCommand","commentThreadController","canDiscard","remove","listenTo","PendingActions","unbind","isEnabled","commands","_setPendingAction","change:isDirty","get","canAccept","_discardCommand","getRanges","_editor","isDirty","model","destroy","_removePendingAction","discardSuggestion","view","acceptSuggestion","bind","add"];var Nc,Lc;Nc=vc,Lc=444,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x7")]=e,this.view=n,this[Mc("0x12")]=o,this[Mc("0x5")]=t,this[Mc("0x11")]=t[Mc("0x19")][Mc("0x1")](Mc("0xc")),this[Mc("0x3")]=t[Mc("0x19")][Mc("0x1")]("discardSuggestion"),this[Mc("0xb")][Mc("0xd")]("isEnabled").to(this[Mc("0x11")],this[Mc("0x3")],((t,e)=>t||e)),this.view[Mc("0xd")](Mc("0x2")).to(this[Mc("0x11")],Mc("0x18"),(t=>t&&this[Mc("0x5")][Mc("0x7")].canEditAt(e[Mc("0x4")]()))),this[Mc("0xb")][Mc("0xd")](Mc("0x13")).to(this[Mc("0x3")],"isEnabled",(t=>t&&this[Mc("0x5")][Mc("0x7")].canEditAt(e.getRanges()))),this[Mc("0x10")]=null,n.isDirty&&this[Mc("0x1a")](),this.listenTo(n,Mc("0xc"),(()=>this.acceptSuggestion())),this[Mc("0x15")](n,Mc("0xa"),(()=>this.discardSuggestion())),this[Mc("0x15")](n,Mc("0x0"),(()=>{n[Mc("0x6")]?this._setPendingAction():this._removePendingAction()}))}[Mc("0xc")](){this[Mc("0x11")][Mc("0xf")](this[Mc("0x7")].id)}discardSuggestion(){this[Mc("0x3")][Mc("0xf")](this[Mc("0x7")].id)}[Mc("0x8")](){this[Mc("0xb")][Mc("0x17")](Mc("0x18")),this[Mc("0xb")][Mc("0x17")](Mc("0x2")),this[Mc("0xb")][Mc("0x17")](Mc("0x13")),this.stopListening(),this[Mc("0x12")][Mc("0x8")](),this[Mc("0x10")]&&this[Mc("0x9")]()}[Mc("0x1a")](){const t=Qo(this[Mc("0x5")].locale,"PENDING_ACTION_SUGGESTION");this[Mc("0x10")]=this[Mc("0x5")].plugins[Mc("0x1")](Mc("0x16"))[Mc("0xe")](t)}_removePendingAction(){null!==this[Mc("0x10")]&&this[Mc("0x5")].plugins[Mc("0x1")](Mc("0x16"))[Mc("0x14")](this._pendingAction),this[Mc("0x10")]=null}}const Oc=["isActive","disabledSubmit","length","isReadOnly","_localUser","isDirty","disableComments","showInput","bind","_createCommentThreadInputView","set","_model","assign","_config","descriptionParts","authoredAt","value","element","fire","locale","editor","canAccept","CommentView","commentThreadInputView","delegate","commentInputView","_createCommentViews","commentThread","canDiscard","focus","removeComment","hasDirtyComment","destroy","cancel","commentsListView","updateComment","editorConfig"];var Fc,Dc;Fc=Oc,Dc=355,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,o){super(t),this[Bc("0xc")]=null,this[Bc("0x1")]=null,this.set(Bc("0xf"),!1),this.set(Bc("0x1e"),e.authoredAt),this.bind("authoredAt").to(e),this[Bc("0x19")](Bc("0x1d"),[]),this[Bc("0x19")](Bc("0x14"),!1),this[Bc("0x19")]("isEnabled",!1),this[Bc("0x19")](Bc("0x24"),!1),this[Bc("0x19")](Bc("0x6"),!1),this[Bc("0x1a")]=e,this[Bc("0x13")]=n,this[Bc("0x1c")]=o,o[Bc("0x15")]?this[Bc("0x19")](Bc("0x11"),1):this[Bc("0x4")]()}focus(){this[Bc("0x20")][Bc("0x7")]()}[Bc("0xa")](){this.commentsListView&&this[Bc("0xc")][Bc("0xa")](),this[Bc("0x1")]&&this[Bc("0x1")][Bc("0xa")](),super[Bc("0xa")]()}[Bc("0x4")](){const{CommentsListView:t}=this[Bc("0x1c")];this[Bc("0xc")]=new t(this[Bc("0x22")],this[Bc("0x1a")][Bc("0x5")],Object[Bc("0x1b")]({CommentView:this[Bc("0x1c")][Bc("0x0")]},this[Bc("0x1c")])),this[Bc("0xc")][Bc("0x2")](Bc("0x8")).to(this),this[Bc("0xc")][Bc("0x2")](Bc("0xd")).to(this),this[Bc("0xc")][Bc("0x17")]("isActive").to(this),this[Bc("0x19")](Bc("0x11"),this.commentsListView[Bc("0x11")]+1),this[Bc("0x17")](Bc("0x11")).to(this[Bc("0xc")],Bc("0x11"),(t=>t+1)),this[Bc("0x1")]=this._createCommentThreadInputView(),this.on(Bc("0x8"),(()=>this.focus())),this[Bc("0x17")](Bc("0x14")).to(this[Bc("0xc")],Bc("0x9"),this[Bc("0x1")][Bc("0x3")],Bc("0x1f"),((t,e)=>t||!!e))}[Bc("0x18")](){const{CommentThreadInputView:t}=this[Bc("0x1c")],e=new t(this[Bc("0x22")],this._localUser,this._config[Bc("0xe")]),n=e[Bc("0x3")];return e[Bc("0x17")](Bc("0x16")).to(this,Bc("0xf"),this[Bc("0x1a")].commentThread,Bc("0x12"),n,Bc("0x1f"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x21")]("addComment",e),n[Bc("0x23")].setData("")})),n.on(Bc("0xb"),(()=>this.focus())),n[Bc("0x17")](Bc("0x10")).to(this[Bc("0x1a")][Bc("0x5")],Bc("0x12")),e}}const Uc=["execute","ck-suggestion__info-name",'" title="',"source","extendTemplate","getUserViewNotificationText","editorReady","ck-suggestion-","ck-annotation","innerText","userView","ck-annotation__info-time","ck-suggestion__user","span","_descriptionElement","getExternalSuggestionNote","ck-suggestion-wrapper--active","importWord","cancel","EXTERNAL_IMPORT_WORD_AVATAR","acceptSuggestion","time","isEnabled","render",".ck-annotation__content-wrapper","ck-annotation__actions","author","ck-annotation__content-wrapper","ck-annotation__info-name","split","discardButton","commentThreadInputView","ck-annotation__info","acceptButton","delegate","ck-suggestion__info","editorDestroyed","value","@external","check","isActive","ck-comment__info-time","children","descriptionParts","discardSuggestion",'"></span>',"set","ck-comment__external","type","div","isExternal","disableComments","EXTERNAL_SUGGESTION","<p>","commentsListView","name","bind","createElement","ck-annotation__main","innerHTML","querySelector","ck-annotation__user","description","canAccept","_createButton","canDiscard","title","content","_config","ck-suggestion__actions","_model","formatDateTime",'<span class="ck-suggestion-type">',"join","EXTERNAL_AVATAR","locale","bindTemplate","authoredAt","change:description","color","push","creator"];var jc,Gc;jc=Uc,Gc=499,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,r){super(e,n,o,r),this.set(Vc("0x29"),""),this[Vc("0x31")](Vc("0x29")).to(this,Vc("0x24"),(t=>t&&t[0]?t[0][Vc("0x29")]:"")),this[Vc("0x31")](Vc("0x37")).to(this,Vc("0x24"),this,Vc("0x21"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x2e")+zc(e[Vc("0x3c")],e[Vc("0x48")])+"</p>";return e?n:(0,i.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this._createButton(Qo(e,"Accept suggestion"),t.icons[Vc("0x20")],"ck-suggestion--accept",Vc("0xd"),"sw"),this.acceptButton[Vc("0x31")](Vc("0xf")).to(this,Vc("0x38")),this[Vc("0x17")]=this[Vc("0x39")](Qo(e,"Discard suggestion"),t.icons[Vc("0xb")],"ck-suggestion--discard",Vc("0x25"),"sw"),this[Vc("0x17")][Vc("0x31")](Vc("0xf")).to(this,Vc("0x3a")),this.userView=new i.UserView(e,this[Vc("0x3f")][Vc("0x13")],this[Vc("0x50")]()),this[Vc("0x3")][Vc("0x4f")]({attributes:{class:[Vc("0x5"),Vc("0x36")]}}),this.setTemplate(this.getTemplate())}getTemplate(){const t=this[Vc("0x45")],e=[{tag:Vc("0x2a"),attributes:{class:[Vc("0x1c"),Vc("0x19")]},children:[{tag:"span",children:[{text:this[Vc("0x3")][Vc("0x30")]}],attributes:{class:[Vc("0x4c"),Vc("0x15")]}},{tag:Vc("0xe"),attributes:{datetime:t.to(Vc("0x46")),class:[Vc("0x22"),Vc("0x4")]},children:[{text:t.to(Vc("0x46"),(t=>this._config[Vc("0x40")](t)))}]}]},{tag:Vc("0x2a"),attributes:{class:[Vc("0x3e"),Vc("0x12")]},children:[this[Vc("0x1a")],this.discardButton]},{tag:"div",attributes:{class:[Vc("0x14")]}}];this[Vc("0x3f")].isExternal&&e[Vc("0x49")]({tag:Vc("0x2a"),attributes:{class:[Vc("0x28")]},children:[{text:this[Vc("0x8")]()}]});const n={tag:Vc("0x2a"),attributes:{class:["ck-suggestion-wrapper",t.if(Vc("0x21"),Vc("0x9")),t.to(Vc("0x29"),(t=>Vc("0x0")+t)),this[Vc("0x3d")][Vc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Vc("0x3f")].id,"data-thread-id":this._model.commentThread.id,"data-author-id":this[Vc("0x3f")][Vc("0x13")].id,tabindex:-1},children:[{tag:Vc("0x2a"),attributes:{class:["ck-suggestion",Vc("0x1")]},children:[this[Vc("0x3")],{tag:Vc("0x2a"),attributes:{class:["ck-suggestion__main",Vc("0x33")]},children:e}]}]};return this.commentsListView&&this.commentThreadInputView&&(n[Vc("0x23")][Vc("0x49")](this[Vc("0x2f")],this[Vc("0x18")]),this.commentsListView[Vc("0x1b")](Vc("0x51")).to(this),this[Vc("0x2f")].delegate(Vc("0x1d")).to(this),this[Vc("0x18")].delegate(Vc("0x51")).to(this),this.commentThreadInputView[Vc("0x1b")](Vc("0x1d")).to(this)),n}[Vc("0x10")](){super[Vc("0x10")](),this[Vc("0x7")]=this.element[Vc("0x35")](Vc("0x11")),this._descriptionElement[Vc("0x34")]=this.description,this.on(Vc("0x47"),((t,e,n)=>{this[Vc("0x7")][Vc("0x34")]=n}))}_createButton(t,e,n,o,i){const s=new r.ButtonView(this[Vc("0x44")]);return s[Vc("0x27")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x4f")]({attributes:{class:n}}),s.on(Vc("0x4b"),(()=>{this.fire(o,this[Vc("0x3f")].id)})),s}[Vc("0x8")](){return"importWord"===this[Vc("0x3f")].attributes["@external"][Vc("0x4e")]?Qo(this[Vc("0x44")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Qo(this[Vc("0x44")],Vc("0x2d"))}getUserViewNotificationText(){return this[Vc("0x3f")][Vc("0x2b")]?Vc("0xa")===this[Vc("0x3f")].attributes[Vc("0x1f")][Vc("0x4e")]?Qo(this[Vc("0x44")],Vc("0xc"),this[Vc("0x3f")][Vc("0x4a")].name):Qo(this.locale,Vc("0x43"),this._model[Vc("0x4a")].name):null}}function zc(t,e){let n="";return n+=t[Vc("0x16")]("*").map(((t,e)=>e%2!=0?Vc("0x41")+Wc(t)+"</span>":Wc(t)))[Vc("0x42")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[Vc("0x1e")]+Vc("0x4d")+e[Vc("0x3b")]+Vc("0x26")),n}function Wc(t){const e=document[Vc("0x32")](Vc("0x6"));return e[Vc("0x2")]=t,e[Vc("0x34")]}const Kc=["locale","_viewToController","get","descriptionParts","keys","getRanges","mainView","trackChanges.disableComments","isMultiRange","activeMarkers","getMarkerNames","init","editing","some","_disableComments","getAllAdjacentSuggestions","previous","suggestionUnloaded","discardAllSuggestions","discardButton","_createUIButton","discardSelectedSuggestions","Annotations","getJoined","from","length","_destroyController","getByInnerView","acceptSelectedSuggestions","comments.editorConfig","editor","comments.maxCommentsWhenCollapsed","pluginName","isInContent","plugins","TrackChangesEditing","lowest","size","_unbindEditors","Accept all selected suggestions","view","registerAnnotation","getMarkers","CommentsUI","source","bind","define","_updateController","Discard all suggestions","CommentsRepository","filter","type","commandName","separator","Discard all selected suggestions","componentFactory","_initializeController","listenTo","comments.maxThreadTotalWeight","unbind","config","addComment","_suggestionToController","comments","set","add","getDescriptions","refreshSelectedViews","clear","createCommentThreadController","model","change:previous","execute","isEnabled","stopListening","innerView","suggestionLoaded","push","value","_handleSuggestionControllerDelayed","destroy","head","acceptAllSuggestions","suggestion-","isDirty","has","commands","toMany","delete","CommentView","focus","getSuggestion","createAnnotation","_handleControllerBuffer","buttonView","arrowView","_bindAnnotationToEditors","reduce","acceptButton","_refreshActiveMarkers","values","Accept all suggestions","button","_annotationViews","trackChanges","commentThread","suggestionChanged","trackChanges.SuggestionThreadView","Track changes","EditorAnnotations","_descriptionFactory","createAnnotationView"];var qc,$c;qc=Kc,$c=198,function(t){for(;--t;)qc.push(qc.shift())}(++$c);const Xc=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,i.Users,Xc("0x4b"),Xc("0x30"),Xc("0x17")]}static get[Xc("0x3a")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[Xc("0x1b")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Xc("0x56")];e.define(Xc("0x15"),Hc),e[Xc("0x48")](Xc("0x21"),!1),this[Xc("0x28")]=e[Xc("0x1c")](Xc("0x21"))}[Xc("0x69")](t,e){0===this[Xc("0x7")][Xc("0x3f")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x7")]){const n=this._suggestionToController[Xc("0x6f")](t);n||e?n&&e&&this._destroyController(t):this[Xc("0x52")](t)}this[Xc("0x38")].plugins.get(Xc("0x17"))[Xc("0x5d")](),this[Xc("0xd")](),this._handleControllerBuffer[Xc("0x5e")]()}),10),this[Xc("0x7")].set(t,e)}[Xc("0x25")](){const t=this[Xc("0x38")],e=t.plugins.get(Xc("0x3d")),n=t[Xc("0x3c")].get("Annotations"),o=t.plugins.get(Xc("0x17")),r=t.plugins.get(Xc("0x4b"));t.ui[Xc("0x51")][Xc("0x5b")]("trackChanges",(t=>this[Xc("0x2e")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Xc("0x32")](this._suggestionToController)){const o=e[Xc("0x29")](),r=[];for(const t of o){if(!t[Xc("0x3b")])continue;if(t[Xc("0x22")]){r[Xc("0x67")](...t[Xc("0x1f")]());continue}const e=t.getFirstRange();if(r[Xc("0x33")]>0){const t=r[0][Xc("0x31")](e);if(t){r[0]=t;continue}}r[Xc("0x67")](e)}t[Xc("0x67")]([n[Xc("0x42")],r])}return t})),this[Xc("0x53")](e,Xc("0x66"),((t,e)=>{this[Xc("0x53")](e,Xc("0x61"),((t,n,o,r)=>{e[Xc("0x3b")]&&(null==o?(this[Xc("0x49")](r[Xc("0x6b")]),this[Xc("0x69")](e,!1)):(this._updateController(o[Xc("0x6b")]),null==r&&this[Xc("0x69")](e,!0)))})),null!==e[Xc("0x2a")]?this[Xc("0x49")](e[Xc("0x6b")]):this[Xc("0x69")](e,!1)})),this.listenTo(e,Xc("0x2b"),((t,e,n)=>{this[Xc("0x64")](e,Xc("0x61")),this[Xc("0x7")][Xc("0x2")](e),this._suggestionToController[Xc("0x6f")](e)&&this[Xc("0x34")](e),n&&this[Xc("0x49")](n[Xc("0x6b")])})),this.listenTo(e,Xc("0x14"),((t,e)=>{this[Xc("0x49")](e)})),this[Xc("0x53")](n,"change:activeAnnotations",(()=>{this[Xc("0xd")]()})),this[Xc("0x53")](r,Xc("0x57"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const r=e[Xc("0x5")](n);this[Xc("0x58")][Xc("0x1c")](r)[Xc("0x42")][Xc("0x4")]()}),{priority:Xc("0x3e")})}_refreshActiveMarkers(){const t=this[Xc("0x38")][Xc("0x3c")][Xc("0x1c")](Xc("0x30")),e=this.editor.plugins[Xc("0x1c")](Xc("0x3d")),n=Array.from(t.activeAnnotations,(t=>t[Xc("0x65")]))[Xc("0x4c")]((t=>this[Xc("0x1b")][Xc("0x6f")](t))),o=[];for(const t of n){const e=this[Xc("0x1b")].get(t)[Xc("0x60")][Xc("0x29")]();o[Xc("0x67")](...e[Xc("0xb")](((t,e)=>[...t,...e[Xc("0x24")]()]),[]))}e[Xc("0x23")]=o}[Xc("0x2e")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[Xc("0x0")][Xc("0x1c")]("trackChanges"),i=Qo(t,Xc("0x16"));n[Xc("0x8")][Xc("0x5a")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x8")][Xc("0x47")]("isOn").to(o,Xc("0x68")),n[Xc("0x8")].on(Xc("0x62"),(()=>{o.execute(),this[Xc("0x38")][Xc("0x26")][Xc("0x42")][Xc("0x4")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Xc("0x12")}},{type:Xc("0x4f")},{type:Xc("0x10"),model:{withText:!0,label:Qo(t,Xc("0xf")),commandName:Xc("0x6c")}},{type:Xc("0x10"),model:{withText:!0,label:Qo(t,Xc("0x41")),commandName:Xc("0x36")}},{type:Xc("0x10"),model:{withText:!0,label:Qo(t,Xc("0x4a")),commandName:Xc("0x2c")}},{type:Xc("0x10"),model:{withText:!0,label:Qo(t,Xc("0x50")),commandName:Xc("0x2f")}}];for(const t of x){let e={type:Xc("0x4f")};if(t[Xc("0x60")]){const n=new r.Model(t.model),o=this.editor[Xc("0x0")][Xc("0x1c")](n.commandName);n.bind("isOn",Xc("0x63")).to(o,Xc("0x68"),Xc("0x63")),e={type:t[Xc("0x4d")],model:n}}s[Xc("0x5b")](e)}(0,r.addListToDropdown)(n,s);const a=x[Xc("0x4c")]((t=>null!=t[Xc("0x60")])).map((t=>this[Xc("0x38")][Xc("0x0")][Xc("0x1c")](t[Xc("0x60")][Xc("0x4e")]))),c=n[Xc("0x8")];return c.actionView[Xc("0x55")](Xc("0x63")),c[Xc("0x9")][Xc("0x55")](Xc("0x63")),c.actionView.bind(Xc("0x63")).to(o,Xc("0x63")),c[Xc("0x9")][Xc("0x47")](Xc("0x63"))[Xc("0x1")](a,Xc("0x63"),((...t)=>t[Xc("0x27")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x38")][Xc("0x62")](t[Xc("0x46")][Xc("0x4e")]),this[Xc("0x38")][Xc("0x26")][Xc("0x42")].focus()})),n}_initializeController(t){const e=this[Xc("0x38")],n=e[Xc("0x56")],o=e.plugins[Xc("0x1c")]("Annotations"),r=e[Xc("0x3c")][Xc("0x1c")]("CommentsRepository"),s=e[Xc("0x3c")][Xc("0x1c")](Xc("0x17")),x=e.plugins.get(i.Users).me,a=n[Xc("0x1c")](Xc("0x12")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x3c")][Xc("0x1c")](Xc("0x45"));let u,d;this[Xc("0x11")].has(t.id)?(d=this[Xc("0x11")][Xc("0x1c")](t.id),u=d[Xc("0x20")]):(u=new a(e.locale,t,x,{disableComments:this[Xc("0x28")],editorConfig:n[Xc("0x1c")](Xc("0x37")),maxCommentsWhenCollapsed:n[Xc("0x1c")](Xc("0x39")),maxThreadTotalWeight:n[Xc("0x1c")](Xc("0x54")),maxCommentCharsWhenCollapsed:n[Xc("0x1c")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x1c")](Xc("0x1a"))),CommentView:n.get(Xc("0x59"))[Xc("0x3")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0xc")].on(Xc("0x62"),(()=>{e.editing.view.focus()})),u[Xc("0x2d")].on("execute",(()=>{e[Xc("0x26")][Xc("0x42")].focus()})),d=o[Xc("0x19")](this[Xc("0x38")].locale,u),d[Xc("0x47")](Xc("0x6e")).to(u,Xc("0x6e")),d[Xc("0x47")](Xc("0x33")).to(u),d[Xc("0x47")](Xc("0x4d")).to(u,Xc("0x4d"),(t=>Xc("0x6d")+t)),this[Xc("0x11")].set(t.id,d));const g=r[Xc("0x5f")](t[Xc("0x13")],u),f=new wc(e,t,u,g),m=t[Xc("0x29")]()[Xc("0x4c")]((t=>t[Xc("0x3b")]));u[Xc("0x1d")]=e[Xc("0x3c")].get(Xc("0x3d"))[Xc("0x18")][Xc("0x5c")](m),this[Xc("0x58")].set(t,f),this[Xc("0x1b")][Xc("0x5a")](u,f);const h=o[Xc("0x6")]({view:d,target:()=>{const n=[],o=t[Xc("0x29")]().filter((t=>t[Xc("0x3b")]));for(const t of o)n.push(...t[Xc("0x44")]());return(0,i.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Xc("0x6d")+f.view[Xc("0x4d")]});r[Xc("0xa")](u,h),o[Xc("0x5b")](h),s[Xc("0x43")](h)}[Xc("0x34")](t){const e=this[Xc("0x38")][Xc("0x3c")].get(Xc("0x4b")),n=this[Xc("0x38")][Xc("0x3c")][Xc("0x1c")](Xc("0x30")),o=this[Xc("0x58")][Xc("0x1c")](t),r=o.view,i=n[Xc("0x35")](r);e[Xc("0x40")](r),i&&n.remove(i),this._suggestionToController[Xc("0x2")](t),this[Xc("0x1b")][Xc("0x2")](r),o[Xc("0x6a")]()}[Xc("0x49")](t){if(!t[Xc("0x3b")]||!this[Xc("0x58")][Xc("0x6f")](t))return;const e=this[Xc("0x38")][Xc("0x3c")][Xc("0x1c")](Xc("0x3d")),n=this[Xc("0x58")][Xc("0x1c")](t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Xc("0x18")].getDescriptions(o)}destroy(){for(const t of this._suggestionToController[Xc("0x1e")]())this[Xc("0x34")](t);for(const t of this._annotationViews[Xc("0xe")]())t[Xc("0x20")].destroy();super[Xc("0x6a")]()}}var Yc,Jc,Qc=["get","getSuggestions","plugins","addSuggestionData","adapter","TrackChanges","requires","editor","pluginName","getSuggestion"];Yc=Qc,Jc=161,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x5")](){return[hc,Zc,"Comments"]}static get[tl("0x7")](){return tl("0x4")}set[tl("0x3")](t){this[tl("0x6")][tl("0x1")][tl("0x9")](hc)[tl("0x3")]=t}get[tl("0x3")](){return this[tl("0x6")].plugins[tl("0x9")](hc).adapter}addSuggestion(t){return this[tl("0x6")][tl("0x1")][tl("0x9")](hc)[tl("0x2")](t)}[tl("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x1")][tl("0x9")](hc)[tl("0x0")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x6")].plugins[tl("0x9")](hc)[tl("0x8")](t)}}const nl=["document","getRootNames","appendChild","editor","TrackChangesEditing","getRootsAttributes","getFullData","trackChangesData","plugins","getDataWithDiscardedSuggestions","div","Pagination","getDataWithAcceptedSuggestions","set","users","createDocumentFragment","data","addUser","init","TrackChangesDataGetter","acceptAllSuggestions","_adapter","reduce","trackChangesData.editorCreator","destroy","getUser","pluginName","getSuggestions","end","editorCreator","get","map","name","requires","TrackChangesData","config","push","model"];var ol,rl;ol=nl,rl=413,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0x10")];class xl extends t.Plugin{static get[il("0x0")](){return[hc]}static get[il("0x1f")](){return il("0x1")}[il("0x17")](){const t=this[il("0x8")];if(t[il("0x2")].define(il("0x1c"),(e=>{const n=t[il("0x4")][il("0x5")][il("0x6")]()[il("0x1b")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),"function"!=typeof t[il("0x2")][il("0x23")](il("0xc"))[il("0x22")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[il("0x11")](t){return ll(this.editor,!0,t)}[il("0xe")](t){return ll(this[il("0x8")],!1,t)}}class al extends t.Plugin{static get pluginName(){return il("0x18")}constructor(t){super(t),this.result=il("0x21")}[il("0x17")](){this[il("0x8")].plugins.get("CommentsRepository")[il("0x1a")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0x8")][il("0xd")][il("0x23")](il("0x9"))[il("0x1a")]=null}}function cl(t){return void 0!==t[il("0xa")]}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o[il("0xd")][il("0x3")](hc,al),o.rootsAttributes=cl(t)?t.getRootsAttributes():void 0;const r=document[il("0x14")](),s=t.config[il("0x23")]("trackChangesData")[il("0x22")],x=await s(o,(()=>function(t){const e=document.createElement(il("0xf"));return t[il("0x7")](e),e}(r)));!function(t,e){const n=t[il("0x4")].document[il("0x6")]()[il("0x1b")](((e,n)=>(e[n]=t[il("0x15")][il("0x23")]({rootName:n}),e)),{}),o=t[il("0xd")][il("0x23")]("Users")[il("0x13")][il("0x24")]((t=>({id:t.id,name:t[il("0x25")]}))),r=t[il("0xd")][il("0x23")](il("0x9"))[il("0x20")]({skipNotAttached:!0,toJSON:!0}),i=e.plugins[il("0x23")]("Users"),s=e.plugins[il("0x23")](il("0x9"));for(const t of o)i[il("0x1e")](t.id)||i[il("0x16")](t);i.me||i.useAnonymousUser();for(const t of r)s.addSuggestionData(t);e[il("0x15")][il("0x12")](n)}(t,x),x.execute(e?il("0x19"):"discardAllSuggestions");const a=cl(x)?x[il("0xb")](n):x.data.get(n);return await x[il("0x1d")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|