@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230723.0 → 0.0.0-nightly-20230725.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/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesdata.d.ts +4 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -0
- 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(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","TrackChangesCommand","commands","_enableCommands","affectsData","_enabledCommands","refresh","_disableUnsupportedCommands","has","value","isEnabled","forceDisabled"];var c,l;c=a,l=453,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x8")]=e,this.value=!1,this[d("0x9")](),this._isEnabledBasedOnSelection=!1}[d("0x9")](){this[d("0x1")]=!0}execute(){this[d("0x0")]=!this.value,this.value?this._disableUnsupportedCommands():this._enableCommands()}[d("0xa")](){for(const t of this[d("0x3")].commands[d("0x5")]())t[d("0x7")]&&!this[d("0x8")][d("0xb")](t)&&t[d("0x2")](d("0x4"))}[d("0x6")](){for(const t of this[d("0x3")][d("0x5")][d("0x5")]())t.affectsData&&!this._enabledCommands[d("0xb")](t)&&t.clearForceDisabled(d("0x4"))}}const g=["canEditAt","getRanges","editor","model","acceptSuggestion","_suggestions","get","_isEnabledBasedOnSelection","execute","refresh"];var m,f;m=g,f=154,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this.refresh(),this[h("0x3")]=!1}[h("0x5")](){this.isEnabled=!0}[h("0x4")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x7")]();this.editor[h("0x9")][h("0x6")](o)&&this[h("0x8")].plugins[h("0x2")]("TrackChangesEditing")[h("0x0")](n)}}const b=["editor","getRanges","refresh","get","model","_suggestions","isEnabled","canEditAt","TrackChangesEditing","execute","discardSuggestion"];var E,_;E=b,_=387,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x3")]=e,this[T("0x0")](),this._isEnabledBasedOnSelection=!1}[T("0x0")](){this[T("0x4")]=!0}[T("0x7")](t){const n=this[T("0x3")][T("0x1")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x9")][T("0x2")][T("0x5")](o)&&this[T("0x9")].plugins[T("0x1")](T("0x6"))[T("0x8")](n)}}const y=["createPositionAt","deletion","color","start","type","add"," [color ","isInContent","join","createPositionAfter","isCollapsed","replace","value","isMultiRange","execute","isArray","end","change","isTouching","createPositionBefore","content","next","isObject","getMarkers","length","schema","map","isIntersecting","createRange","getRange","sort"];var k,A;k=y,A=242,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x5")](((t,e)=>v("0x7")==t[v("0xa")]&&v("0x7")!=e.type?-1:v("0x7")!=t[v("0xa")]&&v("0x7")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x0")];for(;o<t[v("0x1e")];){const i=t[o],x=t[o+1];n||(n=e[v("0x19")](i)),I(e,i,x)||(s.push(e[v("0x3")](n,r[v("0x1c")](i)?e.createPositionAfter(i):e[v("0x6")](i,v("0x16")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0x19")](n);return o[v("0x18")](s)}function L(t,e,n){for(;n[v("0x1e")];){const o=n.splice(0,100);t[v("0x17")]((()=>{for(const t of o)t[v("0xd")]&&e[v("0x14")](t.id)}))}}const N=["isInContent","values","getRanges","canEditAt","refresh","_suggestions","isEnabled","_isEnabledBasedOnSelection","_command","model","from","editor","execute","some"];var w,M;w=N,M=419,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x9")]=e,this[O("0x6")]=n,this[O("0x5")](),this[O("0x8")]=!1}refresh(){const t=Array[O("0xb")](this[O("0x6")][O("0x2")]())[O("0x0")]((t=>t[O("0x1")]));this[O("0x7")]=this[O("0x9")][O("0x7")]&&t}[O("0xd")](){const t=R(Array[O("0xb")](this._suggestions[O("0x2")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xc")][O("0xa")][O("0x4")](t))return}L(this[O("0xc")][O("0xa")],this[O("0x9")],t)}}const P=["size","execute","values","refresh","from","editor","_command","_suggestions","_selectedSuggestions","_isEnabledBasedOnSelection","isEnabled","canEditAt","model","selection"];var D,B;D=P,B=482,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this[j("0x1")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xd")][j("0x6")].document[j("0x7")],e=Array[j("0xc")](this[j("0x1")][j("0xa")]());this[j("0x2")]=function(t,e){const n=Array.from(t.getRanges()),o=new Set;for(const s of e)if(s[v("0xd")])for(const e of n)for(const n of s[v("0x1d")]()){const r=n[v("0x4")]();(e[v("0x2")](r)||t[v("0x10")]&&!s[v("0x13")]&&s[v("0x1b")]&&r[v("0x16")][v("0x18")](e[v("0x9")]))&&o[v("0xb")](s)}return o}(t,e),this[j("0x4")]=this._command[j("0x4")]&&!!this._selectedSuggestions[j("0x8")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0x2")]));for(const e of t){const t=e.getRanges();if(!this[j("0xd")].model[j("0x5")](t))return}L(this.editor[j("0x6")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isInContent","from","end","split","author","substr","clear","onAccept","set","start","size","suggestion:","_onAttributesChange","reduce","_onDiscard","commentThread","createdAt","accept","decorate","next","getMarkerNames","discard","getMarkers","creator","isExternal","@external","getRanges","_onAccept","delete","attributes","_saved","onAttributesChange","length","change","_markerNames","filter","type","push","onDiscard","toJSON","setAttribute","addRange","removeMarker","getMultiRangeId","removeMarkers","head","getFirstRange","data","getFirstMarker","addMarkerName","_model","previous","subType","addMarker","hasComments","getRange","map"];var $o,Jo;$o=Xo,Jo=320,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x1")],this[Qo("0x11")]=e[Qo("0x11")]||null,this.author=e[Qo("0x1a")],this[Qo("0x2d")]=e[Qo("0x2d")]||e[Qo("0x1a")],this[Qo("0x2e")]=Boolean(e[Qo("0x33")]&&e[Qo("0x33")][Qo("0x2f")]),this[Qo("0xc")]=null,this[Qo("0xf")]=t,this[Qo("0x31")]=e[Qo("0x1d")],this[Qo("0x24")]=e[Qo("0x3")],this[Qo("0x22")]=e[Qo("0x35")],this[Qo("0x38")]=new Set,this[Qo("0x26")]=null,this.set("authoredAt",null),this[Qo("0x1e")](Qo("0x33"),e[Qo("0x33")]||{}),this[Qo("0x1e")](Qo("0x10"),null),this[Qo("0x1e")](Qo("0x29"),null),this[Qo("0x1e")](Qo("0x25"),null),this[Qo("0x1e")](Qo("0x34"),!1),this.decorate(Qo("0x27")),this[Qo("0x28")](Qo("0x2b"))}get[Qo("0xa")](){let t=this;for(;t[Qo("0x10")];)t=t.previous;return t}get[Qo("0x13")](){return!!this[Qo("0x25")]&&this[Qo("0x25")].length>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x20")]&&6==Array[Qo("0x17")](this[Qo("0x38")])[0][Qo("0x19")](":")[Qo("0x36")]}get[Qo("0x16")](){return null!==this.getFirstMarker()}[Qo("0xe")](t){this[Qo("0x38")].add(t)}[Qo("0x2a")](){return Array[Qo("0x17")](this[Qo("0x38")])}[Qo("0x2c")](){return this[Qo("0x2a")]()[Qo("0x15")]((t=>this[Qo("0xf")].markers.get(t)))[Qo("0x0")]((t=>t))}getFirstMarker(){return this[Qo("0x2c")]()[0]||null}removeMarkers(){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x2c")]())t[Qo("0x7")](e)})),this[Qo("0x38")][Qo("0x1c")]()}[Qo("0x7")](t){this[Qo("0xf")][Qo("0x37")]((e=>{e[Qo("0x7")](t)})),this[Qo("0x38")][Qo("0x32")](t)}[Qo("0x6")](t){const e=Qo("0x21")+this[Qo("0x1")]+":"+this[Qo("0x11")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0xe")](e),this[Qo("0xf")][Qo("0x37")]((n=>{n[Qo("0x12")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Qo("0x30")](){return this[Qo("0x2c")]()[Qo("0x15")]((t=>t.getRange()))}getItems(){return this[Qo("0x30")]()[Qo("0x23")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0xb")](){var t;return(null===(t=this[Qo("0xd")]())||void 0===t?void 0:t[Qo("0x14")]())||null}getContainedElement(){const t=this[Qo("0x30")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x1f")].nodeAfter,o=e[Qo("0x18")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x27")](){this[Qo("0x31")](this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x30")](),this[Qo("0xc")],this.attributes),this[Qo("0x9")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0xa")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}[Qo("0x5")](t,e){const n=eo(this[Qo("0x33")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x33")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this[Qo("0x33")]);qo(e,t),Go(e,this.attributes)||(this[Qo("0x33")]=e,this[Qo("0x22")](this[Qo("0x33")]))}[Qo("0x4")](){return{id:this.id,type:this[Qo("0x11")]?this[Qo("0x1")]+":"+this[Qo("0x11")]:this[Qo("0x1")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Qo("0x13")],data:this.data,attributes:this[Qo("0x33")]}}static[Qo("0x8")](){return(0,e.uid)()[Qo("0x1b")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["previousSibling","pop","item","removeContainer","removeObject","getWalker","_customCallbacks","ELEMENT_SPACE","removeEmptyContainer","*Split:* %0","EmptyContainer","$textProxy","remove","_locale","addEmptyContainer","match","deletion","insertion","addObject","*Merge:* %0","text","elementEnd","$1 $2","getFirstRange","get","set","Object","getDescriptions","type","add","matchingCallback","name","function","*Remove:* %0","checkChild","quantity","_itemLabels","isObject","_addDescriptionItems","isEqual","Container","skip","data","_itemLabelsCallbacks","_resolveDescriptionItems","replace","$text","label","start","indexOf","nextSibling","push","REPLACE_TEXT","_schema","length","element","getItemLabel","elementStart","*Insert:* %0","isEmpty","addContainer"];var es,ns;es=ts,ns=418,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0xf")]=[],this[os("0x2d")]=new Map,this[os("0x34")]=[],this[os("0x1")]=t,this[os("0x16")]=e}[os("0x24")](t){const e=[];for(let n=0;n<t[os("0x2")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0xf")]){const n=t(o);if(n){os("0x25")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2f")](e,o);const s=t[n+1];if(s&&!o[os("0x20")]().end[os("0x30")](s.getFirstRange()[os("0x39")])){const t=e[e[os("0x2")]-1],n=os("0x1a")==o[os("0x25")]?os("0x26"):os("0x15");t&&"text"==t[os("0x25")]&&(t[n]+="\n")}}}return this[os("0x35")](e)}registerDescriptionCallback(t){this[os("0xf")].push(t)}registerElementLabel(t,n,o=e.priorities.normal){os("0x29")==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this[os("0x2d")][os("0x22")](t,n)}[os("0x4")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0x27")](t)){n=e[os("0x38")];break}return n||(n=this._itemLabels[os("0x21")](t[os("0x28")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x28")]}[os("0x2f")](t,e){const n=e[os("0x20")]()[os("0xe")](),o=os("0x1a")==e[os("0x25")]?"add":os("0x15");for(const e of n){const s=e[os("0xb")],r=t[t[os("0x2")]-1];if(s.is(os("0x14")))r&&r[os("0x25")].indexOf("Container")>-1&&t[os("0xa")](),r&&os("0x1d")==r.type?r[o]+=s[os("0x33")]:t[os("0x3c")]({type:"text",add:os("0x26")==o?s[os("0x33")]:"",remove:os("0x15")==o?s[os("0x33")]:""});else if(this[os("0x1")][os("0x2e")](s)){const i=s;if(r&&r[os("0x25")].indexOf(os("0x31"))>-1&&t[os("0xa")](),os("0x1e")==e[os("0x25")])continue;r&&r[os("0x25")]==o+os("0x23")&&r.element.name==i[os("0x28")]?r.quantity++:t[os("0x3c")]({type:o+os("0x23"),element:i,quantity:1}),n[os("0x32")]((t=>!(os("0x1e")==t.type&&t[os("0xb")]==s)))}else if(this[os("0x1")][os("0x2b")](s,os("0x37"))||s.is(os("0x3"),"softBreak")){const n=s;if(os("0x26")==o&&os("0x5")==e[os("0x25")]||os("0x15")==o&&os("0x1e")==e.type)continue;if(r&&-1==r.type[os("0x3a")](os("0x31"))){os("0x1d")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x26")==o?n[os("0x3b")]&&!this[os("0x1")][os("0x2e")](n.nextSibling)?n[os("0x3b")]:null:n[os("0x9")]&&!this[os("0x1")][os("0x2e")](n[os("0x9")])?n[os("0x9")]:null,n[os("0x7")]||i&&i[os("0x7")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x25")]==o+os("0x13")&&r[os("0x3")][os("0x28")]==e[os("0x28")]?r[os("0x2c")]++:t[os("0x3c")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+os("0x31"),element:n})}}}[os("0x35")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x25")]){case os("0x1d"):if(o[os("0x26")]=o[os("0x26")][os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f")).replace(/\u000A/g,""),o[os("0x15")]=o.remove[os("0x36")](/(\S)\u000A+(\S)/g,os("0x1f"))[os("0x36")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x15")]){n[os("0x3c")]({type:os("0x36"),content:Yo(e,os("0x0"),['"'+o.remove+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),Yo(e,os("0x10"),o[os("0x26")][os("0x2")]))});continue}if(null!=o[os("0x15")][os("0x18")](/^ +$/)){n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x2a"),Yo(e,os("0x10"),o[os("0x15")].length))});continue}if(""!=o.add){n[os("0x3c")]({type:"insertion",content:Yo(e,os("0x6"),'"'+o[os("0x26")]+'"')});continue}n.push({type:os("0x19"),content:Yo(e,os("0x2a"),'"'+o[os("0x15")]+'"')});continue;case os("0x17"):case os("0x1b"):n[os("0x3c")]({type:os("0x1a"),content:Yo(e,os("0x6"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x11"):case os("0xd"):n.push({type:os("0x19"),content:Yo(e,os("0x2a"),this[os("0x4")](o.element,o[os("0x2c")]))});continue;case os("0x8"):n.push({type:os("0x1a"),content:Yo(e,os("0x12"),this.getItemLabel(o[os("0x3")],o[os("0x2c")]))});continue;case os("0xc"):n[os("0x3c")]({type:os("0x19"),content:Yo(e,os("0x1c"),this[os("0x4")](o.element,o[os("0x2c")]))});continue}n[os("0x3c")](o)}return n}}const rs=["AlignmentEditing","FORMAT_JUSTIFY_TEXT","afterInit","value","editor","model","TrackChangesEditing","right","checkAttribute","locale","schema","getSelectedBlocks","center","plugins","_descriptionFactory","contentLanguageDirection","commandParams","change","justify","FORMAT_ALIGN_TO_CENTER","format","commandName","enableCommand","FORMAT_ALIGN_TO_RIGHT","alignment","markBlockFormat","FORMAT_ALIGN_TO_LEFT","left","document","registerDescriptionCallback","has","ltr","from","selection"];var is,xs;is=rs,xs=373,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this[as("0x5")],e=t[as("0xa")];if(!t[as("0xe")][as("0x1f")](as("0x1")))return;const n=t[as("0xe")].get(as("0x7"));n[as("0x17")](as("0x19"),((e,o={})=>{let s=o.value;o[as("0x4")]||(s=as("0x20")===t[as("0xa")][as("0x10")]?as("0x1c"):as("0x8"));const r=Array[as("0x21")](this[as("0x5")][as("0x6")][as("0x1d")][as("0x0")][as("0xc")]()).filter((t=>function(t,e,n){const o=t.getAttribute(as("0x19"))||null;return e[as("0x9")](t,as("0x19"))&&n!=o}(t,this.editor[as("0x6")][as("0xb")],s)));t[as("0x6")][as("0x12")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:as("0x19"),commandParams:[{value:s}]})}))})),n[as("0xf")][as("0x1e")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x16")]){const t=n[as("0x11")][0].value;return{type:as("0x15"),content:Yo(e,"*Format:* %0",function(t){switch(t){case as("0x1c"):return Yo(e,as("0x1b"));case as("0x8"):return Yo(e,as("0x18"));case as("0xd"):return Yo(e,as("0x14"));case as("0x13"):return Yo(e,as("0x2"))}}(t))}}}))}}const ls=["TrackChangesEditing","isContent","ck-suggestion-marker-","toViewElement","createRangeOn","type","ck-suggestion-marker--active","model","test","nextSibling","activeMarkers","writer","item","isBlock","getAttribute","isAtEnd","mapper","includes","consumable","element","start","markerRange","previousPosition","listItem","getItems","name","listIndent","span","parent","toViewPosition","getCustomProperty","bindElementToMarker","addClass","markerName","schema","insert","createUIElement"];var ds,us;ds=ls,us=279,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x4")]())s.hasAttribute(t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x3"))){let n=t[gs("0x1a")];for(;n&&n.is(gs("0x24"),gs("0x3"))&&n[gs("0x1f")](gs("0x6"))>0;)e.push(n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get(gs("0x11"));return(s,r,i)=>{if(!i[gs("0x23")][gs("0x19")](r[gs("0x1")],s[gs("0x5")]))return;const x=r[gs("0x1")].getWalker(),a=r.markerRange[gs("0x0")],c=t[gs("0x18")][gs("0xe")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x1d")];u=u||c[gs("0x12")](e);const n=i[gs("0x21")][gs("0x14")](e);if(n&&n[gs("0xa")]("addHighlight"))return;"elementEnd"==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c.isLimit(e)&&(e.nextSibling||a[gs("0x20")]?l&&l[gs("0x8")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x2")])}function m(t){const s=i[gs("0x1c")][gs("0x10")](gs("0x7"),{class:gs("0x13")+e}),x=i.mapper[gs("0x9")](t);n&&o[gs("0x1b")][gs("0x22")](r[gs("0xd")])&&i[gs("0x1c")][gs("0xc")](gs("0x17"),s),i.writer[gs("0xf")](x,s),i[gs("0x21")][gs("0xb")](s,r[gs("0xd")])}u||g||!d||m(d)}}const ps=["afterInit","model","FORMAT_UNDERLINE","StrikethroughEditing","FORMAT_BOLD","get","code","FORMAT_SUPERSCRIPT","UnderlineEditing","FORMAT_CODE","SuperscriptEditing","format","markInlineFormat","subscript","editor","TrackChangesEditing","bold","slice","forceValue","isCollapsed","*Remove format:* %0","plugins","getRanges","value","FORMAT_ITALIC","FORMAT_SUBSCRIPT","strikethrough","from","change","toLowerCase","locale","underline","SubscriptEditing","commands","FORMAT_STRIKETHROUGH","superscript","_descriptionFactory","ItalicEditing","has","registerDescriptionCallback","document"];var bs,Es;bs=ps,Es=209,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x21"),_s("0x4"),"CodeEditing",_s("0x28"),_s("0x1c"),_s("0x6")];class Cs extends t.Plugin{[_s("0x25")](){const t=this[_s("0xa")],e=t[_s("0x26")],n=t[_s("0x11")][_s("0x1")](_s("0xb")),o=t[_s("0x1a")];for(const o of Ts){if(!t[_s("0x11")][_s("0x22")](o))continue;const s=o[_s("0xd")](0,-7)[_s("0x19")](),r=t[_s("0x1d")][_s("0x1")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x24")].selection;if(i[_s("0xf")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xe")]:!r[_s("0x13")];e[_s("0x18")]((()=>{const t=Array[_s("0x17")](i[_s("0x12")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x20")][_s("0x23")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0xe")]?{type:_s("0x7"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x7"),content:Yo(o,_s("0x10"),e)}}))}s(_s("0xc"),Yo(o,_s("0x0"))),s("italic",Yo(o,_s("0x14"))),s(_s("0x1b"),Yo(o,_s("0x27"))),s(_s("0x2"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,_s("0x1e"))),s(_s("0x9"),Yo(o,_s("0x15"))),s(_s("0x1f"),Yo(o,_s("0x3")))}}const ys=["afterInit","*Format:* %0","blockQuote","plugins","_descriptionFactory","forceValue","from","name","has","parent","checkChild","enableCommand","document","schema","TrackChangesEditing","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","locale","value","selection","getSelectedBlocks","model","commands","get","editor","markBlockFormat","filter","commandParams","format"];var ks,As;ks=ys,As=110,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x1")],e=t[vs("0x17")];if(!t[vs("0x9")][vs("0xe")]("BlockQuoteEditing"))return;const n=t.plugins[vs("0x0")](vs("0x14")),o=this.editor[vs("0x1c")].get(vs("0x8"));n[vs("0x11")](vs("0x8"),((e,s={})=>{const r=this[vs("0x1")][vs("0x1b")][vs("0x12")][vs("0x19")],i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)||function(t,e){const n=e[vs("0x10")](t[vs("0xf")],vs("0x8")),o=e.checkChild(["$root",vs("0x8")],t);return n&&o}(t,this[vs("0x1")][vs("0x1b")][vs("0x13")])));x=S(e,t[vs("0x1b")])}else{const e=Array[vs("0xc")](r[vs("0x1a")]())[vs("0x3")]((t=>Ss(t)));x=S(e,t[vs("0x1b")])}t[vs("0x1b")].change((()=>{for(const t of x)n[vs("0x2")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x8")==n.commandName){const t=Yo(e,vs("0x16"));return n[vs("0x4")][0][vs("0xb")]?{type:vs("0x5"),content:Yo(e,vs("0x7"),t)}:{type:vs("0x5"),content:Yo(e,vs("0x15"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0xf")][vs("0xd")]}const Is=["get","afterInit","editor","ckbox","TrackChangesEditing","plugins","commands"];var Ls,Ns;Ls=Is,Ns=350,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x1")](){const t=this[ws("0x2")];t[ws("0x6")][ws("0x0")](ws("0x3"))&&t[ws("0x5")][ws("0x0")](ws("0x4")).enableCommand(ws("0x3"))}}const Os=["get","language","selection","blockName","config","editor","parent","CodeBlock","registerDescriptionCallback","filter","registerElementLabel","enableCommand","TrackChangesEditing","name","model","getSelectedBlocks","ELEMENT_CODE_BLOCK","checkChild","afterInit","from","change","outdentCodeBlock","indentCodeBlock","*Remove format:* %0","markBlockFormat","languages","commandParams","codeBlock","_descriptionFactory","forceValue","find","format","plugins"];var Fs,Ps;Fs=Os,Ps=131,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x13")](){const t=this[Ds("0x6")];if(!t[Ds("0x0")].has(Ds("0x8")))return;const e=t[Ds("0x0")].get(Ds("0xd")),n=t.locale,o=t[Ds("0x5")][Ds("0x1")]("codeBlock")[Ds("0x1a")],s=t.commands.get(Ds("0x1c"));e[Ds("0xc")](Ds("0x17")),e[Ds("0xc")](Ds("0x16")),e[Ds("0xc")]("codeBlock",((n,r={})=>{const i=t.model,x=t[Ds("0xf")].document[Ds("0x3")],a=r&&void 0!==r[Ds("0x1e")]?r.forceValue:!s.value;let c;r[Ds("0x2")]||(r.language=o[0][Ds("0x2")]),c=a?Array[Ds("0x14")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n.isLimit(e)&&n[Ds("0x12")](e[Ds("0x7")],"codeBlock"));var e,n})):Array[Ds("0x14")](x[Ds("0x10")]())[Ds("0xa")]((t=>js(t)));const l=S(c,i);i[Ds("0x15")]((()=>{for(const t of l)e[Ds("0x19")](t,{commandName:Ds("0x1c"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x4")})}))})),e[Ds("0x1d")][Ds("0xb")]("codeBlock",(t=>Yo(n,Ds("0x11"),t))),e[Ds("0x1d")][Ds("0x9")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r.commandName){const t=r[Ds("0x1b")][0][Ds("0x2")],s=e(o[Ds("0x1f")]((e=>e[Ds("0x2")]===t)).label);return r[Ds("0x1b")][0][Ds("0x1e")]?{type:Ds("0x20"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x20"),content:Yo(n,Ds("0x18"),Yo(n,Ds("0x11"),1))}}}))}}function js(t){return Ds("0x1c")==t[Ds("0xe")]}const Us=["afterInit","TrackChangesEditing","addCommentThread","has","CommentsEditing","enableCommand","plugins"];var Gs,Hs;Gs=Us,Hs=449,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x6")](){const t=this.editor;t[zs("0x5")][zs("0x2")](zs("0x3"))&&t.plugins.get(zs("0x0"))[zs("0x4")](zs("0x1"))}}var Vs=n(181);const Ks=["options","createSelection","writer","batch","setSelection","downcastDispatcher","bind","deleteForward","createRange","markerName","selection","model","addMarker:suggestion:deletion","remove","markerNameToElements","TrackChangesEditing","isCollapsed","merge","mapper","uiElement","unbindElementFromMarkerName","fromRange","showSuggestionHighlights","enableCommand","init","rootName","editing","buffer","modifySelection","lock","get","start","removeMarker:suggestion:deletion","unit","high","end","unlock","detach","plugins","getFirstRange","commands","$graveyard","forward"];var qs,Xs;qs=Ks,Xs=359,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x9")](){const t=this.editor,e=t[$s("0x17")][$s("0xf")]($s("0x0"));e[$s("0x8")]("delete");const n=t[$s("0x19")].get("deleteForward");e.enableCommand($s("0x23"),((e,o={})=>{const s=t[$s("0x27")][$s("0x1d")](t[$s("0x27")].document[$s("0x26")]);s[$s("0x1")]&&t[$s("0x27")][$s("0xd")](s,{direction:$s("0x1b"),unit:o[$s("0x12")]});const r=s[$s("0x18")](),x=i.LiveRange[$s("0x6")](r);let a;e(o),a=$s("0x1a")==x.root[$s("0xa")]?t[$s("0x27")][$s("0x24")](r[$s("0x10")]):t[$s("0x27")][$s("0x24")](x[$s("0x10")],x[$s("0x14")]),x[$s("0x16")](),t[$s("0x27")].enqueueChange(n[$s("0xc")][$s("0x1f")],(t=>{n[$s("0xc")][$s("0xe")](),t[$s("0x20")](t[$s("0x24")](a[$s("0x14")])),n[$s("0xc")][$s("0x15")]()}))})),t[$s("0xb")][$s("0x21")].on($s("0x28"),hs(t,$s("0x2")),{priority:$s("0x13")}),t.data.downcastDispatcher.on($s("0x28"),((e,n,o)=>{o[$s("0x1c")][$s("0x7")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x22")](this)(e,n,o)}),{priority:$s("0x13")}),t[$s("0xb")][$s("0x21")].on($s("0x11"),((t,e,n)=>{const o=n[$s("0x3")][$s("0x2a")](e[$s("0x25")]);if(o)for(const t of o)t.is($s("0x4"))&&(n[$s("0x3")][$s("0x5")](t,e.markerName),n[$s("0x1e")][$s("0x29")](t))}),{priority:$s("0x13")})}}const Qs=["map","hasAttribute","containsItem","commandName","markMultiRangeBlockFormat","execute","schema","*Outdent:* %0","plugins","previousSibling","registerCustomCallback","*Merge:* %0","indentList","splitListItemBefore","end","isFirstBlockOfListItem","add","isObject","DocumentListUtils","registerElementLabel","getSelectedBlocks","createRange","enableCommand","ELEMENT_NUMBERED_LIST","document","numberedList","before","documentList","createPositionAt","nextSibling","*Format:* remove from %0","multipleBlocks","refresh","*Indent:* %0","value","registerDescriptionCallback","has","model","format","parent","expandListBlocksToCompleteList","slice","change","_suggestionFactory","listItemId","fromRange","toUpperCase","listType","from","nodeAfter","length","bulletedList","TrackChangesEditing","formatBlock","commands","_descriptionFactory","afterInit","setSelection","start","forceValue","_LIST","mergeListItemForward","push","commandParams","getAttribute","editor","get","ELEMENT_BULLETED_LIST","getFirstRange","ELEMENT_","markBlockFormat","listIndent","selection","outdentList","*Format:* insert into %0","ELEMENT_LIST_ITEM","splitListItemAfter","*Change to:* %0"];var Zs,Ys;Zs=Qs,Ys=397,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x31")](){const t=this[tr("0x3a")];if(!t.plugins[tr("0x1d")]("DocumentListEditing"))return;const e=t.locale,n=t.plugins[tr("0x3b")](tr("0x2d")),o=t[tr("0x1")][tr("0x3b")](tr("0xb"));function s(e){return()=>{const s=t[tr("0x2f")][tr("0x3b")](e);let r=Array[tr("0x29")](t[tr("0x1e")][tr("0x11")][tr("0x41")].getSelectedBlocks());if(a(e)){r=o[tr("0x21")](r);const t=[];for(const e of r)o[tr("0x8")](e)&&t[tr("0x37")](e);r=t}t.model[tr("0x23")]((()=>{n[tr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1b")]}],formatGroupId:tr("0x28")},[],tr("0x14"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x48")](tr("0x25"))));return n>-1&&(e=e[tr("0x22")](0,n)),e}(t[tr("0x1e")].document[tr("0x41")][tr("0xd")]()),s=o[o[tr("0x2b")]-1],r=t[tr("0x1e")][tr("0x4d")][tr("0xa")](s)?"after":tr("0x7"),i=t[tr("0x1e")][tr("0xe")](t.model[tr("0x15")](o[0],tr("0x13")),t[tr("0x1e")][tr("0x15")](s,r));t.model[tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x28")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x39")](tr("0x40"))>n.getAttribute(tr("0x40"));)e[tr("0x9")](t),t=t.nextSibling}return Array[tr("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x1e")][tr("0x11")].selection[tr("0xd")]().next()[tr("0x1b")],s=t[tr("0x1e")][tr("0x15")](o,tr("0x13")),r=t[tr("0x1e")].createPositionAt(o,0),i=t[tr("0x1e")][tr("0xe")](s,r);t[tr("0x1e")][tr("0x23")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x2f")][tr("0x3b")](tr("0x2c"))[tr("0x1b")],o=t[tr("0x2f")].get(tr("0x12"))[tr("0x1b")];return"numberedList"===e?n:o}n[tr("0xf")](tr("0x12"),s(tr("0x12"))),n[tr("0xf")](tr("0x2c"),s(tr("0x2c"))),n[tr("0xf")]("indentList",r(tr("0x5"))),n[tr("0xf")](tr("0x42"),r(tr("0x42"))),n.enableCommand(tr("0x45"),x(tr("0x45"))),n[tr("0xf")](tr("0x6"),x(tr("0x6"))),n._descriptionFactory[tr("0xc")]((function(e){const n=!t.model[tr("0x4d")][tr("0xa")](e),o=e[tr("0x2")],s=e[tr("0x16")],r=e.getAttribute("listItemId"),i=!o||o[tr("0x39")](tr("0x25"))!==r,x=!s||s.getAttribute(tr("0x25"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x44"),t))),n[tr("0x30")][tr("0x1c")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x3c")))};break;case tr("0x12"):r=n[tr("0x38")][0][tr("0x34")],i=a(n[tr("0x4a")]),o=tr(r?"0x43":"0x17"),i&&(o=tr("0x46")),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x10")))};break;case tr("0x5"):o=tr("0x1a"),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,tr("0x44")))};break;case tr("0x42"):o=function(t){const e=t.getFirstRange();let n=e.start.nodeAfter;for(;n&&e[tr("0x49")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x3d")]()[tr("0x33")][tr("0x2a")];return tr("0x3e")+e[tr("0x39")](tr("0x28"))[tr("0x27")]()+tr("0x35")}(t))):Yo(e,tr("0x0"),Yo(e,tr("0x44"))),s={type:tr("0x1f"),content:o};break;case"mergeListItemBackward":case tr("0x36"):!1===n[tr("0x18")]&&(o=tr("0x4"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x44")))})}return s})),n[tr("0x24")][tr("0x3")](tr("0x2e"),tr("0x14"),"accept",(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[tr("0x20")]&&(n=t[tr("0x1e")][tr("0xe")](t[tr("0x1e")][tr("0x15")](n[tr("0x33")].nodeAfter,0))),o[tr("0x37")](n);t[tr("0x1e")][tr("0x23")]((e=>{const s=t.model[tr("0x11")][tr("0x41")],r=Array[tr("0x29")](s.getRanges())[tr("0x47")]((t=>i.LiveRange[tr("0x26")](t)));e[tr("0x32")](o),t.commands[tr("0x3b")](n[tr("0x4a")])[tr("0x19")](),n[tr("0x38")][tr("0x37")]({forceDefaultExecution:!0}),t[tr("0x4c")](n[tr("0x4a")],...n[tr("0x38")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["detach","createRange","selection","data","editing","change","nextSibling","enter","afterExecute","removeMarker:suggestion:insertion","options","hasClass","showSuggestionHighlights","model","mapper","setSelection","bind","markerNameToElements","addMarker:suggestion:insertion","downcastDispatcher","parent","TrackChangesEditing","fire","fromRange","editor","init","getFirstPosition","high","get","plugins","end","enterBlock","createPositionAt","markerName","commands","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=456,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x1")](){const t=this[ir("0x0")],e=t[ir("0x5")][ir("0x4")](ir("0x21")),n=t[ir("0xa")][ir("0x4")]("enter");e.enableCommand(ir("0x13"),(()=>{t[ir("0x19")][ir("0x11")]((o=>{const s=t.model.document[ir("0xe")],r=s[ir("0x2")](),x=i.LiveRange[ir("0x23")](s.getFirstRange());if(n[ir("0x7")](o)){const n=t.model[ir("0x8")](r[ir("0x20")][ir("0x12")],0),s=o.createRange(r,n);e.markInsertion(s)}else o[ir("0x1b")](o[ir("0xd")](x[ir("0x6")]));x[ir("0xc")](),n[ir("0x22")](ir("0x14"),{writer:o})}))})),t[ir("0x10")][ir("0x1f")].on(ir("0x1e"),hs(t,"split"),{priority:"high"}),t[ir("0x10")][ir("0x1f")].on(ir("0x15"),((t,e,n)=>{const o=n[ir("0x1a")][ir("0x1d")](e[ir("0x9")]);if(o)for(const t of o)t[ir("0x17")](ir("0xb"))&&(n[ir("0x1a")].unbindElementFromMarkerName(t,e[ir("0x9")]),n.writer.remove(t))}),{priority:ir("0x3")}),t[ir("0xf")][ir("0x1f")].on(ir("0x1e"),((e,n,o)=>{o[ir("0x16")][ir("0x18")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x1c")](this)(e,n,o)}),{priority:"high"})}}const ar=["find","editor","_isInDeletionRange","handleFindCommand","suggestion:deletion","findNext","TrackChangesEditing","string","end","afterInit","createPositionAt","enableCommand","getIntersection","plugins","replaceAll","findByTextCallback","has","get","getRange","getMarkersGroup","filter","model","start","replace","findPrevious","FindAndReplaceUtils"];var cr,lr;cr=ar,lr=310,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xb")](){if(!this[dr("0x3")][dr("0xf")][dr("0x12")]("FindAndReplaceEditing"))return;const t=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x8"));t.enableCommand(dr("0x2"),this.handleFindCommand.bind(this)),t.enableCommand(dr("0x7")),t[dr("0xd")](dr("0x0")),t.enableCommand(dr("0x19")),t[dr("0xd")](dr("0x10"))}[dr("0x5")](t,e,n={}){const o=this[dr("0x3")][dr("0xf")][dr("0x13")](dr("0x1"));void 0!==n&&t((t=>(dr("0x9")==typeof e?o[dr("0x11")](e,n):e)(t)[dr("0x16")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[dr("0x4")](t,e){const n=this.editor[dr("0x17")].createRange(this[dr("0x3")][dr("0x17")][dr("0xc")](e,t[dr("0x18")]),this[dr("0x3")][dr("0x17")].createPositionAt(e,t[dr("0xa")]));for(const t of this.editor.model.markers[dr("0x15")](dr("0x6")))if(null!==n[dr("0xe")](t[dr("0x14")]()))return!0;return!1}}const gr=["isCollapsed","afterInit","fontColor","find","*Reset font size*","*Reset font color*","FontFamilyEditing","get","fontBackgroundColor","trim","getRanges","config","registerDescriptionCallback","commandName","editor","from","format","*Set font background color:* %0","locale","*Reset font background color*","fontFamily","*Set font color:* %0","model","document","label","fontBackgroundColor.colors","*Set font family:* %0","fontSize","fontColor.colors","selection","FontBackgroundColorEditing","value","plugins","fontSize.options","change","has","commandParams","normalizeSizeOptions","TrackChangesEditing","_enableCommand","toLowerCase","*Reset font family*"];var mr,fr;mr=gr,fr=260,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0x28"),commandName:hr("0xc")},{pluginName:"FontColorEditing",commandName:hr("0x24")},{pluginName:hr("0x16"),commandName:hr("0x0")}];class br extends t.Plugin{[hr("0x23")](){const t=this[hr("0x6")][hr("0xa")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x6")][hr("0x18")][hr("0x1b")](t)&&this[hr("0x1f")](e);this.editor[hr("0x18")][hr("0x29")](hr("0x1e"))._descriptionFactory[hr("0x4")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x13")==o[hr("0x5")]){const e=o.commandParams[0][hr("0x17")];if(e){const o=n(this[hr("0x6")][hr("0x18")][hr("0x29")]("FontSize")[hr("0x1d")](this[hr("0x6")][hr("0x3")].get(hr("0x19")))[hr("0x25")]((t=>t[hr("0xe")]==e)).title)[hr("0x20")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x8"),content:Yo(t,hr("0x26"))}}if("fontFamily"==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];return e?{type:hr("0x8"),content:Yo(t,hr("0x12"),e)}:{type:hr("0x8"),content:Yo(t,hr("0x21"))}}if(hr("0x24")==o.commandName){const e=o.commandParams[0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")].get(hr("0x14")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x20")]()),{type:"format",content:Yo(t,hr("0xd"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x27"))}}if(hr("0x0")==o.commandName){const e=o[hr("0x1c")][0][hr("0x17")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x3")][hr("0x29")](hr("0x11")))[hr("0x25")]((t=>t[hr("0xe")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x8"),content:Yo(t,hr("0x9"),i)[hr("0x1")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0xb"))}}}}))}[hr("0x1f")](t){const e=this[hr("0x6")];e[hr("0x18")].get(hr("0x1e")).enableCommand(t,((n,o={})=>{const s=e.model[hr("0xf")][hr("0x15")],r=o.value;s[hr("0x22")]?n(o):e[hr("0xe")][hr("0x1a")]((()=>{const n=Array[hr("0x7")](s[hr("0x2")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xe")]);for(const o of n)e[hr("0x18")].get(hr("0x1e")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["join","fontBackgroundColor","label","modifySelection","commandName","fontColor.colors","getAttributes","title","boolean","commandParams","backward","createSelection","push","config","createRange","slice","fontSize.options","toLowerCase","getSelectedBlocks","*Set format to:* %0","locale","editor","length","document","isCollapsed","TrackChangesEditing","enableCommand","copyFormat","toUpperCase","markInlineFormat","forward","get","from","model","change","afterInit","registerDescriptionCallback","pasteFormat","*Remove all formatting*","plugins","getFirstPosition","_descriptionFactory","getRanges","commands","FontSize","format","schema","isBlock","entries","word","fontColor","getLastPosition","getAttributeProperties","charAt","isFormatting","getItems","split"];var _r,Tr;_r=Er,Tr=361,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x10")](){const t=this[Cr("0x2")],n=t[Cr("0xe")],o=n[Cr("0x4")].selection,s=t[Cr("0x14")][Cr("0xc")](Cr("0x6")),r=t[Cr("0x1")],i=t[Cr("0x18")][Cr("0xc")]("copyFormat"),x=t[Cr("0x18")][Cr("0xc")](Cr("0x12"));i&&x&&(s[Cr("0x7")](Cr("0x12"),((t,r={})=>{const i=r;n[Cr("0xf")]((()=>{const t=Array[Cr("0xd")](o[Cr("0x17")]()),r=o[Cr("0x5")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x2c")]()){const t=e[Cr("0x21")](n);t&&t[Cr("0x23")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Cr("0x24")]())!n[Cr("0x1c")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x38")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1b")]))||0!==Object.keys(i).length)for(const t of r)s[Cr("0xa")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x16")][Cr("0x11")]((e=>{const{data:n}=e;if(n&&Cr("0x12")===n[Cr("0x2a")]){const e=[],o=n[Cr("0x2f")][0];for(const[n,s]of Object[Cr("0x1d")](o))e[Cr("0x32")](Ar(t,n,s));return e[Cr("0x3")]?{type:Cr("0x1a"),content:Yo(r,Cr("0x0"),e.join(", "))}:{type:Cr("0x1a"),content:Yo(r,Cr("0x13"))}}})),t.plugins.get("TrackChangesEditing").enableCommand(Cr("0x8")))}}function kr(t,e){const n=t[Cr("0x31")](e);t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0x30")});const o=n[Cr("0x15")]();t[Cr("0x29")](n,{unit:Cr("0x1e"),direction:Cr("0xb")});const s=n[Cr("0x20")]();return t[Cr("0x34")](o,s)}function Ar(t,e,n){const o=t[Cr("0x1")].t,r=e[Cr("0x25")](/(?=[A-Z])/)[Cr("0x26")](" "),i=o(r[Cr("0x22")](0)[Cr("0x9")]()+r[Cr("0x35")](1))[Cr("0x37")]();if(Cr("0x2e")==typeof n)return i;if(Cr("0x1f")===e||Cr("0x27")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x33")][Cr("0xc")](Cr("0x2b"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x28")])[Cr("0x37")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x14")][Cr("0xc")](Cr("0x19")).normalizeSizeOptions(t[Cr("0x33")].get(Cr("0x36"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x2d")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["registerElementLabel","title","value","editor","markBlockFormat","formatBlock","heading","change","registerDescriptionCallback","locale","has","heading.options","schema","config","plugins","afterInit","*Change to:* %0","TrackChangesEditing","find","getSelectedBlocks","name","model","HeadingEditing","_descriptionFactory","ELEMENT_HEADING","format","filter","get","blockName","from","commandParams","paragraph","isObject","commandName"];var Rr,Sr;Rr=vr,Sr=135,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x10")](){const t=this[Ir("0x4")],e=t[Ir("0xa")],n=t[Ir("0xe")][Ir("0x1c")](Ir("0xc"));if(!t[Ir("0xf")][Ir("0xb")](Ir("0x17")))return;const o=t.plugins[Ir("0x1c")](Ir("0x12"));o.enableCommand(Ir("0x7"),((e,n)=>{const s=n.value,r=Array[Ir("0x1e")](this.editor[Ir("0x16")].document.selection[Ir("0x14")]())[Ir("0x1b")]((t=>{return e=t,n=s,(o=this[Ir("0x4")].model[Ir("0xd")]).checkChild(e.parent,n)&&!o[Ir("0x21")](e)&&e[Ir("0x15")]!=n;var e,n,o}));t.model[Ir("0x8")]((()=>{for(const t of r)o[Ir("0x5")](t,{commandName:Ir("0x7"),commandParams:[n],formatGroupId:Ir("0x1d")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0x16")]&&o._descriptionFactory[Ir("0x1")](t[Ir("0x16")],(e=>{const n=Nr(t[Ir("0x16")]);return null!==n?s(e,n):r(e,t[Ir("0x2")])}));function s(t,n){return Yo(e,Ir("0x19"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x18")][Ir("0x9")]((t=>{const{type:o,data:i}=t;if(Ir("0x6")==o&&i&&"heading"==i[Ir("0x0")]){const t=i[Ir("0x1f")][0][Ir("0x3")],o=Nr(t);if(null!==o)return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),s(1,o))};const x=n[Ir("0x13")]((e=>e[Ir("0x16")]===t))[Ir("0x2")];return{type:Ir("0x1a"),content:Yo(e,Ir("0x11"),r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["toLowerCase","item","highlight.options","has","config","commandName","afterInit","createRange","color","push","title","registerDescriptionCallback","value","_descriptionFactory","FORMAT_HIGHLIGHT","getRanges","change","highlight","formatInline","TrackChangesEditing","HighlightEditing","plugins","isCollapsed","getFirstPosition","markInlineFormat","enableCommand","commandParams","get","document","editor","model","format","getLastMatchingPosition","backward"];var Mr,Or;Mr=wr,Or=375,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x5")](){const t=this[Fr("0x1c")];if(!t[Fr("0x14")][Fr("0x2")](Fr("0x13")))return;const e=t[Fr("0x14")][Fr("0x1a")](Fr("0x12"));e[Fr("0x18")](Fr("0x10"),((n,o={})=>{const s=t.model[Fr("0x1b")].selection,r=s.getAttribute("highlight");let i=o[Fr("0xb")],x=[];if(s[Fr("0x15")]){const e=s[Fr("0x16")]();if(!s.hasAttribute(Fr("0x10")))return void n(o);{const n=t=>t[Fr("0x0")].getAttribute(Fr("0x10"))===r,o=e[Fr("0x1f")](n,{direction:Fr("0x20")}),s=e[Fr("0x1f")](n);x=[t[Fr("0x1d")][Fr("0x6")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xe")]())i?x[Fr("0x8")](e):x.push(...ms(Fr("0x10"),e,t[Fr("0x1d")]));t.model[Fr("0xf")]((()=>{for(const t of x)e[Fr("0x17")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t.locale;e[Fr("0xc")][Fr("0xa")]((e=>{const{type:o,data:s}=e;if(Fr("0x11")==o&&s&&Fr("0x10")==s[Fr("0x4")]){const e=n.t,o=s[Fr("0x19")][0].value;if(o){const s=t[Fr("0x3")][Fr("0x1a")](Fr("0x1")).find((t=>t[Fr("0x1d")]==o)),r=e(s.title)[Fr("0x21")]();return{type:Fr("0x1e"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x7")],title:s[Fr("0x9")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xd")))}}}))}}const Dr=["ck-horizontal-line","insert","afterInit","for","get","HorizontalLineEditing","editor","registerElementLabel","ELEMENT_HORIZONTAL_LINE","conversion","has","plugins","createContainerElement","createPositionAt","horizontalLine","locale","createEmptyElement","high","dataDowncast","elementToStructure","addClass"];var Br,jr;Br=Dr,jr=478,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0xb")];if(!t[Ur("0x10")][Ur("0xf")](Ur("0xa")))return;t[Ur("0x10")][Ur("0x9")]("TrackChangesEditing").enableCommand("horizontalLine");const e=t[Ur("0x10")].get("TrackChangesEditing"),n=t[Ur("0x14")];e._descriptionFactory[Ur("0xc")]("horizontalLine",(t=>Yo(n,Ur("0xd"),t))),t[Ur("0xe")][Ur("0x8")](Ur("0x2"))[Ur("0x3")]({model:Ur("0x13"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x11")]("div"),s=e[Ur("0x0")]("hr");return e[Ur("0x4")](Ur("0x5"),o),e[Ur("0x6")](e[Ur("0x12")](o,0),s),o},converterPriority:Ur("0x1")})}}const Hr=["rawHtml","afterInit","document","getCustomProperty","cancel","registerElementLabel","plugins","has","get","htmlEmbed","registerDescriptionCallback","TrackChangesEditing","locale","view","rawHtmlApi","getSelectedElement","enableCommand","editing","value","selection","model","ELEMENT_HTML_EMBED","HtmlEmbed","_descriptionFactory","change","*Change %0 content*"];var zr,Wr;zr=Hr,Wr=291,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x16")](){const t=this.editor;if(!t[Vr("0x1")][Vr("0x2")](Vr("0x11")))return;const e=t.plugins[Vr("0x3")](Vr("0x6")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x8")][Vr("0x17")][Vr("0xe")];e[Vr("0x12")][Vr("0x0")](Vr("0x15"),(t=>Yo(n,Vr("0x10"),t))),t[Vr("0x1")][Vr("0x3")](Vr("0x6"))[Vr("0xb")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xf")],i=r[Vr("0x17")][Vr("0xe")];r[Vr("0x13")]((()=>{const t=function(t){const e=t[Vr("0xa")]();return e&&e.is("element",Vr("0x15"))?t[Vr("0xa")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0xd"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o[Vr("0xa")]()[Vr("0x18")](Vr("0x9"))[Vr("0x19")]())}))})),e[Vr("0x12")][Vr("0x5")]((t=>{const{data:e}=t;if(e&&Vr("0x4")==e.commandName){const t=Yo(n,Vr("0x10"));return{type:"format",content:Yo(n,Vr("0x14"),t)}}}))}}const qr=["Inline image to block image","afterInit","ImageResize","chain","imageStylePostApply","imageCaption","markInsertion","caption","_descriptionFactory","toggleImageCaption","uploadImage","getCaptionFromImageModelElement","isInlineImage","ImageUtils","toNext","nodeAfter","end","FORMAT_SIDE_IMAGE","change","schema","imageTypeInline","*Remove image text alternative*","registerPostFixer","subType","imageInline","getFirstRange","next","formatBlock","ELEMENT_INLINE_IMAGE","getNearestSelectionRange","ImageStyleEditing","backward","hasSuggestion","fromPosition","markBlockFormat","document","element","formatInline","getChangedMarkers","head","ImageCaptionEditing","commandParams","enableCommand","imageTypeBlock","forceDefaultExecution","registerElementLabel","refresh","join","format","getSuggestions","alt","insertion","value","ELEMENT_CAPTION","isBefore","toPrevious","type","getClosestSelectedImageElement","differ","imageStylePreApply","getSuggestion","findIndex","ImageTextAlternativeEditing","previous","*Set image width:* %0","isOwn","imageBlock","selection","getAttribute","getSuggestionCallback","hasAttribute","nodeBefore","normalizedStyles","isCollapsed","insertImage","accept","model","ELEMENT_IMAGE","*Set image text alternative:* %0","markDeletion","_suggestionFactory","author","Block image to inline image","name","suggestion","resizeImage","ImageEditing","isBlockImage","isInContent","createRange","locale","commandReversedParams","has","registerDescriptionCallback","side","plugins","commands","*Reset image width*","_findSuggestions","convertInlineImageToBlock","newValue","createRangeOn","removeObject","editor","get","registerCustomCallback","discard","forEach","getContainedElement","commandName","title","ImageCaptionUtils","newRange","width","discardSuggestion","imageTextAlternative","isEqual","markInlineFormat","find","addObject","ImageBlockEditing","start","from","imageStyle","toLowerCase"];var Xr,$r;Xr=qr,$r=476,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x19")](){const t=this[Jr("0x2")];if(!t[Jr("0x77")][Jr("0x74")](Jr("0x6e")))return;const n=t[Jr("0x77")][Jr("0x3")]("TrackChangesEditing"),o=t.plugins.get(Jr("0x25")),s={},r=t[Jr("0x72")];if(n[Jr("0x42")](Jr("0x62")),n[Jr("0x20")][Jr("0x45")](Jr("0x5a"),(t=>Yo(r,Jr("0x65"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x30"),(t=>Yo(r,Jr("0x34"),t))),n[Jr("0x20")][Jr("0x45")](Jr("0x1f"),(()=>Yo(r,Jr("0x4d")))),t[Jr("0x77")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x42")](Jr("0x22")),t[Jr("0x77")][Jr("0x74")](Jr("0x13"))&&t[Jr("0x77")].has("ImageInlineEditing")&&(n[Jr("0x42")](Jr("0x2c"),((e,s)=>{const r=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]);t[Jr("0x64")][Jr("0x2a")]((()=>{n[Jr("0x3a")](r,{commandName:Jr("0x2c"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x42")](Jr("0x43"),((e,s)=>{t[Jr("0x64")][Jr("0x2a")]((r=>{let x=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),a=r[Jr("0x0")](x);const c=i.LivePosition[Jr("0x39")](a.start,Jr("0x4f")),l=i.LivePosition[Jr("0x39")](a[Jr("0x28")],Jr("0x26"));n[Jr("0x44")]((()=>e(s))),x=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),a=r[Jr("0x0")](x);const d=r[Jr("0x71")](c,l);c.detach(),l.detach(),n[Jr("0x3a")](x,{commandName:Jr("0x2c"),commandParams:[]},[],Jr("0x7b")),d.start[Jr("0x4e")](a.start)&&n[Jr("0x1e")](r.createRange(d[Jr("0x14")],a[Jr("0x14")]),Jr("0x7b")),a[Jr("0x28")][Jr("0x4e")](d[Jr("0x28")])&&n[Jr("0x1e")](r[Jr("0x71")](a[Jr("0x28")],d[Jr("0x28")]),Jr("0x7b"))}))})),n[Jr("0x68")][Jr("0x4")]("formatBlock",Jr("0x7b"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),"accept",(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x5"),n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))),n._suggestionFactory[Jr("0x4")]("insertion","convertInlineImageToBlock",Jr("0x47"),(()=>{})),n[Jr("0x68")].registerCustomCallback(Jr("0x4b"),Jr("0x7b"),Jr("0x5"),(([e])=>{const o=n[Jr("0x68")][Jr("0x5d")](Jr("0x4b"),"",Jr("0x5"));let s=e[Jr("0x14")],r=e[Jr("0x28")];const i=t.model[Jr("0x2b")][Jr("0x35")](s,Jr("0x37")),x=t[Jr("0x64")][Jr("0x2b")][Jr("0x35")](r,"forward");i.isCollapsed&&(s=i[Jr("0x14")]),x[Jr("0x61")]&&(r=x.end),o([t.model.createRange(s,r)])})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x7b"),Jr("0x1b"),c),n._suggestionFactory[Jr("0x4")](Jr("0x4b"),Jr("0x7b"),Jr("0x1b"),c)),t.plugins[Jr("0x74")](Jr("0x40"))&&(n[Jr("0x42")](Jr("0x21"),((e,s)=>{const r=t[Jr("0x77")][Jr("0x3")](Jr("0xa"));let i=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x64")][Jr("0x2a")]((()=>{if(x)return void n[Jr("0x67")](t[Jr("0x64")][Jr("0x0")](x));const a=o[Jr("0x6f")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),x=r[Jr("0x23")](i),n.markInsertion(t.model[Jr("0x0")](x),a?null:Jr("0x1d"))}))})),n[Jr("0x68")][Jr("0x4")]("insertion","imageCaption",Jr("0x1b"),c)),t[Jr("0x77")][Jr("0x74")]("ImageStyleEditing")){n.enableCommand("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x3")]("Users").me,x=t[Jr("0x78")].get("imageStyle");let a=o[Jr("0x51")](t[Jr("0x64")].document[Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),l=x[Jr("0x4c")];if(l==r[Jr("0x4c")])return;const d={commandName:Jr("0x16"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x64")][Jr("0x2a")]((()=>{if(n[Jr("0x49")]().filter((t=>t[Jr("0x70")]&&i==t[Jr("0x69")]&&("formatBlock"==t[Jr("0x50")]||Jr("0x3d")==t[Jr("0x50")])&&(Jr("0x53")==t[Jr("0x2f")]||Jr("0x1c")==t.subType)&&t[Jr("0x31")]()[Jr("0xf")](c)))[Jr("0x6")]((t=>n[Jr("0xd")](t[Jr("0x3f")]))),a=o.getClosestSelectedImageElement(t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),c=t[Jr("0x64")][Jr("0x0")](a),x[Jr("0x46")](),t[Jr("0x78")][Jr("0x3")](Jr("0x2c"))[Jr("0x46")](),t.commands.get(Jr("0x43"))[Jr("0x46")](),l=x.value,l!=r[Jr("0x4c")])return o[Jr("0x24")](a)&&x.shouldConvertImageType(r[Jr("0x4c")],a)?(s(r),a=o[Jr("0x51")](t[Jr("0x64")][Jr("0x3b")][Jr("0x5b")]),void n[Jr("0x3a")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x53"))):void(o.isBlockImage(a)?n[Jr("0x3a")](a,d,[],Jr("0x1c")):n[Jr("0x10")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x77")][Jr("0x3")](Jr("0x36"))[Jr("0x60")])s[e[Jr("0x6b")]]=e[Jr("0x9")][Jr("0x17")]();n._suggestionFactory[Jr("0x4")]("formatBlock",Jr("0x53"),"join",(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x3d"),Jr("0x1c"),Jr("0x47"),(()=>{})),n[Jr("0x68")][Jr("0x4")](Jr("0x33"),"imageStylePreApply",Jr("0x63"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Jr("0x53"),Jr("0x5"),((t,e)=>{n[Jr("0x68")].getSuggestionCallback(Jr("0x33"),"",Jr("0x63"))(t,{commandName:e[Jr("0x8")],commandParams:e[Jr("0x73")]})})),n[Jr("0x68")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1b"),c)}const x=[{type:Jr("0x33"),subType:"imageStylePreApply"},{type:"insertion",subType:Jr("0x1d")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Jr("0x4b"),subType:Jr("0x7b")}];function a(t,e){const s=x[Jr("0x55")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)),r=x[Jr("0x55")]((({type:t,subType:n})=>e[Jr("0x50")]==t&&e[Jr("0x2f")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x31")](),a=e[Jr("0x31")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x7a")](i,"insertion").filter((({suggestion:t,meta:e})=>e[Jr("0x59")]&&Jr("0x7b")==t[Jr("0x2f")]));if(t.length>1&&a[Jr("0x28")][Jr("0xf")](i[Jr("0x14")]))return!0;if(1==t.length&&(i[Jr("0x14")].isEqual(a[Jr("0x28")])||i[Jr("0x28")].isEqual(a[Jr("0x14")])))return!0}if(3==s&&3==r&&i[Jr("0x14")][Jr("0x4e")](a[Jr("0x14")])){const t=i[Jr("0x28")][Jr("0x27")],e=a[Jr("0x14")][Jr("0x5f")];return o[Jr("0x6f")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x64")][Jr("0x3b")][Jr("0x2e")]((()=>{let e=!1;const s=Array[Jr("0x15")](t[Jr("0x64")][Jr("0x3b")][Jr("0x52")][Jr("0x3e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x6c")==s&&n[Jr("0x38")](a)){if(Jr("0x33")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Jr("0x54")](a);if(r[Jr("0xb")]){const s=t[Jr("0x31")]()[Jr("0x7")]();if(o[Jr("0x6f")](s))continue;n[Jr("0xd")](t),e=!0}}if(Jr("0x4b")==i&&"imageCaption"==x&&!r[Jr("0xb")]){const t=n[Jr("0x54")](a);t.next&&t[Jr("0x32")][Jr("0x70")]&&(n.discardSuggestion(t[Jr("0x32")]),e=!0)}}}return e})),t[Jr("0x77")][Jr("0x74")](Jr("0x1a"))&&n.enableCommand(Jr("0x6d"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);r[Jr("0x5c")](Jr("0xc"))!=s[Jr("0xc")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins.has(Jr("0x56"))&&n[Jr("0x42")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x51")](t.model[Jr("0x3b")][Jr("0x5b")]);(r[Jr("0x5e")](Jr("0x4a"))?r[Jr("0x5c")](Jr("0x4a")):"")!=s[Jr("0x7c")]&&t[Jr("0x64")][Jr("0x2a")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xe"),commandParams:[s]})}))})),n[Jr("0x20")][Jr("0x75")]((t=>{if(x[Jr("0x11")]((({type:e,subType:n})=>t[Jr("0x50")]==e&&t[Jr("0x2f")]==n)))return t[Jr("0x57")]?{}:void 0})),n[Jr("0x20")][Jr("0x75")]((t=>{if("insertion"==t.type||"deletion"==t[Jr("0x50")]){const e=t[Jr("0x7")]();if(e&&e.is(Jr("0x3c"),Jr("0x1f")))return{type:Jr("0x4b")==t[Jr("0x50")]?Jr("0x12"):Jr("0x1"),element:e,quantity:1}}})),n[Jr("0x20")].registerDescriptionCallback((t=>Jr("0x33")==t[Jr("0x50")]&&"convertInlineImageToBlock"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x18")}:Jr("0x33")==t.type&&"convertBlockImageToInline"==t[Jr("0x2f")]?{type:Jr("0x48"),content:Jr("0x6a")}:void 0)),n[Jr("0x20")][Jr("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x8")]){const t=e[Jr("0x41")][0][Jr("0x4c")];return n=Jr("0x76")===t?Yo(r,Jr("0x29")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if("imageTextAlternative"==e.commandName){const t=e[Jr("0x41")][0][Jr("0x7c")];return t?{type:"format",content:Yo(r,Jr("0x66"),'"'+t+'"')}:{type:Jr("0x48"),content:Yo(r,Jr("0x2d"))}}if("resizeImage"==e.commandName){const t=e[Jr("0x41")][0][Jr("0xc")];return t?{type:Jr("0x48"),content:Yo(r,Jr("0x58"),t)}:{type:Jr("0x48"),content:Yo(r,Jr("0x79"))}}}var n}))}}const Zr=["getSelectedElement","format","enableCommand","getSuggestions","replaceImageSource","discard","plugins","subType","handleSuggestionDescription","source","selection","markBlockFormat","commandParams","TrackChangesEditing","author","model","get","src","locale","data","getAttribute","registerDescriptionCallback","*Format:* replace image URL","afterInit","document","editor","ImageEditing","handleReplaceImageCommand","formatBlock","commandName","accept","registerCustomCallback","Users","_descriptionFactory","_suggestionFactory","has","getSuggestionCallback"];var Yr,ti;Yr=Zr,ti=216,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1d")](){if(!this[ei("0x1f")][ei("0xc")][ei("0x4")](ei("0x20")))return;const t=this[ei("0x1f")][ei("0xc")].get(ei("0x13"));t[ei("0x8")](ei("0xa"),((t,e)=>this[ei("0x21")](t,e))),t[ei("0x3")][ei("0x0")](ei("0x22"),ei("0xa"),ei("0x24"),t[ei("0x3")][ei("0x5")](ei("0x22"),null,ei("0xb"))),t[ei("0x3")][ei("0x0")](ei("0x22"),"replaceImageSource",ei("0xb"),t._suggestionFactory[ei("0x5")](ei("0x22"),null,ei("0x24"))),t[ei("0x2")][ei("0x1b")]((t=>this[ei("0xe")](t)))}[ei("0x21")](t,e){const n=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x13")),o=this[ei("0x1f")][ei("0x15")][ei("0x1e")][ei("0x10")][ei("0x6")]();this[ei("0x1f")].model.change((()=>{let s=o[ei("0x1a")](ei("0x17"));const r=this[ei("0x1f")][ei("0xc")][ei("0x16")](ei("0x1")).me;for(const t of n[ei("0x9")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0xa")===t[ei("0xd")]&&e===o){t[ei("0x14")]!==r&&t[ei("0xb")](),s=t[ei("0x19")][ei("0x12")][0][ei("0xf")];break}}t(e),n[ei("0x11")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0xa"))}))}[ei("0xe")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x23")]){const t=ei("0x1c");return{type:ei("0x7"),content:Yo(this.editor[ei("0x18")],t)}}}}const oi=["afterInit","editor","Users","_trackChangesExecuted","bind","trackChanges","collaboration_features","_trackChangesValueDuringImport","forEach","value","track_changes","importWord","commands","listenTo","high","plugins","_setSuggestionData","_handleImportedData","dataInsert","get","execute"];var si,ri;si=oi,ri=340,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x3")]=!1,this[ii("0x14")]=!1}[ii("0x11")](){const t=this[ii("0x12")],e=t[ii("0x8")][ii("0xf")]("importWord"),n=t[ii("0x8")].get("trackChanges");e&&(e.on("execute",((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x5")],e[ii("0x2")][ii("0x6")]=!this[ii("0x3")]}),{priority:ii("0xa")}),this.listenTo(e,ii("0xe"),this[ii("0xd")][ii("0x0")](this)),this[ii("0x9")](e,ii("0xe"),(()=>{this._trackChangesExecuted&&(n[ii("0x10")](),this[ii("0x14")]=!1)}),{priority:"lowest"}),t[ii("0xb")][ii("0xf")]("TrackChangesEditing").enableCommand(ii("0x7")))}[ii("0xd")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x8")][ii("0xf")](ii("0x1")),s=o.value;this[ii("0x3")]!==s&&(o.execute(),this[ii("0x14")]=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x12")][ii("0xb")][ii("0xf")](ii("0x13")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x7")}}};this[ii("0x12")][ii("0xb")].get("TrackChangesEditing")[ii("0xc")](s)}))}}const ai=["*Indent:* %0","model","filter","selection","editor","document","has","commandName","indentBlock","plugins","enableCommand","from","get","change","getItems","*Outdent:* %0","outdent","markBlockFormat","getItemLabel","indent","format","getSelectedBlocks","blockIndent","afterInit","outdentBlock","locale","registerDescriptionCallback","TrackChangesEditing","IndentEditing"];var ci,li;ci=ai,li=272,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xc")](){const t=this[di("0x16")],e=t[di("0x1b")][di("0x1")](di("0x10"));t.plugins[di("0x18")](di("0x11"))&&(e[di("0x1c")](di("0x8")),e.enableCommand(di("0x5")));const n=t[di("0xe")];if(t[di("0x1b")].has("IndentBlock")){for(const n of[di("0x1a"),di("0xd")])e[di("0x1c")](n,(()=>{const o=Array[di("0x0")](this[di("0x16")][di("0x13")][di("0x17")][di("0x15")][di("0xa")]())[di("0x14")]((t=>this.editor[di("0x13")].schema.checkAttribute(t,di("0xb"))));t[di("0x13")][di("0x2")]((()=>{for(const t of o)e[di("0x6")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x1a")})}))}));e._descriptionFactory[di("0xf")]((t=>{const{data:o}=t;if(!o)return;if(di("0x1a")!=o[di("0x19")]&&di("0xd")!=o.commandName)return;const s=t[di("0x3")]()[0],r=e._descriptionFactory[di("0x7")](s);return di("0x1a")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x12"),r)}:di("0xd")==o[di("0x19")]?{type:di("0x9"),content:Yo(n,di("0x4"),r)}:void 0}))}}}var gi,mi,fi=["init","TrackChangesEditing","editor","enableCommand"];gi=fi,mi=395,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x1")](){this[hi("0x3")].plugins.get(hi("0x2"))[hi("0x0")]("input")}}const bi=["format","selection","_descriptionFactory","commandParams","editor","isCollapsed","getFirstRange","document","LinkEditing","enableCommand","getAttribute","linkHref","unlink","markInlineFormat","from","get","plugins","getRanges","TrackChangesEditing","getFirstPosition","link","commandName","afterInit","*Set link:* %0","model","change"];var Ei,_i;Ei=bi,_i=448,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this[Ti("0x18")];if(!t[Ti("0xa")].has(Ti("0x2")))return;const e=t[Ti("0xa")][Ti("0x9")](Ti("0xc"));e[Ti("0x3")](Ti("0xe"),((n,o)=>{const s=t.model[Ti("0x1")][Ti("0x15")];let r=[];if(s[Ti("0x19")]){if(!s.hasAttribute(Ti("0x5")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x5"),s[Ti("0x4")](Ti("0x5")),t[Ti("0x12")]);r=[e]}}else r=Array[Ti("0x8")](s[Ti("0xb")]());t.model[Ti("0x13")]((()=>{for(const t of r)e[Ti("0x7")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x3")](Ti("0x6"),(()=>{const n=this[Ti("0x18")][Ti("0x12")],o=n[Ti("0x1")][Ti("0x15")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x19")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),"linkHref",o[Ti("0x4")](Ti("0x5")),t[Ti("0x12")])]:ms(Ti("0x5"),o[Ti("0x0")](),t[Ti("0x12")]);for(const t of n)e[Ti("0x7")](t,{commandName:Ti("0x6"),commandParams:[]})}))})),e[Ti("0x16")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0xe")==n.commandName){const t=n[Ti("0x17")][0];return{type:"format",content:Yo(o,Ti("0x11"),'"'+t+'"')}}return Ti("0x6")==n[Ti("0xf")]?{type:Ti("0x14"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["ELEMENT_LIST_ITEM","nextSibling","TrackChangesEditing","getSelectedBlocks","document","*Indent:* %0","commandParams","getAttribute","todoListChecked","change","format","TodoListEditing","ELEMENT_BULLETED_LIST","isObject","before","slice","value","ELEMENT_TODO_LIST","length","listType","commandName","name","listIndent","plugins","_descriptionFactory","selection","_selectedElements","checkTodoList","registerDescriptionCallback","findIndex","filter","locale","add","from","createRange","bulletedList","List","forceValue","has","numbered","get","ListEditing","previousSibling","commands","model","element","todo","indentList","execute","listItem","paragraph","enableCommand","schema","editor","outdentList","numberedList","markBlockFormat","todoList","registerElementLabel","afterInit"];var ki,Ai;ki=yi,Ai=179,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x0")](){const t=this[vi("0x36")],e=t[vi("0x20")];if(!t[vi("0x18")][vi("0x27")](vi("0x2a")))return;const n=t[vi("0x18")].get(vi("0x3")),o=t[vi("0x18")][vi("0x27")](vi("0xc"));function s(e){return()=>{const o=t[vi("0x2d")][vi("0x5")][vi("0x1a")],s=t[vi("0x2c")].get(e);if(s[vi("0x11")])return void t[vi("0x31")](vi("0x33"),{});const r=e[vi("0x10")](0,-4),i=function(t,e,n){let o=Array[vi("0x22")](t)[vi("0x1f")]((t=>{return e=t,(o=n).checkChild(e.parent,vi("0x32"))&&!o[vi("0xe")](e);var e,o}));o=o[vi("0x1f")]((t=>!t.is(vi("0x2e"),vi("0x32"))||t[vi("0x8")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x32"))?s.add(Si(t)):s[vi("0x21")](t);return Array[vi("0x22")](s)}(o[vi("0x4")](),r,t[vi("0x2d")][vi("0x35")]);t[vi("0x2d")][vi("0xa")]((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x11")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x1e")]((t=>vi("0x32")!=t[vi("0x16")]));return n>-1&&(e=e[vi("0x10")](0,n)),e}(t[vi("0x2d")].document[vi("0x1a")][vi("0x4")]()),s=t[vi("0x2d")][vi("0x23")](t[vi("0x2d")].createPositionAt(o[0],vi("0xf")),t[vi("0x2d")].createPositionAt(o[o[vi("0x13")]-1],"end"));t.model[vi("0xa")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:vi("0x17")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x2")];for(;t&&t[vi("0x8")](vi("0x17"))>n[vi("0x8")](vi("0x17"));)e.add(t),t=t[vi("0x2")]}return Array[vi("0x22")](e)}(o))}))}}n[vi("0x34")](vi("0x38"),s("numberedList")),n[vi("0x34")](vi("0x24"),s(vi("0x24"))),o&&n[vi("0x34")](vi("0x3a"),s(vi("0x3a"))),n[vi("0x34")](vi("0x30"),r("indentList")),n[vi("0x34")](vi("0x37"),r(vi("0x37"))),o&&n[vi("0x34")]("checkTodoList",(()=>{const e=t[vi("0x2c")][vi("0x29")]("checkTodoList"),o=Array[vi("0x22")](e[vi("0x1b")]);o[vi("0x1f")]((t=>t[vi("0x8")](vi("0x9"))!=e[vi("0x11")])),t.model.change((()=>{for(const t of o)n[vi("0x39")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x11")]}]})}))})),n[vi("0x19")][vi("0x3b")](vi("0x32"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x19")][vi("0x1d")]((t=>{const{data:n}=t;if(n){if(vi("0x38")==n[vi("0x15")]||vi("0x24")==n[vi("0x15")]||vi("0x3a")==n[vi("0x15")])switch(n[vi("0x15")].replace(vi("0x25"),"")){case"bulleted":return o(Yo(e,vi("0xd")));case vi("0x28"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x2f"):return o(Yo(e,vi("0x12")))}if(vi("0x30")==n.commandName)return{type:vi("0xb"),content:Yo(e,vi("0x6"),Yo(e,vi("0x1")))};if(vi("0x37")==n[vi("0x15")])return{type:vi("0xb"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1")))};if(vi("0x1c")==n[vi("0x15")])return n[vi("0x7")][0][vi("0x26")]?{type:vi("0xb"),content:Yo(e,"*Check item*")}:{type:vi("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x17"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2b")].is("element",vi("0x32"));){const o=t[vi("0x2b")][vi("0x8")](vi("0x17"));if(o==e)n=t[vi("0x2b")];else if(o<e)break;t=t[vi("0x2b")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2e"),vi("0x32"))&&t[vi("0x8")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x32")==n.name&&n[vi("0x8")](vi("0x17"))==t[vi("0x8")](vi("0x17"));)e.push(n),n=n[vi("0x2")]}return e}const Li=["ELEMENT_","listItem","markMultiRangeBlockFormat","startIndex","getAttribute","ListUtils","_LIST_","createRange","*Format:* set order to reversed","document","config","type","bind","TrackChangesEditing","listStyle","element","listReversed","_getTranslationKeyForListStyle","flat","listType","listStart","*Format:* set order to regular","plugins","commandParams","parent","handleListReversedCommand","locale","has","commandName","before","length","change","_descriptionFactory","handleDescriptions","createPositionAt","backward","model","_getSuggestionBlocksForListStyle","replace","*Change to:* %0","selection","reversed","handleListStyleCommand","getSelectedBlocks","editor","numbered","get","_getSuggestionBlocks","getListTypeFromListStyleType","forward","getSiblingNodes","format","afterInit","handleListStartCommand","getFirstPosition","filter","enableCommand"];var Ni,wi;Ni=Li,wi=222,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x1")](){if(!this[Mi("0x32")].plugins[Mi("0x21")]("ListPropertiesEditing"))return;const t=this[Mi("0x32")][Mi("0x10")][Mi("0x34")]("list.properties"),e=this.editor.plugins.get(Mi("0x13"));t.styles&&e.enableCommand(Mi("0x14"),this[Mi("0x30")][Mi("0x12")](this)),t[Mi("0x2f")]&&e[Mi("0x5")](Mi("0x16"),this[Mi("0x1f")][Mi("0x12")](this)),t.startIndex&&e[Mi("0x5")](Mi("0x1a"),this[Mi("0x2")][Mi("0x12")](this)),e[Mi("0x26")].registerDescriptionCallback(this[Mi("0x27")][Mi("0x12")](this))}[Mi("0x30")](t,e={}){const n=this.editor.plugins[Mi("0x34")](Mi("0x13")),o=this[Mi("0x2b")]();this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](o,{commandName:Mi("0x14"),commandParams:[{type:e[Mi("0x11")]}],formatGroupId:Mi("0x14")})}))}[Mi("0x1f")](t,e={}){const n=this[Mi("0x32")].plugins[Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&"numbered"===t.getAttribute(Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this.editor[Mi("0x2a")][Mi("0xd")](this[Mi("0x32")].model[Mi("0x28")](t,Mi("0x23")),this.editor[Mi("0x2a")].createPositionAt(t,0))));this[Mi("0x32")][Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x16"),commandParams:[{reversed:e[Mi("0x2f")]}],formatGroupId:Mi("0x16")})}))}[Mi("0x2")](t,e={}){const n=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0x13")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x15"),Mi("0x7"))&&Mi("0x33")===t[Mi("0xa")](Mi("0x19"))));if(o.length<1)return;const s=o.map((t=>this[Mi("0x32")][Mi("0x2a")][Mi("0xd")](this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,"before"),this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0))));this.editor[Mi("0x2a")][Mi("0x25")]((()=>{n[Mi("0x8")](s,{commandName:Mi("0x1a"),commandParams:[{startIndex:e[Mi("0x9")]}],formatGroupId:Mi("0x1a")})}))}[Mi("0x27")](t){const e=this[Mi("0x32")][Mi("0x20")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x22")]){case Mi("0x14"):o=Mi("0x2d"),s={type:"format",content:Yo(e,o,Yo(e,this[Mi("0x17")](n[Mi("0x1d")][0][Mi("0x11")])))};break;case Mi("0x16"):o=n[Mi("0x1d")][0].reversed?Mi("0xe"):Mi("0x1b"),s={type:Mi("0x0"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:Mi("0x0"),content:Yo(e,o,n[Mi("0x1d")][0][Mi("0x9")])}}return s}[Mi("0x2b")](){var t,e,n,o;const s=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")](Mi("0xb"));let r=Array.from(this[Mi("0x32")].model.document.selection[Mi("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x15"),Mi("0x7")))&&r.unshift(...s[Mi("0x38")](this.editor.model[Mi("0xf")][Mi("0x2e")][Mi("0x3")](),"backward")),(null===(e=r[r[Mi("0x24")]-1])||void 0===e?void 0:e.is(Mi("0x15"),Mi("0x7")))&&r.push(...s[Mi("0x38")](this.editor[Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getLastPosition(),Mi("0x37"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x32")][Mi("0x2a")][Mi("0xf")][Mi("0x2e")].getFirstPosition())||void 0===n?void 0:n[Mi("0x1e")])||void 0===o?void 0:o.is(Mi("0x15"),Mi("0x7")))&&(r=r[Mi("0x4")]((t=>t.is("element",Mi("0x7"))))),r}[Mi("0x35")](t){const e=this[Mi("0x32")][Mi("0x1c")][Mi("0x34")]("ListUtils");let n=Array.from(this.editor.model.document[Mi("0x2e")][Mi("0x31")]())[Mi("0x4")](t).map((t=>{const n=this[Mi("0x32")][Mi("0x2a")][Mi("0x28")](t,0);return[...e[Mi("0x38")](n,Mi("0x29")),...e.getSiblingNodes(n,Mi("0x37"))]}))[Mi("0x18")]();return n=[...new Set(n)],n}[Mi("0x17")](t){return Mi("0x6")+this.editor[Mi("0x1c")][Mi("0x34")](Mi("0xb"))[Mi("0x36")](t).toUpperCase()+Mi("0xc")+t.toUpperCase()[Mi("0x2c")](/-/g,"_")}}const Fi=["createEmptyElement","attribute:url:media","ELEMENT_MEDIA","enableCommand","plugins","data","TrackChangesEditing","media","options","for","conversion","high","afterInit","downcastDispatcher","editor","locale","dataDowncast","elementToElement","showSuggestionHighlights","stop","div","has","mediaEmbed","_descriptionFactory","get"];var Pi,Di;Pi=Fi,Di=288,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x18")](){const t=this[Bi("0x1")];if(!t[Bi("0x10")][Bi("0x8")]("MediaEmbedEditing"))return;const e=t[Bi("0x10")][Bi("0xb")](Bi("0x12")),n=t[Bi("0x2")];e[Bi("0xf")](Bi("0x9")),e[Bi("0xa")].registerElementLabel(Bi("0x13"),(t=>Yo(n,Bi("0xe"),t))),t[Bi("0x16")][Bi("0x15")](Bi("0x3"))[Bi("0x4")]({model:Bi("0x13"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x5")])return e[Bi("0xc")](Bi("0x7"))},converterPriority:"high"}),t[Bi("0x11")][Bi("0x0")].on(Bi("0xd"),((t,e,n)=>{n[Bi("0x14")][Bi("0x5")]&&t[Bi("0x6")]()}),{priority:Bi("0x17")})}}const Ui=["editor","MentionEditing","plugins","get","enableCommand","TrackChangesEditing","has"];var Gi,Hi;Gi=Ui,Hi=319,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x5")][zi("0x2")](zi("0x4"))&&t[zi("0x5")][zi("0x6")](zi("0x1"))[zi("0x0")]("mention")}}const Vi=["pageBreak","afterInit","get","enableCommand","editor","TrackChangesEditing","plugins","registerElementLabel","ELEMENT_PAGE_BREAK","locale"];var Ki,qi;Ki=Vi,qi=477,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this[Xi("0x7")];if(!t.plugins.has("PageBreakEditing"))return;t[Xi("0x9")][Xi("0x5")]("TrackChangesEditing")[Xi("0x6")](Xi("0x3"));const e=t[Xi("0x9")][Xi("0x5")](Xi("0x8")),n=t[Xi("0x2")];e._descriptionFactory[Xi("0x0")]("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["end","has","isLimit","insertParagraph","includes","TrackChangesEditing","editor","enableCommand","addClass","activeMarkers","selection","blockName","consumable","markerName","mapper","options","highest","document","ELEMENT_PARAGRAPH","name","locale","registerDescriptionCallback","filter","paragraph","downcastDispatcher","Paragraph","$text","insert","markBlockFormat","writer","registerElementLabel","getSelectedBlocks","addMarker:suggestion:insertion","editing","markerRange","toViewPosition","insertion","get","bindElementToMarker","model","ck-suggestion-marker--active","nodeAfter","commandName","getFirstRange","isBlock","from","checkChild","isObject","span","isTouching","plugins","createUIElement","change","schema","parent","_descriptionFactory","data","showSuggestionHighlights"];var Qi,Zi;Qi=Ji,Zi=308,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x2e")];if(!t.plugins[Yi("0x29")](Yi("0x7")))return;const e=t[Yi("0x2")],n=t[Yi("0x20")][Yi("0x13")](Yi("0x2d"));n[Yi("0x25")][Yi("0xc")]("paragraph",(t=>Yo(e,Yi("0x0"),t))),n.enableCommand(Yi("0x5"),((e,o={})=>{const s=t[Yi("0x15")][Yi("0x39")],r=o[Yi("0x32")]||s[Yi("0x32")],i=Array[Yi("0x1b")](r[Yi("0xd")]())[Yi("0x4")]((t=>{return e=t,(n=this[Yi("0x2e")][Yi("0x15")][Yi("0x23")])[Yi("0x1c")](e[Yi("0x24")],Yi("0x5"))&&!n[Yi("0x1d")](e)&&Yi("0x5")!=e[Yi("0x1")];var e,n}));t[Yi("0x15")][Yi("0x22")]((()=>{for(const t of i)n[Yi("0xa")](t,{commandName:Yi("0x5"),commandParams:[],formatGroupId:Yi("0x33")},fs(t))}))})),n._descriptionFactory[Yi("0x3")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x18")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x0")))}})),n[Yi("0x2f")](Yi("0x2b")),t[Yi("0xf")].downcastDispatcher.on(Yi("0xe"),ex(t),{priority:Yi("0x38")}),t[Yi("0x26")][Yi("0x6")].on(Yi("0xe"),((e,n,o)=>{o[Yi("0x37")][Yi("0x27")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x3")]((n=>{if(Yi("0x12")!==n.type)return;const{start:s,end:r}=n[Yi("0x19")]();if(!s[Yi("0x1f")](r)||!s[Yi("0x17")])return;const i=t[Yi("0x15")][Yi("0x23")],x=s.nodeAfter;return i[Yi("0x1a")](x)&&!i[Yi("0x2a")](x)&&i[Yi("0x1c")](x,Yi("0x8"))?{type:Yi("0x12"),content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x20")][Yi("0x13")](Yi("0x2d")),i=o[Yi("0x10")].start,x=o.markerRange[Yi("0x28")],a=t[Yi("0x15")].schema;if(!i[Yi("0x1f")](x)||!i[Yi("0x17")])return;const c=i[Yi("0x17")];if(a[Yi("0x1a")](c)&&!a[Yi("0x2a")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x34")].consume(o.markerRange,n.name))return;const t=s.writer[Yi("0x21")](Yi("0x1e"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x36")][Yi("0x11")](x);e&&r[Yi("0x31")][Yi("0x2c")](o[Yi("0x35")])&&s[Yi("0xb")][Yi("0x30")](Yi("0x16"),t),s[Yi("0xb")][Yi("0x9")](i,t),s[Yi("0x36")][Yi("0x14")](t,o[Yi("0x35")])}}}const nx=["from","commandName","getRanges","locale","isFormatting","enableCommand","_descriptionFactory","change","isCollapsed","get","TrackChangesEditing","getAttributes","getAttributeProperties","editor","plugins","registerDescriptionCallback","format","markInlineFormat","schema","model","getItems","RemoveFormatEditing","*Remove all formatting*","removeFormat","selection","has"];var ox,sx;ox=nx,sx=114,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x3")];if(!t[rx("0x4")][rx("0xf")](rx("0xb")))return;const e=t[rx("0x4")][rx("0x19")](rx("0x0"));e[rx("0x15")](rx("0xd"),(n=>{const o=t[rx("0x9")].document[rx("0xe")];o[rx("0x18")]?n():t[rx("0x9")][rx("0x17")]((()=>{const n=Array[rx("0x10")](o[rx("0x12")]());for(const o of n)for(const n of o[rx("0xa")]())xx(n,t.model[rx("0x8")])&&e[rx("0x7")](t[rx("0x9")].createRangeOn(n),{commandName:rx("0xd"),commandParams:[]})}))})),e[rx("0x16")][rx("0x5")]((e=>{const{data:n}=e;if(n&&rx("0xd")==n[rx("0x11")])return{type:rx("0x6"),content:Yo(t[rx("0x13")],rx("0xc"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x2")](n);if(t&&t[rx("0x14")])return!0}return!1}const ax=["afterInit","enableCommand","plugins","discardAllSuggestions","discardSelectedSuggestions","get","TrackChangesEditing","has","RestrictedEditingModeEditing","acceptAllSuggestions","trackChanges"];var cx,lx;cx=ax,lx=114,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x7")](){const t=this.editor;if(!t[dx("0x9")][dx("0x3")](dx("0x4")))return;const e=t[dx("0x9")][dx("0x1")](dx("0x2"));e[dx("0x8")]("goToPreviousRestrictedEditingException"),e[dx("0x8")]("goToNextRestrictedEditingException");const n=t.plugins[dx("0x1")](dx("0x4"));n[dx("0x8")](dx("0x6")),n.enableCommand("acceptSuggestion"),n[dx("0x8")]("discardSuggestion"),n.enableCommand(dx("0x5")),n.enableCommand(dx("0xa")),n[dx("0x8")]("acceptSelectedSuggestions"),n[dx("0x8")](dx("0x0"))}}const gx=["addMarker:suggestion:insertion","span","high","showSuggestionHighlights","editor","getItems","data","merge","mapper","enableCommand","_descriptionFactory","includes","createPositionBefore","model","locale","addClass","activeMarkers","options","toViewPosition","downcastDispatcher","split","TrackChangesEditing","deletion","addMarker:suggestion","consumable","writer","markerRange","markerName","element","softBreak","ck-suggestion-marker-","createUIElement","test","ck-suggestion-marker--active","insert","plugins","editing","get","requires","registerElementLabel","init","addMarker:suggestion:deletion","bindElementToMarker"];var mx,fx;mx=gx,fx=148,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x13")](){return[nr.ShiftEnter]}[hx("0x15")](){const t=this[hx("0x1c")],e=t[hx("0x10")][hx("0x12")](hx("0x2"));e[hx("0x21")]("shiftEnter"),t[hx("0x11")][hx("0x0")].on(hx("0x18"),bx(t),{priority:"high"}),t[hx("0x11")][hx("0x0")].on(hx("0x16"),bx(t),{priority:hx("0x1a")}),t[hx("0x1e")][hx("0x0")].on(hx("0x4"),((e,n,o)=>{o[hx("0x29")][hx("0x1b")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x22")][hx("0x14")](hx("0xa"),(e=>Yo(t[hx("0x26")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x12")](hx("0x2"));if(!s[hx("0x5")][hx("0xd")](o[hx("0x7")],n.name))return;const i=t[hx("0x25")];for(const t of o.markerRange[hx("0x1d")]()){if(!t.is(hx("0x9"),"softBreak"))continue;const n=hx("0x3")==o[hx("0x8")][hx("0x1")](":")[1]?hx("0x1f"):hx("0x1"),x=s[hx("0x6")][hx("0xc")](hx("0x19"),{class:hx("0xb")+n}),a=s.mapper[hx("0x2a")](i[hx("0x24")](t));e&&r[hx("0x28")][hx("0x23")](o[hx("0x8")])&&s[hx("0x6")][hx("0x27")](hx("0xe"),x),s[hx("0x6")][hx("0xf")](a,x),s[hx("0x20")][hx("0x17")](x,o[hx("0x8")])}}}const Ex=["getRanges","markInlineFormat","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","plugins","model","change","from","commandName","FORMAT_RESTRICTED_ENABLED","selection","format","forceValue","StandardEditingModeEditing","enableCommand","editor","commandParams","isCollapsed","has","locale","value","afterInit","get","document"];var _x,Tx;_x=Ex,Tx=360,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x15")](){const t=this[Cx("0xf")],e=t[Cx("0x5")],n=t[Cx("0x13")];if(!t[Cx("0x4")][Cx("0x12")](Cx("0xd")))return;const o=t.plugins[Cx("0x16")]("TrackChangesEditing"),s="restrictedEditingException",r=t.commands[Cx("0x16")](s);o[Cx("0xe")](s,((t,n={})=>{const i=e[Cx("0x17")][Cx("0xa")];if(i[Cx("0x11")])return void t(n);const x=void 0!==n[Cx("0xc")]?n[Cx("0xc")]:!r[Cx("0x14")];e[Cx("0x6")]((()=>{const t=Array[Cx("0x7")](i[Cx("0x0")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x3")]((t=>{const{data:e}=t;if(e&&e[Cx("0x8")]==s)return e[Cx("0x10")][0][Cx("0xc")]?{type:"format",content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,Cx("0x2"))}}))}}const kx=["markInlineFormat","markBlockFormat","has","element","get","getItems","change","enabledStyles","_getRangesWithClasses","includes","from","format","*Format:* %0","classes","value","name","model","Style","block","commandName","_getStyleDefinition","toLowerCase","forceValue","plugins","document","registerDescriptionCallback","commandParams","enableCommand","getAncestors","normalizeConfig","styleName","editor","commands","style","isBlock","DataSchema","push","modelElements","isCollapsed","getDefinitionsForView","createRangeOn","every"];var Ax,vx;Ax=kx,vx=373,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x24")];if(!t.plugins[Rx("0x7")](Rx("0x16")))return;const e=t[Rx("0x25")].get(Rx("0x26")),n=t[Rx("0x1c")][Rx("0x9")]("TrackChangesEditing"),o=t.locale,s=t[Rx("0x1c")][Rx("0x9")](Rx("0x28")),r=t[Rx("0x1c")].get("StyleUtils")[Rx("0x22")](s,t.config[Rx("0x9")]("style.definitions"));n[Rx("0x20")](Rx("0x26"),((o,{styleName:i})=>{const x=t[Rx("0x15")][Rx("0x1d")].selection,a=this[Rx("0x19")](i,r);if(!a)return;if(!e[Rx("0xc")][Rx("0xe")](i))return;if(x[Rx("0x1")]&&!a[Rx("0x27")])return void o({styleName:i});const c=!e[Rx("0x13")][Rx("0xe")](a[Rx("0x14")]);if(a[Rx("0x27")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x21")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0xe")](o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x0")]);t[Rx("0x15")].change((()=>{for(const t of e)n[Rx("0x6")](t,{commandName:Rx("0x26"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0xf")](x.getRanges());if(!c){const n=Array[Rx("0xf")](s[Rx("0x2")](a[Rx("0x8")],!1))[0][Rx("0x15")],o=[];for(const s of e){const e=this[Rx("0xd")](t.model,s,a[Rx("0x12")],n);o[Rx("0x29")](...e)}e=o}t[Rx("0x15")][Rx("0xb")]((()=>{for(const t of e)n[Rx("0x5")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x1e")]((t=>{const{data:e}=t;if(e&&Rx("0x26")===e[Rx("0x18")])return e[Rx("0x1f")][0][Rx("0x1b")]?{type:Rx("0x10"),content:Yo(o,Rx("0x11"),e[Rx("0x1f")][0][Rx("0x23")][Rx("0x1a")]())}:{type:Rx("0x10"),content:Yo(o,"*Remove format:* %0",e[Rx("0x1f")][0][Rx("0x23")].toLowerCase())}}))}[Rx("0x19")](t,e){let n=e[Rx("0x17")].find((e=>e[Rx("0x14")]===t));return n||(n=e.inline.find((e=>e[Rx("0x14")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0xa")]()){const e=r.getAttribute(o);e&&n[Rx("0x4")]((t=>e[Rx("0x12")].includes(t)))&&s[Rx("0x29")](t[Rx("0x3")](r))}return s}}const Ix=["tableColumn","commands","refresh","registerDescriptionCallback","enqueueChange","options","substr","model","start","isEqual","isTouching","registerElementLabel","getChildren","maxColumn","cell","hasAttribute","above","detach","_getCoordsForCells","ELEMENT_TABLE_ROW_WITH_TEXT","change:data","getContainedElement","*Remove:* %0","ELEMENT_TABLE","span","element","createRangeOn","ELEMENT_TABLE_WITH_TEXT","mapper","getCellLocation","insertion","some","first","rowspan","selectTableColumn","forceValue","getRowIndexes","_suggestionFactory","data","oldRange","name","suggestion","fromRange","every","length","addMarker:suggestion","registerCustomCallback","root","_tableSuggestions","*Insert:* %0","insert","type","getItems","values","TableEditing","tablePaste","rootName","from","nodeAfter","writer","accept","getChangedMarkers","_tablePostFixingSubtypes","getRanges","order","insertTableRowBelow","removeTableColumn","tableCell","markMultiRangeInsertion","discard","setSelection","removeClass","ELEMENT_TABLE_ROW","max","ELEMENT_TABLE_COLUMN","push","item","differ","highest","subType","TableUtils","minRow","change","getAttribute","editor","execute","$graveyard","getSelectionAffectedTableCells","end","low","$textProxy","get","selection","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnRight","MAX_SAFE_INTEGER","join","removeTableRow","filter","getFirstRange","tableRow","createTableWalker","document","_getSuggestionCoords","TrackChangesEditing","_descriptionFactory","map","getColumnIndexes","locale","plugins","_acceptFormatSuggestionCallbackFactory","last","deletion","includes","registerPostFixer","enableCommand","position","toLowerCase","findAncestor","min","createRangeIn","maxRow","insertTableRowAbove","MIN_SAFE_INTEGER","colspan","table","nodeBefore","markMultiRangeDeletion","addRange","insertTableColumnLeft","isInContent","minColumn"];var Lx,Nx;Lx=Ix,Nx=478,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x70")]=[wx("0x12"),wx("0x32")],this[wx("0x62")]=new Set}afterInit(){const t=this[wx("0x2")],e=t.model[wx("0x14")][wx("0xa")];if(!t.plugins.has(wx("0x68")))return;const n=t[wx("0x1a")],o=t[wx("0x1b")][wx("0x9")](wx("0x16")),s=t[wx("0x1b")][wx("0x9")](wx("0x82"));o[wx("0x17")][wx("0x3d")](wx("0x2b"),(t=>Yo(n,wx("0x49"),t))),this._setupColumnsRowsFixing(),o[wx("0x21")]("insertTable"),o.enableCommand("selectTableRow"),o[wx("0x21")](wx("0x54"));for(const n of[wx("0x28"),wx("0x73")]){const r=t[wx("0x33")][wx("0x9")](n);o.enableCommand(n,(n=>{t.model[wx("0x0")]((t=>{n();const i=wx("0x42")===r[wx("0x72")],x=s[wx("0x5")](e),a=s[wx("0x56")](x),c=i?a.first-1:a.last+1,l=x[0][wx("0x24")](wx("0x2b")),d=s[wx("0x13")](l,{startRow:c,endRow:c}),u=Array[wx("0x6b")](d)[wx("0x18")]((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,"tableRow")}))}))}for(const n of[wx("0x2f"),wx("0xc")]){const r=t.commands[wx("0x9")](n);o[wx("0x21")](n,(n=>{t[wx("0x39")].change((t=>{n();const i="left"===r.order,x=s[wx("0x5")](e),a=s[wx("0x19")](x),c=i?a[wx("0x52")]-1:a[wx("0x1d")]+1,l=x[0][wx("0x24")](wx("0x2b")),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x6b")](d).map((e=>t[wx("0x4c")](e[wx("0x40")])));o[wx("0x76")](u,wx("0x32"))}))}))}for(const n of[wx("0xf"),wx("0x74")]){const r=n[wx("0x38")](11),i=r[wx("0x23")](),x=i[wx("0x38")](0,3)+wx("0x4a"),a="table"+r,c=wx("0x25")+r,l=wx("0x7b")+r;o[wx("0x21")](n,(()=>{t[wx("0x39")][wx("0x0")]((t=>{const r=s[wx("0x5")](e),d=r[0].findAncestor("table");let u;if(wx("0xf")==n){const t=s.getRowIndexes(r);u={startRow:t[wx("0x52")],endRow:t[wx("0x1d")],includeAllSlots:!0}}else{const t=s[wx("0x19")](r);u={startColumn:t.first,endColumn:t[wx("0x1d")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x6b")](g)[wx("0x18")]((({cell:t})=>t)),f=Ox(m.filter((t=>t[wx("0x41")](x)))),h=Ox(m[wx("0x10")]((t=>!t[wx("0x41")](x))))[wx("0x18")]((e=>t.createRangeOn(e))),p=o[wx("0x2d")](h,a);if(p&&(wx("0x12")==p[wx("0x81")]||wx("0x32")==p[wx("0x81")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[wx("0x1")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));t.model[wx("0x0")]((e=>{const s=e.batch;n=n.filter((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")])),e[wx("0x78")](n),t[wx("0x33")][wx("0x9")]("removeTableRow")[wx("0x34")](),t[wx("0x3")](wx("0xf"),{forceDefaultExecution:!0}),t.model[wx("0x36")]((()=>{t[wx("0x39")][wx("0x36")](s,(t=>{const e=o[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));e.length>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0x39")][wx("0x0")]((o=>{const s=Array[wx("0x6b")](e[wx("0x71")]()).map((t=>i.LiveRange[wx("0x5c")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[wx("0x7d")](e);for(const e of r)wx("0x4")!=e[wx("0x61")][wx("0x6a")]&&(o[wx("0x78")](o.createPositionAt(e,0)),t.commands[wx("0x9")](wx("0x74"))[wx("0x34")](),t[wx("0x3")](wx("0x74"),{forceDefaultExecution:!0}));const x=s[wx("0x10")]((t=>wx("0x4")!=t[wx("0x61")][wx("0x6a")]));x[wx("0x5e")]>0&&o[wx("0x78")](x);for(const t of s)t[wx("0x43")]()}))}function c(t,e){return e[wx("0x5d")]((e=>t[wx("0x51")]((t=>t[wx("0x6")].isEqual(e[wx("0x3a")])||e[wx("0x6")][wx("0x3b")](t[wx("0x3a")])))))}function l(t,e){return t[wx("0x51")]((t=>e.some((e=>t[wx("0x6")][wx("0x3c")](e[wx("0x3a")])))))}t[wx("0x58")].downcastDispatcher.on(wx("0x5f"),((t,e,n)=>{if(!n[wx("0x37")].showSuggestionHighlights)return;const o=e[wx("0x7e")];if(!o)return;const s=n[wx("0x4e")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&wx("0x75")===o[wx("0x5a")]&&(0,x.setHighlightHandling)(s,n[wx("0x6d")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[wx("0x79")](r(e.classes),t)))}),{priority:wx("0x80")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0x50")!=t.type&&"deletion"!=t[wx("0x65")])return;const e=t[wx("0x47")]();if(null!=e&&e.is(wx("0x4b"),wx("0x2b"))){if(wx("0x50")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e[wx("0x5e")])return{type:wx("0x50"),content:Yo(n,"*Insert:* %0",Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}if(wx("0x1e")==t[wx("0x65")]){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8")))).map((t=>t[wx("0x58")]));if(e.length)return{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x4d"),'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[wx("0x35")]((t=>{if(wx("0x12")==t[wx("0x81")]){const e=t.getItems()[wx("0x10")]((t=>t.is("$textProxy")))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x27")]-o[wx("0x83")]+1;if(wx("0x50")==t.type)return e[wx("0x5e")]?{type:"insertion",content:Yo(n,wx("0x63"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7a"),s))};if(wx("0x1e")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,"*Remove:* %0",Yo(n,wx("0x45"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x32")==t.subType){const e=t[wx("0x66")]()[wx("0x10")]((t=>t.is(wx("0x8"))))[wx("0x18")]((t=>t[wx("0x58")])),o=this[wx("0x15")](t),s=o[wx("0x3f")]-o[wx("0x31")]+1;if(wx("0x50")==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x63"),Yo(n,wx("0x7c"),s))};if("deletion"==t[wx("0x65")])return e[wx("0x5e")]?{type:wx("0x1e"),content:Yo(n,wx("0x48"),Yo(n,wx("0xb"),[s,'"'+e[wx("0xe")](" ")+'"']))}:{type:"deletion",content:Yo(n,wx("0x48"),Yo(n,wx("0x7c"),s))}}})),o[wx("0x57")][wx("0x60")]("insertion",wx("0x12"),"discard",r),o[wx("0x57")].registerCustomCallback(wx("0x1e"),"tableRow","accept",r),o._suggestionFactory[wx("0x60")](wx("0x50"),wx("0x32"),wx("0x77"),a),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x32"),wx("0x6e"),a),o[wx("0x57")][wx("0x60")](wx("0x50"),"tableColumn","join",c),o[wx("0x57")][wx("0x60")](wx("0x1e"),wx("0x32"),wx("0xe"),c),o[wx("0x57")].registerCustomCallback(wx("0x50"),wx("0x12"),wx("0xe"),l),o[wx("0x57")].registerCustomCallback(wx("0x1e"),wx("0x12"),wx("0xe"),l)}[wx("0x1c")](){const t=this.editor,e=t[wx("0x39")].document[wx("0xa")];return(n,o)=>{t[wx("0x39")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][wx("0x6")][wx("0x2c")];x&&x[0]&&!1===x[0][wx("0x55")]&&(a=n[0][wx("0x3a")][wx("0x6c")]);const c=s[wx("0x26")](a);if("$graveyard"==c[wx("0x61")].rootName)return;const l=Array[wx("0x6b")](e[wx("0x71")]())[wx("0x18")]((t=>i.LiveRange[wx("0x5c")](t)));s[wx("0x78")](c),t[wx("0x33")][wx("0x9")](r).refresh(),x[wx("0x7d")]({forceDefaultExecution:!0}),t[wx("0x3")](r,...x);const d=l[wx("0x10")]((t=>wx("0x4")!=t.root[wx("0x6a")]));d[wx("0x5e")]>0&&s[wx("0x78")](d);for(const t of l)t[wx("0x43")]()}))}}[wx("0x44")](t){const e=this.editor[wx("0x1b")][wx("0x9")](wx("0x82"));let n=Number[wx("0xd")],o=Number.MIN_SAFE_INTEGER,s=Number[wx("0xd")],r=Number[wx("0x29")];for(const i of t){if("$graveyard"==i[wx("0x61")][wx("0x6a")])continue;const{row:t,column:x}=e[wx("0x4f")](i),a=i[wx("0x41")](wx("0x53"))?i[wx("0x1")]("rowspan")-1:0,c=i[wx("0x41")](wx("0x2a"))?i.getAttribute(wx("0x2a"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[wx("0x2")],e=t[wx("0x1b")][wx("0x9")](wx("0x16")),n=t[wx("0x1b")][wx("0x9")](wx("0x82"));t[wx("0x39")].document.on(wx("0x46"),(()=>{const n=Array[wx("0x6b")](t[wx("0x39")][wx("0x14")][wx("0x7f")][wx("0x6f")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(wx("0x5b")!=n)continue;if(null!=o[wx("0x59")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes[wx("0x1f")](r)&&this[wx("0x62")].add(i)}}),{priority:wx("0x7")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[wx("0x24")](wx("0x2b")),i=n[wx("0x4f")](t);for(const e of this[wx("0x62")]){const n=e[wx("0x81")],x=n.startsWith(wx("0x69")),a=n[wx("0x38")](x?10:5),c=a[wx("0x23")](),l=c.substr(0,3)+wx("0x4a"),d="min"+a,u=wx("0x7b")+a;if(!e[wx("0x30")])continue;if(r!=e[wx("0x11")]()[wx("0x3a")][wx("0x24")](wx("0x2b")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[wx("0x41")](l)?t[wx("0x1")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x2e")](s),o=!0)}return o};t[wx("0x39")].document[wx("0x20")]((e=>{let n=!1;for(const s of t[wx("0x39")].document.differ.getChanges())if(wx("0x64")==s[wx("0x65")])if("tableRow"==s[wx("0x5a")])for(const t of s[wx("0x22")].nodeAfter[wx("0x3e")]())n=n||o(t,e);else wx("0x75")==s[wx("0x5a")]&&(n=n||o(s.position[wx("0x6c")],e));return n}))}[wx("0x15")](t){return this._getCoordsForCells(t.getRanges()[wx("0x18")]((t=>t[wx("0x3a")].nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[wx("0x67")]())}const Fx=["mergeTableCellRight","splitTableCellVertically","createTableWalker","has","_suggestionFactory","element","find","splitTableCellHorizontally","plugins","size","containsRange","tableCell","low","document","subType","execute","getRanges","value","_isForcedDefaultExecutionBlock","author","deletion","refresh","getFirstPosition","push","model","markMultiRangeBlockFormat","forceDefaultExecution","TableUtils","_areMergableCells","registerDescriptionCallback","setSelection","*Merge cells*","selection","from","locale","afterInit","set:isEnabled","*Split cell:* horizontally","*Split cell:* vertically","mergeTableCells","length","get","mergeTableCellUp","createRangeOn","add","mergeTableCellLeft","change","TrackChangesEditing","table","_descriptionFactory","accept","direction","_areSelectedCellsMergable","format","getCellLocation","markBlockFormat","mergeTableCellDown","getAncestors","commands","rootName","stop","map","type","trackChanges","highest","enableCommand","registerCustomCallback","TableEditing","editor","requires","$graveyard","commandName","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","formatBlock","cell","horizontally","detach"];var Px,Dx;Px=Fx,Dx=477,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x3c")](){return[Mx]}[Bx("0x1a")](){const t=this[Bx("0x3b")],e=t[Bx("0xf")][Bx("0x4")].selection,n=t[Bx("0x19")];if(!t.plugins[Bx("0x48")](Bx("0x3a")))return;const o=t[Bx("0x4d")][Bx("0x20")]("TrackChangesEditing"),s=t[Bx("0x4d")][Bx("0x20")](Bx("0x12")),r=t[Bx("0x4d")][Bx("0x20")](Mx);r._tablePostFixingSubtypes[Bx("0xe")](Bx("0x1e")),o[Bx("0x38")](Bx("0x1e"),(()=>{const e=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")][Bx("0x17")]);t[Bx("0xf")][Bx("0x25")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))})),t[Bx("0x31")].get(Bx("0x1e")).on("execute",((e,n)=>{t.commands[Bx("0x20")](Bx("0x36"))[Bx("0x8")]&&(n[Bx("0x1f")]>0&&n[n[Bx("0x1f")]-1]&&n[n[Bx("0x1f")]-1][Bx("0x11")]||o[Bx("0x9")]||this[Bx("0x2b")]()||e[Bx("0x33")]())}),{priority:Bx("0x37")});for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x2f"),Bx("0x24")]){const n=t.commands[Bx("0x20")](e);o.enableCommand(e,(()=>{const e=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is("element",Bx("0x2")))),s=n.value;t.model[Bx("0x25")]((()=>{o[Bx("0x10")]([e,s],{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))}))}for(const e of[Bx("0x46"),Bx("0x4c")]){const n=t[Bx("0x31")][Bx("0x20")](e);o[Bx("0x38")](e,(()=>{const r=s[Bx("0x3f")](t[Bx("0xf")][Bx("0x4")].selection)[0],i=r.findAncestor(Bx("0x27")),{column:x,row:a}=s[Bx("0x2d")](r);let c=[];if(Bx("0x43")==n[Bx("0x2a")]){const t=s[Bx("0x47")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x18")](t)[Bx("0x34")]((t=>t.cell))}else{const t=s[Bx("0x47")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x18")](t).map((t=>t[Bx("0x42")]))}t.model[Bx("0x25")]((t=>{o[Bx("0x2e")](t[Bx("0x22")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x28")][Bx("0x14")]((t=>{const{data:e}=t;if(e)return Bx("0x1e")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x16"))}:void 0})),o[Bx("0x28")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x46")==e[Bx("0x3e")]?{type:Bx("0x2c"),content:Yo(n,Bx("0x1d"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x1c"))}:void 0}));const x=r[Bx("0x40")]();for(const t of["mergeTableCellUp",Bx("0x45"),Bx("0x2f"),Bx("0x24")])o[Bx("0x49")][Bx("0x39")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x4c")])o[Bx("0x49")][Bx("0x39")](Bx("0x41"),t,"accept",x);o[Bx("0x49")][Bx("0x39")](Bx("0x41"),Bx("0x1e"),Bx("0x29"),(n=>{t[Bx("0xf")][Bx("0x25")]((o=>{const s=Array[Bx("0x18")](e[Bx("0x7")]())[Bx("0x34")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x15")](n),t[Bx("0x31")][Bx("0x20")](Bx("0x1e"))[Bx("0xc")](),t[Bx("0x6")]("mergeTableCells",{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x3d")!=t.root[Bx("0x32")]));r.length>0&&o[Bx("0x15")](r);for(const t of s)t[Bx("0x44")]()}))}));for(const e of[Bx("0x21"),Bx("0x2f"),Bx("0x24"),Bx("0x45")]){const n=t[Bx("0x31")][Bx("0x20")](e);n.on(Bx("0x1b"),((e,o,s)=>{if(s){const o=t[Bx("0xf")][Bx("0x4")][Bx("0x17")][Bx("0xd")]()[Bx("0x30")]()[Bx("0x4b")]((t=>t.is(Bx("0x4a"),"tableCell")));this[Bx("0x13")](n.value,o)||(e.return=!1,e[Bx("0x33")]())}}),{priority:Bx("0x3")})}}[Bx("0x2b")](){const t=this[Bx("0x3b")][Bx("0x31")][Bx("0x20")]("mergeTableCells"),e=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x12"));if(!t.isEnabled)return!1;const n=e[Bx("0x3f")](this[Bx("0x3b")].model.document[Bx("0x17")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x13")](t,e){const n=this[Bx("0x3b")][Bx("0x4d")].get(Bx("0x26")),o=this[Bx("0x3b")][Bx("0xf")][Bx("0x22")](t),s=this[Bx("0x3b")].model[Bx("0x22")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[Bx("0x35")]||Bx("0xb")==t[Bx("0x35")]||Bx("0x1e")==t[Bx("0x5")])&&t.isInContent)for(const e of t[Bx("0x7")]())e[Bx("0x1")](o,!0)&&r[Bx("0x23")](t[Bx("0x35")]+":"+t[Bx("0xa")].id),e[Bx("0x1")](s,!0)&&i[Bx("0x23")](t[Bx("0x35")]+":"+t.author.id);if(r[Bx("0x0")]!=i[Bx("0x0")])return!1;for(const t of r)if(!i[Bx("0x48")](t))return!1;return!0}}const Ux=["toViewElement","format","isBefore","headingColumns","model","options","TableUtils","table","headingRows","createPositionAfter","showSuggestionHighlights","consume","change","index","setTableColumnHeader","getChild","activeMarkers","markBlockFormat","registerDescriptionCallback","accept","nodeAfter","removeClass","unbindElementFromMarkerName","getSuggestion","registerCustomCallback","document","selection","has","data-suggestion","commands","consumable","forceValue","stop","enableCommand","FORMAT_REGULAR_ROW","_descriptionFactory","childCount","ck-suggestion-marker-","commandParams","from","markerRange","parent","addMarker:suggestion","TrackChangesEditing","getRowIndexes","item","writer","FORMAT_HEADER_COLUMN","removeMarker:suggestion","ck-suggestion-marker--active","_splitMarkerName","_suggestionFactory","mapper","afterInit","commandName","setTableRowHeader","downcastDispatcher","value","highest","markerName","bindElementToMarker","*Format:* %0","nodeBefore","requires","getSelectionAffectedTableCells","locale","createPositionBefore","editor","createTableWalker","FORMAT_HEADER_ROW","getAttribute","data","findAncestor","name","addClass","plugins","first","_acceptFormatSuggestionCallbackFactory","cell","editing","createRange","formatBlock","getColumnIndexes","get","getCellLocation","last"];var Gx,Hx;Gx=Ux,Hx=173,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x3e")](){return[Mx]}[zx("0x34")](){const t=this[zx("0x42")];if(!t[zx("0x4a")][zx("0x1a")]("TableEditing"))return;const e=t[zx("0x40")],n=t.plugins[zx("0x52")](zx("0x2a")),o=t[zx("0x4a")].get(zx("0x5")),s=t[zx("0x4a")][zx("0x52")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x31")](r[zx("0x3a")]),c=n[zx("0x16")](a);if(!c.data||zx("0xd")!=c[zx("0x46")][zx("0x35")])return;if(r[zx("0x2c")])return void s[zx("0x1f")]();if(!i[zx("0x1d")][zx("0xa")](r[zx("0x27")],s[zx("0x48")]))return;const l=r.markerRange.start[zx("0x13")],d=r[zx("0x27")].end[zx("0x3d")],u=l[zx("0x28")].parent,{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x53")](d);for(let s=g;s<=m;s++){const c=o[zx("0x43")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x4d")],c=i.mapper[zx("0x55")](s);i[zx("0x2d")][zx("0x49")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x2d")].setAttribute(zx("0x1b"),a,c),i[zx("0x33")][zx("0x3b")](c,r[zx("0x3a")]),t&&(n[zx("0xf")].includes(r[zx("0x3a")])?i.writer[zx("0x49")](zx("0x30"),c):i[zx("0x2d")].removeClass(zx("0x30"),c))}}}}n[zx("0x20")](zx("0x36"),((e,s)=>{const r=o[zx("0x3f")](t[zx("0x3")][zx("0x18")].selection),i=o[zx("0x2b")](r),x=r[0][zx("0x47")](zx("0x6")),a=x[zx("0x45")](zx("0x7"))||0,c=s&&null!==s[zx("0x1e")]?s[zx("0x1e")]:!t[zx("0x1c")].get(zx("0x36"))[zx("0x38")],l=c?i[zx("0x54")]:i[zx("0x4b")],d=x.getChild(l);let u;if(c){const e=x[zx("0xe")](a);if(d[zx("0xc")]<e.index)return;u=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e[zx("0xe")](0)),t[zx("0x3")][zx("0x8")](d.getChild(d[zx("0x23")]-1)))}else{const e=x[zx("0xe")](a-1);if(!e)return;u=t[zx("0x3")][zx("0x4f")](t.model[zx("0x41")](d[zx("0xe")](0)),t[zx("0x3")].createPositionAfter(e[zx("0xe")](e[zx("0x23")]-1)))}t[zx("0x3")][zx("0xb")]((()=>{n[zx("0x10")](u,{commandName:zx("0x36"),commandParams:[{forceValue:c}]},[],zx("0x36"))}))})),n[zx("0x20")](zx("0xd"),((e,o)=>{const s=t[zx("0x4a")].get(zx("0x5")),r=s[zx("0x3f")](t.model.document[zx("0x19")]),i=s[zx("0x51")](r),x=r[0][zx("0x47")]("table"),a=x[zx("0x45")](zx("0x2"))||0,c=o&&null!==o[zx("0x1e")]?o[zx("0x1e")]:!t[zx("0x1c")][zx("0x52")]("setTableColumnHeader")[zx("0x38")];let l;const d=x[zx("0xe")](0),u=c?i[zx("0x54")]:i[zx("0x4b")],g=s[zx("0x43")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x4d")];if(c){const e=d.getChild(a);if(m[zx("0x1")](e))return;l=t[zx("0x3")][zx("0x4f")](t[zx("0x3")][zx("0x41")](e),t.model[zx("0x8")](m))}else{const e=d[zx("0xe")](a-1);if(!e)return;l=t[zx("0x3")].createRange(t[zx("0x3")][zx("0x41")](m),t[zx("0x3")][zx("0x8")](e))}t[zx("0x3")][zx("0xb")]((()=>{n.markBlockFormat(l,{commandName:zx("0xd"),commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),t.editing[zx("0x37")].on(zx("0x29"),r(),{priority:"highest"}),t[zx("0x46")][zx("0x37")].on(zx("0x29"),((t,e,n)=>{n[zx("0x4")][zx("0x9")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x4e")][zx("0x37")].on(zx("0x2f"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x31")](e[zx("0x3a")]),i=n[zx("0x16")](r);if(!i[zx("0x46")]||zx("0xd")!=i[zx("0x46")][zx("0x35")])return;const x=o[zx("0x33")].markerNameToElements(e[zx("0x3a")]);if(x)for(const t of x)o[zx("0x2d")][zx("0x14")](zx("0x24")+s,t),o[zx("0x2d")].removeClass(zx("0x30"),t),o[zx("0x2d")].removeAttribute(zx("0x1b"),t),o[zx("0x33")][zx("0x15")](t,e.markerName)}),{priority:zx("0x39")}),n[zx("0x22")][zx("0x11")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x25")][0][zx("0x1e")];return o(Yo(e,zx(t?"0x44":"0x21")))}if(zx("0xd")==n[zx("0x35")]){const t=n[zx("0x25")][0].forceValue;return o(Yo(e,t?zx("0x2e"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x0"),content:Yo(e,zx("0x3c"),t)}}}));const i=s[zx("0x4c")]();n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0x36"),"accept",i),n[zx("0x32")][zx("0x17")](zx("0x50"),zx("0xd"),zx("0x12"),i)}}const Vx=["columns","from","insertionRanges","createRangeIn","afterInit","getMarkers","removeMarker","element","column","getChangedMarkers","markerAttributes","locale","keys","markMultiRangeDeletion","model","suggestion-td","getItems","getAllAdjacentSuggestions","getRows","tableCellSuggestion","tablePasteRow","Users","dataDowncast","ck-suggestion-marker","conversion","markMultiRangeBlockFormat","tablePaste","removeMarkers","getSelectionAffectedTableCells","findAncestor","subType","forceDefaultExecution","options","register","find","cell","tableCellBorderWidth","getRange","markMultiRangeInsertion","paragraph","tableCellVerticalAlignment","nodeAfter","isEqual","markerName","for","last","getAttributes","isEmpty","createTableWalker","getShiftedBy","batch","elementToElement","map","createElement","cells","getChanges","insertColumns","markerToHighlight","author","$graveyard","differ","table","redo","_descriptionFactory","deletionRanges","trackChanges","stop","suggestion","editing","getSuggestions","oldRange","value","previousSibling","tablePasteColumn","TableClipboard","end","name","commands","includes","add","discard","join","remove","filter","rows","_tablePostFixingSubtypes","fill","root","plugins","low","getChild","showSuggestionHighlights","setAttribute","isInContent","markers","get","_suggestionFactory","move","rowInsertionRanges","_getCoordsForCells","length","push","removeRows","accept","view","TableUtils","getRowIndexes","insertion","start","wrap","document","newRange","startsWith","formatBlock","listenTo","ck-suggestion-marker-insertion","tableCellBackgroundColor","tableCell","fromEntries","tablePasteChainId","tableCellBorderStyle","rowInsertionIndexes","insertRows","unwrap","ck-suggestion-marker--active","containsRange","selection","attributes","registerPostFixer","change","type","deletion","createRange","suggestionUnloaded","insert","registerCustomCallback","getColumns","getSuggestion","tableCellPadding","suggestion:formatBlock:tablePasteCell","_splitMarkerName","columnInsertionRanges","getColumnIndexes","tablePasteCell","getTableIfOnlyTableInContent","first","endColumn","clipboardOutput","columnInsertionIndexes","set","getContainedElement","insertContent","rootName","*Replace table cells*","high","createRangeOn","has","getChildren"];var Kx,qx;Kx=Vx,qx=248,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x68"),"tableCellBorderColor",Xx("0x1e"),"tableCellHorizontalAlignment",Xx("0x6c"),Xx("0x1a"),Xx("0x30")],Jx=Object[Xx("0x1c")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[Mx]}[Xx("0x48")](){const t=this.editor;if(!t[Xx("0x9c")][Xx("0x42")](Xx("0x8e")))return;const n=t[Xx("0x9c")].get("TrackChangesEditing"),o=t.plugins[Xx("0x5")](Xx("0xf")),s=t[Xx("0x9c")][Xx("0x5")](Mx),r=t[Xx("0x9c")][Xx("0x5")](Xx("0x8e"));s[Xx("0x99")].push("tablePasteRow",Xx("0x8d")),t[Xx("0x52")].schema[Xx("0x65")](Xx("0x57"),{allowIn:Xx("0x1b"),allowContentOf:Xx("0x1b"),isLimit:!0}),t.conversion[Xx("0x77")]({model:Xx("0x57"),view:Xx("0x53")});let i=null;t[Xx("0x52")].on(Xx("0x3d"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0xa")]-1];l&&l[Xx("0x63")]||n._isForcedDefaultExecutionBlock||this.editor.commands[Xx("0x5")](Xx("0x85"))[Xx("0x8b")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x36")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x60")](n.document[Xx("0x24")]);if(!i.length)return!1;const x=i[0][Xx("0x61")]("table"),a=o[Xx("0x10")](i),c=o[Xx("0x34")](i),l={startRow:a[Xx("0x37")],endRow:a[Xx("0x71")],startColumn:c[Xx("0x37")],endColumn:c[Xx("0x71")]};return 1==i[Xx("0xa")]&&(l.endRow+=o[Xx("0x56")](r)-1,l[Xx("0x38")]+=o[Xx("0x2e")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x52")],o,r)&&(s[Xx("0x86")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x52")][Xx("0x27")]((()=>{t[Xx("0x52")][Xx("0x3d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0xa")]&&n[Xx("0x6a")](s,Xx("0x58"),{tablePasteChainId:o}),r[Xx("0xa")]&&n[Xx("0x6a")](r,Xx("0x8d"),{tablePasteChainId:o}),a[Xx("0xa")]&&n[Xx("0x6a")](a,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0xa")]&&n[Xx("0x51")](c,Xx("0x5e"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x5d")](l[Xx("0x78")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x35"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x52")][Xx("0x41")](o),i=e[Xx("0x66")]((t=>t[Xx("0x69")]()[Xx("0x6e")](r)));i&&n[Xx("0xb")]([i[Xx("0x90")],s])}n[Xx("0xa")]&&d[Xx("0x2")]("markerAttributes",Object[Xx("0x1c")](n))}i=null})))}),{priority:e.priorities[Xx("0x40")]+10}),t[Xx("0x9c")][Xx("0x5")](Xx("0x8e")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x86")]();const r=n[Xx("0x67")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x0")](0));for(const t of Array.from(x[Xx("0x43")]()))s[Xx("0x2c")](t,r,Xx("0x8f"));const t=i[Xx("0x1f")][Xx("0x92")](n.row),e=i.columnInsertionIndexes[Xx("0x92")](n[Xx("0x4c")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s[Xx("0x47")](r));else{const t=s[Xx("0x79")]("tableCellSuggestion"),e=s.createElement(Xx("0x57"));s[Xx("0x13")](s[Xx("0x47")](r),e),s[Xx("0x2c")](t,r,0);for(const e of Array.from(x.getChildren()))s.insert(e,t,"end");l=s[Xx("0x41")](t),d=s[Xx("0x41")](e)}const u=Array[Xx("0x45")](x[Xx("0x72")]())[Xx("0x97")]((([t])=>$x[Xx("0x92")](t)));i[Xx("0x7a")][Xx("0xb")]({element:r,attributes:u[Xx("0xa")]?Object[Xx("0x1c")](u):null}),l&&i[Xx("0x46")][Xx("0xb")](l),d&&i[Xx("0x84")].push(d)}),{priority:Xx("0x40")}),o.on(Xx("0x7c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x44")]||1;i[Xx("0x3a")]=new Array(a).fill(x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x33")][Xx("0xb")](t[Xx("0x52")].createRangeOn(e))}),{priority:"low"}),o.on(Xx("0x20"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x98")]||1;i[Xx("0x1f")]=new Array(a)[Xx("0x9a")](x)[Xx("0x78")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x8")][Xx("0xb")](t[Xx("0x52")][Xx("0x41")](e))}),{priority:Xx("0x9d")}),n[Xx("0x83")].registerDescriptionCallback((e=>{if(e.subType&&e[Xx("0x62")][Xx("0x16")](Xx("0x5e")))return e.previous?{}:{type:Xx("0x11"),content:Yo(t[Xx("0x4f")],Xx("0x3f"))}}));const x=()=>{};for(const t of[Xx("0x5e"),"tablePasteColumn",Xx("0x58"),Xx("0x35")])n._suggestionFactory.registerCustomCallback(Xx("0x11"),t,Xx("0x95"),x),n[Xx("0x6")][Xx("0x2d")](Xx("0x29"),t,Xx("0x95"),x);n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),"discard",x),n[Xx("0x6")][Xx("0x2d")](Xx("0x17"),Xx("0x35"),Xx("0xd"),((e,n,o)=>{const s=e[Xx("0x78")]((t=>t[Xx("0x3c")]()))[Xx("0x97")]((t=>t)),r=new Map(s[Xx("0x78")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x7a")])e&&r[Xx("0x3b")](t,e);else if(o&&o[Xx("0x4e")])for(const[e,n]of Object.entries(o[Xx("0x4e")])){const o=t[Xx("0x52")][Xx("0x4")][Xx("0x5")](e),s=o?o[Xx("0x69")]()[Xx("0x3c")]():null;s&&r[Xx("0x3b")](s,n)}t[Xx("0x52")].change((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x6")].registerCustomCallback(e,Xx("0x5e"),o,((s,r,i)=>{t[Xx("0x52")][Xx("0x27")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x12")][Xx("0x6d")];e.is(Xx("0x4b"),Xx("0x57"))&&x.push(e)}n[Xx("0x6")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x7f")!=e[Xx("0x9b")][Xx("0x3e")]&&t[Xx("0x21")](e)}))}))};a(Xx("0x11"),Xx("0xd")),a(Xx("0x11"),Xx("0x94")),a(Xx("0x29"),Xx("0xd")),a(Xx("0x29"),Xx("0x94")),n[Xx("0x6")][Xx("0x2d")]("insertion",Xx("0x58"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0xc")](n,{at:r,rows:i-r+1})})),n[Xx("0x6")][Xx("0x2d")](Xx("0x11"),Xx("0x8d"),Xx("0x94"),(t=>{const e=t[Xx("0x78")]((t=>t[Xx("0x3c")]())),n=e[0][Xx("0x61")](Xx("0x81")),{minColumn:r,maxColumn:i}=s[Xx("0x9")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x62")]||!e.subType.startsWith(Xx("0x5e")))return;const o=e[Xx("0x25")].tablePasteChainId,s=n[Xx("0x89")]()[Xx("0x97")]((t=>t.isInContent&&t[Xx("0x25")]&&t[Xx("0x25")][Xx("0x1d")]==o));s.length&&e[Xx("0x55")]()[Xx("0xa")]!=s.length&&s.reduce(((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x6f")]),s=[Xx("0x5b"),Xx("0x19")],r=n.activeMarkers[Xx("0x92")](t.markerName);return r&&s.push(Xx("0x22")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(Xx("0x2b"),c,{priority:"high"}),t.model[Xx("0x14")].registerPostFixer((()=>{let e=!1;const o=Array.from(t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x4d")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x32")](s);if(Xx("0x87")!=o||"deletion"!=i||r[Xx("0x8a")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x2f")](x).getRanges(),c=t[Xx("0x9c")][Xx("0x5")](Xx("0x59")).me;for(const t of n[Xx("0x89")]())if(t[Xx("0x3")]&&t[Xx("0x7e")]==c&&Xx("0x17")==t[Xx("0x28")]&&Xx("0x35")==t[Xx("0x62")]&&t.getRanges().every((t=>a.some((e=>e[Xx("0x23")](t,!0))))))for(const n of t[Xx("0x55")]())n[Xx("0x3")]&&(n.discard(),e=!0)}return e})),t[Xx("0x52")].document[Xx("0x26")]((e=>{const o=t[Xx("0x91")][Xx("0x5")](Xx("0x82"));if(!o||!o._createdBatches.has(e[Xx("0x76")]))return!1;let s=!1;const r=t[Xx("0x9c")].get("Users").me,i=t[Xx("0x52")][Xx("0x14")][Xx("0x80")][Xx("0x7b")](),x=Array[Xx("0x45")](t[Xx("0x52")][Xx("0x14")].differ[Xx("0x4d")]())[Xx("0x97")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x32")](t);return Xx("0x87")==o&&Xx("0x5e")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2c")!=t[Xx("0x28")]||Xx("0x57")!=t[Xx("0x90")]||1!=t.length)continue;const n=e[Xx("0x2a")](t.position,t.position[Xx("0x75")](1));if(!x[Xx("0x66")]((({data:t})=>t[Xx("0x15")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x52")].document[Xx("0x26")]((e=>{let o=!1;const s=t[Xx("0x9c")].get(Xx("0x59")).me,r=n[Xx("0x89")]()[Xx("0x97")]((t=>t[Xx("0x3")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5e")==t[Xx("0x62")])for(const e of t[Xx("0x49")]()){const n=e[Xx("0x69")]()[Xx("0x3c")]();if(n)if(n.is(Xx("0x4b"),Xx("0x57"))&&Zx(n)){t[Xx("0x4a")](e[Xx("0x90")]),i[Xx("0x93")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x8c")],a=s&&s.is(Xx("0x4b"),Xx("0x57")),c=r&&r.is("element","tableCellSuggestion");a&&!i[Xx("0x42")](s)&&x.add(s),c&&!i[Xx("0x42")](r)&&x[Xx("0x93")](r)}else n.is(Xx("0x4b"),Xx("0x6b"))&&n[Xx("0x73")]&&(t.removeMarker(e[Xx("0x90")]),o=!0)}else if("tablePasteCell"==t[Xx("0x62")]){if(!t.attributes||!t[Xx("0x25")][Xx("0x1d")])continue;const e=t.attributes[Xx("0x4e")];if(e&&Object[Xx("0x50")](e)[Xx("0xa")])continue;const n=t[Xx("0x25")][Xx("0x1d")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x62")]&&e.subType.startsWith(Xx("0x5e"))){if(!e[Xx("0x25")][Xx("0x1d")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x25")][Xx("0x1d")]==n){s=!1;break}}i&&s&&(t[Xx("0x5f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x21")](t);return o})),t[Xx("0x5c")][Xx("0x70")]("editingDowncast")[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>l(t),converterPriority:Xx("0x40")}),t[Xx("0x5c")].for(Xx("0x5a"))[Xx("0x7d")]({model:Xx("0x31"),view:(t,e)=>e[Xx("0x64")][Xx("0x1")]?l(t,!1):null,converterPriority:Xx("0x40")});const d=t[Xx("0x88")][Xx("0xe")];this[Xx("0x18")](d[Xx("0x14")],Xx("0x39"),((t,e)=>{const n=[];for(const t of d[Xx("0x47")](e.content)[Xx("0x54")]())t.is(Xx("0x4b"),Xx("0x53"))&&n[Xx("0xb")](t);d[Xx("0x27")]((t=>{for(const e of n)t[Xx("0x7")](t.createRangeIn(e),t.createPositionBefore(e)),t[Xx("0x96")](e)}))}))}}function Zx(t){if(t[Xx("0x73")])return!0;const e=t[Xx("0x0")](0);return e.is(Xx("0x4b"),"paragraph")&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x74")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["formatBlock","registerDescriptionCallback","has","handleSuggestionDescription","get","columnWidths","table","resizeColumnWidths","TrackChangesEditing","data","getSelectedElement","getTableColumnsWidths","_suggestionFactory","bind","accept","subType","commandParams","getColumnGroupElement","getAttribute","discard","locale","_descriptionFactory","plugins","document","enableCommand","resizeTable","editor","model","handleResizeTableWidthCommand","resizeTableWidth","tableWidth","selection","Users","TableColumnResizeEditing","getSuggestions","*Format:* resize table","registerCustomCallback"];var ea,na;ea=ta,na=156,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x12")][oa("0xe")][oa("0x1f")](oa("0x19")))return;const t=this[oa("0x12")].plugins[oa("0x21")](oa("0x0"));t[oa("0x10")](oa("0x15"),this[oa("0x14")][oa("0x5")](this)),t[oa("0x10")](oa("0x24"),this[oa("0x14")][oa("0x5")](this)),t._suggestionFactory[oa("0x1c")](oa("0x1d"),oa("0x11"),"accept",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,"discard")),t[oa("0x4")][oa("0x1c")](oa("0x1d"),oa("0x11"),"discard",t[oa("0x4")].getSuggestionCallback(oa("0x1d"),null,oa("0x6"))),t[oa("0xd")][oa("0x1e")](this.handleSuggestionDescription[oa("0x5")](this))}[oa("0x14")](t,e){const n=this[oa("0x12")][oa("0xe")].get(oa("0x0")),o=this[oa("0x12")][oa("0xe")].get(oa("0x19")),s=e[oa("0x23")]||this.editor[oa("0x13")][oa("0xf")][oa("0x17")][oa("0x2")]();this.editor[oa("0x13")].change((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x3")](r):null,x=s[oa("0xa")](oa("0x16"))||null;const a=e[oa("0x16")]||x,c=e[oa("0x22")]||i,l=this[oa("0x12")][oa("0xe")][oa("0x21")](oa("0x18")).me;for(const t of n[oa("0x1a")]()){const e=t.getContainedElement();if(oa("0x11")===t[oa("0x7")]&&e===s){t.author!==l&&t[oa("0xb")]();const e=t[oa("0x1")][oa("0x8")];x=e[0][oa("0x16")],i=e[0][oa("0x22")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x15"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x11")},[],oa("0x11"))}))}[oa("0x20")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x1b");return{type:"format",content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["TrackChangesEditing","has","Template"];var ia,xa;ia=ra,xa=315,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t.plugins[aa("0x1")](aa("0x2"))&&t.plugins.get(aa("0x0")).enableCommand("insertTemplate")}}const la=["plugins","get","insertTableOfContents","enableCommand","TrackChangesEditing","_descriptionFactory","tableOfContents","commands","afterInit","editor","registerElementLabel"];var da,ua;da=la,ua=185,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xa")](){const t=this[ga("0x0")];if(!t[ga("0x9")].get(ga("0x4")))return;t[ga("0x2")][ga("0x3")]("TrackChangesEditing")[ga("0x5")](ga("0x4"));const e=t[ga("0x2")].get(ga("0x6")),n=t.locale;e[ga("0x7")][ga("0x1")](ga("0x8"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["schema","differ","element","end","from","TrackChangesEditing","removeMarker","model","_descriptionFactory","editor","ELEMENT_TITLE","suggestion","start","forward","afterInit","locale","get","Title","nodeBefore","isTouching","getChangedMarkers","newRange","getNearestSelectionRange","isEqual","plugins","document","updateMarker","title-content"];var ha,pa;ha=fa,pa=206,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x4")](){const t=this[ba("0x1b")];if(!t.plugins.has(ba("0x7")))return;const e=t[ba("0xe")][ba("0x6")](ba("0x17"));e[ba("0x1a")].registerElementLabel(ba("0x11"),(()=>Yo(t[ba("0x5")],ba("0x0")))),t.model[ba("0xf")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x16")](t[ba("0x19")][ba("0xf")][ba("0x13")][ba("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x1")!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x.end[ba("0x8")];if(!a||!a.is(ba("0x14"),"title-content"))continue;if(!x[ba("0x2")][ba("0x9")](x[ba("0x15")]))continue;const c=t[ba("0x19")][ba("0x12")][ba("0xc")](x[ba("0x15")],ba("0x3"));if(c&&c.isCollapsed){const t=n.createRange(x[ba("0x2")],c[ba("0x2")]);t[ba("0xd")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x18")](r),o=!0)}return o}))}}const _a=["redo","TrackChangesEditing","undo","get","enableCommand","plugins","editor","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=330,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x0")],e=t.plugins[ya("0x6")](ya("0x4"));t[ya("0x8")][ya("0x1")](ya("0x2"))&&(e[ya("0x7")](ya("0x5")),e[ya("0x7")](ya("0x3")))}}const Aa=["TableCaptionEditing","plugins","has","toggleTableCaption","enableCommand","afterInit","get","requires","editor"];var va,Ra;va=Aa,Ra=107,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x8")](){return[Mx]}[Sa("0x6")](){const t=this[Sa("0x0")];t[Sa("0x2")][Sa("0x3")](Sa("0x1"))&&t[Sa("0x2")][Sa("0x7")]("TrackChangesEditing")[Sa("0x5")](Sa("0x4"))}}const La=["isFirstBlockOfListItem","config","handleDescriptions","toUpperCase","*Change to:* %0","editor","styles","listStart","DocumentListUtils","DocumentListPropertiesEditing","model","list.properties","get","format","_LIST_","ELEMENT_","markMultiRangeBlockFormat","length","has","_getSuggestionBlocks","startIndex","DocumentListPropertiesUtils","bind","_getTranslationKeyForListStyle","push","plugins","_descriptionFactory","filter","TrackChangesEditing","getSelectedBlocks","replace","_getSuggestionBlocksForListStyle","listType","numbered","handleListReversedCommand","enableCommand","locale","from","afterInit","getAttribute","reversed","handleListStartCommand","registerDescriptionCallback","selection","isListItemBlock","getListTypeFromListStyleType","expandListBlocksToCompleteList","change","listReversed","*Format:* set order to reversed","*Format:* set start index to %0","listStyle","handleListStyleCommand","commandParams","type"];var Na,wa;Na=La,wa=339,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x1d")](){if(!this[Ma("0x33")][Ma("0x10")][Ma("0x9")](Ma("0x0")))return;const t=this.editor[Ma("0x2f")][Ma("0x3")](Ma("0x2")),e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13"));t[Ma("0x34")]&&e.enableCommand(Ma("0x2a"),this[Ma("0x2b")].bind(this)),t[Ma("0x1f")]&&e[Ma("0x1a")](Ma("0x27"),this[Ma("0x19")].bind(this)),t[Ma("0xb")]&&e.enableCommand(Ma("0x35"),this[Ma("0x20")][Ma("0xd")](this)),e[Ma("0x11")][Ma("0x21")](this[Ma("0x30")][Ma("0xd")](this))}[Ma("0x2b")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x16")]();this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ma("0x2a"),commandParams:[{type:e[Ma("0x2d")]}],formatGroupId:Ma("0x2a")})}))}[Ma("0x19")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this.editor[Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ma("0x23")](t)&&Ma("0x18")===t[Ma("0x1e")](Ma("0x17"))));null!==s&&this.editor[Ma("0x1")][Ma("0x26")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x27"),commandParams:[{reversed:e[Ma("0x1f")]}],formatGroupId:Ma("0x27")})}))}[Ma("0x20")](t,e={}){const n=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x13")),o=this[Ma("0x33")][Ma("0x10")][Ma("0x3")]("DocumentListUtils"),s=this[Ma("0xa")]((t=>o[Ma("0x23")](t)&&Ma("0x18")===t.getAttribute(Ma("0x17"))));null!==s&&this[Ma("0x33")][Ma("0x1")][Ma("0x26")]((()=>{n[Ma("0x7")](s,{commandName:"listStart",commandParams:[{startIndex:e[Ma("0xb")]}],formatGroupId:Ma("0x35")})}))}[Ma("0x30")](t){const e=this[Ma("0x33")][Ma("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ma("0x2a"):o=Ma("0x32"),s={type:Ma("0x4"),content:Yo(e,o,Yo(e,this[Ma("0xe")](n[Ma("0x2c")][0][Ma("0x2d")])))};break;case"listReversed":o=n[Ma("0x2c")][0][Ma("0x1f")]?Ma("0x28"):"*Format:* set order to regular",s={type:Ma("0x4"),content:Yo(e,o)};break;case Ma("0x35"):o=Ma("0x29"),s={type:Ma("0x4"),content:Yo(e,o,n[Ma("0x2c")][0][Ma("0xb")])}}return s}[Ma("0x16")](){const t=this[Ma("0x33")].plugins[Ma("0x3")](Ma("0x36"));let e=Array[Ma("0x1c")](this[Ma("0x33")][Ma("0x1")].document[Ma("0x22")][Ma("0x14")]());return e[Ma("0xf")](...t[Ma("0x25")](e)),e=[...new Set(e)],e}[Ma("0xa")](t){const e=this[Ma("0x33")][Ma("0x10")][Ma("0x3")](Ma("0x36"));let n=Array[Ma("0x1c")](this[Ma("0x33")].model.document.selection[Ma("0x14")]())[Ma("0x12")](t);if(!n[Ma("0x8")])return null;n=e[Ma("0x25")](n);const o=[];for(const t of n)e[Ma("0x2e")](t)&&o[Ma("0xf")](t);return o}[Ma("0xe")](t){return Ma("0x6")+this[Ma("0x33")].plugins[Ma("0x3")](Ma("0xc"))[Ma("0x24")](t)[Ma("0x31")]()+Ma("0x5")+t[Ma("0x31")]()[Ma("0x15")](/-/g,"_")}}const Fa=["TableCellPropertiesEditing","getAttribute","table","getSelectionAffectedTableCells","markBlockFormat","accept","has","tableBorderWidth","tableCellBorderWidth","afterInit","commandParams","getSuggestions","*Format:* change table cell properties","selection","*Format:* change table properties","enqueueChange","_descriptionFactory","model","_handlePropertyChange","pluginName","tableCellWidth","locale","_suggestionFactory","formatBlock","TableUtils","tableCellPadding","_getSuggestion","registerCustomCallback","format","tableProperties","document","removeAttribute","tableHeight","data","tableCellBorderColor","get","tableCellProperties","handleDiscardAction","nodeAfter","editor","registerDescriptionCallback","getFirstPosition","tableBorderColor","enableCommand","TrackChangesEditing","tableBorderStyle","handleSuggestionDescription","tableCellBorderStyle","plugins","batch","discard","change","tableBackgroundColor","join","setAttribute","getContainedElement"];var Pa,Da;Pa=Fa,Da=284,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x19")]=[Ba("0x26"),Ba("0x29"),Ba("0x3"),"tableAlignment","tableWidth",Ba("0x1c"),Ba("0x30")],this.tableCellProperties=[Ba("0x1e"),Ba("0x2b"),Ba("0x4"),Ba("0x15"),Ba("0x10"),"tableCellHeight","tableCellBackgroundColor","tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0xf")](){return"TrackChangesTableProperties"}[Ba("0x5")](){const t=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")](Ba("0x28"));if(this.editor[Ba("0x2c")][Ba("0x2")]("TablePropertiesEditing")){for(const e of this[Ba("0x19")])t[Ba("0x27")](e,((t,n)=>{const o=this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")][Ba("0x25")]().findAncestor(Ba("0x36"));this[Ba("0xe")](e,[o],this[Ba("0x19")],Ba("0x19"),t,n)}));t[Ba("0x12")][Ba("0x17")](Ba("0x13"),Ba("0x19"),Ba("0x1"),t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")]("formatBlock",Ba("0x19"),Ba("0x2e"),((t,e)=>this.handleDiscardAction(this[Ba("0x19")],t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x19"),Ba("0x31"),(()=>!1))}if(this.editor[Ba("0x2c")].has(Ba("0x34"))){for(const e of this[Ba("0x20")])t[Ba("0x27")](e,((t,n)=>{const o=this.editor[Ba("0x2c")][Ba("0x1f")](Ba("0x14"))[Ba("0x37")](this[Ba("0x23")][Ba("0xd")][Ba("0x1a")][Ba("0x9")]);this[Ba("0xe")](e,o,this[Ba("0x20")],Ba("0x20"),t,n)}));t[Ba("0x12")].registerCustomCallback(Ba("0x13"),Ba("0x20"),"accept",t[Ba("0x12")].getSuggestionCallback(Ba("0x13"),null,Ba("0x2e"))),t[Ba("0x12")][Ba("0x17")](Ba("0x13"),"tableCellProperties",Ba("0x2e"),((t,e)=>this[Ba("0x21")](this.tableCellProperties,t,e))),t[Ba("0x12")].registerCustomCallback(Ba("0x13"),"tableCellProperties","join",(()=>!1))}t[Ba("0xc")][Ba("0x24")]((t=>this[Ba("0x2a")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x1f")](Ba("0x28"));this[Ba("0x23")][Ba("0xd")][Ba("0xb")](r[Ba("0x2d")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x35")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x0")](t,{commandParams:[e]},[],o)}}))}[Ba("0x21")](t,e,n){const o=e[0].start[Ba("0x22")],s=n[Ba("0x6")][0];this[Ba("0x23")][Ba("0xd")][Ba("0x2f")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x32")](n,s[n],o):e[Ba("0x1b")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x1d")])switch(t.subType){case Ba("0x19"):return{type:Ba("0x18"),content:Yo(this[Ba("0x23")][Ba("0x11")],Ba("0xa"))};case Ba("0x20"):return{type:Ba("0x18"),content:Yo(this.editor[Ba("0x11")],Ba("0x8"))}}}_getSuggestion(t,e){const n=this[Ba("0x23")][Ba("0x2c")][Ba("0x1f")]("TrackChangesEditing");for(const o of n[Ba("0x7")]({skipNotAttached:!0})){const n=o[Ba("0x33")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["formatGroupId","isInsideObject","@external","formatBlock","TrackChangesEditing","updateMarker","oldRange","ck-suggestion-marker--active","containsPosition","after","error-saving-suggestion-data-suggestion-discarded","formatInline","getRanges","showSuggestionHighlights","isBlock","some","data-suggestion","differ","mapper","howMany","addUser","PendingActions","nodeBefore","has","normal","getNearestSelectionRange","editor","lowest","_trackFormatChanges","createRange","_isForcedDefaultExecutionBlock","deleteContent","toViewElement","_handleNewSuggestionMarker","fromCharCode","_registerDefaultCallbacks","newRange","bindElementToMarker","insertion:join","isAtEnd","change:data","isOwn","discardAllSuggestions","deletion","isInContent","ck-suggestion-marker-","getChangedMarkers","getFirstRange","isRemovable","size","moveTargetPosition","removeAttribute","schema","set","markerName","includes","containsRangeInObject","trackChanges","_refreshSuggestionsChain","isEqual","split","config","setSelection","discardSuggestion","skipNestingCheck","formatBlock:chain","_customCallbacks","containsRange","splitPosition","addComment","consume","Users","createSelection","suggestion","stop","position","add","_addSuggestionMarker","map","buildSuggestion","get","formatBlock:accept","consumable","_suggestions","detach","enableCommand","discardSelectedSuggestions","removeComment","multipleBlocks","getIntersection","updateSuggestion","suggestionChanged","getShiftedBy","widget","value","formatInline:chain","markerToData","requires","sort","formatBlock:join","remove","define","_commentsRepository","markDeletion","isBefore","isCollapsed","createPositionAfter","getUser","editingDowncast","$textProxy","_updateSuggestionData","getAllAdjacentSuggestions","resolve","getSuggestions","getLastMatchingPosition","forward","values","then","formatInline:","dataReady","removeClass","commands","markerToHighlight","containerElement","_editor","catch","track-changes-adapter-missing-getsuggestion","activeMarkers","registerPostFixer","markerReady","isIntersectingWithRange","before","never","_cutOutSuggestionMarker","$graveyard","hasCommentThread","_breakSuggestionMarker","suggestion:","suggestion-type","_onDiscard","isDocumentOperation","markMultiRangeDeletion","commandName","clear","type","createRangeIn","_setSuggestionRange","low","stopListening","_suggestionState","enableReadOnlyMode","_checkSuggestionCorrectness","model","external:","getSuggestionCallback","createPositionAt","refresh","locale","insertion:accept","elementEnd","rootName","getMultiRangeId","addMarker:suggestion:formatBlock","marker-count","item","track-changes-suggestion-data-mismatch","accept","conversion","execute","isTouching","_getExternalAuthor","splice","upcast","data","isLimit","join","dataToMarker","filter","_rangeIsInLocalUserInsertion","rethrowUnexpectedError","_enabledCommands","track-changes-suggestion-not-found","ck-suggestion-marker","always","track-changes-user-not-found","change","isSelectable","removeMarkers","attributes","isAfter","_getAuthorFromId","every","end","getMarkers","return","change:activeMarkers","_defaultCallbacks","track-changes-command-not-found","deletion:","markInsertion","fromRange","init","addRange","open","setAttribute","createPositionBefore","_createSuggestion","getCommentThread","isUndo","addMarker","authoredAt","elementToElement","adapter","getChanges","clone","trackChanges.trackFormatChanges","pluginName","element","reconvertMarker","next","length","notReady","isLocal","forceDefaultExecution","getCustomProperty","acceptSelectedSuggestions","_joinWithAdjacentSuggestions","deletion:chain","getDifference","commentThread","trackChanges.mergeNestedSuggestions","acceptAllSuggestions","ck-suggestion-marker-formatBlock","registerCustomCallback","removeMarker","removed","formatInline:join","author","acceptSuggestion","ready","setTo","unbindElementFromMarkerName","_joinSuggestions","root","plugins","getSuggestion","subType","document","_findSuggestions","suggestionUnloaded","insertion","unbind","previous","isNextTo","_model","_saved","_addThreadToSuggestion","addHighlight","_splitMarkerName","addSuggestion","head","range","isObject","createElement","markMultiRangeBlockFormat","hasComments","toJSON","track-changes-adapter-already-set","insertion:","name","suggestionLoaded","isMultiRange","trackChangesCommand","discard","parent","selection","for","PENDING_ACTION_SUGGESTION","delete","insertContent","fire","_setSuggestionData","_suggestionFactory","addMarkerName","insert","createdAt","getFirstMarker","hasSuggestion","multi","from","push","getAttribute","high","markBlockFormat","highest","accepted","addClass","start","_removeSuggestion","deletion:discard","addCommentThread","getItems","CommentsRepository","nodeAfter","chain","formatBlock:","elementStart","addSuggestionData","markers","_mergeNestedSuggestions","options","writer","dataDowncast","_adapter","creator"];var Ga,Ha;Ga=Ua,Ha=390,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x16")](){return[za("0xe3"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x8d")](){return za("0xf4")}constructor(t){function e(t){return t[za("0x3")]((t=>String[za("0x112")](t)))[za("0x64")]("")}super(t),this[za("0x125")](za("0x34"),[]),this.on(za("0x78"),((e,n,o,s)=>{this[za("0xb3")][za("0x6e")]((()=>{for(const e of[...s,...o])this[za("0xb3")].markers[za("0x107")](e)&&t.editing[za("0x8f")](e)}))})),this._descriptionFactory=new ss(this[za("0x10a")][za("0x4d")][za("0x124")],this[za("0x10a")][za("0x52")]),this[za("0xee")]=null,this[za("0xcf")]=new Va(this[za("0x10a")]),this[za("0x8")]=new Map,this._commentsRepository=t[za("0xa9")][za("0x5")](za("0xe3")),this._enabledCommands=new Set,this[za("0xb3")]=this[za("0x10a")][za("0x4d")],this._suggestionState=new WeakMap,this[za("0x10e")]=!1,t[za("0x12d")][za("0x1a")](za("0x8c"),"default"),this[za("0x10c")]=t[za("0x12d")][za("0x5")]("trackChanges.trackFormatChanges"),t.config[za("0x1a")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t.config[za("0x5")](za("0x9b")),this[za("0xc5")]=new u(t,this[za("0x69")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,52,54])}[za("0x7e")](){const t=this[za("0x10a")];t.conversion[za("0xc9")](za("0x21"))[za("0x2f")]({model:za("0x139"),view:t=>{const{id:e,type:n}=this[za("0xb7")](t[za("0x126")]),o=[za("0x6b"),za("0x11d")+n];let s=3e3;return this[za("0x34")][za("0x127")](t[za("0x126")])&&(o[za("0xd7")]("ck-suggestion-marker--active"),s=3010),za("0x11b")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x1")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0xeb")][za("0xfd")])return;const s=n[za("0x59")];if(!s)return;const r=o[za("0x102")][za("0x110")](s);t[za("0x4d")][za("0x124")][za("0xbb")](s)&&r&&!r[za("0x95")](za("0x12"))&&r.is(za("0x30"))&&(0,x.toWidget)(r,o[za("0xec")])}),{priority:za("0xd9")})})),t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x2f")]({model:za("0x139"),view:(t,e)=>{if(!e[za("0xeb")].showSuggestionHighlights)return null;const{type:n}=this[za("0xb7")](t[za("0x126")]);return{classes:["ck-suggestion-marker",za("0x11d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x59")])return;if(o[za("0x59")].is(za("0xc8")))return void s[za("0x7")][za("0x136")](o[za("0x59")],n[za("0xc2")]);const r=s[za("0x102")][za("0x110")](o.item);if(!o[za("0x59")].is(za("0x8e"))||!t[za("0x4d")].schema[za("0xfe")](o.item)||r[za("0x95")](za("0xb6")))return;const{id:i}=this[za("0xb7")](o.markerName);s[za("0xec")].addClass([za("0x6b"),za("0x9d")],r),s[za("0xec")][za("0x81")]("data-suggestion",i,r),s[za("0x102")][za("0x115")](r,o[za("0x126")]),e&&(this[za("0x34")].includes(o[za("0x126")])?s[za("0xec")][za("0xdd")](za("0xf7"),r):s.writer[za("0x2d")](za("0xf7"),r));for(const e of t[za("0x4d")][za("0x46")](o.item)[za("0xe2")]())s[za("0x7")][za("0x136")](e,n[za("0xc2")]);s[za("0x7")].consume(o.item,n[za("0xc2")])};t[za("0x5c")][za("0xc9")](za("0xed"))[za("0x1")]((t=>{t.on(za("0x57"),((t,e,o)=>{o[za("0xeb")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xdb")})})),t[za("0x5c")][za("0xc9")]("dataDowncast")[za("0x15")]({model:za("0x139"),view:(t,e)=>e.options[za("0xfd")]?null:{group:"suggestion",name:t.substr(11)}}),t[za("0x5c")][za("0xc9")](za("0x61"))[za("0x88")]({view:{name:za("0x139"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xd8")](za("0x3f"))+":"+t[za("0xd8")]("id");return t.getAttribute(za("0x58"))&&(n+=":"+t[za("0xd8")](za("0x58"))),e[za("0xbc")]("$marker",{"data-name":n})}}),t[za("0x5c")][za("0xc9")](za("0x61"))[za("0x65")]({view:"suggestion"}),t[za("0x5c")][za("0xc9")](za("0x21"))[za("0x1")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xd9")})})),t[za("0x5c")][za("0xc9")](za("0x21"))[za("0x1")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x102")].markerNameToElements(e[za("0x126")]);if(o)for(const t of o)t.getCustomProperty(za("0xb6"))||(n[za("0xec")].removeClass([za("0x6b"),za("0x9d"),"ck-suggestion-marker--active"],t),n.writer[za("0x123")](za("0x100"),t),n[za("0x102")][za("0xa6")](t,e[za("0x126")]))}),{priority:za("0xd9")})})),t[za("0x4d")][za("0xac")][za("0x35")]((e=>{let n=!1;const o=Array.from(t[za("0x4d")].document.differ[za("0x11e")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb7")](x);if(za("0x139")!==o)continue;const d=this[za("0x8")][za("0x5")](l);if(null!=a[za("0x114")])if(za("0xfb")==c&&(n=n||Xa(a.newRange,x,e,t[za("0x4d")][za("0x124")])),a.newRange.isCollapsed||za("0x3b")==a.newRange[za("0xa8")][za("0x55")]||za("0xf3")==c&&!Ja(a.newRange)||za("0x11b")==c&&(qa(i=a.newRange)||(r=i)[za("0xde")][za("0xc7")]==r[za("0x75")][za("0x106")]&&r[za("0xde")].isAtEnd))e[za("0x9f")](x),n=!0;else{if(!d||!d[za("0x11c")])continue;s.add(d)}}var r,i;return s[za("0x121")]>0&&(n=!!this[za("0x97")](s)||n),n})),t[za("0x4d")][za("0xac")][za("0x35")]((e=>{let n=!1;for(const o of t[za("0x4d")][za("0xac")][za("0x101")][za("0x8a")]()){if("insert"!=o[za("0x45")])continue;const s=o[za("0x0")][za("0x11")](o[za("0x91")]);if(s.isAtEnd)for(const r of this[za("0x8")][za("0x29")]()){if(r[za("0xc4")]||!r.isInContent)continue;if(za("0xf3")!=r[za("0x45")])continue;const i=r.getFirstRange();if(i[za("0xde")][za("0xc7")]!=i.end[za("0xc7")]&&i[za("0x75")][za("0x12b")](o[za("0x0")])){const o=t[za("0x4d")][za("0x10d")](i[za("0xde")],s);e[za("0xf5")](r[za("0xd3")](),{range:o}),n=!0}}}return n})),t[za("0x4d")][za("0xe9")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0xb7")](e.name),n=this[za("0x8")][za("0x5")](t);n&&n[za("0xd0")](e[za("0xc2")])}})),t[za("0x4d")][za("0xac")].on(za("0x118"),(()=>{const e=Array[za("0xd6")](t[za("0x4d")][za("0xac")][za("0x101")].getChangedMarkers())[za("0x66")]((t=>za("0x139")===this[za("0xb7")](t[za("0xc2")]).group));if(0===e[za("0x91")])return;e[za("0x17")](((t,e)=>{const n=t[za("0x62")][za("0xf6")],o=e[za("0x62")][za("0xf6")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xde")][za("0x1d")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb7")](t);if(null===s[za("0xf6")]){const e=this[za("0x111")](t);o[za("0x1")](e)}else{const t=this[za("0x8")][za("0x5")](e);null!==s.newRange||t.isInContent?(n[za("0x1")](t[za("0xb9")]),o[za("0x1")](t)):this[za("0xdf")](t)}}o[za("0x121")]>0&&this[za("0x12a")](o);for(const t of n)this[za("0xcd")](za("0x10"),t)})),t[za("0x4d")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x8")][za("0x121")])return;if(!o[za("0x41")])return;if(o.batch[za("0x85")]||!o.batch[za("0x93")])return;let s,r;switch(o[za("0x45")]){case za("0xd1"):s=t[za("0x4d")][za("0x50")](o[za("0x0")]),r=s[za("0x11")](o[za("0x103")]);break;case za("0x12c"):s=t.model.createPositionAt(o[za("0x134")]),r=t[za("0x4d")][za("0x50")](o[za("0x122")]);break;case"move":s=t[za("0x4d")][za("0x50")](o.targetPosition),r=s[za("0x11")](o[za("0x103")]);break;default:return}const i=t.model[za("0x10d")](s,r);t[za("0x4d")][za("0x6e")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xad")](i)){if(t[za("0xc4")])continue;if(za("0xfb")==t[za("0x45")])continue;const n=t[za("0x62")]&&t[za("0x62")].multipleBlocks;("formatBlock"!=t[za("0x45")]||za("0x12c")==o[za("0x45")]&&!n)&&(e[za("0x128")]||za("0xaf")==t[za("0x45")]&&e[za("0x119")]||t[za("0x11f")]().containsRange(i)&&this[za("0x3d")](t,s,r))}}))}),{priority:za("0x10b")}),t[za("0x4d")].on(za("0x10f"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x94")])return;if(this[za("0x10e")])return;if(!this[za("0xc5")][za("0x13")])return;if(o.isCollapsed)return;const r=t[za("0x4d")].schema,{start:i,end:x}=o[za("0x11f")](),a=i[za("0xe4")]&&r.isLimit(i.nodeAfter)?null:r[za("0x109")](i,za("0x28")),c=x[za("0x106")]&&r.isLimit(x.nodeBefore)?null:r[za("0x109")](x,"backward"),l=t.model[za("0x10d")](a?a.start:i,c?c[za("0x75")]:x);t[za("0x4d")][za("0x6e")]((e=>{this[za("0x1c")](l);const n=t.model.schema.getNearestSelectionRange(l[za("0xde")]);o.is("documentSelection")?e[za("0x12e")](n):o[za("0xa5")](n)})),e[za("0x13a")]()}),{priority:e.priorities[za("0x108")]+10}),t[za("0x4d")].on(za("0xcc"),((e,n)=>{const o=n[n[za("0x91")]-1];o&&o[za("0x94")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[za("0x13")]&&(t[za("0x4d")][za("0x6e")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x77")]=o[za("0x8b")]();const s=o[za("0x75")][za("0x106")],r=t[za("0x4d")].schema;s&&r[za("0xfe")](s)&&!r[za("0xbb")](s)&&(o=t[za("0x4d")][za("0x10d")](o[za("0xde")],t.model[za("0x50")](s,za("0x75")))),this[za("0x7c")](o)})),e[za("0x13a")]())}),{priority:za("0xd9")}),this[za("0x10a")][za("0x2e")][za("0x1")]("trackChanges",this.trackChangesCommand),this[za("0xa")](za("0x129"));const o=new p(t,this[za("0x8")]);t[za("0x2e")][za("0x1")](za("0xa3"),o),this[za("0xa")]("acceptSuggestion");const s=new C(t,this[za("0x8")]);t[za("0x2e")][za("0x1")](za("0x12f"),s),this[za("0xa")](za("0x12f")),t[za("0x2e")][za("0x1")](za("0x9c"),new F(t,o,this._suggestions)),this.enableCommand(za("0x9c")),t.commands[za("0x1")](za("0x11a"),new F(t,s,this[za("0x8")])),this.enableCommand(za("0x11a")),t[za("0x2e")][za("0x1")]("acceptSelectedSuggestions",new U(t,o,this[za("0x8")])),this[za("0xa")](za("0x96")),t[za("0x2e")][za("0x1")](za("0xb"),new U(t,s,this[za("0x8")])),this[za("0xa")](za("0xb"));const r=t[za("0xa9")].get(za("0xe3"));this.listenTo(r,za("0x135"),((t,{threadId:e})=>{const n=this[za("0x8")][za("0x5")](e);n&&n.commentThread&&1===n.commentThread.length&&this[za("0x23")](e,{hasComments:!0})}),{priority:za("0x48")}),this.listenTo(r,za("0xc"),((t,{threadId:e})=>{const n=this[za("0x8")][za("0x5")](e);n&&n[za("0x9a")]&&!n[za("0x9a")][za("0x91")]&&this[za("0x23")](e,{hasComments:!1})}),{priority:za("0x48")})}set adapter(t){if(this[za("0xee")])throw new e.CKEditorError(za("0xc0"),this);this[za("0xee")]=t}get[za("0x89")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x8")][za("0x29")]())t&&!e.isInContent||n.push(e);return e?n[za("0x3")]((t=>t[za("0xbf")]())):n}getSuggestion(t){const n=this[za("0x8")].get(t);if(!n)throw new e.CKEditorError(za("0x6a"),this);return n}[za("0xd4")](t){return this[za("0x8")][za("0x107")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x45")].split(":"),i=this[za("0x8")][za("0x5")](n)||this[za("0x83")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x4c")](i,s,r||null,e),i[za("0xd2")]=t[za("0xd2")],o&&o["@external"]){const t=o[za("0xf2")],e=this[za("0x5f")](t.authorName);i.authoredAt=t.createdAt,i[za("0xa2")]=e,i.isExternal=!0}else i[za("0x87")]=t[za("0xd2")];switch(t.data&&(i[za("0x62")]=t[za("0x62")]),t[za("0x71")]&&(i[za("0x71")]=t[za("0x71")]),this[za("0xee")]&&this[za("0xee")][za("0xb8")]||(i._saved=!0),this[za("0x4a")][za("0x5")](i)){case za("0x92"):this[za("0x4a")][za("0x125")](i,za("0x2c"));break;case za("0x36"):i[za("0x11c")]?(this[za("0x4a")][za("0x125")](i,za("0xa4")),this[za("0xcd")]("suggestionLoaded",i)):this._suggestionState[za("0x125")](i,za("0xa0"))}return i}[za("0xa3")](t){this[za("0x94")]((()=>{this[za("0x10a")].model[za("0x6e")]((()=>{for(const e of t[za("0x24")]())e.accept()}))}))}discardSuggestion(t){this[za("0x94")]((()=>{this[za("0x10a")][za("0x4d")][za("0x6e")]((()=>{for(const e of t[za("0x24")]())e.discard()}))}))}[za("0xa")](t,n){const o=this.editor.commands.get(t);if(!o)throw new e.CKEditorError(za("0x7a"),this,{commandName:t});this[za("0x69")][za("0x1")](o),n&&o.on("execute",((t,e)=>{this[za("0xc5")][za("0x13")]&&(this._isForcedDefaultExecutionBlock||e[za("0x91")]>0&&e[e[za("0x91")]-1]&&e[e[za("0x91")]-1][za("0x94")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x13a")]()))}),{priority:"high"})}[za("0x94")](t){let n,o;const s=this[za("0x10e")];this[za("0x10e")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x10e")]=!1),o&&e.CKEditorError[za("0x68")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x10a")][za("0xa9")].get(za("0x137")).me;for(const{suggestion:e,meta:o}of this[za("0xad")](t,"insertion"))if(o[za("0x119")]){if(!o.isNextTo){if(!this[za("0xea")]&&o[za("0x128")])continue;return e}if(n==e[za("0xab")]){const n=e[za("0x11f")]();return n[za("0xde")][za("0x12b")](t[za("0x75")])?this[za("0x47")](e,this._model[za("0x10d")](t[za("0xde")],n[za("0x75")])):this[za("0x47")](e,this[za("0xb3")][za("0x10d")](n[za("0xde")],t[za("0x75")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xc1")+n:"insertion",a=this[za("0xce")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xd5"),o={}){const s=this.editor[za("0xa9")][za("0x5")]("Users").me,r=this._suggestionFactory.getSuggestionCallback(za("0xaf"),n,za("0x64"));for(const e of this[za("0x26")]())if(e[za("0xa2")].id==s.id&&za("0xaf")==e.type&&e[za("0xab")]==n&&(r(e[za("0xfc")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x7f")](n);return e}if(this[za("0xea")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xad")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n[za("0xfc")]())for(const n of t)if(!o[za("0x133")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xc1")+n,c=this[za("0xce")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x2")](a,i,x,e,Zo[za("0x56")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x39")===this[za("0x10c")]){const e=this._suggestionFactory.getSuggestionCallback(za("0xfb"),o,za("0x5b"));return this[za("0x94")]((()=>e([t],n,s))),null}const r=this.editor.plugins[za("0x5")](za("0x137")).me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0xaf")))n[za("0x119")]&&!n[za("0xf1")]&&i[za("0xd7")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xe")](o);e&&n[za("0xd7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x91")];){const o=n[e][za("0x99")](t);n[za("0x60")](e,1,...o),e+=o[za("0x91")]}}return n}(t,i);x[za("0x91")]&&this[za("0xb3")][za("0x6e")]((()=>{for(const t of x){const e=this[za("0xcf")][za("0x4f")](za("0xfb"),o,za("0x5b"));this[za("0x94")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x75")];for(const{suggestion:e,meta:n}of this[za("0xad")](t,"formatInline")){if(!n.isOwn)continue;if(e[za("0xab")]!=o)continue;const s=e[za("0x11f")]();if(s[za("0x133")](t,!0))return null;x=x.isBefore(s.start)?x:s[za("0xde")],a=a[za("0x72")](s[za("0x75")])?a:s[za("0x75")],i?s.start[za("0x1d")](i[za("0x11f")]().start)?(i[za("0x70")](),i=e):e[za("0x70")]():i=e}const c=this[za("0xb3")][za("0x10d")](x,a);if(i)this[za("0x47")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xce")]({id:t,type:za("0x2b")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x2")](za("0x2b")+o,t,i,c)}}return null}[za("0xda")](t,n,o=[],s=null,r={}){n[za("0xf0")]||(n[za("0xf0")]=n[za("0x43")]),n.multipleBlocks=t.is(za("0xba")),s=s||$a(n);const i=o[za("0x3")]((t=>Qa(t,this._model))),x=t.is(za("0xba"))?t:Qa(t,this[za("0xb3")]);if("never"===this[za("0x10c")]){const t=this[za("0xcf")][za("0x4f")]("formatBlock",s,za("0x5b"));return this[za("0x94")]((()=>t([x],n,r))),null}i[za("0xd7")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x6c")!==this._trackFormatChanges){const t=this[za("0xcf")][za("0x4f")](za("0xf3"),s,za("0x5b"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xde")],d=x[za("0x75")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e.isOwn||e[za("0xb2")]||e.containsRangeInObject||e[za("0xf1")])continue;if(t[za("0x62")].formatGroupId!=n.formatGroupId)continue;const o=t[za("0x11f")]();if(t.subType==s){if(o[za("0x133")](x,!0))return null;l=l[za("0x1d")](o[za("0xde")])?l:o[za("0xde")],d=d.isAfter(o.end)?d:o[za("0x75")],c?o.start.isBefore(c[za("0x11f")]().start)?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x137")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x47")](c,this[za("0xb3")].createRange(l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xe6")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x2")](za("0xe6")+s,g,m,this[za("0xb3")][za("0x10d")](l,d)),t}}[za("0xbd")](t,n,o=[],s=null,r={}){n[za("0xf0")]||(n[za("0xf0")]=n.commandName);const i=t[0];n[za("0xd")]=i.is("range"),s=s||$a(n);const x=o[za("0x3")]((t=>Qa(t,this[za("0xb3")]))),a=i.is("range")?t:t[za("0x3")]((t=>Qa(t,this[za("0xb3")])));if(za("0x39")===this._trackFormatChanges){const t=this[za("0xcf")].getSuggestionCallback("formatBlock",s,za("0x5b"));return this[za("0x94")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x6c")!==this._trackFormatChanges){const t=this[za("0xcf")][za("0x4f")](za("0xf3"),s,"accept");return this[za("0x94")]((()=>t(a,n,r))),null}const l=this[za("0x10a")][za("0xa9")].get(za("0x137")).me;for(const t of this.getSuggestions()){if(t[za("0xa2")].id!=l.id)continue;if("formatBlock"!=t[za("0x45")]||t.data.formatGroupId!=n[za("0xf0")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x91")];n++){const o=a[n];for(const s of t[za("0x76")]()){const r=s.getRange();if(o.isEqual(r)){e?(a[za("0x60")](n,1),n--):t[za("0x9f")](s[za("0xc2")]);break}}}}if(0==a[za("0x91")])return null;const d=this[za("0xcf")].getSuggestionCallback(za("0xf3"),s,za("0x64"));for(const t of this.getSuggestions())if(t[za("0xa2")].id==l.id&&"formatBlock"==t[za("0x45")]&&t.data[za("0xf0")]==n[za("0xf0")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t[za("0xfc")]()))){for(const e of a)t[za("0x7f")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0xce")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x2")](m,u,g,t,Zo[za("0x56")]());return f}[za("0x1c")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x10a")][za("0xa9")][za("0x5")]("Users").me,r=new i.LiveRange(t[za("0xde")],t[za("0x75")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xaf")))if(e[za("0x119")]&&!e[za("0xb2")])if(t[za("0xc4")]){const e=t[za("0xfc")]()[za("0x66")]((t=>"$graveyard"!=t[za("0xa8")][za("0x55")]));if(e.every((t=>r[za("0x133")](t,!0)))&&t[za("0xc6")](),e[za("0xff")]((t=>t.containsRange(r,!0)))){const t=this[za("0xcf")][za("0x4f")]("deletion",n,za("0x5b"));return this[za("0x94")]((()=>t([r],null,o))),null}}else{const e=r[za("0xe")](t.getFirstRange());null!==e&&t[za("0x40")]([e],null,o)}if(r[za("0x9")](),r[za("0x1e")]||"$graveyard"==r[za("0xa8")].rootName)return null;let x=null,a=r[za("0xde")],c=r[za("0x75")];for(const{suggestion:t,meta:e}of this[za("0xad")](r,"deletion"))if(e[za("0x119")])if(t[za("0xc4")]&&this._mergeNestedSuggestions){let e=!0;for(const n of t[za("0xfc")]()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t.discard()}else{const n=t[za("0x11f")]();if(n[za("0x133")](r,!0)){if(!this[za("0xea")]&&e[za("0x128")])continue;return t}a=a[za("0x1d")](n[za("0xde")])?a:n[za("0xde")],c=c.isAfter(n[za("0x75")])?c:n[za("0x75")],x?n[za("0xde")].isBefore(x[za("0x11f")]()[za("0xde")])?(x[za("0x70")](),x=t):t[za("0x70")]():x=t}if(x)return this[za("0x47")](x,this[za("0xb3")][za("0x10d")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xb3")].createRange(a,c),i=s.id,x=n?za("0x7b")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x2")](x,t,i,r),l}}[za("0x42")](t,n=za("0xd5"),o={}){const s=this.editor[za("0xa9")].get(za("0x137")).me,r=t[za("0x3")]((t=>new i.LiveRange(t.start,t[za("0x75")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xad")](t,"insertion"))n[za("0x119")]&&!n.isNextTo&&x[za("0x1")](e);for(const e of x)if(e[za("0xc4")]){const s=e.getRanges();if((!e[za("0x71")]||!e.attributes[za("0x130")])&&s.every((t=>r[za("0xff")]((e=>e[za("0x133")](t,!0)))))&&e[za("0xc6")](),r[za("0x74")]((t=>s[za("0xff")]((e=>e[za("0x133")](t,!0)))))){const e=this[za("0xcf")][za("0x4f")](za("0x11b"),n,za("0x5b"));return this[za("0x94")]((()=>e(t,null,o))),null}}else{const t=e[za("0x11f")]();if(r[za("0xff")]((e=>e[za("0x133")](t,!0)))&&e[za("0xc6")](),r[za("0x74")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[za("0x4f")](za("0x11b"),n,za("0x5b"));return this[za("0x94")]((()=>t(r,null,o))),null}}const a=this[za("0xcf")][za("0x4f")](za("0x11b"),n,za("0x64"));let c=null;for(const t of this[za("0x26")]())if(t.author.id==s.id&&t[za("0x11c")]&&za("0x11b")==t[za("0x45")]&&t.subType==n&&(a(t[za("0xfc")](),r)||a(r,t.getRanges())))if(c){if(t[za("0x9a")]&&t.commentThread[za("0x91")])continue;for(const e of t[za("0xfc")]())c[za("0x37")](e)||c[za("0x7f")](e);t[za("0x70")]()}else{c=t;for(const e of r)t[za("0x37")](e)||t[za("0x7f")](e)}if(c)return c;x[za("0x44")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0x11b")))n[za("0x119")]&&x[za("0x1")](e);for(const t of x){const e=t[za("0xfc")]();if((!o||!o[za("0x130")])&&r[za("0x74")]((t=>e.some((e=>e[za("0x133")](t,!0))))))return t;(!t[za("0x71")]||!t[za("0x71")][za("0x130")])&&e[za("0x74")]((t=>r[za("0xff")]((e=>e[za("0x133")](t,!0)))))&&t[za("0xc6")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0xce")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x9")](),t.isCollapsed||za("0x3b")==t.root.rootName||this[za("0x2")](u,l,d,t,Zo[za("0x56")]());return g}[za("0x47")](t,e){const n=t[za("0xd3")]();this._model.change((t=>{t[za("0xf5")](n,{range:e})}))}[za("0xb5")](t){const e=t.id,n=this[za("0x10a")][za("0x12d")][za("0x5")]("collaboration.channelId");this[za("0x1b")][za("0x3c")](e)||this[za("0x1b")][za("0xe1")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x1b")][za("0x84")](e);o[za("0xb0")](za("0x120")),o[za("0x120")]=!1,t[za("0x9a")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0x45")]!=n||t[za("0xab")]!=o||t.creator.id!=s)throw this[za("0x10a")][za("0x4b")](za("0x5a")),new e.CKEditorError(za("0x5a"),this)}[za("0x3a")](t,n){const o=t.getFirstRange();if(n[za("0x12b")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this[za("0xb3")][za("0x50")](n.start.nodeBefore,za("0x75"));this._setSuggestionRange(t,this[za("0xb3")].createRange(o[za("0xde")],s));const r=(0,e.uid)(),i=t[za("0xef")].id,x=t.type+":"+t[za("0xab")];this[za("0xce")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x62")],attributes:t[za("0x71")]});const a=this[za("0xb3")].createPositionAt(n[za("0x75")][za("0xc7")],za("0xf9")),c=this[za("0xb3")].createRange(a,o.end);this[za("0x2")](x,r,i,c)}else if(o[za("0xf8")](n[za("0xde")])){const e=this[za("0xb3")][za("0x50")](n.start[za("0x106")],za("0x75"));this[za("0x47")](t,this[za("0xb3")][za("0x10d")](o[za("0xde")],e))}else{const e=this[za("0xb3")][za("0x50")](n.end[za("0xc7")],za("0xf9"));this[za("0x47")](t,this[za("0xb3")][za("0x10d")](e,o[za("0x75")]))}}[za("0x67")](t){for(const{suggestion:e,meta:n}of this[za("0xad")](t,za("0xaf"))){if(!n[za("0x119")])continue;const o=e[za("0xfc")]();for(const e of o)if(!t.getDifference(e)[za("0x91")])return!0}return!1}[za("0x73")](t){const n=this.editor.plugins.get(za("0x137"))[za("0x20")](t);if(!n)throw new e.CKEditorError(za("0x6d"),this);return n}_getExternalAuthor(t){const e=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x137")),n=(0,r.hashObject)(za("0x4e")+t);return e.getUser(n)||e[za("0x104")]({id:n,name:t})}[za("0x83")](t,e,n,o,s){const r=this[za("0x73")](o),i=this[za("0xcf")].buildSuggestion(t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0x23")](n,{state:za("0xdc")})}),{priority:za("0xd9")}),this.listenTo(i,"discard",(()=>{this[za("0x23")](n,{state:"rejected"})}),{priority:"high"}),this[za("0x8")].set(n,i),this[za("0x4a")].set(i,"notReady"),i}[za("0xb7")](t){const e=t[za("0x12c")](":");return{group:e[0],type:e[1],subType:e[za("0x91")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[za("0x91")]<5?e[3]:e[4],markerCount:6==e[za("0x91")]?e[5]:null}}[za("0x3d")](t,n,o){const s=t.getFirstRange(),r=s[za("0xde")],i=s[za("0x75")];this._setSuggestionRange(t,this._model[za("0x10d")](r,n));const x=(0,e.uid)(),a=t[za("0xef")].id,c=t[za("0x45")]+(t[za("0xab")]?":"+t[za("0xab")]:"");this[za("0xce")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x71")],data:t[za("0x62")]}),za("0xf3")==t[za("0x45")]&&(o=this[za("0xb3")][za("0x82")](o[za("0xc7")])),this[za("0x2")](c,x,a,this[za("0xb3")][za("0x10d")](o,i))}[za("0xad")](t,e=null){const n=[],o=this._model[za("0x124")],s=this.editor[za("0xa9")].get(za("0x137")).me;for(const r of this[za("0x26")]())if(r[za("0x11c")]&&(!e||r.type==e))for(const e of r[za("0xfc")]()){const i=t[za("0xde")][za("0x12b")](e.end)||t[za("0x75")][za("0x12b")](e[za("0xde")]);if(i||t.getIntersection(e)){const x=t[za("0x133")](e)&&Ka(o,e.start,t),a=e.containsRange(t)&&Ka(o,t.start,e);n[za("0xd7")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x2")](t,e,n,o,s){this[za("0xb3")].change((r=>{let i=za("0x3e")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x86")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xdf")](t){const e=t.previous,n=t[za("0x90")];t[za("0xb1")]=null,null!=e&&(e[za("0x90")]=null),t[za("0x90")]=null,null!=n&&(n[za("0xb1")]=null),za("0xa4")==this[za("0x4a")].get(t)&&(this._suggestionState[za("0x125")](t,za("0xa0")),this.fire(za("0xae"),t,e,n))}[za("0xce")](t){const n=t.id,o=this[za("0xe8")](t);if(this._adapter&&this[za("0xee")][za("0xb8")]){const s=this[za("0x10a")][za("0xa9")][za("0x5")](za("0x105")),r=o[za("0xbe")],i=o[za("0xab")]?o[za("0x45")]+":"+o[za("0xab")]:o[za("0x45")],x=this.editor.locale,a=s[za("0x1")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x62")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x71")]};this[za("0xee")].addSuggestion(c)[za("0x2a")]((t=>{o[za("0xb4")]=!0,s[za("0x19")](a),t&&t.createdAt&&(this[za("0x8")][za("0x5")](n)[za("0xd2")]=t[za("0xd2")])}))[za("0x32")]((t=>{throw(0,e.logWarning)(za("0xfa")),this[za("0x10a")][za("0x4d")].enqueueChange({isUndoable:!1},(()=>{o[za("0xc6")]()})),o[za("0x49")](),this._suggestions[za("0xcb")](o.id),this._suggestionState[za("0xcb")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x10a")][za("0xa9")].get(za("0x105")),o=this[za("0xaa")](t);if(this[za("0xee")]&&this[za("0xee")][za("0xf")])if(o[za("0xb4")]){const o=n[za("0x1")](Yo(this[za("0x10a")].locale,za("0xca")));this._adapter[za("0xf")](t,e)[za("0x2a")]((()=>{n[za("0x19")](o)}))}else o.on("change:_saved",(()=>{this[za("0x23")](t,e)}))}_getSuggestionData(t){if(!this[za("0xee")]||!this._adapter[za("0xaa")])throw new e.CKEditorError(za("0x33"),this);return this[za("0xee")][za("0xaa")](t)}[za("0x111")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x8")][za("0x5")](e)||this[za("0x83")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0x4a")].get(r)){case"notReady":this._getSuggestionData(e)[za("0x2a")]((t=>{let n=Promise[za("0x25")]();t[za("0xbe")]&&(n=this[za("0x1b")].fetchCommentThread({channelId:this[za("0x10a")].config[za("0x5")]("collaboration.channelId"),threadId:e})),n[za("0x2a")]((()=>{this[za("0xe8")](t)._saved=!0}))})),this[za("0x4a")][za("0x125")](r,za("0x36"));break;case za("0xa0"):this[za("0x23")](e,{state:za("0x80")});case za("0x2c"):this._suggestionState[za("0x125")](r,za("0xa4")),this[za("0xcd")](za("0xc3"),r);break;case"ready":this[za("0xcd")](za("0x10"),r)}return r.addMarkerName(t),r}_refreshSuggestionsChain(t){const e=Array[za("0xd6")](t).filter((t=>!t[za("0xc4")])),n=this.getSuggestions({skipNotAttached:!0})[za("0x66")]((t=>!t[za("0xc4")])),o=n.filter((e=>!t.has(e))),s=new Map(n[za("0x3")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x45")],t[za("0xab")],za("0xe5"))]))),r=new Map(n[za("0x3")]((t=>[t,t[za("0x11f")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x91")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x91")];t++){const n=e[t];!x[za("0x107")](n)&&n.previous&&(n.previous[za("0x90")]===n&&(n[za("0xb1")][za("0x90")]=null),n[za("0xb1")]=null),!i[za("0x107")](n)&&n[za("0x90")]&&(n[za("0x90")][za("0xb1")]===n&&(n[za("0x90")].previous=null),n[za("0x90")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x91")];o++){const n=c(t,e[o]);n&&(n[0][za("0x90")]=n[1],n[1][za("0xb1")]=n[0],i.add(n[0]),x[za("0x1")](n[1]))}}function c(t,e){if(t[za("0xa2")].id!==e[za("0xa2")].id)return null;const n=s.get(t)(t,e,r[za("0x5")](t),r[za("0x5")](e));return n&&s[za("0x5")](e)(t,e,r[za("0x5")](t),r[za("0x5")](e))?n[1][za("0x9a")]&&n[1][za("0x9a")][za("0x91")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x66")]((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[za("0xcf")][za("0x4f")](t[za("0x45")],t[za("0xab")],za("0x64"))]))),r=new Map(n[za("0x3")]((t=>[t,t[za("0xfc")]()])));for(let t=0;t<e[za("0x91")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x91")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x91")];i++){const o=n[i];if(o.type!==e[za("0x45")]||o[za("0xa2")].id!==e.author.id||o.subType!==e[za("0xab")])continue;const x=s[za("0x5")](e),a=r[za("0x5")](e),c=r[za("0x5")](o),l=e[za("0x9a")]&&e[za("0x9a")][za("0x91")],d=o[za("0x9a")]&&o[za("0x9a")][za("0x91")];if(!l&&x(c,a))return t[za("0xa7")](o,e),r[za("0xcb")](e),!0;if(!d&&x(a,c))return t[za("0xa7")](e,o),r[za("0xcb")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0xc4")])for(const n of e[za("0xfc")]())t.addRange(n);else{const n=e[za("0x11f")]()[za("0x75")];this[za("0x47")](t,this[za("0xb3")][za("0x10d")](t[za("0x11f")]()[za("0xde")],n))}e[za("0x70")]()}}class Va{constructor(t){this._editor=t,this[za("0xb3")]=t[za("0x4d")],this[za("0x132")]=new Map,this[za("0x79")]=new Map,this[za("0x113")]()}[za("0x4")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x4f")](t,e,za("0x5b"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0xc6"))(...n)})}[za("0x9e")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x132")][za("0x125")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x5")](o)||this[za("0x79")][za("0x5")](t+":"+n)}[za("0x113")](){const t=()=>{},e=t=>{t[za("0x17")](((t,e)=>t[za("0xde")][za("0x1d")](e[za("0xde")])?1:-1)),this[za("0xb3")][za("0x6e")]((e=>{for(const n of t){let t;t=n[za("0x75")][za("0x117")]&&n[za("0x75")][za("0xc7")]==n.start[za("0xe4")]?e.createSelection(n[za("0xde")][za("0xe4")],"on"):e[za("0x138")](n),this[za("0xb3")][za("0x10f")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x6e")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x3")]((t=>(qa(t)&&(t=this[za("0xb3")][za("0x10d")](t[za("0x75")])),t)))[za("0x66")]((t=>za("0x3b")!==t[za("0xa8")][za("0x55")]));if(r[za("0x91")]<1)return;const x=Array[za("0xd6")](this._model.document.selection[za("0xfc")]())[za("0x3")]((t=>i.LiveRange[za("0x7d")](t)));n.setSelection(r);for(const t of this[za("0x31")][za("0x2e")].commands())t[za("0x51")]();s[za("0xd7")]({forceDefaultExecution:!0}),this[za("0x31")][za("0x5d")](o,...s);const a=x[za("0x66")]((t=>"$graveyard"!=t[za("0xa8")].rootName));a.length>0&&n[za("0x12e")](a);for(const t of x)t[za("0x9")]()}))},o=(t,e)=>1==t[za("0x91")]&&1==e[za("0x91")]&&t[0][za("0x75")].isEqual(e[0][za("0xde")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xb3")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x79")].set(za("0x53"),t),this[za("0x79")][za("0x125")]("insertion:discard",e),this[za("0x79")][za("0x125")](za("0x116"),o),this[za("0x79")].set("insertion:chain",s),this._defaultCallbacks[za("0x125")]("deletion:accept",e),this[za("0x79")].set(za("0xe0"),t),this._defaultCallbacks.set("deletion:join",o),this._defaultCallbacks[za("0x125")](za("0x98"),s),this[za("0x79")][za("0x125")]("formatInline:accept",n),this[za("0x79")].set("formatInline:discard",t),this._defaultCallbacks.set(za("0xa1"),o),this[za("0x79")].set(za("0x14"),t),this[za("0x79")].set(za("0x6"),n),this[za("0x79")].set("formatBlock:discard",t),this[za("0x79")][za("0x125")](za("0x18"),o),this[za("0x79")][za("0x125")](za("0x131"),t)}}function Ka(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xa8")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0xbb")](o)||t[za("0x63")](o))return!0}return!1}function qa(t){return t.end[za("0xc7")]==t.start.nodeAfter&&t[za("0x75")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0x59")].is(za("0x22"))&&!o[za("0xbb")](t[za("0x59")]),r=t[za("0xde")][za("0x27")](s),i=t[za("0x75")][za("0x27")](s,{direction:"backward"});return!(t[za("0xde")][za("0x12b")](r)&&t.end[za("0x12b")](i)||(r[za("0x1d")](i)?n[za("0xf5")](e,{range:n[za("0x10d")](r,i)}):n[za("0x9f")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xde")].nodeAfter;return e&&e.is(za("0x8e"))}function Qa(t,e){const n=e[za("0x124")][za("0xbb")](t)||e[za("0x124")][za("0x6f")](t);return e[za("0x10d")](e[za("0x50")](t,za("0x38")),n?e[za("0x1f")](t):e[za("0x50")](t,za("0x75")))}function Za(t,e,n,o,s){if(n.end.isEqual(o[za("0xde")]))return!0;if(t[za("0x45")]!=e[za("0x45")])return!1;if(!n[za("0x75")][za("0x5e")](o[za("0xde")]))return!1;const r=s.createRange(n[za("0x75")],o.start).getWalker();for(const t of r)if([za("0xe7"),za("0x54")].includes(t[za("0x45")])&&s[za("0x124")][za("0x63")](t[za("0x59")]))return!1;return!0}const Ya=["get","commands","locale","_pendingAction","commentThreadController","_editor","change:isDirty","canEditAt","isDirty","destroy","model","plugins","_discardCommand","execute","_removePendingAction","stopListening","listenTo","canAccept","add","bind","discardSuggestion","getRanges","isEnabled","canDiscard","unbind","_setPendingAction","acceptSuggestion","_acceptCommand","PENDING_ACTION_SUGGESTION","PendingActions","view"];var tc,ec;tc=Ya,ec=197,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1e")]=e,this[nc("0x13")]=n,this[nc("0x18")]=o,this[nc("0x19")]=t,this[nc("0x10")]=t.commands.get("acceptSuggestion"),this._discardCommand=t[nc("0x15")].get("discardSuggestion"),this[nc("0x13")][nc("0x8")](nc("0xb")).to(this[nc("0x10")],this[nc("0x1")],((t,e)=>t||e)),this[nc("0x13")][nc("0x8")]("canAccept").to(this[nc("0x10")],"isEnabled",(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e.getRanges()))),this[nc("0x13")][nc("0x8")](nc("0xc")).to(this._discardCommand,nc("0xb"),(t=>t&&this[nc("0x19")][nc("0x1e")][nc("0x1b")](e[nc("0xa")]()))),this._pendingAction=null,n.isDirty&&this[nc("0xe")](),this[nc("0x5")](n,nc("0xf"),(()=>this[nc("0xf")]())),this[nc("0x5")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,nc("0x1a"),(()=>{n[nc("0x1c")]?this._setPendingAction():this[nc("0x3")]()}))}[nc("0xf")](){this[nc("0x10")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x9")](){this[nc("0x1")][nc("0x2")](this[nc("0x1e")].id)}[nc("0x1d")](){this[nc("0x13")][nc("0xd")](nc("0xb")),this.view[nc("0xd")](nc("0x6")),this[nc("0x13")].unbind(nc("0xc")),this[nc("0x4")](),this[nc("0x18")][nc("0x1d")](),this[nc("0x17")]&&this._removePendingAction()}[nc("0xe")](){const t=Yo(this[nc("0x19")][nc("0x16")],nc("0x11"));this[nc("0x17")]=this[nc("0x19")][nc("0x0")].get(nc("0x12"))[nc("0x7")](t)}[nc("0x3")](){null!==this[nc("0x17")]&&this[nc("0x19")][nc("0x0")][nc("0x14")]("PendingActions").remove(this[nc("0x17")]),this[nc("0x17")]=null}}const sc=["commentThreadInputView","setData","submit","locale","editorConfig","canAccept","_createCommentThreadInputView","CommentView","isEnabled","bind","element","hasDirtyComment","_model","_createCommentViews","length","authoredAt","disableComments","commentInputView","updateComment","delegate","_config","commentsListView","_localUser","value","cancel","set","destroy","assign","isDirty","editor","commentThread","isReadOnly","focus","removeComment","isActive","descriptionParts","disabledSubmit"];var rc,ic;rc=sc,ic=297,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x14")]=null,this[xc("0x24")]=null,this[xc("0x18")](xc("0x21"),!1),this[xc("0x18")]("authoredAt",e.authoredAt),this[xc("0x8")](xc("0xe")).to(e),this[xc("0x18")](xc("0x22"),[]),this[xc("0x18")](xc("0x1b"),!1),this.set(xc("0x7"),!1),this[xc("0x18")](xc("0x4"),!1),this[xc("0x18")]("canDiscard",!1),this[xc("0xb")]=e,this[xc("0x15")]=n,this[xc("0x13")]=o,o[xc("0xf")]?this[xc("0x18")]("length",1):this[xc("0xc")]()}focus(){this[xc("0x9")].focus()}[xc("0x19")](){this[xc("0x14")]&&this.commentsListView[xc("0x19")](),this[xc("0x24")]&&this[xc("0x24")][xc("0x19")](),super[xc("0x19")]()}[xc("0xc")](){const{CommentsListView:t}=this[xc("0x13")];this[xc("0x14")]=new t(this[xc("0x2")],this[xc("0xb")].commentThread,Object[xc("0x1a")]({CommentView:this._config[xc("0x6")]},this[xc("0x13")])),this[xc("0x14")][xc("0x12")]("removeComment").to(this),this[xc("0x14")][xc("0x12")](xc("0x11")).to(this),this[xc("0x14")][xc("0x8")](xc("0x21")).to(this),this[xc("0x18")](xc("0xd"),this[xc("0x14")][xc("0xd")]+1),this.bind(xc("0xd")).to(this[xc("0x14")],xc("0xd"),(t=>t+1)),this[xc("0x24")]=this[xc("0x5")](),this.on(xc("0x20"),(()=>this[xc("0x1f")]())),this.bind(xc("0x1b")).to(this.commentsListView,xc("0xa"),this[xc("0x24")][xc("0x10")],xc("0x16"),((t,e)=>t||!!e))}[xc("0x5")](){const{CommentThreadInputView:t}=this[xc("0x13")],e=new t(this[xc("0x2")],this[xc("0x15")],this[xc("0x13")][xc("0x3")]),n=e[xc("0x10")];return e[xc("0x8")]("showInput").to(this,xc("0x21"),this[xc("0xb")][xc("0x1d")],"isReadOnly",n,xc("0x16"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1"),((t,e)=>{this.fire("addComment",e),n[xc("0x1c")][xc("0x0")]("")})),n.on(xc("0x17"),(()=>this[xc("0x1f")]())),n[xc("0x8")](xc("0x23")).to(this._model.commentThread,xc("0x1e")),e}}const cc=["ck-suggestion-wrapper","ck-suggestion-","ck-comment__info-time","<p>","@external","ck-suggestion","commentsListView","discardSuggestion","ck-annotation__info","value","type","set","querySelector","canDiscard","author","isExternal","ck-annotation__main","map","authoredAt","push","children","join","source","</p>","commentThread","locale","ck-annotation__info-time","bindTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion__user","getExternalSuggestionNote","innerHTML","discardButton","attributes","ck-suggestion--disabled-comments","disableComments","_descriptionElement","ck-annotation__user","createElement","_model","EXTERNAL_AVATAR","userView","ck-annotation__info-name","getUserViewNotificationText","importWord",".ck-annotation__content-wrapper",'<span class="ck-suggestion-type">',"_createButton","ck-suggestion__main","color",'" title="',"check","split","extendTemplate","formatDateTime","bind","title","getTemplate","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__actions","EXTERNAL_SUGGESTION","Accept suggestion","render","fire","ck-suggestion-wrapper--active","ck-suggestion__info-name","commentThreadInputView","div",'<span class="ck-suggestion-color" style="background-color: ',"_config","description","descriptionParts","ck-suggestion__info","ck-suggestion__actions","acceptSuggestion","isEnabled","isActive","span","acceptButton","change:description"];var lc,dc;lc=cc,dc=343,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x43"),""),this[uc("0x20")](uc("0x43")).to(this,uc("0x30"),(t=>t&&t[0]?t[0][uc("0x43")]:"")),this.bind("description").to(this,uc("0x30"),this,uc("0x35"),((t,e)=>{let n="";for(const e of t)n+=uc("0x3c")+mc(e.content,e[uc("0x1a")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0xd")]=null,this[uc("0x37")]=this[uc("0x18")](Yo(e,uc("0x26")),t.icons[uc("0x1c")],"ck-suggestion--accept",uc("0x33"),"sw"),this[uc("0x37")][uc("0x20")](uc("0x34")).to(this,"canAccept"),this[uc("0x9")]=this[uc("0x18")](Yo(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard",uc("0x40"),"sw"),this[uc("0x9")][uc("0x20")]("isEnabled").to(this,uc("0x46")),this[uc("0x12")]=new r.UserView(e,this[uc("0x10")][uc("0x47")],this[uc("0x14")]()),this.userView[uc("0x1e")]({attributes:{class:[uc("0x6"),uc("0xe")]}}),this.setTemplate(this[uc("0x22")]())}[uc("0x22")](){const t=this[uc("0x4")],e=[{tag:"div",attributes:{class:[uc("0x31"),uc("0x41")]},children:[{tag:"span",children:[{text:this[uc("0x12")].name}],attributes:{class:[uc("0x2a"),uc("0x13")]}},{tag:"time",attributes:{datetime:t.to(uc("0x4b")),class:[uc("0x3b"),uc("0x3")]},children:[{text:t.to(uc("0x4b"),(t=>this[uc("0x2e")][uc("0x1f")](t)))}]}]},{tag:uc("0x2c"),attributes:{class:[uc("0x32"),uc("0x24")]},children:[this[uc("0x37")],this.discardButton]},{tag:uc("0x2c"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[uc("0x10")][uc("0x48")]&&e[uc("0x4c")]({tag:uc("0x2c"),attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x7")]()}]});const n={tag:uc("0x2c"),attributes:{class:[uc("0x39"),t.if(uc("0x35"),uc("0x29")),t.to(uc("0x43"),(t=>uc("0x3a")+t)),this[uc("0x2e")][uc("0xc")]&&uc("0xb")],"data-suggestion-id":this[uc("0x10")].id,"data-thread-id":this._model[uc("0x1")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x2c"),attributes:{class:[uc("0x3e"),"ck-annotation"]},children:[this[uc("0x12")],{tag:uc("0x2c"),attributes:{class:[uc("0x19"),uc("0x49")]},children:e}]}]};return this.commentsListView&&this[uc("0x2b")]&&n[uc("0x4d")].push(this[uc("0x3f")],this[uc("0x2b")]),n}[uc("0x27")](){super.render(),this[uc("0xd")]=this.element[uc("0x45")](uc("0x16")),this[uc("0xd")][uc("0x8")]=this[uc("0x2f")],this.on(uc("0x38"),((t,e,n)=>{this[uc("0xd")][uc("0x8")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[uc("0x2")]);return i[uc("0x44")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x28")](o,this[uc("0x10")].id)})),i}[uc("0x7")](){return uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x5")):Yo(this[uc("0x2")],uc("0x25"))}[uc("0x14")](){return this[uc("0x10")][uc("0x48")]?uc("0x15")===this._model[uc("0xa")][uc("0x3d")][uc("0x4f")]?Yo(this[uc("0x2")],uc("0x23"),this[uc("0x10")].creator.name):Yo(this[uc("0x2")],uc("0x11"),this._model.creator.name):null}}function mc(t,e){let n="";return n+=t[uc("0x1d")]("*")[uc("0x4a")](((t,e)=>e%2!=0?uc("0x17")+fc(t)+"</span>":fc(t)))[uc("0x4e")](""),e&&(n+=uc("0x2d")+e[uc("0x42")]+uc("0x1b")+e[uc("0x21")]+'"></span>'),n}function fc(t){const e=document[uc("0xf")](uc("0x36"));return e.innerText=t,e.innerHTML}const hc=["_handleControllerBuffer","get","addComment","keys","CommentsRepository","TrackChangesEditing","acceptButton","Accept all suggestions","getMarkers","trackChanges.SuggestionThreadView","separator","_disableComments","requires","_destroyController","destroy","size","previous","createAnnotationView","getFirstRange","_suggestionToController","add","innerView","refreshSelectedViews","_initializeController","suggestionLoaded","init","descriptionParts","SuggestionThreadView","acceptAllSuggestions","filter","delete","focus","clear","_viewToController","_handleSuggestionControllerDelayed","push","editor","_descriptionFactory","lowest","commentThread","buttonView","addSourceCollector","discardButton","registerAnnotation","plugins","_createUIButton","execute","some","trackChanges","locale","view","change:activeAnnotations","isInContent","arrowView","isMultiRange","model","getDescriptions","Track changes","from","head","change:previous","getByInnerView","button","actionView","_refreshActiveMarkers","length","_annotationViews","createCommentThreadController","mainView","acceptSelectedSuggestions","comments.editorConfig","getAllAdjacentSuggestions","has","comments.maxCommentsWhenCollapsed","getSuggestion","Annotations","getMarkerNames","EditorAnnotations","Discard all selected suggestions","suggestionUnloaded","comments.maxCommentCharsWhenCollapsed","isOn","define","set","trackChanges.disableComments","remove","value","TrackChangesUI","values","listenTo","commands","isEnabled","suggestionChanged","activeMarkers","comments.maxThreadTotalWeight","config","editing","suggestion-","unbind","discardSelectedSuggestions","bind","getJoined","map","reduce","_updateController","commandName"];var pc,bc;pc=hc,bc=113,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x5")](){return[Wa,r.Users,Ec("0x67"),Ec("0x44"),"EditorAnnotations"]}static get pluginName(){return Ec("0x50")}constructor(t){super(t),this[Ec("0xc")]=new Map,this[Ec("0x1a")]=new Map,this._annotationViews=new Map,this[Ec("0x63")]=new Map;const e=this[Ec("0x1d")][Ec("0x58")];e[Ec("0x4b")](Ec("0x2"),gc),e[Ec("0x4b")](Ec("0x4d"),!1),this[Ec("0x4")]=e[Ec("0x64")]("trackChanges.disableComments")}[Ec("0x1b")](t,e){0===this._handleControllerBuffer[Ec("0x8")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x63")]){const n=this[Ec("0xc")].has(t);n||e?n&&e&&this[Ec("0x6")](t):this[Ec("0x10")](t)}this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x46"))[Ec("0xf")](),this[Ec("0x39")](),this[Ec("0x63")][Ec("0x19")]()}),10),this[Ec("0x63")][Ec("0x4c")](t,e)}[Ec("0x12")](){const t=this[Ec("0x1d")],e=t[Ec("0x25")][Ec("0x64")](Ec("0x68")),n=t[Ec("0x25")][Ec("0x64")](Ec("0x44")),o=t[Ec("0x25")].get(Ec("0x46")),s=t[Ec("0x25")][Ec("0x64")](Ec("0x67"));t.ui.componentFactory.add("trackChanges",(t=>this[Ec("0x26")](t))),o[Ec("0x22")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x33")](this[Ec("0xc")])){const o=e[Ec("0x40")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x2f")]){s[Ec("0x1c")](...t.getRanges());continue}const e=t[Ec("0xb")]();if(s[Ec("0x3a")]>0){const t=s[0][Ec("0x5e")](e);if(t){s[0]=t;continue}}s[Ec("0x1c")](e)}t.push([n.view,s])}return t})),this[Ec("0x52")](e,Ec("0x11"),((t,e)=>{this.listenTo(e,Ec("0x35"),((t,n,o,s)=>{e[Ec("0x2d")]&&(null==o?(this[Ec("0x61")](s.head),this[Ec("0x1b")](e,!1)):(this[Ec("0x61")](o[Ec("0x34")]),this[Ec("0x1b")](e,!0)))})),null===e[Ec("0x9")]?this[Ec("0x1b")](e,!1):this[Ec("0x61")](e[Ec("0x34")])})),this[Ec("0x52")](e,Ec("0x48"),((t,e,n)=>{this.stopListening(e,Ec("0x35")),this[Ec("0x63")][Ec("0x17")](e);const o=n?n[Ec("0x34")]:e,s=this[Ec("0xc")].get(o);null!==n&&this[Ec("0x61")](o),null===n&&s&&this[Ec("0x6")](e)})),this[Ec("0x52")](e,Ec("0x55"),((t,e)=>{this._updateController(e)})),this[Ec("0x52")](n,Ec("0x2c"),(()=>{this[Ec("0x39")]()})),this[Ec("0x52")](s,Ec("0x65"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x43")](n);this[Ec("0xc")][Ec("0x64")](s).view.focus()}),{priority:Ec("0x1f")})}[Ec("0x39")](){const t=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),e=this.editor[Ec("0x25")].get(Ec("0x68")),n=Array[Ec("0x33")](t.activeAnnotations,(t=>t[Ec("0xe")]))[Ec("0x16")]((t=>this._viewToController[Ec("0x41")](t))),o=[];for(const t of n){const e=this[Ec("0x1a")].get(t)[Ec("0x30")].getAllAdjacentSuggestions();o[Ec("0x1c")](...e[Ec("0x60")](((t,e)=>[...t,...e[Ec("0x45")]()]),[]))}e[Ec("0x56")]=o}[Ec("0x26")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1d")][Ec("0x53")][Ec("0x64")]("trackChanges"),r=Yo(t,Ec("0x32"));n[Ec("0x21")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x21")][Ec("0x5d")](Ec("0x4a")).to(o,"value"),n[Ec("0x21")].on("execute",(()=>{o[Ec("0x27")](),this[Ec("0x1d")][Ec("0x59")].view[Ec("0x18")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x29")}},{type:Ec("0x3")},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x0")),commandName:Ec("0x15")}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x3e")}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Ec("0x37"),model:{withText:!0,label:Yo(t,Ec("0x47")),commandName:Ec("0x5c")}}];for(const t of x){let e={type:Ec("0x3")};if(t.model){const n=new s.Model(t[Ec("0x30")]),o=this[Ec("0x1d")].commands[Ec("0x64")](n[Ec("0x62")]);n.bind("isOn",Ec("0x54")).to(o,Ec("0x4f"),Ec("0x54")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x16")]((t=>null!=t[Ec("0x30")]))[Ec("0x5f")]((t=>this[Ec("0x1d")].commands[Ec("0x64")](t[Ec("0x30")][Ec("0x62")]))),c=n[Ec("0x21")];return c[Ec("0x38")][Ec("0x5b")]("isEnabled"),c[Ec("0x2e")][Ec("0x5b")](Ec("0x54")),c.actionView[Ec("0x5d")](Ec("0x54")).to(o,Ec("0x54")),c[Ec("0x2e")].bind("isEnabled").toMany(a,Ec("0x54"),((...t)=>t[Ec("0x28")]((t=>t)))),n.on(Ec("0x27"),(t=>{this[Ec("0x1d")][Ec("0x27")](t.source[Ec("0x62")]),this[Ec("0x1d")][Ec("0x59")][Ec("0x2b")][Ec("0x18")]()})),n}[Ec("0x10")](t){const e=this[Ec("0x1d")],n=e[Ec("0x58")],o=e[Ec("0x25")][Ec("0x64")](Ec("0x44")),s=e.plugins[Ec("0x64")](Ec("0x67")),i=e[Ec("0x25")][Ec("0x64")](Ec("0x46")),x=e[Ec("0x25")][Ec("0x64")](r.Users).me,a=n[Ec("0x64")](Ec("0x29"))[Ec("0x14")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x25")].get("CommentsUI");let d,u;this[Ec("0x3b")][Ec("0x41")](t.id)?(u=this._annotationViews[Ec("0x64")](t.id),d=u[Ec("0x3d")]):(d=new a(e[Ec("0x2a")],t,x,{disableComments:this[Ec("0x4")],editorConfig:n[Ec("0x64")](Ec("0x3f")),maxCommentsWhenCollapsed:n[Ec("0x64")](Ec("0x42")),maxThreadTotalWeight:n[Ec("0x64")](Ec("0x57")),maxCommentCharsWhenCollapsed:n[Ec("0x64")](Ec("0x49")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x64")](Ec("0x2a"))),CommentView:n[Ec("0x64")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x69")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),d[Ec("0x23")].on(Ec("0x27"),(()=>{e.editing[Ec("0x2b")][Ec("0x18")]()})),u=o[Ec("0xa")](this.editor[Ec("0x2a")],d),u[Ec("0x5d")]("isDirty").to(d,"isDirty"),u[Ec("0x5d")](Ec("0x3a")).to(d),u[Ec("0x5d")]("type").to(d,"type",(t=>Ec("0x5a")+t)),this[Ec("0x3b")][Ec("0x4c")](t.id,u));const g=s[Ec("0x3c")](t[Ec("0x20")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x16")]((t=>t.isInContent));d[Ec("0x13")]=e[Ec("0x25")].get("TrackChangesEditing")[Ec("0x1e")][Ec("0x31")](f),this._suggestionToController[Ec("0x4c")](t,m),this._viewToController.set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x40")]()[Ec("0x16")]((t=>t.isInContent));for(const t of o)n[Ec("0x1c")](...t[Ec("0x1")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Ec("0x2b")].type});o[Ec("0xd")](h),i[Ec("0x24")](h)}_destroyController(t){const e=this[Ec("0x1d")][Ec("0x25")].get(Ec("0x44")),n=this[Ec("0xc")][Ec("0x64")](t),o=n[Ec("0x2b")],s=e[Ec("0x36")](o);s&&e[Ec("0x4e")](s),this[Ec("0xc")][Ec("0x17")](t),this[Ec("0x1a")].delete(o),n.destroy()}[Ec("0x61")](t){if(!t[Ec("0x2d")]||!this[Ec("0xc")][Ec("0x41")](t))return;const e=this[Ec("0x1d")][Ec("0x25")][Ec("0x64")](Ec("0x68")),n=this[Ec("0xc")].get(t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ec("0x1e")][Ec("0x31")](o)}[Ec("0x7")](){for(const t of this[Ec("0xc")][Ec("0x66")]())this[Ec("0x6")](t);for(const t of this[Ec("0x3b")][Ec("0x51")]())t[Ec("0x3d")][Ec("0x7")]();super.destroy()}}var Tc,Cc,yc=["addSuggestion","editor","TrackChanges","get","addSuggestionData","getSuggestion","getSuggestions","adapter","pluginName","plugins"];Tc=yc,Cc=227,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Wa,_c,"Comments"]}static get[kc("0x1")](){return kc("0x5")}set[kc("0x0")](t){this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]=t}get[kc("0x0")](){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")]}[kc("0x3")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x7")](t)}[kc("0x9")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x8")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa).getSuggestion(t)}}const vc=["editorCreator","TrackChangesDataGetter","end","function","discardAllSuggestions","plugins","pluginName","TrackChangesEditing","trackChangesData.editorCreator","data","TrackChangesData","getDataWithDiscardedSuggestions","getRootsAttributes","push","config","document","editor","rootsAttributes","reduce","div","_adapter","addSuggestionData","trackChangesData","init","model","getUser","set","getFullData","map","constructor","define","result","createElement","track-changes-data-invalid-editor-creator","createDocumentFragment","get","getRootNames","requires","name","addUser","Users"];var Rc,Sc;Rc=vc,Sc=323,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Ic("0x1")](){return[Wa]}static get[Ic("0xb")](){return Ic("0xf")}[Ic("0x1c")](){const t=this.editor;if(t[Ic("0x13")][Ic("0x23")](Ic("0xd"),(e=>{const n=t[Ic("0x1d")][Ic("0x14")][Ic("0x0")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x22")].create(n,e)})),Ic("0x8")!=typeof t[Ic("0x13")][Ic("0x28")]("trackChangesData")[Ic("0x5")])throw new e.CKEditorError(Ic("0x26"))}getDataWithAcceptedSuggestions(t){return Oc(this[Ic("0x15")],!0,t)}[Ic("0x10")](t){return Oc(this[Ic("0x15")],!1,t)}}class wc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x6")}constructor(t){super(t),this[Ic("0x24")]=Ic("0x7")}[Ic("0x1c")](){this[Ic("0x15")].plugins.get("CommentsRepository")._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Ic("0xa")][Ic("0x28")](Ic("0xc"))[Ic("0x19")]=null}}function Mc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0xa")][Ic("0x12")](Wa,wc),o[Ic("0x16")]=Mc(t)?t[Ic("0x11")]():void 0;const s=document[Ic("0x27")](),i=t[Ic("0x13")][Ic("0x28")](Ic("0x1b"))[Ic("0x5")],x=await i(o,(()=>function(t){const e=document[Ic("0x25")](Ic("0x18"));return t.appendChild(e),e}(s)));!function(t,e){const n=t.model[Ic("0x14")].getRootNames()[Ic("0x17")](((e,n)=>(e[n]=t[Ic("0xe")][Ic("0x28")]({rootName:n}),e)),{}),o=t.plugins.get("Users").users[Ic("0x21")]((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t[Ic("0xa")][Ic("0x28")](Ic("0xc")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xa")].get(Ic("0x4")),i=e[Ic("0xa")][Ic("0x28")](Ic("0xc"));for(const t of o)r[Ic("0x1e")](t.id)||r[Ic("0x3")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x1a")](t);e[Ic("0xe")][Ic("0x1f")](n)}(t,x),x.execute(e?"acceptAllSuggestions":Ic("0x9"));const a=Mc(x)?x[Ic("0x20")](n):x.data.get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["execute","_disableUnsupportedCommands","editor","refresh","has","isEnabled","_enabledCommands","value","forceDisabled","_isEnabledBasedOnSelection","affectsData","commands"];var c,l;c=a,l=308,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xa")]=e,this[d("0xb")]=!1,this[d("0x7")](),this[d("0x1")]=!1}refresh(){this[d("0x9")]=!0}[d("0x4")](){this[d("0xb")]=!this[d("0xb")],this.value?this[d("0x5")]():this._enableCommands()}[d("0x5")](){for(const t of this.editor[d("0x3")][d("0x3")]())t[d("0x2")]&&!this[d("0xa")][d("0x8")](t)&&t[d("0x0")]("TrackChangesCommand")}_enableCommands(){for(const t of this[d("0x6")][d("0x3")].commands())t[d("0x2")]&&!this._enabledCommands[d("0x8")](t)&&t.clearForceDisabled("TrackChangesCommand")}}const g=["get","_suggestions","execute","track-changes-accept-suggestion-not-found","refresh","acceptSuggestion","TrackChangesEditing","canEditAt","getRanges","plugins","editor"];var m,f;m=g,f=155,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x3")](){this.isEnabled=!0}[h("0x1")](t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x2"),this);const o=n[h("0x7")]();this.editor.model[h("0x6")](o)&&this[h("0x9")][h("0x8")][h("0xa")](h("0x5"))[h("0x4")](n)}}const b=["isEnabled","execute","TrackChangesEditing","discardSuggestion","editor","_suggestions","get","model","canEditAt","_isEnabledBasedOnSelection","getRanges","refresh"];var E,_;E=b,_=187,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0xa")]=e,this[T("0x4")](),this[T("0x2")]=!1}refresh(){this[T("0x5")]=!0}[T("0x6")](t){const n=this[T("0xa")][T("0xb")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x3")]();this[T("0x9")][T("0x0")][T("0x1")](o)&&this[T("0x9")].plugins[T("0xb")](T("0x7"))[T("0x8")](n)}}const y=["length","push","isInContent","createPositionAt","isArray","sort","isObject","createPositionBefore","schema","isTouching","add","from","createPositionAfter","getMarkers","next","isIntersecting","end","execute","getRanges","isCollapsed","color","deletion","type","replace","isMultiRange","content"," [color "];var k,A;k=y,A=482,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>v("0x19")==t[v("0x1a")]&&v("0x19")!=e[v("0x1a")]?-1:"deletion"!=t[v("0x1a")]&&v("0x19")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t[v("0x4")];){const i=t[o],x=t[o+1];n||(n=e[v("0xb")](i)),I(e,i,x)||(s[v("0x5")](e.createRange(n,r[v("0xa")](i)?e[v("0x10")](i):e[v("0x7")](i,v("0x14")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x10")](e),s=t.createPositionBefore(n);return o[v("0xd")](s)}function L(t,e,n){for(;n.length;){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[v("0x6")]&&e[v("0x15")](t.id)}))}}const N=["refresh","some","getRanges","values","_isEnabledBasedOnSelection","_command","_suggestions","isEnabled","from","editor","execute","canEditAt","model"];var M,w;M=N,w=131,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x5")]=n,this[O("0xc")](),this[O("0x3")]=!1}[O("0xc")](){const t=Array[O("0x7")](this._suggestions[O("0x2")]())[O("0x0")]((t=>t.isInContent));this[O("0x6")]=this[O("0x4")].isEnabled&&t}[O("0x9")](){const t=R(Array[O("0x7")](this[O("0x5")][O("0x2")]()));for(const e of t){const t=e[O("0x1")]();if(!this.editor[O("0xb")][O("0xa")](t))return}L(this[O("0x8")][O("0xb")],this[O("0x4")],t)}}const P=["execute","_selectedSuggestions","refresh","_suggestions","from","isEnabled","values","selection","model","editor","_isEnabledBasedOnSelection","size","getRanges","_command"];var D,B;D=P,B=331,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this[j("0x8")]=n,this[j("0x6")]=new Set,this[j("0x7")](),this[j("0x1")]=!1}[j("0x7")](){const t=this[j("0x0")][j("0xd")].document[j("0xc")],e=Array[j("0x9")](this._suggestions[j("0xb")]());this[j("0x6")]=function(t,e){const n=Array[v("0xf")](t[v("0x16")]()),o=new Set;for(const s of e)if(s[v("0x6")])for(const e of n)for(const n of s[v("0x11")]()){const r=n.getRange();(e[v("0x13")](r)||t[v("0x17")]&&!s[v("0x1")]&&s[v("0x12")]&&r[v("0x14")][v("0xd")](e.start))&&o[v("0xe")](s)}return o}(t,e),this[j("0xa")]=this[j("0x4")].isEnabled&&!!this[j("0x6")][j("0x2")]}[j("0x5")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x3")]();if(!this[j("0x0")][j("0xd")].canEditAt(t))return}L(this[j("0x0")][j("0xd")],this[j("0x4")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["addRange","commentThread","_onAttributesChange","push","creator","getMultiRangeId","reduce","attributes","addMarker","_onDiscard","accept","next","getFirstMarker","hasComments","createdAt","map","getMarkers","_saved","change","getFirstRange","getItems","markers","isIntersecting","substr","isMultiRange","onAccept","removeMarkers","authoredAt","delete","decorate","_onAccept","_model","getRanges","isExternal","isInContent","get","from","data","getContainedElement","addMarkerName","removeMarker","head","filter","clear","onAttributesChange","end","split","onDiscard","getAllAdjacentSuggestions","getRange","add","_markerNames","previous","length","set","author","subType","type","discard"];var $o,Jo;$o=Xo,Jo=414,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x38")],this[Qo("0x37")]=e[Qo("0x37")]||null,this[Qo("0x36")]=e[Qo("0x36")],this[Qo("0x3")]=e.creator||e[Qo("0x36")],this[Qo("0x20")]=Boolean(e[Qo("0x6")]&&e[Qo("0x6")]["@external"]),this[Qo("0x24")]=null,this[Qo("0x1e")]=t,this._onAccept=e[Qo("0x18")],this[Qo("0x8")]=e[Qo("0x2e")],this[Qo("0x1")]=e[Qo("0x2b")],this[Qo("0x32")]=new Set,this[Qo("0xd")]=null,this[Qo("0x35")](Qo("0x1a"),null),this.set(Qo("0x6"),e[Qo("0x6")]||{}),this[Qo("0x35")]("previous",null),this.set(Qo("0xa"),null),this[Qo("0x35")](Qo("0x0"),null),this[Qo("0x35")](Qo("0x10"),!1),this.decorate(Qo("0x9")),this[Qo("0x1c")](Qo("0x39"))}get[Qo("0x28")](){let t=this;for(;t[Qo("0x33")];)t=t[Qo("0x33")];return t}get[Qo("0xc")](){return!!this.commentThread&&this[Qo("0x0")].length>0}get[Qo("0x17")](){return 0!=this._markerNames.size&&6==Array.from(this[Qo("0x32")])[0][Qo("0x2d")](":")[Qo("0x34")]}get[Qo("0x21")](){return null!==this[Qo("0xb")]()}[Qo("0x26")](t){this[Qo("0x32")][Qo("0x31")](t)}getMarkerNames(){return Array[Qo("0x23")](this[Qo("0x32")])}[Qo("0xf")](){return this.getMarkerNames()[Qo("0xe")]((t=>this[Qo("0x1e")][Qo("0x14")][Qo("0x22")](t)))[Qo("0x29")]((t=>t))}[Qo("0xb")](){return this[Qo("0xf")]()[0]||null}[Qo("0x19")](){this[Qo("0x1e")][Qo("0x11")]((t=>{for(const e of this.getMarkers())t[Qo("0x27")](e)})),this._markerNames[Qo("0x2a")]()}[Qo("0x27")](t){this[Qo("0x1e")][Qo("0x11")]((e=>{e.removeMarker(t)})),this[Qo("0x32")][Qo("0x1b")](t)}[Qo("0x3a")](t){const e="suggestion:"+this[Qo("0x38")]+":"+this[Qo("0x37")]+":"+this.id+":"+this[Qo("0x3")].id+":"+Zo[Qo("0x4")]();this[Qo("0x26")](e),this[Qo("0x1e")][Qo("0x11")]((n=>{n[Qo("0x7")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x1f")]())if(e[Qo("0x15")](t))return!0;return!1}[Qo("0x1f")](){return this[Qo("0xf")]()[Qo("0xe")]((t=>t.getRange()))}[Qo("0x13")](){return this[Qo("0x1f")]()[Qo("0x5")](((t,e)=>[...t,...e[Qo("0x13")]()]),[])}[Qo("0x12")](){var t;return(null===(t=this[Qo("0xb")]())||void 0===t?void 0:t[Qo("0x30")]())||null}[Qo("0x25")](){const t=this.getRanges();if(1!=t[Qo("0x34")])return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x2c")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x9")](){this[Qo("0x1d")](this[Qo("0x1f")](),this[Qo("0x24")],this[Qo("0x6")]),this[Qo("0x19")]()}[Qo("0x39")](){this[Qo("0x8")](this.getRanges(),this.data,this.attributes),this[Qo("0x19")]()}[Qo("0x2f")](){const t=[];let e=this[Qo("0x28")];for(;e;)t[Qo("0x2")](e),e=e.next;return t}setAttribute(t,e){const n=eo(this[Qo("0x6")]);_o(n,t,e),Go(n,this[Qo("0x6")])||(this[Qo("0x6")]=n,this[Qo("0x1")](n))}removeAttribute(t){const e=eo(this[Qo("0x6")]);qo(e,t),Go(e,this[Qo("0x6")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x6")]))}toJSON(){return{id:this.id,type:this[Qo("0x37")]?this[Qo("0x38")]+":"+this[Qo("0x37")]:this[Qo("0x38")],authorId:this.creator.id,createdAt:this[Qo("0xd")],hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x6")]}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x16")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["indexOf","_itemLabels","*Insert:* %0","addContainer","remove","add","Container","_schema","removeObject","_resolveDescriptionItems","registerElementLabel","$textProxy","quantity","deletion","Object","end","type","replace","ELEMENT_SPACE","isInContent","set","REPLACE_TEXT","isObject","text","addEmptyContainer","getItemLabel","label","$text","_itemLabelsCallbacks","element","nextSibling","pop","insertion","_addDescriptionItems","start","length","getFirstRange","isEqual","push","_customCallbacks","registerDescriptionCallback","$1 $2","*Remove:* %0","isEmpty","_locale","getWalker","item","EmptyContainer","elementStart","name","elementEnd","removeEmptyContainer","data","get","previousSibling","match"];var es,ns;es=ts,ns=470,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this[os("0x6")]=[],this[os("0x29")]=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x35")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x32")in n&&e[os("0x10")](n),s=!0;break}}if(!s){this[os("0xb")](e,o);const s=t[n+1];if(s&&!o[os("0xe")]()[os("0x31")][os("0xf")](s[os("0xe")]()[os("0xc")])){const t=e[e[os("0xd")]-1],n=os("0xa")==o.type?os("0x27"):os("0x26");t&&os("0x1")==t[os("0x32")]&&(t[n]+="\n")}}}return this[os("0x2b")](e)}[os("0x12")](t){this[os("0x11")][os("0x10")](t)}[os("0x2c")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x6")],{matchingCallback:t,label:n,priority:o}):this[os("0x23")][os("0x36")](t,n)}[os("0x3")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x4")];break}return n||(n=this[os("0x23")][os("0x1f")](t[os("0x1b")])),n?n(e):1!==e?e+" "+t[os("0x1b")]+"s":""+t.name}[os("0xb")](t,e){const n=e.getFirstRange()[os("0x17")](),o=os("0xa")==e[os("0x32")]?os("0x27"):os("0x26");for(const e of n){const s=e[os("0x18")],r=t[t[os("0xd")]-1];if(s.is(os("0x2d")))r&&r.type[os("0x22")]("Container")>-1&&t[os("0x9")](),r&&os("0x1")==r[os("0x32")]?r[o]+=s[os("0x1e")]:t[os("0x10")]({type:os("0x1"),add:"add"==o?s[os("0x1e")]:"",remove:os("0x26")==o?s[os("0x1e")]:""});else if(this[os("0x29")][os("0x0")](s)){const i=s;if(r&&r[os("0x32")][os("0x22")]("Container")>-1&&t[os("0x9")](),os("0x1c")==e.type)continue;r&&r[os("0x32")]==o+os("0x30")&&r[os("0x7")][os("0x1b")]==i.name?r[os("0x2e")]++:t[os("0x10")]({type:o+os("0x30"),element:i,quantity:1}),n.skip((t=>!(os("0x1c")==t.type&&t[os("0x18")]==s)))}else if(this[os("0x29")].checkChild(s,os("0x5"))||s.is(os("0x7"),"softBreak")){const n=s;if(os("0x27")==o&&os("0x1a")==e.type||os("0x26")==o&&os("0x1c")==e[os("0x32")])continue;if(r&&-1==r[os("0x32")][os("0x22")](os("0x28"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x27")==o?n.nextSibling&&!this[os("0x29")][os("0x0")](n.nextSibling)?n[os("0x8")]:null:n[os("0x20")]&&!this[os("0x29")][os("0x0")](n[os("0x20")])?n[os("0x20")]:null,n[os("0x15")]||i&&i[os("0x15")]){const e=i&&i[os("0x15")]?i:n;r&&r[os("0x32")]==o+"EmptyContainer"&&r[os("0x7")][os("0x1b")]==e[os("0x1b")]?r[os("0x2e")]++:t[os("0x10")]({type:o+os("0x19"),element:e,quantity:1})}else t[os("0x10")]({type:o+os("0x28"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x16")],n=[];for(const o of t){switch(o[os("0x32")]){case os("0x1"):if(o[os("0x27")]=o.add[os("0x33")](/(\S)\u000A+(\S)/g,os("0x13"))[os("0x33")](/\u000A/g,""),o.remove=o[os("0x26")][os("0x33")](/(\S)\u000A+(\S)/g,os("0x13")).replace(/\u000A/g,""),""!=o.add&&""!=o[os("0x26")]){n.push({type:os("0x33"),content:Yo(e,os("0x37"),['"'+o[os("0x26")]+'"','"'+o[os("0x27")]+'"'])});continue}if(null!=o[os("0x27")][os("0x21")](/^ +$/)){n.push({type:os("0xa"),content:Yo(e,os("0x24"),Yo(e,os("0x34"),o.add[os("0xd")]))});continue}if(null!=o[os("0x26")][os("0x21")](/^ +$/)){n[os("0x10")]({type:"deletion",content:Yo(e,os("0x14"),Yo(e,"ELEMENT_SPACE",o.remove[os("0xd")]))});continue}if(""!=o[os("0x27")]){n.push({type:"insertion",content:Yo(e,os("0x24"),'"'+o[os("0x27")]+'"')});continue}n.push({type:os("0x2f"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x26")]+'"')});continue;case os("0x2"):case"addObject":n[os("0x10")]({type:os("0xa"),content:Yo(e,os("0x24"),this[os("0x3")](o[os("0x7")],o.quantity))});continue;case os("0x1d"):case os("0x2a"):n[os("0x10")]({type:os("0x2f"),content:Yo(e,os("0x14"),this[os("0x3")](o[os("0x7")],o.quantity))});continue;case os("0x25"):n.push({type:os("0xa"),content:Yo(e,"*Split:* %0",this[os("0x3")](o[os("0x7")],o[os("0x2e")]))});continue;case"removeContainer":n[os("0x10")]({type:os("0x2f"),content:Yo(e,"*Merge:* %0",this[os("0x3")](o[os("0x7")],o.quantity))});continue}n.push(o)}return n}}const rs=["registerDescriptionCallback","from","value","format","FORMAT_ALIGN_TO_CENTER","change","schema","FORMAT_JUSTIFY_TEXT","model","getAttribute","_descriptionFactory","enableCommand","editor","selection","get","commandName","AlignmentEditing","commandParams","checkAttribute","contentLanguageDirection","TrackChangesEditing","*Format:* %0","ltr","plugins","document","has","left","alignment","afterInit","FORMAT_ALIGN_TO_LEFT","center","locale","right"];var is,xs;is=rs,xs=418,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x6")](){const t=this[as("0x17")],e=t[as("0x9")];if(!t[as("0x1")][as("0x3")](as("0x1b")))return;const n=t[as("0x1")][as("0x19")](as("0x1f"));n[as("0x16")]("alignment",((e,o={})=>{let s=o[as("0xd")];o[as("0xd")]||(s=as("0x0")===t[as("0x9")][as("0x1e")]?as("0x4"):as("0xa"));const r=Array[as("0xc")](this[as("0x17")].model[as("0x2")][as("0x18")].getSelectedBlocks()).filter((t=>function(t,e,n){const o=t[as("0x14")](as("0x5"))||null;return e[as("0x1d")](t,as("0x5"))&&n!=o}(t,this[as("0x17")][as("0x13")][as("0x11")],s)));t.model[as("0x10")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:as("0x5"),commandParams:[{value:s}]})}))})),n[as("0x15")][as("0xb")]((t=>{const{data:n}=t;if(n&&as("0x5")==n[as("0x1a")]){const t=n[as("0x1c")][0][as("0xd")];return{type:as("0xe"),content:Yo(e,as("0x20"),function(t){switch(t){case as("0x4"):return Yo(e,as("0x7"));case as("0xa"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x8"):return Yo(e,as("0xf"));case"justify":return Yo(e,as("0x12"))}}(t))}}}))}}const ls=["consumable","item","isAtEnd","includes","isContent","ck-suggestion-marker--active","mapper","model","getWalker","element","getCustomProperty","type","TrackChangesEditing","createRangeOn","activeMarkers","hasAttribute","previousPosition","createUIElement","span","push","test","schema","toViewPosition","nextSibling","isBlock","parent","ck-suggestion-marker-","listItem","markerRange","get","bindElementToMarker","writer","getItems"];var ds,us;ds=ls,us=254,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x19")](t)&&o.push(n[gs("0x17")](s));return o}function fs(t){const e=[];if(t.is(gs("0x13"),gs("0x4"))){let n=t.nextSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>0;)e[gs("0x1d")](n),n=n[gs("0x0")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x6")](gs("0x16"));return(s,r,i)=>{if(!i[gs("0xa")][gs("0x1e")](r[gs("0x5")],s.name))return;const x=r[gs("0x5")][gs("0x12")](),a=r[gs("0x5")].start,c=t[gs("0x11")][gs("0x1f")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xb")];u=u||c[gs("0xe")](e);const n=i[gs("0x10")].toViewElement(e);if(n&&n[gs("0x14")]("addHighlight"))return;"elementEnd"==t[gs("0x15")]&&c[gs("0x1")](e)&&!c.isLimit(e)&&(e[gs("0x0")]||a[gs("0xc")]?l&&l[gs("0x2")]==e||(l=e,m(t[gs("0x1a")]),g=!0):d=d||t[gs("0x1a")])}function m(t){const s=i[gs("0x8")][gs("0x1b")](gs("0x1c"),{class:gs("0x3")+e}),x=i[gs("0x10")][gs("0x20")](t);n&&o[gs("0x18")][gs("0xd")](r.markerName)&&i[gs("0x8")].addClass(gs("0xf"),s),i[gs("0x8")].insert(x,s),i[gs("0x10")][gs("0x7")](s,r.markerName)}u||g||!d||m(d)}}const ps=["FORMAT_STRIKETHROUGH","afterInit","getRanges","SubscriptEditing","bold","markInlineFormat","strikethrough","_descriptionFactory","has","selection","italic","underline","SuperscriptEditing","registerDescriptionCallback","TrackChangesEditing","isCollapsed","commandParams","from","commands","FORMAT_UNDERLINE","change","get","CodeEditing","ItalicEditing","FORMAT_SUBSCRIPT","format","StrikethroughEditing","plugins","locale","FORMAT_SUPERSCRIPT","document","*Remove format:* %0","code","FORMAT_ITALIC","slice","forceValue","enableCommand"];var bs,Es;bs=ps,Es=440,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x1b"),"UnderlineEditing",_s("0x1a"),_s("0x1e"),_s("0x7"),_s("0x10")];class Cs extends t.Plugin{[_s("0x5")](){const t=this.editor,e=t.model,n=t[_s("0x1f")][_s("0x19")](_s("0x12")),o=t[_s("0x20")];for(const o of Ts){if(!t.plugins[_s("0xc")](o))continue;const s=o[_s("0x1")](0,-7).toLowerCase(),r=t[_s("0x16")].get(s);n[_s("0x3")](s,((t,o={})=>{const i=e[_s("0x22")][_s("0xd")];if(i[_s("0x13")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x2")]:!r.value;e[_s("0x18")]((()=>{const t=Array[_s("0x15")](i[_s("0x6")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xb")][_s("0x11")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x14")][0][_s("0x2")]?{type:_s("0x1d"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x1d"),content:Yo(o,_s("0x23"),e)}}))}s(_s("0x8"),Yo(o,"FORMAT_BOLD")),s(_s("0xe"),Yo(o,_s("0x0"))),s(_s("0xf"),Yo(o,_s("0x17"))),s(_s("0x24"),Yo(o,"FORMAT_CODE")),s(_s("0xa"),Yo(o,_s("0x4"))),s("subscript",Yo(o,_s("0x1c"))),s("superscript",Yo(o,_s("0x21")))}}const ys=["BlockQuoteEditing","filter","document","plugins","format","parent","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","blockQuote","*Remove format:* %0","checkChild","_descriptionFactory","afterInit","schema","value","*Format:* %0","has","forceValue","$root","model","get","markBlockFormat","commandName","name","commands","change","from","locale","editor"];var ks,As;ks=ys,As=180,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0x16")],e=t[vs("0x15")];if(!t[vs("0x1a")][vs("0xa")](vs("0x17")))return;const n=t.plugins[vs("0xe")]("TrackChangesEditing"),o=this.editor[vs("0x12")][vs("0xe")]("blockQuote");n.enableCommand("blockQuote",((e,s={})=>{const r=this[vs("0x16")][vs("0xd")][vs("0x19")].selection,i=s&&void 0!==s[vs("0xb")]?s[vs("0xb")]:!o[vs("0x8")];let x=[];if(i){const e=Array[vs("0x14")](r.getSelectedBlocks())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0x4")](t[vs("0x1c")],vs("0x2")),o=e[vs("0x4")]([vs("0xc"),vs("0x2")],t);return n&&o}(t,this[vs("0x16")][vs("0xd")][vs("0x7")])));x=S(e,t.model)}else{const e=Array[vs("0x14")](r.getSelectedBlocks())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0xd")])}t.model[vs("0x13")]((()=>{for(const t of x)n[vs("0xf")](t,{commandName:vs("0x2"),commandParams:[{forceValue:i}]})}))})),n[vs("0x5")][vs("0x1")]((t=>{const{data:n}=t;if(n&&vs("0x2")==n[vs("0x10")]){const t=Yo(e,vs("0x0"));return n.commandParams[0][vs("0xb")]?{type:vs("0x1b"),content:Yo(e,vs("0x9"),t)}:{type:vs("0x1b"),content:Yo(e,vs("0x3"),t)}}}))}}function Ss(t){return vs("0x2")==t[vs("0x1c")][vs("0x11")]}const Is=["afterInit","plugins","commands","TrackChangesEditing","get","editor","enableCommand"];var Ls,Ns;Ls=Is,Ns=158,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x1")];t[Ms("0x5")][Ms("0x0")]("ckbox")&&t[Ms("0x4")][Ms("0x0")](Ms("0x6"))[Ms("0x2")]("ckbox")}}const Os=["schema","isLimit","from","registerDescriptionCallback","forceValue","CodeBlock","commandName","indentCodeBlock","get","filter","model","codeBlock","locale","checkChild","document","ELEMENT_CODE_BLOCK","formatBlock","config","commands","registerElementLabel","blockName","name","languages","has","language","outdentCodeBlock","afterInit","markBlockFormat","TrackChangesEditing","*Format:* %0","commandParams","enableCommand","*Remove format:* %0","change","find","plugins"];var Fs,Ps;Fs=Os,Ps=173,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x21")](){const t=this.editor;if(!t[Ds("0x6")][Ds("0x1e")](Ds("0xc")))return;const e=t.plugins[Ds("0xf")](Ds("0x23")),n=t[Ds("0x13")],o=t[Ds("0x18")][Ds("0xf")]("codeBlock")[Ds("0x1d")],s=t[Ds("0x19")][Ds("0xf")]("codeBlock");e[Ds("0x2")](Ds("0xe")),e[Ds("0x2")](Ds("0x20")),e[Ds("0x2")](Ds("0x12"),((n,r={})=>{const i=t[Ds("0x11")],x=t[Ds("0x11")][Ds("0x15")].selection,a=r&&void 0!==r[Ds("0xb")]?r[Ds("0xb")]:!s.value;let c;r[Ds("0x1f")]||(r.language=o[0][Ds("0x1f")]),c=a?Array[Ds("0x9")](x.getSelectedBlocks())[Ds("0x10")]((t=>{return js(t)||(e=t,n=i[Ds("0x7")],!e.is("rootElement")&&!n[Ds("0x8")](e)&&n[Ds("0x14")](e.parent,"codeBlock"));var e,n})):Array[Ds("0x9")](x.getSelectedBlocks())[Ds("0x10")]((t=>js(t)));const l=S(c,i);i[Ds("0x4")]((()=>{for(const t of l)e[Ds("0x22")](t,{commandName:Ds("0x12"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1b")})}))})),e._descriptionFactory[Ds("0x1a")]("codeBlock",(t=>Yo(n,Ds("0x16"),t))),e._descriptionFactory[Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x17")==s&&r&&"codeBlock"==r[Ds("0xd")]){const t=r[Ds("0x1")][0][Ds("0x1f")],s=e(o[Ds("0x5")]((e=>e.language===t)).label);return r[Ds("0x1")][0].forceValue?{type:"format",content:Yo(n,Ds("0x0"),Yo(n,Ds("0x16"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x3"),Yo(n,Ds("0x16"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x1c")]}const Us=["has","addCommentThread","TrackChangesEditing","plugins","enableCommand","afterInit","get"];var Gs,Hs;Gs=Us,Hs=463,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x4")](){const t=this.editor;t.plugins[zs("0x6")]("CommentsEditing")&&t[zs("0x2")][zs("0x5")](zs("0x1"))[zs("0x3")](zs("0x0"))}}var Vs=n(181);const Ks=["forward","end","remove","root","downcastDispatcher","commands","model","merge","markerName","showSuggestionHighlights","editing","get","delete","uiElement","selection","options","addMarker:suggestion:deletion","$graveyard","unbindElementFromMarkerName","bind","mapper","deleteForward","buffer","plugins","start","enableCommand","requires","enqueueChange","createSelection","writer","createRange","batch","setSelection","lock","isCollapsed","high","TrackChangesEditing","fromRange","data","unlock"];var qs,Xs;qs=Ks,Xs=192,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x22")](){return[Vs.Delete]}init(){const t=this.editor,e=t[$s("0x1f")][$s("0x13")]($s("0x4"));e.enableCommand($s("0x14"));const n=t[$s("0xd")][$s("0x13")]($s("0x1d"));e[$s("0x21")]($s("0x1d"),((e,o={})=>{const s=t[$s("0xe")][$s("0x24")](t[$s("0xe")].document[$s("0x16")]);s[$s("0x2")]&&t[$s("0xe")].modifySelection(s,{direction:$s("0x8"),unit:o.unit});const r=s.getFirstRange(),x=i.LiveRange[$s("0x5")](r);let a;e(o),a=$s("0x19")==x[$s("0xb")].rootName?t[$s("0xe")][$s("0x26")](r.start):t.model[$s("0x26")](x[$s("0x20")],x[$s("0x9")]),x.detach(),t[$s("0xe")][$s("0x23")](n[$s("0x1e")][$s("0x27")],(t=>{n.buffer[$s("0x1")](),t[$s("0x0")](t[$s("0x26")](a[$s("0x9")])),n[$s("0x1e")][$s("0x7")]()}))})),t[$s("0x12")].downcastDispatcher.on($s("0x18"),hs(t,$s("0xf")),{priority:$s("0x3")}),t[$s("0x6")][$s("0xc")].on($s("0x18"),((e,n,o)=>{o[$s("0x17")][$s("0x11")]&&hs(t,$s("0xf"),{showActiveMarker:!1})[$s("0x1b")](this)(e,n,o)}),{priority:"high"}),t[$s("0x12")][$s("0xc")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x1c")].markerNameToElements(e[$s("0x10")]);if(o)for(const t of o)t.is($s("0x15"))&&(n[$s("0x1c")][$s("0x1a")](t,e[$s("0x10")]),n[$s("0x25")][$s("0xa")](t))}),{priority:$s("0x3")})}}const Qs=["documentList","afterInit","locale","commandParams","isFirstBlockOfListItem","editor","listType","*Change to:* %0","ELEMENT_LIST_ITEM","slice","bulletedList","getAttribute","forceValue","_suggestionFactory","ELEMENT_","createPositionAt","_descriptionFactory","next","containsItem","*Indent:* %0","fromRange","commandName","schema","setSelection","listItemId","splitListItemBefore","mergeListItemBackward","*Format:* remove from %0","multipleBlocks","length","deletion","findIndex","formatBlock","selection","*Outdent:* %0","start","outdentList","after","before","_LIST","accept","detach","createRange","TrackChangesEditing","from","getRanges","registerCustomCallback","model","getFirstRange","value","end","commands","numberedList","ELEMENT_BULLETED_LIST","enableCommand","document","change","refresh","splitListItemAfter","nextSibling","has","parent","isObject","listIndent","push","*Merge:* %0","markMultiRangeBlockFormat","*Format:* insert into %0","plugins","previousSibling","ELEMENT_NUMBERED_LIST","nodeAfter","indentList","format","expandListBlocksToCompleteList","markBlockFormat","get","getSelectedBlocks","hasAttribute"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x4")](){const t=this[tr("0x8")];if(!t[tr("0x47")][tr("0x3f")]("DocumentListEditing"))return;const e=t[tr("0x5")],n=t.plugins.get(tr("0x2e")),o=t.plugins[tr("0x0")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x36")][tr("0x0")](e);let r=Array[tr("0x2f")](t[tr("0x32")][tr("0x3a")][tr("0x24")].getSelectedBlocks());if(a(e)){r=o[tr("0x4d")](r);const t=[];for(const e of r)o[tr("0x7")](e)&&t[tr("0x43")](e);r=t}t[tr("0x32")][tr("0x3b")]((()=>{n[tr("0x45")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x34")]}],formatGroupId:tr("0x9")},[],tr("0x3"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2f")](t);const n=e[tr("0x22")]((t=>!t[tr("0x2")](tr("0x1b"))));return n>-1&&(e=e[tr("0xc")](0,n)),e}(t.model[tr("0x3a")][tr("0x24")][tr("0x1")]()),s=o[o[tr("0x20")]-1],r=t.model[tr("0x19")].isObject(s)?tr("0x28"):tr("0x35"),i=t.model[tr("0x2d")](t[tr("0x32")][tr("0x12")](o[0],tr("0x29")),t[tr("0x32")][tr("0x12")](s,r));t[tr("0x32")][tr("0x3b")]((()=>{n[tr("0x4e")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x3e")];for(;t&&t.getAttribute(tr("0x42"))>n[tr("0xe")]("listIndent");)e.add(t),t=t[tr("0x3e")]}return Array[tr("0x2f")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x32")][tr("0x3a")][tr("0x24")][tr("0x1")]()[tr("0x14")]().value,s=t[tr("0x32")][tr("0x12")](o,tr("0x29")),r=t[tr("0x32")][tr("0x12")](o,0),i=t.model[tr("0x2d")](s,r);t.model[tr("0x3b")]((()=>{n[tr("0x4e")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x9")})}))}}function a(e){const n=t.commands[tr("0x0")](tr("0xd")).value,o=t[tr("0x36")][tr("0x0")]("numberedList")[tr("0x34")];return"numberedList"===e?n:o}n.enableCommand("numberedList",s("numberedList")),n.enableCommand(tr("0xd"),s(tr("0xd"))),n[tr("0x39")](tr("0x4b"),r(tr("0x4b"))),n[tr("0x39")](tr("0x27"),r(tr("0x27"))),n[tr("0x39")](tr("0x3d"),x("splitListItemAfter")),n[tr("0x39")](tr("0x1c"),x(tr("0x1c"))),n[tr("0x13")].registerElementLabel((function(e){const n=!t.model[tr("0x19")][tr("0x41")](e),o=e[tr("0x48")],s=e[tr("0x3e")],r=e[tr("0xe")]("listItemId"),i=!o||o[tr("0xe")](tr("0x1b"))!==r,x=!s||s.getAttribute(tr("0x1b"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x13")].registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x18")]){case tr("0xd"):r=n.commandParams[0][tr("0xf")],i=a(n.commandName),o=r?tr("0x46"):"*Format:* remove from %0",i&&(o=tr("0xa")),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0x38")))};break;case tr("0x37"):r=n.commandParams[0][tr("0xf")],i=a(n[tr("0x18")]),o=r?"*Format:* insert into %0":tr("0x1e"),i&&(o="*Change to:* %0"),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0x49")))};break;case"indentList":o=tr("0x16"),s={type:tr("0x4c"),content:Yo(e,o,Yo(e,tr("0xb")))};break;case tr("0x27"):o=function(t){const e=t[tr("0x33")]();let n=e[tr("0x26")][tr("0x4a")];for(;n&&e[tr("0x15")](n);){if(n[tr("0xe")](tr("0x42"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x33")]()[tr("0x26")][tr("0x4a")];return tr("0x11")+e[tr("0xe")](tr("0x9")).toUpperCase()+tr("0x2a")}(t))):Yo(e,tr("0x25"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:tr("0x4c"),content:o};break;case tr("0x1d"):case"mergeListItemForward":!1===n[tr("0x1f")]&&(o=tr("0x44"),s={type:tr("0x21"),content:Yo(e,o,Yo(e,tr("0xb")))})}return s})),n[tr("0x10")][tr("0x31")](tr("0x23"),"documentList",tr("0x2b"),(function(e,n){const o=[];for(let n of e)n[tr("0x26")][tr("0x4a")]===n[tr("0x35")][tr("0x40")]&&(n=t[tr("0x32")].createRange(t[tr("0x32")].createPositionAt(n.start[tr("0x4a")],0))),o[tr("0x43")](n);t[tr("0x32")][tr("0x3b")]((e=>{const s=t[tr("0x32")].document[tr("0x24")],r=Array[tr("0x2f")](s[tr("0x30")]()).map((t=>i.LiveRange[tr("0x17")](t)));e[tr("0x1a")](o),t.commands[tr("0x0")](n[tr("0x18")])[tr("0x3c")](),n[tr("0x6")][tr("0x43")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n.commandParams),e.setSelection(r);for(const t of r)t[tr("0x2c")]()}))}))}}var nr=n(331);const or=["enableCommand","enter","commands","change","end","split","options","mapper","plugins","getFirstPosition","bind","high","selection","model","markerNameToElements","editing","removeMarker:suggestion:insertion","markInsertion","getFirstRange","nextSibling","unbindElementFromMarkerName","addMarker:suggestion:insertion","hasClass","data","showSuggestionHighlights","remove","downcastDispatcher","init","document","createRange","setSelection","get","markerName","detach"];var sr,rr;sr=or,rr=341,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x1a")](){const t=this.editor,e=t[ir("0x7")][ir("0x1e")]("TrackChangesEditing"),n=t[ir("0x1")][ir("0x1e")]("enter");e[ir("0x21")](ir("0x0"),(()=>{t[ir("0xc")][ir("0x2")]((o=>{const s=t[ir("0xc")][ir("0x1b")][ir("0xb")],r=s[ir("0x8")](),x=i.LiveRange.fromRange(s[ir("0x11")]());if(n.enterBlock(o)){const n=t.model.createPositionAt(r.parent[ir("0x12")],0),s=o[ir("0x1c")](r,n);e[ir("0x10")](s)}else o[ir("0x1d")](o[ir("0x1c")](x[ir("0x3")]));x[ir("0x20")](),n.fire("afterExecute",{writer:o})}))})),t.editing[ir("0x19")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0xa")}),t[ir("0xe")][ir("0x19")].on(ir("0xf"),((t,e,n)=>{const o=n[ir("0x6")][ir("0xd")](e.markerName);if(o)for(const t of o)t[ir("0x15")]("ck-suggestion-marker-split")&&(n[ir("0x6")][ir("0x13")](t,e[ir("0x1f")]),n.writer[ir("0x18")](t))}),{priority:ir("0xa")}),t[ir("0x16")][ir("0x19")].on(ir("0x14"),((e,n,o)=>{o[ir("0x5")][ir("0x17")]&&hs(t,ir("0x4"),{showActiveMarker:!1})[ir("0x9")](this)(e,n,o)}),{priority:ir("0xa")})}}const ar=["string","createPositionAt","end","model","has","findByTextCallback","afterInit","filter","findPrevious","editor","enableCommand","bind","handleFindCommand","getIntersection","start","TrackChangesEditing","replace","plugins","findNext","getMarkersGroup","item","_isInDeletionRange"];var cr,lr;cr=ar,lr=112,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x4")](){if(!this[dr("0x7")][dr("0xf")][dr("0x2")]("FindAndReplaceEditing"))return;const t=this.editor[dr("0xf")].get(dr("0xd"));t[dr("0x8")]("find",this[dr("0xa")][dr("0x9")](this)),t[dr("0x8")](dr("0x10")),t[dr("0x8")](dr("0x6")),t.enableCommand(dr("0xe")),t[dr("0x8")]("replaceAll")}[dr("0xa")](t,e,n={}){const o=this.editor[dr("0xf")].get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x14")==typeof e?o[dr("0x3")](e,n):e)(t)[dr("0x5")]((e=>!1===this[dr("0x13")](e,t[dr("0x12")])))),n)}[dr("0x13")](t,e){const n=this[dr("0x7")][dr("0x1")].createRange(this[dr("0x7")][dr("0x1")][dr("0x15")](e,t[dr("0xc")]),this[dr("0x7")][dr("0x1")].createPositionAt(e,t[dr("0x0")]));for(const t of this[dr("0x7")][dr("0x1")].markers[dr("0x11")]("suggestion:deletion"))if(null!==n[dr("0xb")](t.getRange()))return!0;return!1}}const gr=["get","fontColor.colors","FontSizeEditing","has","FontColorEditing","trim","selection","value","fontBackgroundColor","format","toLowerCase","*Reset font size*","config","*Set font family:* %0","TrackChangesEditing","editor","_enableCommand","isCollapsed","label","model","*Set font background color:* %0","FontFamilyEditing","getRanges","*Reset font family*","commandParams","fontBackgroundColor.colors","*Reset font color*","FontBackgroundColorEditing","FontSize","from","markInlineFormat","afterInit","commandName","title","document","plugins","fontSize","fontColor","fontFamily","*Set font color:* %0","locale","_descriptionFactory"];var mr,fr;mr=gr,fr=266,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1e"),commandName:hr("0x16")},{pluginName:hr("0x7"),commandName:hr("0x18")},{pluginName:hr("0x20"),commandName:hr("0x17")},{pluginName:hr("0xd"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x11")](){const t=this[hr("0x1")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x1")][hr("0x15")][hr("0x1f")](t)&&this[hr("0x2")](e);this.editor[hr("0x15")][hr("0x1c")]("TrackChangesEditing")[hr("0x1b")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x16")==o.commandName){const e=o[hr("0xa")][0][hr("0x23")];if(e){const o=n(this[hr("0x1")][hr("0x15")][hr("0x1c")](hr("0xe")).normalizeSizeOptions(this[hr("0x1")][hr("0x28")].get("fontSize.options")).find((t=>t[hr("0x5")]==e))[hr("0x13")])[hr("0x26")]();return{type:hr("0x25"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x25"),content:Yo(t,hr("0x27"))}}if(hr("0x18")==o.commandName){const e=o[hr("0xa")][0].value;return e?{type:"format",content:Yo(t,hr("0x29"),e)}:{type:"format",content:Yo(t,hr("0x9"))}}if("fontColor"==o.commandName){const e=o[hr("0xa")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1")][hr("0x28")][hr("0x1c")](hr("0x1d"))).find((t=>t[hr("0x5")]==e));let r=e,i="";return o&&(r=o[hr("0x4")],i=n(r)[hr("0x26")]()),{type:"format",content:Yo(t,hr("0x19"),i)[hr("0x21")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,hr("0xc"))}}if(hr("0x24")==o[hr("0x12")]){const e=o[hr("0xa")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x1")][hr("0x28")][hr("0x1c")](hr("0xb"))).find((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x4")],i=n(r)[hr("0x26")]()),{type:hr("0x25"),content:Yo(t,hr("0x6"),i)[hr("0x21")](),color:{value:e,title:i||r}}}return{type:hr("0x25"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x2")](t){const e=this[hr("0x1")];e[hr("0x15")][hr("0x1c")](hr("0x0")).enableCommand(t,((n,o={})=>{const s=e[hr("0x5")][hr("0x14")][hr("0x22")],r=o[hr("0x23")];s[hr("0x3")]?n(o):e.model.change((()=>{const n=Array[hr("0xf")](s[hr("0x8")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x5")]);for(const o of n)e[hr("0x15")][hr("0x1c")]("TrackChangesEditing")[hr("0x10")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["slice","fontColor","isFormatting","*Set format to:* %0","change","afterInit","createRange","getAttributes","modifySelection","registerDescriptionCallback","from","toLowerCase","keys","find","fontSize.options","title","getRanges","boolean","plugins","word","toUpperCase","format","model","getItems","schema","getFirstPosition","locale","config","commandParams","charAt","split","markInlineFormat","pasteFormat","commandName","copyFormat","entries","fontSize","commands","document","length","getAttributeProperties","enableCommand","createSelection","push","forward","getLastPosition","fontBackgroundColor","get","isBlock","backward"];var _r,Tr;_r=Er,Tr=147,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x8")](){const t=this.editor,n=t[Cr("0x19")],o=n[Cr("0x29")].selection,s=t[Cr("0x15")][Cr("0x0")]("TrackChangesEditing"),r=t.locale,i=t[Cr("0x28")][Cr("0x0")](Cr("0x25")),x=t.commands.get(Cr("0x23"));i&&x&&(s[Cr("0x2c")](Cr("0x23"),((t,r={})=>{const i=r;n[Cr("0x7")]((()=>{const t=Array[Cr("0xd")](o[Cr("0x13")]()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0xa")]()){const t=e[Cr("0x2b")](n);t&&t[Cr("0x5")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[Cr("0x1a")]())!n[Cr("0x1")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1b")]))||0!==Object[Cr("0xf")](i).length)for(const t of r)s[Cr("0x22")](t,{commandName:Cr("0x23"),commandParams:[i]})}))})),s._descriptionFactory[Cr("0xc")]((e=>{const{data:n}=e;if(n&&Cr("0x23")===n[Cr("0x24")]){const e=[],o=n[Cr("0x1f")][0];for(const[n,s]of Object[Cr("0x26")](o))e[Cr("0x2e")](Ar(t,n,s));return e[Cr("0x2a")]?{type:Cr("0x18"),content:Yo(r,Cr("0x6"),e.join(", "))}:{type:Cr("0x18"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x15")][Cr("0x0")]("TrackChangesEditing")[Cr("0x2c")](Cr("0x25")))}}function kr(t,e){const n=t[Cr("0x2d")](e);t[Cr("0xb")](n,{unit:"word",direction:Cr("0x2")});const o=n[Cr("0x1c")]();t[Cr("0xb")](n,{unit:Cr("0x16"),direction:Cr("0x2f")});const s=n[Cr("0x30")]();return t[Cr("0x9")](o,s)}function Ar(t,e,n){const o=t[Cr("0x1d")].t,r=e[Cr("0x21")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x20")](0)[Cr("0x17")]()+r[Cr("0x3")](1))[Cr("0xe")]();if(Cr("0x14")==typeof n)return i;if(Cr("0x4")===e||Cr("0x31")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1e")].get("fontColor.colors")).find((t=>t[Cr("0x19")]==n));return i+" ("+(e?o(e.label).toLowerCase():n)+")"}if(Cr("0x27")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x15")][Cr("0x0")]("FontSize").normalizeSizeOptions(t.config[Cr("0x0")](Cr("0x11")))[Cr("0x10")]((t=>t[Cr("0x19")]==n));return i+" ("+(e?o(e[Cr("0x12")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["editor","paragraph","HeadingEditing","TrackChangesEditing","afterInit","getSelectedBlocks","plugins","isObject","has","match","ELEMENT_HEADING_CUSTOM","heading","registerDescriptionCallback","checkChild","filter","formatBlock","commandName","format","model","parent","ELEMENT_HEADING","blockName","enableCommand","title","locale","_descriptionFactory","markBlockFormat","from","document","*Change to:* %0","config"];var Rr,Sr;Rr=vr,Sr=199,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x16")](){const t=this.editor,e=t[Ir("0xb")],n=t[Ir("0x11")].get("heading.options");if(!t.plugins[Ir("0x1a")](Ir("0x14")))return;const o=t[Ir("0x18")].get(Ir("0x15"));o[Ir("0x9")](Ir("0x1d"),((e,n)=>{const s=n.value,r=Array[Ir("0xe")](this.editor.model[Ir("0xf")].selection[Ir("0x17")]())[Ir("0x1")]((t=>{return e=t,n=s,(o=this[Ir("0x12")][Ir("0x5")].schema)[Ir("0x0")](e[Ir("0x6")],n)&&!o[Ir("0x19")](e)&&e.name!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0xd")](t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x8")},fs(t))}))}));for(const t of n)Ir("0x13")!=t[Ir("0x5")]&&o[Ir("0xc")].registerElementLabel(t[Ir("0x5")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0xa")])}));function s(t,n){return Yo(e,Ir("0x7"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o._descriptionFactory[Ir("0x1e")]((t=>{const{type:o,data:i}=t;if(Ir("0x2")==o&&i&&Ir("0x1d")==i[Ir("0x3")]){const t=i.commandParams[0].value,o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,Ir("0x10"),s(1,o))};const x=n.find((e=>e.model===t)).title;return{type:Ir("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x1b")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["toLowerCase","plugins","registerDescriptionCallback","commandParams","getLastMatchingPosition","HighlightEditing","document","locale","color","getRanges","push","value","highlight.options","highlight","selection","backward","find","isCollapsed","config","FORMAT_HIGHLIGHT","*Set highlight:* %0","hasAttribute","*Remove highlight*","change","model","getFirstPosition","markInlineFormat","get","enableCommand","afterInit","TrackChangesEditing"];var wr,Or;wr=Mr,Or=335,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x4")](){const t=this.editor;if(!t[Fr("0x7")].has(Fr("0xb")))return;const e=t[Fr("0x7")][Fr("0x2")](Fr("0x5"));e[Fr("0x3")]("highlight",((n,o={})=>{const s=t.model[Fr("0xc")][Fr("0x14")],r=s.getAttribute(Fr("0x13"));let i=o.value,x=[];if(s[Fr("0x17")]){const e=s[Fr("0x0")]();if(!s[Fr("0x1b")]("highlight"))return void n(o);{const n=t=>t.item.getAttribute(Fr("0x13"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x15")}),s=e[Fr("0xa")](n);x=[t[Fr("0x1e")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xf")]())i?x[Fr("0x10")](e):x.push(...ms("highlight",e,t[Fr("0x1e")]));t[Fr("0x1e")][Fr("0x1d")]((()=>{for(const t of x)e[Fr("0x1")](t,{commandName:Fr("0x13"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xd")];e._descriptionFactory[Fr("0x8")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x13")==s.commandName){const e=n.t,o=s[Fr("0x9")][0][Fr("0x11")];if(o){const s=t[Fr("0x18")][Fr("0x2")](Fr("0x12"))[Fr("0x16")]((t=>t.model==o)),r=e(s.title)[Fr("0x6")]();return{type:"format",content:Yo(n,Fr("0x1a"),r),color:{value:s[Fr("0xe")],title:s.title}}}return{type:"format",content:Yo(n,Fr("0x1c"),Yo(n,Fr("0x19")))}}}))}}const Dr=["conversion","createPositionAt","_descriptionFactory","insert","enableCommand","afterInit","HorizontalLineEditing","ELEMENT_HORIZONTAL_LINE","createEmptyElement","elementToStructure","showSuggestionHighlights","addClass","get","plugins","registerElementLabel","horizontalLine","locale","div","ck-horizontal-line","dataDowncast","high"];var Br,jr;Br=Dr,jr=278,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x0")](){const t=this.editor;if(!t[Ur("0x8")].has(Ur("0x1")))return;t[Ur("0x8")][Ur("0x7")]("TrackChangesEditing")[Ur("0x14")](Ur("0xa"));const e=t[Ur("0x8")][Ur("0x7")]("TrackChangesEditing"),n=t[Ur("0xb")];e[Ur("0x12")][Ur("0x9")]("horizontalLine",(t=>Yo(n,Ur("0x2"),t))),t[Ur("0x10")].for(Ur("0xe"))[Ur("0x4")]({model:Ur("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x5")])return null;const o=e.createContainerElement(Ur("0xc")),s=e[Ur("0x3")]("hr");return e[Ur("0x6")](Ur("0xd"),o),e[Ur("0x13")](e[Ur("0x11")](o,0),s),o},converterPriority:Ur("0xf")})}}const Hr=["format","ELEMENT_HTML_EMBED","locale","*Change %0 content*","registerDescriptionCallback","TrackChangesEditing","rawHtml","commandName","_descriptionFactory","rawHtmlApi","plugins","value","model","editor","document","getSelectedElement","getAttribute","editing","markBlockFormat","enableCommand","view","htmlEmbed","cancel","change","HtmlEmbed"];var zr,Wr;zr=Hr,Wr=469,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x13")];if(!t[Vr("0x10")].has(Vr("0x5")))return;const e=t[Vr("0x10")].get(Vr("0xb")),n=t[Vr("0x8")],o=t[Vr("0x17")][Vr("0x1")][Vr("0x14")].selection;e._descriptionFactory.registerElementLabel(Vr("0xc"),(t=>Yo(n,Vr("0x7"),t))),t[Vr("0x10")].get(Vr("0xb"))[Vr("0x0")](Vr("0x2"),((n,s)=>{const r=t[Vr("0x12")],i=r[Vr("0x14")].selection;r[Vr("0x4")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0xc"))?t[Vr("0x15")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x16")](Vr("0x11"))||"";void 0!==s&&s!==r&&(e[Vr("0x18")](t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement().getCustomProperty(Vr("0xf"))[Vr("0x3")]())}))})),e[Vr("0xe")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0x2")==e[Vr("0xd")]){const t=Yo(n,Vr("0x7"));return{type:Vr("0x6"),content:Yo(n,Vr("0x9"),t)}}}))}}const qr=["getClosestSelectedImageElement","ImageResize","locale","newRange","markDeletion","refresh","registerElementLabel","_splitMarkerName","getCaptionFromImageModelElement","start","accept","insertion","resizeImage","find","commands","nodeBefore","convertInlineImageToBlock","getAttribute","join","registerCustomCallback","selection","isInlineImage","plugins","toLowerCase","getSuggestions","hasAttribute","imageCaption","insertImage","ImageUploadEditing","imageTextAlternative","ImageEditing","*Format:* %0","imageInline","forceDefaultExecution","forward","createRange","side","ImageCaptionEditing","width","getSuggestionCallback","name","format","ImageBlockEditing","_suggestionFactory","toPrevious","commandName","next","markInlineFormat","registerPostFixer","Users","newValue","toggleImageCaption","has","imageTypeInline","markBlockFormat","model","TrackChangesEditing","getNearestSelectionRange","change","detach","end","createRangeOn","FORMAT_SIDE_IMAGE","*Remove image text alternative*","isIntersecting","document","ELEMENT_IMAGE","isEqual","isOwn","forEach","ImageCaptionUtils","convertBlockImageToInline","_findSuggestions","ELEMENT_CAPTION","author","addObject","imageStylePreApply","normalizedStyles","imageStyle","type","length","isBlockImage","formatInline","ImageStyleEditing","imageBlock","isBefore","chain","registerDescriptionCallback","_descriptionFactory","enableCommand","removeObject","isCollapsed","commandParams","*Set image width:* %0","schema","discard","suggestion","formatBlock","caption","imageStylePostApply","getSuggestion","ImageUtils","alt","fromPosition","subType","isInContent","commandReversedParams","ELEMENT_INLINE_IMAGE","value","discardSuggestion","get","getFirstRange","filter","title","nodeAfter","hasSuggestion","imageTypeBlock","findIndex"];var Xr,$r;Xr=qr,$r=369,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(Jr("0xf")))return;const n=t.plugins[Jr("0x5f")](Jr("0x29")),o=t[Jr("0x7")][Jr("0x5f")](Jr("0x56")),s={},r=t[Jr("0x69")];if(n[Jr("0x4a")](Jr("0xc")),n[Jr("0x49")].registerElementLabel(Jr("0x45"),(t=>Yo(r,Jr("0x33"),t))),n._descriptionFactory[Jr("0x6d")](Jr("0x11"),(t=>Yo(r,Jr("0x5c"),t))),n[Jr("0x49")][Jr("0x6d")]("caption",(()=>Yo(r,Jr("0x3a")))),t.plugins.has(Jr("0xd"))&&n[Jr("0x4a")]("uploadImage"),t[Jr("0x7")].has(Jr("0x1b"))&&t[Jr("0x7")][Jr("0x25")]("ImageInlineEditing")&&(n[Jr("0x4a")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]);t.model[Jr("0x2b")]((()=>{n[Jr("0x27")](r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x38"))}))})),n[Jr("0x4a")](Jr("0x65"),((e,s)=>{t.model[Jr("0x2b")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x58")](a.start,Jr("0x1d")),l=i.LivePosition.fromPosition(a[Jr("0x2d")],"toNext");n[Jr("0x12")]((()=>e(s))),x=o[Jr("0x67")](t[Jr("0x28")].document[Jr("0x5")]),a=r[Jr("0x2e")](x);const d=r[Jr("0x14")](c,l);c[Jr("0x2c")](),l[Jr("0x2c")](),n[Jr("0x27")](x,{commandName:Jr("0x26"),commandParams:[]},[],Jr("0x1")),d.start.isBefore(a[Jr("0x70")])&&n.markInsertion(r[Jr("0x14")](d[Jr("0x70")],a[Jr("0x70")]),Jr("0x1")),a[Jr("0x2d")][Jr("0x46")](d.end)&&n.markInsertion(r[Jr("0x14")](a.end,d[Jr("0x2d")]),Jr("0x1"))}))})),n[Jr("0x1c")][Jr("0x4")]("formatBlock",Jr("0x1"),Jr("0x3"),(()=>{})),n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),Jr("0x1"),Jr("0x71"),(()=>{})),n[Jr("0x1c")][Jr("0x4")]("formatBlock",Jr("0x1"),Jr("0x50"),n._suggestionFactory[Jr("0x18")](Jr("0x52"),"",Jr("0x71"))),n._suggestionFactory[Jr("0x4")](Jr("0x72"),Jr("0x1"),"join",(()=>{})),n[Jr("0x1c")].registerCustomCallback(Jr("0x72"),Jr("0x1"),"discard",(([e])=>{const o=n[Jr("0x1c")].getSuggestionCallback("insertion","",Jr("0x50"));let s=e[Jr("0x70")],r=e[Jr("0x2d")];const i=t[Jr("0x28")][Jr("0x4f")][Jr("0x2a")](s,"backward"),x=t[Jr("0x28")][Jr("0x4f")][Jr("0x2a")](r,Jr("0x13"));i.isCollapsed&&(s=i.start),x[Jr("0x4c")]&&(r=x[Jr("0x2d")]),o([t[Jr("0x28")].createRange(s,r)])})),n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),Jr("0x1"),Jr("0x47"),c),n[Jr("0x1c")][Jr("0x4")](Jr("0x72"),Jr("0x1"),"chain",c)),t[Jr("0x7")].has(Jr("0x16"))&&(n[Jr("0x4a")](Jr("0x24"),((e,s)=>{const r=t.plugins.get(Jr("0x37"));let i=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),x=r[Jr("0x6f")](i);t.model[Jr("0x2b")]((()=>{if(x)return void n[Jr("0x6b")](t[Jr("0x28")][Jr("0x2e")](x));const a=o[Jr("0x42")](i);e(s),i=o[Jr("0x67")](t.model[Jr("0x32")][Jr("0x5")]),x=r[Jr("0x6f")](i),n.markInsertion(t[Jr("0x28")][Jr("0x2e")](x),a?null:"imageCaption")}))})),n[Jr("0x1c")].registerCustomCallback("insertion",Jr("0xb"),Jr("0x47"),c)),t[Jr("0x7")][Jr("0x25")]("ImageStyleEditing")){n[Jr("0x4a")](Jr("0x3f"),((s,r)=>{const i=t.plugins[Jr("0x5f")](Jr("0x22")).me,x=t[Jr("0x75")][Jr("0x5f")]("imageStyle");let a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),c=t[Jr("0x28")].createRangeOn(a),l=x[Jr("0x5d")];if(l==r[Jr("0x5d")])return;const d={commandName:Jr("0x3f"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x28")][Jr("0x2b")]((()=>{if(n[Jr("0x9")]()[Jr("0x61")]((t=>t[Jr("0x5a")]&&i==t[Jr("0x3b")]&&(Jr("0x52")==t.type||Jr("0x43")==t[Jr("0x40")])&&(Jr("0x3d")==t[Jr("0x59")]||"imageStylePostApply"==t[Jr("0x59")])&&t.getFirstRange()[Jr("0x34")](c)))[Jr("0x36")]((t=>n[Jr("0x5e")](t.head))),a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),c=t[Jr("0x28")].createRangeOn(a),x[Jr("0x6c")](),t[Jr("0x75")][Jr("0x5f")](Jr("0x26"))[Jr("0x6c")](),t[Jr("0x75")][Jr("0x5f")](Jr("0x65"))[Jr("0x6c")](),l=x[Jr("0x5d")],l!=r[Jr("0x5d")])return o[Jr("0x6")](a)&&x.shouldConvertImageType(r[Jr("0x5d")],a)?(s(r),a=o[Jr("0x67")](t[Jr("0x28")][Jr("0x32")][Jr("0x5")]),void n[Jr("0x27")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x42")](a)?n[Jr("0x27")](a,d,[],Jr("0x54")):n[Jr("0x20")](c,d,Jr("0x54")))}))}));for(const e of t[Jr("0x7")][Jr("0x5f")](Jr("0x44"))[Jr("0x3e")])s[e[Jr("0x19")]]=e[Jr("0x62")][Jr("0x8")]();n[Jr("0x1c")][Jr("0x4")](Jr("0x52"),"imageStylePreApply",Jr("0x3"),(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x54"),"join",(()=>{})),n[Jr("0x1c")][Jr("0x4")](Jr("0x43"),Jr("0x54"),Jr("0x3"),(()=>{})),n[Jr("0x1c")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x71"),(()=>{})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x3d"),Jr("0x50"),((t,e)=>{n[Jr("0x1c")][Jr("0x18")](Jr("0x52"),"","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x5b")]})})),n._suggestionFactory[Jr("0x4")](Jr("0x52"),Jr("0x3d"),Jr("0x47"),c)}const x=[{type:Jr("0x52"),subType:Jr("0x3d")},{type:Jr("0x72"),subType:"imageCaption"},{type:Jr("0x52"),subType:"convertInlineImageToBlock"},{type:Jr("0x72"),subType:Jr("0x1")}];function a(t,e){const s=x[Jr("0x66")]((({type:e,subType:n})=>t[Jr("0x40")]==e&&t.subType==n)),r=x[Jr("0x66")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x59")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x60")]();if((0==s||1==s)&&2==r&&i[Jr("0x31")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x39")](i,Jr("0x72"))[Jr("0x61")]((({suggestion:t,meta:e})=>e[Jr("0x35")]&&Jr("0x1")==t[Jr("0x59")]));if(t[Jr("0x41")]>1&&a[Jr("0x2d")][Jr("0x34")](i[Jr("0x70")]))return!0;if(1==t[Jr("0x41")]&&(i[Jr("0x70")][Jr("0x34")](a[Jr("0x2d")])||i[Jr("0x2d")].isEqual(a[Jr("0x70")])))return!0}if(3==s&&3==r&&i.start.isBefore(a[Jr("0x70")])){const t=i[Jr("0x2d")][Jr("0x63")],e=a[Jr("0x70")][Jr("0x0")];return o[Jr("0x42")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x28")].document[Jr("0x21")]((()=>{let e=!1;const s=Array.from(t.model.document.differ.getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x6e")](t);if(Jr("0x51")==s&&n[Jr("0x64")](a)){if(Jr("0x52")==i&&(Jr("0x3d")==x||Jr("0x54")==x)){const t=n[Jr("0x55")](a);if(r[Jr("0x6a")]){const s=t.getFirstRange().getContainedElement();if(o[Jr("0x42")](s))continue;n[Jr("0x5e")](t),e=!0}}if(Jr("0x72")==i&&Jr("0xb")==x&&!r.newRange){const t=n[Jr("0x55")](a);t[Jr("0x1f")]&&t[Jr("0x1f")].isInContent&&(n.discardSuggestion(t[Jr("0x1f")]),e=!0)}}}return e})),t.plugins.has(Jr("0x68"))&&n[Jr("0x4a")](Jr("0x73"),((e,s)=>{const r=o[Jr("0x67")](t.model[Jr("0x32")][Jr("0x5")]);r[Jr("0x2")]("width")!=s[Jr("0x17")]&&t[Jr("0x28")].change((()=>{n[Jr("0x27")](r,{commandName:Jr("0x73"),commandParams:[s]})}))})),t[Jr("0x7")][Jr("0x25")]("ImageTextAlternativeEditing")&&n[Jr("0x4a")](Jr("0xe"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x28")][Jr("0x32")][Jr("0x5")]);(r[Jr("0xa")](Jr("0x57"))?r.getAttribute(Jr("0x57")):"")!=s[Jr("0x23")]&&t[Jr("0x28")][Jr("0x2b")]((()=>{n[Jr("0x27")](r,{commandName:Jr("0xe"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x48")]((t=>{if(x[Jr("0x74")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x59")]==n)))return t.previous?{}:void 0})),n[Jr("0x49")].registerDescriptionCallback((t=>{if(Jr("0x72")==t.type||"deletion"==t[Jr("0x40")]){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x53")))return{type:Jr("0x72")==t[Jr("0x40")]?Jr("0x3c"):Jr("0x4b"),element:e,quantity:1}}})),n[Jr("0x49")][Jr("0x48")]((t=>Jr("0x52")==t[Jr("0x40")]&&Jr("0x1")==t.subType?{type:Jr("0x1a"),content:"Inline image to block image"}:Jr("0x52")==t.type&&Jr("0x38")==t[Jr("0x59")]?{type:Jr("0x1a"),content:"Block image to inline image"}:void 0)),n._descriptionFactory[Jr("0x48")]((t=>{const{data:e}=t;if(e){if(Jr("0x3f")==e.commandName){const t=e[Jr("0x4d")][0][Jr("0x5d")];return n=Jr("0x15")===t?Yo(r,Jr("0x2f")):s[t]||t,{type:Jr("0x1a"),content:Yo(r,Jr("0x10"),n)}}if("imageTextAlternative"==e.commandName){const t=e[Jr("0x4d")][0][Jr("0x23")];return t?{type:Jr("0x1a"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x1a"),content:Yo(r,Jr("0x30"))}}if("resizeImage"==e[Jr("0x1e")]){const t=e.commandParams[0][Jr("0x17")];return t?{type:Jr("0x1a"),content:Yo(r,Jr("0x4e"),t)}:{type:Jr("0x1a"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["selection","src","enableCommand","handleReplaceImageCommand","replaceImageSource","registerCustomCallback","_descriptionFactory","get","change","afterInit","handleSuggestionDescription","commandParams","Users","_suggestionFactory","*Format:* replace image URL","subType","model","formatBlock","getSuggestions","format","getContainedElement","registerDescriptionCallback","getAttribute","TrackChangesEditing","plugins","getSelectedElement","locale","data","discard","author","getSuggestionCallback","document","editor","accept","has"];var Yr,ti;Yr=Zr,ti=312,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0xc")](){if(!this[ei("0x0")].plugins[ei("0x2")]("ImageEditing"))return;const t=this[ei("0x0")][ei("0x1b")][ei("0xa")](ei("0x1a"));t[ei("0x5")](ei("0x7"),((t,e)=>this[ei("0x6")](t,e))),t[ei("0x10")][ei("0x8")](ei("0x14"),ei("0x7"),ei("0x1"),t[ei("0x10")][ei("0x21")](ei("0x14"),null,ei("0x1f"))),t._suggestionFactory[ei("0x8")]("formatBlock",ei("0x7"),"discard",t[ei("0x10")][ei("0x21")](ei("0x14"),null,ei("0x1"))),t[ei("0x9")][ei("0x18")]((t=>this[ei("0xd")](t)))}[ei("0x6")](t,e){const n=this[ei("0x0")][ei("0x1b")].get(ei("0x1a")),o=this[ei("0x0")][ei("0x13")][ei("0x22")][ei("0x3")][ei("0x1c")]();this[ei("0x0")][ei("0x13")][ei("0xb")]((()=>{let s=o[ei("0x19")](ei("0x4"));const r=this[ei("0x0")][ei("0x1b")][ei("0xa")](ei("0xf")).me;for(const t of n[ei("0x15")]({skipNotAttached:!0})){const e=t[ei("0x17")]();if(ei("0x7")===t[ei("0x12")]&&e===o){t[ei("0x20")]!==r&&t[ei("0x1f")](),s=t[ei("0x1e")][ei("0xe")][0].source;break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x7"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&ei("0x7")===e.commandName){const t=ei("0x11");return{type:ei("0x16"),content:Yo(this[ei("0x0")][ei("0x1d")],t)}}}}const oi=["lowest","trackChanges","enableCommand","_setSuggestionData","_trackChangesExecuted","execute","value","afterInit","bind","importWord","TrackChangesEditing","collaboration_features","dataInsert","track_changes","commands","_trackChangesValueDuringImport","_handleImportedData","forEach","get","plugins","listenTo","editor","high"];var si,ri;si=oi,ri=311,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x3")]=!1,this._trackChangesExecuted=!1}[ii("0x12")](){const t=this[ii("0x9")],e=t[ii("0x2")].get(ii("0x14")),n=t[ii("0x2")][ii("0x6")]("trackChanges");e&&(e.on(ii("0x10"),((t,[,e])=>{this[ii("0x3")]=n[ii("0x11")],e[ii("0x16")][ii("0x1")]=!this._trackChangesValueDuringImport}),{priority:ii("0xa")}),this.listenTo(e,ii("0x0"),this[ii("0x4")][ii("0x13")](this)),this[ii("0x8")](e,ii("0x0"),(()=>{this[ii("0xf")]&&(n[ii("0x10")](),this[ii("0xf")]=!1)}),{priority:ii("0xb")}),t.plugins.get("TrackChangesEditing")[ii("0xd")]("importWord"))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x2")][ii("0x6")](ii("0xc")),s=o[ii("0x11")];this._trackChangesValueDuringImport!==s&&(o[ii("0x10")](),this[ii("0xf")]=!0),n&&n[ii("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x9")].plugins.get("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x9")][ii("0x7")].get(ii("0x15"))[ii("0xe")](s)}))}}const ai=["model","commandName","IndentEditing","editor","selection","get","indentBlock","has","*Indent:* %0","outdentBlock","change","schema","filter","checkAttribute","*Outdent:* %0","afterInit","markBlockFormat","format","from","registerDescriptionCallback","_descriptionFactory","IndentBlock","locale","enableCommand","blockIndent","outdent","plugins"];var ci,li;ci=ai,li=347,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x13")](){const t=this[di("0x7")],e=t[di("0x3")][di("0x9")]("TrackChangesEditing");t.plugins[di("0xb")](di("0x6"))&&(e[di("0x0")]("indent"),e[di("0x0")](di("0x2")));const n=t[di("0x1a")];if(t[di("0x3")][di("0xb")](di("0x19"))){for(const n of["indentBlock",di("0xd")])e.enableCommand(n,(()=>{const o=Array[di("0x16")](this.editor[di("0x4")].document[di("0x8")].getSelectedBlocks())[di("0x10")]((t=>this[di("0x7")][di("0x4")][di("0xf")][di("0x11")](t,di("0x1"))));t[di("0x4")][di("0xe")]((()=>{for(const t of o)e[di("0x14")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xa")})}))}));e._descriptionFactory[di("0x17")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x5")]&&di("0xd")!=o[di("0x5")])return;const s=t.getItems()[0],r=e[di("0x18")].getItemLabel(s);return di("0xa")==o[di("0x5")]?{type:di("0x15"),content:Yo(n,di("0xc"),r)}:di("0xd")==o.commandName?{type:di("0x15"),content:Yo(n,di("0x12"),r)}:void 0}))}}}var gi,mi,fi=["plugins","enableCommand","get","init","TrackChangesEditing","requires","editor"];gi=fi,mi=307,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x6")](){return[Vs.Input]}[hi("0x4")](){this[hi("0x0")][hi("0x1")][hi("0x3")](hi("0x5"))[hi("0x2")]("input")}}const bi=["selection","enableCommand","isCollapsed","commandParams","has","getFirstRange","*Remove link*","editor","change","linkHref","markInlineFormat","unlink","*Set link:* %0","link","commandName","afterInit","document","getFirstPosition","model","plugins","LinkEditing","registerDescriptionCallback","TrackChangesEditing","format"];var Ei,_i;Ei=bi,_i=164,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x13")](){const t=this.editor;if(!t[Ti("0x17")][Ti("0x8")](Ti("0x0")))return;const e=t[Ti("0x17")].get(Ti("0x2"));e[Ti("0x5")](Ti("0x11"),((n,o)=>{const s=t[Ti("0x16")][Ti("0x14")].selection;let r=[];if(s.isCollapsed){if(!s.hasAttribute(Ti("0xd")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x15")](),"linkHref",s.getAttribute("linkHref"),t[Ti("0x16")]);r=[e]}}else r=Array.from(s.getRanges());t[Ti("0x16")][Ti("0xc")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x11"),commandParams:[o]})}))})),e[Ti("0x5")](Ti("0xf"),(()=>{const n=this[Ti("0xb")].model,o=n[Ti("0x14")][Ti("0x4")];n[Ti("0xc")]((()=>{let n=[];n=o[Ti("0x6")]?[(0,Vs.findAttributeRange)(o[Ti("0x15")](),Ti("0xd"),o.getAttribute(Ti("0xd")),t[Ti("0x16")])]:ms(Ti("0xd"),o[Ti("0x9")](),t[Ti("0x16")]);for(const t of n)e[Ti("0xe")](t,{commandName:Ti("0xf"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x1")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x11")==n[Ti("0x12")]){const t=n[Ti("0x7")][0];return{type:Ti("0x3"),content:Yo(o,Ti("0x10"),'"'+t+'"')}}return Ti("0xf")==n[Ti("0x12")]?{type:Ti("0x3"),content:Yo(o,Ti("0xa"))}:void 0}}))}}const yi=["end","ELEMENT_LIST_ITEM","previousSibling","locale","createPositionAt","name","plugins","getAttribute","parent","TrackChangesEditing","outdentList","numberedList","TodoListEditing","schema","editor","enableCommand","document","execute","_descriptionFactory","ListEditing","blockName","from","checkTodoList","selection","get","commands","bulletedList","*Indent:* %0","replace","ELEMENT_BULLETED_LIST","markBlockFormat","has","push","isObject","model","value","nextSibling","listIndent","length","commandName","bulleted","todoList","_selectedElements","indentList","List","registerDescriptionCallback","format","afterInit","listType","createRange","element","registerElementLabel","ELEMENT_TODO_LIST","filter","checkChild","slice","listItem","getSelectedBlocks","change","add"];var ki,Ai;ki=yi,Ai=272,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xf")](){const t=this[vi("0x2a")],e=t[vi("0x1f")];if(!t[vi("0x22")].has(vi("0x2f")))return;const n=t[vi("0x22")][vi("0x34")](vi("0x25")),o=t[vi("0x22")][vi("0x3b")](vi("0x28"));function s(e){return()=>{const o=t[vi("0x2")][vi("0x2c")].selection,s=t[vi("0x35")][vi("0x34")](e);if(s.value)return void t[vi("0x2d")]("paragraph",{});const r=e[vi("0x17")](0,-4),i=function(t,e,n){let o=Array[vi("0x31")](t).filter((t=>{return e=t,(o=n)[vi("0x16")](e[vi("0x24")],"listItem")&&!o[vi("0x1")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x12"),vi("0x18"))||t[vi("0x23")](vi("0x10"))!=e));const s=new Set;for(const t of o)t.is("element","listItem")?s.add(Si(t)):s[vi("0x1b")](t);return Array[vi("0x31")](s)}(o[vi("0x19")](),r,t[vi("0x2")][vi("0x29")]);t[vi("0x2")].change((()=>{for(const t of i)n[vi("0x3a")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x3")]}],formatGroupId:vi("0x30")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>vi("0x18")!=t[vi("0x21")]));return n>-1&&(e=e[vi("0x17")](0,n)),e}(t[vi("0x2")].document[vi("0x33")][vi("0x19")]()),s=t[vi("0x2")][vi("0x11")](t.model[vi("0x20")](o[0],"before"),t.model[vi("0x20")](o[o[vi("0x6")]-1],vi("0x1c")));t[vi("0x2")][vi("0x1a")]((()=>{n[vi("0x3a")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x5")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x4")];for(;t&&t[vi("0x23")](vi("0x5"))>n[vi("0x23")](vi("0x5"));)e[vi("0x1b")](t),t=t[vi("0x4")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x27"),s("numberedList")),n[vi("0x2b")](vi("0x36"),s(vi("0x36"))),o&&n[vi("0x2b")](vi("0x9"),s("todoList")),n[vi("0x2b")](vi("0xb"),r(vi("0xb"))),n[vi("0x2b")](vi("0x26"),r(vi("0x26"))),o&&n[vi("0x2b")]("checkTodoList",(()=>{const e=t.commands[vi("0x34")]("checkTodoList"),o=Array[vi("0x31")](e[vi("0xa")]);o[vi("0x15")]((t=>t[vi("0x23")]("todoListChecked")!=e[vi("0x3")])),t.model[vi("0x1a")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x32"),commandParams:[{forceValue:!e[vi("0x3")]}]})}))})),n[vi("0x2e")][vi("0x13")](vi("0x18"),(t=>Yo(e,vi("0x1d"),t))),n[vi("0x2e")][vi("0xd")]((t=>{const{data:n}=t;if(n){if(vi("0x27")==n[vi("0x7")]||"bulletedList"==n.commandName||"todoList"==n[vi("0x7")])switch(n[vi("0x7")][vi("0x38")](vi("0xc"),"")){case vi("0x8"):return o(Yo(e,vi("0x39")));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x14")))}if(vi("0xb")==n.commandName)return{type:"format",content:Yo(e,vi("0x37"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x26")==n[vi("0x7")])return{type:vi("0xe"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x1d")))};if(vi("0x32")==n[vi("0x7")])return n.commandParams[0].forceValue?{type:vi("0xe"),content:Yo(e,"*Check item*")}:{type:vi("0xe"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:vi("0xe"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute(vi("0x5"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x1e")].is(vi("0x12"),"listItem");){const o=t[vi("0x1e")].getAttribute(vi("0x5"));if(o==e)n=t[vi("0x1e")];else if(o<e)break;t=t[vi("0x1e")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x18"))&&t[vi("0x23")](vi("0x5"))>0){let n=t[vi("0x4")];for(;n&&vi("0x18")==n[vi("0x21")]&&n[vi("0x23")]("listIndent")==t.getAttribute("listIndent");)e[vi("0x0")](n),n=n[vi("0x4")]}return e}const Li=["map","forward","getFirstPosition","filter","toUpperCase","handleListReversedCommand","backward","styles","_getSuggestionBlocks","element","editor","parent","enableCommand","type","list.properties","*Format:* set order to reversed","*Format:* set order to regular","handleListStyleCommand","createPositionAt","commandName","startIndex","*Format:* set start index to %0","registerDescriptionCallback","_LIST_","TrackChangesEditing","ELEMENT_","get","getAttribute","listStyle","push","afterInit","config","length","getSelectedBlocks","change","plugins","replace","commandParams","format","getSiblingNodes","document","listType","reversed","_getTranslationKeyForListStyle","model","listReversed","_descriptionFactory","from","has","handleListStartCommand","bind","handleDescriptions","ListUtils","listItem","_getSuggestionBlocksForListStyle","unshift","numbered","listStart","markMultiRangeBlockFormat","selection"];var Ni,Mi;Ni=Li,Mi=396,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x36")](){if(!this.editor[wi("0x3b")][wi("0xc")]("ListPropertiesEditing"))return;const t=this[wi("0x22")][wi("0x37")][wi("0x32")](wi("0x26")),e=this.editor[wi("0x3b")][wi("0x32")](wi("0x30"));t[wi("0x1f")]&&e[wi("0x24")](wi("0x34"),this[wi("0x29")][wi("0xe")](this)),t[wi("0x6")]&&e[wi("0x24")]("listReversed",this.handleListReversedCommand[wi("0xe")](this)),t[wi("0x2c")]&&e[wi("0x24")]("listStart",this[wi("0xd")][wi("0xe")](this)),e[wi("0xa")][wi("0x2e")](this.handleDescriptions.bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[wi("0x3b")].get("TrackChangesEditing"),o=this[wi("0x12")]();this[wi("0x22")][wi("0x8")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wi("0x34"),commandParams:[{type:e[wi("0x25")]}],formatGroupId:wi("0x34")})}))}[wi("0x1d")](t,e={}){const n=this.editor[wi("0x3b")].get("TrackChangesEditing"),o=this[wi("0x20")]((t=>t.is(wi("0x21"),"listItem")&&"numbered"===t[wi("0x33")](wi("0x5"))));if(o[wi("0x38")]<1)return;const s=o[wi("0x18")]((t=>this.editor.model.createRange(this[wi("0x22")][wi("0x8")].createPositionAt(t,"before"),this[wi("0x22")][wi("0x8")].createPositionAt(t,0))));this[wi("0x22")][wi("0x8")][wi("0x3a")]((()=>{n[wi("0x16")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x9")})}))}[wi("0xd")](t,e={}){const n=this[wi("0x22")][wi("0x3b")][wi("0x32")](wi("0x30")),o=this[wi("0x20")]((t=>t.is(wi("0x21"),wi("0x11"))&&wi("0x14")===t[wi("0x33")](wi("0x5"))));if(o[wi("0x38")]<1)return;const s=o[wi("0x18")]((t=>this[wi("0x22")].model.createRange(this[wi("0x22")][wi("0x8")][wi("0x2a")](t,"before"),this[wi("0x22")][wi("0x8")][wi("0x2a")](t,0))));this[wi("0x22")][wi("0x8")][wi("0x3a")]((()=>{n[wi("0x16")](s,{commandName:wi("0x15"),commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x15")})}))}[wi("0xf")](t){const e=this[wi("0x22")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x2b")]){case wi("0x34"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x7")](n.commandParams[0].type)))};break;case wi("0x9"):o=n[wi("0x1")][0][wi("0x6")]?wi("0x27"):wi("0x28"),s={type:wi("0x2"),content:Yo(e,o)};break;case"listStart":o=wi("0x2d"),s={type:wi("0x2"),content:Yo(e,o,n.commandParams[0][wi("0x2c")])}}return s}[wi("0x12")](){var t,e,n,o;const s=this[wi("0x22")][wi("0x3b")][wi("0x32")](wi("0x10"));let r=Array[wi("0xb")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x21"),wi("0x11")))&&r[wi("0x13")](...s[wi("0x3")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")][wi("0x1a")](),wi("0x1e"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x21"),wi("0x11")))&&r[wi("0x35")](...s[wi("0x3")](this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getLastPosition(),wi("0x19"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x22")][wi("0x8")][wi("0x4")][wi("0x17")].getFirstPosition())||void 0===n?void 0:n[wi("0x23")])||void 0===o?void 0:o.is(wi("0x21"),"listItem"))&&(r=r.filter((t=>t.is(wi("0x21"),"listItem")))),r}[wi("0x20")](t){const e=this.editor.plugins[wi("0x32")](wi("0x10"));let n=Array.from(this[wi("0x22")][wi("0x8")][wi("0x4")].selection[wi("0x39")]())[wi("0x1b")](t)[wi("0x18")]((t=>{const n=this[wi("0x22")][wi("0x8")][wi("0x2a")](t,0);return[...e[wi("0x3")](n,wi("0x1e")),...e.getSiblingNodes(n,wi("0x19"))]})).flat();return n=[...new Set(n)],n}[wi("0x7")](t){return wi("0x31")+this[wi("0x22")].plugins[wi("0x32")](wi("0x10")).getListTypeFromListStyleType(t)[wi("0x1c")]()+wi("0x2f")+t[wi("0x1c")]()[wi("0x0")](/-/g,"_")}}const Fi=["attribute:url:media","createEmptyElement","downcastDispatcher","stop","showSuggestionHighlights","conversion","mediaEmbed","locale","data","plugins","for","registerElementLabel","ELEMENT_MEDIA","MediaEmbedEditing","_descriptionFactory","afterInit","dataDowncast","enableCommand","TrackChangesEditing","media","high","div","editor"];var Pi,Di;Pi=Fi,Di=258,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x11")];if(!t[Bi("0x4")].has(Bi("0x8")))return;const e=t[Bi("0x4")].get(Bi("0xd")),n=t[Bi("0x2")];e[Bi("0xc")](Bi("0x1")),e[Bi("0x9")][Bi("0x6")]("media",(t=>Yo(n,Bi("0x7"),t))),t[Bi("0x0")][Bi("0x5")](Bi("0xb")).elementToElement({model:Bi("0xe"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x16")])return e[Bi("0x13")](Bi("0x10"))},converterPriority:Bi("0xf")}),t[Bi("0x3")][Bi("0x14")].on(Bi("0x12"),((t,e,n)=>{n.options[Bi("0x16")]&&t[Bi("0x15")]()}),{priority:Bi("0xf")})}}const Ui=["editor","mention","afterInit","has","plugins","get"];var Gi,Hi;Gi=Ui,Hi=265,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x1")](){const t=this[zi("0x5")];t[zi("0x3")][zi("0x2")]("MentionEditing")&&t[zi("0x3")][zi("0x4")]("TrackChangesEditing").enableCommand(zi("0x0"))}}const Vi=["has","_descriptionFactory","editor","pageBreak","registerElementLabel","afterInit","plugins","enableCommand","TrackChangesEditing","get"];var Ki,qi;Ki=Vi,qi=438,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x7")](){const t=this[Xi("0x4")];if(!t.plugins[Xi("0x2")]("PageBreakEditing"))return;t[Xi("0x8")][Xi("0x1")](Xi("0x0"))[Xi("0x9")](Xi("0x5"));const e=t.plugins[Xi("0x1")]("TrackChangesEditing"),n=t.locale;e[Xi("0x3")][Xi("0x6")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["isTouching","$text","plugins","addMarker:suggestion:insertion","addClass","name","*Change to:* %0","selection","insert","consumable","document","format","schema","model","filter","showSuggestionHighlights","registerDescriptionCallback","editing","highest","Paragraph","createUIElement","*Insert:* %0","nodeAfter","getItemLabel","ELEMENT_PARAGRAPH","markerName","parent","markerRange","_descriptionFactory","from","end","change","includes","writer","isLimit","toViewPosition","insertion","activeMarkers","span","options","mapper","editor","enableCommand","start","consume","getFirstRange","ck-suggestion-marker-split","paragraph","locale","checkChild","downcastDispatcher","TrackChangesEditing","insertParagraph"];var Qi,Zi;Qi=Ji,Zi=331,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yi("0x2a")].has(Yi("0x6")))return;const e=t[Yi("0x23")],n=t[Yi("0x2a")].get(Yi("0x26"));n[Yi("0xf")].registerElementLabel(Yi("0x22"),(t=>Yo(e,Yi("0xb"),t))),n[Yi("0x1d")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x32")],r=o[Yi("0x2f")]||s[Yi("0x2f")],i=Array[Yi("0x10")](r.getSelectedBlocks())[Yi("0x1")]((t=>{return e=t,(n=this[Yi("0x1c")][Yi("0x0")].schema).checkChild(e[Yi("0xd")],"paragraph")&&!n.isObject(e)&&"paragraph"!=e[Yi("0x2d")];var e,n}));t[Yi("0x0")][Yi("0x12")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x22"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0xf")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x22")==n.commandName)return{type:Yi("0x33"),content:Yo(e,Yi("0x2e"),Yo(e,Yi("0xb")))}})),n.enableCommand(Yi("0x27")),t[Yi("0x4")][Yi("0x25")].on(Yi("0x2b"),ex(t),{priority:Yi("0x5")}),t.data[Yi("0x25")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x1a")][Yi("0x2")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x5")});const o=n[Yi("0xf")];o[Yi("0x3")]((n=>{if(Yi("0x17")!==n.type)return;const{start:s,end:r}=n[Yi("0x20")]();if(!s[Yi("0x28")](r)||!s[Yi("0x9")])return;const i=t[Yi("0x0")][Yi("0x34")],x=s.nodeAfter;return i.isBlock(x)&&!i.isLimit(x)&&i.checkChild(x,"$text")?{type:"insertion",content:Yo(e,Yi("0x8"),o[Yi("0xa")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2a")].get(Yi("0x26")),i=o.markerRange[Yi("0x1e")],x=o[Yi("0xe")][Yi("0x11")],a=t.model.schema;if(!i[Yi("0x28")](x)||!i[Yi("0x9")])return;const c=i[Yi("0x9")];if(a.isBlock(c)&&!a[Yi("0x15")](c)&&a[Yi("0x24")](c,Yi("0x29"))){if(!s[Yi("0x31")][Yi("0x1f")](o[Yi("0xe")],n[Yi("0x2d")]))return;const t=s[Yi("0x14")][Yi("0x7")](Yi("0x19"),{class:Yi("0x21")}),i=s[Yi("0x1b")][Yi("0x16")](x);e&&r[Yi("0x18")][Yi("0x13")](o[Yi("0xc")])&&s[Yi("0x14")][Yi("0x2c")]("ck-suggestion-marker--active",t),s[Yi("0x14")][Yi("0x30")](i,t),s[Yi("0x1b")].bindElementToMarker(t,o.markerName)}}}const nx=["RemoveFormatEditing","removeFormat","TrackChangesEditing","get","getAttributes","commandName","has","from","schema","enableCommand","getItems","isFormatting","isCollapsed","_descriptionFactory","createRangeOn","format","afterInit","registerDescriptionCallback","change","markInlineFormat","model","locale","selection","plugins"];var ox,sx;ox=nx,sx=416,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x8")](){const t=this.editor;if(!t[rx("0xf")][rx("0x16")](rx("0x10")))return;const e=t[rx("0xf")][rx("0x13")](rx("0x12"));e[rx("0x1")](rx("0x11"),(n=>{const o=t.model.document[rx("0xe")];o[rx("0x4")]?n():t[rx("0xc")][rx("0xa")]((()=>{const n=Array[rx("0x17")](o.getRanges());for(const o of n)for(const n of o[rx("0x2")]())xx(n,t.model[rx("0x0")])&&e[rx("0xb")](t[rx("0xc")][rx("0x6")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0x5")][rx("0x9")]((e=>{const{data:n}=e;if(n&&rx("0x11")==n[rx("0x15")])return{type:rx("0x7"),content:Yo(t[rx("0xd")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0x14")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x3")])return!0}return!1}const ax=["RestrictedEditingModeEditing","discardAllSuggestions","discardSelectedSuggestions","enableCommand","trackChanges","plugins","acceptAllSuggestions","editor","goToNextRestrictedEditingException","acceptSelectedSuggestions","TrackChangesEditing"];var cx,lx;cx=ax,lx=305,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[dx("0xa")];if(!t.plugins.has(dx("0x3")))return;const e=t[dx("0x8")].get(dx("0x2"));e[dx("0x6")]("goToPreviousRestrictedEditingException"),e[dx("0x6")](dx("0x0"));const n=t[dx("0x8")].get(dx("0x3"));n[dx("0x6")](dx("0x7")),n[dx("0x6")]("acceptSuggestion"),n[dx("0x6")]("discardSuggestion"),n[dx("0x6")](dx("0x9")),n[dx("0x6")](dx("0x4")),n[dx("0x6")](dx("0x1")),n.enableCommand(dx("0x5"))}}const gx=["downcastDispatcher","init","consumable","merge","requires","get","plugins","addMarker:suggestion:insertion","ck-suggestion-marker--active","registerElementLabel","shiftEnter","high","enableCommand","createUIElement","TrackChangesEditing","mapper","ELEMENT_LINE_BREAK","insert","locale","_descriptionFactory","writer","element","createPositionBefore","editor","addClass","markerName","activeMarkers","getItems","softBreak","options","addMarker:suggestion:deletion","deletion","split","markerRange","model","toViewPosition","span","editing"];var mx,fx;mx=gx,fx=452,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x8")](){return[nr.ShiftEnter]}[hx("0x5")](){const t=this[hx("0x1b")],e=t[hx("0xa")].get(hx("0x12"));e[hx("0x10")](hx("0xe")),t.editing[hx("0x4")].on(hx("0xb"),bx(t),{priority:hx("0xf")}),t[hx("0x3")][hx("0x4")].on(hx("0x22"),bx(t),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[hx("0x21")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x17")][hx("0xd")](hx("0x20"),(e=>Yo(t[hx("0x16")],hx("0x14"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x9")](hx("0x12"));if(!s[hx("0x6")].test(o[hx("0x25")],n.name))return;const i=t[hx("0x0")];for(const t of o.markerRange[hx("0x1f")]()){if(!t.is(hx("0x19"),hx("0x20")))continue;const n=hx("0x23")==o[hx("0x1d")][hx("0x24")](":")[1]?hx("0x7"):"split",x=s[hx("0x18")][hx("0x11")](hx("0x2"),{class:"ck-suggestion-marker-"+n}),a=s[hx("0x13")][hx("0x1")](i[hx("0x1a")](t));e&&r[hx("0x1e")].includes(o[hx("0x1d")])&&s[hx("0x18")][hx("0x1c")](hx("0xc"),x),s.writer[hx("0x15")](a,x),s[hx("0x13")].bindElementToMarker(x,o[hx("0x1d")])}}}const Ex=["plugins","editor","FORMAT_RESTRICTED_DISABLED","has","format","get","restrictedEditingException","enableCommand","markInlineFormat","TrackChangesEditing","commandName","FORMAT_RESTRICTED_ENABLED","from","registerDescriptionCallback","change","_descriptionFactory","StandardEditingModeEditing","afterInit","value","forceValue"];var _x,Tx;_x=Ex,Tx=460,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x11")](){const t=this[Cx("0x1")],e=t.model,n=t.locale;if(!t[Cx("0x0")][Cx("0x3")](Cx("0x10")))return;const o=t[Cx("0x0")][Cx("0x5")](Cx("0x9")),s=Cx("0x6"),r=t.commands[Cx("0x5")](s);o[Cx("0x7")](s,((t,n={})=>{const i=e.document.selection;if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n.forceValue:!r[Cx("0x12")];e[Cx("0xe")]((()=>{const t=Array[Cx("0xc")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x8")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0xd")]((t=>{const{data:e}=t;if(e&&e[Cx("0xa")]==s)return e.commandParams[0][Cx("0x13")]?{type:Cx("0x4"),content:Yo(n,Cx("0xb"))}:{type:Cx("0x4"),content:Yo(n,Cx("0x2"))}}))}}const kx=["createRangeOn","commandName","element","includes","afterInit","_descriptionFactory","normalizeConfig","toLowerCase","_getRangesWithClasses","block","commandParams","change","every","getSelectedBlocks","selection","markBlockFormat","style","classes","model","markInlineFormat","add","registerDescriptionCallback","getAttribute","find","isCollapsed","has","styleName","getDefinitionsForView","forceValue","document","getItems","enabledStyles","name","*Remove format:* %0","DataSchema","TrackChangesEditing","get","plugins","value","from","commands","*Format:* %0","push","style.definitions","editor","format","_getStyleDefinition","StyleUtils","Style","getAncestors","isBlock","enableCommand","locale"];var Ax,vx;Ax=kx,vx=432,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x31")](){const t=this[Rx("0x24")];if(!t[Rx("0x1d")][Rx("0x11")](Rx("0x28")))return;const e=t[Rx("0x20")].get("style"),n=t[Rx("0x1d")][Rx("0x1c")](Rx("0x1b")),o=t[Rx("0x2c")],s=t.plugins[Rx("0x1c")](Rx("0x1a")),r=t[Rx("0x1d")][Rx("0x1c")](Rx("0x27"))[Rx("0x33")](s,t.config[Rx("0x1c")](Rx("0x23")));n[Rx("0x2b")](Rx("0x8"),((o,{styleName:i})=>{const x=t[Rx("0xa")][Rx("0x15")][Rx("0x6")],a=this[Rx("0x26")](i,r);if(!a)return;if(!e[Rx("0x17")].includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x2a")])return void o({styleName:i});const c=!e[Rx("0x1e")][Rx("0x30")](a[Rx("0x18")]);if(a[Rx("0x2a")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Rx("0x18")])){n[Rx("0xc")](o);break}}return n}(x[Rx("0x5")](),a.modelElements);t[Rx("0xa")].change((()=>{for(const t of e)n[Rx("0x7")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x1f")](x.getRanges());if(!c){const n=Array[Rx("0x1f")](s[Rx("0x13")](a[Rx("0x2f")],!1))[0][Rx("0xa")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0xa")],s,a[Rx("0x9")],n);o.push(...e)}e=o}t[Rx("0xa")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0xb")](t,{commandName:Rx("0x8"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x32")][Rx("0xd")]((t=>{const{data:e}=t;if(e&&Rx("0x8")===e[Rx("0x2e")])return e[Rx("0x2")][0][Rx("0x14")]?{type:Rx("0x25"),content:Yo(o,Rx("0x21"),e[Rx("0x2")][0][Rx("0x12")][Rx("0x34")]())}:{type:Rx("0x25"),content:Yo(o,Rx("0x19"),e[Rx("0x2")][0][Rx("0x12")][Rx("0x34")]())}}))}[Rx("0x26")](t,e){let n=e[Rx("0x1")][Rx("0xf")]((e=>e.name===t));return n||(n=e.inline[Rx("0xf")]((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x16")]()){const e=r[Rx("0xe")](o);e&&n[Rx("0x4")]((t=>e[Rx("0x9")][Rx("0x30")](t)))&&s[Rx("0x22")](t[Rx("0x2d")](r))}return s}}const Ix=["insertTableColumnLeft","change:data","enqueueChange","detach","removeTableColumn","substr","hasAttribute","ELEMENT_TABLE","selection","_descriptionFactory","_setupColumnsRowsFixing","nodeAfter","$graveyard","removeTableRow","*Insert:* %0","isIntersectingWithRange","registerCustomCallback","_tableSuggestions","position","getChanges","getSelectionAffectedTableCells","rootName","insertTableColumnRight","has","type","createRangeOn","registerDescriptionCallback","showSuggestionHighlights","root","maxColumn","getRowIndexes","maxRow","subType","table","join","_acceptFormatSuggestionCallbackFactory","MIN_SAFE_INTEGER","document","name","_splitMarkerName","*Remove:* %0","setSelection","createRangeIn","tableRow","add","execute","isInContent","last","model","markMultiRangeDeletion","suggestion","fromRange","colspan","deletion","TableUtils","insertTableRowAbove","addClass","start","getChildren","downcastDispatcher","batch","MAX_SAFE_INTEGER","isTouching","insert","filter","length","createPositionAt","plugins","findAncestor","differ","tablePaste","getCellLocation","get","end","addRange","markMultiRangeInsertion","cell","left","_getCoordsForCells","above","_tablePostFixingSubtypes","options","selectTableColumn","every","getColumnIndexes","toViewElement","push","min","enableCommand","order","classes","ELEMENT_TABLE_ROW_WITH_TEXT","registerElementLabel","tableCell","writer","max","refresh","ELEMENT_TABLE_WITH_TEXT","rowspan","nodeBefore","minColumn","tableColumn","from","getAttribute","first","$textProxy","afterInit","addMarker:suggestion","oldRange","getRanges","minRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","_getSuggestionCoords","removeClass","getItems","TrackChangesEditing","locale","data","editor","toLowerCase","ELEMENT_TABLE_ROW","insertTable","isEqual","ELEMENT_TABLE_COLUMN","includes","_suggestionFactory","getContainedElement","commands","insertion","span","insertTableRowBelow","discard","createTableWalker","change","values","map","TableEditing","getFirstRange","some"];var Lx,Nx;Lx=Ix,Nx=253,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x69")]=[Mx("0x44"),Mx("0x7e")],this[Mx("0x2a")]=new Set}[Mx("0x83")](){const t=this[Mx("0x4")],e=t[Mx("0x49")][Mx("0x3e")].selection;if(!t[Mx("0x5c")][Mx("0x30")](Mx("0x16")))return;const n=t[Mx("0x2")],o=t[Mx("0x5c")][Mx("0x61")](Mx("0x1")),s=t.plugins[Mx("0x61")](Mx("0x4f"));o[Mx("0x22")][Mx("0x75")](Mx("0x3a"),(t=>Yo(n,Mx("0x20"),t))),this[Mx("0x23")](),o[Mx("0x71")](Mx("0x7")),o[Mx("0x71")]("selectTableRow"),o[Mx("0x71")](Mx("0x6b"));for(const n of[Mx("0x50"),Mx("0x10")]){const r=t[Mx("0xd")][Mx("0x61")](n);o[Mx("0x71")](n,(n=>{t[Mx("0x49")][Mx("0x13")]((t=>{n();const i=Mx("0x68")===r[Mx("0x72")],x=s[Mx("0x2d")](e),a=s[Mx("0x37")](x),c=i?a[Mx("0x81")]-1:a[Mx("0x48")]+1,l=x[0][Mx("0x5d")](Mx("0x3a")),d=s[Mx("0x12")](l,{startRow:c,endRow:c}),u=Array[Mx("0x7f")](d)[Mx("0x15")]((e=>t[Mx("0x32")](e[Mx("0x65")])));o.markMultiRangeInsertion(u,Mx("0x44"))}))}))}for(const n of[Mx("0x19"),Mx("0x2f")]){const r=t.commands.get(n);o[Mx("0x71")](n,(n=>{t[Mx("0x49")][Mx("0x13")]((t=>{n();const i=Mx("0x66")===r[Mx("0x72")],x=s[Mx("0x2d")](e),a=s[Mx("0x6d")](x),c=i?a[Mx("0x81")]-1:a.last+1,l=x[0][Mx("0x5d")](Mx("0x3a")),d=s[Mx("0x12")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x7f")](d)[Mx("0x15")]((e=>t[Mx("0x32")](e[Mx("0x65")])));o[Mx("0x64")](u,Mx("0x7e"))}))}))}for(const n of[Mx("0x26"),Mx("0x1d")]){const r=n.substr(11),i=r[Mx("0x5")](),x=i.substr(0,3)+Mx("0xf"),a="table"+r,c=Mx("0x70")+r,l=Mx("0x78")+r;o[Mx("0x71")](n,(()=>{t[Mx("0x49")][Mx("0x13")]((t=>{const r=s[Mx("0x2d")](e),d=r[0][Mx("0x5d")](Mx("0x3a"));let u;if(Mx("0x26")==n){const t=s[Mx("0x37")](r);u={startRow:t[Mx("0x81")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t.first,endColumn:t[Mx("0x48")],includeAllSlots:!0}}const g=s[Mx("0x12")](d,u),m=Array.from(g)[Mx("0x15")]((({cell:t})=>t)),f=Ox(m.filter((t=>t.hasAttribute(x)))),h=Ox(m[Mx("0x59")]((t=>!t.hasAttribute(x))))[Mx("0x15")]((e=>t.createRangeOn(e))),p=o[Mx("0x4a")](h,a);if(p&&(Mx("0x44")==p[Mx("0x39")]||"tableColumn"==p[Mx("0x39")])){const e=this[Mx("0x89")](p);for(const n of f){const o=t[Mx("0x32")](n),r=s.getCellLocation(n),a=n[Mx("0x80")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x63")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x86")]())[Mx("0x15")]((t=>i.LiveRange[Mx("0x4c")](t)));t[Mx("0x49")][Mx("0x13")]((e=>{const s=e[Mx("0x55")];n=n[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")].rootName)),e[Mx("0x42")](n),t.commands.get("removeTableRow")[Mx("0x79")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x49")][Mx("0x1b")]((()=>{t[Mx("0x49")].enqueueChange(s,(t=>{const e=o[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));e.length>0&&t[Mx("0x42")](e);for(const t of o)t[Mx("0x1c")]()}))}))}))}function a(n){t[Mx("0x49")].change((o=>{const s=Array[Mx("0x7f")](e[Mx("0x86")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x6f")](e);for(const e of r)Mx("0x25")!=e[Mx("0x35")][Mx("0x2e")]&&(o[Mx("0x42")](o[Mx("0x5b")](e,0)),t[Mx("0xd")].get(Mx("0x1d"))[Mx("0x79")](),t[Mx("0x46")](Mx("0x1d"),{forceDefaultExecution:!0}));const x=s[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));x[Mx("0x5a")]>0&&o[Mx("0x42")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x6c")]((e=>t[Mx("0x18")]((t=>t[Mx("0x62")].isEqual(e[Mx("0x52")])||e.end[Mx("0x8")](t[Mx("0x52")])))))}function l(t,e){return t[Mx("0x18")]((t=>e.some((e=>t[Mx("0x62")][Mx("0x57")](e[Mx("0x52")])))))}t[Mx("0x3")][Mx("0x54")].on(Mx("0x84"),((t,e,n)=>{if(!n[Mx("0x6a")][Mx("0x34")])return;const o=e.item;if(!o)return;const s=n.mapper[Mx("0x6e")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x76")===o[Mx("0x3f")]&&(0,x.setHighlightHandling)(s,n[Mx("0x77")],((t,e,n)=>n[Mx("0x51")](r(e[Mx("0x73")]),t)),((t,e,n)=>n[Mx("0x8a")](r(e[Mx("0x73")]),t)))}),{priority:"highest"}),o[Mx("0x22")].registerDescriptionCallback((t=>{if(Mx("0xe")!=t[Mx("0x31")]&&Mx("0x4e")!=t[Mx("0x31")])return;const e=t[Mx("0xc")]();if(null!=e&&e.is("element","table")){if(Mx("0xe")==t[Mx("0x31")]){const e=t[Mx("0x0")]().filter((t=>t.is(Mx("0x82"))))[Mx("0x15")]((t=>t[Mx("0x3")]));if(e[Mx("0x5a")])return{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x7a"),'"'+e[Mx("0x3b")](" ")+'"'))}}if(Mx("0x4e")==t[Mx("0x31")]){const e=t[Mx("0x0")]()[Mx("0x59")]((t=>t.is("$textProxy")))[Mx("0x15")]((t=>t.data));if(e.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x3b")](" ")+'"'))}}}})),o._descriptionFactory[Mx("0x33")]((t=>{if("tableRow"==t[Mx("0x39")]){const e=t[Mx("0x0")]().filter((t=>t.is("$textProxy")))[Mx("0x15")]((t=>t[Mx("0x3")])),o=this[Mx("0x89")](t),s=o[Mx("0x38")]-o[Mx("0x87")]+1;if(Mx("0xe")==t[Mx("0x31")])return e[Mx("0x5a")]?{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x74"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x6"),s))};if(Mx("0x4e")==t[Mx("0x31")])return e[Mx("0x5a")]?{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x74"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x41"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if("tableColumn"==t[Mx("0x39")]){const e=t.getItems().filter((t=>t.is(Mx("0x82")))).map((t=>t[Mx("0x3")])),o=this[Mx("0x89")](t),s=o[Mx("0x36")]-o[Mx("0x7d")]+1;if("insertion"==t[Mx("0x31")])return e.length?{type:Mx("0xe"),content:Yo(n,Mx("0x27"),Yo(n,Mx("0x88"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x9"),s))};if(Mx("0x4e")==t[Mx("0x31")])return e.length?{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x88"),[s,'"'+e[Mx("0x3b")](" ")+'"']))}:{type:Mx("0x4e"),content:Yo(n,Mx("0x41"),Yo(n,Mx("0x9"),s))}}})),o[Mx("0xb")].registerCustomCallback(Mx("0xe"),Mx("0x44"),Mx("0x11"),r),o[Mx("0xb")][Mx("0x29")]("deletion",Mx("0x44"),"accept",r),o[Mx("0xb")].registerCustomCallback(Mx("0xe"),Mx("0x7e"),"discard",a),o[Mx("0xb")].registerCustomCallback(Mx("0x4e"),"tableColumn","accept",a),o[Mx("0xb")][Mx("0x29")](Mx("0xe"),Mx("0x7e"),Mx("0x3b"),c),o[Mx("0xb")][Mx("0x29")]("deletion",Mx("0x7e"),Mx("0x3b"),c),o[Mx("0xb")][Mx("0x29")](Mx("0xe"),Mx("0x44"),Mx("0x3b"),l),o[Mx("0xb")][Mx("0x29")](Mx("0x4e"),Mx("0x44"),"join",l)}[Mx("0x3c")](){const t=this[Mx("0x4")],e=t[Mx("0x49")][Mx("0x3e")][Mx("0x21")];return(n,o)=>{t[Mx("0x49")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x62")][Mx("0x7c")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x52")][Mx("0x24")]);const c=s[Mx("0x43")](a);if("$graveyard"==c[Mx("0x35")][Mx("0x2e")])return;const l=Array[Mx("0x7f")](e[Mx("0x86")]())[Mx("0x15")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x42")](c),t[Mx("0xd")][Mx("0x61")](r)[Mx("0x79")](),x[Mx("0x6f")]({forceDefaultExecution:!0}),t[Mx("0x46")](r,...x);const d=l[Mx("0x59")]((t=>Mx("0x25")!=t[Mx("0x35")][Mx("0x2e")]));d[Mx("0x5a")]>0&&s[Mx("0x42")](d);for(const t of l)t[Mx("0x1c")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x4")][Mx("0x5c")][Mx("0x61")](Mx("0x4f"));let n=Number[Mx("0x56")],o=Number[Mx("0x3d")],s=Number[Mx("0x56")],r=Number[Mx("0x3d")];for(const i of t){if(Mx("0x25")==i.root[Mx("0x2e")])continue;const{row:t,column:x}=e[Mx("0x60")](i),a=i.hasAttribute(Mx("0x7b"))?i[Mx("0x80")](Mx("0x7b"))-1:0,c=i[Mx("0x1f")](Mx("0x4d"))?i.getAttribute(Mx("0x4d"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x23")](){const t=this.editor,e=t[Mx("0x5c")].get("TrackChangesEditing"),n=t[Mx("0x5c")][Mx("0x61")](Mx("0x4f"));t[Mx("0x49")].document.on(Mx("0x1a"),(()=>{const n=Array[Mx("0x7f")](t[Mx("0x49")][Mx("0x3e")][Mx("0x5e")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x40")](t);if(Mx("0x4b")!=n)continue;if(null!=o[Mx("0x85")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes[Mx("0xa")](r)&&this[Mx("0x2a")][Mx("0x45")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x5d")](Mx("0x3a")),i=n.getCellLocation(t);for(const e of this[Mx("0x2a")]){const n=e[Mx("0x39")],x=n.startsWith(Mx("0x5f")),a=n[Mx("0x1e")](x?10:5),c=a[Mx("0x5")](),l=c[Mx("0x1e")](0,3)+Mx("0xf"),d=Mx("0x70")+a,u=Mx("0x78")+a;if(!e[Mx("0x47")])continue;if(r!=e[Mx("0x17")]()[Mx("0x52")][Mx("0x5d")](Mx("0x3a")))continue;if(e[Mx("0x28")](s))continue;const g=t[Mx("0x1f")](l)?t[Mx("0x80")](l)-1:0,m=this[Mx("0x89")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x63")](s),o=!0)}return o};t[Mx("0x49")].document.registerPostFixer((e=>{let n=!1;for(const s of t.model[Mx("0x3e")][Mx("0x5e")][Mx("0x2c")]())if(Mx("0x58")==s[Mx("0x31")])if(Mx("0x44")==s[Mx("0x3f")])for(const t of s.position[Mx("0x24")][Mx("0x53")]())n=n||o(t,e);else Mx("0x76")==s.name&&(n=n||o(s[Mx("0x2b")][Mx("0x24")],e));return n}))}[Mx("0x89")](t){return this[Mx("0x67")](t.getRanges()[Mx("0x15")]((t=>t.start[Mx("0x24")])))}}function Ox(t){return Array.from(new Set(t)[Mx("0x14")]())}const Fx=["markMultiRangeBlockFormat","isEnabled","_suggestionFactory","splitTableCellHorizontally","stop","document","has","_areSelectedCellsMergable","mergeTableCellRight","setSelection","type","getFirstPosition","add","root","element","_tablePostFixingSubtypes","containsRange","selection","*Split cell:* horizontally","mergeTableCellUp","getCellLocation","trackChanges","enableCommand","createRangeOn","*Split cell:* vertically","TableUtils","_descriptionFactory","getAncestors","size","change","locale","model","markBlockFormat","accept","get","filter","table","_isForcedDefaultExecutionBlock","format","value","map","length","getRanges","insertion","plugins","TableEditing","cell","mergeTableCellDown","mergeTableCellLeft","*Merge cells*","registerDescriptionCallback","refresh","findAncestor","subType","TrackChangesEditing","formatBlock","editor","tableCell","splitTableCellVertically","commandName","set:isEnabled","fromRange","from","commands","createTableWalker","_acceptFormatSuggestionCallbackFactory","mergeTableCells","execute","return","_areMergableCells","getSelectionAffectedTableCells","registerCustomCallback","find","getSuggestions","direction","afterInit","isInContent","low","push"];var Px,Dx;Px=Fx,Dx=134,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x14")](){const t=this[Bx("0x1")],e=t[Bx("0x37")][Bx("0x1d")][Bx("0x29")],n=t[Bx("0x36")];if(!t[Bx("0x44")].has(Bx("0x45")))return;const o=t[Bx("0x44")][Bx("0x3a")]("TrackChangesEditing"),s=t[Bx("0x44")][Bx("0x3a")](Bx("0x31")),r=t[Bx("0x44")][Bx("0x3a")](wx);r[Bx("0x27")][Bx("0x17")](Bx("0xb")),o[Bx("0x2e")]("mergeTableCells",(()=>{const e=s[Bx("0xf")](t[Bx("0x37")][Bx("0x1d")][Bx("0x29")]);t[Bx("0x37")][Bx("0x35")]((()=>{o[Bx("0x18")](e,{commandName:Bx("0xb"),commandParams:[]},[],Bx("0xb"))}))})),t[Bx("0x8")].get(Bx("0xb")).on(Bx("0xc"),((e,n)=>{t.commands[Bx("0x3a")](Bx("0x2d"))[Bx("0x3f")]&&(n.length>0&&n[n[Bx("0x41")]-1]&&n[n[Bx("0x41")]-1].forceDefaultExecution||o[Bx("0x3d")]||this._areSelectedCellsMergable()||e[Bx("0x1c")]())}),{priority:"highest"});for(const e of[Bx("0x2b"),"mergeTableCellRight","mergeTableCellDown",Bx("0x48")]){const n=t[Bx("0x8")][Bx("0x3a")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x37")][Bx("0x1d")][Bx("0x29")][Bx("0x23")]().getAncestors()[Bx("0x11")]((t=>t.is(Bx("0x26"),Bx("0x2")))),s=n.value;t.model.change((()=>{o[Bx("0x18")]([e,s],{commandName:Bx("0xb"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x3"),Bx("0x1b")]){const n=t[Bx("0x8")].get(e);o[Bx("0x2e")](e,(()=>{const r=s[Bx("0xf")](t[Bx("0x37")].document[Bx("0x29")])[0],i=r[Bx("0x4c")](Bx("0x3c")),{column:x,row:a}=s[Bx("0x2c")](r);let c=[];if("horizontally"==n[Bx("0x13")]){const t=s[Bx("0x9")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x40")]((t=>t[Bx("0x46")]))}else{const t=s[Bx("0x9")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x40")]((t=>t[Bx("0x46")]))}t[Bx("0x37")][Bx("0x35")]((t=>{o[Bx("0x38")](t[Bx("0x2f")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x32")][Bx("0x4a")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x49"))}:void 0})),o[Bx("0x32")][Bx("0x4a")]((t=>{const{data:e}=t;if(e)return Bx("0x3")==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x30"))}:"splitTableCellHorizontally"==e[Bx("0x4")]?{type:Bx("0x3e"),content:Yo(n,Bx("0x2a"))}:void 0}));const x=r[Bx("0xa")]();for(const t of[Bx("0x2b"),Bx("0x20"),Bx("0x47"),Bx("0x48")])o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),t,Bx("0x39"),x);for(const t of[Bx("0x3"),"splitTableCellHorizontally"])o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),t,Bx("0x39"),x);o[Bx("0x1a")][Bx("0x10")](Bx("0x0"),"mergeTableCells",Bx("0x39"),(n=>{t[Bx("0x37")][Bx("0x35")]((o=>{const s=Array[Bx("0x7")](e[Bx("0x42")]())[Bx("0x40")]((t=>i.LiveRange[Bx("0x6")](t)));o[Bx("0x21")](n),t[Bx("0x8")].get(Bx("0xb"))[Bx("0x4b")](),t.execute(Bx("0xb"),{forceDefaultExecution:!0});const r=s[Bx("0x3b")]((t=>"$graveyard"!=t[Bx("0x25")].rootName));r[Bx("0x41")]>0&&o[Bx("0x21")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x2b"),Bx("0x47"),Bx("0x48"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x3a")](e);n.on(Bx("0x5"),((e,o,s)=>{if(s){const o=t[Bx("0x37")].document[Bx("0x29")][Bx("0x23")]()[Bx("0x33")]()[Bx("0x11")]((t=>t.is(Bx("0x26"),Bx("0x2"))));this[Bx("0xe")](n.value,o)||(e[Bx("0xd")]=!1,e[Bx("0x1c")]())}}),{priority:Bx("0x16")})}}[Bx("0x1f")](){const t=this[Bx("0x1")][Bx("0x8")][Bx("0x3a")](Bx("0xb")),e=this.editor[Bx("0x44")][Bx("0x3a")](Bx("0x31"));if(!t[Bx("0x19")])return!1;const n=e.getSelectionAffectedTableCells(this.editor[Bx("0x37")][Bx("0x1d")][Bx("0x29")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0xe")](t,e))return!1;return!0}[Bx("0xe")](t,e){const n=this.editor[Bx("0x44")][Bx("0x3a")](Bx("0x4e")),o=this[Bx("0x1")][Bx("0x37")][Bx("0x2f")](t),s=this[Bx("0x1")][Bx("0x37")][Bx("0x2f")](e),r=new Set,i=new Set;for(const t of n[Bx("0x12")]())if((Bx("0x43")==t.type||"deletion"==t[Bx("0x22")]||Bx("0xb")==t[Bx("0x4d")])&&t[Bx("0x15")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x24")](t.type+":"+t.author.id),e[Bx("0x28")](s,!0)&&i[Bx("0x24")](t[Bx("0x22")]+":"+t.author.id);if(r[Bx("0x34")]!=i[Bx("0x34")])return!1;for(const t of r)if(!i[Bx("0x1e")](t))return!1;return!0}}const Ux=["accept","activeMarkers","end","index","first","createPositionBefore","markerNameToElements","value","item","ck-suggestion-marker--active","forceValue","FORMAT_HEADER_ROW","consumable","_suggestionFactory","FORMAT_HEADER_COLUMN","editor","*Format:* %0","format","parent","headingColumns","name","markerName","selection","cell","nodeBefore","registerCustomCallback","ck-suggestion-marker-","removeClass","addClass","toViewElement","commands","createPositionAfter","editing","highest","table","_splitMarkerName","removeMarker:suggestion","_acceptFormatSuggestionCallbackFactory","createTableWalker","start","from","last","formatBlock","markerRange","change","FORMAT_REGULAR_COLUMN","TableEditing","data-suggestion","data","model","getCellLocation","headingRows","commandParams","setTableRowHeader","showSuggestionHighlights","findAncestor","plugins","isBefore","getColumnIndexes","getAttribute","unbindElementFromMarkerName","has","TrackChangesEditing","commandName","includes","TableUtils","setAttribute","afterInit","addMarker:suggestion","downcastDispatcher","enableCommand","getSelectionAffectedTableCells","markBlockFormat","mapper","createRange","getChild","setTableColumnHeader","writer","getSuggestion","options","get","removeAttribute"];var Gx,Hx;Gx=Ux,Hx=399,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[wx]}[zx("0x4e")](){const t=this[zx("0x1a")];if(!t[zx("0x43")][zx("0x48")](zx("0x39")))return;const e=t.locale,n=t.plugins[zx("0x9")](zx("0x49")),o=t.plugins[zx("0x9")](zx("0x4c")),s=t.plugins[zx("0x9")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x2e")](r[zx("0x20")]),c=n.getSuggestion(a);if(!c[zx("0x3b")]||zx("0x5")!=c[zx("0x3b")][zx("0x4a")])return;if(r[zx("0x13")])return void s.stop();if(!i[zx("0x17")].consume(r[zx("0x36")],s[zx("0x1f")]))return;const l=r[zx("0x36")][zx("0x32")].nodeAfter,d=r.markerRange[zx("0xd")][zx("0x23")],u=l.parent[zx("0x1d")],{column:g}=o[zx("0x3d")](l),{column:m}=o[zx("0x3d")](d);for(let s=g;s<=m;s++){const c=o[zx("0x31")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x22")],c=i.mapper[zx("0x28")](s);i[zx("0x6")][zx("0x27")](zx("0x25")+x,c),e&&i[zx("0x6")][zx("0x4d")](zx("0x3a"),a,c),i[zx("0x2")].bindElementToMarker(c,r.markerName),t&&(n[zx("0xc")][zx("0x4b")](r[zx("0x20")])?i.writer[zx("0x27")](zx("0x14"),c):i.writer[zx("0x26")](zx("0x14"),c))}}}}n[zx("0x51")](zx("0x40"),((e,s)=>{const r=o[zx("0x0")](t.model.document[zx("0x21")]),i=o.getRowIndexes(r),x=r[0][zx("0x42")](zx("0x2d")),a=x[zx("0x46")](zx("0x3e"))||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x29")][zx("0x9")](zx("0x40"))[zx("0x12")],l=c?i[zx("0x34")]:i[zx("0xf")],d=x[zx("0x4")](l);let u;if(c){const e=x[zx("0x4")](a);if(d[zx("0xe")]<e[zx("0xe")])return;u=t[zx("0x3c")][zx("0x3")](t[zx("0x3c")][zx("0x10")](e.getChild(0)),t[zx("0x3c")].createPositionAfter(d.getChild(d.childCount-1)))}else{const e=x[zx("0x4")](a-1);if(!e)return;u=t.model[zx("0x3")](t[zx("0x3c")][zx("0x10")](d[zx("0x4")](0)),t[zx("0x3c")][zx("0x2a")](e[zx("0x4")](e.childCount-1)))}t[zx("0x3c")][zx("0x37")]((()=>{n[zx("0x1")](u,{commandName:zx("0x40"),commandParams:[{forceValue:c}]},[],zx("0x40"))}))})),n.enableCommand(zx("0x5"),((e,o)=>{const s=t.plugins[zx("0x9")](zx("0x4c")),r=s[zx("0x0")](t[zx("0x3c")].document[zx("0x21")]),i=s[zx("0x45")](r),x=r[0].findAncestor(zx("0x2d")),a=x[zx("0x46")](zx("0x1e"))||0,c=o&&null!==o[zx("0x15")]?o[zx("0x15")]:!t[zx("0x29")][zx("0x9")]("setTableColumnHeader")[zx("0x12")];let l;const d=x.getChild(0),u=c?i[zx("0x34")]:i[zx("0xf")],g=s[zx("0x31")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x33")](g)[0][zx("0x22")];if(c){const e=d[zx("0x4")](a);if(m[zx("0x44")](e))return;l=t[zx("0x3c")].createRange(t[zx("0x3c")][zx("0x10")](e),t[zx("0x3c")][zx("0x2a")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x3c")][zx("0x3")](t.model.createPositionBefore(m),t[zx("0x3c")].createPositionAfter(e))}t[zx("0x3c")][zx("0x37")]((()=>{n[zx("0x1")](l,{commandName:zx("0x5"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x2b")][zx("0x50")].on("addMarker:suggestion",r(),{priority:"highest"}),t.data[zx("0x50")].on(zx("0x4f"),((t,e,n)=>{n[zx("0x8")][zx("0x41")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x2c")}),t[zx("0x2b")][zx("0x50")].on(zx("0x2f"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x2e")](e[zx("0x20")]),i=n[zx("0x7")](r);if(!i[zx("0x3b")]||zx("0x5")!=i[zx("0x3b")].commandName)return;const x=o[zx("0x2")][zx("0x11")](e[zx("0x20")]);if(x)for(const t of x)o.writer[zx("0x26")]("ck-suggestion-marker-"+s,t),o[zx("0x6")].removeClass(zx("0x14"),t),o.writer[zx("0xa")](zx("0x3a"),t),o[zx("0x2")][zx("0x47")](t,e[zx("0x20")])}),{priority:"highest"}),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x40")==n.commandName){const t=n[zx("0x3f")][0].forceValue;return o(Yo(e,t?zx("0x16"):"FORMAT_REGULAR_ROW"))}if(zx("0x5")==n.commandName){const t=n[zx("0x3f")][0][zx("0x15")];return o(Yo(e,zx(t?"0x19":"0x38")))}}function o(t){return{type:zx("0x1c"),content:Yo(e,zx("0x1b"),t)}}}));const i=s[zx("0x30")]();n[zx("0x18")].registerCustomCallback(zx("0x35"),zx("0x40"),zx("0xb"),i),n[zx("0x18")][zx("0x24")]("formatBlock",zx("0x5"),zx("0xb"),i)}}const Vx=["register","hasSuggestion","tableCellBorderStyle","previous","locale","cells","createRange","selection","markMultiRangeInsertion","getRanges","getRowIndexes","commands","suggestion-td","reduce","last","insertionRanges","isInContent","filter","includes","editing","insertColumns","getTableIfOnlyTableInContent","createTableWalker","_suggestionFactory","_getCoordsForCells","length","trackChanges","previousSibling","suggestionUnloaded","every","getRange","rows","discard","registerPostFixer","tablePasteCell","listenTo","updateMarker","startsWith","nodeAfter","*Replace table cells*","getMarkers","markerToHighlight","removeMarker","markerName","elementToElement","tableCellBackgroundColor","markers","type","set","registerDescriptionCallback","activeMarkers","fill","getShiftedBy","endColumn","has","_replaceTableSlotCell","_isForcedDefaultExecutionBlock","isEmpty","table","cell","getChildren","deletion","requires","high","tableCellPadding","removeMarkers","setAttribute","tableCellVerticalAlignment","containsRange","getChild","getSuggestion","push","tablePasteColumn","next","getSelectionAffectedTableCells","registerCustomCallback","tableCellSuggestion","low","subType","newRange","element","add","getRows","rowInsertionRanges","view","tableCellBorderWidth","from","_createdBatches","markMultiRangeDeletion","paragraph","oldRange","accept","insertion","editingDowncast","suggestion:formatBlock:tablePasteCell","clipboardOutput","get","plugins","suggestion","return","change","keys","content","position","stop","createElement","name","getColumnIndexes","getSuggestions","columnInsertionRanges","attributes","removeColumns","createRangeIn","setAttributes","createRangeOn","find","tablePasteChainId","showSuggestionHighlights","columnInsertionIndexes","insert","ck-suggestion-marker-insertion","tableCellBorderColor","findAncestor","createPositionBefore","TableClipboard","markerAttributes","getAttributes","afterInit","fromEntries","markMultiRangeBlockFormat","rowInsertionIndexes","value","_splitMarkerName","tablePasteRow","getChangedMarkers","$graveyard","row","differ","insertRows","map","insertContent","suggestionLoaded","end","documentSelection","remove","tablePaste","start","removeRows","move","forceDefaultExecution","editor","formatBlock","TableUtils","root","options","getItems","columns","isEqual","getChanges","getAllAdjacentSuggestions","document","getContainedElement","deletionRanges","conversion","Users","join","entries","tableCellHorizontalAlignment","ck-suggestion-marker--active","model","column","first"];var Kx,qx;Kx=Vx,qx=425,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x4"),Xx("0x28"),Xx("0x5d"),Xx("0x56"),Xx("0x9e"),Xx("0x88"),Xx("0x9b")],Jx=Object[Xx("0x2f")]($x[Xx("0x3a")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x99")](){return[wx]}[Xx("0x2e")](){const t=this[Xx("0x45")];if(!t[Xx("0x10")][Xx("0x91")](Xx("0x2b")))return;const n=t[Xx("0x10")][Xx("0xf")]("TrackChangesEditing"),o=t[Xx("0x10")][Xx("0xf")](Xx("0x47")),s=t[Xx("0x10")].get(wx),r=t[Xx("0x10")].get(Xx("0x2b"));s._tablePostFixingSubtypes[Xx("0xa2")](Xx("0x34"),Xx("0xa3")),t.model.schema[Xx("0x5b")](Xx("0xa7"),{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x52")][Xx("0x87")]({model:Xx("0xa7"),view:Xx("0x67")});let i=null;t[Xx("0x58")].on(Xx("0x3b"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x74")]-1];l&&l[Xx("0x44")]||n[Xx("0x93")]||this[Xx("0x45")][Xx("0x66")][Xx("0xf")](Xx("0x75"))[Xx("0x32")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x3e")))return!1;const r=s[Xx("0x70")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xa5")](n.document[Xx("0x62")]);if(!i[Xx("0x74")])return!1;const x=i[0][Xx("0x29")](Xx("0x95")),a=o[Xx("0x65")](i),c=o[Xx("0x1a")](i),l={startRow:a[Xx("0x5a")],endRow:a[Xx("0x69")],startColumn:c[Xx("0x5a")],endColumn:c[Xx("0x69")]};return 1==i[Xx("0x74")]&&(l.endRow+=o[Xx("0x1")](r)-1,l[Xx("0x90")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x58")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model.change((()=>{t[Xx("0x58")][Xx("0x3b")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x63")](s,Xx("0x34"),{tablePasteChainId:o}),r.length&&n[Xx("0x63")](r,Xx("0xa3"),{tablePasteChainId:o}),a[Xx("0x74")]&&n[Xx("0x63")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x7")](c,Xx("0x40"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x30")](l[Xx("0x3a")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x7d"),{tablePasteChainId:o});if(d){const e=d[Xx("0x83")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Xx("0x22")]((t=>t[Xx("0x79")]()[Xx("0x4c")](r)));i&&n[Xx("0xa2")]([i[Xx("0x19")],s])}n.length&&d[Xx("0x9d")](Xx("0x2c"),Object[Xx("0x2f")](n))}i=null})))}),{priority:e.priorities[Xx("0x9a")]+10}),t[Xx("0x10")][Xx("0xf")](Xx("0x2b")).on(Xx("0x92"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x17")]();const r=n[Xx("0x96")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x12")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0xa0")](0));for(const t of Array[Xx("0x5")](x[Xx("0x97")]()))s[Xx("0x26")](t,r,Xx("0x3d"));const t=i[Xx("0x31")][Xx("0x6d")](n[Xx("0x37")]),e=i[Xx("0x25")].includes(n[Xx("0x59")]);t||e||(l=s[Xx("0x1f")](r))}else c&&!a&&(d=s[Xx("0x1f")](r));else{const t=s.createElement(Xx("0xa7")),e=s[Xx("0x18")](Xx("0xa7"));s.wrap(s[Xx("0x1f")](r),e),s.insert(t,r,0);for(const e of Array[Xx("0x5")](x[Xx("0x97")]()))s[Xx("0x26")](e,t,Xx("0x3d"));l=s[Xx("0x21")](t),d=s[Xx("0x21")](e)}const u=Array[Xx("0x5")](x[Xx("0x2d")]())[Xx("0x6c")]((([t])=>$x[Xx("0x6d")](t)));i[Xx("0x60")][Xx("0xa2")]({element:r,attributes:u[Xx("0x74")]?Object[Xx("0x2f")](u):null}),l&&i[Xx("0x6a")][Xx("0xa2")](l),d&&i[Xx("0x51")][Xx("0xa2")](d)}),{priority:Xx("0x9a")}),o.on(Xx("0x6f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4b")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x8e")](x)[Xx("0x3a")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x71")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x1c")][Xx("0xa2")](t.model[Xx("0x21")](e))}),{priority:Xx("0xa8")}),o.on(Xx("0x39"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7a")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x8e")](x)[Xx("0x3a")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x71")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x2")].push(t[Xx("0x58")].createRangeOn(e))}),{priority:"low"}),n._descriptionFactory[Xx("0x8c")]((e=>{if(e.subType&&e.subType[Xx("0x80")](Xx("0x40")))return e[Xx("0x5e")]?{}:{type:Xx("0xb"),content:Yo(t[Xx("0x5f")],Xx("0x82"))}}));const x=()=>{};for(const t of[Xx("0x40"),Xx("0xa3"),"tablePasteRow",Xx("0x7d")])n[Xx("0x72")].registerCustomCallback(Xx("0xb"),t,Xx("0x54"),x),n._suggestionFactory.registerCustomCallback(Xx("0x98"),t,Xx("0x54"),x);n[Xx("0x72")][Xx("0xa6")](Xx("0x46"),Xx("0x7d"),Xx("0x7b"),x),n._suggestionFactory.registerCustomCallback(Xx("0x46"),Xx("0x7d"),Xx("0xa"),((e,n,o)=>{const s=e[Xx("0x3a")]((t=>t.getContainedElement()))[Xx("0x6c")]((t=>t)),r=new Map(s[Xx("0x3a")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x60")])e&&r[Xx("0x8b")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x55")](o.markerAttributes)){const o=t[Xx("0x58")][Xx("0x89")][Xx("0xf")](e),s=o?o[Xx("0x79")]()[Xx("0x50")]():null;s&&r[Xx("0x8b")](s,n)}t[Xx("0x58")].change((t=>{for(const[e,n]of r)t[Xx("0x20")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x72")].registerCustomCallback(e,Xx("0x40"),o,((s,r,i)=>{t[Xx("0x58")].change((t=>{const x=[];for(const t of s){const e=t[Xx("0x41")][Xx("0x81")];e.is(Xx("0xab"),Xx("0xa7"))&&x[Xx("0xa2")](e)}n[Xx("0x72")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x36")!=e[Xx("0x48")].rootName&&t.unwrap(e)}))}))};a(Xx("0xb"),"accept"),a(Xx("0xb"),Xx("0x7b")),a(Xx("0x98"),Xx("0xa")),a("deletion",Xx("0x7b")),n._suggestionFactory[Xx("0xa6")](Xx("0xb"),Xx("0x34"),Xx("0x7b"),(t=>{const e=t.map((t=>t[Xx("0x50")]())),n=e[0].findAncestor(Xx("0x95")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x42")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0xa6")](Xx("0xb"),Xx("0xa3"),Xx("0x7b"),(t=>{const e=t[Xx("0x3a")]((t=>t[Xx("0x50")]())),n=e[0].findAncestor("table"),{minColumn:r,maxColumn:i}=s[Xx("0x73")](e);o[Xx("0x1e")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0xa9")]||!e.subType[Xx("0x80")](Xx("0x40")))return;const o=e[Xx("0x1d")][Xx("0x23")],s=n[Xx("0x1b")]().filter((t=>t[Xx("0x6b")]&&t[Xx("0x1d")]&&t[Xx("0x1d")][Xx("0x23")]==o));s[Xx("0x74")]&&e[Xx("0x4e")]()[Xx("0x74")]!=s[Xx("0x74")]&&s[Xx("0x68")](((t,e)=>(t[Xx("0xa4")]=e,e[Xx("0x5e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x33")](t.markerName),s=["ck-suggestion-marker",Xx("0x27")],r=n[Xx("0x8d")][Xx("0x6d")](t[Xx("0x86")]);return r&&s[Xx("0xa2")](Xx("0x57")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x3c"),c,{priority:Xx("0x9a")}),n.on(Xx("0x77"),c,{priority:Xx("0x9a")}),t[Xx("0x58")][Xx("0x4f")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x5")](t[Xx("0x58")][Xx("0x4f")][Xx("0x38")][Xx("0x35")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x33")](s);if(Xx("0x11")!=o||Xx("0x98")!=i||r[Xx("0x9")])continue;if(!n[Xx("0x5c")](x))continue;const a=n[Xx("0xa1")](x).getRanges(),c=t[Xx("0x10")].get("Users").me;for(const t of n[Xx("0x1b")]())if(t[Xx("0x6b")]&&t.author==c&&Xx("0x46")==t[Xx("0x8a")]&&Xx("0x7d")==t[Xx("0xa9")]&&t[Xx("0x64")]()[Xx("0x78")]((t=>a.some((e=>e[Xx("0x9f")](t,!0))))))for(const n of t[Xx("0x4e")]())n.isInContent&&(n.discard(),e=!0)}return e})),t[Xx("0x58")][Xx("0x4f")].registerPostFixer((e=>{const o=t[Xx("0x66")][Xx("0xf")]("redo");if(!o||!o[Xx("0x6")].has(e.batch))return!1;let s=!1;const r=t[Xx("0x10")][Xx("0xf")](Xx("0x53")).me,i=t[Xx("0x58")][Xx("0x4f")][Xx("0x38")][Xx("0x4d")](),x=Array[Xx("0x5")](t[Xx("0x58")][Xx("0x4f")].differ[Xx("0x35")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x33")](t);return Xx("0x11")==o&&Xx("0x40")==s&&i==r.id&&!e[Xx("0x9")]}));for(const t of i){if("insert"!=t[Xx("0x8a")]||Xx("0xa7")!=t[Xx("0x19")]||1!=t[Xx("0x74")])continue;const n=e[Xx("0x61")](t[Xx("0x16")],t[Xx("0x16")][Xx("0x8f")](1));if(!x[Xx("0x22")]((({data:t})=>t[Xx("0xaa")][Xx("0x4c")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x9f")](o[Xx("0xaa")])){e[Xx("0x7f")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x4f")][Xx("0x7c")]((e=>{let o=!1;const s=t[Xx("0x10")][Xx("0xf")](Xx("0x53")).me,r=n.getSuggestions().filter((t=>t[Xx("0x6b")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0xa9")])for(const e of t[Xx("0x83")]()){const n=e[Xx("0x79")]()[Xx("0x50")]();if(n)if(n.is(Xx("0xab"),Xx("0xa7"))&&Zx(n)){t[Xx("0x85")](e[Xx("0x19")]),i[Xx("0x0")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x76")],a=s&&s.is(Xx("0xab"),Xx("0xa7")),c=r&&r.is("element",Xx("0xa7"));a&&!i[Xx("0x91")](s)&&x[Xx("0x0")](s),c&&!i[Xx("0x91")](r)&&x[Xx("0x0")](r)}else n.is(Xx("0xab"),Xx("0x8"))&&n[Xx("0x94")]&&(t[Xx("0x85")](e[Xx("0x19")]),o=!0)}else if(Xx("0x7d")==t[Xx("0xa9")]){if(!t.attributes||!t[Xx("0x1d")][Xx("0x23")])continue;const e=t[Xx("0x1d")][Xx("0x2c")];if(e&&Object[Xx("0x14")](e)[Xx("0x74")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0xa9")][Xx("0x80")](Xx("0x40"))){if(!e[Xx("0x1d")][Xx("0x23")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x1d")][Xx("0x23")]==n){s=!1;break}}i&&s&&(t[Xx("0x9c")](),o=!0)}for(const t of i)e[Xx("0x3f")](t);for(const t of x)e.unwrap(t);return o})),t[Xx("0x52")].for(Xx("0xc"))[Xx("0x84")]({model:Xx("0xd"),view:(t,e)=>l(t),converterPriority:Xx("0x9a")}),t.conversion.for("dataDowncast")[Xx("0x84")]({model:Xx("0xd"),view:(t,e)=>e[Xx("0x49")][Xx("0x24")]?l(t,!1):null,converterPriority:Xx("0x9a")});const d=t[Xx("0x6e")][Xx("0x3")];this[Xx("0x7e")](d[Xx("0x4f")],Xx("0xe"),((t,e)=>{const n=[];for(const t of d[Xx("0x1f")](e[Xx("0x15")])[Xx("0x4a")]())t.is(Xx("0xab"),Xx("0x67"))&&n[Xx("0xa2")](t);d[Xx("0x13")]((t=>{for(const e of n)t[Xx("0x43")](t[Xx("0x1f")](e),t[Xx("0x2a")](e)),t.remove(e)}))}))}}function Zx(t){if(t[Xx("0x94")])return!0;const e=t[Xx("0xa0")](0);return e.is(Xx("0xab"),Xx("0x8"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x71")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["commandParams","getSuggestions","TableColumnResizeEditing","*Format:* resize table","editor","columnWidths","change","formatBlock","model","tableWidth","has","enableCommand","get","_suggestionFactory","document","TrackChangesEditing","bind","discard","markBlockFormat","_descriptionFactory","subType","selection","plugins","table","resizeTableWidth","formatGroupId","author","handleSuggestionDescription","getTableColumnsWidths","afterInit","accept","resizeColumnWidths","getColumnGroupElement","getContainedElement","registerCustomCallback","getSuggestionCallback","format","resizeTable","locale","handleResizeTableWidthCommand","registerDescriptionCallback","getSelectedElement"];var ea,na;ea=ta,na=233,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x6")](){if(!this[oa("0x17")][oa("0x29")][oa("0x1d")](oa("0x15")))return;const t=this.editor.plugins[oa("0x1f")](oa("0x22"));t[oa("0x1e")]("resizeTableWidth",this[oa("0x10")][oa("0x23")](this)),t.enableCommand(oa("0x8"),this[oa("0x10")].bind(this)),t[oa("0x20")].registerCustomCallback(oa("0x1a"),oa("0xe"),oa("0x7"),t[oa("0x20")][oa("0xc")](oa("0x1a"),null,"discard")),t._suggestionFactory[oa("0xb")](oa("0x1a"),"resizeTable",oa("0x24"),t[oa("0x20")].getSuggestionCallback(oa("0x1a"),null,"accept")),t[oa("0x26")][oa("0x11")](this[oa("0x4")].bind(this))}[oa("0x10")](t,e){const n=this[oa("0x17")][oa("0x29")].get(oa("0x22")),o=this.editor[oa("0x29")][oa("0x1f")](oa("0x15")),s=e[oa("0x0")]||this[oa("0x17")][oa("0x1b")][oa("0x21")][oa("0x28")][oa("0x12")]();this.editor[oa("0x1b")][oa("0x19")]((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x5")](r):null,x=s.getAttribute("tableWidth")||null;const a=e[oa("0x1c")]||x,c=e.columnWidths||i,l=this[oa("0x17")][oa("0x29")][oa("0x1f")]("Users").me;for(const t of n[oa("0x14")]()){const e=t[oa("0xa")]();if(oa("0xe")===t[oa("0x27")]&&e===s){t[oa("0x3")]!==l&&t[oa("0x24")]();const e=t.data[oa("0x13")];x=e[0][oa("0x1c")],i=e[0][oa("0x18")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x25")](s,{commandName:oa("0x1"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[oa("0x4")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x2")]){const t=oa("0x16");return{type:oa("0xd"),content:Yo(this[oa("0x17")][oa("0xf")],t)}}}}const ra=["get","enableCommand","afterInit","insertTemplate","editor","plugins"];var ia,xa;ia=ra,xa=229,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x1")](){const t=this[aa("0x3")];t[aa("0x4")].has("Template")&&t[aa("0x4")][aa("0x5")]("TrackChangesEditing")[aa("0x0")](aa("0x2"))}}const la=["insertTableOfContents","get","afterInit","tableOfContents","TrackChangesEditing","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","locale","plugins"];var da,ua;da=la,ua=365,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this.editor;if(!t.commands.get(ga("0x4")))return;t[ga("0x3")][ga("0x5")](ga("0x8")).enableCommand(ga("0x4"));const e=t[ga("0x3")][ga("0x5")](ga("0x8")),n=t[ga("0x2")];e._descriptionFactory[ga("0x0")](ga("0x7"),(t=>Yo(n,ga("0x1"),t)))}}const fa=["differ","forward","registerElementLabel","afterInit","isCollapsed","element","registerPostFixer","title-content","updateMarker","suggestion","locale","editor","document","isEqual","createRange","end","isTouching","removeMarker","model","has","ELEMENT_TITLE","start","get","newRange","nodeBefore"];var ha,pa;ha=fa,pa=217,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xb")](){const t=this[ba("0x13")];if(!t.plugins[ba("0x2")]("Title"))return;const e=t.plugins[ba("0x5")]("TrackChangesEditing");e._descriptionFactory[ba("0xa")](ba("0xf"),(()=>Yo(t[ba("0x12")],ba("0x3")))),t[ba("0x1")][ba("0x14")][ba("0xe")]((n=>{let o=!1;const s=Array.from(t[ba("0x1")].document[ba("0x8")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x11")!==s||!i[ba("0x6")])continue;const x=i[ba("0x6")],a=x[ba("0x17")][ba("0x7")];if(!a||!a.is(ba("0xd"),ba("0xf")))continue;if(!x[ba("0x4")][ba("0x18")](x[ba("0x17")]))continue;const c=t[ba("0x1")].schema.getNearestSelectionRange(x[ba("0x17")],ba("0x9"));if(c&&c[ba("0xc")]){const t=n[ba("0x16")](x[ba("0x4")],c[ba("0x4")]);t[ba("0x15")](x)||(n[ba("0x10")](r,{range:t}),o=!0)}o||(n[ba("0x0")](r),o=!0)}return o}))}}const _a=["get","redo","undo","afterInit","enableCommand","has","editor","plugins"];var Ta,Ca;Ta=_a,Ca=225,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x2")](){const t=this[ya("0x5")],e=t[ya("0x6")][ya("0x7")]("TrackChangesEditing");t[ya("0x6")][ya("0x4")]("UndoEditing")&&(e[ya("0x3")](ya("0x1")),e[ya("0x3")](ya("0x0")))}}const Aa=["TableCaptionEditing","afterInit","get","plugins","toggleTableCaption"];var va,Ra;va=Aa,Ra=114,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get requires(){return[wx]}[Sa("0x2")](){const t=this.editor;t[Sa("0x4")].has(Sa("0x1"))&&t[Sa("0x4")][Sa("0x3")]("TrackChangesEditing").enableCommand(Sa("0x0"))}}const La=["editor","type","bind","model","DocumentListUtils","selection","_getTranslationKeyForListStyle","has","*Format:* set start index to %0","plugins","_getSuggestionBlocks","DocumentListPropertiesEditing","getSelectedBlocks","length","document","expandListBlocksToCompleteList","listStyle","commandParams","isFirstBlockOfListItem","listStart","markMultiRangeBlockFormat","getListTypeFromListStyleType","listType","isListItemBlock","handleListReversedCommand","TrackChangesEditing","getAttribute","format","toUpperCase","handleDescriptions","locale","change","handleListStartCommand","listReversed","reversed","*Format:* set order to reversed","registerDescriptionCallback","_getSuggestionBlocksForListStyle","afterInit","enableCommand","numbered","push","replace","startIndex","get","config"];var Na,Ma;Na=La,Ma=335,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x19")](){if(!this[wa("0x21")][wa("0x2a")][wa("0x28")](wa("0x2c")))return;const t=this[wa("0x21")][wa("0x20")].get("list.properties"),e=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0xc"));t.styles&&e.enableCommand(wa("0x3"),this.handleListStyleCommand[wa("0x23")](this)),t[wa("0x15")]&&e[wa("0x1a")](wa("0x14"),this.handleListReversedCommand[wa("0x23")](this)),t.startIndex&&e.enableCommand(wa("0x6"),this.handleListStartCommand[wa("0x23")](this)),e._descriptionFactory[wa("0x17")](this[wa("0x10")].bind(this))}handleListStyleCommand(t,e={}){const n=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0xc")),o=this[wa("0x18")]();this[wa("0x21")][wa("0x24")][wa("0x12")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x3"),commandParams:[{type:e.type}],formatGroupId:wa("0x3")})}))}[wa("0xb")](t,e={}){const n=this[wa("0x21")][wa("0x2a")][wa("0x1f")]("TrackChangesEditing"),o=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25")),s=this[wa("0x2b")]((t=>o[wa("0xa")](t)&&"numbered"===t[wa("0xd")](wa("0x9"))));null!==s&&this[wa("0x21")].model[wa("0x12")]((()=>{n[wa("0x7")](s,{commandName:wa("0x14"),commandParams:[{reversed:e[wa("0x15")]}],formatGroupId:wa("0x14")})}))}[wa("0x13")](t,e={}){const n=this[wa("0x21")].plugins[wa("0x1f")](wa("0xc")),o=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25")),s=this[wa("0x2b")]((t=>o.isListItemBlock(t)&&wa("0x1b")===t[wa("0xd")](wa("0x9"))));null!==s&&this[wa("0x21")][wa("0x24")][wa("0x12")]((()=>{n[wa("0x7")](s,{commandName:wa("0x6"),commandParams:[{startIndex:e[wa("0x1e")]}],formatGroupId:wa("0x6")})}))}[wa("0x10")](t){const e=this[wa("0x21")][wa("0x11")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x3"):o="*Change to:* %0",s={type:wa("0xe"),content:Yo(e,o,Yo(e,this[wa("0x27")](n[wa("0x4")][0][wa("0x22")])))};break;case wa("0x14"):o=n[wa("0x4")][0][wa("0x15")]?wa("0x16"):"*Format:* set order to regular",s={type:wa("0xe"),content:Yo(e,o)};break;case wa("0x6"):o=wa("0x29"),s={type:"format",content:Yo(e,o,n.commandParams[0][wa("0x1e")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x21")][wa("0x2a")][wa("0x1f")](wa("0x25"));let e=Array.from(this.editor[wa("0x24")][wa("0x1")][wa("0x26")][wa("0x2d")]());return e[wa("0x1c")](...t[wa("0x2")](e)),e=[...new Set(e)],e}[wa("0x2b")](t){const e=this.editor[wa("0x2a")].get(wa("0x25"));let n=Array.from(this[wa("0x21")].model[wa("0x1")][wa("0x26")][wa("0x2d")]()).filter(t);if(!n[wa("0x0")])return null;n=e[wa("0x2")](n);const o=[];for(const t of n)e[wa("0x5")](t)&&o[wa("0x1c")](t);return o}[wa("0x27")](t){return"ELEMENT_"+this.editor[wa("0x2a")][wa("0x1f")]("DocumentListPropertiesUtils")[wa("0x8")](t).toUpperCase()+"_LIST_"+t[wa("0xf")]()[wa("0x1d")](/-/g,"_")}}const Fa=["_suggestionFactory","editor","removeAttribute","getSuggestionCallback","TrackChangesTableProperties","commandParams","tableHeight","_descriptionFactory","getAttribute","formatBlock","tableCellBackgroundColor","batch","tableWidth","nodeAfter","get","getFirstPosition","getContainedElement","_handlePropertyChange","TableUtils","getSelectionAffectedTableCells","tableBorderStyle","tableAlignment","data","accept","registerCustomCallback","tableCellBorderColor","model","tableBackgroundColor","plugins","_getSuggestion","*Format:* change table cell properties","tableBorderColor","tableCellBorderStyle","TrackChangesEditing","setAttribute","enqueueChange","enableCommand","table","tableCellProperties","tableCellWidth","locale","discard","change","tableProperties","has","*Format:* change table properties","findAncestor","pluginName","subType","tableCellVerticalAlignment","format","handleDiscardAction","TableCellPropertiesEditing","markBlockFormat","join","handleSuggestionDescription","selection"];var Pa,Da;Pa=Fa,Da=401,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x29")]=[Ba("0x1d"),Ba("0x12"),"tableBorderWidth",Ba("0x13"),Ba("0xa"),Ba("0x4"),Ba("0x19")],this.tableCellProperties=[Ba("0x17"),Ba("0x1e"),"tableCellBorderWidth","tableCellPadding",Ba("0x25"),"tableCellHeight",Ba("0x8"),"tableCellHorizontalAlignment",Ba("0x2f")]}static get[Ba("0x2d")](){return Ba("0x2")}afterInit(){const t=this[Ba("0x38")].plugins[Ba("0xc")](Ba("0x1f"));if(this[Ba("0x38")][Ba("0x1a")][Ba("0x2a")]("TablePropertiesEditing")){for(const e of this[Ba("0x29")])t[Ba("0x22")](e,((t,n)=>{const o=this[Ba("0x38")].model.document[Ba("0x36")][Ba("0xd")]()[Ba("0x2c")](Ba("0x23"));this._handlePropertyChange(e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x37")].registerCustomCallback("formatBlock","tableProperties","accept",t[Ba("0x37")].getSuggestionCallback(Ba("0x7"),null,Ba("0x27"))),t[Ba("0x37")][Ba("0x16")](Ba("0x7"),Ba("0x29"),"discard",((t,e)=>this[Ba("0x31")](this[Ba("0x29")],t,e))),t[Ba("0x37")].registerCustomCallback(Ba("0x7"),Ba("0x29"),Ba("0x34"),(()=>!1))}if(this[Ba("0x38")][Ba("0x1a")][Ba("0x2a")](Ba("0x32"))){for(const e of this[Ba("0x24")])t[Ba("0x22")](e,((t,n)=>{const o=this[Ba("0x38")][Ba("0x1a")].get(Ba("0x10"))[Ba("0x11")](this[Ba("0x38")].model.document[Ba("0x36")]);this[Ba("0xf")](e,o,this[Ba("0x24")],"tableCellProperties",t,n)}));t[Ba("0x37")][Ba("0x16")](Ba("0x7"),Ba("0x24"),Ba("0x15"),t[Ba("0x37")][Ba("0x1")]("formatBlock",null,Ba("0x27"))),t._suggestionFactory[Ba("0x16")](Ba("0x7"),"tableCellProperties",Ba("0x27"),((t,e)=>this[Ba("0x31")](this[Ba("0x24")],t,e))),t[Ba("0x37")].registerCustomCallback(Ba("0x7"),"tableCellProperties",Ba("0x34"),(()=>!1))}t[Ba("0x5")].registerDescriptionCallback((t=>this[Ba("0x35")](t)))}[Ba("0xf")](t,e,n,o,s,r){const i=this[Ba("0x38")].plugins[Ba("0xc")](Ba("0x1f"));this[Ba("0x38")][Ba("0x18")][Ba("0x21")](r[Ba("0x9")],(()=>{for(const t of e)if(this[Ba("0x1b")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x6")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x33")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0xb")],s=n[Ba("0x3")][0];this.editor[Ba("0x18")][Ba("0x28")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x20")](n,s[n],o):e[Ba("0x0")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x14")])switch(t[Ba("0x2e")]){case Ba("0x29"):return{type:Ba("0x30"),content:Yo(this[Ba("0x38")][Ba("0x26")],Ba("0x2b"))};case Ba("0x24"):return{type:Ba("0x30"),content:Yo(this[Ba("0x38")][Ba("0x26")],Ba("0x1c"))}}}[Ba("0x1b")](t,e){const n=this[Ba("0x38")][Ba("0x1a")].get(Ba("0x1f"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0xe")]();if(o[Ba("0x2e")]===e&&n===t)return o}return null}}const Ua=["addMarker:suggestion:formatBlock","selection","isInsideObject","subType","$textProxy","data-suggestion","addSuggestionData","acceptSuggestion","_addSuggestionMarker","delete","forward","data","length","getShiftedBy","filter","name","getMarkers","values","insertContent","containsPosition","suggestionChanged","plugins","_editor","always","dataToMarker","ck-suggestion-marker-formatBlock","_updateSuggestionData","skipNestingCheck","commandName","deletion","_registerDefaultCallbacks","creator","external:","getSuggestionCallback","_saved","_mergeNestedSuggestions","detach","listenTo","addClass","upcast","change:data","fire","schema","containsItem","define","_defaultCallbacks","hasComments","addSuggestion","$graveyard","isLimit","formatInline:join","_getAuthorFromId","discardSuggestion","conversion","createPositionAfter","removeClass","removeMarker","_customCallbacks","authoredAt","sort","Users","join","multi","enableReadOnlyMode","batch","isObject","commentThread","_suggestionState","markMultiRangeBlockFormat","every","_removeSuggestion","model","suggestion-type","type","deletion:","createdAt","addMarker","config","position","isOwn","_breakSuggestionMarker","writer","insertion:accept","value","_setSuggestionData","isAfter","_checkSuggestionCorrectness","formatBlock:","lowest","oldRange","accepted","addRange","setSelection","suggestion:","originalSuggestionId","addHighlight","accept","fetchCommentThread","ck-suggestion-marker","isRemovable","fromRange","commands","documentSelection","setTo","discardSelectedSuggestions","createRangeIn","newRange","_setSuggestionRange","isMultiRange","_addThreadToSuggestion","markDeletion","dataReady","item","elementEnd","@external","author","_enabledCommands","change:activeMarkers","splice","then","deletion:accept","markerReady","isBlock","_joinWithAdjacentSuggestions","forceDefaultExecution","getItems","toJSON","formatInline:chain","low","discard","differ","deletion:discard","nodeAfter","editingDowncast","insertion:","_createSuggestion","root","getChangedMarkers","_model","markerToHighlight","size","remove","editor","_cutOutSuggestionMarker","ck-suggestion-marker--active","collaboration.channelId","notReady","highest","getNearestSelectionRange","_adapter","formatBlock:join","registerCustomCallback","dataDowncast","markInlineFormat","registerPostFixer","removeMarkers","add","substr","fromCharCode","set","isAtEnd","_findSuggestions","trackChanges.mergeNestedSuggestions","has","createPositionAt","group","PENDING_ACTION_SUGGESTION","isExternal","insert","removed","track-changes-suggestion-not-found","targetPosition","suggestionLoaded","insertion:chain","getDifference","_refreshSuggestionsChain","updateMarker","isNextTo","suggestionUnloaded","getIntersection","moveTargetPosition","isUndo","parent","end","formatBlock:chain","_trackFormatChanges","push","_rangeIsInLocalUserInsertion","getFirstMarker","getChanges","consume","enqueueChange","update:suggestion","from","getSuggestion","refresh","getRanges","addComment","init","isEqual","removeMarker:suggestion:formatBlock","isTouching","mapper","_suggestionFactory","multipleBlocks","backward","addMarkerName","hasSuggestion","formatBlock","formatBlock:accept","consumable","howMany","insertion:discard","after","trackChanges.trackFormatChanges","never","track-changes-command-not-found","_getExternalAuthor","isIntersectingWithRange","isLocal","trackChanges","containerElement","getSuggestions","markers","document","rootName","enableCommand","chain","createSelection","catch","discardAllSuggestions","acceptAllSuggestions","formatInline:","execute","createRange","containsRangeInObject","map","rejected","stop","hasCommentThread","nodeBefore","get","_isForcedDefaultExecutionBlock","trackChangesCommand","range","_getSuggestionData","options","track-changes-suggestion-data-mismatch","_onDiscard","getRange","_splitMarkerName","clear","next","PendingActions","formatInline:discard","containsRange","insertion","return","high","marker-count","getAttribute","getMultiRangeId","change","isBefore","isInContent","_commentsRepository","split","track-changes-adapter-already-set","default","requires","TrackChangesEditing","createElement","start","element","isDocumentOperation","ck-suggestion-marker-","elementStart","getCommentThread","addUser","addMarker:suggestion","previous","CommentsRepository","ready","includes","getAllAdjacentSuggestions","formatInline:accept","getFirstRange","markerName","_suggestions","showSuggestionHighlights","getAncestors","updateSuggestion","attributes","acceptSelectedSuggestions","toViewElement","formatGroupId","isCollapsed","$marker","markMultiRangeInsertion","_joinSuggestions","formatInline","deletion:chain","track-changes-user-not-found","suggestion","some","for","authorName","activeMarkers","locale","getUser","removeAttribute","bindElementToMarker","change:_saved"];var Ga,Ha;Ga=Ua,Ha=174,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x5f")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return za("0x60")}constructor(t){function e(t){return t[za("0x3e")]((t=>String[za("0x129")](t)))[za("0xc8")]("")}super(t),this[za("0x12a")](za("0x85"),[]),this.on(za("0x100"),((e,n,o,s)=>{this[za("0x115")].change((()=>{for(const e of[...s,...o])this[za("0x115")].markers[za("0x12e")](e)&&t.editing.reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x119")][za("0xd2")][za("0xb5")],this[za("0x119")].locale),this[za("0x120")]=null,this[za("0x1d")]=new Va(this[za("0x119")]),this[za("0x72")]=new Map,this[za("0x5b")]=t.plugins[za("0x43")]("CommentsRepository"),this[za("0xff")]=new Set,this[za("0x115")]=this[za("0x119")][za("0xd2")],this[za("0xce")]=new WeakMap,this[za("0x44")]=!1,t.config[za("0xb7")](za("0x28"),za("0x5e")),this[za("0xb")]=t.config.get(za("0x28")),t[za("0xd8")][za("0xb7")](za("0x12d"),!0),this._mergeNestedSuggestions=t[za("0xd8")][za("0x43")](za("0x12d")),this[za("0x45")]=new u(t,this[za("0xff")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,53,48])}[za("0x18")](){const t=this[za("0x119")];t[za("0xc0")][za("0x83")](za("0x110")).markerToHighlight({model:za("0x81"),view:t=>{const{id:e,type:n}=this[za("0x4c")](t[za("0x71")]),o=["ck-suggestion-marker",za("0x65")+n];let s=3e3;return this.activeMarkers[za("0x6d")](t[za("0x71")])&&(o[za("0xc")](za("0x11b")),s=3010),za("0xa8")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion.for(za("0x123"))[za("0x127")]((e=>{e.on(za("0x69"),((e,n,o)=>{if(!o[za("0x48")].showSuggestionHighlights)return;const s=n.item;if(!s)return;const r=o.mapper[za("0x78")](s);t[za("0xd2")][za("0xb5")][za("0xcc")](s)&&r&&!r.getCustomProperty("widget")&&r.is(za("0x2f"))&&(0,x.toWidget)(r,o[za("0xdc")])}),{priority:za("0x54")})})),t[za("0xc0")][za("0x83")](za("0x123"))[za("0x116")]({model:za("0x81"),view:(t,e)=>{if(!e.options[za("0x73")])return null;const{type:n}=this._splitMarkerName(t[za("0x71")]);return{classes:["ck-suggestion-marker",za("0x65")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xfb")].is(za("0x8c")))return void s[za("0x24")][za("0x10")](o[za("0xfb")],n[za("0x9a")]);const r=s[za("0x1c")][za("0x78")](o.item);if(!o.item.is(za("0x63"))||!t.model.schema[za("0x105")](o.item)||r.getCustomProperty(za("0xea")))return;const{id:i}=this[za("0x4c")](o[za("0x71")]);s.writer.addClass([za("0xed"),za("0xa4")],r),s[za("0xdc")].setAttribute(za("0x90"),i,r),s[za("0x1c")][za("0x89")](r,o.markerName),e&&(this[za("0x85")][za("0x6d")](o[za("0x71")])?s[za("0xdc")][za("0xb1")](za("0x11b"),r):s[za("0xdc")][za("0xc2")](za("0x11b"),r));for(const e of t.model[za("0xf4")](o[za("0xfb")])[za("0x108")]())s[za("0x24")][za("0x10")](e,n[za("0x9a")]);s[za("0x24")][za("0x10")](o[za("0xfb")],n[za("0x9a")])};t[za("0xc0")].for("dataDowncast")[za("0x127")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o.options[za("0x73")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x11e")})})),t[za("0xc0")][za("0x83")](za("0x123")).markerToData({model:za("0x81"),view:(t,e)=>e[za("0x48")][za("0x73")]?null:{group:za("0x81"),name:t[za("0x128")](11)}}),t[za("0xc0")][za("0x83")](za("0xb2")).elementToElement({view:{name:za("0x81"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xe8")+t[za("0x56")](za("0xd3"))+":"+t[za("0x56")]("id");return t[za("0x56")](za("0x55"))&&(n+=":"+t.getAttribute(za("0x55"))),e[za("0x61")](za("0x7b"),{"data-name":n})}}),t[za("0xc0")][za("0x83")](za("0xb2"))[za("0xa3")]({view:"suggestion"}),t[za("0xc0")][za("0x83")](za("0x110"))[za("0x127")]((t=>{t.on(za("0x8b"),n(),{priority:"high"})})),t[za("0xc0")].for(za("0x110")).add((t=>{t.on(za("0x1a"),((t,e,n)=>{const o=n[za("0x1c")].markerNameToElements(e[za("0x71")]);if(o)for(const t of o)t.getCustomProperty(za("0xea"))||(n[za("0xdc")][za("0xc2")]([za("0xed"),za("0xa4"),za("0x11b")],t),n[za("0xdc")][za("0x88")](za("0x90"),t),n[za("0x1c")].unbindElementFromMarkerName(t,e[za("0x71")]))}),{priority:za("0x54")})})),t[za("0xd2")][za("0x32")].registerPostFixer((e=>{let n=!1;const o=Array.from(t[za("0xd2")][za("0x32")].differ[za("0x114")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x4c")](x);if(za("0x81")!==o)continue;const d=this._suggestions[za("0x43")](l);if(null!=a[za("0xf5")])if(za("0x7e")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xd2")][za("0xb5")])),a[za("0xf5")][za("0x7a")]||za("0xbb")==a[za("0xf5")].root[za("0x33")]||za("0x22")==c&&!Ja(a[za("0xf5")])||za("0xa8")==c&&(qa(i=a[za("0xf5")])||(r=i)[za("0x62")].parent==r.end[za("0x42")]&&r[za("0x62")][za("0x12b")]))e[za("0xc3")](x),n=!0;else{if(!d||!d[za("0x5a")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0xd2")][za("0x32")][za("0x125")]((e=>{let n=!1;for(const o of t[za("0xd2")][za("0x32")][za("0x10d")][za("0xf")]()){if(za("0x133")!=o[za("0xd4")])continue;const s=o.position[za("0x98")](o.length);if(s[za("0x12b")])for(const r of this[za("0x72")].values()){if(r.isMultiRange||!r.isInContent)continue;if(za("0x22")!=r[za("0xd4")])continue;const i=r[za("0x70")]();if(i[za("0x62")][za("0x8")]!=i.end[za("0x8")]&&i[za("0x9")][za("0x19")](o.position)){const o=t[za("0xd2")].createRange(i[za("0x62")],s);e[za("0x2")](r[za("0xe")](),{range:o}),n=!0}}}return n})),t[za("0xd2")][za("0x31")].on(za("0x12"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x4c")](e[za("0x9a")]),n=this._suggestions[za("0x43")](t);n&&n[za("0x20")](e.name)}})),t.model[za("0x32")].on(za("0xb3"),(()=>{const e=Array[za("0x13")](t[za("0xd2")].document[za("0x10d")][za("0x114")]())[za("0x99")]((t=>za("0x81")===this[za("0x4c")](t[za("0x9a")])[za("0x130")]));if(0===e[za("0x97")])return;e[za("0xc6")](((t,e)=>{const n=t[za("0x96")].oldRange,o=e[za("0x96")][za("0xe4")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x62")][za("0x59")](o[za("0x62")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0xe4")]){const e=this._handleNewSuggestionMarker(t);o[za("0x127")](e)}else{const t=this[za("0x72")][za("0x43")](e);null!==s[za("0xf5")]||t[za("0x5a")]?(n.add(t.head),o[za("0x127")](t)):this[za("0xd1")](t)}}o[za("0x117")]>0&&this[za("0x1")](o);for(const t of n)this[za("0xb4")](za("0x9f"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x72")][za("0x117")])return;if(!o[za("0x64")])return;if(o[za("0xcb")][za("0x7")]||!o[za("0xcb")][za("0x2d")])return;let s,r;switch(o[za("0xd4")]){case za("0x133"):s=t[za("0xd2")].createPositionAt(o[za("0xd9")]),r=s[za("0x98")](o[za("0x25")]);break;case za("0x5c"):s=t[za("0xd2")][za("0x12f")](o.splitPosition),r=t[za("0xd2")].createPositionAt(o[za("0x6")]);break;case"move":s=t.model.createPositionAt(o[za("0x136")]),r=s[za("0x98")](o.howMany);break;default:return}const i=t[za("0xd2")][za("0x3c")](s,r);t[za("0xd2")][za("0x58")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x12c")](i)){if(t[za("0xf7")])continue;if(za("0x7e")==t[za("0xd4")])continue;const n=t[za("0x96")]&&t[za("0x96")][za("0x1e")];(za("0x22")!=t[za("0xd4")]||za("0x5c")==o[za("0xd4")]&&!n)&&(e[za("0x3d")]||za("0x52")==t[za("0xd4")]&&e[za("0xda")]||t[za("0x70")]()[za("0x51")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xe3")}),t[za("0xd2")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x107")])return;if(this[za("0x44")])return;if(!this[za("0x45")].value)return;if(o[za("0x7a")])return;const r=t.model[za("0xb5")],{start:i,end:x}=o[za("0x70")](),a=i[za("0x10f")]&&r[za("0xbc")](i[za("0x10f")])?null:r.getNearestSelectionRange(i,za("0x95")),c=x[za("0x42")]&&r.isLimit(x[za("0x42")])?null:r[za("0x11f")](x,za("0x1f")),l=t.model[za("0x3c")](a?a[za("0x62")]:i,c?c.end:x);t[za("0xd2")][za("0x58")]((e=>{this.markDeletion(l);const n=t[za("0xd2")][za("0xb5")][za("0x11f")](l[za("0x62")]);o.is(za("0xf1"))?e[za("0xe7")](n):o[za("0xf2")](n)})),e[za("0x40")]()}),{priority:e.priorities.normal+10}),t[za("0xd2")].on(za("0x9d"),((e,n)=>{const o=n[n[za("0x97")]-1];o&&o[za("0x107")]||this[za("0x44")]||this[za("0x45")][za("0xde")]&&(t[za("0xd2")][za("0x58")]((()=>{let o=t[za("0xd2")][za("0x9d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x53")]=o.clone();const s=o[za("0x9")][za("0x42")],r=t[za("0xd2")][za("0xb5")];s&&r[za("0x105")](s)&&!r[za("0xcc")](s)&&(o=t[za("0xd2")].createRange(o[za("0x62")],t[za("0xd2")].createPositionAt(s,za("0x9")))),this.markInsertion(o)})),e[za("0x40")]())}),{priority:"high"}),this[za("0x119")].commands[za("0x127")](za("0x2e"),this[za("0x45")]),this.enableCommand(za("0x2e"));const o=new p(t,this._suggestions);t.commands[za("0x127")](za("0x92"),o),this[za("0x34")](za("0x92"));const s=new C(t,this[za("0x72")]);t[za("0xf0")][za("0x127")](za("0xbf"),s),this[za("0x34")]("discardSuggestion"),t[za("0xf0")][za("0x127")](za("0x39"),new F(t,o,this[za("0x72")])),this.enableCommand(za("0x39")),t.commands[za("0x127")](za("0x38"),new F(t,s,this[za("0x72")])),this[za("0x34")]("discardAllSuggestions"),t[za("0xf0")].add(za("0x77"),new U(t,o,this[za("0x72")])),this[za("0x34")](za("0x77")),t[za("0xf0")].add("discardSelectedSuggestions",new U(t,s,this[za("0x72")])),this.enableCommand(za("0xf3"));const r=t[za("0xa0")][za("0x43")](za("0x6b"));this[za("0xb0")](r,za("0x17"),((t,{threadId:e})=>{const n=this[za("0x72")][za("0x43")](e);n&&n[za("0xcd")]&&1===n[za("0xcd")][za("0x97")]&&this[za("0xa5")](e,{hasComments:!0})}),{priority:za("0x10b")}),this[za("0xb0")](r,"removeComment",((t,{threadId:e})=>{const n=this[za("0x72")][za("0x43")](e);n&&n[za("0xcd")]&&!n[za("0xcd")].length&&this[za("0xa5")](e,{hasComments:!1})}),{priority:za("0x10b")})}set adapter(t){if(this[za("0x120")])throw new e.CKEditorError(za("0x5d"),this);this[za("0x120")]=t}get adapter(){return this._adapter}[za("0x30")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x72")][za("0x9c")]())t&&!e[za("0x5a")]||n[za("0xc")](e);return e?n.map((t=>t[za("0x109")]())):n}[za("0x14")](t){const n=this[za("0x72")].get(t);if(!n)throw new e.CKEditorError(za("0x135"),this);return n}[za("0x21")](t){return this[za("0x72")].has(t)}[za("0x91")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xd4")][za("0x5c")](":"),i=this._suggestions.get(n)||this[za("0x112")](s,r,n,e,o);if(this[za("0xf8")](i),this[za("0xe1")](i,s,r||null,e),i[za("0xd6")]=t[za("0xd6")],o&&o[za("0xfd")]){const t=o[za("0xfd")],e=this[za("0x2b")](t[za("0x84")]);i[za("0xc5")]=t[za("0xd6")],i[za("0xfe")]=e,i[za("0x132")]=!0}else i[za("0xc5")]=t[za("0xd6")];switch(t[za("0x96")]&&(i.data=t.data),t[za("0x76")]&&(i[za("0x76")]=t[za("0x76")]),this[za("0x120")]&&this[za("0x120")][za("0xba")]||(i[za("0xad")]=!0),this[za("0xce")][za("0x43")](i)){case za("0x11d"):this[za("0xce")][za("0x12a")](i,"dataReady");break;case za("0x104"):i[za("0x5a")]?(this[za("0xce")][za("0x12a")](i,za("0x6c")),this[za("0xb4")]("suggestionLoaded",i)):this._suggestionState.set(i,za("0x134"))}return i}[za("0x92")](t){this[za("0x107")]((()=>{this.editor[za("0xd2")][za("0x58")]((()=>{for(const e of t[za("0x6e")]())e.accept()}))}))}[za("0xbf")](t){this.forceDefaultExecution((()=>{this[za("0x119")][za("0xd2")][za("0x58")]((()=>{for(const e of t[za("0x6e")]())e.discard()}))}))}[za("0x34")](t,n){const o=this.editor[za("0xf0")][za("0x43")](t);if(!o)throw new e.CKEditorError(za("0x2a"),this,{commandName:t});this[za("0xff")].add(o),n&&o.on(za("0x3b"),((t,e)=>{this.trackChangesCommand[za("0xde")]&&(this[za("0x44")]||e.length>0&&e[e[za("0x97")]-1]&&e[e[za("0x97")]-1].forceDefaultExecution||(n(((...t)=>o[za("0x3b")](...t,{forceDefaultExecution:!0})),...e),t[za("0x40")]()))}),{priority:za("0x54")})}[za("0x107")](t){let n,o;const s=this[za("0x44")];this[za("0x44")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x7a")])return null;const s=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me;for(const{suggestion:e,meta:o}of this[za("0x12c")](t,za("0x52")))if(o[za("0xda")]){if(!o.isNextTo){if(!this[za("0xae")]&&o[za("0x3d")])continue;return e}if(n==e.subType){const n=e[za("0x70")]();return n.start.isEqual(t[za("0x9")])?this._setSuggestionRange(e,this[za("0x115")][za("0x3c")](t[za("0x62")],n[za("0x9")])):this[za("0xf6")](e,this._model[za("0x3c")](n[za("0x62")],t[za("0x9")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x111")+n:"insertion",a=this[za("0xdf")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x93")](x,r,i,t),a}[za("0x7c")](t,n="multi",o={}){const s=this.editor[za("0xa0")][za("0x43")](za("0xc7")).me,r=this._suggestionFactory[za("0xac")](za("0x52"),n,za("0xc8"));for(const e of this[za("0x30")]())if(e[za("0xfe")].id==s.id&&za("0x52")==e[za("0xd4")]&&e[za("0x8e")]==n&&(r(e[za("0x16")](),t)||r(t,e[za("0x16")]()))){for(const n of t)e[za("0xe6")](n);return e}if(this[za("0xae")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x12c")](e,za("0x52"))){if(!o[za("0xda")])continue;let e=!0;for(const o of n[za("0x16")]())for(const n of t)if(!o[za("0x51")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x111")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x93")](a,i,x,e,Zo[za("0x57")]());return c}[za("0x124")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x7a")])return null;if(za("0x29")===this[za("0xb")]){const e=this[za("0x1d")][za("0xac")](za("0x7e"),o,za("0xeb"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me,i=[];if(za("0xa2")!==this[za("0xb")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x52")))n[za("0xda")]&&!n.isInsideObject&&i[za("0xc")](...e[za("0x16")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[za("0xc")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x97")];){const o=n[e][za("0x0")](t);n[za("0x101")](e,1,...o),e+=o[za("0x97")]}}return n}(t,i);x[za("0x97")]&&this[za("0x115")][za("0x58")]((()=>{for(const t of x){const e=this[za("0x1d")][za("0xac")](za("0x7e"),o,za("0xeb"));this[za("0x107")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x9")];for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0x7e"))){if(!n[za("0xda")])continue;if(e[za("0x8e")]!=o)continue;const s=e[za("0x70")]();if(s[za("0x51")](t,!0))return null;x=x[za("0x59")](s[za("0x62")])?x:s[za("0x62")],a=a[za("0xe0")](s[za("0x9")])?a:s.end,i?s[za("0x62")].isBefore(i.getFirstRange()[za("0x62")])?(i.removeMarkers(),i=e):e[za("0x126")]():i=e}const c=this[za("0x115")][za("0x3c")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x3a")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x93")](za("0x3a")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0xa7")]),n[za("0x1e")]=t.is("range"),s=s||$a(n);const i=o[za("0x3e")]((t=>Qa(t,this[za("0x115")]))),x=t.is("range")?t:Qa(t,this[za("0x115")]);if(za("0x29")===this[za("0xb")]){const t=this[za("0x1d")][za("0xac")](za("0x22"),s,"accept");return this[za("0x107")]((()=>t([x],n,r))),null}i[za("0xc")](x);let a=!0;for(const t of i)if(!this[za("0xd")](t)){a=!1;break}if(a&&za("0xa2")!==this[za("0xb")]){const t=this[za("0x1d")][za("0xac")]("formatBlock",s,za("0xeb"));return this[za("0x107")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x62")],d=x[za("0x9")];for(const{suggestion:t,meta:e}of this[za("0x12c")](x,"formatBlock")){if(!e[za("0xda")]||e[za("0x3")]||e[za("0x3d")]||e[za("0x8d")])continue;if(t[za("0x96")][za("0x79")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t.subType==s){if(o[za("0x51")](x,!0))return null;l=l[za("0x59")](o[za("0x62")])?l:o[za("0x62")],d=d[za("0xe0")](o[za("0x9")])?d:o.end,c?o.start[za("0x59")](c[za("0x70")]()[za("0x62")])?(c[za("0x126")](),c=t):t[za("0x126")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor[za("0xa0")][za("0x43")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x115")][za("0x3c")](l,d)),c;{const t=this._setSuggestionData({id:g,type:za("0xe2")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0xe2")+s,g,m,this[za("0x115")][za("0x3c")](l,d)),t}}[za("0xcf")](t,n,o=[],s=null,r={}){n[za("0x79")]||(n[za("0x79")]=n[za("0xa7")]);const i=t[0];n.multipleBlocks=i.is(za("0x46")),s=s||$a(n);const x=o[za("0x3e")]((t=>Qa(t,this[za("0x115")]))),a=i.is(za("0x46"))?t:t[za("0x3e")]((t=>Qa(t,this[za("0x115")])));if(za("0x29")===this[za("0xb")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x22"),s,za("0xeb"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0xc")](...a);let c=!0;for(const t of x)if(!this[za("0xd")](t)){c=!1;break}if(c&&za("0xa2")!==this._trackFormatChanges){const t=this[za("0x1d")][za("0xac")]("formatBlock",s,za("0xeb"));return this[za("0x107")]((()=>t(a,n,r))),null}const l=this.editor.plugins[za("0x43")](za("0xc7")).me;for(const t of this.getSuggestions()){if(t[za("0xfe")].id!=l.id)continue;if("formatBlock"!=t[za("0xd4")]||t[za("0x96")][za("0x79")]!=n[za("0x79")])continue;const e=t[za("0x8e")]==s;for(let n=0;n<a[za("0x97")];n++){const o=a[n];for(const s of t[za("0x9b")]()){const r=s[za("0x4b")]();if(o.isEqual(r)){e?(a.splice(n,1),n--):t.removeMarker(s[za("0x9a")]);break}}}}if(0==a[za("0x97")])return null;const d=this[za("0x1d")][za("0xac")]("formatBlock",s,"join");for(const t of this[za("0x30")]())if(t[za("0xfe")].id==l.id&&za("0x22")==t[za("0xd4")]&&t[za("0x96")][za("0x79")]==n[za("0x79")]&&t[za("0x8e")]==s&&(d(t[za("0x16")](),a)||d(a,t[za("0x16")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xe2")+s,f=this[za("0xdf")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x93")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0xf9")](t,n=null,o={}){if(t[za("0x7a")])return null;const s=this[za("0x119")].plugins[za("0x43")]("Users").me,r=new i.LiveRange(t.start,t[za("0x9")]);for(const{suggestion:t,meta:e}of this[za("0x12c")](r,za("0x52")))if(e[za("0xda")]&&!e[za("0x3")])if(t[za("0xf7")]){const e=t[za("0x16")]()[za("0x99")]((t=>za("0xbb")!=t.root.rootName));if(e[za("0xd0")]((t=>r[za("0x51")](t,!0)))&&t[za("0x10c")](),e[za("0x82")]((t=>t[za("0x51")](r,!0)))){const t=this[za("0x1d")][za("0xac")](za("0xa8"),n,za("0xeb"));return this[za("0x107")]((()=>t([r],null,o))),null}}else{const e=r[za("0x5")](t[za("0x70")]());null!==e&&t[za("0x4a")]([e],null,o)}if(r[za("0xaf")](),r.isCollapsed||"$graveyard"==r[za("0x113")][za("0x33")])return null;let x=null,a=r[za("0x62")],c=r[za("0x9")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xa8")))if(e[za("0xda")])if(t.isMultiRange&&this[za("0xae")]){let e=!0;for(const n of t.getRanges()){if(n[za("0x51")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x10c")]()}else{const n=t[za("0x70")]();if(n[za("0x51")](r,!0)){if(!this[za("0xae")]&&e[za("0x3d")])continue;return t}a=a[za("0x59")](n[za("0x62")])?a:n[za("0x62")],c=c[za("0xe0")](n[za("0x9")])?c:n.end,x?n[za("0x62")].isBefore(x[za("0x70")]().start)?(x[za("0x126")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[za("0x115")][za("0x3c")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x115")][za("0x3c")](a,c),i=s.id,x=n?za("0xd5")+n:za("0xa8"),l=this[za("0xdf")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x93")](x,t,i,r),l}}markMultiRangeDeletion(t,n=za("0xc9"),o={}){const s=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")).me,r=t[za("0x3e")]((t=>new i.LiveRange(t.start,t[za("0x9")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0x52")))n.isOwn&&!n[za("0x3")]&&x[za("0x127")](e);for(const e of x)if(e[za("0xf7")]){const s=e[za("0x16")]();if((!e[za("0x76")]||!e.attributes.skipNestingCheck)&&s[za("0xd0")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0x10c")](),r[za("0xd0")]((t=>s.some((e=>e[za("0x51")](t,!0)))))){const e=this._suggestionFactory[za("0xac")](za("0xa8"),n,za("0xeb"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x70")]();if(r.some((e=>e[za("0x51")](t,!0)))&&e[za("0x10c")](),r[za("0xd0")]((e=>t[za("0x51")](e,!0)))){const t=this[za("0x1d")][za("0xac")](za("0xa8"),n,za("0xeb"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x1d")][za("0xac")]("deletion",n,"join");let c=null;for(const t of this[za("0x30")]())if(t[za("0xfe")].id==s.id&&t.isInContent&&za("0xa8")==t.type&&t[za("0x8e")]==n&&(a(t.getRanges(),r)||a(r,t[za("0x16")]())))if(c){if(t[za("0xcd")]&&t[za("0xcd")][za("0x97")])continue;for(const e of t[za("0x16")]())c[za("0x2c")](e)||c[za("0xe6")](e);t[za("0x126")]()}else{c=t;for(const e of r)t[za("0x2c")](e)||t[za("0xe6")](e)}if(c)return c;x[za("0x4d")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x12c")](t,za("0xa8")))n[za("0xda")]&&x[za("0x127")](e);for(const t of x){const e=t[za("0x16")]();if((!o||!o[za("0xa6")])&&r[za("0xd0")]((t=>e[za("0x82")]((e=>e[za("0x51")](t,!0))))))return t;(!t[za("0x76")]||!t[za("0x76")].skipNestingCheck)&&e.every((t=>r[za("0x82")]((e=>e[za("0x51")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0xdf")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xaf")](),t[za("0x7a")]||"$graveyard"==t[za("0x113")][za("0x33")]||this[za("0x93")](u,l,d,t,Zo[za("0x57")]());return g}[za("0xf6")](t,e){const n=t[za("0xe")]();this[za("0x115")][za("0x58")]((t=>{t[za("0x2")](n,{range:e})}))}[za("0xf8")](t){const e=t.id,n=this[za("0x119")].config[za("0x43")](za("0x11c"));this[za("0x5b")][za("0x41")](e)||this[za("0x5b")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x5b")][za("0x67")](e);o.unbind(za("0xee")),o[za("0xee")]=!1,t[za("0xcd")]=o}[za("0xe1")](t,n,o,s){if(t.type!=n||t[za("0x8e")]!=o||t[za("0xaa")].id!=s)throw this.editor[za("0xca")](za("0x49")),new e.CKEditorError(za("0x49"),this)}[za("0x11a")](t,n){const o=t[za("0x70")]();if(n[za("0x19")](o))t.removeMarkers();else if(o[za("0x51")](n)){const s=this._model[za("0x12f")](n[za("0x62")][za("0x42")],"end");this[za("0xf6")](t,this[za("0x115")].createRange(o.start,s));const r=(0,e.uid)(),i=t[za("0xaa")].id,x=t[za("0xd4")]+":"+t[za("0x8e")];this[za("0xdf")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x96")],attributes:t[za("0x76")]});const a=this[za("0x115")].createPositionAt(n.end[za("0x8")],za("0x27")),c=this[za("0x115")][za("0x3c")](a,o.end);this[za("0x93")](x,r,i,c)}else if(o[za("0x9e")](n[za("0x62")])){const e=this[za("0x115")][za("0x12f")](n[za("0x62")][za("0x42")],"end");this[za("0xf6")](t,this._model.createRange(o[za("0x62")],e))}else{const e=this[za("0x115")].createPositionAt(n.end.parent,za("0x27"));this._setSuggestionRange(t,this[za("0x115")].createRange(e,o[za("0x9")]))}}[za("0xd")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[za("0xda")])continue;const o=e[za("0x16")]();for(const e of o)if(!t.getDifference(e)[za("0x97")])return!0}return!1}[za("0xbe")](t){const n=this[za("0x119")].plugins.get(za("0xc7"))[za("0x87")](t);if(!n)throw new e.CKEditorError(za("0x80"),this);return n}[za("0x2b")](t){const e=this[za("0x119")][za("0xa0")][za("0x43")](za("0xc7")),n=(0,r.hashObject)(za("0xab")+t);return e[za("0x87")](n)||e[za("0x68")]({id:n,name:t})}[za("0x112")](t,e,n,o,s){const r=this[za("0xbe")](o),i=this[za("0x1d")].buildSuggestion(t,e,n,r,s,(t=>this[za("0xa5")](n,{attributes:t})));return this.listenTo(i,za("0xeb"),(()=>{this._updateSuggestionData(n,{state:za("0xe5")})}),{priority:za("0x54")}),this[za("0xb0")](i,"discard",(()=>{this[za("0xa5")](n,{state:za("0x3f")})}),{priority:za("0x54")}),this[za("0x72")][za("0x12a")](n,i),this._suggestionState.set(i,za("0x11d")),i}[za("0x4c")](t){const e=t[za("0x5c")](":");return{group:e[0],type:e[1],subType:e[za("0x97")]>=5?e[2]:null,id:e[za("0x97")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x97")]?e[5]:null}}[za("0xdb")](t,n,o){const s=t[za("0x70")](),r=s[za("0x62")],i=s[za("0x9")];this[za("0xf6")](t,this[za("0x115")][za("0x3c")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0xd4")]+(t[za("0x8e")]?":"+t.subType:"");this[za("0xdf")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x76")],data:t[za("0x96")]}),za("0x22")==t[za("0xd4")]&&(o=this[za("0x115")].createPositionBefore(o[za("0x8")])),this[za("0x93")](c,x,a,this[za("0x115")][za("0x3c")](o,i))}[za("0x12c")](t,e=null){const n=[],o=this[za("0x115")][za("0xb5")],s=this.editor[za("0xa0")][za("0x43")](za("0xc7")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0xd4")]==e))for(const e of r[za("0x16")]()){const i=t.start[za("0x19")](e[za("0x9")])||t[za("0x9")].isEqual(e.start);if(i||t[za("0x5")](e)){const x=t[za("0x51")](e)&&Ka(o,e[za("0x62")],t),a=e[za("0x51")](t)&&Ka(o,t.start,e);n[za("0xc")]({suggestion:r,meta:{isOwn:s==r[za("0xfe")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this._model[za("0x58")]((r=>{let i=za("0xe8")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xd7")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xd1")](t){const e=t[za("0x6a")],n=t[za("0x4e")];t[za("0x6a")]=null,null!=e&&(e[za("0x4e")]=null),t.next=null,null!=n&&(n[za("0x6a")]=null),"ready"==this[za("0xce")].get(t)&&(this[za("0xce")][za("0x12a")](t,za("0x134")),this[za("0xb4")](za("0x4"),t,e,n))}[za("0xdf")](t){const n=t.id,o=this[za("0x91")](t);if(this._adapter&&this[za("0x120")][za("0xba")]){const s=this[za("0x119")].plugins[za("0x43")](za("0x4f")),r=o.hasComments,i=o[za("0x8e")]?o[za("0xd4")]+":"+o[za("0x8e")]:o.type,x=this[za("0x119")][za("0x86")],a=s[za("0x127")](Yo(x,za("0x131"))),c={id:n,type:i,hasComments:r,data:t[za("0x96")]||null,originalSuggestionId:t[za("0xe9")]||null,attributes:o.attributes};this[za("0x120")][za("0xba")](c).then((t=>{o._saved=!0,s[za("0x118")](a),t&&t[za("0xd6")]&&(this[za("0x72")][za("0x43")](n)[za("0xd6")]=t.createdAt)}))[za("0x37")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0x119")].model[za("0x11")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[za("0x72")][za("0x94")](o.id),this[za("0xce")][za("0x94")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor.plugins.get(za("0x4f")),o=this[za("0x14")](t);if(this[za("0x120")]&&this[za("0x120")][za("0x75")])if(o[za("0xad")]){const o=n[za("0x127")](Yo(this[za("0x119")].locale,za("0x131")));this[za("0x120")].updateSuggestion(t,e)[za("0x102")]((()=>{n[za("0x118")](o)}))}else o.on(za("0x8a"),(()=>{this[za("0xa5")](t,e)}))}[za("0x47")](t){if(!this[za("0x120")]||!this[za("0x120")][za("0x14")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[za("0x120")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x4c")](t),r=this[za("0x72")][za("0x43")](e)||this[za("0x112")](n,o,e,s,{});switch(this[za("0xe1")](r,n,o,s),this[za("0xce")][za("0x43")](r)){case"notReady":this[za("0x47")](e).then((t=>{let n=Promise.resolve();t[za("0xb9")]&&(n=this[za("0x5b")][za("0xec")]({channelId:this.editor[za("0xd8")][za("0x43")]("collaboration.channelId"),threadId:e})),n.then((()=>{this.addSuggestionData(t)[za("0xad")]=!0}))})),this._suggestionState[za("0x12a")](r,za("0x104"));break;case za("0x134"):this[za("0xa5")](e,{state:"open"});case za("0xfa"):this[za("0xce")][za("0x12a")](r,za("0x6c")),this[za("0xb4")](za("0x137"),r);break;case za("0x6c"):this.fire(za("0x9f"),r)}return r[za("0x20")](t),r}_refreshSuggestionsChain(t){const e=Array[za("0x13")](t)[za("0x99")]((t=>!t[za("0xf7")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[za("0xf7")])),o=n[za("0x99")]((e=>!t[za("0x12e")](e))),s=new Map(n[za("0x3e")]((t=>[t,this[za("0x1d")][za("0xac")](t.type,t.subType,za("0x35"))]))),r=new Map(n[za("0x3e")]((t=>[t,t[za("0x70")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x97")];t++){const n=e[t];!x.has(n)&&n[za("0x6a")]&&(n[za("0x6a")][za("0x4e")]===n&&(n.previous[za("0x4e")]=null),n.previous=null),!i[za("0x12e")](n)&&n[za("0x4e")]&&(n[za("0x4e")].previous===n&&(n[za("0x4e")][za("0x6a")]=null),n[za("0x4e")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x4e")]=n[1],n[1].previous=n[0],i[za("0x127")](n[0]),x[za("0x127")](n[1]))}}function c(t,e){if(t[za("0xfe")].id!==e[za("0xfe")].id)return null;const n=s.get(t)(t,e,r.get(t),r[za("0x43")](e));return n&&s[za("0x43")](e)(t,e,r.get(t),r[za("0x43")](e))?n[1][za("0xcd")]&&n[1][za("0xcd")][za("0x97")]?null:n:null}}[za("0x106")](t){const e=Array.from(t),n=this[za("0x30")]({skipNotAttached:!0}),o=n.filter((e=>!t[za("0x12e")](e))),s=new Map(e[za("0x3e")]((t=>[t,this[za("0x1d")].getSuggestionCallback(t[za("0xd4")],t[za("0x8e")],za("0xc8"))]))),r=new Map(n[za("0x3e")]((t=>[t,t[za("0x16")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x97")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x97")];i++){const o=n[i];if(o[za("0xd4")]!==e[za("0xd4")]||o[za("0xfe")].id!==e.author.id||o.subType!==e[za("0x8e")])continue;const x=s.get(e),a=r[za("0x43")](e),c=r.get(o),l=e[za("0xcd")]&&e[za("0xcd")].length,d=o.commentThread&&o[za("0xcd")][za("0x97")];if(!l&&x(c,a))return t[za("0x7d")](o,e),r[za("0x94")](e),!0;if(!d&&x(a,c))return t[za("0x7d")](e,o),r[za("0x94")](o),!0}return!1}}[za("0x7d")](t,e){if(t[za("0xf7")])for(const n of e.getRanges())t.addRange(n);else{const n=e.getFirstRange()[za("0x9")];this[za("0xf6")](t,this._model.createRange(t.getFirstRange().start,n))}e[za("0x126")]()}}class Va{constructor(t){this[za("0xa1")]=t,this._model=t.model,this[za("0xc4")]=new Map,this._defaultCallbacks=new Map,this[za("0xa9")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xac")](t,e,za("0xeb"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0x10c"))(...n)})}[za("0x122")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xc4")][za("0x12a")](s,o)}[za("0xac")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xc4")].get(o)||this._defaultCallbacks[za("0x43")](t+":"+n)}[za("0xa9")](){const t=()=>{},e=t=>{t[za("0xc6")](((t,e)=>t[za("0x62")].isBefore(e[za("0x62")])?1:-1)),this[za("0x115")][za("0x58")]((e=>{for(const n of t){let t;t=n[za("0x9")][za("0x12b")]&&n.end[za("0x8")]==n[za("0x62")][za("0x10f")]?e.createSelection(n[za("0x62")][za("0x10f")],"on"):e[za("0x36")](n),this[za("0x115")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model.change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x3e")]((t=>(qa(t)&&(t=this[za("0x115")].createRange(t[za("0x9")])),t)))[za("0x99")]((t=>za("0xbb")!==t[za("0x113")][za("0x33")]));if(r[za("0x97")]<1)return;const x=Array[za("0x13")](this[za("0x115")][za("0x32")][za("0x8c")][za("0x16")]())[za("0x3e")]((t=>i.LiveRange[za("0xef")](t)));n[za("0xe7")](r);for(const t of this[za("0xa1")][za("0xf0")][za("0xf0")]())t[za("0x15")]();s[za("0xc")]({forceDefaultExecution:!0}),this._editor[za("0x3b")](o,...s);const a=x.filter((t=>za("0xbb")!=t[za("0x113")].rootName));a[za("0x97")]>0&&n.setSelection(a);for(const t of x)t[za("0xaf")]()}))},o=(t,e)=>1==t[za("0x97")]&&1==e[za("0x97")]&&t[0][za("0x9")][za("0x19")](e[0][za("0x62")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x115")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks.set(za("0xdd"),t),this[za("0xb8")][za("0x12a")](za("0x26"),e),this[za("0xb8")][za("0x12a")]("insertion:join",o),this[za("0xb8")].set(za("0x138"),s),this._defaultCallbacks.set(za("0x103"),e),this[za("0xb8")][za("0x12a")](za("0x10e"),t),this[za("0xb8")][za("0x12a")]("deletion:join",o),this._defaultCallbacks.set(za("0x7f"),s),this._defaultCallbacks[za("0x12a")](za("0x6f"),n),this[za("0xb8")][za("0x12a")](za("0x50"),t),this[za("0xb8")][za("0x12a")](za("0xbd"),o),this[za("0xb8")][za("0x12a")](za("0x10a"),t),this[za("0xb8")][za("0x12a")](za("0x23"),n),this[za("0xb8")][za("0x12a")]("formatBlock:discard",t),this._defaultCallbacks[za("0x12a")](za("0x121"),o),this[za("0xb8")][za("0x12a")](za("0xa"),t)}}function Ka(t,e,n){for(const o of e.parent[za("0x74")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x113")]==o)return!1;if(!n[za("0xb6")](o))return!1;if(t[za("0xcc")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x9")][za("0x8")]==t[za("0x62")][za("0x10f")]&&t[za("0x9")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0xfb")].is(za("0x8f"))&&!o.isObject(t[za("0xfb")]),r=t.start.getLastMatchingPosition(s),i=t.end.getLastMatchingPosition(s,{direction:za("0x1f")});return!(t.start[za("0x19")](r)&&t[za("0x9")][za("0x19")](i)||(r[za("0x59")](i)?n[za("0x2")](e,{range:n[za("0x3c")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x62")][za("0x10f")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0xb5")][za("0xcc")](t)||e[za("0xb5")].isSelectable(t);return e.createRange(e[za("0x12f")](t,"before"),n?e[za("0xc1")](t):e.createPositionAt(t,za("0x9")))}function Za(t,e,n,o,s){if(n.end[za("0x19")](o[za("0x62")]))return!0;if(t[za("0xd4")]!=e[za("0xd4")])return!1;if(!n[za("0x9")][za("0x1b")](o[za("0x62")]))return!1;const r=s[za("0x3c")](n[za("0x9")],o[za("0x62")]).getWalker();for(const t of r)if([za("0x66"),za("0xfc")][za("0x6d")](t[za("0xd4")])&&s.schema.isLimit(t[za("0xfb")]))return!1;return!0}const Ya=["locale","canDiscard","destroy","_setPendingAction","remove","PendingActions","isDirty","PENDING_ACTION_SUGGESTION","commands","get","change:isDirty","_editor","plugins","add","canEditAt","isEnabled","view","commentThreadController","execute","model","unbind","listenTo","_removePendingAction","bind","_pendingAction","discardSuggestion","getRanges","_discardCommand","canAccept","acceptSuggestion","_acceptCommand"];var tc,ec;tc=Ya,ec=479,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x5")]=e,this[nc("0x2")]=n,this[nc("0x3")]=o,this[nc("0x1c")]=t,this._acceptCommand=t[nc("0x19")][nc("0x1a")](nc("0xf")),this[nc("0xd")]=t[nc("0x19")][nc("0x1a")](nc("0xb")),this.view[nc("0x9")](nc("0x1")).to(this._acceptCommand,this[nc("0xd")],((t,e)=>t||e)),this[nc("0x2")][nc("0x9")](nc("0xe")).to(this[nc("0x10")],nc("0x1"),(t=>t&&this[nc("0x1c")][nc("0x5")][nc("0x0")](e[nc("0xc")]()))),this[nc("0x2")][nc("0x9")]("canDiscard").to(this._discardCommand,nc("0x1"),(t=>t&&this._editor.model[nc("0x0")](e.getRanges()))),this[nc("0xa")]=null,n[nc("0x17")]&&this[nc("0x14")](),this[nc("0x7")](n,nc("0xf"),(()=>this[nc("0xf")]())),this[nc("0x7")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,nc("0x1b"),(()=>{n.isDirty?this[nc("0x14")]():this._removePendingAction()}))}[nc("0xf")](){this[nc("0x10")][nc("0x4")](this.model.id)}[nc("0xb")](){this[nc("0xd")][nc("0x4")](this[nc("0x5")].id)}[nc("0x13")](){this[nc("0x2")][nc("0x6")](nc("0x1")),this.view[nc("0x6")](nc("0xe")),this[nc("0x2")].unbind(nc("0x12")),this.stopListening(),this.commentThreadController[nc("0x13")](),this[nc("0xa")]&&this[nc("0x8")]()}_setPendingAction(){const t=Yo(this[nc("0x1c")][nc("0x11")],nc("0x18"));this._pendingAction=this[nc("0x1c")][nc("0x1d")][nc("0x1a")](nc("0x16"))[nc("0x1e")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[nc("0x1d")][nc("0x1a")](nc("0x16"))[nc("0x15")](this[nc("0xa")]),this[nc("0xa")]=null}}const sc=["_model","submit","_createCommentViews","CommentView","value","focus","editorConfig","_config","cancel","commentInputView","bind","commentThread","commentThreadInputView","disableComments","disabledSubmit","authoredAt","length","isReadOnly","destroy","updateComment","setData","set","commentsListView","editor","removeComment","_localUser","isEnabled","isActive","hasDirtyComment","_createCommentThreadInputView","isDirty","delegate","locale","addComment","element"];var rc,ic;rc=sc,ic=251,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x10")]=null,this[xc("0x6")]=null,this[xc("0xf")](xc("0x15"),!1),this[xc("0xf")](xc("0x9"),e[xc("0x9")]),this.bind(xc("0x9")).to(e),this.set("descriptionParts",[]),this[xc("0xf")](xc("0x18"),!1),this[xc("0xf")](xc("0x14"),!1),this.set("canAccept",!1),this.set("canDiscard",!1),this[xc("0x1d")]=e,this[xc("0x13")]=n,this[xc("0x1")]=o,o[xc("0x7")]?this.set(xc("0xa"),1):this[xc("0x1f")]()}[xc("0x22")](){this[xc("0x1c")][xc("0x22")]()}[xc("0xc")](){this[xc("0x10")]&&this[xc("0x10")].destroy(),this[xc("0x6")]&&this[xc("0x6")][xc("0xc")](),super[xc("0xc")]()}[xc("0x1f")](){const{CommentsListView:t}=this[xc("0x1")];this[xc("0x10")]=new t(this[xc("0x1a")],this[xc("0x1d")].commentThread,Object.assign({CommentView:this[xc("0x1")][xc("0x20")]},this[xc("0x1")])),this.commentsListView[xc("0x19")](xc("0x12")).to(this),this[xc("0x10")][xc("0x19")](xc("0xd")).to(this),this[xc("0x10")][xc("0x4")]("isActive").to(this),this.set(xc("0xa"),this[xc("0x10")].length+1),this[xc("0x4")]("length").to(this[xc("0x10")],"length",(t=>t+1)),this[xc("0x6")]=this[xc("0x17")](),this.on(xc("0x12"),(()=>this[xc("0x22")]())),this[xc("0x4")](xc("0x18")).to(this[xc("0x10")],xc("0x16"),this[xc("0x6")].commentInputView,xc("0x21"),((t,e)=>t||!!e))}[xc("0x17")](){const{CommentThreadInputView:t}=this[xc("0x1")],e=new t(this[xc("0x1a")],this[xc("0x13")],this[xc("0x1")][xc("0x0")]),n=e[xc("0x3")];return e[xc("0x4")]("showInput").to(this,xc("0x15"),this[xc("0x1d")][xc("0x5")],xc("0xb"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1e"),((t,e)=>{this.fire(xc("0x1b"),e),n[xc("0x11")][xc("0xe")]("")})),n.on(xc("0x2"),(()=>this.focus())),n[xc("0x4")](xc("0x8")).to(this._model[xc("0x5")],xc("0xb")),e}}const cc=["acceptSuggestion","innerHTML","EXTERNAL_IMPORT_WORD_AVATAR","set","acceptButton","authoredAt","getExternalSuggestionNote","push","ck-suggestion--accept","importWord","span","name","</span>","ck-suggestion__main","EXTERNAL_AVATAR","ck-annotation__main","split","innerText","_model","locale","ck-suggestion__actions","_config","getTemplate","check","cancel","isActive",'<span class="ck-suggestion-color" style="background-color: ',"color","author","ck-annotation__content-wrapper","creator","ck-comment__external","_createButton","EXTERNAL_IMPORT_WORD_SUGGESTION","getUserViewNotificationText","children","ck-annotation__info","isExternal","</p>",'<span class="ck-suggestion-type">',"canDiscard","ck-annotation__user","time","discardButton","ck-suggestion--discard","type","Discard suggestion","element","ck-suggestion-wrapper",'" title="',"map","commentThreadInputView","ck-suggestion-","ck-annotation__actions","setTemplate","ck-suggestion__info-name",".ck-annotation__content-wrapper","render","ck-annotation__info-time","source","_descriptionElement","description","ck-annotation","join","ck-annotation__info-name","Accept suggestion","commentThread","bind","createElement","fire","querySelector","change:description","value",'"></span>',"ck-comment__info-time","discardSuggestion","<p>","ck-suggestion","commentsListView","title","attributes","bindTemplate","isEnabled","userView","div","canAccept","extendTemplate","ck-suggestion__info"];var lc,dc;lc=cc,dc=331,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x18")](uc("0x42"),""),this[uc("0x0")](uc("0x42")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][uc("0x42")]:"")),this[uc("0x0")](uc("0x52")).to(this,"descriptionParts",this,uc("0x2e"),((t,e)=>{let n="";for(const e of t)n+=uc("0x9")+mc(e.content,e[uc("0x30")])+uc("0x3b");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x51")]=null,this[uc("0x19")]=this[uc("0x35")](Yo(e,uc("0x56")),t.icons[uc("0x2c")],uc("0x1d"),uc("0x15"),"sw"),this.acceptButton[uc("0x0")](uc("0xf")).to(this,uc("0x12")),this[uc("0x40")]=this._createButton(Yo(e,uc("0x43")),t.icons[uc("0x2d")],uc("0x41"),uc("0x8"),"sw"),this[uc("0x40")][uc("0x0")](uc("0xf")).to(this,uc("0x3d")),this[uc("0x10")]=new r.UserView(e,this._model[uc("0x31")],this[uc("0x37")]()),this[uc("0x10")][uc("0x13")]({attributes:{class:["ck-suggestion__user",uc("0x3e")]}}),this[uc("0x4b")](this[uc("0x2b")]())}[uc("0x2b")](){const t=this[uc("0xe")],e=[{tag:uc("0x11"),attributes:{class:[uc("0x14"),uc("0x39")]},children:[{tag:uc("0x1f"),children:[{text:this[uc("0x10")][uc("0x20")]}],attributes:{class:[uc("0x4c"),uc("0x55")]}},{tag:uc("0x3f"),attributes:{datetime:t.to(uc("0x1a")),class:[uc("0x7"),uc("0x4f")]},children:[{text:t.to(uc("0x1a"),(t=>this._config.formatDateTime(t)))}]}]},{tag:uc("0x11"),attributes:{class:[uc("0x29"),uc("0x4a")]},children:[this[uc("0x19")],this[uc("0x40")]]},{tag:"div",attributes:{class:[uc("0x32")]}}];this._model.isExternal&&e[uc("0x1c")]({tag:uc("0x11"),attributes:{class:[uc("0x34")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x11"),attributes:{class:[uc("0x45"),t.if(uc("0x2e"),"ck-suggestion-wrapper--active"),t.to(uc("0x42"),(t=>uc("0x49")+t)),this[uc("0x2a")].disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x27")].id,"data-thread-id":this[uc("0x27")][uc("0x57")].id,"data-author-id":this[uc("0x27")].author.id,tabindex:-1},children:[{tag:uc("0x11"),attributes:{class:[uc("0xa"),uc("0x53")]},children:[this[uc("0x10")],{tag:uc("0x11"),attributes:{class:[uc("0x22"),uc("0x24")]},children:e}]}]};return this[uc("0xb")]&&this[uc("0x48")]&&n[uc("0x38")][uc("0x1c")](this.commentsListView,this[uc("0x48")]),n}[uc("0x4e")](){super[uc("0x4e")](),this[uc("0x51")]=this[uc("0x44")][uc("0x3")](uc("0x4d")),this._descriptionElement[uc("0x16")]=this.description,this.on(uc("0x4"),((t,e,n)=>{this[uc("0x51")].innerHTML=n}))}[uc("0x35")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x28")]);return i[uc("0x18")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x2")](o,this._model.id)})),i}[uc("0x1b")](){return uc("0x1e")===this._model.attributes["@external"][uc("0x50")]?Yo(this[uc("0x28")],uc("0x36")):Yo(this[uc("0x28")],"EXTERNAL_SUGGESTION")}[uc("0x37")](){return this[uc("0x27")][uc("0x3a")]?uc("0x1e")===this[uc("0x27")][uc("0xd")]["@external"].source?Yo(this.locale,uc("0x17"),this[uc("0x27")].creator[uc("0x20")]):Yo(this[uc("0x28")],uc("0x23"),this._model[uc("0x33")][uc("0x20")]):null}}function mc(t,e){let n="";return n+=t[uc("0x25")]("*")[uc("0x47")](((t,e)=>e%2!=0?uc("0x3c")+fc(t)+uc("0x21"):fc(t)))[uc("0x54")](""),e&&(n+=uc("0x2f")+e[uc("0x5")]+uc("0x46")+e[uc("0xc")]+uc("0x6")),n}function fc(t){const e=document[uc("0x1")]("span");return e[uc("0x26")]=t,e[uc("0x16")]}const hc=["value","editor","filter","_destroyController","reduce","_handleControllerBuffer","bind","head","acceptAllSuggestions","Annotations","_viewToController","trackChanges","listenTo","componentFactory","buttonView","focus","discardSelectedSuggestions","TrackChangesUI","suggestionUnloaded","CommentsRepository","Discard all suggestions","suggestionChanged","descriptionParts","createAnnotationView","delete","EditorAnnotations","activeAnnotations","_updateController","set","type","createCommentThreadController","comments.maxCommentsWhenCollapsed","view","destroy","map","clear","discardButton","execute","some","isEnabled","getSuggestion","mainView","isMultiRange","actionView","values","getMarkers","_descriptionFactory","commandName","_initializeController","_refreshActiveMarkers","SuggestionThreadView","commentThread","keys","_suggestionToController","registerAnnotation","getAllAdjacentSuggestions","change:activeAnnotations","push","TrackChangesEditing","button","Track changes","lowest","suggestionLoaded","unbind","source","editing","plugins","getDescriptions","separator","CommentView","define","get","isDirty","pluginName","isInContent","discardAllSuggestions","addSourceCollector","switchbutton","_annotationViews","_handleSuggestionControllerDelayed","comments.editorConfig","length","getRanges","toMany","has","add","config","comments.maxThreadTotalWeight","suggestion-","isOn","acceptButton","CommentsUI","trackChanges.disableComments","commands","Accept all suggestions","innerView","arrowView","previous","change:previous","stopListening","activeMarkers","Discard all selected suggestions","remove","locale","Accept all selected suggestions","model"];var pc,bc;pc=hc,bc=194,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Wa,r.Users,"CommentsRepository",Ec("0x1b"),Ec("0x2b")]}static get[Ec("0x5b")](){return Ec("0x23")}constructor(t){super(t),this[Ec("0x47")]=new Map,this[Ec("0x1c")]=new Map,this[Ec("0x60")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x13")][Ec("0x68")];e[Ec("0x58")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x58")](Ec("0x4"),!1),this._disableComments=e[Ec("0x59")](Ec("0x4"))}[Ec("0x61")](t,e){0===this[Ec("0x17")].size&&setTimeout((()=>{for(const[t,e]of this[Ec("0x17")]){const n=this[Ec("0x47")].has(t);n||e?n&&e&&this[Ec("0x15")](t):this[Ec("0x42")](t)}this[Ec("0x13")][Ec("0x54")][Ec("0x59")](Ec("0x2b")).refreshSelectedViews(),this[Ec("0x43")](),this[Ec("0x17")][Ec("0x35")]()}),10),this._handleControllerBuffer[Ec("0x2e")](t,e)}init(){const t=this[Ec("0x13")],e=t[Ec("0x54")][Ec("0x59")](Ec("0x4c")),n=t[Ec("0x54")].get(Ec("0x1b")),o=t.plugins[Ec("0x59")](Ec("0x2b")),s=t[Ec("0x54")][Ec("0x59")]("CommentsRepository");t.ui[Ec("0x1f")][Ec("0x67")](Ec("0x1d"),(t=>this._createUIButton(t))),o[Ec("0x5e")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Ec("0x49")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x3c")]){s[Ec("0x4b")](...t[Ec("0x64")]());continue}const e=t.getFirstRange();if(s[Ec("0x63")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x4b")]([n[Ec("0x32")],s])}return t})),this[Ec("0x1e")](e,Ec("0x50"),((t,e)=>{this.listenTo(e,Ec("0xa"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x2d")](s.head),this[Ec("0x61")](e,!1)):(this[Ec("0x2d")](o[Ec("0x19")]),this[Ec("0x61")](e,!0)))})),null===e[Ec("0x9")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x2d")](e[Ec("0x19")])})),this[Ec("0x1e")](e,Ec("0x24"),((t,e,n)=>{this[Ec("0xb")](e,Ec("0xa")),this[Ec("0x17")][Ec("0x2a")](e);const o=n?n.head:e,s=this[Ec("0x47")][Ec("0x59")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x15")](e)})),this[Ec("0x1e")](e,Ec("0x27"),((t,e)=>{this._updateController(e)})),this[Ec("0x1e")](n,Ec("0x4a"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x1e")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x3a")](n);this[Ec("0x47")][Ec("0x59")](s)[Ec("0x32")][Ec("0x21")]()}),{priority:Ec("0x4f")})}[Ec("0x43")](){const t=this[Ec("0x13")][Ec("0x54")][Ec("0x59")](Ec("0x1b")),e=this.editor.plugins[Ec("0x59")](Ec("0x4c")),n=Array.from(t[Ec("0x2c")],(t=>t[Ec("0x7")])).filter((t=>this[Ec("0x1c")][Ec("0x66")](t))),o=[];for(const t of n){const e=this[Ec("0x1c")].get(t)[Ec("0x11")][Ec("0x49")]();o[Ec("0x4b")](...e[Ec("0x16")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xc")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x13")][Ec("0x5")][Ec("0x59")]("trackChanges"),r=Yo(t,Ec("0x4e"));n[Ec("0x20")][Ec("0x2e")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x20")][Ec("0x18")](Ec("0x1")).to(o,Ec("0x12")),n[Ec("0x20")].on(Ec("0x37"),(()=>{o[Ec("0x37")](),this[Ec("0x13")][Ec("0x53")].view[Ec("0x21")]()}));const i=new e.Collection,x=[{type:Ec("0x5f"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x6")),commandName:Ec("0x1a")}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0x10")),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0x26")),commandName:Ec("0x5d")}},{type:Ec("0x4d"),model:{withText:!0,label:Yo(t,Ec("0xd")),commandName:Ec("0x22")}}];for(const t of x){let e={type:Ec("0x56")};if(t[Ec("0x11")]){const n=new s.Model(t.model),o=this[Ec("0x13")][Ec("0x5")][Ec("0x59")](n[Ec("0x41")]);n.bind(Ec("0x1"),Ec("0x39")).to(o,Ec("0x12"),Ec("0x39")),e={type:t[Ec("0x2f")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x14")]((t=>null!=t.model))[Ec("0x34")]((t=>this[Ec("0x13")].commands.get(t.model[Ec("0x41")]))),c=n[Ec("0x20")];return c[Ec("0x3d")][Ec("0x51")]("isEnabled"),c[Ec("0x8")][Ec("0x51")]("isEnabled"),c[Ec("0x3d")].bind(Ec("0x39")).to(o,Ec("0x39")),c[Ec("0x8")][Ec("0x18")](Ec("0x39"))[Ec("0x65")](a,Ec("0x39"),((...t)=>t[Ec("0x38")]((t=>t)))),n.on(Ec("0x37"),(t=>{this[Ec("0x13")][Ec("0x37")](t[Ec("0x52")][Ec("0x41")]),this[Ec("0x13")][Ec("0x53")][Ec("0x32")].focus()})),n}[Ec("0x42")](t){const e=this[Ec("0x13")],n=e[Ec("0x68")],o=e[Ec("0x54")].get("Annotations"),s=e[Ec("0x54")].get(Ec("0x25")),i=e[Ec("0x54")][Ec("0x59")]("EditorAnnotations"),x=e[Ec("0x54")].get(r.Users).me,a=n[Ec("0x59")](Ec("0x1d"))[Ec("0x44")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x59")](Ec("0x3"));let d,u;this[Ec("0x60")][Ec("0x66")](t.id)?(u=this[Ec("0x60")][Ec("0x59")](t.id),d=u[Ec("0x3b")]):(d=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get(Ec("0x62")),maxCommentsWhenCollapsed:n[Ec("0x59")](Ec("0x31")),maxThreadTotalWeight:n[Ec("0x59")](Ec("0x69")),maxCommentCharsWhenCollapsed:n[Ec("0x59")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x59")](Ec("0xf"))),CommentView:n[Ec("0x59")]("comments")[Ec("0x57")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2")].on(Ec("0x37"),(()=>{e.editing[Ec("0x32")][Ec("0x21")]()})),d[Ec("0x36")].on("execute",(()=>{e[Ec("0x53")][Ec("0x32")].focus()})),u=o[Ec("0x29")](this[Ec("0x13")][Ec("0xf")],d),u[Ec("0x18")](Ec("0x5a")).to(d,Ec("0x5a")),u[Ec("0x18")](Ec("0x63")).to(d),u[Ec("0x18")](Ec("0x2f")).to(d,Ec("0x2f"),(t=>Ec("0x0")+t)),this[Ec("0x60")].set(t.id,u));const g=s[Ec("0x30")](t[Ec("0x45")],d),m=new oc(e,t,d,g),f=t[Ec("0x49")]().filter((t=>t[Ec("0x5c")]));d[Ec("0x28")]=e[Ec("0x54")].get(Ec("0x4c"))[Ec("0x40")][Ec("0x55")](f),this[Ec("0x47")][Ec("0x2e")](t,m),this[Ec("0x1c")][Ec("0x2e")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x49")]()[Ec("0x14")]((t=>t.isInContent));for(const t of o)n.push(...t[Ec("0x3f")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x0")+m[Ec("0x32")][Ec("0x2f")]});o[Ec("0x67")](h),i[Ec("0x48")](h)}[Ec("0x15")](t){const e=this[Ec("0x13")].plugins[Ec("0x59")](Ec("0x1b")),n=this[Ec("0x47")][Ec("0x59")](t),o=n[Ec("0x32")],s=e.getByInnerView(o);s&&e[Ec("0xe")](s),this._suggestionToController[Ec("0x2a")](t),this[Ec("0x1c")][Ec("0x2a")](o),n[Ec("0x33")]()}[Ec("0x2d")](t){if(!t.isInContent||!this[Ec("0x47")][Ec("0x66")](t))return;const e=this[Ec("0x13")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Ec("0x59")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x32")][Ec("0x28")]=e[Ec("0x40")][Ec("0x55")](o)}[Ec("0x33")](){for(const t of this[Ec("0x47")][Ec("0x46")]())this._destroyController(t);for(const t of this[Ec("0x60")][Ec("0x3e")]())t[Ec("0x3b")].destroy();super[Ec("0x33")]()}}var Tc,Cc,yc=["Comments","editor","plugins","adapter","addSuggestionData","addSuggestion","getSuggestion","getSuggestions","requires","pluginName","get","TrackChanges"];Tc=yc,Cc=489,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0xb")](){return[Wa,_c,kc("0x3")]}static get[kc("0x0")](){return kc("0x2")}set[kc("0x6")](t){this.editor[kc("0x5")][kc("0x1")](Wa)[kc("0x6")]=t}get adapter(){return this[kc("0x4")][kc("0x5")][kc("0x1")](Wa)[kc("0x6")]}[kc("0x8")](t){return this.editor[kc("0x5")][kc("0x1")](Wa)[kc("0x7")](t)}[kc("0xa")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x4")].plugins.get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x9")](t){return this[kc("0x4")].plugins[kc("0x1")](Wa)[kc("0x9")](t)}}const vc=["track-changes-data-invalid-editor-creator","config","Pagination","reduce","get","Users","pluginName","plugins","appendChild","document","trackChangesData","set","rootsAttributes","execute","_adapter","getRootsAttributes","getUser","model","name","getFullData","getRootNames","editor","editorCreator","push","users","TrackChangesDataGetter","destroy","TrackChangesEditing","addSuggestionData","getDataWithAcceptedSuggestions","getSuggestions","data","create","getDataWithDiscardedSuggestions","acceptAllSuggestions","createElement","init","define"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0xc")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x10")](){return"TrackChangesData"}[Ic("0x8")](){const t=this[Ic("0x1f")];if(t[Ic("0xb")][Ic("0x9")]("trackChangesData.editorCreator",(e=>{const n=t.model[Ic("0x13")][Ic("0x1e")]()[Ic("0xd")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0x4")](n,e)})),"function"!=typeof t[Ic("0xb")].get(Ic("0x14")).editorCreator)throw new e.CKEditorError(Ic("0xa"))}[Ic("0x1")](t){return Oc(this[Ic("0x1f")],!0,t)}[Ic("0x5")](t){return Oc(this[Ic("0x1f")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x10")](){return Ic("0x23")}constructor(t){super(t),this.result="end"}[Ic("0x8")](){this[Ic("0x1f")][Ic("0x11")].get("CommentsRepository")[Ic("0x18")]={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[Ic("0x1f")][Ic("0x11")][Ic("0xe")](Ic("0x25"))[Ic("0x18")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x11")][Ic("0x21")](Wa,Mc),o[Ic("0x16")]=wc(t)?t[Ic("0x19")]():void 0;const s=document.createDocumentFragment(),i=t.config[Ic("0xe")](Ic("0x14"))[Ic("0x20")],x=await i(o,(()=>function(t){const e=document[Ic("0x7")]("div");return t[Ic("0x12")](e),e}(s)));!function(t,e){const n=t[Ic("0x1b")].document[Ic("0x1e")]()[Ic("0xd")](((e,n)=>(e[n]=t[Ic("0x3")][Ic("0xe")]({rootName:n}),e)),{}),o=t.plugins[Ic("0xe")](Ic("0xf"))[Ic("0x22")].map((t=>({id:t.id,name:t[Ic("0x1c")]}))),s=t[Ic("0x11")][Ic("0xe")](Ic("0x25"))[Ic("0x2")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x11")][Ic("0xe")](Ic("0xf")),i=e[Ic("0x11")][Ic("0xe")](Ic("0x25"));for(const t of o)r[Ic("0x1a")](t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0x0")](t);e[Ic("0x3")][Ic("0x15")](n)}(t,x),x[Ic("0x17")](e?Ic("0x6"):"discardAllSuggestions");const a=wc(x)?x[Ic("0x1d")](n):x.data.get(n);return await x[Ic("0x24")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|