@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +10 -8
- package/src/augmentation.d.ts +36 -36
- package/src/commands/acceptsuggestioncommand.d.ts +20 -20
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +20 -20
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +20 -20
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +22 -22
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/integrations/alignment.d.ts +13 -13
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +13 -13
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +13 -13
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +13 -13
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +13 -13
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +10 -10
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +13 -12
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +13 -13
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +25 -25
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +12 -11
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +17 -17
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +13 -13
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -13
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +13 -13
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +13 -13
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +13 -13
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +13 -13
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +13 -13
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +19 -19
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +14 -14
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +13 -13
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +12 -11
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +13 -13
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +13 -13
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +25 -25
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +13 -13
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +13 -13
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +13 -13
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +13 -13
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +13 -13
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +13 -13
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +12 -11
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +13 -13
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +14 -14
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +38 -38
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +18 -17
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +18 -17
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +22 -22
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +18 -17
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +18 -17
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -13
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +23 -23
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -13
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +13 -13
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +13 -13
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +17 -17
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +266 -266
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +151 -151
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +240 -240
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +71 -71
- package/src/trackchangesdata.d.ts +37 -38
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +435 -391
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +34 -34
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +36 -36
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +166 -166
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -184
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +26 -26
- 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:()=>xc,TrackChanges:()=>Ac,TrackChangesData:()=>wc,TrackChangesEditing:()=>Wx});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),a=n(995);const x=["clearForceDisabled","_enabledCommands","editor","_enableCommands","affectsData","has","commands","_disableUnsupportedCommands","execute","value","TrackChangesCommand","_isEnabledBasedOnSelection","refresh"];var c,l;c=x,l=328,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return x[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xb")]=e,this[d("0x6")]=!1,this[d("0x9")](),this[d("0x8")]=!1}[d("0x9")](){this.isEnabled=!0}[d("0x5")](){this[d("0x6")]=!this[d("0x6")],this.value?this[d("0x4")]():this._enableCommands()}[d("0x4")](){for(const t of this[d("0xc")][d("0x3")][d("0x3")]())t[d("0x1")]&&!this[d("0xb")][d("0x2")](t)&&t.forceDisabled(d("0x7"))}[d("0x0")](){for(const t of this.editor[d("0x3")][d("0x3")]())t[d("0x1")]&&!this._enabledCommands[d("0x2")](t)&&t[d("0xa")]("TrackChangesCommand")}}const g=["refresh","plugins","_suggestions","acceptSuggestion","execute","isEnabled","get","_isEnabledBasedOnSelection","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=134,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("0x8")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this[h("0x1")]=!0}[h("0x0")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n.getRanges();this[h("0x4")].model.canEditAt(o)&&this[h("0x4")][h("0x7")][h("0x2")]("TrackChangesEditing")[h("0x9")](n)}}const b=["model","get","getRanges","canEditAt","editor","_isEnabledBasedOnSelection","execute","_suggestions","plugins","refresh","discardSuggestion","isEnabled","TrackChangesEditing"];var E,_;E=b,_=141,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("0x9")]=e,this[T("0xb")](),this[T("0x7")]=!1}[T("0xb")](){this[T("0x0")]=!0}[T("0x8")](t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x4")]();this[T("0x6")][T("0x2")][T("0x5")](o)&&this[T("0x6")][T("0xa")][T("0x3")](T("0x1"))[T("0xc")](n)}}const y=["isIntersecting","color","createPositionAfter","isCollapsed","type","add","createRange","sort","push","map","isInContent","join","getMarkers","end","createPositionBefore","createPositionAt","schema","deletion","start","value","isTouching","isArray","isMultiRange","replace","getRange","getRanges"," [color ","next","length"];var k,A;k=y,A=190,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>v("0x1")==t[v("0x11")]&&v("0x1")!=e[v("0x11")]?-1:v("0x1")!=t[v("0x11")]&&"deletion"==e[v("0x11")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x0")];for(;o<t.length;){const i=t[o],a=t[o+1];n||(n=e[v("0x1b")](i)),I(e,i,a)||(s[v("0x15")](e[v("0x13")](n,r.isObject(i)?e[v("0xf")](i):e[v("0x1c")](i,v("0x1a")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xf")](e),s=t[v("0x1b")](n);return o[v("0x4")](s)}function L(t,e,n){for(;n[v("0xc")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["from","_command","editor","model","canEditAt","values","execute","isInContent","isEnabled","_isEnabledBasedOnSelection","_suggestions"];var w,M;w=N,M=130,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("0x3")]=e,this[O("0x1")]=n,this.refresh(),this[O("0x0")]=!1}refresh(){const t=Array[O("0x2")](this[O("0x1")][O("0x7")]()).some((t=>t[O("0x9")]));this[O("0xa")]=this[O("0x3")][O("0xa")]&&t}[O("0x8")](){const t=R(Array[O("0x2")](this[O("0x1")][O("0x7")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x4")][O("0x5")][O("0x6")](t))return}L(this[O("0x4")][O("0x5")],this._command,t)}}const P=["_command","isEnabled","editor","model","_isEnabledBasedOnSelection","refresh","selection","execute","_suggestions","getRanges","from","_selectedSuggestions","values","document","size","canEditAt"];var D,B;D=P,B=270,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("0x2")]=e,this[j("0xa")]=n,this[j("0xd")]=new Set,this[j("0x7")](),this[j("0x6")]=!1}refresh(){const t=this[j("0x4")][j("0x5")][j("0xf")][j("0x8")],e=Array[j("0xc")](this._suggestions[j("0xe")]());this[j("0xd")]=function(t,e){const n=Array.from(t[v("0x9")]()),o=new Set;for(const s of e)if(s[v("0x17")])for(const e of n)for(const n of s[v("0x19")]()){const r=n[v("0x8")]();(e[v("0xd")](r)||t[v("0x10")]&&!s[v("0x6")]&&s[v("0xb")]&&r[v("0x1a")].isTouching(e[v("0x2")]))&&o[v("0x12")](s)}return o}(t,e),this[j("0x3")]=this[j("0x2")].isEnabled&&!!this[j("0xd")][j("0x0")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0xd")]));for(const e of t){const t=e[j("0xb")]();if(!this[j("0x4")][j("0x5")][j("0x1")](t))return}L(this.editor[j("0x5")],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,at=rt.toString,xt=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,xt),n=t[xt];try{t[xt]=void 0;var o=!0}catch(t){}var s=at.call(t);return o&&(e?t[xt]=n:delete t[xt]),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 a=e[r],x=o?o(n[a],t[a],a,n,t):void 0;void 0===x&&(x=t[a]),s?ne(n,a,x):se(n,a,x)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const ae=function(t){return null!=t&&"object"==typeof t};const xe=function(t){return ae(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=xe(function(){return arguments}())?xe:function(t){return ae(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 ae(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,a=i?ie(t.length,String):[],x=a.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,x))||a.push(c);return a};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 an=Fe(Object.getPrototypeOf,Object);const xn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=an(t);return e}:tn;const cn=function(t,e){return re(t,xn(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,xn)};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(an(t))};const Wn=function(t){return ae(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return ae(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 a,x=1&n,c=2&n,l=4&n;if(o&&(a=r?o(e,s,r,i):o(e)),void 0!==a)return a;if(!mt(e))return e;var d=ge(e);if(d){if(a=Ln(e),!x)return Ze(e,a)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,x);if(u==Zn||u==Jn||g&&!r){if(a=c||g?{}:zn(e),!x)return c?cn(e,Ke(a,e)):sn(e,Ge(a,e))}else{if(!Yn[u])return r?e:{};a=Un(e,u,x)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,a),$n(e)?e.forEach((function(s){a.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){a.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(a,r,t(s,n,o,r,e,i))})),a};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||ae(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 ao=io;var xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=ao(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(xo,(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,a=t;null!=a&&++s<r;){var x=bo(e[s]),c=n;if("__proto__"===x||"constructor"===x||"prototype"===x)return t;if(s!=i){var l=a[x];void 0===(c=o?o(l,x,a):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(a,x,c),a=a[x]}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,a=t.length,x=e.length;if(a!=x&&!(i&&x>a))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<a;){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 a=So;case"[object Set]":var x=1&o;if(a||(a=Io),t.size!=e.size&&!x)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(a(t),a(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,a=dn(t),x=a.length;if(x!=dn(e).length&&!i)return!1;for(var c=x;c--;){var l=a[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<x;){var f=t[l=a[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),a=ge(e),x=i?Po:Sn(t),c=a?Po:Sn(e),l=(x=x==Fo?Do:x)==Do,d=(c=c==Fo?Do:c)==Do,u=x==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,x,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||!ae(e)&&!ae(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=["creator","authoredAt","getItems","end","head","next","_onAccept","getMarkers","_onAttributesChange","decorate","size","from","commentThread","_model","getRanges","removeMarkers","nodeAfter","addRange","start","addMarkerName","set","reduce","isIntersecting","subType","markers","length","hasComments","removeMarker","@external","onAccept","getMultiRangeId","onDiscard","isExternal","change","createdAt","attributes","setAttribute","getMarkerNames","map","getRange","getAllAdjacentSuggestions","add","type","isMultiRange","author","_saved","previous","addMarker","delete","getFirstMarker","nodeBefore","suggestion:","clear","push","onAttributesChange","_markerNames","data"];var $o,Jo;$o=Xo,Jo=151,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[Qo("0x5")]=e[Qo("0x5")],this[Qo("0x2b")]=e[Qo("0x2b")]||null,this[Qo("0x7")]=e[Qo("0x7")],this[Qo("0x14")]=e[Qo("0x14")]||e[Qo("0x7")],this[Qo("0x34")]=Boolean(e[Qo("0x37")]&&e[Qo("0x37")][Qo("0x30")]),this.data=null,this[Qo("0x21")]=t,this[Qo("0x1a")]=e[Qo("0x31")],this._onDiscard=e[Qo("0x33")],this[Qo("0x1c")]=e[Qo("0x11")],this._markerNames=new Set,this[Qo("0x36")]=null,this.set(Qo("0x15"),null),this[Qo("0x28")](Qo("0x37"),e[Qo("0x37")]||{}),this.set("previous",null),this[Qo("0x28")](Qo("0x19"),null),this.set(Qo("0x20"),null),this[Qo("0x28")](Qo("0x8"),!1),this[Qo("0x1d")]("accept"),this[Qo("0x1d")]("discard")}get[Qo("0x18")](){let t=this;for(;t[Qo("0x9")];)t=t[Qo("0x9")];return t}get[Qo("0x2e")](){return!!this.commentThread&&this[Qo("0x20")][Qo("0x2d")]>0}get[Qo("0x6")](){return 0!=this._markerNames[Qo("0x1e")]&&6==Array[Qo("0x1f")](this[Qo("0x12")])[0].split(":").length}get isInContent(){return null!==this[Qo("0xc")]()}[Qo("0x27")](t){this[Qo("0x12")][Qo("0x4")](t)}[Qo("0x0")](){return Array[Qo("0x1f")](this[Qo("0x12")])}[Qo("0x1b")](){return this.getMarkerNames()[Qo("0x1")]((t=>this[Qo("0x21")][Qo("0x2c")].get(t))).filter((t=>t))}[Qo("0xc")](){return this[Qo("0x1b")]()[0]||null}removeMarkers(){this[Qo("0x21")][Qo("0x35")]((t=>{for(const e of this[Qo("0x1b")]())t[Qo("0x2f")](e)})),this[Qo("0x12")][Qo("0xf")]()}[Qo("0x2f")](t){this[Qo("0x21")].change((e=>{e[Qo("0x2f")](t)})),this._markerNames[Qo("0xb")](t)}[Qo("0x25")](t){const e=Qo("0xe")+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x14")].id+":"+Zo[Qo("0x32")]();this[Qo("0x27")](e),this[Qo("0x21")][Qo("0x35")]((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x22")]())if(e[Qo("0x2a")](t))return!0;return!1}getRanges(){return this[Qo("0x1b")]()[Qo("0x1")]((t=>t[Qo("0x2")]()))}[Qo("0x16")](){return this[Qo("0x22")]()[Qo("0x29")](((t,e)=>[...t,...e[Qo("0x16")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0xc")]())||void 0===t?void 0:t[Qo("0x2")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t[Qo("0x2d")])return null;const e=t[0],n=e[Qo("0x26")][Qo("0x24")],o=e[Qo("0x17")][Qo("0xd")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x1a")](this[Qo("0x22")](),this[Qo("0x13")],this[Qo("0x37")]),this[Qo("0x23")]()}discard(){this._onDiscard(this[Qo("0x22")](),this[Qo("0x13")],this[Qo("0x37")]),this[Qo("0x23")]()}[Qo("0x3")](){const t=[];let e=this[Qo("0x18")];for(;e;)t[Qo("0x10")](e),e=e[Qo("0x19")];return t}[Qo("0x38")](t,e){const n=eo(this[Qo("0x37")]);_o(n,t,e),Go(n,this[Qo("0x37")])||(this[Qo("0x37")]=n,this[Qo("0x1c")](n))}removeAttribute(t){const e=eo(this[Qo("0x37")]);qo(e,t),Go(e,this[Qo("0x37")])||(this[Qo("0x37")]=e,this[Qo("0x1c")](this[Qo("0x37")]))}toJSON(){return{id:this.id,type:this[Qo("0x2b")]?this[Qo("0x5")]+":"+this.subType:this[Qo("0x5")],authorId:this[Qo("0x14")].id,createdAt:this.createdAt,hasComments:this[Qo("0x2e")],data:this[Qo("0x13")],attributes:this[Qo("0x37")]}}static[Qo("0x32")](){return(0,e.uid)().substr(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=["addContainer","removeContainer","isEmpty","function","isInContent","*Insert:* %0","_schema","Object","_itemLabels","registerElementLabel","ELEMENT_SPACE","get","deletion","$1 $2","start","remove","softBreak","element","quantity","elementEnd","isEqual","Container","skip","insertion","indexOf","$text","removeEmptyContainer","type","text","getItemLabel","*Remove:* %0","replace","data","name","getFirstRange","pop","_locale","nextSibling","previousSibling","addEmptyContainer","_resolveDescriptionItems","$textProxy","item","add","set","elementStart","_itemLabelsCallbacks","match","label","length","end","matchingCallback","_addDescriptionItems","_customCallbacks","isObject","getWalker","push"];var es,ns;es=ts,ns=427,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("0x12")]=[],this[os("0x23")]=t,this[os("0x8")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x15")];n++){const o=t[n];if(!o[os("0x21")])continue;let s=!1;for(const t of this[os("0x19")]){const n=t(o);if(n){os("0x38")in n&&e[os("0x1c")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x16")][os("0x31")](s[os("0x6")]()[os("0x2b")])){const t=e[e[os("0x15")]-1],n=os("0x34")==o[os("0x38")]?os("0xf"):os("0x2c");t&&os("0x0")==t[os("0x38")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x19")].push(t)}[os("0x26")](t,n,o=e.priorities.normal){os("0x20")==typeof t?(0,e.insertToPriorityArray)(this[os("0x12")],{matchingCallback:t,label:n,priority:o}):this[os("0x25")][os("0x10")](t,n)}[os("0x1")](t,e=1){let n;for(const e of this[os("0x12")])if(e[os("0x17")](t)){n=e[os("0x14")];break}return n||(n=this._itemLabels[os("0x28")](t.name)),n?n(e):1!==e?e+" "+t[os("0x5")]+"s":""+t[os("0x5")]}[os("0x18")](t,e){const n=e.getFirstRange()[os("0x1b")](),o=os("0x34")==e[os("0x38")]?os("0xf"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x15")]-1];if(s.is(os("0xd")))r&&r[os("0x38")][os("0x35")](os("0x32"))>-1&&t[os("0x7")](),r&&"text"==r[os("0x38")]?r[o]+=s.data:t[os("0x1c")]({type:"text",add:"add"==o?s.data:"",remove:os("0x2c")==o?s[os("0x4")]:""});else if(this[os("0x23")][os("0x1a")](s)){const i=s;if(r&&r[os("0x38")][os("0x35")](os("0x32"))>-1&&t[os("0x7")](),os("0x30")==e.type)continue;r&&r[os("0x38")]==o+os("0x24")&&r[os("0x2e")][os("0x5")]==i[os("0x5")]?r[os("0x2f")]++:t[os("0x1c")]({type:o+os("0x24"),element:i,quantity:1}),n[os("0x33")]((t=>!(os("0x30")==t[os("0x38")]&&t[os("0xe")]==s)))}else if(this[os("0x23")].checkChild(s,os("0x36"))||s.is(os("0x2e"),os("0x2d"))){const n=s;if(os("0xf")==o&&os("0x11")==e[os("0x38")]||os("0x2c")==o&&os("0x30")==e[os("0x38")])continue;if(r&&-1==r[os("0x38")][os("0x35")]("Container")){os("0x0")==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0xf")==o?n.nextSibling&&!this._schema[os("0x1a")](n.nextSibling)?n[os("0x9")]:null:n.previousSibling&&!this[os("0x23")][os("0x1a")](n[os("0xa")])?n[os("0xa")]:null,n.isEmpty||i&&i[os("0x1f")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x38")]==o+"EmptyContainer"&&r[os("0x2e")][os("0x5")]==e[os("0x5")]?r[os("0x2f")]++:t[os("0x1c")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x1c")]({type:o+os("0x32"),element:n})}}}[os("0xc")](t){const e=this[os("0x8")],n=[];for(const o of t){switch(o[os("0x38")]){case os("0x0"):if(o.add=o[os("0xf")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x2a"))[os("0x3")](/\u000A/g,""),o[os("0x2c")]=o[os("0x2c")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x2a")).replace(/\u000A/g,""),""!=o[os("0xf")]&&""!=o.remove){n[os("0x1c")]({type:os("0x3"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x2c")]+'"','"'+o.add+'"'])});continue}if(null!=o[os("0xf")][os("0x13")](/^ +$/)){n.push({type:os("0x34"),content:Yo(e,os("0x22"),Yo(e,os("0x27"),o[os("0xf")][os("0x15")]))});continue}if(null!=o.remove[os("0x13")](/^ +$/)){n.push({type:os("0x29"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x27"),o[os("0x2c")][os("0x15")]))});continue}if(""!=o[os("0xf")]){n[os("0x1c")]({type:"insertion",content:Yo(e,os("0x22"),'"'+o.add+'"')});continue}n[os("0x1c")]({type:os("0x29"),content:Yo(e,os("0x2"),'"'+o[os("0x2c")]+'"')});continue;case os("0xb"):case"addObject":n[os("0x1c")]({type:"insertion",content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x2e")],o[os("0x2f")]))});continue;case os("0x37"):case"removeObject":n[os("0x1c")]({type:os("0x29"),content:Yo(e,os("0x2"),this[os("0x1")](o[os("0x2e")],o[os("0x2f")]))});continue;case os("0x1d"):n[os("0x1c")]({type:"insertion",content:Yo(e,"*Split:* %0",this[os("0x1")](o.element,o[os("0x2f")]))});continue;case os("0x1e"):n[os("0x1c")]({type:os("0x29"),content:Yo(e,"*Merge:* %0",this.getItemLabel(o[os("0x2e")],o[os("0x2f")]))});continue}n[os("0x1c")](o)}return n}}const rs=["center","from","ltr","TrackChangesEditing","left","get","justify","commandParams","locale","model","selection","editor","markBlockFormat","alignment","FORMAT_ALIGN_TO_RIGHT","plugins","FORMAT_ALIGN_TO_CENTER","value","right","*Format:* %0","change","afterInit","commandName","_descriptionFactory","enableCommand","has","AlignmentEditing","filter","getSelectedBlocks","schema","registerDescriptionCallback","getAttribute"];var is,as;is=rs,as=191,function(t){for(;--t;)is.push(is.shift())}(++as);const xs=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[xs("0x16")](){const t=this[xs("0xc")],e=t[xs("0x9")];if(!t[xs("0x10")][xs("0x1a")](xs("0x1b")))return;const n=t[xs("0x10")][xs("0x6")](xs("0x4"));n[xs("0x19")](xs("0xe"),((e,o={})=>{let s=o[xs("0x12")];o.value||(s=xs("0x3")===t[xs("0x9")].contentLanguageDirection?xs("0x5"):xs("0x13"));const r=Array[xs("0x2")](this[xs("0xc")][xs("0xa")].document[xs("0xb")][xs("0x1d")]())[xs("0x1c")]((t=>function(t,e,n){const o=t[xs("0x0")](xs("0xe"))||null;return e.checkAttribute(t,xs("0xe"))&&n!=o}(t,this[xs("0xc")][xs("0xa")][xs("0x1e")],s)));t[xs("0xa")][xs("0x15")]((()=>{for(const t of r)n[xs("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[xs("0x18")][xs("0x1f")]((t=>{const{data:n}=t;if(n&&xs("0xe")==n[xs("0x17")]){const t=n[xs("0x8")][0][xs("0x12")];return{type:"format",content:Yo(e,xs("0x14"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case xs("0x13"):return Yo(e,xs("0xf"));case xs("0x1"):return Yo(e,xs("0x11"));case xs("0x7"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["isLimit","previousPosition","listIndent","parent","push","isContent","consumable","markerRange","nextSibling","bindElementToMarker","start","model","getCustomProperty","addHighlight","type","createRangeOn","isAtEnd","mapper","get","plugins","toViewElement","isBlock","addClass","markerName","writer","span","getWalker","createUIElement","listItem","ck-suggestion-marker--active","name","elementEnd","TrackChangesEditing"];var ds,us;ds=ls,us=378,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.getItems())s.hasAttribute(t)&&o[gs("0x16")](n[gs("0x0")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0xd"))){let n=t.nextSibling;for(;n&&n.is("element",gs("0xd"))&&n.getAttribute(gs("0x14"))>0;)e[gs("0x16")](n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0x3")](gs("0x11"));return(s,r,i)=>{if(!i[gs("0x18")].test(r[gs("0x19")],s[gs("0xf")]))return;const a=r[gs("0x19")][gs("0xb")](),x=r[gs("0x19")][gs("0x1c")],c=t[gs("0x1d")].schema;let l=null,d=null,u=!1,g=!1;for(const t of a){const e=t.item;u=u||c[gs("0x17")](e);const n=i[gs("0x2")][gs("0x5")](e);if(n&&n[gs("0x1e")](gs("0x1f")))return;gs("0x10")==t[gs("0x20")]&&c[gs("0x6")](e)&&!c[gs("0x12")](e)&&(e[gs("0x1a")]||x[gs("0x1")]?l&&l[gs("0x15")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x13")])}function m(t){const s=i.writer[gs("0xc")](gs("0xa"),{class:"ck-suggestion-marker-"+e}),a=i.mapper.toViewPosition(t);n&&o.activeMarkers.includes(r[gs("0x8")])&&i[gs("0x9")][gs("0x7")](gs("0xe"),s),i[gs("0x9")].insert(a,s),i.mapper[gs("0x1b")](s,r[gs("0x8")])}u||g||!d||m(d)}}const ps=["plugins","slice","forceValue","markInlineFormat","bold","FORMAT_SUBSCRIPT","toLowerCase","subscript","get","from","commands","getRanges","isCollapsed","*Format:* %0","UnderlineEditing","superscript","ItalicEditing","format","strikethrough","italic","FORMAT_STRIKETHROUGH","underline","locale","FORMAT_CODE","commandName","document","code","FORMAT_SUPERSCRIPT","selection","SuperscriptEditing"];var bs,Es;bs=ps,Es=345,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x1"),_s("0x1d"),"CodeEditing","StrikethroughEditing","SubscriptEditing",_s("0xe")];class Cs extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[_s("0xf")][_s("0x17")]("TrackChangesEditing"),o=t[_s("0x7")];for(const o of Ts){if(!t.plugins.has(o))continue;const s=o[_s("0x10")](0,-7)[_s("0x15")](),r=t[_s("0x19")][_s("0x17")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0xa")][_s("0xd")];if(i[_s("0x1b")])return void t(o);const a=void 0!==o[_s("0x11")]?o[_s("0x11")]:!r.value;e.change((()=>{const t=Array[_s("0x18")](i[_s("0x1a")]());for(const o of t){const t=a?[o]:ms(s,o,e);for(const e of t)n[_s("0x12")](e,{commandName:s,commandParams:[{forceValue:a}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x9")]===t)return s.commandParams[0][_s("0x11")]?{type:_s("0x2"),content:Yo(o,_s("0x1c"),e)}:{type:_s("0x2"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x13"),Yo(o,"FORMAT_BOLD")),s(_s("0x4"),Yo(o,"FORMAT_ITALIC")),s(_s("0x6"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0xb"),Yo(o,_s("0x8"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x16"),Yo(o,_s("0x14"))),s(_s("0x0"),Yo(o,_s("0xc")))}}const ys=["markBlockFormat","value","getSelectedBlocks","model","afterInit","plugins","format","locale","*Remove format:* %0","editor","registerDescriptionCallback","get","parent","checkChild","selection","TrackChangesEditing","has","ELEMENT_BLOCK_QUOTE","_descriptionFactory","enableCommand","commandName","blockQuote","*Format:* %0","BlockQuoteEditing","forceValue","from","commands","filter","name"];var ks,As;ks=ys,As=107,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0xd")](){const t=this[vs("0x12")],e=t[vs("0x10")];if(!t.plugins[vs("0x19")](vs("0x3")))return;const n=t[vs("0xe")][vs("0x14")](vs("0x18")),o=this[vs("0x12")][vs("0x6")].get(vs("0x1"));n[vs("0x1c")](vs("0x1"),((e,s={})=>{const r=this[vs("0x12")][vs("0xc")].document[vs("0x17")],i=s&&void 0!==s.forceValue?s[vs("0x4")]:!o[vs("0xa")];let a=[];if(i){const e=Array[vs("0x5")](r[vs("0xb")]())[vs("0x7")]((t=>Ss(t)||function(t,e){const n=e[vs("0x16")](t.parent,vs("0x1")),o=e[vs("0x16")](["$root",vs("0x1")],t);return n&&o}(t,this.editor.model.schema)));a=S(e,t[vs("0xc")])}else{const e=Array[vs("0x5")](r[vs("0xb")]()).filter((t=>Ss(t)));a=S(e,t[vs("0xc")])}t.model.change((()=>{for(const t of a)n[vs("0x9")](t,{commandName:vs("0x1"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1b")][vs("0x13")]((t=>{const{data:n}=t;if(n&&vs("0x1")==n[vs("0x0")]){const t=Yo(e,vs("0x1a"));return n.commandParams[0][vs("0x4")]?{type:"format",content:Yo(e,vs("0x2"),t)}:{type:vs("0xf"),content:Yo(e,vs("0x11"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x15")][vs("0x8")]}const Is=["editor","get","plugins","commands","afterInit","ckbox"];var Ls,Ns;Ls=Is,Ns=421,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x3")](){const t=this[ws("0x5")];t[ws("0x2")][ws("0x0")](ws("0x4"))&&t[ws("0x1")][ws("0x0")]("TrackChangesEditing").enableCommand(ws("0x4"))}}const Os=["commandName","plugins","editor","filter","languages","*Remove format:* %0","markBlockFormat","_descriptionFactory","format","enableCommand","change","value","find","commandParams","CodeBlock","indentCodeBlock","afterInit","registerDescriptionCallback","codeBlock","TrackChangesEditing","language","checkChild","schema","model","commands","formatBlock","config","selection","forceValue","isLimit","ELEMENT_CODE_BLOCK","registerElementLabel","name","document","getSelectedBlocks","outdentCodeBlock","from","parent","*Format:* %0"];var Fs,Ps;Fs=Os,Ps=494,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1d")](){const t=this[Ds("0xf")];if(!t[Ds("0xe")].has(Ds("0x1b")))return;const e=t[Ds("0xe")].get(Ds("0x20")),n=t.locale,o=t[Ds("0x0")].get(Ds("0x1f"))[Ds("0x11")],s=t[Ds("0x25")].get("codeBlock");e[Ds("0x16")](Ds("0x1c")),e.enableCommand(Ds("0x9")),e[Ds("0x16")]("codeBlock",((n,r={})=>{const i=t.model,a=t[Ds("0x24")][Ds("0x7")][Ds("0x1")],x=r&&void 0!==r[Ds("0x2")]?r[Ds("0x2")]:!s[Ds("0x18")];let c;r[Ds("0x21")]||(r[Ds("0x21")]=o[0][Ds("0x21")]),c=x?Array[Ds("0xa")](a[Ds("0x8")]())[Ds("0x10")]((t=>{return js(t)||(e=t,n=i[Ds("0x23")],!e.is("rootElement")&&!n[Ds("0x3")](e)&&n[Ds("0x22")](e[Ds("0xb")],Ds("0x1f")));var e,n})):Array[Ds("0xa")](a[Ds("0x8")]())[Ds("0x10")]((t=>js(t)));const l=S(c,i);i[Ds("0x17")]((()=>{for(const t of l)e[Ds("0x13")](t,{commandName:Ds("0x1f"),commandParams:[{...r,forceValue:x}],formatGroupId:"blockName"})}))})),e[Ds("0x14")][Ds("0x5")](Ds("0x1f"),(t=>Yo(n,Ds("0x4"),t))),e[Ds("0x14")][Ds("0x1e")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x26")==s&&r&&"codeBlock"==r[Ds("0xd")]){const t=r[Ds("0x1a")][0][Ds("0x21")],s=e(o[Ds("0x19")]((e=>e[Ds("0x21")]===t)).label);return r.commandParams[0][Ds("0x2")]?{type:"format",content:Yo(n,Ds("0xc"),Yo(n,Ds("0x4"),1)+" ("+s+")")}:{type:Ds("0x15"),content:Yo(n,Ds("0x12"),Yo(n,Ds("0x4"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x6")]}const Us=["TrackChangesEditing","get","addCommentThread","plugins","enableCommand","afterInit","editor"];var Gs,Hs;Gs=Us,Hs=142,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x3")](){const t=this[zs("0x4")];t[zs("0x1")].has("CommentsEditing")&&t[zs("0x1")][zs("0x6")](zs("0x5"))[zs("0x2")](zs("0x0"))}}var Vs=n(181);const Ks=["lock","end","writer","mapper","selection","document","unbindElementFromMarkerName","get","requires","$graveyard","buffer","remove","isCollapsed","detach","createRange","editing","markerName","bind","downcastDispatcher","high","TrackChangesEditing","forward","root","unit","getFirstRange","uiElement","model","enqueueChange","delete","init","deleteForward","unlock","showSuggestionHighlights","start","enableCommand","rootName","editor","merge","addMarker:suggestion:deletion","setSelection"];var qs,Xs;qs=Ks,Xs=374,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]}[$s("0xf")](){const t=this[$s("0x16")],e=t.plugins[$s("0x21")]($s("0x6"));e[$s("0x14")]($s("0xe"));const n=t.commands[$s("0x21")]($s("0x10"));e.enableCommand("deleteForward",((e,o={})=>{const s=t[$s("0xc")].createSelection(t[$s("0xc")][$s("0x1f")][$s("0x1e")]);s[$s("0x26")]&&t[$s("0xc")].modifySelection(s,{direction:$s("0x7"),unit:o[$s("0x9")]});const r=s[$s("0xa")](),a=i.LiveRange.fromRange(r);let x;e(o),x=$s("0x23")==a[$s("0x8")][$s("0x15")]?t[$s("0xc")].createRange(r.start):t[$s("0xc")][$s("0x0")](a[$s("0x13")],a.end),a[$s("0x27")](),t[$s("0xc")][$s("0xd")](n[$s("0x24")].batch,(t=>{n[$s("0x24")][$s("0x1a")](),t[$s("0x19")](t[$s("0x0")](x[$s("0x1b")])),n[$s("0x24")][$s("0x11")]()}))})),t[$s("0x1")][$s("0x4")].on("addMarker:suggestion:deletion",hs(t,"merge"),{priority:"high"}),t.data[$s("0x4")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x12")]&&hs(t,$s("0x17"),{showActiveMarker:!1})[$s("0x3")](this)(e,n,o)}),{priority:$s("0x5")}),t.editing[$s("0x4")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[$s("0x1d")].markerNameToElements(e.markerName);if(o)for(const t of o)t.is($s("0xb"))&&(n[$s("0x1d")][$s("0x20")](t,e[$s("0x2")]),n[$s("0x1c")][$s("0x25")](t))}),{priority:$s("0x5")})}}const Qs=["splitListItemBefore","editor","ELEMENT_NUMBERED_LIST","listType","model","get","createRange","registerElementLabel","ELEMENT_","fromRange","outdentList","mergeListItemBackward","*Indent:* %0","*Merge:* %0","DocumentListEditing","DocumentListUtils","createPositionAt","registerDescriptionCallback","listItemId","map","findIndex","commandName","push","has","plugins","after","forceValue","schema","hasAttribute","*Format:* insert into %0","commands","afterInit","getAttribute","documentList","*Outdent:* %0","refresh","locale","_suggestionFactory","setSelection","document","getSelectedBlocks","_LIST","indentList","mergeListItemForward","value","toUpperCase","nodeAfter","start","splitListItemAfter","selection","before","markBlockFormat","*Format:* remove from %0","commandParams","ELEMENT_LIST_ITEM","parent","ELEMENT_BULLETED_LIST","isObject","listIndent","deletion","enableCommand","slice","add","expandListBlocksToCompleteList","change","_descriptionFactory","numberedList","formatBlock","TrackChangesEditing","nextSibling","end","registerCustomCallback","from","format","getFirstRange","getRanges","*Change to:* %0","bulletedList","markMultiRangeBlockFormat"];var Zs,Ys;Zs=Qs,Ys=477,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x4d")];if(!t[tr("0x15")][tr("0x14")](tr("0xb")))return;const e=t[tr("0x21")],n=t.plugins[tr("0x2")](tr("0x41")),o=t.plugins[tr("0x2")](tr("0xc"));function s(e){return()=>{const s=t[tr("0x1b")][tr("0x2")](e);let r=Array[tr("0x45")](t[tr("0x1")][tr("0x24")][tr("0x2e")][tr("0x25")]());if(x(e)){r=o[tr("0x3c")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x1")][tr("0x3d")]((()=>{n[tr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x29")]}],formatGroupId:"listType"},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x45")](t);const n=e[tr("0x11")]((t=>!t[tr("0x19")](tr("0xf"))));return n>-1&&(e=e[tr("0x3a")](0,n)),e}(t.model.document.selection[tr("0x25")]()),s=o[o.length-1],r=t[tr("0x1")][tr("0x18")].isObject(s)?tr("0x16"):tr("0x43"),i=t[tr("0x1")][tr("0x3")](t.model[tr("0xd")](o[0],"before"),t[tr("0x1")].createPositionAt(s,r));t[tr("0x1")].change((()=>{n[tr("0x30")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x0")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x42")];for(;t&&t[tr("0x1d")](tr("0x37"))>n[tr("0x1d")](tr("0x37"));)e[tr("0x3b")](t),t=t[tr("0x42")]}return Array[tr("0x45")](e)}(o))}))}}function a(e){return()=>{const o=t[tr("0x1")][tr("0x24")].selection[tr("0x25")]().next()[tr("0x29")],s=t.model[tr("0xd")](o,tr("0x2f")),r=t[tr("0x1")][tr("0xd")](o,0),i=t.model[tr("0x3")](s,r);t[tr("0x1")][tr("0x3d")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function x(e){const n=t[tr("0x1b")][tr("0x2")]("bulletedList")[tr("0x29")],o=t[tr("0x1b")][tr("0x2")](tr("0x3f")).value;return tr("0x3f")===e?n:o}n[tr("0x39")](tr("0x3f"),s(tr("0x3f"))),n.enableCommand(tr("0x4a"),s(tr("0x4a"))),n[tr("0x39")](tr("0x27"),r(tr("0x27"))),n.enableCommand(tr("0x7"),r(tr("0x7"))),n[tr("0x39")](tr("0x2d"),a(tr("0x2d"))),n.enableCommand(tr("0x4c"),a(tr("0x4c"))),n._descriptionFactory[tr("0x4")]((function(e){const n=!t[tr("0x1")][tr("0x18")][tr("0x36")](e),o=e.previousSibling,s=e[tr("0x42")],r=e[tr("0x1d")](tr("0xf")),i=!o||o[tr("0x1d")]("listItemId")!==r,a=!s||s.getAttribute(tr("0xf"))!==r;return n&&Boolean(r)&&i&&a}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x3e")][tr("0xe")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x12")]){case tr("0x4a"):r=n[tr("0x32")][0][tr("0x17")],i=x(n.commandName),o=tr(r?"0x1a":"0x31"),i&&(o="*Change to:* %0"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x35")))};break;case tr("0x3f"):r=n.commandParams[0][tr("0x17")],i=x(n[tr("0x12")]),o=r?"*Format:* insert into %0":tr("0x31"),i&&(o=tr("0x49")),s={type:tr("0x46"),content:Yo(e,o,Yo(e,tr("0x4e")))};break;case tr("0x27"):o=tr("0x9"),s={type:tr("0x46"),content:Yo(e,o,Yo(e,tr("0x33")))};break;case"outdentList":o=function(t){const e=t[tr("0x47")]();let n=e.start[tr("0x2b")];for(;n&&e.containsItem(n);){if(n[tr("0x1d")]("listIndent")>0)return!1;n=n[tr("0x42")]}return!0}(t)?Yo(e,tr("0x31"),Yo(e,function(t){const e=t[tr("0x47")]().start.nodeAfter;return tr("0x5")+e[tr("0x1d")](tr("0x0"))[tr("0x2a")]()+tr("0x26")}(t))):Yo(e,tr("0x1f"),Yo(e,tr("0x33"))),s={type:tr("0x46"),content:o};break;case tr("0x8"):case tr("0x28"):!1===n.multipleBlocks&&(o=tr("0xa"),s={type:tr("0x38"),content:Yo(e,o,Yo(e,tr("0x33")))})}return s})),n[tr("0x22")][tr("0x44")](tr("0x40"),tr("0x1e"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x2c")][tr("0x2b")]===n[tr("0x43")][tr("0x34")]&&(n=t.model[tr("0x3")](t[tr("0x1")].createPositionAt(n[tr("0x2c")][tr("0x2b")],0))),o[tr("0x13")](n);t[tr("0x1")][tr("0x3d")]((e=>{const s=t[tr("0x1")].document[tr("0x2e")],r=Array[tr("0x45")](s[tr("0x48")]())[tr("0x10")]((t=>i.LiveRange[tr("0x6")](t)));e[tr("0x23")](o),t[tr("0x1b")][tr("0x2")](n.commandName)[tr("0x20")](),n.commandParams[tr("0x13")]({forceDefaultExecution:!0}),t.execute(n[tr("0x12")],...n.commandParams),e[tr("0x23")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["commands","parent","markInsertion","addMarker:suggestion:insertion","fire","enterBlock","plugins","end","downcastDispatcher","get","writer","showSuggestionHighlights","bind","setSelection","markerName","mapper","createRange","afterExecute","nextSibling","change","model","init","high","hasClass","selection","document","unbindElementFromMarkerName","editing","getFirstPosition","remove","TrackChangesEditing","enableCommand","markerNameToElements","removeMarker:suggestion:insertion","requires","getFirstRange"];var sr,rr;sr=or,rr=356,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class ar extends t.Plugin{static get[ir("0x2")](){return[nr.Enter]}[ir("0x19")](){const t=this.editor,e=t[ir("0xa")][ir("0xd")](ir("0x22")),n=t[ir("0x4")].get("enter");e[ir("0x23")]("enter",(()=>{t[ir("0x18")][ir("0x17")]((o=>{const s=t[ir("0x18")][ir("0x1d")][ir("0x1c")],r=s[ir("0x20")](),a=i.LiveRange.fromRange(s[ir("0x3")]());if(n[ir("0x9")](o)){const n=t[ir("0x18")].createPositionAt(r[ir("0x5")][ir("0x16")],0),s=o[ir("0x14")](r,n);e[ir("0x6")](s)}else o[ir("0x11")](o.createRange(a[ir("0xb")]));a.detach(),n[ir("0x8")](ir("0x15"),{writer:o})}))})),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0x1a")}),t[ir("0x1f")][ir("0xc")].on(ir("0x1"),((t,e,n)=>{const o=n[ir("0x13")][ir("0x0")](e.markerName);if(o)for(const t of o)t[ir("0x1b")]("ck-suggestion-marker-split")&&(n[ir("0x13")][ir("0x1e")](t,e[ir("0x12")]),n[ir("0xe")][ir("0x21")](t))}),{priority:ir("0x1a")}),t.data[ir("0xc")].on(ir("0x7"),((e,n,o)=>{o.options[ir("0xf")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x10")](this)(e,n,o)}),{priority:ir("0x1a")})}}const xr=["getMarkersGroup","model","get","createPositionAt","has","markers","filter","handleFindCommand","FindAndReplaceEditing","end","bind","createRange","enableCommand","string","findPrevious","editor","replace","_isInDeletionRange","getIntersection","replaceAll","item"];var cr,lr;cr=xr,lr=480,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return xr[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x12")].plugins[dr("0x7")](dr("0xb")))return;const t=this[dr("0x12")].plugins[dr("0x5")]("TrackChangesEditing");t[dr("0xf")]("find",this[dr("0xa")][dr("0xd")](this)),t[dr("0xf")]("findNext"),t[dr("0xf")](dr("0x11")),t[dr("0xf")](dr("0x13")),t.enableCommand(dr("0x1"))}[dr("0xa")](t,e,n={}){const o=this.editor.plugins[dr("0x5")]("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x10")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x9")]((e=>!1===this[dr("0x14")](e,t[dr("0x2")])))),n)}[dr("0x14")](t,e){const n=this[dr("0x12")][dr("0x4")][dr("0xe")](this[dr("0x12")][dr("0x4")][dr("0x6")](e,t.start),this[dr("0x12")][dr("0x4")][dr("0x6")](e,t[dr("0xc")]));for(const t of this[dr("0x12")][dr("0x4")][dr("0x8")][dr("0x3")]("suggestion:deletion"))if(null!==n[dr("0x0")](t.getRange()))return!0;return!1}}const gr=["title","locale","*Set font color:* %0","FontSizeEditing","trim","format","FontFamilyEditing","toLowerCase","afterInit","*Set font size:* %0","fontColor.colors","TrackChangesEditing","fontFamily","*Set font family:* %0","getRanges","*Reset font family*","from","fontBackgroundColor","FontBackgroundColorEditing","*Reset font background color*","_descriptionFactory","editor","FontColorEditing","find","commandParams","selection","config","*Set font background color:* %0","FontSize","plugins","value","*Reset font color*","markInlineFormat","fontBackgroundColor.colors","commandName","fontSize","*Reset font size*","change","model","registerDescriptionCallback","fontSize.options","get"];var mr,fr;mr=gr,fr=395,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1c"),commandName:hr("0x12")},{pluginName:hr("0x1f"),commandName:hr("0x25")},{pluginName:hr("0x5"),commandName:"fontColor"},{pluginName:hr("0x1"),commandName:hr("0x0")}];class br extends t.Plugin{[hr("0x21")](){const t=this[hr("0x4")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x4")][hr("0xc")].has(t)&&this._enableCommand(e);this[hr("0x4")][hr("0xc")][hr("0x18")](hr("0x24"))[hr("0x3")][hr("0x16")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x12")==o.commandName){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=n(this[hr("0x4")].plugins[hr("0x18")](hr("0xb")).normalizeSizeOptions(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x17")))[hr("0x6")]((t=>t[hr("0x15")]==e))[hr("0x19")])[hr("0x20")]();return{type:"format",content:Yo(t,hr("0x22"),o)}}return{type:hr("0x1e"),content:Yo(t,hr("0x13"))}}if(hr("0x25")==o.commandName){const e=o[hr("0x7")][0].value;return e?{type:hr("0x1e"),content:Yo(t,hr("0x26"),e)}:{type:hr("0x1e"),content:Yo(t,hr("0x28"))}}if("fontColor"==o[hr("0x11")]){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x23")))[hr("0x6")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x1e"),content:Yo(t,hr("0x1b"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0xe"))}}if(hr("0x0")==o[hr("0x11")]){const e=o[hr("0x7")][0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x4")][hr("0x9")][hr("0x18")](hr("0x10")))[hr("0x6")]((t=>t[hr("0x15")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x20")]()),{type:hr("0x1e"),content:Yo(t,hr("0xa"),i)[hr("0x1d")](),color:{value:e,title:i||r}}}return{type:hr("0x1e"),content:Yo(t,hr("0x2"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0xc")].get(hr("0x24")).enableCommand(t,((n,o={})=>{const s=e[hr("0x15")].document[hr("0x8")],r=o[hr("0xd")];s.isCollapsed?n(o):e[hr("0x15")][hr("0x14")]((()=>{const n=Array[hr("0x29")](s[hr("0x27")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x15")]);for(const o of n)e[hr("0xc")][hr("0x18")](hr("0x24"))[hr("0xf")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["label","plugins","markInlineFormat","getAttributes","getRanges","getSelectedBlocks","_descriptionFactory","commands","fontColor","commandName","word","commandParams","get","fontBackgroundColor","length","createSelection","document","fontSize.options","locale","copyFormat","join","modifySelection","push","fontSize","isBlock","getItems","getAttributeProperties","format","afterInit","title","schema","editor","TrackChangesEditing","model","find","entries","toUpperCase","forward","selection","keys","charAt","toLowerCase","change","getFirstPosition","split","enableCommand","pasteFormat","config","isCollapsed"];var _r,Tr;_r=Er,Tr=145,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x1e")](){const t=this[Cr("0x21")],n=t.model,o=n[Cr("0x12")][Cr("0x28")],s=t.plugins[Cr("0xe")]("TrackChangesEditing"),r=t[Cr("0x14")],i=t.commands.get("copyFormat"),a=t[Cr("0x9")][Cr("0xe")]("pasteFormat");i&&a&&(s[Cr("0x2f")](Cr("0x30"),((t,r={})=>{const i=r;n[Cr("0x2c")]((()=>{const t=Array.from(o[Cr("0x6")]()),r=o[Cr("0x1")]?[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("0x5")]()){const t=e[Cr("0x1c")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x6")]())for(const t of e[Cr("0x1b")]())!n[Cr("0x1a")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x7")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x20")]))||0!==Object[Cr("0x29")](i).length)for(const t of r)s[Cr("0x4")](t,{commandName:Cr("0x30"),commandParams:[i]})}))})),s[Cr("0x8")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x30")===n[Cr("0xb")]){const e=[],o=n[Cr("0xd")][0];for(const[n,s]of Object[Cr("0x25")](o))e[Cr("0x18")](Ar(t,n,s));return e[Cr("0x10")]?{type:"format",content:Yo(r,"*Set format to:* %0",e[Cr("0x16")](", "))}:{type:Cr("0x1d"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x3")][Cr("0xe")](Cr("0x22"))[Cr("0x2f")](Cr("0x15")))}}function kr(t,e){const n=t[Cr("0x11")](e);t[Cr("0x17")](n,{unit:Cr("0xc"),direction:"backward"});const o=n[Cr("0x2d")]();t[Cr("0x17")](n,{unit:Cr("0xc"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x14")].t,r=e[Cr("0x2e")](/(?=[A-Z])/)[Cr("0x16")](" "),i=o(r[Cr("0x2a")](0)[Cr("0x26")]()+r.slice(1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0xa")===e||Cr("0xf")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x0")][Cr("0xe")]("fontColor.colors"))[Cr("0x24")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x2")]).toLowerCase():n)+")"}if(Cr("0x19")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x3")][Cr("0xe")]("FontSize").normalizeSizeOptions(t[Cr("0x0")][Cr("0xe")](Cr("0x13")))[Cr("0x24")]((t=>t[Cr("0x23")]==n));return i+" ("+(e?o(e[Cr("0x1f")])[Cr("0x2b")]():n)+")"}return i+" ("+n+")"}const vr=["paragraph","get","commandParams","HeadingEditing","TrackChangesEditing","afterInit","format","ELEMENT_HEADING","name","title","has","parent","model","_descriptionFactory","filter","find","from","config","locale","registerDescriptionCallback","checkChild","enableCommand","commandName","ELEMENT_HEADING_CUSTOM","value","document","heading","blockName","getSelectedBlocks","formatBlock","*Change to:* %0","isObject","editor"];var Rr,Sr;Rr=vr,Sr=146,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x18")](){const t=this[Ir("0x12")],e=t[Ir("0x4")],n=t[Ir("0x3")][Ir("0x14")]("heading.options");if(!t.plugins[Ir("0x1d")](Ir("0x16")))return;const o=t.plugins.get(Ir("0x17"));o[Ir("0x7")](Ir("0xc"),((e,n)=>{const s=n.value,r=Array[Ir("0x2")](this.editor[Ir("0x1f")][Ir("0xb")].selection[Ir("0xe")]())[Ir("0x0")]((t=>{return e=t,n=s,(o=this[Ir("0x12")][Ir("0x1f")].schema)[Ir("0x6")](e[Ir("0x1e")],n)&&!o[Ir("0x11")](e)&&e[Ir("0x1b")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0xc"),commandParams:[n],formatGroupId:Ir("0xd")},fs(t))}))}));for(const t of n)Ir("0x13")!=t[Ir("0x1f")]&&o[Ir("0x20")].registerElementLabel(t[Ir("0x1f")],(e=>{const n=Nr(t[Ir("0x1f")]);return null!==n?s(e,n):r(e,t[Ir("0x1c")])}));function s(t,n){return Yo(e,Ir("0x1a"),[t,n])}function r(t,n){return Yo(e,Ir("0x9"),[t,n])}o._descriptionFactory[Ir("0x5")]((t=>{const{type:o,data:i}=t;if(Ir("0xf")==o&&i&&"heading"==i[Ir("0x8")]){const t=i[Ir("0x15")][0][Ir("0xa")],o=Nr(t);if(null!==o)return{type:Ir("0x19"),content:Yo(e,Ir("0x10"),s(1,o))};const a=n[Ir("0x1")]((e=>e[Ir("0x1f")]===t))[Ir("0x1c")];return{type:Ir("0x19"),content:Yo(e,Ir("0x10"),r(1,a))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const wr=["formatInline","config","_descriptionFactory","HighlightEditing","title","has","toLowerCase","afterInit","commandName","plugins","get","find","TrackChangesEditing","highlight","format","createRange","document","isCollapsed","backward","registerDescriptionCallback","push","markInlineFormat","*Set highlight:* %0","getLastMatchingPosition","model","getRanges","selection","getAttribute","locale","*Remove highlight*","enableCommand","commandParams","highlight.options","value"];var Mr,Or;Mr=wr,Or=147,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this.editor;if(!t.plugins[Fr("0x1c")](Fr("0x1a")))return;const e=t[Fr("0x20")][Fr("0x21")](Fr("0x1"));e[Fr("0x13")](Fr("0x2"),((n,o={})=>{const s=t[Fr("0xd")][Fr("0x5")][Fr("0xf")],r=s[Fr("0x10")](Fr("0x2"));let i=o[Fr("0x16")],a=[];if(s[Fr("0x6")]){const e=s.getFirstPosition();if(!s.hasAttribute(Fr("0x2")))return void n(o);{const n=t=>t.item[Fr("0x10")](Fr("0x2"))===r,o=e[Fr("0xc")](n,{direction:Fr("0x7")}),s=e.getLastMatchingPosition(n);a=[t[Fr("0xd")][Fr("0x4")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xe")]())i?a[Fr("0x9")](e):a[Fr("0x9")](...ms(Fr("0x2"),e,t[Fr("0xd")]));t[Fr("0xd")].change((()=>{for(const t of a)e[Fr("0xa")](t,{commandName:Fr("0x2"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x11")];e[Fr("0x19")][Fr("0x8")]((e=>{const{type:o,data:s}=e;if(Fr("0x17")==o&&s&&"highlight"==s[Fr("0x1f")]){const e=n.t,o=s[Fr("0x14")][0].value;if(o){const s=t[Fr("0x18")].get(Fr("0x15"))[Fr("0x0")]((t=>t[Fr("0xd")]==o)),r=e(s[Fr("0x1b")])[Fr("0x1d")]();return{type:Fr("0x3"),content:Yo(n,Fr("0xb"),r),color:{value:s.color,title:s[Fr("0x1b")]}}}return{type:Fr("0x3"),content:Yo(n,Fr("0x12"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["elementToStructure","afterInit","conversion","horizontalLine","createEmptyElement","locale","showSuggestionHighlights","createContainerElement","enableCommand","TrackChangesEditing","editor","insert","addClass","has","get","createPositionAt","dataDowncast","_descriptionFactory","plugins","for","registerElementLabel","ck-horizontal-line"];var Br,jr;Br=Dr,jr=316,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xf")](){const t=this[Ur("0x2")];if(!t.plugins[Ur("0x5")]("HorizontalLineEditing"))return;t[Ur("0xa")][Ur("0x6")](Ur("0x1"))[Ur("0x0")](Ur("0x11"));const e=t[Ur("0xa")][Ur("0x6")](Ur("0x1")),n=t[Ur("0x13")];e[Ur("0x9")][Ur("0xc")](Ur("0x11"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x10")][Ur("0xb")](Ur("0x8"))[Ur("0xe")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x14")])return null;const o=e[Ur("0x15")]("div"),s=e[Ur("0x12")]("hr");return e[Ur("0x4")](Ur("0xd"),o),e[Ur("0x3")](e[Ur("0x7")](o,0),s),o},converterPriority:"high"})}}const Hr=["getSelectedElement","locale","document","ELEMENT_HTML_EMBED","commandName","format","view","HtmlEmbed","get","selection","has","editor","value","registerDescriptionCallback","getAttribute","TrackChangesEditing","_descriptionFactory","model","markBlockFormat","rawHtml","getCustomProperty","element","rawHtmlApi","enableCommand","afterInit","htmlEmbed","plugins","change","cancel"];var zr,Wr;zr=Hr,Wr=460,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1c")](){const t=this[Vr("0xf")];if(!t[Vr("0x1")][Vr("0xe")](Vr("0xb")))return;const e=t[Vr("0x1")].get(Vr("0x13")),n=t[Vr("0x5")],o=t.editing[Vr("0xa")][Vr("0x6")].selection;e[Vr("0x14")].registerElementLabel("rawHtml",(t=>Yo(n,Vr("0x7"),t))),t[Vr("0x1")][Vr("0xc")](Vr("0x13"))[Vr("0x1b")](Vr("0x0"),((n,s)=>{const r=t[Vr("0x15")],i=r[Vr("0x6")][Vr("0xd")];r[Vr("0x2")]((()=>{const t=function(t){const e=t[Vr("0x4")]();return e&&e.is(Vr("0x19"),Vr("0x17"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x12")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e[Vr("0x16")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Vr("0x4")]()[Vr("0x18")](Vr("0x1a"))[Vr("0x3")]())}))})),e[Vr("0x14")][Vr("0x11")]((t=>{const{data:e}=t;if(e&&Vr("0x0")==e[Vr("0x8")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x9"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["forward","shouldConvertImageType","_suggestionFactory","schema","caption","ImageResize","filter","ImageStyleEditing","markInlineFormat","editor","next","markBlockFormat","imageStylePreApply","addObject","registerCustomCallback","imageStyle","ELEMENT_CAPTION","backward","convertBlockImageToInline","isBlockImage","ImageCaptionUtils","discard","isInlineImage","join","ImageUtils","FORMAT_SIDE_IMAGE","getClosestSelectedImageElement","isCollapsed","length","model","document","imageTypeBlock","findIndex","alt","nodeAfter","getFirstRange","getContainedElement","nodeBefore","has","chain","detach","forEach","commandParams","imageCaption","insertImage","isInContent","getAttribute","imageStylePostApply","ImageCaptionEditing","getChangedMarkers","getNearestSelectionRange","value","selection","imageTextAlternative","type","from","formatInline","author","registerPostFixer","markDeletion","find","Users","formatBlock","suggestion","*Set image width:* %0","imageInline","convertInlineImageToBlock","resizeImage","*Format:* %0","end","isBefore","ImageUploadEditing","toLowerCase","_findSuggestions","enableCommand","getSuggestionCallback","commandName","accept","createRangeOn","subType","locale","getSuggestion","differ","afterInit","fromPosition","getSuggestions","removeObject","newValue","ImageTextAlternativeEditing","discardSuggestion","deletion","get","markInsertion","plugins","_descriptionFactory","*Reset image width*","registerElementLabel","*Remove image text alternative*","change","format","getCaptionFromImageModelElement","createRange","commands","uploadImage","imageTypeInline","newRange","toggleImageCaption","hasSuggestion","registerDescriptionCallback","ELEMENT_IMAGE","isOwn","isEqual","start","insertion","element","head","refresh","normalizedStyles","commandReversedParams","ImageBlockEditing","width","Block image to inline image"];var Xr,$r;Xr=qr,$r=479,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x5c")](){const t=this[Jr("0x12")];if(!t[Jr("0x66")][Jr("0x2f")]("ImageEditing"))return;const n=t[Jr("0x66")][Jr("0x64")]("TrackChangesEditing"),o=t[Jr("0x66")][Jr("0x64")](Jr("0x21")),s={},r=t[Jr("0x59")];if(n[Jr("0x53")](Jr("0x35")),n._descriptionFactory.registerElementLabel("imageBlock",(t=>Yo(r,Jr("0x76"),t))),n[Jr("0x67")].registerElementLabel(Jr("0x4a"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x67")][Jr("0x69")](Jr("0xd"),(()=>Yo(r,Jr("0x19")))),t[Jr("0x66")][Jr("0x2f")](Jr("0x50"))&&n[Jr("0x53")](Jr("0x70")),t[Jr("0x66")][Jr("0x2f")](Jr("0x6"))&&t[Jr("0x66")][Jr("0x2f")]("ImageInlineEditing")&&(n[Jr("0x53")](Jr("0x71"),((e,s)=>{const r=o[Jr("0x23")](t.model[Jr("0x27")][Jr("0x3d")]);t[Jr("0x26")].change((()=>{n[Jr("0x14")](r,{commandName:Jr("0x71"),commandParams:[s]},[],Jr("0x1b"))}))})),n[Jr("0x53")](Jr("0x28"),((e,s)=>{t.model[Jr("0x6b")]((r=>{let a=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]),x=r[Jr("0x57")](a);const c=i.LivePosition[Jr("0x5d")](x[Jr("0x79")],"toPrevious"),l=i.LivePosition[Jr("0x5d")](x.end,"toNext");n.forceDefaultExecution((()=>e(s))),a=o.getClosestSelectedImageElement(t.model.document[Jr("0x3d")]),x=r[Jr("0x57")](a);const d=r[Jr("0x6e")](c,l);c[Jr("0x31")](),l[Jr("0x31")](),n.markBlockFormat(a,{commandName:Jr("0x71"),commandParams:[]},[],Jr("0x4b")),d.start.isBefore(x[Jr("0x79")])&&n[Jr("0x65")](r.createRange(d[Jr("0x79")],x[Jr("0x79")]),"convertInlineImageToBlock"),x.end[Jr("0x4f")](d[Jr("0x4e")])&&n[Jr("0x65")](r.createRange(x.end,d.end),Jr("0x4b"))}))})),n._suggestionFactory[Jr("0x17")]("formatBlock",Jr("0x4b"),"join",(()=>{})),n._suggestionFactory[Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x56"),(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x1e"),n._suggestionFactory[Jr("0x54")]("formatBlock","",Jr("0x56"))),n._suggestionFactory[Jr("0x17")](Jr("0x0"),Jr("0x4b"),Jr("0x20"),(()=>{})),n[Jr("0xb")].registerCustomCallback(Jr("0x0"),Jr("0x4b"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x0"),"",Jr("0x1e"));let s=e.start,r=e[Jr("0x4e")];const i=t[Jr("0x26")][Jr("0xc")].getNearestSelectionRange(s,Jr("0x1a")),a=t[Jr("0x26")][Jr("0xc")][Jr("0x3b")](r,Jr("0x9"));i[Jr("0x24")]&&(s=i[Jr("0x79")]),a[Jr("0x24")]&&(r=a[Jr("0x4e")]),o([t.model[Jr("0x6e")](s,r)])})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x4b"),Jr("0x30"),c),n[Jr("0xb")].registerCustomCallback("insertion",Jr("0x4b"),"chain",c)),t[Jr("0x66")][Jr("0x2f")](Jr("0x39"))&&(n.enableCommand(Jr("0x73"),((e,s)=>{const r=t[Jr("0x66")][Jr("0x64")](Jr("0x1d"));let i=o.getClosestSelectedImageElement(t.model[Jr("0x27")][Jr("0x3d")]),a=r[Jr("0x6d")](i);t[Jr("0x26")].change((()=>{if(a)return void n[Jr("0x44")](t[Jr("0x26")][Jr("0x57")](a));const x=o[Jr("0x1c")](i);e(s),i=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")].selection),a=r[Jr("0x6d")](i),n.markInsertion(t.model[Jr("0x57")](a),x?null:Jr("0x34"))}))})),n[Jr("0xb")].registerCustomCallback("insertion",Jr("0x34"),Jr("0x30"),c)),t[Jr("0x66")][Jr("0x2f")](Jr("0x10"))){n[Jr("0x53")](Jr("0x18"),((s,r)=>{const i=t[Jr("0x66")][Jr("0x64")](Jr("0x46")).me,a=t[Jr("0x6f")][Jr("0x64")](Jr("0x18"));let x=o[Jr("0x23")](t[Jr("0x26")].document[Jr("0x3d")]),c=t[Jr("0x26")][Jr("0x57")](x),l=a[Jr("0x3c")];if(l==r[Jr("0x3c")])return;const d={commandName:Jr("0x18"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x6b")]((()=>{if(n[Jr("0x5e")]().filter((t=>t[Jr("0x36")]&&i==t[Jr("0x42")]&&(Jr("0x47")==t[Jr("0x3f")]||Jr("0x41")==t[Jr("0x3f")])&&("imageStylePreApply"==t.subType||"imageStylePostApply"==t.subType)&&t.getFirstRange().isEqual(c)))[Jr("0x32")]((t=>n[Jr("0x62")](t[Jr("0x2")]))),x=o[Jr("0x23")](t.model[Jr("0x27")].selection),c=t[Jr("0x26")][Jr("0x57")](x),a.refresh(),t[Jr("0x6f")].get("imageTypeInline")[Jr("0x3")](),t[Jr("0x6f")].get(Jr("0x28"))[Jr("0x3")](),l=a[Jr("0x3c")],l!=r[Jr("0x3c")])return o[Jr("0x1f")](x)&&a[Jr("0xa")](r[Jr("0x3c")],x)?(s(r),x=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]),void n[Jr("0x14")](x,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x15"))):void(o[Jr("0x1c")](x)?n.markBlockFormat(x,d,[],Jr("0x38")):n[Jr("0x11")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x66")][Jr("0x64")](Jr("0x10"))[Jr("0x4")])s[e.name]=e.title[Jr("0x51")]();n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x20"),(()=>{})),n[Jr("0xb")].registerCustomCallback(Jr("0x47"),"imageStylePostApply","join",(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x41"),Jr("0x38"),Jr("0x20"),(()=>{})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x56"),(()=>{})),n[Jr("0xb")][Jr("0x17")]("formatBlock",Jr("0x15"),Jr("0x1e"),((t,e)=>{n[Jr("0xb")].getSuggestionCallback(Jr("0x47"),"","accept")(t,{commandName:e[Jr("0x55")],commandParams:e[Jr("0x5")]})})),n[Jr("0xb")][Jr("0x17")](Jr("0x47"),Jr("0x15"),Jr("0x30"),c)}const a=[{type:Jr("0x47"),subType:Jr("0x15")},{type:Jr("0x0"),subType:Jr("0x34")},{type:Jr("0x47"),subType:Jr("0x4b")},{type:"insertion",subType:Jr("0x4b")}];function x(t,e){const s=a[Jr("0x29")]((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x58")]==n)),r=a[Jr("0x29")]((({type:t,subType:n})=>e[Jr("0x3f")]==t&&e[Jr("0x58")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x2c")](),x=e[Jr("0x2c")]();if((0==s||1==s)&&2==r&&i.isIntersecting(x))return!0;if(2==s&&3==r){const t=n[Jr("0x52")](i,Jr("0x0"))[Jr("0xf")]((({suggestion:t,meta:e})=>e[Jr("0x77")]&&Jr("0x4b")==t[Jr("0x58")]));if(t.length>1&&x.end.isEqual(i.start))return!0;if(1==t[Jr("0x25")]&&(i.start.isEqual(x[Jr("0x4e")])||i[Jr("0x4e")][Jr("0x78")](x[Jr("0x79")])))return!0}if(3==s&&3==r&&i.start[Jr("0x4f")](x.start)){const t=i[Jr("0x4e")][Jr("0x2b")],e=x[Jr("0x79")][Jr("0x2e")];return o[Jr("0x1c")](t)&&t===e}return!1}function c(t,e){return x(t,e)?[t,e]:x(e,t)?[e,t]:null}t[Jr("0x26")].document[Jr("0x43")]((()=>{let e=!1;const s=Array[Jr("0x40")](t[Jr("0x26")][Jr("0x27")][Jr("0x5b")][Jr("0x3a")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:a,id:x}=n._splitMarkerName(t);if(Jr("0x48")==s&&n[Jr("0x74")](x)){if(Jr("0x47")==i&&("imageStylePreApply"==a||Jr("0x38")==a)){const t=n.getSuggestion(x);if(r[Jr("0x72")]){const s=t[Jr("0x2c")]()[Jr("0x2d")]();if(o[Jr("0x1c")](s))continue;n[Jr("0x62")](t),e=!0}}if(Jr("0x0")==i&&Jr("0x34")==a&&!r[Jr("0x72")]){const t=n[Jr("0x5a")](x);t.next&&t[Jr("0x13")][Jr("0x36")]&&(n[Jr("0x62")](t[Jr("0x13")]),e=!0)}}}return e})),t.plugins[Jr("0x2f")](Jr("0xe"))&&n[Jr("0x53")](Jr("0x4c"),((e,s)=>{const r=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")][Jr("0x3d")]);r[Jr("0x37")]("width")!=s[Jr("0x7")]&&t[Jr("0x26")][Jr("0x6b")]((()=>{n[Jr("0x14")](r,{commandName:Jr("0x4c"),commandParams:[s]})}))})),t.plugins.has(Jr("0x61"))&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o[Jr("0x23")](t[Jr("0x26")][Jr("0x27")].selection);(r.hasAttribute(Jr("0x2a"))?r[Jr("0x37")]("alt"):"")!=s[Jr("0x60")]&&t[Jr("0x26")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x3e"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x75")]((t=>{if(a[Jr("0x45")]((({type:e,subType:n})=>t[Jr("0x3f")]==e&&t[Jr("0x58")]==n)))return t.previous?{}:void 0})),n[Jr("0x67")][Jr("0x75")]((t=>{if("insertion"==t.type||Jr("0x63")==t[Jr("0x3f")]){const e=t[Jr("0x2d")]();if(e&&e.is(Jr("0x1"),Jr("0xd")))return{type:"insertion"==t.type?Jr("0x16"):Jr("0x5f"),element:e,quantity:1}}})),n[Jr("0x67")][Jr("0x75")]((t=>Jr("0x47")==t[Jr("0x3f")]&&Jr("0x4b")==t[Jr("0x58")]?{type:Jr("0x6c"),content:"Inline image to block image"}:Jr("0x47")==t[Jr("0x3f")]&&"convertBlockImageToInline"==t.subType?{type:"format",content:Jr("0x8")}:void 0)),n[Jr("0x67")][Jr("0x75")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x3c")];return n="side"===t?Yo(r,Jr("0x22")):s[t]||t,{type:"format",content:Yo(r,Jr("0x4d"),n)}}if("imageTextAlternative"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x60")];return t?{type:Jr("0x6c"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x6c"),content:Yo(r,Jr("0x6a"))}}if("resizeImage"==e[Jr("0x55")]){const t=e[Jr("0x33")][0][Jr("0x7")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x49"),t)}:{type:Jr("0x6c"),content:Yo(r,Jr("0x68"))}}}var n}))}}const Zr=["getAttribute","getSuggestions","commandParams","_suggestionFactory","commandName","ImageEditing","registerCustomCallback","TrackChangesEditing","source","getContainedElement","replaceImageSource","afterInit","has","handleReplaceImageCommand","subType","discard","data","handleSuggestionDescription","formatBlock","get","src","*Format:* replace image URL","getSelectedElement","enableCommand","document","editor","getSuggestionCallback","change","model","plugins"];var Yr,ti;Yr=Zr,ti=158,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x3")](){if(!this.editor.plugins[ei("0x4")](ei("0x1b")))return;const t=this.editor.plugins[ei("0xb")](ei("0x1d"));t[ei("0xf")](ei("0x2"),((t,e)=>this[ei("0x5")](t,e))),t[ei("0x19")].registerCustomCallback(ei("0xa"),ei("0x2"),"accept",t[ei("0x19")][ei("0x12")](ei("0xa"),null,ei("0x7"))),t[ei("0x19")][ei("0x1c")](ei("0xa"),ei("0x2"),"discard",t[ei("0x19")].getSuggestionCallback("formatBlock",null,"accept")),t._descriptionFactory.registerDescriptionCallback((t=>this[ei("0x9")](t)))}[ei("0x5")](t,e){const n=this[ei("0x11")].plugins[ei("0xb")](ei("0x1d")),o=this.editor.model[ei("0x10")].selection[ei("0xe")]();this.editor[ei("0x14")][ei("0x13")]((()=>{let s=o[ei("0x16")](ei("0xc"));const r=this.editor[ei("0x15")].get("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x1")]();if(ei("0x2")===t[ei("0x6")]&&e===o){t.author!==r&&t[ei("0x7")](),s=t[ei("0x8")][ei("0x18")][0][ei("0x0")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x2"))}))}[ei("0x9")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x1a")]){const t=ei("0xd");return{type:"format",content:Yo(this.editor.locale,t)}}}}const oi=["high","_handleImportedData","execute","editor","get","_trackChangesValueDuringImport","TrackChangesEditing","bind","Users","dataInsert","importWord","plugins","enableCommand","value","commands","_setSuggestionData","forEach","collaboration_features","listenTo","_trackChangesExecuted","trackChanges","track_changes","lowest"];var si,ri;si=oi,ri=361,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class ai extends t.Plugin{constructor(t){super(t),this[ii("0xc")]=!1,this[ii("0x3")]=!1}afterInit(){const t=this.editor,e=t[ii("0x15")][ii("0xb")](ii("0x11")),n=t[ii("0x15")][ii("0xb")](ii("0x4"));e&&(e.on(ii("0x9"),((t,[,e])=>{this[ii("0xc")]=n.value,e[ii("0x1")][ii("0x5")]=!this[ii("0xc")]}),{priority:ii("0x7")}),this[ii("0x2")](e,ii("0x10"),this._handleImportedData[ii("0xe")](this)),this[ii("0x2")](e,"dataInsert",(()=>{this[ii("0x3")]&&(n[ii("0x9")](),this[ii("0x3")]=!1)}),{priority:ii("0x6")}),t[ii("0x12")][ii("0xb")](ii("0xd"))[ii("0x13")]("importWord"))}[ii("0x8")](t,e){const{suggestions:n}=e,o=this[ii("0xa")].commands[ii("0xb")](ii("0x4")),s=o[ii("0x14")];this._trackChangesValueDuringImport!==s&&(o[ii("0x9")](),this._trackChangesExecuted=!0),n&&n[ii("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x12")][ii("0xb")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x11")}}};this[ii("0xa")].plugins[ii("0xb")]("TrackChangesEditing")[ii("0x16")](s)}))}}const xi=["has","plugins","format","outdent","afterInit","commandName","get","locale","markBlockFormat","enableCommand","document","IndentEditing","filter","getSelectedBlocks","schema","getItemLabel","editor","selection","model","_descriptionFactory","*Indent:* %0","blockIndent","change","indentBlock","*Outdent:* %0","outdentBlock"];var ci,li;ci=xi,li=209,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return xi[t-=0]};class ui extends t.Plugin{[di("0x3")](){const t=this.editor,e=t[di("0x0")][di("0x5")]("TrackChangesEditing");t[di("0x0")][di("0x19")](di("0xa"))&&(e.enableCommand("indent"),e[di("0x8")](di("0x2")));const n=t[di("0x6")];if(t[di("0x0")][di("0x19")]("IndentBlock")){for(const n of[di("0x16"),di("0x18")])e[di("0x8")](n,(()=>{const o=Array.from(this.editor[di("0x11")][di("0x9")][di("0x10")][di("0xc")]())[di("0xb")]((t=>this[di("0xf")][di("0x11")][di("0xd")].checkAttribute(t,di("0x14"))));t[di("0x11")][di("0x15")]((()=>{for(const t of o)e[di("0x7")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory.registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x16")!=o[di("0x4")]&&"outdentBlock"!=o[di("0x4")])return;const s=t.getItems()[0],r=e[di("0x12")][di("0xe")](s);return di("0x16")==o[di("0x4")]?{type:"format",content:Yo(n,di("0x13"),r)}:di("0x18")==o[di("0x4")]?{type:di("0x1"),content:Yo(n,di("0x17"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","requires","editor","get","init","plugins","input"];gi=fi,mi=340,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("0x4")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x5")][hi("0x1")][hi("0x6")](hi("0x3")).enableCommand(hi("0x2"))}}const bi=["afterInit","plugins","change","from","registerDescriptionCallback","enableCommand","getAttribute","document","format","getRanges","linkHref","isCollapsed","getFirstRange","*Set link:* %0","editor","selection","getFirstPosition","markInlineFormat","link","*Remove link*","commandName","hasAttribute","get","model","commandParams","unlink"];var Ei,_i;Ei=bi,_i=300,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x0")];if(!t[Ti("0xd")].has("LinkEditing"))return;const e=t[Ti("0xd")][Ti("0x8")]("TrackChangesEditing");e[Ti("0x11")](Ti("0x4"),((n,o)=>{const s=t.model[Ti("0x13")][Ti("0x1")];let r=[];if(s[Ti("0x17")]){if(!s[Ti("0x7")](Ti("0x16")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x16"),s.getAttribute(Ti("0x16")),t[Ti("0x9")]);r=[e]}}else r=Array[Ti("0xf")](s[Ti("0x15")]());t[Ti("0x9")][Ti("0xe")]((()=>{for(const t of r)e[Ti("0x3")](t,{commandName:Ti("0x4"),commandParams:[o]})}))})),e[Ti("0x11")](Ti("0xb"),(()=>{const n=this[Ti("0x0")][Ti("0x9")],o=n[Ti("0x13")][Ti("0x1")];n[Ti("0xe")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o[Ti("0x2")](),Ti("0x16"),o[Ti("0x12")]("linkHref"),t[Ti("0x9")])]:ms("linkHref",o[Ti("0x18")](),t.model);for(const t of n)e[Ti("0x3")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory[Ti("0x10")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x4")==n[Ti("0x6")]){const t=n[Ti("0xa")][0];return{type:Ti("0x14"),content:Yo(o,Ti("0x19"),'"'+t+'"')}}return"unlink"==n[Ti("0x6")]?{type:Ti("0x14"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["listIndent","blockName","commandParams","from","registerElementLabel","schema","afterInit","value","replace","isObject","nextSibling","model","getAttribute","commands","checkChild","createPositionAt","before","ELEMENT_LIST_ITEM","change","getSelectedBlocks","plugins","todoList","document","get","List","format","paragraph","editor","todoListChecked","markBlockFormat","commandName","*Change to:* %0","*Uncheck item*","add","ELEMENT_NUMBERED_LIST","*Outdent:* %0","element","parent","filter","numberedList","checkTodoList","name","outdentList","bulletedList","enableCommand","_descriptionFactory","*Indent:* %0","todo","previousSibling","selection","has","forceValue","numbered","listItem","indentList"];var ki,Ai;ki=yi,Ai=213,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xd")](){const t=this[vi("0x22")],e=t.locale;if(!t[vi("0x1b")][vi("0x2")]("ListEditing"))return;const n=t.plugins[vi("0x1e")]("TrackChangesEditing"),o=t[vi("0x1b")].has("TodoListEditing");function s(e){return()=>{const o=t[vi("0x12")][vi("0x1d")][vi("0x1")],s=t.commands[vi("0x1e")](e);if(s.value)return void t.execute(vi("0x21"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0xa")](t)[vi("0x2d")]((t=>{return e=t,(o=n)[vi("0x15")](e[vi("0x2c")],"listItem")&&!o[vi("0x10")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2b"),"listItem")||t[vi("0x13")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x2b"),vi("0x5"))?s.add(Si(t)):s[vi("0x28")](t);return Array[vi("0xa")](s)}(o[vi("0x1a")](),r,t.model[vi("0xc")]);t[vi("0x12")][vi("0x19")]((()=>{for(const t of i)n[vi("0x24")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0xe")]}],formatGroupId:vi("0x8")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0xa")](t);const n=e.findIndex((t=>vi("0x5")!=t[vi("0x30")]));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x12")][vi("0x1d")].selection[vi("0x1a")]()),s=t.model.createRange(t[vi("0x12")].createPositionAt(o[0],vi("0x17")),t.model[vi("0x16")](o[o.length-1],"end"));t[vi("0x12")].change((()=>{n[vi("0x24")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x7")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x11")];for(;t&&t.getAttribute(vi("0x7"))>n[vi("0x13")](vi("0x7"));)e[vi("0x28")](t),t=t[vi("0x11")]}return Array.from(e)}(o))}))}}n[vi("0x33")](vi("0x2e"),s(vi("0x2e"))),n.enableCommand(vi("0x32"),s(vi("0x32"))),o&&n[vi("0x33")]("todoList",s("todoList")),n.enableCommand(vi("0x6"),r(vi("0x6"))),n[vi("0x33")](vi("0x31"),r(vi("0x31"))),o&&n[vi("0x33")](vi("0x2f"),(()=>{const e=t[vi("0x14")][vi("0x1e")](vi("0x2f")),o=Array.from(e._selectedElements);o[vi("0x2d")]((t=>t[vi("0x13")](vi("0x23"))!=e.value)),t[vi("0x12")].change((()=>{for(const t of o)n[vi("0x24")](t,{commandName:vi("0x2f"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x34")][vi("0xb")](vi("0x5"),(t=>Yo(e,vi("0x18"),t))),n[vi("0x34")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x2e")==n.commandName||vi("0x32")==n.commandName||vi("0x1c")==n[vi("0x25")])switch(n[vi("0x25")][vi("0xf")](vi("0x1f"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x4"):return o(Yo(e,vi("0x29")));case vi("0x36"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[vi("0x25")])return{type:"format",content:Yo(e,vi("0x35"),Yo(e,vi("0x18")))};if(vi("0x31")==n[vi("0x25")])return{type:vi("0x20"),content:Yo(e,vi("0x2a"),Yo(e,vi("0x18")))};if(vi("0x2f")==n[vi("0x25")])return n[vi("0x9")][0][vi("0x3")]?{type:vi("0x20"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,vi("0x27"))}}function o(t){return{type:vi("0x20"),content:Yo(e,vi("0x26"),t)}}}))}}function Si(t){const e=t[vi("0x13")](vi("0x7"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x0")].is("element",vi("0x5"));){const o=t.previousSibling[vi("0x13")](vi("0x7"));if(o==e)n=t[vi("0x0")];else if(o<e)break;t=t[vi("0x0")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2b"),"listItem")&&t[vi("0x13")]("listIndent")>0){let n=t[vi("0x11")];for(;n&&vi("0x5")==n[vi("0x30")]&&n[vi("0x13")](vi("0x7"))==t[vi("0x13")](vi("0x7"));)e.push(n),n=n[vi("0x11")]}return e}const Li=["startIndex","forward","getAttribute","commandName","plugins","before","styles","registerDescriptionCallback","listReversed","ListUtils","push","length","bind","editor","*Format:* set order to reversed","_getTranslationKeyForListStyle","handleListStartCommand","ELEMENT_","getSelectedBlocks","listStart","flat","commandParams","handleListStyleCommand","locale","listType","type","format","model","map","_LIST_","element","*Format:* set start index to %0","ListPropertiesEditing","handleListReversedCommand","from","getFirstPosition","reversed","TrackChangesEditing","filter","enableCommand","*Change to:* %0","list.properties","listItem","_getSuggestionBlocksForListStyle","markMultiRangeBlockFormat","listStyle","document","afterInit","numbered","getSiblingNodes","*Format:* set order to regular","get","createRange","handleDescriptions","selection","replace","getListTypeFromListStyleType","change","backward","createPositionAt"];var Ni,wi;Ni=Li,wi=363,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x2c")](){if(!this.editor[Mi("0x1")].has(Mi("0x1d")))return;const t=this[Mi("0xa")].config[Mi("0x30")](Mi("0x26")),e=this[Mi("0xa")][Mi("0x1")][Mi("0x30")]("TrackChangesEditing");t[Mi("0x3")]&&e[Mi("0x24")](Mi("0x2a"),this[Mi("0x13")][Mi("0x9")](this)),t[Mi("0x21")]&&e[Mi("0x24")](Mi("0x5"),this[Mi("0x1e")][Mi("0x9")](this)),t.startIndex&&e[Mi("0x24")]("listStart",this[Mi("0xd")].bind(this)),e._descriptionFactory[Mi("0x4")](this[Mi("0x32")][Mi("0x9")](this))}[Mi("0x13")](t,e={}){const n=this.editor[Mi("0x1")].get(Mi("0x22")),o=this[Mi("0x28")]();this[Mi("0xa")][Mi("0x18")].change((()=>{n[Mi("0x29")](o,{commandName:Mi("0x2a"),commandParams:[{type:e[Mi("0x16")]}],formatGroupId:Mi("0x2a")})}))}[Mi("0x1e")](t,e={}){const n=this.editor.plugins[Mi("0x30")](Mi("0x22")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1b"),Mi("0x27"))&&Mi("0x2d")===t[Mi("0x3b")]("listType")));if(o[Mi("0x8")]<1)return;const s=o[Mi("0x19")]((t=>this[Mi("0xa")][Mi("0x18")][Mi("0x31")](this[Mi("0xa")].model[Mi("0x38")](t,Mi("0x2")),this[Mi("0xa")][Mi("0x18")].createPositionAt(t,0))));this[Mi("0xa")][Mi("0x18")][Mi("0x36")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x5"),commandParams:[{reversed:e[Mi("0x21")]}],formatGroupId:"listReversed"})}))}[Mi("0xd")](t,e={}){const n=this[Mi("0xa")][Mi("0x1")][Mi("0x30")](Mi("0x22")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x1b"),Mi("0x27"))&&Mi("0x2d")===t[Mi("0x3b")](Mi("0x15"))));if(o.length<1)return;const s=o.map((t=>this.editor[Mi("0x18")][Mi("0x31")](this[Mi("0xa")][Mi("0x18")][Mi("0x38")](t,"before"),this[Mi("0xa")][Mi("0x18")][Mi("0x38")](t,0))));this[Mi("0xa")].model[Mi("0x36")]((()=>{n[Mi("0x29")](s,{commandName:Mi("0x10"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Mi("0x10")})}))}[Mi("0x32")](t){const e=this.editor[Mi("0x14")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x0")]){case Mi("0x2a"):o=Mi("0x25"),s={type:Mi("0x17"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case Mi("0x5"):o=n[Mi("0x12")][0][Mi("0x21")]?Mi("0xb"):Mi("0x2f"),s={type:Mi("0x17"),content:Yo(e,o)};break;case Mi("0x10"):o=Mi("0x1c"),s={type:"format",content:Yo(e,o,n[Mi("0x12")][0][Mi("0x39")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Mi("0xa")].plugins[Mi("0x30")]("ListUtils");let r=Array[Mi("0x1f")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0xf")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Mi("0x2e")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0x20")](),Mi("0x37"))),(null===(e=r[r[Mi("0x8")]-1])||void 0===e?void 0:e.is(Mi("0x1b"),Mi("0x27")))&&r[Mi("0x7")](...s[Mi("0x2e")](this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")].getLastPosition(),Mi("0x3a"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0xa")][Mi("0x18")][Mi("0x2b")][Mi("0x33")][Mi("0x20")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Mi("0x1b"),"listItem"))&&(r=r[Mi("0x23")]((t=>t.is(Mi("0x1b"),Mi("0x27"))))),r}_getSuggestionBlocks(t){const e=this[Mi("0xa")][Mi("0x1")][Mi("0x30")](Mi("0x6"));let n=Array[Mi("0x1f")](this.editor[Mi("0x18")].document[Mi("0x33")].getSelectedBlocks()).filter(t)[Mi("0x19")]((t=>{const n=this[Mi("0xa")][Mi("0x18")].createPositionAt(t,0);return[...e[Mi("0x2e")](n,"backward"),...e.getSiblingNodes(n,Mi("0x3a"))]}))[Mi("0x11")]();return n=[...new Set(n)],n}[Mi("0xc")](t){return Mi("0xe")+this.editor[Mi("0x1")][Mi("0x30")](Mi("0x6"))[Mi("0x35")](t).toUpperCase()+Mi("0x1a")+t.toUpperCase()[Mi("0x34")](/-/g,"_")}}const Fi=["high","get","options","_descriptionFactory","registerElementLabel","dataDowncast","mediaEmbed","stop","createEmptyElement","afterInit","div","enableCommand","for","plugins","locale","MediaEmbedEditing","ELEMENT_MEDIA","attribute:url:media","elementToElement","data","TrackChangesEditing","editor","media"];var Pi,Di;Pi=Fi,Di=357,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x14")](){const t=this[Bi("0x9")];if(!t[Bi("0x1")].has(Bi("0x3")))return;const e=t[Bi("0x1")][Bi("0xc")](Bi("0x8")),n=t[Bi("0x2")];e[Bi("0x16")](Bi("0x11")),e[Bi("0xe")][Bi("0xf")](Bi("0xa"),(t=>Yo(n,Bi("0x4"),t))),t.conversion[Bi("0x0")](Bi("0x10"))[Bi("0x6")]({model:Bi("0xa"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x13")](Bi("0x15"))},converterPriority:"high"}),t[Bi("0x7")].downcastDispatcher.on(Bi("0x5"),((t,e,n)=>{n[Bi("0xd")].showSuggestionHighlights&&t[Bi("0x12")]()}),{priority:Bi("0xb")})}}const Ui=["has","editor","mention","get","plugins","TrackChangesEditing","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=500,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("0x5")];t[zi("0x1")][zi("0x4")](zi("0x3"))&&t[zi("0x1")][zi("0x0")](zi("0x2")).enableCommand(zi("0x6"))}}const Vi=["plugins","afterInit","get","PageBreakEditing","TrackChangesEditing","has","pageBreak","ELEMENT_PAGE_BREAK","locale","registerElementLabel"];var Ki,qi;Ki=Vi,qi=153,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x8")](){const t=this.editor;if(!t[Xi("0x7")][Xi("0x2")](Xi("0x0")))return;t[Xi("0x7")][Xi("0x9")](Xi("0x1")).enableCommand("pageBreak");const e=t[Xi("0x7")][Xi("0x9")](Xi("0x1")),n=t[Xi("0x5")];e._descriptionFactory[Xi("0x6")](Xi("0x3"),(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["isBlock","createUIElement","markerRange","insertion","paragraph","bindElementToMarker","document","getFirstRange","blockName","consume","schema","consumable","selection","isTouching","ck-suggestion-marker-split","highest","markBlockFormat","checkChild","change","span","end","model","TrackChangesEditing","locale","isLimit","from","registerElementLabel","insertParagraph","markerName","addClass","start","commandName","getItemLabel","options","plugins","getSelectedBlocks","*Insert:* %0","filter","nodeAfter","_descriptionFactory","type","addMarker:suggestion:insertion","*Change to:* %0","name","get","has","ELEMENT_PARAGRAPH","afterInit","format","enableCommand","downcastDispatcher","mapper","editing","registerDescriptionCallback","writer","ck-suggestion-marker--active","editor","isObject","toViewPosition","parent","insert"];var Qi,Zi;Qi=Ji,Zi=369,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class ta extends t.Plugin{[Yi("0x2c")](){const t=this[Yi("0x35")];if(!t[Yi("0x1f")][Yi("0x2a")]("Paragraph"))return;const e=t[Yi("0x14")],n=t[Yi("0x1f")][Yi("0x29")]("TrackChangesEditing");n[Yi("0x24")][Yi("0x17")]("paragraph",(t=>Yo(e,Yi("0x2b"),t))),n[Yi("0x2e")](Yi("0x1"),((e,o={})=>{const s=t[Yi("0x12")][Yi("0x3")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x16")](r[Yi("0x20")]())[Yi("0x22")]((t=>{return e=t,(n=this[Yi("0x35")][Yi("0x12")][Yi("0x7")])[Yi("0xe")](e[Yi("0x38")],Yi("0x1"))&&!n[Yi("0x36")](e)&&Yi("0x1")!=e[Yi("0x28")];var e,n}));t.model[Yi("0xf")]((()=>{for(const t of i)n[Yi("0xd")](t,{commandName:Yi("0x1"),commandParams:[],formatGroupId:Yi("0x5")},fs(t))}))})),n[Yi("0x24")][Yi("0x32")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x1c")])return{type:Yi("0x2d"),content:Yo(e,Yi("0x27"),Yo(e,Yi("0x2b")))}})),n.enableCommand(Yi("0x18")),t[Yi("0x31")][Yi("0x2f")].on(Yi("0x26"),ea(t),{priority:Yi("0xc")}),t.data[Yi("0x2f")].on(Yi("0x26"),((e,n,o)=>{o[Yi("0x1e")].showSuggestionHighlights&&ea(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x24")];o[Yi("0x32")]((n=>{if(Yi("0x0")!==n[Yi("0x25")])return;const{start:s,end:r}=n[Yi("0x4")]();if(!s[Yi("0xa")](r)||!s.nodeAfter)return;const i=t[Yi("0x12")][Yi("0x7")],a=s[Yi("0x23")];return i[Yi("0x3a")](a)&&!i[Yi("0x15")](a)&&i[Yi("0xe")](a,"$text")?{type:"insertion",content:Yo(e,Yi("0x21"),o[Yi("0x1d")](a,1))}:void 0}))}}function ea(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1f")][Yi("0x29")](Yi("0x13")),i=o[Yi("0x3c")][Yi("0x1b")],a=o.markerRange[Yi("0x11")],x=t.model[Yi("0x7")];if(!i[Yi("0xa")](a)||!i[Yi("0x23")])return;const c=i[Yi("0x23")];if(x[Yi("0x3a")](c)&&!x.isLimit(c)&&x[Yi("0xe")](c,"$text")){if(!s[Yi("0x8")][Yi("0x6")](o.markerRange,n[Yi("0x28")]))return;const t=s[Yi("0x33")][Yi("0x3b")](Yi("0x10"),{class:Yi("0xb")}),i=s[Yi("0x30")][Yi("0x37")](a);e&&r.activeMarkers.includes(o.markerName)&&s.writer[Yi("0x1a")](Yi("0x34"),t),s[Yi("0x33")][Yi("0x39")](i,t),s.mapper[Yi("0x2")](t,o[Yi("0x19")])}}}const na=["*Remove all formatting*","TrackChangesEditing","schema","markInlineFormat","getAttributes","afterInit","isCollapsed","editor","model","isFormatting","from","removeFormat","plugins","format","_descriptionFactory","createRangeOn","getItems","change","enableCommand","registerDescriptionCallback","RemoveFormatEditing","commandName","selection"];var oa,sa;oa=na,sa=392,function(t){for(;--t;)oa.push(oa.shift())}(++sa);const ra=function(t,e){return na[t-=0]};class ia extends t.Plugin{[ra("0x4")](){const t=this[ra("0x6")];if(!t.plugins.has(ra("0x13")))return;const e=t[ra("0xb")].get(ra("0x0"));e[ra("0x11")]("removeFormat",(n=>{const o=t[ra("0x7")].document[ra("0x15")];o[ra("0x5")]?n():t[ra("0x7")][ra("0x10")]((()=>{const n=Array[ra("0x9")](o.getRanges());for(const o of n)for(const n of o[ra("0xf")]())aa(n,t.model[ra("0x1")])&&e[ra("0x2")](t.model[ra("0xe")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[ra("0xd")][ra("0x12")]((e=>{const{data:n}=e;if(n&&ra("0xa")==n[ra("0x14")])return{type:ra("0xc"),content:Yo(t.locale,ra("0x16"))}}))}}function aa(t,e){for(const[n]of t[ra("0x3")]()){const t=e.getAttributeProperties(n);if(t&&t[ra("0x8")])return!0}return!1}const xa=["afterInit","get","goToPreviousRestrictedEditingException","discardSelectedSuggestions","trackChanges","plugins","has","goToNextRestrictedEditingException","acceptAllSuggestions","RestrictedEditingModeEditing","editor","enableCommand","TrackChangesEditing","discardSuggestion"];var ca,la;ca=xa,la=368,function(t){for(;--t;)ca.push(ca.shift())}(++la);const da=function(t,e){return xa[t-=0]};class ua extends t.Plugin{[da("0xa")](){const t=this[da("0x6")];if(!t[da("0x1")][da("0x2")](da("0x5")))return;const e=t[da("0x1")][da("0xb")](da("0x8"));e[da("0x7")](da("0xc")),e[da("0x7")](da("0x3"));const n=t[da("0x1")][da("0xb")](da("0x5"));n.enableCommand(da("0x0")),n[da("0x7")]("acceptSuggestion"),n[da("0x7")](da("0x9")),n[da("0x7")](da("0x4")),n.enableCommand("discardAllSuggestions"),n[da("0x7")]("acceptSelectedSuggestions"),n[da("0x7")](da("0xd"))}}const ga=["insert","shiftEnter","addClass","name","addMarker:suggestion","markerName","split","registerElementLabel","createUIElement","editor","get","options","markerRange","ck-suggestion-marker-","consumable","getItems","plugins","deletion","high","mapper","element","test","ELEMENT_LINE_BREAK","editing","locale","toViewPosition","includes","init","writer","TrackChangesEditing","softBreak","_descriptionFactory","ck-suggestion-marker--active","model"];var ma,fa;ma=ga,fa=294,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const ha=function(t,e){return ga[t-=0]};class pa extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[ha("0x5")](){const t=this[ha("0x15")],e=t[ha("0x1c")][ha("0x16")]("TrackChangesEditing");e.enableCommand(ha("0xd")),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",ba(t),{priority:"high"}),t[ha("0x1")].downcastDispatcher.on("addMarker:suggestion:deletion",ba(t),{priority:ha("0x1e")}),t.data.downcastDispatcher.on(ha("0x10"),((e,n,o)=>{o[ha("0x17")].showSuggestionHighlights&&ba(t,{showActiveMarker:!1})(e,n,o)})),e[ha("0x9")][ha("0x13")](ha("0x8"),(e=>Yo(t[ha("0x2")],ha("0x0"),e)))}}function ba(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[ha("0x1c")][ha("0x16")](ha("0x7"));if(!s[ha("0x1a")][ha("0x21")](o[ha("0x18")],n[ha("0xf")]))return;const i=t[ha("0xb")];for(const t of o.markerRange[ha("0x1b")]()){if(!t.is(ha("0x20"),ha("0x8")))continue;const n=ha("0x1d")==o[ha("0x11")][ha("0x12")](":")[1]?"merge":"split",a=s[ha("0x6")][ha("0x14")]("span",{class:ha("0x19")+n}),x=s[ha("0x1f")][ha("0x3")](i.createPositionBefore(t));e&&r.activeMarkers[ha("0x4")](o.markerName)&&s[ha("0x6")][ha("0xe")](ha("0xa"),a),s[ha("0x6")][ha("0xc")](x,a),s[ha("0x1f")].bindElementToMarker(a,o[ha("0x11")])}}}const Ea=["StandardEditingModeEditing","TrackChangesEditing","isCollapsed","has","afterInit","commands","locale","selection","from","value","document","getRanges","change","format","model","FORMAT_RESTRICTED_DISABLED","forceValue","editor","plugins","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","registerDescriptionCallback","get","restrictedEditingException","enableCommand"];var _a,Ta;_a=Ea,Ta=234,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const Ca=function(t,e){return Ea[t-=0]};class ya extends t.Plugin{[Ca("0x14")](){const t=this[Ca("0x8")],e=t[Ca("0x5")],n=t[Ca("0x16")];if(!t[Ca("0x9")][Ca("0x13")](Ca("0x10")))return;const o=t[Ca("0x9")][Ca("0xd")](Ca("0x11")),s=Ca("0xe"),r=t[Ca("0x15")][Ca("0xd")](s);o[Ca("0xf")](s,((t,n={})=>{const i=e[Ca("0x1")][Ca("0x17")];if(i[Ca("0x12")])return void t(n);const a=void 0!==n[Ca("0x7")]?n[Ca("0x7")]:!r[Ca("0x0")];e[Ca("0x3")]((()=>{const t=Array[Ca("0x18")](i[Ca("0x2")]());for(const n of t){const t=a?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:a}]})}}))})),o[Ca("0xa")][Ca("0xc")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0][Ca("0x7")]?{type:"format",content:Yo(n,Ca("0xb"))}:{type:Ca("0x4"),content:Yo(n,Ca("0x6"))}}))}}const ka=["has","change","createRangeOn","editor","normalizeConfig","inline","modelElements","getItems","classes","DataSchema","block","enabledStyles","commands","isBlock","isCollapsed","document","includes","plugins","format","markBlockFormat","selection","style:","add","afterInit","_descriptionFactory","name","value","locale","TrackChangesEditing","forceValue","styleName","style","toLowerCase","from","style.definitions","get","element","model","every","find","*Remove format:* %0","_getStyleDefinition","StyleUtils","*Format:* %0","Style"];var Aa,va;Aa=ka,va=476,function(t){for(;--t;)Aa.push(Aa.shift())}(++va);const Ra=function(t,e){return ka[t-=0]};class Sa extends t.Plugin{[Ra("0x2a")](){const t=this[Ra("0x16")];if(!t[Ra("0x24")][Ra("0x13")](Ra("0x12")))return;const e=t[Ra("0x1f")][Ra("0x9")](Ra("0x5")),n=t[Ra("0x24")][Ra("0x9")](Ra("0x2")),o=t[Ra("0x1")],s=t[Ra("0x24")][Ra("0x9")](Ra("0x1c")),r=t[Ra("0x24")][Ra("0x9")](Ra("0x10"))[Ra("0x17")](s,t.config[Ra("0x9")](Ra("0x8")));n.enableCommand(Ra("0x5"),((o,{styleName:i})=>{const a=t[Ra("0xb")][Ra("0x22")][Ra("0x27")],x=this[Ra("0xf")](i,r);if(!x)return;if(!e[Ra("0x1e")][Ra("0x23")](i))return;if(a[Ra("0x21")]&&!x.isBlock)return void o({styleName:i});const c=!e[Ra("0x0")][Ra("0x23")](x[Ra("0x2c")]);if(x[Ra("0x20")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[Ra("0x2c")])){n[Ra("0x29")](o);break}}return n}(a.getSelectedBlocks(),x[Ra("0x19")]);t.model.change((()=>{for(const t of e)n[Ra("0x26")](t,{commandName:Ra("0x5"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Ra("0x28")+i})}))}else{let e=Array.from(a.getRanges());if(!c){const n=Array[Ra("0x7")](s.getDefinitionsForView(x[Ra("0xa")],!1))[0][Ra("0xb")],o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,x.classes,n);o.push(...e)}e=o}t[Ra("0xb")][Ra("0x14")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Ra("0x2b")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Ra("0x5")===e.commandName)return e.commandParams[0][Ra("0x3")]?{type:"format",content:Yo(o,Ra("0x11"),e.commandParams[0].styleName[Ra("0x6")]())}:{type:Ra("0x25"),content:Yo(o,Ra("0xe"),e.commandParams[0][Ra("0x4")][Ra("0x6")]())}}))}[Ra("0xf")](t,e){let n=e[Ra("0x1d")].find((e=>e[Ra("0x2c")]===t));return n||(n=e[Ra("0x18")][Ra("0xd")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Ra("0x1a")]()){const e=r.getAttribute(o);e&&n[Ra("0xc")]((t=>e[Ra("0x1b")].includes(t)))&&s.push(t[Ra("0x15")](r))}return s}}const Ia=["options","differ","hasAttribute","addRange","createRangeIn","forceValue","push","getAttribute","every","change:data","writer","batch","removeTableRow","element","ELEMENT_TABLE_COLUMN_WITH_TEXT","join","rowspan","mapper","maxRow","insert","removeClass","map","nodeAfter","markMultiRangeInsertion","above","*Remove:* %0","locale","selectTableColumn","root","ELEMENT_TABLE_ROW_WITH_TEXT","some","insertion","getCellLocation","data","classes","getColumnIndexes","MIN_SAFE_INTEGER","highest","min","name","subType","tableColumn","detach","item","_tablePostFixingSubtypes","insertTableColumnRight","table","tableCell","accept","addMarker:suggestion","oldRange","createPositionAt","$graveyard","selection","isInContent","createTableWalker","toLowerCase","isEqual","add","get","values","maxColumn","_tableSuggestions","span","deletion","_getCoordsForCells","addClass","setSelection","type","last","getSuggestion","getChildren","getFirstRange","enableCommand","model","getRanges","getItems","createRangeOn","commands","_getSuggestionCoords","getSelectionAffectedTableCells","findAncestor","execute","ELEMENT_TABLE_ROW","has","TableUtils","_descriptionFactory","$textProxy","cell","start","insertTableRowBelow","suggestion","getChanges","document","plugins","tablePaste","downcastDispatcher","substr","getContainedElement","max","editor","showSuggestionHighlights","rootName","isIntersectingWithRange","colspan","afterInit","tableRow","filter","refresh","nodeBefore","first","enqueueChange","removeTableColumn","*Insert:* %0","length","MAX_SAFE_INTEGER","getChangedMarkers","isTouching","change","minRow","startsWith","_setupColumnsRowsFixing","from","left","end","TrackChangesEditing","_splitMarkerName","_suggestionFactory","fromRange","_acceptFormatSuggestionCallbackFactory","registerCustomCallback","getRowIndexes","ELEMENT_TABLE_WITH_TEXT","ELEMENT_TABLE_COLUMN"];var La,Na;La=Ia,Na=201,function(t){for(;--t;)La.push(La.shift())}(++Na);const wa=function(t,e){return Ia[t-=0]};class Ma extends t.Plugin{constructor(t){super(t),this[wa("0x6f")]=[wa("0x27"),wa("0x6c")],this[wa("0x81")]=new Set}[wa("0x26")](){const t=this[wa("0x21")],e=t[wa("0x7")][wa("0x1a")].selection;if(!t.plugins[wa("0x11")]("TableEditing"))return;const n=t[wa("0x5d")],o=t[wa("0x1b")][wa("0x7e")](wa("0x3a")),s=t.plugins[wa("0x7e")]("TableUtils");o[wa("0x13")].registerElementLabel(wa("0x71"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[wa("0x36")](),o[wa("0x6")]("insertTable"),o[wa("0x6")]("selectTableRow"),o[wa("0x6")](wa("0x5e"));for(const n of["insertTableRowAbove",wa("0x17")]){const r=t.commands[wa("0x7e")](n);o.enableCommand(n,(n=>{t[wa("0x7")][wa("0x33")]((t=>{n();const i=wa("0x5b")===r.order,a=s[wa("0xd")](e),x=s[wa("0x40")](a),c=i?x.first-1:x[wa("0x2")]+1,l=a[0][wa("0xe")]("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[wa("0x58")]((e=>t[wa("0xa")](e[wa("0x15")])));o[wa("0x5a")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",wa("0x70")]){const r=t.commands.get(n);o[wa("0x6")](n,(n=>{t[wa("0x7")][wa("0x33")]((t=>{n();const i=wa("0x38")===r.order,a=s.getSelectionAffectedTableCells(e),x=s.getColumnIndexes(a),c=i?x.first-1:x[wa("0x2")]+1,l=a[0][wa("0xe")](wa("0x71")),d=s[wa("0x7a")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wa("0x37")](d)[wa("0x58")]((e=>t[wa("0xa")](e[wa("0x15")])));o[wa("0x5a")](u,"tableColumn")}))}))}for(const n of[wa("0x4f"),wa("0x2d")]){const r=n[wa("0x1e")](11),i=r[wa("0x7b")](),a=i[wa("0x1e")](0,3)+wa("0x82"),x=wa("0x71")+r,c=wa("0x69")+r,l="max"+r;o[wa("0x6")](n,(()=>{t[wa("0x7")].change((t=>{const r=s[wa("0xd")](e),d=r[0][wa("0xe")](wa("0x71"));let u;if(wa("0x4f")==n){const t=s[wa("0x40")](r);u={startRow:t[wa("0x2b")],endRow:t[wa("0x2")],includeAllSlots:!0}}else{const t=s[wa("0x66")](r);u={startColumn:t[wa("0x2b")],endColumn:t[wa("0x2")],includeAllSlots:!0}}const g=s[wa("0x7a")](d,u),m=Array[wa("0x37")](g)[wa("0x58")]((({cell:t})=>t)),f=Oa(m.filter((t=>t.hasAttribute(a)))),h=Oa(m[wa("0x28")]((t=>!t.hasAttribute(a)))).map((e=>t[wa("0xa")](e))),p=o.markMultiRangeDeletion(h,x);if(p&&(wa("0x27")==p[wa("0x6b")]||wa("0x6c")==p.subType)){const e=this[wa("0xc")](p);for(const n of f){const o=t[wa("0xa")](n),r=s[wa("0x63")](n),x=n[wa("0x4a")](a)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+x<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[wa("0x37")](e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t)));t[wa("0x7")].change((e=>{const s=e[wa("0x4e")];n=n[wa("0x28")]((t=>wa("0x77")!=t.root[wa("0x23")])),e[wa("0x0")](n),t[wa("0xb")][wa("0x7e")](wa("0x4f"))[wa("0x29")](),t.execute(wa("0x4f"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[wa("0x7")][wa("0x2c")](s,(t=>{const e=o[wa("0x28")]((t=>"$graveyard"!=t[wa("0x5f")][wa("0x23")]));e[wa("0x2f")]>0&&t.setSelection(e);for(const t of o)t[wa("0x6d")]()}))}))}))}function x(n){t.model[wa("0x33")]((o=>{const s=Array.from(e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t))),r=[];for(const t of n)for(const e of t[wa("0x9")]({shallow:!0}))r[wa("0x49")](e);for(const e of r)wa("0x77")!=e[wa("0x5f")].rootName&&(o.setSelection(o[wa("0x76")](e,0)),t.commands[wa("0x7e")](wa("0x2d"))[wa("0x29")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const a=s[wa("0x28")]((t=>"$graveyard"!=t[wa("0x5f")][wa("0x23")]));a[wa("0x2f")]>0&&o[wa("0x0")](a);for(const t of s)t[wa("0x6d")]()}))}function c(t,e){return e[wa("0x4b")]((e=>t[wa("0x61")]((t=>t.end[wa("0x7c")](e[wa("0x16")])||e[wa("0x39")][wa("0x7c")](t[wa("0x16")])))))}function l(t,e){return t[wa("0x61")]((t=>e[wa("0x61")]((e=>t[wa("0x39")][wa("0x32")](e.start)))))}t.data[wa("0x1d")].on(wa("0x74"),((t,e,n)=>{if(!n[wa("0x43")][wa("0x22")])return;const o=e[wa("0x6e")];if(!o)return;const s=n[wa("0x54")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&wa("0x72")===o.name&&(0,a.setHighlightHandling)(s,n[wa("0x4d")],((t,e,n)=>n[wa("0x85")](r(e[wa("0x65")]),t)),((t,e,n)=>n[wa("0x57")](r(e.classes),t)))}),{priority:wa("0x68")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(wa("0x62")!=t[wa("0x1")]&&"deletion"!=t[wa("0x1")])return;const e=t[wa("0x1f")]();if(null!=e&&e.is(wa("0x50"),wa("0x71"))){if("insertion"==t[wa("0x1")]){const e=t.getItems()[wa("0x28")]((t=>t.is("$textProxy")))[wa("0x58")]((t=>t[wa("0x64")]));if(e[wa("0x2f")])return{type:"insertion",content:Yo(n,wa("0x2e"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(wa("0x83")==t[wa("0x1")]){const e=t[wa("0x9")]().filter((t=>t.is(wa("0x14")))).map((t=>t[wa("0x64")]));if(e[wa("0x2f")])return{type:wa("0x83"),content:Yo(n,"*Remove:* %0",Yo(n,wa("0x41"),'"'+e[wa("0x52")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(wa("0x27")==t[wa("0x6b")]){const e=t.getItems()[wa("0x28")]((t=>t.is(wa("0x14"))))[wa("0x58")]((t=>t[wa("0x64")])),o=this[wa("0xc")](t),s=o[wa("0x55")]-o[wa("0x34")]+1;if(wa("0x62")==t[wa("0x1")])return e[wa("0x2f")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:wa("0x62"),content:Yo(n,"*Insert:* %0",Yo(n,wa("0x10"),s))};if(wa("0x83")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x83"),content:Yo(n,wa("0x5c"),Yo(n,wa("0x60"),[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,wa("0x10"),s))}}if(wa("0x6c")==t[wa("0x6b")]){const e=t[wa("0x9")]()[wa("0x28")]((t=>t.is(wa("0x14"))))[wa("0x58")]((t=>t[wa("0x64")])),o=this[wa("0xc")](t),s=o[wa("0x80")]-o.minColumn+1;if(wa("0x62")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x62"),content:Yo(n,wa("0x2e"),Yo(n,wa("0x51"),[s,'"'+e.join(" ")+'"']))}:{type:wa("0x62"),content:Yo(n,wa("0x2e"),Yo(n,wa("0x42"),s))};if(wa("0x83")==t[wa("0x1")])return e[wa("0x2f")]?{type:wa("0x83"),content:Yo(n,wa("0x5c"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[wa("0x52")](" ")+'"']))}:{type:"deletion",content:Yo(n,wa("0x5c"),Yo(n,wa("0x42"),s))}}})),o[wa("0x3c")].registerCustomCallback(wa("0x62"),wa("0x27"),"discard",r),o[wa("0x3c")][wa("0x3f")](wa("0x83"),"tableRow","accept",r),o[wa("0x3c")][wa("0x3f")](wa("0x62"),wa("0x6c"),"discard",x),o[wa("0x3c")].registerCustomCallback("deletion",wa("0x6c"),wa("0x73"),x),o[wa("0x3c")][wa("0x3f")](wa("0x62"),"tableColumn","join",c),o[wa("0x3c")].registerCustomCallback("deletion","tableColumn",wa("0x52"),c),o._suggestionFactory.registerCustomCallback(wa("0x62"),"tableRow","join",l),o[wa("0x3c")][wa("0x3f")]("deletion","tableRow",wa("0x52"),l)}[wa("0x3e")](){const t=this[wa("0x21")],e=t[wa("0x7")].document[wa("0x78")];return(n,o)=>{t[wa("0x7")][wa("0x33")]((s=>{const{commandName:r,commandParams:a}=o;let x=n[0][wa("0x39")][wa("0x2a")];a&&a[0]&&!1===a[0][wa("0x48")]&&(x=n[0][wa("0x16")].nodeAfter);const c=s[wa("0x47")](x);if(wa("0x77")==c[wa("0x5f")][wa("0x23")])return;const l=Array.from(e[wa("0x8")]())[wa("0x58")]((t=>i.LiveRange[wa("0x3d")](t)));s[wa("0x0")](c),t[wa("0xb")][wa("0x7e")](r).refresh(),a.push({forceDefaultExecution:!0}),t[wa("0xf")](r,...a);const d=l.filter((t=>wa("0x77")!=t[wa("0x5f")][wa("0x23")]));d[wa("0x2f")]>0&&s[wa("0x0")](d);for(const t of l)t[wa("0x6d")]()}))}}[wa("0x84")](t){const e=this[wa("0x21")][wa("0x1b")][wa("0x7e")](wa("0x12"));let n=Number[wa("0x30")],o=Number[wa("0x67")],s=Number[wa("0x30")],r=Number[wa("0x67")];for(const i of t){if("$graveyard"==i[wa("0x5f")][wa("0x23")])continue;const{row:t,column:a}=e[wa("0x63")](i),x=i[wa("0x45")](wa("0x53"))?i[wa("0x4a")](wa("0x53"))-1:0,c=i[wa("0x45")](wa("0x25"))?i[wa("0x4a")](wa("0x25"))-1:0;n=t<n?t:n,o=t+x>o?t+x:o,s=a<s?a:s,r=a+c>r?a+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[wa("0x36")](){const t=this[wa("0x21")],e=t[wa("0x1b")][wa("0x7e")](wa("0x3a")),n=t[wa("0x1b")].get(wa("0x12"));t.model.document.on(wa("0x4c"),(()=>{const n=Array[wa("0x37")](t.model[wa("0x1a")][wa("0x44")][wa("0x31")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wa("0x3b")](t);if(wa("0x18")!=n)continue;if(null!=o[wa("0x75")])continue;const i=e[wa("0x3")](s);this[wa("0x6f")].includes(r)&&this[wa("0x81")][wa("0x7d")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[wa("0xa")](t),r=t[wa("0xe")](wa("0x71")),i=n[wa("0x63")](t);for(const e of this[wa("0x81")]){const n=e.subType,a=n[wa("0x35")](wa("0x1c")),x=n[wa("0x1e")](a?10:5),c=x[wa("0x7b")](),l=c[wa("0x1e")](0,3)+wa("0x82"),d="min"+x,u=wa("0x20")+x;if(!e[wa("0x79")])continue;if(r!=e[wa("0x5")]()[wa("0x16")][wa("0xe")]("table"))continue;if(e[wa("0x24")](s))continue;const g=t[wa("0x45")](l)?t.getAttribute(l)-1:0,m=this[wa("0xc")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wa("0x46")](s),o=!0)}return o};t[wa("0x7")][wa("0x1a")].registerPostFixer((e=>{let n=!1;for(const s of t[wa("0x7")][wa("0x1a")][wa("0x44")][wa("0x19")]())if(wa("0x56")==s[wa("0x1")])if("tableRow"==s[wa("0x6a")])for(const t of s.position[wa("0x59")][wa("0x4")]())n=n||o(t,e);else"tableCell"==s[wa("0x6a")]&&(n=n||o(s.position[wa("0x59")],e));return n}))}[wa("0xc")](t){return this._getCoordsForCells(t[wa("0x8")]()[wa("0x58")]((t=>t[wa("0x16")][wa("0x59")])))}}function Oa(t){return Array[wa("0x37")](new Set(t)[wa("0x7f")]())}const Fa=["markBlockFormat","rootName","format","set:isEnabled","length","*Merge cells*","TrackChangesEditing","type","plugins","execute","filter","locale","deletion","map","low","mergeTableCellRight","splitTableCellVertically","trackChanges","getFirstPosition","mergeTableCellUp","return","*Split cell:* horizontally","registerDescriptionCallback","commandName","from","_isForcedDefaultExecutionBlock","TableEditing","push","_areMergableCells","direction","formatBlock","get","add","editor","stop","tableCell","isEnabled","commands","registerCustomCallback","value","detach","containsRange","has","$graveyard","getSelectionAffectedTableCells","*Split cell:* vertically","markMultiRangeBlockFormat","afterInit","cell","getAncestors","_suggestionFactory","createTableWalker","mergeTableCells","horizontally","highest","element","getSuggestions","isInContent","_areSelectedCellsMergable","author","document","mergeTableCellDown","accept","selection","size","find","mergeTableCellLeft","enableCommand","getRanges","setSelection","TableUtils","findAncestor","createRangeOn","fromRange","table","_acceptFormatSuggestionCallbackFactory","model","change"];var Pa,Da;Pa=Fa,Da=299,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get requires(){return[Ma]}[Ba("0x3c")](){const t=this[Ba("0x2e")],e=t[Ba("0xb")][Ba("0x49")][Ba("0x4c")],n=t[Ba("0x18")];if(!t[Ba("0x15")][Ba("0x37")](Ba("0x27")))return;const o=t[Ba("0x15")][Ba("0x2c")]("TrackChangesEditing"),s=t[Ba("0x15")][Ba("0x2c")](Ba("0x5")),r=t[Ba("0x15")][Ba("0x2c")](Ma);r._tablePostFixingSubtypes[Ba("0x28")](Ba("0x41")),o.enableCommand(Ba("0x41"),(()=>{const e=s[Ba("0x39")](t[Ba("0xb")].document.selection);t[Ba("0xb")][Ba("0xc")]((()=>{o[Ba("0x3b")](e,{commandName:Ba("0x41"),commandParams:[]},[],Ba("0x41"))}))})),t[Ba("0x32")].get(Ba("0x41")).on(Ba("0x16"),((e,n)=>{t[Ba("0x32")][Ba("0x2c")](Ba("0x1e"))[Ba("0x34")]&&(n[Ba("0x11")]>0&&n[n[Ba("0x11")]-1]&&n[n.length-1].forceDefaultExecution||o[Ba("0x26")]||this[Ba("0x47")]()||e[Ba("0x2f")]())}),{priority:Ba("0x43")});for(const e of["mergeTableCellUp","mergeTableCellRight",Ba("0x4a"),Ba("0x1")]){const n=t[Ba("0x32")][Ba("0x2c")](e);o[Ba("0x2")](e,(()=>{const e=t[Ba("0xb")][Ba("0x49")].selection[Ba("0x1f")]()[Ba("0x3e")]()[Ba("0x0")]((t=>t.is("element",Ba("0x30")))),s=n.value;t[Ba("0xb")][Ba("0xc")]((()=>{o[Ba("0x3b")]([e,s],{commandName:Ba("0x41"),commandParams:[]},[],Ba("0x41"))}))}))}for(const e of[Ba("0x1d"),"splitTableCellHorizontally"]){const n=t[Ba("0x32")][Ba("0x2c")](e);o[Ba("0x2")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Ba("0xb")][Ba("0x49")].selection)[0],i=r[Ba("0x6")](Ba("0x9")),{column:a,row:x}=s.getCellLocation(r);let c=[];if(Ba("0x42")==n[Ba("0x2a")]){const t=s[Ba("0x40")](i,{startRow:x,endRow:x,includeAllSlots:!0});c=Array.from(t)[Ba("0x1a")]((t=>t[Ba("0x3d")]))}else{const t=s[Ba("0x40")](i,{column:a,includeAllSlots:!0});c=Array[Ba("0x25")](t)[Ba("0x1a")]((t=>t[Ba("0x3d")]))}t.model[Ba("0xc")]((t=>{o[Ba("0xd")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Ba("0x23")]((t=>{const{data:e}=t;if(e)return Ba("0x41")==e.commandName?{type:"format",content:Yo(n,Ba("0x12"))}:void 0})),o._descriptionFactory[Ba("0x23")]((t=>{const{data:e}=t;if(e)return Ba("0x1d")==e.commandName?{type:Ba("0xf"),content:Yo(n,Ba("0x3a"))}:"splitTableCellHorizontally"==e[Ba("0x24")]?{type:Ba("0xf"),content:Yo(n,Ba("0x22"))}:void 0}));const a=r[Ba("0xa")]();for(const t of[Ba("0x20"),Ba("0x1c"),Ba("0x4a"),Ba("0x1")])o[Ba("0x3f")][Ba("0x33")](Ba("0x2b"),t,Ba("0x4b"),a);for(const t of[Ba("0x1d"),"splitTableCellHorizontally"])o[Ba("0x3f")][Ba("0x33")]("formatBlock",t,"accept",a);o[Ba("0x3f")].registerCustomCallback(Ba("0x2b"),Ba("0x41"),Ba("0x4b"),(n=>{t[Ba("0xb")].change((o=>{const s=Array.from(e[Ba("0x3")]()).map((t=>i.LiveRange[Ba("0x8")](t)));o[Ba("0x4")](n),t[Ba("0x32")][Ba("0x2c")](Ba("0x41")).refresh(),t[Ba("0x16")](Ba("0x41"),{forceDefaultExecution:!0});const r=s[Ba("0x17")]((t=>Ba("0x38")!=t.root[Ba("0xe")]));r[Ba("0x11")]>0&&o.setSelection(r);for(const t of s)t[Ba("0x35")]()}))}));for(const e of[Ba("0x20"),"mergeTableCellDown",Ba("0x1"),Ba("0x1c")]){const n=t[Ba("0x32")][Ba("0x2c")](e);n.on(Ba("0x10"),((e,o,s)=>{if(s){const o=t[Ba("0xb")][Ba("0x49")][Ba("0x4c")][Ba("0x1f")]()[Ba("0x3e")]()[Ba("0x0")]((t=>t.is(Ba("0x44"),Ba("0x30"))));this._areMergableCells(n[Ba("0x34")],o)||(e[Ba("0x21")]=!1,e[Ba("0x2f")]())}}),{priority:Ba("0x1b")})}}[Ba("0x47")](){const t=this.editor[Ba("0x32")][Ba("0x2c")](Ba("0x41")),e=this[Ba("0x2e")].plugins.get(Ba("0x5"));if(!t[Ba("0x31")])return!1;const n=e[Ba("0x39")](this[Ba("0x2e")][Ba("0xb")].document[Ba("0x4c")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Ba("0x29")](t,e){const n=this[Ba("0x2e")][Ba("0x15")][Ba("0x2c")](Ba("0x13")),o=this[Ba("0x2e")][Ba("0xb")][Ba("0x7")](t),s=this[Ba("0x2e")][Ba("0xb")][Ba("0x7")](e),r=new Set,i=new Set;for(const t of n[Ba("0x45")]())if(("insertion"==t[Ba("0x14")]||Ba("0x19")==t.type||Ba("0x41")==t.subType)&&t[Ba("0x46")])for(const e of t[Ba("0x3")]())e.containsRange(o,!0)&&r[Ba("0x2d")](t[Ba("0x14")]+":"+t[Ba("0x48")].id),e[Ba("0x36")](s,!0)&&i[Ba("0x2d")](t[Ba("0x14")]+":"+t[Ba("0x48")].id);if(r[Ba("0x4d")]!=i.size)return!1;for(const t of r)if(!i[Ba("0x37")](t))return!1;return!0}}const Ua=["findAncestor","commands","forceValue","item","change","ck-suggestion-marker-","FORMAT_HEADER_ROW","isBefore","markerName","nodeAfter","_descriptionFactory","editing","TableEditing","getRowIndexes","model","TrackChangesEditing","_splitMarkerName","parent","getSuggestion","headingColumns","registerDescriptionCallback","get","options","data","FORMAT_HEADER_COLUMN","addClass","downcastDispatcher","setTableColumnHeader","data-suggestion","createRange","markBlockFormat","*Format:* %0","stop","getSelectionAffectedTableCells","cell","removeClass","highest","createPositionBefore","_acceptFormatSuggestionCallbackFactory","format","childCount","plugins","setAttribute","first","formatBlock","TableUtils","consume","commandName","toViewElement","mapper","_suggestionFactory","registerCustomCallback","showSuggestionHighlights","addMarker:suggestion","document","setTableRowHeader","requires","last","FORMAT_REGULAR_ROW","enableCommand","markerNameToElements","commandParams","table","getAttribute","markerRange","from","ck-suggestion-marker--active","end","writer","value","createPositionAfter","includes","getChild","editor","createTableWalker","unbindElementFromMarkerName","nodeBefore","activeMarkers"];var Ga,Ha;Ga=Ua,Ha=230,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("0x3c")](){return[Ma]}afterInit(){const t=this[za("0x4d")];if(!t[za("0x2d")].has(za("0x10")))return;const e=t.locale,n=t.plugins[za("0x19")](za("0x13")),o=t[za("0x2d")][za("0x19")]("TableUtils"),s=t[za("0x2d")][za("0x19")](Ma);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:a,id:x}=n._splitMarkerName(r.markerName),c=n.getSuggestion(x);if(!c[za("0x1b")]||za("0x1f")!=c.data[za("0x33")])return;if(r[za("0x7")])return void s[za("0x24")]();if(!i.consumable[za("0x32")](r[za("0x44")],s.name))return;const l=r[za("0x44")].start[za("0xd")],d=r.markerRange[za("0x47")][za("0x2")],u=l[za("0x15")][za("0x15")],{column:g}=o.getCellLocation(l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[za("0x0")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[za("0x26")],c=i.mapper[za("0x34")](s);i.writer.addClass("ck-suggestion-marker-"+a,c),e&&i[za("0x48")][za("0x2e")](za("0x20"),x,c),i[za("0x35")].bindElementToMarker(c,r.markerName),t&&(n[za("0x3")][za("0x4b")](r.markerName)?i[za("0x48")][za("0x1d")]("ck-suggestion-marker--active",c):i.writer[za("0x27")](za("0x46"),c))}}}}n.enableCommand(za("0x3b"),((e,s)=>{const r=o[za("0x25")](t[za("0x12")][za("0x3a")].selection),i=o[za("0x11")](r),a=r[0][za("0x4")](za("0x42")),x=a[za("0x43")]("headingRows")||0,c=s&&null!==s.forceValue?s[za("0x6")]:!t[za("0x5")].get("setTableRowHeader").value,l=c?i[za("0x3d")]:i.first,d=a[za("0x4c")](l);let u;if(c){const e=a.getChild(x);if(d.index<e.index)return;u=t[za("0x12")][za("0x21")](t[za("0x12")][za("0x29")](e[za("0x4c")](0)),t.model[za("0x4a")](d[za("0x4c")](d[za("0x2c")]-1)))}else{const e=a[za("0x4c")](x-1);if(!e)return;u=t[za("0x12")][za("0x21")](t[za("0x12")].createPositionBefore(d.getChild(0)),t.model.createPositionAfter(e.getChild(e[za("0x2c")]-1)))}t[za("0x12")][za("0x8")]((()=>{n[za("0x22")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[za("0x3f")](za("0x1f"),((e,o)=>{const s=t[za("0x2d")][za("0x19")](za("0x31")),r=s[za("0x25")](t[za("0x12")].document.selection),i=s.getColumnIndexes(r),a=r[0][za("0x4")](za("0x42")),x=a[za("0x43")](za("0x17"))||0,c=o&&null!==o[za("0x6")]?o[za("0x6")]:!t[za("0x5")][za("0x19")]("setTableColumnHeader")[za("0x49")];let l;const d=a[za("0x4c")](0),u=c?i[za("0x3d")]:i[za("0x2f")],g=s[za("0x0")](a,{startRow:0,column:u,includeAllSlots:!1}),m=Array[za("0x45")](g)[0][za("0x26")];if(c){const e=d[za("0x4c")](x);if(m[za("0xb")](e))return;l=t[za("0x12")].createRange(t[za("0x12")][za("0x29")](e),t[za("0x12")][za("0x4a")](m))}else{const e=d[za("0x4c")](x-1);if(!e)return;l=t[za("0x12")][za("0x21")](t.model[za("0x29")](m),t.model[za("0x4a")](e))}t[za("0x12")][za("0x8")]((()=>{n[za("0x22")](l,{commandName:za("0x1f"),commandParams:[{forceValue:c}]},[],za("0x1f"))}))})),t[za("0xf")][za("0x1e")].on(za("0x39"),r(),{priority:za("0x28")}),t.data.downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{n[za("0x1a")][za("0x38")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x28")}),t[za("0xf")][za("0x1e")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[za("0x14")](e[za("0xc")]),i=n[za("0x16")](r);if(!i.data||za("0x1f")!=i[za("0x1b")][za("0x33")])return;const a=o.mapper[za("0x40")](e[za("0xc")]);if(a)for(const t of a)o[za("0x48")][za("0x27")](za("0x9")+s,t),o[za("0x48")].removeClass("ck-suggestion-marker--active",t),o.writer.removeAttribute("data-suggestion",t),o.mapper[za("0x1")](t,e.markerName)}),{priority:za("0x28")}),n[za("0xe")][za("0x18")]((t=>{const{data:n}=t;if(n){if(za("0x3b")==n.commandName){const t=n[za("0x41")][0][za("0x6")];return o(Yo(e,za(t?"0xa":"0x3e")))}if("setTableColumnHeader"==n[za("0x33")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?za("0x1c"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:za("0x2b"),content:Yo(e,za("0x23"),t)}}}));const i=s[za("0x2a")]();n[za("0x36")].registerCustomCallback(za("0x30"),za("0x3b"),"accept",i),n[za("0x36")][za("0x37")](za("0x30"),za("0x1f"),"accept",i)}}const Va=["accept","tableCellPadding","rootName","getColumns","registerCustomCallback","document","subType","includes","getSuggestionCallback","discard","commands","cells","suggestionLoaded","getMarkers","$graveyard","markerName","length","redo","reduce","remove","for","first","TableUtils","add","getChanges","previousSibling","insertContent","elementToElement","insertRows","schema","model","createRange","createElement","ck-suggestion-marker-insertion","_tablePostFixingSubtypes","batch","root","removeColumns","getColumnIndexes","from","tablePasteChainId","createTableWalker","author","get","name","updateMarker","suggestion","content","TableClipboard","getAllAdjacentSuggestions","containsRange","setAttribute","newRange","push","createPositionBefore","differ","tableCellVerticalAlignment","_suggestionFactory","has","low","previous","insertion","tableCellSuggestion","editingDowncast","registerPostFixer","*Replace table cells*","columns","tableCellBorderColor","locale","forceDefaultExecution","markerToHighlight","attributes","removeMarker","tablePasteCell","value","suggestion:formatBlock:tablePasteCell","some","end","getRange","suggestionUnloaded","createRangeOn","type","tableCellHorizontalAlignment","markMultiRangeInsertion","set","ck-suggestion-marker--active","stop","getSuggestion","fill","tablePasteColumn","element","keys","fromEntries","move","markMultiRangeBlockFormat","getRowIndexes","dataDowncast","every","findAncestor","getChangedMarkers","tableCellBackgroundColor","high","conversion","getContainedElement","getShiftedBy","change","startsWith","view","getChild","trackChanges","find","isEmpty","showSuggestionHighlights","_descriptionFactory","tableCellBorderStyle","markers","suggestion-td","getRanges","registerDescriptionCallback","filter","tableCell","position","getChildren","isInContent","createRangeIn","_createdBatches","editor","options","isEqual","endColumn","oldRange","table","tablePaste","listenTo","getItems","getSuggestions","start","TrackChangesEditing","afterInit","requires","clipboardOutput","_getCoordsForCells","markerAttributes","column","rowInsertionRanges","plugins","unwrap","insert","columnInsertionIndexes","paragraph","editing","map","getTableIfOnlyTableInContent","nodeAfter","entries","rows","deletion","formatBlock","rowInsertionIndexes","Users","columnInsertionRanges","tablePasteRow","markMultiRangeDeletion","selection","_splitMarkerName"];var Ka,qa;Ka=Va,qa=389,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]},$a=["tableCellBorderWidth",Xa("0x8"),Xa("0x37"),Xa("0x17"),Xa("0xa2"),Xa("0x29"),Xa("0x6b")],Ja=Object[Xa("0x21")]($a[Xa("0x5c")]((t=>[t,null])));class Qa extends t.Plugin{static get[Xa("0x50")](){return[Ma]}[Xa("0x4f")](){const t=this[Xa("0x43")];if(!t[Xa("0x56")][Xa("0xa4")](Xa("0x9a")))return;const n=t[Xa("0x56")][Xa("0x95")](Xa("0x4e")),o=t[Xa("0x56")][Xa("0x95")](Xa("0x80")),s=t.plugins[Xa("0x95")](Ma),r=t[Xa("0x56")][Xa("0x95")](Xa("0x9a"));s[Xa("0x8c")][Xa("0x9f")](Xa("0x66"),"tablePasteColumn"),t[Xa("0x88")][Xa("0x87")].register(Xa("0x3"),{allowIn:"tableCell",allowContentOf:Xa("0x3d"),isLimit:!0}),t[Xa("0x2b")][Xa("0x85")]({model:Xa("0x3"),view:Xa("0x39")});let i=null;t.model.on(Xa("0x84"),((s,a)=>{const[x,c]=a,l=a[a[Xa("0x7a")]-1];l&&l[Xa("0xa")]||n._isForcedDefaultExecutionBlock||this.editor[Xa("0x74")][Xa("0x95")](Xa("0x32"))[Xa("0xf")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xa("0x5d")](t,n);if(!r||!Ya(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xa("0x6f")][Xa("0x68")]);if(!i[Xa("0x7a")])return!1;const a=i[0][Xa("0x27")](Xa("0x48")),x=o[Xa("0x24")](i),c=o[Xa("0x90")](i),l={startRow:x[Xa("0x7f")],endRow:x.last,startColumn:c.first,endColumn:c.last};return 1==i[Xa("0x7a")]&&(l.endRow+=o.getRows(r)-1,l[Xa("0x46")]+=o[Xa("0x6d")](r)-1),Ya(a,l,o)}(x,c,t[Xa("0x88")],o,r)&&(s[Xa("0x1b")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xa("0x88")][Xa("0x2e")]((()=>{t[Xa("0x88")][Xa("0x84")](a[0],a[1],a[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:x,deletionRanges:c,cells:l}=i;s.length&&n[Xa("0x18")](s,Xa("0x66"),{tablePasteChainId:o}),r.length&&n[Xa("0x18")](r,Xa("0x1e"),{tablePasteChainId:o}),x[Xa("0x7a")]&&n[Xa("0x18")](x,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xa("0x7a")]&&n[Xa("0x67")](c,Xa("0x49"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xa("0x23")](l[Xa("0x5c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Xa("0x77")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xa("0x88")][Xa("0x15")](o),i=e[Xa("0x33")]((t=>t[Xa("0x13")]()[Xa("0x45")](r)));i&&n.push([i.name,s])}n[Xa("0x7a")]&&d[Xa("0x9d")](Xa("0x53"),Object[Xa("0x21")](n))}i=null})))}),{priority:e.priorities[Xa("0x2a")]+10}),t[Xa("0x56")][Xa("0x95")](Xa("0x9a")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,a=o,x=Za(r),c=Za(a);t.return=r;let l=null,d=null;if(c||x)if(x&&!c){s[Xa("0x7d")](r[Xa("0x31")](0));for(const t of Array[Xa("0x91")](a[Xa("0x3f")]()))s.insert(t,r,Xa("0x12"));const t=i[Xa("0x63")][Xa("0x71")](n.row),e=i[Xa("0x59")][Xa("0x71")](n[Xa("0x54")]);t||e||(l=s.createRangeIn(r))}else c&&!x&&(d=s[Xa("0x41")](r));else{const t=s[Xa("0x8a")](Xa("0x3")),e=s[Xa("0x8a")](Xa("0x3"));s.wrap(s[Xa("0x41")](r),e),s[Xa("0x58")](t,r,0);for(const e of Array[Xa("0x91")](a.getChildren()))s[Xa("0x58")](e,t,Xa("0x12"));l=s[Xa("0x15")](t),d=s.createRangeOn(e)}const u=Array.from(a.getAttributes())[Xa("0x3c")]((([t])=>$a[Xa("0x71")](t)));i.cells[Xa("0x9f")]({element:r,attributes:u[Xa("0x7a")]?Object[Xa("0x21")](u):null}),l&&i.insertionRanges.push(l),d&&i.deletionRanges[Xa("0x9f")](d)}),{priority:Xa("0x2a")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x7")]||1;i[Xa("0x59")]=new Array(x)[Xa("0x1d")](a)[Xa("0x5c")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x93")](s,{startColumn:a,endColumn:a+x-1}))i[Xa("0x65")][Xa("0x9f")](t[Xa("0x88")][Xa("0x15")](e))}),{priority:Xa("0x0")}),o.on(Xa("0x86"),((e,n)=>{const[s,r={}]=n;if(!i)return;const a=r.at||0,x=r[Xa("0x60")]||1;i.rowInsertionIndexes=new Array(x).fill(a)[Xa("0x5c")](((t,e)=>t+e));for(const{cell:e}of o[Xa("0x93")](s,{startRow:a,endRow:a+x-1}))i[Xa("0x55")][Xa("0x9f")](t.model[Xa("0x15")](e))}),{priority:Xa("0x0")}),n[Xa("0x36")][Xa("0x3b")]((e=>{if(e[Xa("0x70")]&&e[Xa("0x70")][Xa("0x2f")]("tablePaste"))return e.previous?{}:{type:Xa("0x2"),content:Yo(t[Xa("0x9")],Xa("0x6"))}}));const a=()=>{};for(const t of[Xa("0x49"),Xa("0x1e"),Xa("0x66"),Xa("0xe")])n[Xa("0xa3")][Xa("0x6e")](Xa("0x2"),t,"join",a),n[Xa("0xa3")][Xa("0x6e")]("deletion",t,"join",a);n[Xa("0xa3")].registerCustomCallback(Xa("0x62"),Xa("0xe"),Xa("0x73"),a),n[Xa("0xa3")].registerCustomCallback(Xa("0x62"),Xa("0xe"),Xa("0x6a"),((e,n,o)=>{const s=e[Xa("0x5c")]((t=>t.getContainedElement()))[Xa("0x3c")]((t=>t)),r=new Map(s[Xa("0x5c")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xa("0x75")])e&&r[Xa("0x19")](t,e);else if(o&&o[Xa("0x53")])for(const[e,n]of Object[Xa("0x5f")](o.markerAttributes)){const o=t[Xa("0x88")][Xa("0x38")][Xa("0x95")](e),s=o?o[Xa("0x13")]()[Xa("0x2c")]():null;s&&r[Xa("0x19")](s,n)}t.model[Xa("0x2e")]((t=>{for(const[e,n]of r)t.setAttributes({...Ja,...n},e)}))}));const x=(e,o)=>{n[Xa("0xa3")][Xa("0x6e")](e,Xa("0x49"),o,((s,r,i)=>{t[Xa("0x88")][Xa("0x2e")]((t=>{const a=[];for(const t of s){const e=t[Xa("0x4d")][Xa("0x5e")];e.is(Xa("0x1f"),Xa("0x3"))&&a[Xa("0x9f")](e)}n._suggestionFactory[Xa("0x72")](e,null,o)(s,r,i);for(const e of a)Xa("0x78")!=e[Xa("0x8e")][Xa("0x6c")]&&t[Xa("0x57")](e)}))}))};x(Xa("0x2"),Xa("0x6a")),x(Xa("0x2"),Xa("0x73")),x("deletion","accept"),x(Xa("0x61"),"discard"),n._suggestionFactory[Xa("0x6e")](Xa("0x2"),Xa("0x66"),"discard",(t=>{const e=t[Xa("0x5c")]((t=>t.getContainedElement())),n=e[0][Xa("0x27")](Xa("0x48")),{minRow:r,maxRow:i}=s[Xa("0x52")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xa("0xa3")][Xa("0x6e")](Xa("0x2"),Xa("0x1e"),"discard",(t=>{const e=t[Xa("0x5c")]((t=>t.getContainedElement())),n=e[0][Xa("0x27")]("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xa("0x8f")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Xa("0x70")][Xa("0x2f")](Xa("0x49")))return;const o=e[Xa("0xc")].tablePasteChainId,s=n[Xa("0x4c")]().filter((t=>t[Xa("0x40")]&&t[Xa("0xc")]&&t[Xa("0xc")][Xa("0x92")]==o));s[Xa("0x7a")]&&e.getAllAdjacentSuggestions().length!=s.length&&s[Xa("0x7c")](((t,e)=>(t.next=e,e[Xa("0x1")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xa("0x69")](t.markerName),s=["ck-suggestion-marker",Xa("0x8b")],r=n.activeMarkers[Xa("0x71")](t[Xa("0x79")]);return r&&s[Xa("0x9f")](Xa("0x1a")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xa("0x76"),c,{priority:Xa("0x2a")}),n.on(Xa("0x14"),c,{priority:"high"}),t[Xa("0x88")].document.registerPostFixer((()=>{let e=!1;const o=Array[Xa("0x91")](t[Xa("0x88")][Xa("0x6f")][Xa("0xa1")][Xa("0x28")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:a}=n[Xa("0x69")](s);if("suggestion"!=o||Xa("0x61")!=i||r.oldRange)continue;if(!n.hasSuggestion(a))continue;const x=n[Xa("0x1c")](a)[Xa("0x3a")](),c=t[Xa("0x56")][Xa("0x95")]("Users").me;for(const t of n[Xa("0x4c")]())if(t[Xa("0x40")]&&t[Xa("0x94")]==c&&Xa("0x62")==t.type&&Xa("0xe")==t[Xa("0x70")]&&t[Xa("0x3a")]()[Xa("0x26")]((t=>x[Xa("0x11")]((e=>e[Xa("0x9c")](t,!0))))))for(const n of t[Xa("0x9b")]())n[Xa("0x40")]&&(n[Xa("0x73")](),e=!0)}return e})),t[Xa("0x88")][Xa("0x6f")].registerPostFixer((e=>{const o=t[Xa("0x74")][Xa("0x95")](Xa("0x7b"));if(!o||!o[Xa("0x42")][Xa("0xa4")](e[Xa("0x8d")]))return!1;let s=!1;const r=t.plugins[Xa("0x95")](Xa("0x64")).me,i=t[Xa("0x88")][Xa("0x6f")][Xa("0xa1")][Xa("0x82")](),a=Array[Xa("0x91")](t[Xa("0x88")][Xa("0x6f")].differ[Xa("0x28")]())[Xa("0x3c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xa("0x69")](t);return Xa("0x98")==o&&"tablePaste"==s&&i==r.id&&!e[Xa("0x47")]}));for(const t of i){if(Xa("0x58")!=t[Xa("0x16")]||Xa("0x3")!=t[Xa("0x96")]||1!=t[Xa("0x7a")])continue;const n=e[Xa("0x89")](t[Xa("0x3e")],t[Xa("0x3e")][Xa("0x2d")](1));if(!a.find((({data:t})=>t.newRange[Xa("0x45")](n))))for(const{name:t,data:o}of a)if(n[Xa("0x9c")](o[Xa("0x9e")])){e[Xa("0x97")](t,{range:n}),s=!0;break}}return s})),t[Xa("0x88")][Xa("0x6f")][Xa("0x5")]((e=>{let o=!1;const s=t.plugins[Xa("0x95")]("Users").me,r=n[Xa("0x4c")]()[Xa("0x3c")]((t=>t[Xa("0x40")]&&t[Xa("0x94")]==s)),i=new Set,a=new Set;for(const t of r)if(Xa("0x49")==t[Xa("0x70")])for(const e of t[Xa("0x77")]()){const n=e[Xa("0x13")]().getContainedElement();if(n)if(n.is("element",Xa("0x3"))&&Za(n)){t[Xa("0xd")](e[Xa("0x96")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xa("0x83")],x=s&&s.is(Xa("0x1f"),Xa("0x3")),c=r&&r.is(Xa("0x1f"),Xa("0x3"));x&&!i.has(s)&&a.add(s),c&&!i[Xa("0xa4")](r)&&a[Xa("0x81")](r)}else n.is(Xa("0x1f"),Xa("0x5a"))&&n[Xa("0x34")]&&(t[Xa("0xd")](e[Xa("0x96")]),o=!0)}else if(Xa("0xe")==t.subType){if(!t[Xa("0xc")]||!t[Xa("0xc")][Xa("0x92")])continue;const e=t[Xa("0xc")][Xa("0x53")];if(e&&Object[Xa("0x20")](e)[Xa("0x7a")])continue;const n=t[Xa("0xc")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Xa("0x70")]&&e[Xa("0x70")].startsWith(Xa("0x49"))){if(!e.attributes[Xa("0x92")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xa("0x92")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of a)e[Xa("0x57")](t);return o})),t.conversion[Xa("0x7e")](Xa("0x4"))[Xa("0xb")]({model:Xa("0x10"),view:(t,e)=>l(t),converterPriority:Xa("0x2a")}),t[Xa("0x2b")].for(Xa("0x25")).markerToHighlight({model:Xa("0x10"),view:(t,e)=>e[Xa("0x44")][Xa("0x35")]?l(t,!1):null,converterPriority:"high"});const d=t[Xa("0x5b")][Xa("0x30")];this[Xa("0x4a")](d[Xa("0x6f")],Xa("0x51"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xa("0x99")])[Xa("0x4b")]())t.is("element","suggestion-td")&&n.push(t);d.change((t=>{for(const e of n)t[Xa("0x22")](t[Xa("0x41")](e),t[Xa("0xa0")](e)),t[Xa("0x7d")](e)}))}))}}function Za(t){if(t[Xa("0x34")])return!0;const e=t[Xa("0x31")](0);return e.is("element",Xa("0x5a"))&&e.isEmpty}function Ya(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xa("0x93")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const tx=["getSuggestions","getColumnGroupElement","resizeTableWidth","bind","registerCustomCallback","formatBlock","accept","handleSuggestionDescription","tableWidth","handleResizeTableWidthCommand","data","_suggestionFactory","markBlockFormat","getSuggestionCallback","model","resizeTable","getContainedElement","subType","getTableColumnsWidths","_descriptionFactory","formatGroupId","get","selection","TrackChangesEditing","document","author","discard","registerDescriptionCallback","commandParams","change","enableCommand","getSelectedElement","columnWidths","TableColumnResizeEditing","editor","format","plugins"];var ex,nx;ex=tx,nx=489,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class sx extends t.Plugin{afterInit(){if(!this[ox("0x1a")][ox("0x1c")].has("TableColumnResizeEditing"))return;const t=this.editor[ox("0x1c")][ox("0xd")](ox("0xf"));t[ox("0x16")](ox("0x1f"),this[ox("0x1")][ox("0x20")](this)),t[ox("0x16")]("resizeColumnWidths",this.handleResizeTableWidthCommand[ox("0x20")](this)),t[ox("0x3")][ox("0x21")](ox("0x22"),ox("0x7"),"accept",t[ox("0x3")][ox("0x5")](ox("0x22"),null,"discard")),t[ox("0x3")][ox("0x21")]("formatBlock","resizeTable",ox("0x12"),t[ox("0x3")].getSuggestionCallback(ox("0x22"),null,ox("0x23"))),t[ox("0xb")][ox("0x13")](this[ox("0x24")][ox("0x20")](this))}[ox("0x1")](t,e){const n=this[ox("0x1a")][ox("0x1c")][ox("0xd")](ox("0xf")),o=this.editor[ox("0x1c")][ox("0xd")](ox("0x19")),s=e.table||this.editor.model[ox("0x10")][ox("0xe")][ox("0x17")]();this[ox("0x1a")][ox("0x6")][ox("0x15")]((()=>{const r=o[ox("0x1e")](s);let i=r?o[ox("0xa")](r):null,a=s.getAttribute("tableWidth")||null;const x=e.tableWidth||a,c=e[ox("0x18")]||i,l=this[ox("0x1a")][ox("0x1c")].get("Users").me;for(const t of n[ox("0x1d")]()){const e=t[ox("0x8")]();if("resizeTable"===t[ox("0x9")]&&e===s){t[ox("0x11")]!==l&&t[ox("0x12")]();const e=t[ox("0x2")][ox("0x14")];a=e[0][ox("0x0")],i=e[0][ox("0x18")];break}}t({table:s,tableWidth:x,columnWidths:c}),n[ox("0x4")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:a,columnWidths:i}],formatGroupId:ox("0x7")},[],"resizeTable")}))}[ox("0x24")](t){const{data:e}=t;if(e&&"resizeTable"===e[ox("0xc")]){const t="*Format:* resize table";return{type:ox("0x1b"),content:Yo(this[ox("0x1a")].locale,t)}}}}const rx=["insertTemplate","has","plugins","editor","TrackChangesEditing","get","afterInit","Template"];var ix,ax;ix=rx,ax=272,function(t){for(;--t;)ix.push(ix.shift())}(++ax);const xx=function(t,e){return rx[t-=0]};class cx extends t.Plugin{[xx("0x6")](){const t=this[xx("0x3")];t[xx("0x2")][xx("0x1")](xx("0x7"))&&t[xx("0x2")][xx("0x5")](xx("0x4")).enableCommand(xx("0x0"))}}const lx=["insertTableOfContents","editor","plugins","enableCommand","get","afterInit","registerElementLabel","TrackChangesEditing","tableOfContents","commands","ELEMENT_TABLE_OF_CONTENTS"];var dx,ux;dx=lx,ux=352,function(t){for(;--t;)dx.push(dx.shift())}(++ux);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x5")](){const t=this[gx("0x1")];if(!t[gx("0x9")][gx("0x4")](gx("0x0")))return;t[gx("0x2")][gx("0x4")](gx("0x7"))[gx("0x3")](gx("0x0"));const e=t[gx("0x2")][gx("0x4")](gx("0x7")),n=t.locale;e._descriptionFactory[gx("0x6")](gx("0x8"),(t=>Yo(n,gx("0xa"),t)))}}const fx=["newRange","editor","start","get","suggestion","ELEMENT_TITLE","locale","getChangedMarkers","title-content","TrackChangesEditing","from","isTouching","schema","getNearestSelectionRange","differ","model","updateMarker","isCollapsed","removeMarker","registerElementLabel","registerPostFixer","_descriptionFactory","nodeBefore","end","has","element","_splitMarkerName","document","forward","plugins","isEqual","afterInit","createRange"];var hx,px;hx=fx,px=406,function(t){for(;--t;)hx.push(hx.shift())}(++px);const bx=function(t,e){return fx[t-=0]};class Ex extends t.Plugin{[bx("0x15")](){const t=this[bx("0x18")];if(!t[bx("0x13")][bx("0xe")]("Title"))return;const e=t.plugins[bx("0x1a")](bx("0x20"));e[bx("0xb")][bx("0x9")](bx("0x1f"),(()=>Yo(t[bx("0x1d")],bx("0x1c")))),t[bx("0x5")][bx("0x11")][bx("0xa")]((n=>{let o=!1;const s=Array[bx("0x0")](t.model.document[bx("0x4")][bx("0x1e")]());for(const{name:r,data:i}of s){const{group:s}=e[bx("0x10")](r);if(bx("0x1b")!==s||!i.newRange)continue;const a=i[bx("0x17")],x=a[bx("0xd")][bx("0xc")];if(!x||!x.is(bx("0xf"),bx("0x1f")))continue;if(!a[bx("0x19")][bx("0x1")](a[bx("0xd")]))continue;const c=t[bx("0x5")][bx("0x2")][bx("0x3")](a[bx("0xd")],bx("0x12"));if(c&&c[bx("0x7")]){const t=n[bx("0x16")](a[bx("0x19")],c[bx("0x19")]);t[bx("0x14")](a)||(n[bx("0x6")](r,{range:t}),o=!0)}o||(n[bx("0x8")](r),o=!0)}return o}))}}const _x=["TrackChangesEditing","redo","get","enableCommand","afterInit","undo","plugins"];var Tx,Cx;Tx=_x,Cx=392,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{[yx("0x4")](){const t=this.editor,e=t.plugins[yx("0x2")](yx("0x0"));t[yx("0x6")].has("UndoEditing")&&(e[yx("0x3")](yx("0x5")),e[yx("0x3")](yx("0x1")))}}const Ax=["get","has","plugins","TrackChangesEditing","TableCaptionEditing","editor","enableCommand","requires","afterInit"];var vx,Rx;vx=Ax,Rx=421,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Sx=function(t,e){return Ax[t-=0]};class Ix extends t.Plugin{static get[Sx("0x0")](){return[Ma]}[Sx("0x1")](){const t=this[Sx("0x7")];t[Sx("0x4")][Sx("0x3")](Sx("0x6"))&&t[Sx("0x4")][Sx("0x2")](Sx("0x5"))[Sx("0x8")]("toggleTableCaption")}}const Lx=["*Format:* set start index to %0","*Change to:* %0","handleListReversedCommand","plugins","listReversed","document","_getTranslationKeyForListStyle","markMultiRangeBlockFormat","listStyle","config","from","_getSuggestionBlocks","DocumentListPropertiesUtils","expandListBlocksToCompleteList","list.properties","handleDescriptions","replace","editor","getAttribute","styles","listStart","change","startIndex","type","handleListStartCommand","TrackChangesEditing","filter","push","_LIST_","selection","enableCommand","afterInit","model","bind","format","numbered","length","DocumentListUtils","registerDescriptionCallback","_getSuggestionBlocksForListStyle","reversed","get","has","locale","commandParams","getListTypeFromListStyleType","*Format:* set order to reversed","commandName","toUpperCase","DocumentListPropertiesEditing"];var Nx,wx;Nx=Lx,wx=216,function(t){for(;--t;)Nx.push(Nx.shift())}(++wx);const Mx=function(t,e){return Lx[t-=0]};class Ox extends t.Plugin{[Mx("0xf")](){if(!this[Mx("0x1")][Mx("0x25")][Mx("0x1a")](Mx("0x21")))return;const t=this[Mx("0x1")][Mx("0x2b")].get(Mx("0x30")),e=this[Mx("0x1")][Mx("0x25")][Mx("0x19")](Mx("0x9"));t[Mx("0x3")]&&e[Mx("0xe")](Mx("0x2a"),this.handleListStyleCommand.bind(this)),t[Mx("0x18")]&&e[Mx("0xe")](Mx("0x26"),this[Mx("0x24")][Mx("0x11")](this)),t.startIndex&&e[Mx("0xe")]("listStart",this[Mx("0x8")][Mx("0x11")](this)),e._descriptionFactory[Mx("0x16")](this[Mx("0x31")][Mx("0x11")](this))}handleListStyleCommand(t,e={}){const n=this.editor[Mx("0x25")].get("TrackChangesEditing"),o=this[Mx("0x17")]();this[Mx("0x1")][Mx("0x10")][Mx("0x5")]((()=>{n[Mx("0x29")](o,{commandName:"listStyle",commandParams:[{type:e[Mx("0x7")]}],formatGroupId:"listStyle"})}))}[Mx("0x24")](t,e={}){const n=this[Mx("0x1")][Mx("0x25")].get(Mx("0x9")),o=this[Mx("0x1")][Mx("0x25")].get(Mx("0x15")),s=this[Mx("0x2d")]((t=>o.isListItemBlock(t)&&Mx("0x13")===t[Mx("0x2")]("listType")));null!==s&&this[Mx("0x1")][Mx("0x10")][Mx("0x5")]((()=>{n[Mx("0x29")](s,{commandName:Mx("0x26"),commandParams:[{reversed:e[Mx("0x18")]}],formatGroupId:Mx("0x26")})}))}handleListStartCommand(t,e={}){const n=this[Mx("0x1")][Mx("0x25")][Mx("0x19")]("TrackChangesEditing"),o=this.editor[Mx("0x25")][Mx("0x19")](Mx("0x15")),s=this[Mx("0x2d")]((t=>o.isListItemBlock(t)&&Mx("0x13")===t[Mx("0x2")]("listType")));null!==s&&this.editor[Mx("0x10")][Mx("0x5")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mx("0x4"),commandParams:[{startIndex:e[Mx("0x6")]}],formatGroupId:"listStart"})}))}[Mx("0x31")](t){const e=this[Mx("0x1")][Mx("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[Mx("0x1f")]){case Mx("0x2a"):o=Mx("0x23"),s={type:Mx("0x12"),content:Yo(e,o,Yo(e,this[Mx("0x28")](n[Mx("0x1c")][0][Mx("0x7")])))};break;case"listReversed":o=n.commandParams[0][Mx("0x18")]?Mx("0x1e"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Mx("0x4"):o=Mx("0x22"),s={type:Mx("0x12"),content:Yo(e,o,n[Mx("0x1c")][0][Mx("0x6")])}}return s}[Mx("0x17")](){const t=this.editor.plugins[Mx("0x19")]("DocumentListUtils");let e=Array.from(this[Mx("0x1")][Mx("0x10")][Mx("0x27")][Mx("0xd")].getSelectedBlocks());return e[Mx("0xb")](...t[Mx("0x2f")](e)),e=[...new Set(e)],e}[Mx("0x2d")](t){const e=this[Mx("0x1")][Mx("0x25")][Mx("0x19")](Mx("0x15"));let n=Array[Mx("0x2c")](this[Mx("0x1")][Mx("0x10")][Mx("0x27")][Mx("0xd")].getSelectedBlocks())[Mx("0xa")](t);if(!n[Mx("0x14")])return null;n=e[Mx("0x2f")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[Mx("0xb")](t);return o}[Mx("0x28")](t){return"ELEMENT_"+this[Mx("0x1")][Mx("0x25")].get(Mx("0x2e"))[Mx("0x1d")](t).toUpperCase()+Mx("0xc")+t[Mx("0x20")]()[Mx("0x0")](/-/g,"_")}}const Fx=["tableCellBorderColor","tableProperties","getFirstPosition","nodeAfter","registerCustomCallback","format","pluginName","getAttribute","getSuggestionCallback","accept","getSuggestions","enableCommand","tableCellPadding","_descriptionFactory","handleDiscardAction","discard","tableBorderStyle","model","editor","has","setAttribute","handleSuggestionDescription","_handlePropertyChange","tableCellVerticalAlignment","tableCellBorderWidth","tableCellProperties","TablePropertiesEditing","tableCellWidth","tableWidth","join","get","commandParams","enqueueChange","markBlockFormat","afterInit","table","_suggestionFactory","tableCellBackgroundColor","getSelectionAffectedTableCells","selection","_getSuggestion","findAncestor","change","document","formatBlock","data","locale","tableAlignment","TableCellPropertiesEditing","TableUtils","tableHeight","plugins","tableCellHeight","subType","registerDescriptionCallback","TrackChangesEditing","tableCellHorizontalAlignment","getContainedElement","TrackChangesTableProperties","tableCellBorderStyle"];var Px,Dx;Px=Fx,Dx=229,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{constructor(t){super(t),this[Bx("0xc")]=["tableBorderColor",Bx("0x1b"),"tableBorderWidth",Bx("0x3a"),Bx("0x27"),Bx("0x1"),"tableBackgroundColor"],this[Bx("0x24")]=[Bx("0xb"),Bx("0xa"),Bx("0x23"),Bx("0x17"),Bx("0x26"),Bx("0x3"),Bx("0x30"),Bx("0x7"),Bx("0x22")]}static get[Bx("0x11")](){return Bx("0x9")}[Bx("0x2d")](){const t=this.editor.plugins[Bx("0x29")](Bx("0x6"));if(this[Bx("0x1d")][Bx("0x2")][Bx("0x1e")](Bx("0x25"))){for(const e of this.tableProperties)t[Bx("0x16")](e,((t,n)=>{const o=this[Bx("0x1d")].model[Bx("0x36")].selection[Bx("0xd")]()[Bx("0x34")](Bx("0x2e"));this[Bx("0x21")](e,[o],this.tableProperties,"tableProperties",t,n)}));t._suggestionFactory[Bx("0xf")]("formatBlock",Bx("0xc"),Bx("0x14"),t[Bx("0x2f")][Bx("0x13")](Bx("0x37"),null,"discard")),t._suggestionFactory[Bx("0xf")]("formatBlock",Bx("0xc"),Bx("0x1a"),((t,e)=>this[Bx("0x19")](this.tableProperties,t,e))),t._suggestionFactory.registerCustomCallback(Bx("0x37"),Bx("0xc"),Bx("0x28"),(()=>!1))}if(this[Bx("0x1d")].plugins[Bx("0x1e")](Bx("0x3b"))){for(const e of this.tableCellProperties)t[Bx("0x16")](e,((t,n)=>{const o=this[Bx("0x1d")][Bx("0x2")][Bx("0x29")](Bx("0x0"))[Bx("0x31")](this[Bx("0x1d")].model.document[Bx("0x32")]);this[Bx("0x21")](e,o,this[Bx("0x24")],Bx("0x24"),t,n)}));t[Bx("0x2f")].registerCustomCallback(Bx("0x37"),"tableCellProperties","accept",t[Bx("0x2f")].getSuggestionCallback("formatBlock",null,"discard")),t[Bx("0x2f")].registerCustomCallback(Bx("0x37"),Bx("0x24"),"discard",((t,e)=>this[Bx("0x19")](this[Bx("0x24")],t,e))),t[Bx("0x2f")][Bx("0xf")]("formatBlock",Bx("0x24"),Bx("0x28"),(()=>!1))}t[Bx("0x18")][Bx("0x5")]((t=>this[Bx("0x20")](t)))}[Bx("0x21")](t,e,n,o,s,r){const i=this.editor[Bx("0x2")][Bx("0x29")](Bx("0x6"));this.editor[Bx("0x1c")][Bx("0x2b")](r.batch,(()=>{for(const t of e)if(this[Bx("0x33")](t,o))s(r);else{const e={};for(const o of n){const n=t[Bx("0x12")](o);void 0!==n&&(e[o]=n)}s(r),i[Bx("0x2c")](t,{commandParams:[e]},[],o)}}))}[Bx("0x19")](t,e,n){const o=e[0].start[Bx("0xe")],s=n[Bx("0x2a")][0];this[Bx("0x1d")][Bx("0x1c")][Bx("0x35")]((e=>{for(const n of t)void 0!==s[n]?e[Bx("0x1f")](n,s[n],o):e.removeAttribute(n,o)}))}[Bx("0x20")](t){if(t[Bx("0x38")])switch(t[Bx("0x4")]){case Bx("0xc"):return{type:Bx("0x10"),content:Yo(this[Bx("0x1d")][Bx("0x39")],"*Format:* change table properties")};case Bx("0x24"):return{type:"format",content:Yo(this[Bx("0x1d")][Bx("0x39")],"*Format:* change table cell properties")}}}[Bx("0x33")](t,e){const n=this[Bx("0x1d")][Bx("0x2")][Bx("0x29")]("TrackChangesEditing");for(const o of n[Bx("0x15")]({skipNotAttached:!0})){const n=o[Bx("0x8")]();if(o[Bx("0x4")]===e&&n===t)return o}return null}}const Ux=["discardAllSuggestions","authorName","sort","addSuggestionData","_getSuggestionData","buildSuggestion","setAttribute","never","createRangeIn","getAncestors","track-changes-command-not-found","creator","fromCharCode","insertion:","originalSuggestionId","commands","isDocumentOperation","ck-suggestion-marker--active","deletion:chain","ready","getShiftedBy","createPositionAfter","addComment","getSuggestion","map","getCommentThread","markers","track-changes-adapter-missing-getsuggestion","dataReady","open","moveTargetPosition","markerReady","addHighlight","formatInline:","addMarker","requires","_suggestionFactory","init","enableCommand","markInsertion","activeMarkers","isOwn","enqueueChange","data-suggestion","getIntersection","updateMarker","isLimit","getWalker","insertion","dataDowncast","nodeBefore","consumable","after","_enabledCommands","isCollapsed","createPositionAt","markerName","splice","isIntersectingWithRange","push","_removeSuggestion","elementEnd","next","schema","subType","_findSuggestions","_suggestionState","_suggestions","targetPosition","formatBlock:","join","set","skipNestingCheck","_mergeNestedSuggestions","addUser","deleteContent","split","_setSuggestionData","author","markerNameToElements","fromRange","isNextTo","deletion:join","createPositionBefore","applyOperation","suggestionChanged","TrackChangesEditing","splitPosition","isBlock","discardSuggestion","fire","removeComment","data","removeMarker:suggestion:formatBlock","_handleNewSuggestionMarker","removed","formatBlock:chain","update:suggestion","insertion:discard","getItems","formatBlock:accept","formatBlock:join","suggestion","authoredAt","change:_saved","editingDowncast","isSelectable","discard","item","batch","formatBlock","isBefore","end","previous","every","_commentsRepository","removeClass","head","stop","pluginName","PENDING_ACTION_SUGGESTION","document","addMarkerName","start","ck-suggestion-marker-","dataToMarker","acceptSelectedSuggestions","isUndo","move","_model","hasSuggestion","createRange","setTo","_addSuggestionMarker","isLocal","_onDiscard","markMultiRangeDeletion","accepted","getMultiRangeId","deletion:accept","Users","markerToHighlight","insertion:chain","includes","hasComments","trackChanges","insertContent","getCustomProperty","insertion:accept","plugins","trackChanges.trackFormatChanges","default","isRemovable","resolve","trackChanges.mergeNestedSuggestions","normal","reconvertMarker","from","updateSuggestion","group","then","selection","differ","change:data","_setSuggestionRange","isMultiRange","rootName","writer","isAfter","createdAt","showSuggestionHighlights","formatInline","insertion:join","multi","_trackFormatChanges","_checkSuggestionCorrectness","PendingActions","value","suggestionLoaded","addSuggestion","newRange","filter","addRange","toViewElement","getSuggestions","commandName","markMultiRangeBlockFormat","backward","editor","values","removeMarker","getRanges","high","formatGroupId","options","type","rejected","setSelection","get","_saved","track-changes-suggestion-not-found","chain","$graveyard","change:activeMarkers","getAttribute","isInsideObject","_isForcedDefaultExecutionBlock","remove","collaboration.channelId","CommentsRepository","catch","createSelection","formatInline:join","getLastMatchingPosition","bindElementToMarker","insert","formatInline:chain","createElement","isExternal","getSuggestionCallback","getFirstRange","getAllAdjacentSuggestions","getRange","isAtStart","size","delete","some","adapter","name","upcast","getNearestSelectionRange","element","_refreshSuggestionsChain","_getAuthorFromId","getFirstMarker","range","@external","getChanges","multipleBlocks","isAtEnd","for","_customCallbacks","nodeAfter","conversion","_splitMarkerName","position","unbindElementFromMarkerName","forward","hasCommentThread","registerPostFixer","acceptSuggestion","_registerDefaultCallbacks","stopListening","execute","trackChangesCommand","discardSelectedSuggestions","_defaultCallbacks","has","substr","containerElement","length","clone","fetchCommentThread","locale","forceDefaultExecution","getMarkers","enableReadOnlyMode","listenTo","oldRange","containsRangeInObject","ck-suggestion-marker","always","formatBlock:discard","markInlineFormat","$textProxy","change","root","_adapter","track-changes-user-not-found","removeMarkers","deletion","_getExternalAuthor","getUser","howMany","notReady","marker-count","parent","_editor","deletion:","clear","config","lowest","addMarker:suggestion:formatBlock","low","containsItem","_cutOutSuggestionMarker","mapper","getChangedMarkers","widget","containsPosition","consume","detach","isInContent","isObject","commentThread","_addThreadToSuggestion","_joinWithAdjacentSuggestions","_updateSuggestionData","getDifference","accept","return","containsRange","_joinSuggestions","markMultiRangeInsertion","isEqual","add","suggestion:","_rangeIsInLocalUserInsertion","removeAttribute","markerToData","addMarker:suggestion","external:","model","attributes"];var Gx,Hx;Gx=Ux,Hx=478,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("0xcd")](){return[zx("0x37"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Ox,ar,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,ai,ui,pi,Ci,Ri,Oi,ji,Wi,$i,ta,ia,ua,pa,ya,Sa,Ma,ja,Wa,Ix,Qa,sx,mx,jx,cx,Ex,kx]}static get[zx("0x121")](){return zx("0x100")}constructor(t){function e(t){return t.map((t=>String[zx("0xb6")](t))).join("")}super(t),this[zx("0xf1")]("activeMarkers",[]),this.on(zx("0x31"),((e,n,o,s)=>{this[zx("0x12b")].change((()=>{for(const e of[...s,...o])this[zx("0x12b")][zx("0xc4")][zx("0x67")](e)&&t.editing[zx("0x2")](e)}))})),this._descriptionFactory=new ss(this[zx("0x22")][zx("0xa8")][zx("0xe9")],this[zx("0x22")].locale),this[zx("0x7b")]=null,this[zx("0xce")]=new Vx(this.editor),this[zx("0xed")]=new Map,this._commentsRepository=t.plugins[zx("0x2c")]("CommentsRepository"),this[zx("0xdf")]=new Set,this[zx("0x12b")]=this[zx("0x22")][zx("0xa8")],this[zx("0xec")]=new WeakMap,this[zx("0x34")]=!1,t[zx("0x88")].define(zx("0x140"),zx("0x141")),this._trackFormatChanges=t[zx("0x88")].get("trackChanges.trackFormatChanges"),t[zx("0x88")].define(zx("0x0"),!0),this[zx("0xf3")]=t[zx("0x88")][zx("0x2c")]("trackChanges.mergeNestedSuggestions"),this[zx("0x64")]=new u(t,this[zx("0xdf")]),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,48,52,54])}[zx("0xcf")](){const t=this[zx("0x22")];t.conversion[zx("0x56")](zx("0x113"))[zx("0x137")]({model:zx("0x110"),view:t=>{const{id:e,type:n}=this[zx("0x5a")](t[zx("0xe2")]),o=[zx("0x74"),zx("0x126")+n];let s=3e3;return this[zx("0xd2")].includes(t[zx("0xe2")])&&(o.push("ck-suggestion-marker--active"),s=3010),zx("0x7e")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[zx("0x56")](zx("0xdb"))[zx("0xa1")]((e=>{e.on(zx("0xa6"),((e,n,o)=>{if(!o[zx("0x28")][zx("0x10")])return;const s=n[zx("0x116")];if(!s)return;const r=o[zx("0x8e")][zx("0x1d")](s);t.model[zx("0xe9")][zx("0x95")](s)&&r&&!r.getCustomProperty(zx("0x90"))&&r.is(zx("0x69"))&&(0,a.toWidget)(r,o[zx("0xd")])}),{priority:zx("0x26")})})),t[zx("0x59")][zx("0x56")](zx("0xdb")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[zx("0x28")][zx("0x10")])return null;const{type:n}=this[zx("0x5a")](t[zx("0xe2")]);return{classes:[zx("0x74"),zx("0x126")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[zx("0x116")].is(zx("0x7")))return void s[zx("0xdd")][zx("0x92")](o[zx("0x116")],n.name);const r=s[zx("0x8e")][zx("0x1d")](o.item);if(!o[zx("0x116")].is(zx("0x4d"))||!t.model[zx("0xe9")][zx("0x102")](o.item)||r[zx("0x13d")](zx("0xca")))return;const{id:i}=this[zx("0x5a")](o.markerName);s.writer.addClass([zx("0x74"),"ck-suggestion-marker-formatBlock"],r),s[zx("0xd")][zx("0xb0")](zx("0xd5"),i,r),s[zx("0x8e")][zx("0x3c")](r,o.markerName),e&&(this.activeMarkers[zx("0x139")](o[zx("0xe2")])?s[zx("0xd")].addClass("ck-suggestion-marker--active",r):s[zx("0xd")][zx("0x11e")]("ck-suggestion-marker--active",r));for(const e of t[zx("0xa8")][zx("0xb2")](o[zx("0x116")])[zx("0x10d")]())s.consumable.consume(e,n.name);s[zx("0xdd")][zx("0x92")](o[zx("0x116")],n[zx("0x4a")])};t[zx("0x59")][zx("0x56")](zx("0xdb"))[zx("0xa1")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[zx("0x28")][zx("0x10")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[zx("0x59")][zx("0x56")](zx("0xdb"))[zx("0xa5")]({model:"suggestion",view:(t,e)=>e.options.showSuggestionHighlights?null:{group:zx("0x110"),name:t[zx("0x68")](11)}}),t[zx("0x59")][zx("0x56")](zx("0x4b")).elementToElement({view:{name:zx("0x110"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=zx("0xa2")+t.getAttribute("suggestion-type")+":"+t[zx("0x32")]("id");return t[zx("0x32")](zx("0x83"))&&(n+=":"+t[zx("0x32")](zx("0x83"))),e[zx("0x3f")]("$marker",{"data-name":n})}}),t[zx("0x59")].for("upcast")[zx("0x127")]({view:zx("0x110")}),t[zx("0x59")][zx("0x56")](zx("0x113"))[zx("0xa1")]((t=>{t.on(zx("0x8a"),n(),{priority:zx("0x26")})})),t.conversion[zx("0x56")](zx("0x113"))[zx("0xa1")]((t=>{t.on(zx("0x107"),((t,e,n)=>{const o=n[zx("0x8e")][zx("0xf9")](e.markerName);if(o)for(const t of o)t[zx("0x13d")](zx("0xca"))||(n[zx("0xd")][zx("0x11e")]([zx("0x74"),"ck-suggestion-marker-formatBlock",zx("0xbb")],t),n.writer[zx("0xa4")]("data-suggestion",t),n[zx("0x8e")][zx("0x5c")](t,e.markerName))}),{priority:"high"})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[zx("0x3")](t[zx("0xa8")][zx("0x123")][zx("0x8")].getChangedMarkers()),s=new Set;for(const{name:a,data:x}of o){const{group:o,type:c,id:l}=this[zx("0x5a")](a);if("suggestion"!==o)continue;const d=this[zx("0xed")][zx("0x2c")](l);if(null!=x[zx("0x1a")])if(zx("0x11")==c&&(n=n||Xx(x[zx("0x1a")],a,e,t[zx("0xa8")][zx("0xe9")])),x[zx("0x1a")][zx("0xe0")]||"$graveyard"==x.newRange.root[zx("0xc")]||zx("0x118")==c&&!Jx(x[zx("0x1a")])||zx("0x7e")==c&&(qx(i=x[zx("0x1a")])||(r=i).start.parent==r[zx("0x11a")][zx("0xdc")]&&r[zx("0x125")][zx("0x55")]))e[zx("0x24")](a),n=!0;else{if(!d||!d.isInContent)continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[zx("0x98")](s)||n),n})),t[zx("0xa8")][zx("0x123")][zx("0x5f")]((e=>{let n=!1;for(const o of t[zx("0xa8")].document[zx("0x8")][zx("0x53")]()){if(zx("0x3d")!=o[zx("0x29")])continue;const s=o.position[zx("0xbe")](o[zx("0x6a")]);if(s.isAtEnd)for(const r of this[zx("0xed")][zx("0x23")]()){if(r.isMultiRange||!r[zx("0x94")])continue;if(zx("0x118")!=r[zx("0x29")])continue;const i=r[zx("0x42")]();if(i[zx("0x125")][zx("0x84")]!=i[zx("0x11a")].parent&&i[zx("0x11a")][zx("0xa0")](o[zx("0x5b")])){const o=t.model[zx("0x12d")](i[zx("0x125")],s);e[zx("0xd7")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t.model[zx("0xc4")].on(zx("0x10b"),((t,e,n)=>{if(null==n){const{id:t}=this[zx("0x5a")](e[zx("0x4a")]),n=this._suggestions.get(t);n&&n[zx("0x124")](e.name)}})),t[zx("0xa8")][zx("0x123")].on(zx("0x9"),(()=>{const e=Array[zx("0x3")](t[zx("0xa8")][zx("0x123")][zx("0x8")][zx("0x8f")]())[zx("0x1b")]((t=>zx("0x110")===this[zx("0x5a")](t[zx("0x4a")])[zx("0x5")]));if(0===e.length)return;e[zx("0xac")](((t,e)=>{const n=t[zx("0x106")].oldRange,o=e[zx("0x106")][zx("0x72")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[zx("0x125")][zx("0x119")](o[zx("0x125")])?-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[zx("0x72")]){const e=this[zx("0x108")](t);o.add(e)}else{const t=this[zx("0xed")][zx("0x2c")](e);null!==s[zx("0x1a")]||t[zx("0x94")]?(n[zx("0xa1")](t[zx("0x11f")]),o.add(t)):this[zx("0xe6")](t)}}o[zx("0x46")]>0&&this[zx("0x4e")](o);for(const t of n)this[zx("0x104")]("suggestionChanged",t)})),t.model.on(zx("0xfe"),((e,n)=>{const o=n[0];if(!this._suggestions[zx("0x46")])return;if(!o[zx("0xba")])return;if(o[zx("0x117")][zx("0x129")]||!o[zx("0x117")][zx("0x130")])return;let s,r;switch(o.type){case"insert":s=t[zx("0xa8")].createPositionAt(o[zx("0x5b")]),r=s[zx("0xbe")](o[zx("0x81")]);break;case zx("0xf6"):s=t[zx("0xa8")][zx("0xe1")](o[zx("0x101")]),r=t.model.createPositionAt(o[zx("0xc8")]);break;case zx("0x12a"):s=t[zx("0xa8")][zx("0xe1")](o[zx("0xee")]),r=s[zx("0xbe")](o[zx("0x81")]);break;default:return}const i=t.model[zx("0x12d")](s,r);t[zx("0xa8")][zx("0x79")]((()=>{for(const{suggestion:t,meta:e}of this[zx("0xeb")](i)){if(t[zx("0xb")])continue;if(zx("0x11")==t[zx("0x29")])continue;const n=t[zx("0x106")]&&t[zx("0x106")][zx("0x54")];("formatBlock"!=t[zx("0x29")]||"split"==o[zx("0x29")]&&!n)&&(e[zx("0x73")]||zx("0xda")==t[zx("0x29")]&&e.isOwn||t[zx("0x42")]()[zx("0x9d")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:zx("0x89")}),t[zx("0xa8")].on(zx("0xf5"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[zx("0x6e")])return;if(this[zx("0x34")])return;if(!this.trackChangesCommand[zx("0x17")])return;if(o[zx("0xe0")])return;const r=t[zx("0xa8")][zx("0xe9")],{start:i,end:a}=o[zx("0x42")](),x=i[zx("0x58")]&&r[zx("0xd8")](i[zx("0x58")])?null:r[zx("0x4c")](i,zx("0x5d")),c=a[zx("0xdc")]&&r[zx("0xd8")](a[zx("0xdc")])?null:r[zx("0x4c")](a,zx("0x21")),l=t[zx("0xa8")][zx("0x12d")](x?x[zx("0x125")]:i,c?c[zx("0x11a")]:a);t[zx("0xa8")][zx("0x79")]((e=>{this.markDeletion(l);const n=t[zx("0xa8")][zx("0xe9")][zx("0x4c")](l.start);o.is("documentSelection")?e[zx("0x2b")](n):o[zx("0x12e")](n)})),e[zx("0x120")]()}),{priority:e.priorities[zx("0x1")]+10}),t[zx("0xa8")].on(zx("0x13c"),((e,n)=>{const o=n[n[zx("0x6a")]-1];o&&o[zx("0x6e")]||this[zx("0x34")]||this.trackChangesCommand[zx("0x17")]&&(t[zx("0xa8")][zx("0x79")]((()=>{let o=t[zx("0xa8")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[zx("0x9c")]=o[zx("0x6b")]();const s=o.end[zx("0xdc")],r=t[zx("0xa8")][zx("0xe9")];s&&r[zx("0x102")](s)&&!r.isObject(s)&&(o=t[zx("0xa8")][zx("0x12d")](o.start,t[zx("0xa8")].createPositionAt(s,zx("0x11a")))),this[zx("0xd1")](o)})),e[zx("0x120")]())}),{priority:zx("0x26")}),this.editor[zx("0xb9")][zx("0xa1")](zx("0x13b"),this[zx("0x64")]),this[zx("0xd0")](zx("0x13b"));const o=new p(t,this[zx("0xed")]);t[zx("0xb9")][zx("0xa1")](zx("0x60"),o),this[zx("0xd0")](zx("0x60"));const s=new C(t,this[zx("0xed")]);t[zx("0xb9")].add(zx("0x103"),s),this.enableCommand("discardSuggestion"),t[zx("0xb9")][zx("0xa1")]("acceptAllSuggestions",new F(t,o,this[zx("0xed")])),this[zx("0xd0")]("acceptAllSuggestions"),t[zx("0xb9")][zx("0xa1")](zx("0xaa"),new F(t,s,this._suggestions)),this.enableCommand("discardAllSuggestions"),t[zx("0xb9")][zx("0xa1")](zx("0x128"),new U(t,o,this[zx("0xed")])),this[zx("0xd0")]("acceptSelectedSuggestions"),t[zx("0xb9")][zx("0xa1")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[zx("0xd0")](zx("0x65"));const r=t.plugins[zx("0x2c")]("CommentsRepository");this.listenTo(r,zx("0xc0"),((t,{threadId:e})=>{const n=this[zx("0xed")][zx("0x2c")](e);n&&n[zx("0x96")]&&1===n[zx("0x96")][zx("0x6a")]&&this[zx("0x99")](e,{hasComments:!0})}),{priority:zx("0x8b")}),this[zx("0x71")](r,zx("0x105"),((t,{threadId:e})=>{const n=this[zx("0xed")][zx("0x2c")](e);n&&n[zx("0x96")]&&!n.commentThread[zx("0x6a")]&&this[zx("0x99")](e,{hasComments:!1})}),{priority:zx("0x8b")})}set[zx("0x49")](t){if(this[zx("0x7b")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[zx("0x7b")]=t}get[zx("0x49")](){return this[zx("0x7b")]}[zx("0x1e")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[zx("0x23")]())t&&!e[zx("0x94")]||n.push(e);return e?n[zx("0xc2")]((t=>t.toJSON())):n}[zx("0xc1")](t){const n=this._suggestions[zx("0x2c")](t);if(!n)throw new e.CKEditorError(zx("0x2e"),this);return n}[zx("0x12c")](t){return this[zx("0xed")][zx("0x67")](t)}[zx("0xad")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[zx("0x29")].split(":"),i=this[zx("0xed")].get(n)||this._createSuggestion(s,r,n,e,o);if(this[zx("0x97")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i.createdAt=t[zx("0xf")],o&&o[zx("0x52")]){const t=o[zx("0x52")],e=this[zx("0x7f")](t[zx("0xab")]);i.authoredAt=t[zx("0xf")],i.author=e,i[zx("0x40")]=!0}else i[zx("0x111")]=t[zx("0xf")];switch(t.data&&(i[zx("0x106")]=t[zx("0x106")]),t[zx("0xa9")]&&(i[zx("0xa9")]=t.attributes),this[zx("0x7b")]&&this._adapter.addSuggestion||(i[zx("0x2d")]=!0),this._suggestionState[zx("0x2c")](i)){case zx("0x82"):this[zx("0xec")].set(i,"dataReady");break;case zx("0xc9"):i.isInContent?(this[zx("0xec")].set(i,zx("0xbd")),this.fire("suggestionLoaded",i)):this[zx("0xec")][zx("0xf1")](i,zx("0x109"))}return i}acceptSuggestion(t){this[zx("0x6e")]((()=>{this[zx("0x22")].model[zx("0x79")]((()=>{for(const e of t[zx("0x43")]())e[zx("0x9b")]()}))}))}[zx("0x103")](t){this[zx("0x6e")]((()=>{this[zx("0x22")][zx("0xa8")].change((()=>{for(const e of t[zx("0x43")]())e[zx("0x115")]()}))}))}[zx("0xd0")](t,n){const o=this[zx("0x22")][zx("0xb9")][zx("0x2c")](t);if(!o)throw new e.CKEditorError(zx("0xb4"),this,{commandName:t});this[zx("0xdf")].add(o),n&&o.on("execute",((t,e)=>{this[zx("0x64")].value&&(this._isForcedDefaultExecutionBlock||e[zx("0x6a")]>0&&e[e[zx("0x6a")]-1]&&e[e[zx("0x6a")]-1][zx("0x6e")]||(n(((...t)=>o[zx("0x63")](...t,{forceDefaultExecution:!0})),...e),t[zx("0x120")]()))}),{priority:"high"})}[zx("0x6e")](t){let n,o;const s=this[zx("0x34")];this[zx("0x34")]=!0;try{n=t()}catch(t){o=t}return s||(this[zx("0x34")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[zx("0xd1")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor.plugins[zx("0x2c")](zx("0x136")).me;for(const{suggestion:e,meta:o}of this[zx("0xeb")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[zx("0xf3")]&&o[zx("0x73")])continue;return e}if(n==e[zx("0xea")]){const n=e.getFirstRange();return n[zx("0x125")][zx("0xa0")](t.end)?this[zx("0xa")](e,this[zx("0x12b")][zx("0x12d")](t[zx("0x125")],n[zx("0x11a")])):this[zx("0xa")](e,this._model.createRange(n[zx("0x125")],t[zx("0x11a")])),e}}const r=(0,e.uid)(),i=s.id,a=n?"insertion:"+n:zx("0xda"),x=this[zx("0xf7")]({id:r,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x12f")](a,r,i,t),x}[zx("0x9f")](t,n=zx("0x13"),o={}){const s=this[zx("0x22")][zx("0x13f")].get(zx("0x136")).me,r=this[zx("0xce")][zx("0x41")](zx("0xda"),n,zx("0xf0"));for(const e of this[zx("0x1e")]())if(e[zx("0xf8")].id==s.id&&zx("0xda")==e.type&&e.subType==n&&(r(e[zx("0x25")](),t)||r(t,e.getRanges()))){for(const n of t)e[zx("0x1c")](n);return e}if(this[zx("0xf3")])for(const e of t)for(const{suggestion:n,meta:o}of this[zx("0xeb")](e,zx("0xda"))){if(!o.isOwn)continue;let e=!0;for(const o of n[zx("0x25")]())for(const n of t)if(!o[zx("0x9d")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),a=s.id,x=zx("0xb7")+n,c=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:a,attributes:o});for(const e of t)this[zx("0x12f")](x,i,a,e,Zo[zx("0x134")]());return c}[zx("0x77")](t,n,o=null,s={}){if(o=o||$x(n),t[zx("0xe0")])return null;if(zx("0xb1")===this[zx("0x14")]){const e=this[zx("0xce")].getSuggestionCallback(zx("0x11"),o,zx("0x9b"));return this[zx("0x6e")]((()=>e([t],n,s))),null}const r=this.editor[zx("0x13f")][zx("0x2c")]("Users").me,i=[];if(zx("0x75")!==this[zx("0x14")])for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"insertion"))n[zx("0xd3")]&&!n.isInsideObject&&i.push(...e[zx("0x25")]());const a=function(t,e){const n=[];for(const o of e){const e=t[zx("0xd6")](o);e&&n[zx("0xe5")](e)}return n}(t,i),x=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[zx("0x6a")];){const o=n[e][zx("0x9a")](t);n[zx("0xe3")](e,1,...o),e+=o[zx("0x6a")]}}return n}(t,i);a.length&&this[zx("0x12b")].change((()=>{for(const t of a){const e=this[zx("0xce")][zx("0x41")](zx("0x11"),o,zx("0x9b"));this[zx("0x6e")]((()=>e([t],n,s)))}}));for(const t of x){let i=null,a=t[zx("0x125")],x=t[zx("0x11a")];for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"formatInline")){if(!n[zx("0xd3")])continue;if(e[zx("0xea")]!=o)continue;const s=e[zx("0x42")]();if(s[zx("0x9d")](t,!0))return null;a=a[zx("0x119")](s[zx("0x125")])?a:s[zx("0x125")],x=x[zx("0xe")](s[zx("0x11a")])?x:s[zx("0x11a")],i?s[zx("0x125")].isBefore(i[zx("0x42")]()[zx("0x125")])?(i.removeMarkers(),i=e):e[zx("0x7d")]():i=e}const c=this[zx("0x12b")].createRange(a,x);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[zx("0xf7")]({id:t,type:zx("0xcb")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[zx("0x12f")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[zx("0x27")]||(n[zx("0x27")]=n[zx("0x1f")]),n[zx("0x54")]=t.is("range"),s=s||$x(n);const i=o.map((t=>Qx(t,this._model))),a=t.is(zx("0x51"))?t:Qx(t,this._model);if(zx("0xb1")===this[zx("0x14")]){const t=this[zx("0xce")][zx("0x41")]("formatBlock",s,"accept");return this[zx("0x6e")]((()=>t([a],n,r))),null}i[zx("0xe5")](a);let x=!0;for(const t of i)if(!this[zx("0xa3")](t)){x=!1;break}if(x&&zx("0x75")!==this[zx("0x14")]){const t=this._suggestionFactory.getSuggestionCallback(zx("0x118"),s,"accept");return this[zx("0x6e")]((()=>t([a],n,r))),null}let c=null,l=a[zx("0x125")],d=a[zx("0x11a")];for(const{suggestion:t,meta:e}of this[zx("0xeb")](a,zx("0x118"))){if(!e[zx("0xd3")]||e.isNextTo||e[zx("0x73")]||e[zx("0x33")])continue;if(t[zx("0x106")][zx("0x27")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[zx("0xea")]==s){if(o[zx("0x9d")](a,!0))return null;l=l[zx("0x119")](o[zx("0x125")])?l:o[zx("0x125")],d=d.isAfter(o[zx("0x11a")])?d:o[zx("0x11a")],c?o.start[zx("0x119")](c[zx("0x42")]()[zx("0x125")])?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=a[zx("0xd6")](o);this[zx("0x8d")](t,e)}}const u=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[zx("0x12b")].createRange(l,d)),c;{const t=this[zx("0xf7")]({id:g,type:zx("0xef")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(zx("0xef")+s,g,m,this[zx("0x12b")][zx("0x12d")](l,d)),t}}[zx("0x20")](t,n,o=[],s=null,r={}){n[zx("0x27")]||(n[zx("0x27")]=n[zx("0x1f")]);const i=t[0];n[zx("0x54")]=i.is(zx("0x51")),s=s||$x(n);const a=o[zx("0xc2")]((t=>Qx(t,this[zx("0x12b")]))),x=i.is("range")?t:t[zx("0xc2")]((t=>Qx(t,this[zx("0x12b")])));if("never"===this[zx("0x14")]){const t=this._suggestionFactory[zx("0x41")](zx("0x118"),s,zx("0x9b"));return this[zx("0x6e")]((()=>t(x,n,r))),null}a[zx("0xe5")](...x);let c=!0;for(const t of a)if(!this[zx("0xa3")](t)){c=!1;break}if(c&&zx("0x75")!==this[zx("0x14")]){const t=this[zx("0xce")][zx("0x41")]("formatBlock",s,zx("0x9b"));return this[zx("0x6e")]((()=>t(x,n,r))),null}const l=this[zx("0x22")][zx("0x13f")][zx("0x2c")]("Users").me;for(const t of this[zx("0x1e")]()){if(t[zx("0xf8")].id!=l.id)continue;if(zx("0x118")!=t[zx("0x29")]||t[zx("0x106")][zx("0x27")]!=n[zx("0x27")])continue;const e=t.subType==s;for(let n=0;n<x[zx("0x6a")];n++){const o=x[n];for(const s of t[zx("0x6f")]()){const r=s[zx("0x44")]();if(o.isEqual(r)){e?(x[zx("0xe3")](n,1),n--):t[zx("0x24")](s[zx("0x4a")]);break}}}}if(0==x[zx("0x6a")])return null;const d=this[zx("0xce")][zx("0x41")](zx("0x118"),s,"join");for(const t of this[zx("0x1e")]())if(t[zx("0xf8")].id==l.id&&zx("0x118")==t[zx("0x29")]&&t[zx("0x106")][zx("0x27")]==n[zx("0x27")]&&t.subType==s&&(d(t[zx("0x25")](),x)||d(x,t[zx("0x25")]()))){for(const e of x)t[zx("0x1c")](e);return t}const u=(0,e.uid)(),g=l.id,m=zx("0xef")+s,f=this[zx("0xf7")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of x)this._addSuggestionMarker(m,u,g,t,Zo[zx("0x134")]());return f}markDeletion(t,n=null,o={}){if(t[zx("0xe0")])return null;const s=this[zx("0x22")].plugins[zx("0x2c")](zx("0x136")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[zx("0xeb")](r,zx("0xda")))if(e.isOwn&&!e[zx("0xfb")])if(t.isMultiRange){const e=t[zx("0x25")]().filter((t=>zx("0x30")!=t[zx("0x7a")][zx("0xc")]));if(e[zx("0x11c")]((t=>r[zx("0x9d")](t,!0)))&&t[zx("0x115")](),e[zx("0x48")]((t=>t[zx("0x9d")](r,!0)))){const t=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0x9b"));return this[zx("0x6e")]((()=>t([r],null,o))),null}}else{const e=r[zx("0xd6")](t[zx("0x42")]());null!==e&&t[zx("0x131")]([e],null,o)}if(r[zx("0x93")](),r[zx("0xe0")]||zx("0x30")==r[zx("0x7a")].rootName)return null;let a=null,x=r[zx("0x125")],c=r[zx("0x11a")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,zx("0x7e")))if(e.isOwn)if(t[zx("0xb")]&&this[zx("0xf3")]){let e=!0;for(const n of t[zx("0x25")]()){if(n[zx("0x9d")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[zx("0x115")]()}else{const n=t[zx("0x42")]();if(n[zx("0x9d")](r,!0)){if(!this[zx("0xf3")]&&e[zx("0x73")])continue;return t}x=x.isBefore(n.start)?x:n.start,c=c.isAfter(n[zx("0x11a")])?c:n[zx("0x11a")],a?n[zx("0x125")][zx("0x119")](a.getFirstRange()[zx("0x125")])?(a[zx("0x7d")](),a=t):t[zx("0x7d")]():a=t}if(a)return this[zx("0xa")](a,this[zx("0x12b")][zx("0x12d")](x,c)),a;{const t=(0,e.uid)(),r=this[zx("0x12b")].createRange(x,c),i=s.id,a=n?zx("0x86")+n:zx("0x7e"),l=this[zx("0xf7")]({id:t,type:a,createdAt:new Date,authorId:i,attributes:o});return this[zx("0x12f")](a,t,i,r),l}}[zx("0x132")](t,n=zx("0x13"),o={}){const s=this[zx("0x22")].plugins[zx("0x2c")](zx("0x136")).me,r=t.map((t=>new i.LiveRange(t.start,t[zx("0x11a")]))),a=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,zx("0xda")))n[zx("0xd3")]&&!n[zx("0xfb")]&&a[zx("0xa1")](e);for(const e of a)if(e[zx("0xb")]){const s=e[zx("0x25")]();if((!e.attributes||!e[zx("0xa9")].skipNestingCheck)&&s[zx("0x11c")]((t=>r[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))&&e.discard(),r[zx("0x11c")]((t=>s[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))){const e=this[zx("0xce")].getSuggestionCallback(zx("0x7e"),n,"accept");return this[zx("0x6e")]((()=>e(t,null,o))),null}}else{const t=e[zx("0x42")]();if(r.some((e=>e[zx("0x9d")](t,!0)))&&e.discard(),r[zx("0x11c")]((e=>t[zx("0x9d")](e,!0)))){const t=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0x9b"));return this[zx("0x6e")]((()=>t(r,null,o))),null}}const x=this[zx("0xce")][zx("0x41")](zx("0x7e"),n,zx("0xf0"));let c=null;for(const t of this[zx("0x1e")]())if(t[zx("0xf8")].id==s.id&&t[zx("0x94")]&&zx("0x7e")==t[zx("0x29")]&&t[zx("0xea")]==n&&(x(t[zx("0x25")](),r)||x(r,t[zx("0x25")]())))if(c){if(t[zx("0x96")]&&t.commentThread.length)continue;for(const e of t[zx("0x25")]())c[zx("0xe4")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[zx("0xe4")](e)||t.addRange(e)}if(c)return c;a[zx("0x87")]();for(const t of r)for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,"deletion"))n[zx("0xd3")]&&a.add(e);for(const t of a){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&r[zx("0x11c")]((t=>e[zx("0x48")]((e=>e[zx("0x9d")](t,!0))))))return t;(!t[zx("0xa9")]||!t[zx("0xa9")][zx("0xf2")])&&e[zx("0x11c")]((t=>r[zx("0x48")]((e=>e[zx("0x9d")](t,!0)))))&&t[zx("0x115")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[zx("0xf7")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[zx("0x93")](),t[zx("0xe0")]||zx("0x30")==t[zx("0x7a")][zx("0xc")]||this[zx("0x12f")](u,l,d,t,Zo[zx("0x134")]());return g}[zx("0xa")](t,e){const n=t[zx("0x50")]();this[zx("0x12b")][zx("0x79")]((t=>{t[zx("0xd7")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[zx("0x88")].get(zx("0x36"));this[zx("0x11d")][zx("0x5e")](e)||this[zx("0x11d")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[zx("0x11d")][zx("0xc3")](e);o.unbind(zx("0x142")),o.isRemovable=!1,t[zx("0x96")]=o}[zx("0x15")](t,n,o,s){if(t[zx("0x29")]!=n||t[zx("0xea")]!=o||t[zx("0xb5")].id!=s)throw this[zx("0x22")][zx("0x70")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[zx("0x8d")](t,n){const o=t.getFirstRange();if(n.isEqual(o))t[zx("0x7d")]();else if(o[zx("0x9d")](n)){const s=this._model[zx("0xe1")](n[zx("0x125")].nodeBefore,"end");this._setSuggestionRange(t,this[zx("0x12b")][zx("0x12d")](o[zx("0x125")],s));const r=(0,e.uid)(),i=t.creator.id,a=t[zx("0x29")]+":"+t.subType;this[zx("0xf7")]({id:r,type:a,createdAt:new Date,authorId:i,data:t[zx("0x106")],attributes:t.attributes});const x=this[zx("0x12b")][zx("0xe1")](n.end[zx("0x84")],zx("0xde")),c=this[zx("0x12b")].createRange(x,o[zx("0x11a")]);this[zx("0x12f")](a,r,i,c)}else if(o[zx("0x91")](n[zx("0x125")])){const e=this[zx("0x12b")][zx("0xe1")](n.start.nodeBefore,zx("0x11a"));this[zx("0xa")](t,this[zx("0x12b")][zx("0x12d")](o[zx("0x125")],e))}else{const e=this[zx("0x12b")].createPositionAt(n[zx("0x11a")][zx("0x84")],"after");this._setSuggestionRange(t,this[zx("0x12b")].createRange(e,o[zx("0x11a")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[zx("0xeb")](t,zx("0xda"))){if(!n.isOwn)continue;const o=e[zx("0x25")]();for(const e of o)if(!t[zx("0x9a")](e)[zx("0x6a")])return!0}return!1}[zx("0x4f")](t){const n=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136"))[zx("0x80")](t);if(!n)throw new e.CKEditorError(zx("0x7c"),this);return n}[zx("0x7f")](t){const e=this[zx("0x22")][zx("0x13f")][zx("0x2c")](zx("0x136")),n=(0,r.hashObject)(zx("0xa7")+t);return e[zx("0x80")](n)||e[zx("0xf4")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[zx("0x4f")](o),i=this[zx("0xce")][zx("0xaf")](t,e,n,r,s,(t=>this[zx("0x99")](n,{attributes:t})));return this[zx("0x71")](i,zx("0x9b"),(()=>{this[zx("0x99")](n,{state:zx("0x133")})}),{priority:"high"}),this[zx("0x71")](i,zx("0x115"),(()=>{this[zx("0x99")](n,{state:zx("0x2a")})}),{priority:zx("0x26")}),this[zx("0xed")][zx("0xf1")](n,i),this[zx("0xec")].set(i,zx("0x82")),i}[zx("0x5a")](t){const e=t[zx("0xf6")](":");return{group:e[0],type:e[1],subType:e[zx("0x6a")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[zx("0x6a")]<5?e[3]:e[4],markerCount:6==e[zx("0x6a")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[zx("0x125")],i=s[zx("0x11a")];this[zx("0xa")](t,this[zx("0x12b")][zx("0x12d")](r,n));const a=(0,e.uid)(),x=t[zx("0xb5")].id,c=t[zx("0x29")]+(t[zx("0xea")]?":"+t.subType:"");this[zx("0xf7")]({id:a,type:c,createdAt:new Date,authorId:x,originalSuggestionId:t.id,attributes:t[zx("0xa9")],data:t[zx("0x106")]}),zx("0x118")==t[zx("0x29")]&&(o=this[zx("0x12b")][zx("0xfd")](o.parent)),this[zx("0x12f")](c,a,x,this[zx("0x12b")][zx("0x12d")](o,i))}[zx("0xeb")](t,e=null){const n=[],o=this[zx("0x12b")].schema,s=this.editor[zx("0x13f")].get("Users").me;for(const r of this[zx("0x1e")]())if(r[zx("0x94")]&&(!e||r.type==e))for(const e of r[zx("0x25")]()){const i=t[zx("0x125")].isEqual(e[zx("0x11a")])||t[zx("0x11a")][zx("0xa0")](e.start);if(i||t[zx("0xd6")](e)){const a=t[zx("0x9d")](e)&&Kx(o,e[zx("0x125")],t),x=e.containsRange(t)&&Kx(o,t[zx("0x125")],e);n[zx("0xe5")]({suggestion:r,meta:{isOwn:s==r[zx("0xf8")],isNextTo:i,isInsideObject:a,containsRangeInObject:x}});break}}return n}[zx("0x12f")](t,e,n,o,s){this._model[zx("0x79")]((r=>{let i=zx("0xa2")+t+":"+e+":"+n;s&&(i=i+":"+s),r[zx("0xcc")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[zx("0xe8")];t[zx("0x11b")]=null,null!=e&&(e[zx("0xe8")]=null),t[zx("0xe8")]=null,null!=n&&(n[zx("0x11b")]=null),zx("0xbd")==this._suggestionState[zx("0x2c")](t)&&(this[zx("0xec")][zx("0xf1")](t,zx("0x109")),this.fire("suggestionUnloaded",t,e,n))}[zx("0xf7")](t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[zx("0x7b")].addSuggestion){const s=this[zx("0x22")].plugins[zx("0x2c")]("PendingActions"),r=o.hasComments,i=o[zx("0xea")]?o[zx("0x29")]+":"+o.subType:o.type,a=this.editor[zx("0x6d")],x=s[zx("0xa1")](Yo(a,zx("0x122"))),c={id:n,type:i,hasComments:r,data:t[zx("0x106")]||null,originalSuggestionId:t[zx("0xb8")]||null,attributes:o[zx("0xa9")]};this[zx("0x7b")][zx("0x19")](c).then((t=>{o[zx("0x2d")]=!0,s[zx("0x35")](x),t&&t[zx("0xf")]&&(this[zx("0xed")][zx("0x2c")](n)[zx("0xf")]=t[zx("0xf")])}))[zx("0x38")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[zx("0x22")][zx("0xa8")][zx("0xd4")]({isUndoable:!1},(()=>{o.discard()})),o[zx("0x62")](),this[zx("0xed")].delete(o.id),this[zx("0xec")][zx("0x47")](o),t}))}return o}[zx("0x99")](t,e){const n=this[zx("0x22")].plugins[zx("0x2c")](zx("0x16")),o=this[zx("0xc1")](t);if(this[zx("0x7b")]&&this[zx("0x7b")].updateSuggestion)if(o[zx("0x2d")]){const o=n[zx("0xa1")](Yo(this[zx("0x22")][zx("0x6d")],"PENDING_ACTION_SUGGESTION"));this[zx("0x7b")][zx("0x4")](t,e).then((()=>{n[zx("0x35")](o)}))}else o.on(zx("0x112"),(()=>{this._updateSuggestionData(t,e)}))}[zx("0xae")](t){if(!this[zx("0x7b")]||!this._adapter.getSuggestion)throw new e.CKEditorError(zx("0xc5"),this);return this._adapter[zx("0xc1")](t)}[zx("0x108")](t){const{id:e,type:n,subType:o,authorId:s}=this[zx("0x5a")](t),r=this._suggestions[zx("0x2c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[zx("0x15")](r,n,o,s),this[zx("0xec")].get(r)){case zx("0x82"):this[zx("0xae")](e)[zx("0x6")]((t=>{let n=Promise[zx("0x143")]();t[zx("0x13a")]&&(n=this[zx("0x11d")][zx("0x6c")]({channelId:this.editor[zx("0x88")].get(zx("0x36")),threadId:e})),n.then((()=>{this[zx("0xad")](t)[zx("0x2d")]=!0}))})),this[zx("0xec")][zx("0xf1")](r,zx("0xc9"));break;case zx("0x109"):this[zx("0x99")](e,{state:zx("0xc7")});case zx("0xc6"):this[zx("0xec")][zx("0xf1")](r,"ready"),this[zx("0x104")](zx("0x18"),r);break;case zx("0xbd"):this[zx("0x104")](zx("0xff"),r)}return r[zx("0x124")](t),r}[zx("0x4e")](t){const e=Array[zx("0x3")](t)[zx("0x1b")]((t=>!t.isMultiRange)),n=this[zx("0x1e")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n[zx("0x1b")]((e=>!t[zx("0x67")](e))),s=new Map(n[zx("0xc2")]((t=>[t,this[zx("0xce")][zx("0x41")](t.type,t[zx("0xea")],zx("0x2f"))]))),r=new Map(n[zx("0xc2")]((t=>[t,t[zx("0x42")]()]))),i=new Set,a=new Set;for(let t=0;t<e[zx("0x6a")];t++)x(e[t],e,t+1);for(let t=0;t<e[zx("0x6a")];t++)x(e[t],o,0);for(let t=0;t<e[zx("0x6a")];t++){const n=e[t];!a.has(n)&&n.previous&&(n[zx("0x11b")][zx("0xe8")]===n&&(n.previous.next=null),n.previous=null),!i[zx("0x67")](n)&&n.next&&(n[zx("0xe8")][zx("0x11b")]===n&&(n.next[zx("0x11b")]=null),n[zx("0xe8")]=null)}function x(t,e,n){for(let o=n;o<e[zx("0x6a")];o++){const n=c(t,e[o]);n&&(n[0][zx("0xe8")]=n[1],n[1].previous=n[0],i.add(n[0]),a[zx("0xa1")](n[1]))}}function c(t,e){if(t[zx("0xf8")].id!==e[zx("0xf8")].id)return null;const n=s[zx("0x2c")](t)(t,e,r[zx("0x2c")](t),r[zx("0x2c")](e));return n&&s.get(e)(t,e,r[zx("0x2c")](t),r[zx("0x2c")](e))?n[1][zx("0x96")]&&n[1].commentThread[zx("0x6a")]?null:n:null}}[zx("0x98")](t){const e=Array[zx("0x3")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),s=new Map(e[zx("0xc2")]((t=>[t,this[zx("0xce")][zx("0x41")](t.type,t.subType,zx("0xf0"))]))),r=new Map(n[zx("0xc2")]((t=>[t,t.getRanges()])));for(let t=0;t<e[zx("0x6a")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[zx("0x6a")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[zx("0x29")]!==e.type||o[zx("0xf8")].id!==e[zx("0xf8")].id||o[zx("0xea")]!==e[zx("0xea")])continue;const a=s.get(e),x=r[zx("0x2c")](e),c=r[zx("0x2c")](o),l=e[zx("0x96")]&&e[zx("0x96")][zx("0x6a")],d=o[zx("0x96")]&&o[zx("0x96")][zx("0x6a")];if(!l&&a(c,x))return t[zx("0x9e")](o,e),r[zx("0x47")](e),!0;if(!d&&a(x,c))return t[zx("0x9e")](e,o),r[zx("0x47")](o),!0}return!1}}[zx("0x9e")](t,e){if(t[zx("0xb")])for(const n of e[zx("0x25")]())t.addRange(n);else{const n=e[zx("0x42")]()[zx("0x11a")];this._setSuggestionRange(t,this[zx("0x12b")][zx("0x12d")](t[zx("0x42")]()[zx("0x125")],n))}e.removeMarkers()}}class Vx{constructor(t){this[zx("0x85")]=t,this[zx("0x12b")]=t[zx("0xa8")],this[zx("0x57")]=new Map,this[zx("0x66")]=new Map,this[zx("0x61")]()}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[zx("0x41")](t,e,"accept")(...n),onDiscard:(...n)=>this[zx("0x41")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[zx("0xf1")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[zx("0x57")][zx("0x2c")](o)||this[zx("0x66")][zx("0x2c")](t+":"+n)}[zx("0x61")](){const t=()=>{},e=t=>{t[zx("0xac")](((t,e)=>t.start[zx("0x119")](e.start)?1:-1)),this[zx("0x12b")][zx("0x79")]((e=>{for(const n of t){let t;t=n.end[zx("0x55")]&&n[zx("0x11a")][zx("0x84")]==n[zx("0x125")][zx("0x58")]?e[zx("0x39")](n.start[zx("0x58")],"on"):e.createSelection(n),this[zx("0x12b")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[zx("0x79")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[zx("0xc2")]((t=>(qx(t)&&(t=this[zx("0x12b")][zx("0x12d")](t[zx("0x11a")])),t)))[zx("0x1b")]((t=>"$graveyard"!==t.root[zx("0xc")]));if(r[zx("0x6a")]<1)return;const a=Array[zx("0x3")](this[zx("0x12b")][zx("0x123")][zx("0x7")].getRanges())[zx("0xc2")]((t=>i.LiveRange[zx("0xfa")](t)));n[zx("0x2b")](r);for(const t of this._editor[zx("0xb9")][zx("0xb9")]())t.refresh();s[zx("0xe5")]({forceDefaultExecution:!0}),this[zx("0x85")][zx("0x63")](o,...s);const x=a[zx("0x1b")]((t=>"$graveyard"!=t[zx("0x7a")][zx("0xc")]));x.length>0&&n[zx("0x2b")](x);for(const t of a)t[zx("0x93")]()}))},o=(t,e)=>1==t[zx("0x6a")]&&1==e[zx("0x6a")]&&t[0][zx("0x11a")][zx("0xa0")](e[0].start),s=(t,e,n,o)=>Zx(t,e,n,o,this[zx("0x12b")])?[t,e]:Zx(e,t,o,n,this[zx("0x12b")])?[e,t]:null;this[zx("0x66")][zx("0xf1")](zx("0x13e"),t),this[zx("0x66")][zx("0xf1")](zx("0x10c"),e),this[zx("0x66")][zx("0xf1")](zx("0x12"),o),this[zx("0x66")][zx("0xf1")](zx("0x138"),s),this._defaultCallbacks[zx("0xf1")](zx("0x135"),e),this._defaultCallbacks.set("deletion:discard",t),this[zx("0x66")].set(zx("0xfc"),o),this._defaultCallbacks.set(zx("0xbc"),s),this._defaultCallbacks[zx("0xf1")]("formatInline:accept",n),this[zx("0x66")].set("formatInline:discard",t),this._defaultCallbacks[zx("0xf1")](zx("0x3a"),o),this[zx("0x66")].set(zx("0x3e"),t),this[zx("0x66")].set(zx("0x10e"),n),this[zx("0x66")][zx("0xf1")](zx("0x76"),t),this[zx("0x66")][zx("0xf1")](zx("0x10f"),o),this._defaultCallbacks[zx("0xf1")](zx("0x10a"),t)}}function Kx(t,e,n){for(const o of e[zx("0x84")][zx("0xb3")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[zx("0x8c")](o))return!1;if(t[zx("0x95")](o)||t[zx("0xd8")](o))return!0}return!1}function qx(t){return t.end.parent==t[zx("0x125")].nodeAfter&&t[zx("0x11a")][zx("0x45")]}function Xx(t,e,n,o){const s=t=>!t[zx("0x116")].is(zx("0x78"))&&!o[zx("0x95")](t.item),r=t.start[zx("0x3b")](s),i=t[zx("0x11a")][zx("0x3b")](s,{direction:"backward"});return!(t[zx("0x125")][zx("0xa0")](r)&&t.end[zx("0xa0")](i)||(r[zx("0x119")](i)?n[zx("0xd7")](e,{range:n[zx("0x12d")](r,i)}):n[zx("0x24")](e),0))}function $x(t){return(0,r.hashObject)(t)}function Jx(t){const e=t[zx("0x125")][zx("0x58")];return e&&e.is(zx("0x4d"))}function Qx(t,e){const n=e[zx("0xe9")][zx("0x95")](t)||e[zx("0xe9")][zx("0x114")](t);return e.createRange(e[zx("0xe1")](t,"before"),n?e[zx("0xbf")](t):e[zx("0xe1")](t,zx("0x11a")))}function Zx(t,e,n,o,s){if(n[zx("0x11a")].isEqual(o.start))return!0;if(t.type!=e[zx("0x29")])return!1;if(!n[zx("0x11a")].isTouching(o[zx("0x125")]))return!1;const r=s[zx("0x12d")](n[zx("0x11a")],o[zx("0x125")])[zx("0xd9")]();for(const t of r)if(["elementStart",zx("0xe7")][zx("0x139")](t.type)&&s[zx("0xe9")][zx("0xd8")](t[zx("0x116")]))return!1;return!0}const Yx=["canDiscard","_removePendingAction","commentThreadController","canAccept","add","get","_setPendingAction","change:isDirty","_editor","unbind","remove","canEditAt","_discardCommand","stopListening","_acceptCommand","locale","PENDING_ACTION_SUGGESTION","PendingActions","plugins","bind","isDirty","discardSuggestion","isEnabled","_pendingAction","execute","listenTo","commands","view","destroy","acceptSuggestion","model"];var tc,ec;tc=Yx,ec=311,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Yx[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1d")]=e,this[nc("0x1a")]=n,this.commentThreadController=o,this[nc("0x7")]=t,this._acceptCommand=t.commands[nc("0x4")](nc("0x1c")),this[nc("0xb")]=t[nc("0x19")][nc("0x4")](nc("0x14")),this.view[nc("0x12")](nc("0x15")).to(this[nc("0xd")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0x12")]("canAccept").to(this[nc("0xd")],"isEnabled",(t=>t&&this[nc("0x7")][nc("0x1d")][nc("0xa")](e.getRanges()))),this.view[nc("0x12")](nc("0x1e")).to(this[nc("0xb")],nc("0x15"),(t=>t&&this[nc("0x7")].model.canEditAt(e.getRanges()))),this[nc("0x16")]=null,n[nc("0x13")]&&this._setPendingAction(),this[nc("0x18")](n,nc("0x1c"),(()=>this.acceptSuggestion())),this.listenTo(n,nc("0x14"),(()=>this[nc("0x14")]())),this[nc("0x18")](n,nc("0x6"),(()=>{n[nc("0x13")]?this._setPendingAction():this[nc("0x0")]()}))}[nc("0x1c")](){this._acceptCommand[nc("0x17")](this[nc("0x1d")].id)}[nc("0x14")](){this[nc("0xb")][nc("0x17")](this[nc("0x1d")].id)}[nc("0x1b")](){this[nc("0x1a")][nc("0x8")](nc("0x15")),this.view.unbind(nc("0x2")),this.view.unbind("canDiscard"),this[nc("0xc")](),this[nc("0x1")][nc("0x1b")](),this._pendingAction&&this._removePendingAction()}[nc("0x5")](){const t=Yo(this[nc("0x7")][nc("0xe")],nc("0xf"));this[nc("0x16")]=this._editor[nc("0x11")][nc("0x4")](nc("0x10"))[nc("0x3")](t)}[nc("0x0")](){null!==this[nc("0x16")]&&this[nc("0x7")][nc("0x11")][nc("0x4")](nc("0x10"))[nc("0x9")](this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["updateComment","authoredAt","value","locale","commentsListView","setData","set","isActive","commentThread","_createCommentViews","element","isDirty","_localUser","destroy","CommentView","editor","fire","commentThreadInputView","commentInputView","_model","hasDirtyComment","isReadOnly","_config","assign","length","editorConfig","isEnabled","delegate","focus","descriptionParts","_createCommentThreadInputView","showInput","submit","canAccept","bind","addComment","disableComments","disabledSubmit"];var rc,ic;rc=sc,ic=415,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const ac=function(t,e){return sc[t-=0]};class xc extends s.View{constructor(t,e,n,o){super(t),this[ac("0x7")]=null,this[ac("0x14")]=null,this.set(ac("0xa"),!1),this.set("authoredAt",e[ac("0x4")]),this[ac("0x25")](ac("0x4")).to(e),this[ac("0x9")](ac("0x20"),[]),this[ac("0x9")](ac("0xe"),!1),this[ac("0x9")](ac("0x1d"),!1),this[ac("0x9")](ac("0x24"),!1),this[ac("0x9")]("canDiscard",!1),this[ac("0x16")]=e,this[ac("0xf")]=n,this[ac("0x19")]=o,o[ac("0x1")]?this[ac("0x9")](ac("0x1b"),1):this[ac("0xc")]()}[ac("0x1f")](){this[ac("0xd")][ac("0x1f")]()}[ac("0x10")](){this.commentsListView&&this[ac("0x7")][ac("0x10")](),this.commentThreadInputView&&this[ac("0x14")][ac("0x10")](),super[ac("0x10")]()}[ac("0xc")](){const{CommentsListView:t}=this._config;this[ac("0x7")]=new t(this[ac("0x6")],this[ac("0x16")][ac("0xb")],Object[ac("0x1a")]({CommentView:this._config[ac("0x11")]},this[ac("0x19")])),this[ac("0x7")].delegate("removeComment").to(this),this[ac("0x7")][ac("0x1e")](ac("0x3")).to(this),this.commentsListView[ac("0x25")](ac("0xa")).to(this),this[ac("0x9")](ac("0x1b"),this[ac("0x7")].length+1),this.bind("length").to(this.commentsListView,ac("0x1b"),(t=>t+1)),this[ac("0x14")]=this[ac("0x21")](),this.on("removeComment",(()=>this[ac("0x1f")]())),this.bind("isDirty").to(this.commentsListView,ac("0x17"),this[ac("0x14")].commentInputView,ac("0x5"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[ac("0x19")],e=new t(this[ac("0x6")],this[ac("0xf")],this[ac("0x19")][ac("0x1c")]),n=e[ac("0x15")];return e[ac("0x25")](ac("0x22")).to(this,"isActive",this[ac("0x16")].commentThread,"isReadOnly",n,ac("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(ac("0x23"),((t,e)=>{this[ac("0x13")](ac("0x0"),e),n[ac("0x12")][ac("0x8")]("")})),n.on("cancel",(()=>this.focus())),n[ac("0x25")](ac("0x2")).to(this[ac("0x16")][ac("0xb")],ac("0x18")),e}}const cc=["element","ck-comment__info-time","commentThreadInputView","color","innerText","EXTERNAL_IMPORT_WORD_AVATAR",'" title="',"set","ck-suggestion__actions","ck-annotation__info","ck-annotation__main","push","value","source","bindTemplate","disableComments","creator","render","importWord",".ck-annotation__content-wrapper","ck-suggestion-","acceptSuggestion","split","@external","_config","discardButton","Discard suggestion","map","commentsListView","name","_model","span","<p>","join","isActive","ck-suggestion__info","innerHTML","ck-annotation","_descriptionElement","ck-annotation__user","setTemplate","</p>","title","locale","acceptButton","change:description","Accept suggestion","ck-comment__external",'<span class="ck-suggestion-color" style="background-color: ',"getExternalSuggestionNote","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion","authoredAt","ck-suggestion__main","time","isExternal",'<span class="ck-suggestion-type">',"_createButton","execute","canAccept","ck-annotation__info-name","content","ck-suggestion__info-name","ck-suggestion-wrapper--active","getUserViewNotificationText","descriptionParts","querySelector","cancel","ck-suggestion--disabled-comments","ck-annotation__info-time","type","EXTERNAL_AVATAR","userView","discardSuggestion",'"></span>',"div","ck-suggestion__user","formatDateTime","ck-suggestion-wrapper","attributes","children","getTemplate","bind","extendTemplate"];var lc,dc;lc=cc,dc=379,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends xc{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x20"),""),this[uc("0x2c")]("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this.bind("description").to(this,uc("0x1b"),this,uc("0x50"),((t,e)=>{let n="";for(const e of t)n+=uc("0x4e")+mc(e[uc("0x17")],e[uc("0x31")])+uc("0x2");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x54")]=null,this.acceptButton=this[uc("0x13")](Yo(e,uc("0x7")),t.icons.check,"ck-suggestion--accept",uc("0x43"),"sw"),this[uc("0x5")][uc("0x2c")]("isEnabled").to(this,uc("0x15")),this.discardButton=this[uc("0x13")](Yo(e,uc("0x48")),t.icons[uc("0x1d")],"ck-suggestion--discard",uc("0x23"),"sw"),this[uc("0x47")][uc("0x2c")]("isEnabled").to(this,"canDiscard"),this[uc("0x22")]=new r.UserView(e,this[uc("0x4c")].author,this[uc("0x1a")]()),this[uc("0x22")][uc("0x2d")]({attributes:{class:[uc("0x26"),uc("0x0")]}}),this[uc("0x1")](this[uc("0x2b")]())}[uc("0x2b")](){const t=this[uc("0x3c")],e=[{tag:"div",attributes:{class:[uc("0x51"),uc("0x37")]},children:[{tag:"span",children:[{text:this[uc("0x22")][uc("0x4b")]}],attributes:{class:[uc("0x18"),uc("0x16")]}},{tag:uc("0x10"),attributes:{datetime:t.to(uc("0xe")),class:[uc("0x2f"),uc("0x1f")]},children:[{text:t.to(uc("0xe"),(t=>this[uc("0x46")][uc("0x27")](t)))}]}]},{tag:uc("0x25"),attributes:{class:[uc("0x36"),uc("0xb")]},children:[this[uc("0x5")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[uc("0x11")]&&e[uc("0x39")]({tag:"div",attributes:{class:[uc("0x8")]},children:[{text:this[uc("0xa")]()}]});const n={tag:uc("0x25"),attributes:{class:[uc("0x28"),t.if(uc("0x50"),uc("0x19")),t.to(uc("0x20"),(t=>uc("0x42")+t)),this._config[uc("0x3d")]&&uc("0x1e")],"data-suggestion-id":this[uc("0x4c")].id,"data-thread-id":this[uc("0x4c")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:uc("0x25"),attributes:{class:[uc("0xd"),uc("0x53")]},children:[this[uc("0x22")],{tag:uc("0x25"),attributes:{class:[uc("0xf"),uc("0x38")]},children:e}]}]};return this[uc("0x4a")]&&this[uc("0x30")]&&n[uc("0x2a")][uc("0x39")](this.commentsListView,this.commentThreadInputView),n}[uc("0x3f")](){super[uc("0x3f")](),this._descriptionElement=this[uc("0x2e")][uc("0x1c")](uc("0x41")),this[uc("0x54")][uc("0x52")]=this.description,this.on(uc("0x6"),((t,e,n)=>{this[uc("0x54")][uc("0x52")]=n}))}[uc("0x13")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4")]);return i[uc("0x35")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x2d")]({attributes:{class:n}}),i.on(uc("0x14"),(()=>{this.fire(o,this._model.id)})),i}[uc("0xa")](){return"importWord"===this._model[uc("0x29")][uc("0x45")][uc("0x3b")]?Yo(this[uc("0x4")],uc("0xc")):Yo(this[uc("0x4")],"EXTERNAL_SUGGESTION")}getUserViewNotificationText(){return this[uc("0x4c")][uc("0x11")]?uc("0x40")===this[uc("0x4c")].attributes["@external"][uc("0x3b")]?Yo(this.locale,uc("0x33"),this[uc("0x4c")][uc("0x3e")].name):Yo(this[uc("0x4")],uc("0x21"),this[uc("0x4c")][uc("0x3e")].name):null}}function mc(t,e){let n="";return n+=t[uc("0x44")]("*")[uc("0x49")](((t,e)=>e%2!=0?uc("0x12")+fc(t)+"</span>":fc(t)))[uc("0x4f")](""),e&&(n+=uc("0x9")+e[uc("0x3a")]+uc("0x34")+e[uc("0x3")]+uc("0x24")),n}function fc(t){const e=document.createElement(uc("0x4d"));return e[uc("0x32")]=t,e.innerHTML}const hc=["comments.editorConfig","remove","previous","editing","head","suggestionChanged","comments.maxThreadTotalWeight","push","_destroyController","discardButton","_initializeController","keys","change:activeAnnotations","refreshSelectedViews","hasSuggestion","get","model","arrowView","CommentsUI","filter","getDescriptions","_disableComments","clear","actionView","getMarkers","comments.maxCommentCharsWhenCollapsed","createCommentThreadController","stopListening","isDirty","Discard all suggestions","mainView","button","buttonView","plugins","TrackChangesEditing","_createUIButton","source","_suggestionToController","requires","change:previous","execute","suggestion-","toMany","getJoined","acceptSelectedSuggestions","_refreshActiveMarkers","values","CommentView","commandName","discardAllSuggestions","view","EditorAnnotations","commands","listenTo","value","trackChanges","CommentsRepository","_handleSuggestionControllerDelayed","reduce","comments","isOn","destroy","descriptionParts","isMultiRange","Accept all selected suggestions","isInContent","comments.maxCommentsWhenCollapsed","addSourceCollector","commentThread","bind","Annotations","TrackChangesUI","editor","createAnnotationView","Discard all selected suggestions","innerView","createAnnotation","separator","add","_handleControllerBuffer","size","getRanges","delete","length","_viewToController","trackChanges.disableComments","trackChanges.SuggestionThreadView","type","map","focus","activeMarkers","locale","addComment","_descriptionFactory","_annotationViews","has","suggestionLoaded","lowest","Accept all suggestions","set","some","getSuggestion","config","isEnabled","getAllAdjacentSuggestions","_updateController","from","suggestionUnloaded"];var pc,bc;pc=hc,bc=383,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("0x57")](){return[Wx,r.Users,"CommentsRepository",Ec("0xb"),"EditorAnnotations"]}static get pluginName(){return Ec("0xc")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x19")]=new Map,this._annotationViews=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Ec("0x2b")];e.define(Ec("0x1b"),gc),e.define(Ec("0x1a"),!1),this[Ec("0x46")]=e[Ec("0x40")](Ec("0x1a"))}[Ec("0x6a")](t,e){0===this._handleControllerBuffer[Ec("0x15")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x14")]){const n=this[Ec("0x56")][Ec("0x24")](t);n||e?n&&e&&this[Ec("0x39")](t):this[Ec("0x3b")](t)}this[Ec("0xd")][Ec("0x52")][Ec("0x40")](Ec("0x64"))[Ec("0x3e")](),this._refreshActiveMarkers(),this[Ec("0x14")][Ec("0x47")]()}),10),this[Ec("0x14")][Ec("0x28")](t,e)}init(){const t=this[Ec("0xd")],e=t[Ec("0x52")][Ec("0x40")](Ec("0x53")),n=t.plugins[Ec("0x40")](Ec("0xb")),o=t[Ec("0x52")][Ec("0x40")](Ec("0x64")),s=t[Ec("0x52")][Ec("0x40")](Ec("0x69"));t.ui.componentFactory[Ec("0x13")](Ec("0x68"),(t=>this[Ec("0x54")](t))),o[Ec("0x8")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x2f")](this[Ec("0x56")])){const o=e[Ec("0x2d")](),s=[];for(const t of o){if(!t[Ec("0x6")])continue;if(t[Ec("0x4")]){s[Ec("0x38")](...t[Ec("0x16")]());continue}const e=t.getFirstRange();if(s[Ec("0x18")]>0){const t=s[0][Ec("0x5c")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x38")]([n.view,s])}return t})),this[Ec("0x66")](e,Ec("0x25"),((t,e)=>{this.listenTo(e,Ec("0x58"),((t,n,o,s)=>{e[Ec("0x6")]&&(null==o?(this._updateController(s[Ec("0x35")]),this[Ec("0x6a")](e,!1)):(this[Ec("0x2e")](o.head),this[Ec("0x6a")](e,!0)))})),null===e[Ec("0x33")]?this[Ec("0x6a")](e,!1):this[Ec("0x2e")](e[Ec("0x35")])})),this.listenTo(e,Ec("0x30"),((t,e,n)=>{this[Ec("0x4c")](e,Ec("0x58")),this[Ec("0x14")][Ec("0x17")](e);const o=n?n[Ec("0x35")]:e,s=this._suggestionToController[Ec("0x40")](o);null!==n&&this[Ec("0x2e")](o),null===n&&s&&this[Ec("0x39")](e)})),this[Ec("0x66")](e,Ec("0x36"),((t,e)=>{this._updateController(e)})),this[Ec("0x66")](n,Ec("0x3d"),(()=>{this[Ec("0x5e")]()})),this[Ec("0x66")](s,Ec("0x21"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x3f")](n))return;const s=e[Ec("0x2a")](n);this[Ec("0x56")].get(s)[Ec("0x63")][Ec("0x1e")]()}),{priority:Ec("0x26")})}[Ec("0x5e")](){const t=this.editor.plugins[Ec("0x40")]("Annotations"),e=this[Ec("0xd")][Ec("0x52")].get("TrackChangesEditing"),n=Array[Ec("0x2f")](t.activeAnnotations,(t=>t[Ec("0x10")])).filter((t=>this[Ec("0x19")][Ec("0x24")](t))),o=[];for(const t of n){const e=this[Ec("0x19")][Ec("0x40")](t)[Ec("0x41")].getAllAdjacentSuggestions();o.push(...e[Ec("0x6b")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0x1f")]=o}[Ec("0x54")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0xd")].commands[Ec("0x40")](Ec("0x68")),r=Yo(t,"Track changes");n.buttonView.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("0x51")].bind("isOn").to(o,"value"),n[Ec("0x51")].on("execute",(()=>{o.execute(),this[Ec("0xd")][Ec("0x34")][Ec("0x63")][Ec("0x1e")]()}));const i=new e.Collection,a=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x68")}},{type:Ec("0x12")},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x27")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x5")),commandName:Ec("0x5d")}},{type:Ec("0x50"),model:{withText:!0,label:Yo(t,Ec("0x4e")),commandName:Ec("0x62")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0xf")),commandName:"discardSelectedSuggestions"}}];for(const t of a){let e={type:Ec("0x12")};if(t[Ec("0x41")]){const n=new s.Model(t[Ec("0x41")]),o=this.editor[Ec("0x65")][Ec("0x40")](n[Ec("0x61")]);n.bind(Ec("0x1"),Ec("0x2c")).to(o,Ec("0x67"),"isEnabled"),e={type:t.type,model:n}}i[Ec("0x13")](e)}(0,s.addListToDropdown)(n,i);const x=a[Ec("0x44")]((t=>null!=t[Ec("0x41")]))[Ec("0x1d")]((t=>this[Ec("0xd")][Ec("0x65")][Ec("0x40")](t[Ec("0x41")][Ec("0x61")]))),c=n[Ec("0x51")];return c[Ec("0x48")].unbind("isEnabled"),c.arrowView.unbind(Ec("0x2c")),c[Ec("0x48")][Ec("0xa")](Ec("0x2c")).to(o,"isEnabled"),c[Ec("0x42")].bind(Ec("0x2c"))[Ec("0x5b")](x,Ec("0x2c"),((...t)=>t[Ec("0x29")]((t=>t)))),n.on(Ec("0x59"),(t=>{this.editor.execute(t[Ec("0x55")][Ec("0x61")]),this[Ec("0xd")][Ec("0x34")].view[Ec("0x1e")]()})),n}[Ec("0x3b")](t){const e=this.editor,n=e.config,o=e[Ec("0x52")].get(Ec("0xb")),s=e[Ec("0x52")][Ec("0x40")](Ec("0x69")),i=e[Ec("0x52")][Ec("0x40")]("EditorAnnotations"),a=e.plugins.get(r.Users).me,x=n[Ec("0x40")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x40")](Ec("0x43"));let d,u;this[Ec("0x23")][Ec("0x24")](t.id)?(u=this[Ec("0x23")][Ec("0x40")](t.id),d=u[Ec("0x4f")]):(d=new x(e[Ec("0x20")],t,a,{disableComments:this[Ec("0x46")],editorConfig:n[Ec("0x40")](Ec("0x31")),maxCommentsWhenCollapsed:n[Ec("0x40")](Ec("0x7")),maxThreadTotalWeight:n[Ec("0x40")](Ec("0x37")),maxCommentCharsWhenCollapsed:n[Ec("0x40")](Ec("0x4a")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x40")](Ec("0x20"))),CommentView:n[Ec("0x40")](Ec("0x0"))[Ec("0x60")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Ec("0x59"),(()=>{e.editing[Ec("0x63")][Ec("0x1e")]()})),d[Ec("0x3a")].on("execute",(()=>{e.editing[Ec("0x63")].focus()})),u=o[Ec("0xe")](this[Ec("0xd")][Ec("0x20")],d),u[Ec("0xa")](Ec("0x4d")).to(d,Ec("0x4d")),u[Ec("0xa")]("length").to(d),u[Ec("0xa")](Ec("0x1c")).to(d,"type",(t=>"suggestion-"+t)),this[Ec("0x23")][Ec("0x28")](t.id,u));const g=s[Ec("0x4b")](t[Ec("0x9")],d),m=new oc(e,t,d,g),f=t[Ec("0x2d")]().filter((t=>t[Ec("0x6")]));d[Ec("0x3")]=e[Ec("0x52")].get(Ec("0x53"))[Ec("0x22")].getDescriptions(f),this._suggestionToController[Ec("0x28")](t,m),this._viewToController[Ec("0x28")](d,m);const h=o[Ec("0x11")]({view:u,target:()=>{const n=[],o=t[Ec("0x2d")]().filter((t=>t[Ec("0x6")]));for(const t of o)n[Ec("0x38")](...t[Ec("0x49")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x5a")+m[Ec("0x63")].type});o.add(h),i.registerAnnotation(h)}[Ec("0x39")](t){const e=this.editor.plugins[Ec("0x40")](Ec("0xb")),n=this[Ec("0x56")][Ec("0x40")](t),o=n[Ec("0x63")],s=e.getByInnerView(o);s&&e[Ec("0x32")](s),this._suggestionToController[Ec("0x17")](t),this[Ec("0x19")][Ec("0x17")](o),n[Ec("0x2")]()}[Ec("0x2e")](t){if(!t.isInContent||!this[Ec("0x56")][Ec("0x24")](t))return;const e=this[Ec("0xd")][Ec("0x52")][Ec("0x40")](Ec("0x53")),n=this[Ec("0x56")][Ec("0x40")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x63")][Ec("0x3")]=e[Ec("0x22")][Ec("0x45")](o)}[Ec("0x2")](){for(const t of this[Ec("0x56")][Ec("0x3c")]())this[Ec("0x39")](t);for(const t of this._annotationViews[Ec("0x5f")]())t.mainView.destroy();super.destroy()}}var Tc,Cc,yc=["TrackChanges","requires","editor","addSuggestion","getSuggestions","get","adapter","plugins"];Tc=yc,Cc=168,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("0x1")](){return[Wx,_c,"Comments"]}static get pluginName(){return kc("0x0")}set[kc("0x6")](t){this.editor[kc("0x7")].get(Wx)[kc("0x6")]=t}get adapter(){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx)[kc("0x6")]}[kc("0x3")](t){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx).addSuggestionData(t)}[kc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")][kc("0x7")].get(Wx)[kc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x2")][kc("0x7")][kc("0x5")](Wx).getSuggestion(t)}}const vc=["set","push","acceptAllSuggestions","extraPlugins","pluginName","getDataWithDiscardedSuggestions","map","constructor","RevisionTracker","addSuggestionData","concat","config","trackChangesData.editorCreator","filter","TrackChangesDataGetter","document","names","track-changes-data-invalid-editor-creator","Pagination","execute","editorCreator","string","Autosave","trackChangesData","appendChild","requires","WordCount","plugins","get","DocumentOutline","every","Users","context","create","includes","result","function","getDataWithAcceptedSuggestions","useAnonymousUser","name","getUser","init","toolbar","TrackChangesEditing","createDocumentFragment","model","data","createElement","find","WebSocketGateway","has","editor","CommentsRepository","initialData"];var Rc,Sc;Rc=vc,Sc=211,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x4"),Ic("0x25"),Ic("0x2f")],Nc=[Ic("0x0"),Ic("0xd"),Ic("0x1b"),Ic("0x1f"),Ic("0x17"),Ic("0x22")];class wc extends t.Plugin{static get requires(){return[Wx]}static get[Ic("0x9")](){return"TrackChangesData"}[Ic("0x2e")](){const t=this[Ic("0x2")];if(t[Ic("0x10")].define(Ic("0x11"),(e=>t[Ic("0xc")][Ic("0x26")]("",e))),Ic("0x29")!=typeof t.config[Ic("0x21")](Ic("0x1c"))[Ic("0x19")])throw new e.CKEditorError(Ic("0x16"))}[Ic("0x2a")](t){return Oc(this[Ic("0x2")],!0,t)}[Ic("0xa")](t){return Oc(this[Ic("0x2")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x9")](){return Ic("0x13")}constructor(t){super(t),this[Ic("0x28")]="end"}[Ic("0x2e")](){this[Ic("0x2")].plugins.get(Ic("0x3")).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[Ic("0x2")][Ic("0x20")][Ic("0x21")](Ic("0x30"))._adapter=null}}async function Oc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ic("0x15")]())Lc[Ic("0x27")](n)||(e[n]=t.config.get(n));const n=t.constructor.builtinPlugins||[],o=e.extraPlugins||[];delete e[Ic("0x8")];const s=n[Ic("0xf")](e[Ic("0x20")])[Ic("0xf")](o).map((t=>Ic("0x1a")==typeof t?n[Ic("0x35")]((e=>e.pluginName==t)):t)),r=Array.from(new Set(s)),i=new Map;return e.plugins=r[Ic("0x12")]((t=>Fc(t,i))),e[Ic("0x20")][Ic("0x6")](Mc),e[Ic("0x20")][Ic("0x6")](Wx),e}(t),s=document[Ic("0x31")](),r=t[Ic("0x10")][Ic("0x21")](Ic("0x1c")).editorCreator,i=await r(o,(()=>function(t){const e=document[Ic("0x34")]("div");return t[Ic("0x1d")](e),e}(s)));!function(t,e){const n=t[Ic("0x32")][Ic("0x14")].getRootNames().reduce(((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t.plugins.get(Ic("0x24")).users[Ic("0xb")]((t=>({id:t.id,name:t[Ic("0x2c")]}))),s=t[Ic("0x20")][Ic("0x21")](Ic("0x30")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x21")](Ic("0x24")),i=e[Ic("0x20")][Ic("0x21")]("TrackChangesEditing");for(const t of o)r[Ic("0x2d")](t.id)||r.addUser(t);r.me||r[Ic("0x2b")]();for(const t of s)i[Ic("0xe")](t);e[Ic("0x33")].set(n)}(t,i),i[Ic("0x18")](e?Ic("0x7"):"discardAllSuggestions");const a=i[Ic("0x33")][Ic("0x21")](n);return await i.destroy(),a}function Fc(t,e){const n=Ic("0x29")==typeof t?t[Ic("0x9")]||t[Ic("0x2c")]:t;if(e[Ic("0x1")](n))return e[Ic("0x21")](n);if(e[Ic("0x5")](n,!0),n&&Nc[Ic("0x27")](n))return e.set(n,!1),!1;if(!t[Ic("0x1e")])return e[Ic("0x5")](n,!0),!0;const o=t[Ic("0x1e")][Ic("0x23")]((t=>Fc(t,e)));return e[Ic("0x5")](n,o),o}})(),(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=["value","_enableCommands","refresh","clearForceDisabled","commands","execute","isEnabled","_enabledCommands","_disableUnsupportedCommands","TrackChangesCommand","editor","forceDisabled","has","affectsData","_isEnabledBasedOnSelection"];var c,l;c=a,l=184,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0xb")]=!1,this[u("0xd")](),this[u("0xa")]=!1}refresh(){this[u("0x2")]=!0}[u("0x1")](){this[u("0xb")]=!this.value,this.value?this[u("0x4")]():this[u("0xc")]()}[u("0x4")](){for(const t of this[u("0x6")][u("0x0")][u("0x0")]())t[u("0x9")]&&!this._enabledCommands.has(t)&&t[u("0x7")](u("0x5"))}[u("0xc")](){for(const t of this[u("0x6")][u("0x0")].commands())t[u("0x9")]&&!this[u("0x3")][u("0x8")](t)&&t[u("0xe")](u("0x5"))}}const g=["model","refresh","execute","get","plugins","_suggestions","TrackChangesEditing","_isEnabledBasedOnSelection","getRanges","editor","acceptSuggestion","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=234,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("0xb")]=e,this[h("0x7")](),this[h("0x1")]=!1}[h("0x7")](){this.isEnabled=!0}[h("0x8")](t){const n=this[h("0xb")][h("0x9")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x2")]();this[h("0x3")][h("0x6")].canEditAt(o)&&this[h("0x3")][h("0xa")][h("0x9")](h("0x0"))[h("0x4")](n)}}const b=["editor","get","TrackChangesEditing","canEditAt","_isEnabledBasedOnSelection","isEnabled","refresh","discardSuggestion","execute","getRanges","_suggestions","model"];var E,_;E=b,_=442,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("0x0")]=e,this[T("0x8")](),this[T("0x6")]=!1}refresh(){this[T("0x7")]=!0}[T("0xa")](t){const n=this[T("0x0")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xb")]();this.editor[T("0x1")][T("0x5")](o)&&this[T("0x2")].plugins[T("0x3")](T("0x4"))[T("0x9")](n)}}const y=["join","isObject","deletion","schema","isArray","color","createPositionAfter","content","isMultiRange","map"," [color ","type","createPositionBefore","change","length","createPositionAt","getRanges","execute","splice","end","isIntersecting","from","isCollapsed","add","start","isTouching","next","isInContent"];var k,A;k=y,A=416,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x6")==t[v("0xf")]&&v("0x6")!=e[v("0xf")]?-1:v("0x6")!=t[v("0xf")]&&"deletion"==e[v("0xf")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x7")];for(;o<t[v("0x12")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s.push(e.createRange(n,r[v("0x5")](i)?e.createPositionAfter(i):e[v("0x13")](i,v("0x17")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xa")](e),s=t[v("0x10")](n);return o[v("0x1")](s)}function L(t,e,n){for(;n[v("0x12")];){const o=n[v("0x16")](0,100);t[v("0x11")]((()=>{for(const t of o)t[v("0x3")]&&e[v("0x15")](t.id)}))}}const w=["_command","from","some","canEditAt","_suggestions","values","isEnabled","getRanges","_isEnabledBasedOnSelection","execute","isInContent","editor","refresh"];var N,M;N=w,M=456,function(t){for(;--t;)N.push(N.shift())}(++M);const F=function(t,e){return w[t-=0]};class O extends t.Command{constructor(t,e,n){super(t),this._command=e,this[F("0x3")]=n,this[F("0xb")](),this[F("0x7")]=!1}refresh(){const t=Array[F("0x0")](this[F("0x3")][F("0x4")]())[F("0x1")]((t=>t[F("0x9")]));this[F("0x5")]=this[F("0xc")][F("0x5")]&&t}[F("0x8")](){const t=R(Array[F("0x0")](this[F("0x3")][F("0x4")]()));for(const e of t){const t=e[F("0x6")]();if(!this[F("0xa")].model[F("0x2")](t))return}L(this[F("0xa")].model,this._command,t)}}const P=["getRanges","selection","model","from","_command","_isEnabledBasedOnSelection","_suggestions","isEnabled","canEditAt","values","editor","refresh","_selectedSuggestions"];var D,B;D=P,B=128,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("0x6")]=e,this[j("0x8")]=n,this[j("0x1")]=new Set,this.refresh(),this[j("0x7")]=!1}[j("0x0")](){const t=this[j("0xc")][j("0x4")].document[j("0x3")],e=Array[j("0x5")](this[j("0x8")][j("0xb")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x19")](t[v("0x14")]()),o=new Set;for(const s of e)if(s[v("0x3")])for(const e of n)for(const n of s.getMarkers()){const r=n.getRange();(e[v("0x18")](r)||t[v("0x1a")]&&!s[v("0xc")]&&s[v("0x2")]&&r[v("0x17")][v("0x1")](e[v("0x0")]))&&o[v("0x1b")](s)}return o}(t,e),this[j("0x9")]=this[j("0x6")][j("0x9")]&&!!this[j("0x1")].size}execute(){const t=R(Array[j("0x5")](this[j("0x1")]));for(const e of t){const t=e[j("0x2")]();if(!this.editor[j("0x4")][j("0xa")](t))return}L(this[j("0xc")][j("0x4")],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 ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const 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 wt=Lt(ot,"Map");const Nt=Lt(Object,"create");const Mt=function(){this.__data__=Nt?Nt(null):{},this.size=0};const Ft=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ot=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Nt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ot.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Nt?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]=Nt&&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=Ft,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(wt||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(!wt||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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const 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 we=Object.prototype.hasOwnProperty;const Ne=function(t,e){var n=ge(t),o=!n&&de(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&&!we.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 Fe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Oe=function(t,e){return function(n){return t(e(n))}};const Pe=Oe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Fe(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)?Ne(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=Fe(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)?Ne(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=Oe(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 un=function(t){return ln(t,Ue,on)};const dn=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(wt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||wt&&Rn(new wt)!=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 wn=ot.Uint8Array;const Nn=function(t){var e=new t.constructor(t.byteLength);return new wn(e).set(new wn(t)),e};const Mn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var Fn=/\w*$/;const On=function(t){var e=new t.constructor(t.source,Fn.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?Nn(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 Nn(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 On(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||Fe(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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==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[d])return r?e:{};x=Un(e,d,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=u?void 0:(l?c?dn:un: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 u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!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)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};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,wo=Lo?Lo.valueOf:void 0;const No=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 wn(t),new wn(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(wo)return wo.call(t)==wo.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Fo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(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 u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var 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 Oo="[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==Oo?Do:a)==Do,u=(c=c==Oo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):No(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&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!!d&&(r||(r=new Yt),Fo(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=["toJSON","_onDiscard","length","addRange","getMarkerNames","end","reduce","addMarkerName","isInContent","set","isIntersectingWithRange","substr","previous","attributes","removeMarker","decorate","clear","hasComments","createdAt","suggestion:","split","removeMarkers","commentThread","from","getAllAdjacentSuggestions","map","getRanges","push","subType","_saved","getMarkers","getMultiRangeId","data","@external","discard","delete","accept","author","nodeBefore","getRange","head","type","getContainedElement","get","_onAttributesChange","change","isMultiRange","markers","_model","creator","_onAccept","size","getFirstMarker","onAttributesChange","onDiscard","filter","next","start","isIntersecting","getItems","isExternal","nodeAfter","_markerNames","setAttribute","getFirstRange","authoredAt"];var $o,Jo;$o=Xo,Jo=375,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("0x3e")],this[Qo("0x31")]=e[Qo("0x31")]||null,this[Qo("0x3a")]=e.author,this[Qo("0x4")]=e.creator||e[Qo("0x3a")],this[Qo("0xf")]=Boolean(e[Qo("0x22")]&&e.attributes[Qo("0x36")]),this[Qo("0x35")]=null,this[Qo("0x3")]=t,this._onAccept=e.onAccept,this[Qo("0x16")]=e[Qo("0x9")],this._onAttributesChange=e[Qo("0x8")],this[Qo("0x11")]=new Set,this[Qo("0x27")]=null,this[Qo("0x1e")](Qo("0x14"),null),this[Qo("0x1e")]("attributes",e.attributes||{}),this[Qo("0x1e")]("previous",null),this[Qo("0x1e")]("next",null),this[Qo("0x1e")]("commentThread",null),this[Qo("0x1e")](Qo("0x32"),!1),this[Qo("0x24")](Qo("0x39")),this[Qo("0x24")](Qo("0x37"))}get head(){let t=this;for(;t[Qo("0x21")];)t=t[Qo("0x21")];return t}get[Qo("0x26")](){return!!this[Qo("0x2b")]&&this[Qo("0x2b")][Qo("0x17")]>0}get[Qo("0x1")](){return 0!=this[Qo("0x11")][Qo("0x6")]&&6==Array[Qo("0x2c")](this[Qo("0x11")])[0][Qo("0x29")](":")[Qo("0x17")]}get[Qo("0x1d")](){return null!==this.getFirstMarker()}[Qo("0x1c")](t){this[Qo("0x11")].add(t)}[Qo("0x19")](){return Array[Qo("0x2c")](this[Qo("0x11")])}[Qo("0x33")](){return this[Qo("0x19")]()[Qo("0x2e")]((t=>this._model[Qo("0x2")][Qo("0x40")](t)))[Qo("0xa")]((t=>t))}[Qo("0x7")](){return this[Qo("0x33")]()[0]||null}[Qo("0x2a")](){this._model[Qo("0x0")]((t=>{for(const e of this[Qo("0x33")]())t[Qo("0x23")](e)})),this[Qo("0x11")][Qo("0x25")]()}removeMarker(t){this[Qo("0x3")][Qo("0x0")]((e=>{e[Qo("0x23")](t)})),this[Qo("0x11")][Qo("0x38")](t)}[Qo("0x18")](t){const e=Qo("0x28")+this.type+":"+this[Qo("0x31")]+":"+this.id+":"+this[Qo("0x4")].id+":"+Zo[Qo("0x34")]();this[Qo("0x1c")](e),this[Qo("0x3")][Qo("0x0")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x1f")](t){for(const e of this[Qo("0x2f")]())if(e[Qo("0xd")](t))return!0;return!1}[Qo("0x2f")](){return this[Qo("0x33")]()[Qo("0x2e")]((t=>t.getRange()))}[Qo("0xe")](){return this.getRanges()[Qo("0x1b")](((t,e)=>[...t,...e[Qo("0xe")]()]),[])}[Qo("0x13")](){var t;return(null===(t=this[Qo("0x7")]())||void 0===t?void 0:t[Qo("0x3c")]())||null}[Qo("0x3f")](){const t=this[Qo("0x2f")]();if(1!=t[Qo("0x17")])return null;const e=t[0],n=e[Qo("0xc")][Qo("0x10")],o=e[Qo("0x1a")][Qo("0x3b")];return n instanceof i.Element?n!=o?null:n:null}accept(){this[Qo("0x5")](this[Qo("0x2f")](),this.data,this[Qo("0x22")]),this[Qo("0x2a")]()}[Qo("0x37")](){this[Qo("0x16")](this.getRanges(),this[Qo("0x35")],this.attributes),this[Qo("0x2a")]()}[Qo("0x2d")](){const t=[];let e=this[Qo("0x3d")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0xb")];return t}[Qo("0x12")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x22")]=n,this[Qo("0x41")](n))}removeAttribute(t){const e=eo(this[Qo("0x22")]);qo(e,t),Go(e,this[Qo("0x22")])||(this[Qo("0x22")]=e,this[Qo("0x41")](this[Qo("0x22")]))}[Qo("0x15")](){return{id:this.id,type:this[Qo("0x31")]?this[Qo("0x3e")]+":"+this[Qo("0x31")]:this[Qo("0x3e")],authorId:this.creator.id,createdAt:this[Qo("0x27")],hasComments:this[Qo("0x26")],data:this[Qo("0x35")],attributes:this[Qo("0x22")]}}static[Qo("0x34")](){return(0,e.uid)()[Qo("0x20")](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=["getDescriptions","ELEMENT_SPACE","*Split:* %0","getFirstRange","_customCallbacks","add","function","isObject","isInContent","name","set","_locale","EmptyContainer","softBreak","_resolveDescriptionItems","addContainer","_itemLabels","removeContainer","getWalker","_itemLabelsCallbacks","getItemLabel","indexOf","normal","$text","isEqual","type","elementEnd","_addDescriptionItems","addObject","*Merge:* %0","REPLACE_TEXT","nextSibling","insertion","data","replace","*Remove:* %0","text","$textProxy","pop","$1 $2","item","match","get","element","matchingCallback","deletion","skip","label","isEmpty","Container","quantity","remove","previousSibling","registerDescriptionCallback","addEmptyContainer","_schema","length","*Insert:* %0","start","end","Object","push"];var es,ns;es=ts,ns=341,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[os("0x2f")]=new Map,this[os("0x32")]=[],this[os("0x18")]=t,this[os("0x2a")]=e}[os("0x1f")](t){const e=[];for(let n=0;n<t[os("0x19")];n++){const o=t[n];if(!o[os("0x27")])continue;let s=!1;for(const t of this[os("0x23")]){const n=t(o);if(n){os("0x38")in n&&e[os("0x1e")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x1c")][os("0x37")](s[os("0x22")]()[os("0x1b")])){const t=e[e[os("0x19")]-1],n=os("0x1")==o[os("0x38")]?"add":os("0x14");t&&os("0x5")==t[os("0x38")]&&(t[n]+="\n")}}}return this[os("0x2d")](e)}[os("0x16")](t){this._customCallbacks[os("0x1e")](t)}registerElementLabel(t,n,o=e.priorities[os("0x35")]){os("0x25")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x29")](t,n)}[os("0x33")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0xd")](t)){n=e[os("0x10")];break}return n||(n=this[os("0x2f")][os("0xb")](t[os("0x28")])),n?n(e):1!==e?e+" "+t[os("0x28")]+"s":""+t.name}[os("0x3a")](t,e){const n=e[os("0x22")]()[os("0x31")](),o=os("0x1")==e[os("0x38")]?os("0x24"):os("0x14");for(const e of n){const s=e.item,r=t[t[os("0x19")]-1];if(s.is(os("0x6")))r&&r[os("0x38")][os("0x34")](os("0x12"))>-1&&t.pop(),r&&os("0x5")==r.type?r[o]+=s[os("0x2")]:t.push({type:os("0x5"),add:os("0x24")==o?s.data:"",remove:os("0x14")==o?s[os("0x2")]:""});else if(this._schema[os("0x26")](s)){const i=s;if(r&&r.type[os("0x34")](os("0x12"))>-1&&t[os("0x7")](),os("0x39")==e.type)continue;r&&r[os("0x38")]==o+"Object"&&r.element[os("0x28")]==i[os("0x28")]?r[os("0x13")]++:t.push({type:o+os("0x1d"),element:i,quantity:1}),n[os("0xf")]((t=>!(os("0x39")==t[os("0x38")]&&t[os("0x9")]==s)))}else if(this[os("0x18")].checkChild(s,os("0x36"))||s.is(os("0xc"),os("0x2c"))){const n=s;if("add"==o&&"elementStart"==e[os("0x38")]||os("0x14")==o&&os("0x39")==e[os("0x38")])continue;if(r&&-1==r[os("0x38")][os("0x34")](os("0x12"))){"text"==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0x24")==o?n[os("0x0")]&&!this[os("0x18")][os("0x26")](n[os("0x0")])?n[os("0x0")]:null:n.previousSibling&&!this[os("0x18")][os("0x26")](n.previousSibling)?n[os("0x15")]:null,n.isEmpty||i&&i[os("0x11")]){const e=i&&i[os("0x11")]?i:n;r&&r[os("0x38")]==o+os("0x2b")&&r[os("0xc")][os("0x28")]==e.name?r[os("0x13")]++:t[os("0x1e")]({type:o+os("0x2b"),element:e,quantity:1})}else t.push({type:o+os("0x12"),element:n})}}}[os("0x2d")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x38")]){case"text":if(o[os("0x24")]=o[os("0x24")][os("0x3")](/(\S)\u000A+(\S)/g,"$1 $2").replace(/\u000A/g,""),o[os("0x14")]=o[os("0x14")].replace(/(\S)\u000A+(\S)/g,os("0x8"))[os("0x3")](/\u000A/g,""),""!=o[os("0x24")]&&""!=o[os("0x14")]){n[os("0x1e")]({type:os("0x3"),content:Yo(e,os("0x3d"),['"'+o[os("0x14")]+'"','"'+o[os("0x24")]+'"'])});continue}if(null!=o[os("0x24")][os("0xa")](/^ +$/)){n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0x1a"),Yo(e,os("0x20"),o[os("0x24")][os("0x19")]))});continue}if(null!=o[os("0x14")][os("0xa")](/^ +$/)){n[os("0x1e")]({type:os("0xe"),content:Yo(e,"*Remove:* %0",Yo(e,os("0x20"),o[os("0x14")][os("0x19")]))});continue}if(""!=o[os("0x24")]){n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0x1a"),'"'+o.add+'"')});continue}n[os("0x1e")]({type:os("0xe"),content:Yo(e,os("0x4"),'"'+o.remove+'"')});continue;case os("0x17"):case os("0x3b"):n[os("0x1e")]({type:os("0x1"),content:Yo(e,"*Insert:* %0",this[os("0x33")](o[os("0xc")],o[os("0x13")]))});continue;case"removeEmptyContainer":case"removeObject":n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x4"),this.getItemLabel(o[os("0xc")],o[os("0x13")]))});continue;case os("0x2e"):n[os("0x1e")]({type:os("0x1"),content:Yo(e,os("0x21"),this[os("0x33")](o[os("0xc")],o[os("0x13")]))});continue;case os("0x30"):n.push({type:os("0xe"),content:Yo(e,os("0x3c"),this[os("0x33")](o[os("0xc")],o[os("0x13")]))});continue}n[os("0x1e")](o)}return n}}const rs=["filter","document","commandName","checkAttribute","change","AlignmentEditing","_descriptionFactory","schema","contentLanguageDirection","from","getSelectedBlocks","right","justify","selection","format","editor","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_RIGHT","alignment","*Format:* %0","locale","FORMAT_ALIGN_TO_LEFT","commandParams","TrackChangesEditing","plugins","value","left","markBlockFormat","center"];var is,xs;is=rs,xs=444,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this[as("0x6")],e=t[as("0xb")];if(!t[as("0xf")].has(as("0x19")))return;const n=t[as("0xf")].get(as("0xe"));n.enableCommand("alignment",((e,o={})=>{let s=o[as("0x10")];o[as("0x10")]||(s="ltr"===t.locale[as("0x1c")]?as("0x11"):as("0x2"));const r=Array[as("0x0")](this[as("0x6")].model[as("0x15")][as("0x4")][as("0x1")]())[as("0x14")]((t=>function(t,e,n){const o=t.getAttribute(as("0x9"))||null;return e[as("0x17")](t,as("0x9"))&&n!=o}(t,this[as("0x6")].model[as("0x1b")],s)));t.model[as("0x18")]((()=>{for(const t of r)n[as("0x12")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x9")==n[as("0x16")]){const t=n[as("0xd")][0][as("0x10")];return{type:as("0x5"),content:Yo(e,as("0xa"),function(t){switch(t){case as("0x11"):return Yo(e,as("0xc"));case as("0x2"):return Yo(e,as("0x8"));case as("0x13"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x3"):return Yo(e,as("0x7"))}}(t))}}}))}}const ls=["writer","hasAttribute","parent","nextSibling","elementEnd","model","isAtEnd","listIndent","name","span","toViewElement","toViewPosition","ck-suggestion-marker-","getWalker","markerName","previousPosition","getItems","bindElementToMarker","schema","activeMarkers","start","consumable","mapper","addHighlight","markerRange","ck-suggestion-marker--active","insert","listItem","isBlock","isContent","push","includes","isLimit","createRangeOn"];var us,ds;us=ls,ds=283,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x5")]())s[gs("0x18")](t)&&o[gs("0x13")](n[gs("0x16")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x10"))){let n=t[gs("0x1a")];for(;n&&n.is("element",gs("0x10"))&&n.getAttribute(gs("0x1e"))>0;)e[gs("0x13")](n),n=n[gs("0x1a")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins.get("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0xa")].test(r.markerRange,s[gs("0x1f")]))return;const x=r[gs("0xd")][gs("0x2")](),a=r.markerRange[gs("0x9")],c=t[gs("0x1c")][gs("0x7")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[gs("0x12")](e);const n=i[gs("0xb")][gs("0x21")](e);if(n&&n.getCustomProperty(gs("0xc")))return;gs("0x1b")==t.type&&c[gs("0x11")](e)&&!c[gs("0x15")](e)&&(e[gs("0x1a")]||a[gs("0x1d")]?l&&l[gs("0x19")]==e||(l=e,m(t[gs("0x4")]),g=!0):u=u||t[gs("0x4")])}function m(t){const s=i[gs("0x17")].createUIElement(gs("0x20"),{class:gs("0x1")+e}),x=i[gs("0xb")][gs("0x0")](t);n&&o[gs("0x8")][gs("0x14")](r.markerName)&&i[gs("0x17")].addClass(gs("0xe"),s),i.writer[gs("0xf")](x,s),i[gs("0xb")][gs("0x6")](s,r[gs("0x3")])}d||g||!u||m(u)}}const ps=["commandParams","editor","toLowerCase","*Format:* %0","UnderlineEditing","FORMAT_CODE","markInlineFormat","locale","get","underline","isCollapsed","getRanges","TrackChangesEditing","from","SuperscriptEditing","model","registerDescriptionCallback","BoldEditing","commandName","commands","enableCommand","FORMAT_BOLD","code","SubscriptEditing","bold","FORMAT_SUBSCRIPT","document","selection","ItalicEditing","italic","plugins","value","afterInit","StrikethroughEditing","CodeEditing","FORMAT_SUPERSCRIPT","forceValue","format","subscript"];var bs,Es;bs=ps,Es=137,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x24"),_s("0x8"),_s("0x17"),_s("0xe"),_s("0xd"),_s("0x3"),_s("0x21")];class Cs extends t.Plugin{[_s("0xc")](){const t=this[_s("0x14")],e=t[_s("0x22")],n=t[_s("0xa")][_s("0x1b")](_s("0x1f")),o=t[_s("0x1a")];for(const o of Ts){if(!t[_s("0xa")].has(o))continue;const s=o.slice(0,-7)[_s("0x15")](),r=t[_s("0x26")].get(s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x6")][_s("0x7")];if(i[_s("0x1d")])return void t(o);const x=void 0!==o[_s("0x10")]?o[_s("0x10")]:!r[_s("0xb")];e.change((()=>{const t=Array[_s("0x20")](i[_s("0x1e")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x19")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x23")]((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s[_s("0x13")][0][_s("0x10")]?{type:_s("0x11"),content:Yo(o,_s("0x16"),e)}:{type:_s("0x11"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x4"),Yo(o,_s("0x1"))),s(_s("0x9"),Yo(o,"FORMAT_ITALIC")),s(_s("0x1c"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x2"),Yo(o,_s("0x18"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x12"),Yo(o,_s("0x5"))),s("superscript",Yo(o,_s("0xf")))}}const ys=["registerDescriptionCallback","editor","get","checkChild","afterInit","TrackChangesEditing","commands","format","filter","forceValue","selection","markBlockFormat","commandName","blockQuote","_descriptionFactory","enableCommand","schema","plugins","from","value","model","getSelectedBlocks","BlockQuoteEditing"];var ks,As;ks=ys,As=161,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x4")](){const t=this[vs("0x1")],e=t.locale;if(!t[vs("0x11")].has(vs("0x16")))return;const n=t[vs("0x11")][vs("0x2")](vs("0x5")),o=this[vs("0x1")][vs("0x6")][vs("0x2")](vs("0xd"));n[vs("0xf")](vs("0xd"),((e,s={})=>{const r=this[vs("0x1")].model.document[vs("0xa")],i=s&&void 0!==s.forceValue?s[vs("0x9")]:!o[vs("0x13")];let x=[];if(i){const e=Array[vs("0x12")](r[vs("0x15")]()).filter((t=>Ss(t)||function(t,e){const n=e[vs("0x3")](t.parent,vs("0xd")),o=e[vs("0x3")](["$root","blockQuote"],t);return n&&o}(t,this[vs("0x1")].model[vs("0x10")])));x=S(e,t[vs("0x14")])}else{const e=Array[vs("0x12")](r[vs("0x15")]())[vs("0x8")]((t=>Ss(t)));x=S(e,t[vs("0x14")])}t[vs("0x14")].change((()=>{for(const t of x)n[vs("0xb")](t,{commandName:vs("0xd"),commandParams:[{forceValue:i}]})}))})),n[vs("0xe")][vs("0x0")]((t=>{const{data:n}=t;if(n&&vs("0xd")==n[vs("0xc")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n.commandParams[0][vs("0x9")]?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:vs("0x7"),content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0xd")==t.parent.name}const Is=["editor","TrackChangesEditing","commands","afterInit","plugins","ckbox","get","enableCommand"];var Ls,ws;Ls=Is,ws=295,function(t){for(;--t;)Ls.push(Ls.shift())}(++ws);const Ns=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[Ns("0x4")](){const t=this[Ns("0x1")];t[Ns("0x3")][Ns("0x7")](Ns("0x6"))&&t[Ns("0x5")].get(Ns("0x2"))[Ns("0x0")]("ckbox")}}const Fs=["model","plugins","get","ELEMENT_CODE_BLOCK","forceValue","schema","name","locale","filter","checkChild","has","editor","language","TrackChangesEditing","markBlockFormat","config","*Remove format:* %0","format","registerElementLabel","find","_descriptionFactory","change","isLimit","selection","blockName","rootElement","enableCommand","CodeBlock","from","getSelectedBlocks","label","languages","commands","parent","afterInit","registerDescriptionCallback","codeBlock","commandParams"];var Os,Ps;Os=Fs,Ps=269,function(t){for(;--t;)Os.push(Os.shift())}(++Ps);const Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{[Ds("0x1f")](){const t=this[Ds("0x8")];if(!t[Ds("0x24")][Ds("0x7")](Ds("0x18")))return;const e=t.plugins[Ds("0x25")](Ds("0xa")),n=t[Ds("0x4")],o=t[Ds("0xc")][Ds("0x25")]("codeBlock")[Ds("0x1c")],s=t[Ds("0x1d")].get("codeBlock");e[Ds("0x17")]("indentCodeBlock"),e[Ds("0x17")]("outdentCodeBlock"),e.enableCommand(Ds("0x21"),((n,r={})=>{const i=t[Ds("0x23")],x=t[Ds("0x23")].document[Ds("0x14")],a=r&&void 0!==r[Ds("0x1")]?r[Ds("0x1")]:!s.value;let c;r.language||(r.language=o[0][Ds("0x9")]),c=a?Array[Ds("0x19")](x[Ds("0x1a")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x2")],!e.is(Ds("0x16"))&&!n[Ds("0x13")](e)&&n[Ds("0x6")](e[Ds("0x1e")],Ds("0x21")));var e,n})):Array[Ds("0x19")](x[Ds("0x1a")]())[Ds("0x5")]((t=>js(t)));const l=S(c,i);i[Ds("0x12")]((()=>{for(const t of l)e[Ds("0xb")](t,{commandName:Ds("0x21"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x15")})}))})),e[Ds("0x11")][Ds("0xf")](Ds("0x21"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x20")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0x21")==r.commandName){const t=r[Ds("0x22")][0][Ds("0x9")],s=e(o[Ds("0x10")]((e=>e.language===t))[Ds("0x1b")]);return r[Ds("0x22")][0][Ds("0x1")]?{type:Ds("0xe"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x0"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0xd"),Yo(n,Ds("0x0"),1))}}}))}}function js(t){return Ds("0x21")==t[Ds("0x3")]}const Us=["plugins","addCommentThread","afterInit","get","has","CommentsEditing","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=443,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x7")](){const t=this[zs("0x4")];t[zs("0x5")][zs("0x1")](zs("0x2"))&&t[zs("0x5")][zs("0x0")]("TrackChangesEditing")[zs("0x3")](zs("0x6"))}}var Vs=n(181);const Ks=["rootName","high","start","buffer","writer","isCollapsed","init","deleteForward","mapper","TrackChangesEditing","options","uiElement","editing","selection","requires","markerNameToElements","lock","fromRange","delete","addMarker:suggestion:deletion","unbindElementFromMarkerName","batch","unit","data","$graveyard","enqueueChange","downcastDispatcher","unlock","root","removeMarker:suggestion:deletion","createRange","forward","model","markerName","enableCommand","editor","merge","end","showSuggestionHighlights","document"];var qs,Xs;qs=Ks,Xs=167,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("0x7")](){return[Vs.Delete]}[$s("0x27")](){const t=this[$s("0x1c")],e=t.plugins.get($s("0x2"));e[$s("0x1b")]($s("0xb"));const n=t.commands.get($s("0x0"));e.enableCommand($s("0x0"),((e,o={})=>{const s=t.model.createSelection(t[$s("0x19")][$s("0x20")][$s("0x6")]);s[$s("0x26")]&&t[$s("0x19")].modifySelection(s,{direction:$s("0x18"),unit:o[$s("0xf")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xa")](r);let a;e(o),a=$s("0x11")==x[$s("0x15")][$s("0x21")]?t[$s("0x19")][$s("0x17")](r[$s("0x23")]):t[$s("0x19")].createRange(x.start,x[$s("0x1e")]),x.detach(),t.model[$s("0x12")](n[$s("0x24")][$s("0xe")],(t=>{n[$s("0x24")][$s("0x9")](),t.setSelection(t[$s("0x17")](a[$s("0x1e")])),n.buffer[$s("0x14")]()}))})),t[$s("0x5")][$s("0x13")].on("addMarker:suggestion:deletion",hs(t,$s("0x1d")),{priority:"high"}),t[$s("0x10")][$s("0x13")].on($s("0xc"),((e,n,o)=>{o[$s("0x3")][$s("0x1f")]&&hs(t,$s("0x1d"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x22")}),t[$s("0x5")][$s("0x13")].on($s("0x16"),((t,e,n)=>{const o=n.mapper[$s("0x8")](e[$s("0x1a")]);if(o)for(const t of o)t.is($s("0x4"))&&(n[$s("0x1")][$s("0xd")](t,e[$s("0x1a")]),n[$s("0x25")].remove(t))}),{priority:"high"})}}const Qs=["findIndex","listIndent","mergeListItemForward","indentList","containsItem","ELEMENT_NUMBERED_LIST","map","get","createPositionAt","ELEMENT_LIST_ITEM","getFirstRange","nextSibling","before","enableCommand","accept","length","change","ELEMENT_","locale","multipleBlocks","toUpperCase","previousSibling","numberedList","commandName","schema","selection","nodeAfter","listItemId","document","end","_descriptionFactory","has","afterInit","plugins","format","*Change to:* %0","listType","expandListBlocksToCompleteList","value","next","splitListItemBefore","setSelection","slice","commands","model","mergeListItemBackward","registerCustomCallback","documentList","*Format:* insert into %0","*Outdent:* %0","DocumentListEditing","splitListItemAfter","registerElementLabel","getRanges","start","editor","markMultiRangeBlockFormat","execute","forceValue","getSelectedBlocks","*Merge:* %0","bulletedList","parent","isObject","from","*Format:* remove from %0","after","createRange","_LIST","refresh","markBlockFormat","registerDescriptionCallback","push","outdentList","getAttribute"];var Zs,Ys;Zs=Qs,Ys=167,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0xf")](){const t=this[tr("0x26")];if(!t[tr("0x10")][tr("0xe")](tr("0x21")))return;const e=t[tr("0x1")],n=t[tr("0x10")][tr("0x41")]("TrackChangesEditing"),o=t[tr("0x10")].get("DocumentListUtils");function s(e){return()=>{const s=t[tr("0x1a")][tr("0x41")](e);let r=Array[tr("0x2f")](t[tr("0x1b")][tr("0xb")][tr("0x8")][tr("0x2a")]());if(a(e)){r=o[tr("0x14")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t.model[tr("0x4a")]((()=>{n[tr("0x27")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x15")]}],formatGroupId:tr("0x13")},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2f")](t);const n=e[tr("0x3a")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[tr("0x19")](0,n)),e}(t.model.document.selection[tr("0x2a")]()),s=o[o[tr("0x49")]-1],r=t[tr("0x1b")].schema.isObject(s)?tr("0x31"):tr("0xc"),i=t[tr("0x1b")].createRange(t[tr("0x1b")].createPositionAt(o[0],"before"),t[tr("0x1b")][tr("0x42")](s,r));t[tr("0x1b")][tr("0x4a")]((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x13")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x45")];for(;t&&t.getAttribute(tr("0x3b"))>n[tr("0x39")]("listIndent");)e.add(t),t=t[tr("0x45")]}return Array[tr("0x2f")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0xb")][tr("0x8")][tr("0x2a")]()[tr("0x16")]().value,s=t.model[tr("0x42")](o,tr("0x46")),r=t.model[tr("0x42")](o,0),i=t[tr("0x1b")][tr("0x32")](s,r);t[tr("0x1b")][tr("0x4a")]((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x13")})}))}}function a(e){const n=t[tr("0x1a")][tr("0x41")](tr("0x2c"))[tr("0x15")],o=t[tr("0x1a")][tr("0x41")]("numberedList").value;return"numberedList"===e?n:o}n[tr("0x47")](tr("0x5"),s("numberedList")),n[tr("0x47")]("bulletedList",s(tr("0x2c"))),n.enableCommand(tr("0x3d"),r(tr("0x3d"))),n[tr("0x47")]("outdentList",r(tr("0x38"))),n[tr("0x47")](tr("0x22"),x("splitListItemAfter")),n[tr("0x47")](tr("0x17"),x(tr("0x17"))),n[tr("0xd")][tr("0x23")]((function(e){const n=!t[tr("0x1b")][tr("0x7")][tr("0x2e")](e),o=e[tr("0x4")],s=e[tr("0x45")],r=e.getAttribute(tr("0xa")),i=!o||o[tr("0x39")](tr("0xa"))!==r,x=!s||s[tr("0x39")](tr("0xa"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x43"),t))),n[tr("0xd")][tr("0x36")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x6")]){case tr("0x2c"):r=n.commandParams[0][tr("0x29")],i=a(n.commandName),o=tr(r?"0x1f":"0x30"),i&&(o=tr("0x12")),s={type:tr("0x11"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x5"):r=n.commandParams[0][tr("0x29")],i=a(n[tr("0x6")]),o=tr(r?"0x1f":"0x30"),i&&(o=tr("0x12")),s={type:tr("0x11"),content:Yo(e,o,Yo(e,tr("0x3f")))};break;case tr("0x3d"):o="*Indent:* %0",s={type:tr("0x11"),content:Yo(e,o,Yo(e,tr("0x43")))};break;case tr("0x38"):o=function(t){const e=t.getFirstRange();let n=e.start[tr("0x9")];for(;n&&e[tr("0x3e")](n);){if(n.getAttribute(tr("0x3b"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x44")]()[tr("0x25")].nodeAfter;return tr("0x0")+e[tr("0x39")](tr("0x13"))[tr("0x3")]()+tr("0x33")}(t))):Yo(e,tr("0x20"),Yo(e,tr("0x43"))),s={type:"format",content:o};break;case tr("0x1c"):case tr("0x3c"):!1===n[tr("0x2")]&&(o=tr("0x2b"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x43")))})}return s})),n._suggestionFactory[tr("0x1d")]("formatBlock",tr("0x1e"),tr("0x48"),(function(e,n){const o=[];for(let n of e)n[tr("0x25")][tr("0x9")]===n.end[tr("0x2d")]&&(n=t[tr("0x1b")][tr("0x32")](t.model[tr("0x42")](n[tr("0x25")][tr("0x9")],0))),o[tr("0x37")](n);t[tr("0x1b")][tr("0x4a")]((e=>{const s=t[tr("0x1b")].document[tr("0x8")],r=Array[tr("0x2f")](s[tr("0x24")]())[tr("0x40")]((t=>i.LiveRange.fromRange(t)));e[tr("0x18")](o),t.commands[tr("0x41")](n[tr("0x6")])[tr("0x34")](),n.commandParams[tr("0x37")]({forceDefaultExecution:!0}),t[tr("0x28")](n[tr("0x6")],...n.commandParams),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["markInsertion","end","get","change","getFirstRange","nextSibling","fire","ck-suggestion-marker-split","fromRange","options","enter","plugins","split","data","commands","enterBlock","markerName","editor","removeMarker:suggestion:insertion","setSelection","document","bind","afterExecute","model","markerNameToElements","unbindElementFromMarkerName","init","editing","getFirstPosition","high","createRange","showSuggestionHighlights","downcastDispatcher","selection","createPositionAt","hasClass","writer"];var sr,rr;sr=or,rr=351,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("0x8")](){const t=this[ir("0x24")],e=t[ir("0x1e")].get("TrackChangesEditing"),n=t[ir("0x21")][ir("0x15")](ir("0x1d"));e.enableCommand("enter",(()=>{t[ir("0x5")][ir("0x16")]((o=>{const s=t[ir("0x5")][ir("0x2")][ir("0xf")],r=s[ir("0xa")](),x=i.LiveRange[ir("0x1b")](s[ir("0x17")]());if(n[ir("0x22")](o)){const n=t[ir("0x5")][ir("0x10")](r.parent[ir("0x18")],0),s=o[ir("0xc")](r,n);e[ir("0x13")](s)}else o[ir("0x1")](o[ir("0xc")](x[ir("0x14")]));x.detach(),n[ir("0x19")](ir("0x4"),{writer:o})}))})),t[ir("0x9")][ir("0xe")].on("addMarker:suggestion:insertion",hs(t,"split"),{priority:ir("0xb")}),t[ir("0x9")].downcastDispatcher.on(ir("0x0"),((t,e,n)=>{const o=n.mapper[ir("0x6")](e[ir("0x23")]);if(o)for(const t of o)t[ir("0x11")](ir("0x1a"))&&(n.mapper[ir("0x7")](t,e[ir("0x23")]),n[ir("0x12")].remove(t))}),{priority:"high"}),t[ir("0x20")][ir("0xe")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x1c")][ir("0xd")]&&hs(t,ir("0x1f"),{showActiveMarker:!1})[ir("0x3")](this)(e,n,o)}),{priority:ir("0xb")})}}const ar=["createPositionAt","getRange","end","FindAndReplaceEditing","_isInDeletionRange","model","bind","handleFindCommand","get","getMarkersGroup","TrackChangesEditing","find","findPrevious","findNext","getIntersection","plugins","has","enableCommand","FindAndReplaceUtils","editor"];var cr,lr;cr=ar,lr=257,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{afterInit(){if(!this[ur("0x2")].plugins[ur("0x13")](ur("0x6")))return;const t=this[ur("0x2")][ur("0x12")][ur("0xb")](ur("0xd"));t[ur("0x0")](ur("0xe"),this[ur("0xa")][ur("0x9")](this)),t[ur("0x0")](ur("0x10")),t[ur("0x0")](ur("0xf")),t[ur("0x0")]("replace"),t[ur("0x0")]("replaceAll")}handleFindCommand(t,e,n={}){const o=this[ur("0x2")][ur("0x12")][ur("0xb")](ur("0x1"));void 0!==n&&t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ur("0x7")](e,t.item)))),n)}[ur("0x7")](t,e){const n=this.editor[ur("0x8")].createRange(this.editor[ur("0x8")][ur("0x3")](e,t.start),this.editor[ur("0x8")][ur("0x3")](e,t[ur("0x5")]));for(const t of this[ur("0x2")][ur("0x8")].markers[ur("0xc")]("suggestion:deletion"))if(null!==n[ur("0x11")](t[ur("0x4")]()))return!0;return!1}}const gr=["trim","enableCommand","*Reset font family*","commandName","value","fontFamily","isCollapsed","markInlineFormat","fontBackgroundColor","_descriptionFactory","*Set font background color:* %0","FontFamilyEditing","FontColorEditing","fontSize","has","toLowerCase","getRanges","change","label","from","*Reset font color*","*Set font family:* %0","document","_enableCommand","*Reset font background color*","config","format","fontColor.colors","*Reset font size*","find","selection","fontSize.options","*Set font size:* %0","model","editor","TrackChangesEditing","*Set font color:* %0","plugins","commandParams","title","normalizeSizeOptions","get","fontColor"];var mr,fr;mr=gr,fr=292,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0x16")},{pluginName:hr("0x14"),commandName:"fontFamily"},{pluginName:hr("0x15"),commandName:hr("0x8")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x11")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x0")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x0")][hr("0x3")][hr("0x17")](t)&&this[hr("0x20")](e);this[hr("0x0")].plugins[hr("0x7")](hr("0x1"))[hr("0x12")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x16")==o[hr("0xc")]){const e=o[hr("0x4")][0][hr("0xd")];if(e){const o=n(this.editor[hr("0x3")].get("FontSize")[hr("0x6")](this[hr("0x0")].config[hr("0x7")](hr("0x28")))[hr("0x26")]((t=>t.model==e))[hr("0x5")])[hr("0x18")]();return{type:"format",content:Yo(t,hr("0x29"),o)}}return{type:hr("0x23"),content:Yo(t,hr("0x25"))}}if(hr("0xe")==o[hr("0xc")]){const e=o[hr("0x4")][0][hr("0xd")];return e?{type:hr("0x23"),content:Yo(t,hr("0x1e"),e)}:{type:hr("0x23"),content:Yo(t,hr("0xb"))}}if("fontColor"==o[hr("0xc")]){const e=o[hr("0x4")][0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x0")].config[hr("0x7")](hr("0x24")))[hr("0x26")]((t=>t[hr("0x2a")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x18")]()),{type:"format",content:Yo(t,hr("0x2"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x23"),content:Yo(t,hr("0x1d"))}}if("fontBackgroundColor"==o[hr("0xc")]){const e=o.commandParams[0][hr("0xd")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x22")][hr("0x7")]("fontBackgroundColor.colors")).find((t=>t[hr("0x2a")]==e));let r=e,i="";return o&&(r=o[hr("0x1b")],i=n(r).toLowerCase()),{type:hr("0x23"),content:Yo(t,hr("0x13"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x23"),content:Yo(t,hr("0x21"))}}}}))}_enableCommand(t){const e=this[hr("0x0")];e[hr("0x3")][hr("0x7")](hr("0x1"))[hr("0xa")](t,((n,o={})=>{const s=e.model[hr("0x1f")][hr("0x27")],r=o[hr("0xd")];s[hr("0xf")]?n(o):e[hr("0x2a")][hr("0x1a")]((()=>{const n=Array[hr("0x1c")](s[hr("0x19")]());for(const o of n){const n=r?[o]:ms(t,o,e.model);for(const o of n)e[hr("0x3")][hr("0x7")]("TrackChangesEditing")[hr("0x10")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["getLastPosition","keys","charAt","change","createRange","selection","fontSize.options","forward","editor","TrackChangesEditing","isFormatting","format","word","boolean","length","createSelection","config","fontColor.colors","afterInit","getRanges","fontBackgroundColor","toLowerCase","*Remove all formatting*","title","schema","enableCommand","plugins","toUpperCase","split","getItems","getSelectedBlocks","entries","get","push","getAttributes","find","slice","backward","copyFormat","isCollapsed","markInlineFormat","model","locale","label","_descriptionFactory","getAttributeProperties","commandName","pasteFormat","modifySelection","join","fontColor","document"];var _r,Tr;_r=Er,Tr=337,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x2d")](){const t=this[Cr("0x23")],n=t[Cr("0x10")],o=n[Cr("0x1a")][Cr("0x20")],s=t[Cr("0x1")][Cr("0x7")](Cr("0x24")),r=t.locale,i=t.commands.get(Cr("0xd")),x=t.commands[Cr("0x7")](Cr("0x16"));i&&x&&(s[Cr("0x0")](Cr("0x16"),((t,r={})=>{const i=r;n[Cr("0x1e")]((()=>{const t=Array.from(o[Cr("0x2e")]()),r=o[Cr("0xe")]?[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("0x9")]()){const t=e[Cr("0x14")](n);t&&t[Cr("0x25")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2e")]())for(const t of e[Cr("0x4")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x5")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x33")]))||0!==Object[Cr("0x1c")](i)[Cr("0x29")])for(const t of r)s[Cr("0xf")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x13")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x15")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x6")](o))e[Cr("0x8")](Ar(t,n,s));return e[Cr("0x29")]?{type:Cr("0x26"),content:Yo(r,"*Set format to:* %0",e[Cr("0x18")](", "))}:{type:Cr("0x26"),content:Yo(r,Cr("0x31"))}}})),t[Cr("0x1")][Cr("0x7")](Cr("0x24"))[Cr("0x0")](Cr("0xd")))}}function kr(t,e){const n=t[Cr("0x2a")](e);t[Cr("0x17")](n,{unit:"word",direction:Cr("0xc")});const o=n.getFirstPosition();t.modifySelection(n,{unit:Cr("0x27"),direction:Cr("0x22")});const s=n[Cr("0x1b")]();return t[Cr("0x1f")](o,s)}function Ar(t,e,n){const o=t[Cr("0x11")].t,r=e[Cr("0x3")](/(?=[A-Z])/)[Cr("0x18")](" "),i=o(r[Cr("0x1d")](0)[Cr("0x2")]()+r[Cr("0xb")](1)).toLowerCase();if(Cr("0x28")==typeof n)return i;if(Cr("0x19")===e||Cr("0x2f")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2b")][Cr("0x7")](Cr("0x2c"))).find((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x12")])[Cr("0x30")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1")][Cr("0x7")]("FontSize").normalizeSizeOptions(t.config.get(Cr("0x21")))[Cr("0xa")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x32")])[Cr("0x30")]():n)+")"}return i+" ("+n+")"}const vr=["has","parent","match","editor","registerElementLabel","commandParams","heading.options","format","formatBlock","getSelectedBlocks","TrackChangesEditing","ELEMENT_HEADING_CUSTOM","change","registerDescriptionCallback","find","plugins","schema","title","config","ELEMENT_HEADING","markBlockFormat","name","_descriptionFactory","enableCommand","model","isObject","get","*Change to:* %0","commandName","heading"];var Rr,Sr;Rr=vr,Sr=317,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this.editor,e=t.locale,n=t[Ir("0x1")][Ir("0x9")](Ir("0x13"));if(!t[Ir("0x1c")][Ir("0xd")]("HeadingEditing"))return;const o=t[Ir("0x1c")][Ir("0x9")](Ir("0x17"));o[Ir("0x6")](Ir("0xc"),((e,n)=>{const s=n.value,r=Array.from(this[Ir("0x10")].model.document.selection[Ir("0x16")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0x10")][Ir("0x7")][Ir("0x1d")]).checkChild(e[Ir("0xe")],n)&&!o[Ir("0x8")](e)&&e[Ir("0x4")]!=n;var e,n,o}));t[Ir("0x7")][Ir("0x19")]((()=>{for(const t of r)o[Ir("0x3")](t,{commandName:Ir("0xc"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t.model&&o[Ir("0x5")][Ir("0x11")](t[Ir("0x7")],(e=>{const n=wr(t[Ir("0x7")]);return null!==n?s(e,n):r(e,t[Ir("0x0")])}));function s(t,n){return Yo(e,Ir("0x2"),[t,n])}function r(t,n){return Yo(e,Ir("0x18"),[t,n])}o[Ir("0x5")][Ir("0x1a")]((t=>{const{type:o,data:i}=t;if(Ir("0x15")==o&&i&&"heading"==i[Ir("0xb")]){const t=i[Ir("0x12")][0].value,o=wr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0xa"),s(1,o))};const x=n[Ir("0x1b")]((e=>e[Ir("0x7")]===t))[Ir("0x0")];return{type:Ir("0x14"),content:Yo(e,Ir("0xa"),r(1,x))}}}))}}function wr(t){const e=t[Ir("0xf")](/^heading(\d+)$/);return e?e[1]:null}const Nr=["*Set highlight:* %0","formatInline","model","_descriptionFactory","item","isCollapsed","backward","HighlightEditing","markInlineFormat","commandParams","highlight","registerDescriptionCallback","hasAttribute","format","highlight.options","commandName","config","change","getRanges","get","selection","toLowerCase","has","plugins","color","title","editor","FORMAT_HIGHLIGHT","createRange","getLastMatchingPosition","find","TrackChangesEditing","*Remove highlight*","afterInit","getAttribute"];var Mr,Fr;Mr=Nr,Fr=168,function(t){for(;--t;)Mr.push(Mr.shift())}(++Fr);const Or=function(t,e){return Nr[t-=0]};class Pr extends t.Plugin{[Or("0x5")](){const t=this[Or("0x21")];if(!t[Or("0x1e")][Or("0x1d")](Or("0xe")))return;const e=t[Or("0x1e")][Or("0x1a")](Or("0x3"));e.enableCommand("highlight",((n,o={})=>{const s=t[Or("0x9")].document[Or("0x1b")],r=s[Or("0x6")](Or("0x11"));let i=o.value,x=[];if(s[Or("0xc")]){const e=s.getFirstPosition();if(!s[Or("0x13")](Or("0x11")))return void n(o);{const n=t=>t[Or("0xb")][Or("0x6")](Or("0x11"))===r,o=e.getLastMatchingPosition(n,{direction:Or("0xd")}),s=e[Or("0x1")](n);x=[t.model[Or("0x0")](o,s)],i==r&&(i=null)}}else for(const e of s[Or("0x19")]())i?x.push(e):x.push(...ms("highlight",e,t[Or("0x9")]));t[Or("0x9")][Or("0x18")]((()=>{for(const t of x)e[Or("0xf")](t,{commandName:Or("0x11"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Or("0xa")][Or("0x12")]((e=>{const{type:o,data:s}=e;if(Or("0x8")==o&&s&&Or("0x11")==s[Or("0x16")]){const e=n.t,o=s[Or("0x10")][0].value;if(o){const s=t[Or("0x17")][Or("0x1a")](Or("0x15"))[Or("0x2")]((t=>t[Or("0x9")]==o)),r=e(s[Or("0x20")])[Or("0x1c")]();return{type:Or("0x14"),content:Yo(n,Or("0x7"),r),color:{value:s[Or("0x1f")],title:s[Or("0x20")]}}}return{type:Or("0x14"),content:Yo(n,Or("0x4"),Yo(n,Or("0x22")))}}}))}}const Dr=["_descriptionFactory","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","high","has","div","dataDowncast","createContainerElement","conversion","HorizontalLineEditing","horizontalLine","insert","for","createEmptyElement","get","afterInit","elementToStructure","plugins"];var Br,jr;Br=Dr,jr=343,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xe")](){const t=this.editor;if(!t.plugins[Ur("0x3")](Ur("0x8")))return;t[Ur("0x10")][Ur("0xd")](Ur("0x1")).enableCommand(Ur("0x9"));const e=t[Ur("0x10")][Ur("0xd")](Ur("0x1")),n=t.locale;e[Ur("0x11")].registerElementLabel(Ur("0x9"),(t=>Yo(n,Ur("0x0"),t))),t[Ur("0x7")][Ur("0xb")](Ur("0x5"))[Ur("0xf")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x6")](Ur("0x4")),s=e[Ur("0xc")]("hr");return e.addClass("ck-horizontal-line",o),e[Ur("0xa")](e.createPositionAt(o,0),s),o},converterPriority:Ur("0x2")})}}const Hr=["plugins","getSelectedElement","change","cancel","ELEMENT_HTML_EMBED","format","editing","enableCommand","rawHtml","document","value","afterInit","htmlEmbed","TrackChangesEditing","HtmlEmbed","model","locale","has","view","selection","rawHtmlApi","get","getCustomProperty","_descriptionFactory","editor","commandName"];var zr,Wr;zr=Hr,Wr=212,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x7")](){const t=this[Vr("0x14")];if(!t[Vr("0x16")][Vr("0xd")](Vr("0xa")))return;const e=t[Vr("0x16")][Vr("0x11")](Vr("0x9")),n=t[Vr("0xc")],o=t[Vr("0x2")][Vr("0xe")][Vr("0x5")][Vr("0xf")];e[Vr("0x13")].registerElementLabel(Vr("0x4"),(t=>Yo(n,Vr("0x0"),t))),t.plugins.get(Vr("0x9"))[Vr("0x3")](Vr("0x8"),((n,s)=>{const r=t[Vr("0xb")],i=r[Vr("0x5")].selection;r[Vr("0x18")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0x4"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x6"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x8"),commandParams:[s]}),o[Vr("0x17")]()[Vr("0x12")](Vr("0x10"))[Vr("0x19")]())}))})),e[Vr("0x13")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x15")]){const t=Yo(n,Vr("0x0"));return{type:Vr("0x1"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["ImageResize","discardSuggestion","accept","commands","*Set image text alternative:* %0","commandName","afterInit","end","title","ImageTextAlternativeEditing","_findSuggestions","_splitMarkerName","_descriptionFactory","newValue","isInlineImage","getAttribute","previous","isCollapsed","has","plugins","ImageUtils","normalizedStyles","getSuggestion","getCaptionFromImageModelElement","markBlockFormat","format","find","imageInline","chain","isEqual","imageTypeInline","forceDefaultExecution","isBlockImage","start","length","TrackChangesEditing","type","forEach","editor","markInlineFormat","ImageInlineEditing","alt","ImageEditing","enableCommand","createRange","next","ImageStyleEditing","hasSuggestion","selection","isInContent","document","imageBlock","uploadImage","isIntersecting","model","*Format:* %0","ELEMENT_CAPTION","insertion","subType","getChangedMarkers","imageTextAlternative","refresh","join","head","width","addObject","ELEMENT_IMAGE","Users","resizeImage","caption","insertImage","getContainedElement","schema","shouldConvertImageType","toLowerCase","markInsertion","formatInline","isOwn","createRangeOn","discard","*Remove image text alternative*","imageStyle","getFirstRange","toPrevious","detach","getSuggestions","commandParams","formatBlock","imageTypeBlock","ImageUploadEditing","isBefore","value","commandReversedParams","name","convertInlineImageToBlock","getNearestSelectionRange","removeObject","forward","differ","change","convertBlockImageToInline","get","filter","registerElementLabel","imageCaption","author","registerDescriptionCallback","fromPosition","markDeletion","getSuggestionCallback","*Set image width:* %0","toNext","imageStylePostApply","ImageCaptionEditing","imageStylePreApply","ImageBlockEditing","Inline image to block image","toggleImageCaption","FORMAT_SIDE_IMAGE","element","findIndex","registerCustomCallback","_suggestionFactory","getClosestSelectedImageElement"];var Xr,$r;Xr=qr,$r=399,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x67")](){const t=this[Jr("0xb")];if(!t.plugins[Jr("0x73")](Jr("0xf")))return;const n=t[Jr("0x74")][Jr("0x4a")](Jr("0x8")),o=t[Jr("0x74")].get(Jr("0x75")),s={},r=t.locale;if(n.enableCommand(Jr("0x2b")),n[Jr("0x6d")][Jr("0x4c")](Jr("0x18"),(t=>Yo(r,Jr("0x27"),t))),n[Jr("0x6d")][Jr("0x4c")](Jr("0x0"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x6d")][Jr("0x4c")]("caption",(()=>Yo(r,Jr("0x1d")))),t.plugins[Jr("0x73")](Jr("0x3e"))&&n.enableCommand(Jr("0x19")),t[Jr("0x74")][Jr("0x73")](Jr("0x58"))&&t[Jr("0x74")][Jr("0x73")](Jr("0xd"))&&(n[Jr("0x10")](Jr("0x3"),((e,s)=>{const r=o[Jr("0x60")](t[Jr("0x1b")].document.selection);t.model[Jr("0x48")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x49"))}))})),n[Jr("0x10")](Jr("0x3d"),((e,s)=>{t[Jr("0x1b")][Jr("0x48")]((r=>{let x=o[Jr("0x60")](t[Jr("0x1b")][Jr("0x17")][Jr("0x15")]),a=r[Jr("0x33")](x);const c=i.LivePosition[Jr("0x50")](a[Jr("0x6")],Jr("0x38")),l=i.LivePosition[Jr("0x50")](a[Jr("0x68")],Jr("0x54"));n[Jr("0x4")]((()=>e(s))),x=o[Jr("0x60")](t[Jr("0x1b")][Jr("0x17")].selection),a=r[Jr("0x33")](x);const u=r[Jr("0x11")](c,l);c[Jr("0x39")](),l.detach(),n[Jr("0x79")](x,{commandName:Jr("0x3"),commandParams:[]},[],Jr("0x43")),u[Jr("0x6")].isBefore(a[Jr("0x6")])&&n[Jr("0x30")](r[Jr("0x11")](u[Jr("0x6")],a[Jr("0x6")]),Jr("0x43")),a[Jr("0x68")][Jr("0x3f")](u[Jr("0x68")])&&n[Jr("0x30")](r[Jr("0x11")](a[Jr("0x68")],u[Jr("0x68")]),Jr("0x43"))}))})),n._suggestionFactory[Jr("0x5e")](Jr("0x3c"),Jr("0x43"),Jr("0x23"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")]("formatBlock",Jr("0x43"),Jr("0x63"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x3c"),"convertInlineImageToBlock",Jr("0x34"),n[Jr("0x5f")].getSuggestionCallback(Jr("0x3c"),"",Jr("0x63"))),n[Jr("0x5f")][Jr("0x5e")](Jr("0x1e"),Jr("0x43"),Jr("0x23"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x1e"),"convertInlineImageToBlock",Jr("0x34"),(([e])=>{const o=n[Jr("0x5f")][Jr("0x52")](Jr("0x1e"),"",Jr("0x34"));let s=e[Jr("0x6")],r=e[Jr("0x68")];const i=t[Jr("0x1b")][Jr("0x2d")][Jr("0x44")](s,"backward"),x=t[Jr("0x1b")][Jr("0x2d")][Jr("0x44")](r,Jr("0x46"));i.isCollapsed&&(s=i.start),x[Jr("0x72")]&&(r=x.end),o([t.model.createRange(s,r)])})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x3c"),Jr("0x43"),"chain",c),n[Jr("0x5f")][Jr("0x5e")](Jr("0x1e"),"convertInlineImageToBlock",Jr("0x1"),c)),t.plugins[Jr("0x73")](Jr("0x56"))&&(n[Jr("0x10")](Jr("0x5a"),((e,s)=>{const r=t[Jr("0x74")].get("ImageCaptionUtils");let i=o[Jr("0x60")](t.model[Jr("0x17")][Jr("0x15")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x1b")][Jr("0x48")]((()=>{if(x)return void n[Jr("0x51")](t.model[Jr("0x33")](x));const a=o.isBlockImage(i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x1b")][Jr("0x17")].selection),x=r[Jr("0x78")](i),n[Jr("0x30")](t[Jr("0x1b")].createRangeOn(x),a?null:Jr("0x4d"))}))})),n._suggestionFactory[Jr("0x5e")](Jr("0x1e"),Jr("0x4d"),Jr("0x1"),c)),t[Jr("0x74")].has("ImageStyleEditing")){n[Jr("0x10")](Jr("0x36"),((s,r)=>{const i=t[Jr("0x74")][Jr("0x4a")](Jr("0x28")).me,x=t[Jr("0x64")][Jr("0x4a")](Jr("0x36"));let a=o.getClosestSelectedImageElement(t[Jr("0x1b")][Jr("0x17")][Jr("0x15")]),c=t.model[Jr("0x33")](a),l=x[Jr("0x40")];if(l==r[Jr("0x40")])return;const u={commandName:Jr("0x36"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1b")][Jr("0x48")]((()=>{if(n[Jr("0x3a")]()[Jr("0x4b")]((t=>t[Jr("0x16")]&&i==t[Jr("0x4e")]&&(Jr("0x3c")==t[Jr("0x9")]||Jr("0x31")==t[Jr("0x9")])&&(Jr("0x57")==t[Jr("0x1f")]||"imageStylePostApply"==t.subType)&&t[Jr("0x37")]()[Jr("0x2")](c)))[Jr("0xa")]((t=>n[Jr("0x62")](t[Jr("0x24")]))),a=o[Jr("0x60")](t.model.document[Jr("0x15")]),c=t[Jr("0x1b")][Jr("0x33")](a),x.refresh(),t[Jr("0x64")].get(Jr("0x3"))[Jr("0x22")](),t.commands[Jr("0x4a")]("imageTypeBlock")[Jr("0x22")](),l=x[Jr("0x40")],l!=r[Jr("0x40")])return o[Jr("0x6f")](a)&&x[Jr("0x2e")](r[Jr("0x40")],a)?(s(r),a=o[Jr("0x60")](t.model.document[Jr("0x15")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x57"))):void(o.isBlockImage(a)?n.markBlockFormat(a,u,[],Jr("0x55")):n[Jr("0xc")](c,u,"imageStylePostApply"))}))}));for(const e of t[Jr("0x74")][Jr("0x4a")](Jr("0x13"))[Jr("0x76")])s[e[Jr("0x42")]]=e[Jr("0x69")][Jr("0x2f")]();n._suggestionFactory[Jr("0x5e")](Jr("0x3c"),Jr("0x57"),"join",(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x3c"),Jr("0x55"),Jr("0x23"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x31"),Jr("0x55"),Jr("0x23"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x3c"),"imageStylePreApply",Jr("0x63"),(()=>{})),n[Jr("0x5f")][Jr("0x5e")](Jr("0x3c"),Jr("0x57"),"discard",((t,e)=>{n._suggestionFactory[Jr("0x52")](Jr("0x3c"),"","accept")(t,{commandName:e[Jr("0x66")],commandParams:e[Jr("0x41")]})})),n[Jr("0x5f")].registerCustomCallback(Jr("0x3c"),"imageStylePreApply","chain",c)}const x=[{type:"formatBlock",subType:Jr("0x57")},{type:Jr("0x1e"),subType:Jr("0x4d")},{type:Jr("0x3c"),subType:Jr("0x43")},{type:Jr("0x1e"),subType:Jr("0x43")}];function a(t,e){const s=x[Jr("0x5d")]((({type:e,subType:n})=>t[Jr("0x9")]==e&&t[Jr("0x1f")]==n)),r=x[Jr("0x5d")]((({type:t,subType:n})=>e[Jr("0x9")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x37")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x1a")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x6b")](i,"insertion")[Jr("0x4b")]((({suggestion:t,meta:e})=>e[Jr("0x32")]&&Jr("0x43")==t.subType));if(t[Jr("0x7")]>1&&a[Jr("0x68")].isEqual(i.start))return!0;if(1==t.length&&(i[Jr("0x6")].isEqual(a[Jr("0x68")])||i[Jr("0x68")][Jr("0x2")](a[Jr("0x6")])))return!0}if(3==s&&3==r&&i[Jr("0x6")][Jr("0x3f")](a[Jr("0x6")])){const t=i[Jr("0x68")].nodeAfter,e=a[Jr("0x6")].nodeBefore;return o[Jr("0x5")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x17")].registerPostFixer((()=>{let e=!1;const s=Array.from(t[Jr("0x1b")][Jr("0x17")][Jr("0x47")][Jr("0x20")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x6c")](t);if("suggestion"==s&&n[Jr("0x14")](a)){if(Jr("0x3c")==i&&(Jr("0x57")==x||Jr("0x55")==x)){const t=n[Jr("0x77")](a);if(r.newRange){const s=t[Jr("0x37")]().getContainedElement();if(o[Jr("0x5")](s))continue;n[Jr("0x62")](t),e=!0}}if(Jr("0x1e")==i&&Jr("0x4d")==x&&!r.newRange){const t=n[Jr("0x77")](a);t[Jr("0x12")]&&t[Jr("0x12")][Jr("0x16")]&&(n[Jr("0x62")](t[Jr("0x12")]),e=!0)}}}return e})),t[Jr("0x74")][Jr("0x73")](Jr("0x61"))&&n.enableCommand(Jr("0x29"),((e,s)=>{const r=o[Jr("0x60")](t[Jr("0x1b")][Jr("0x17")][Jr("0x15")]);r[Jr("0x70")](Jr("0x25"))!=s[Jr("0x25")]&&t[Jr("0x1b")][Jr("0x48")]((()=>{n[Jr("0x79")](r,{commandName:Jr("0x29"),commandParams:[s]})}))})),t[Jr("0x74")][Jr("0x73")](Jr("0x6a"))&&n[Jr("0x10")](Jr("0x21"),((e,s)=>{const r=o[Jr("0x60")](t[Jr("0x1b")][Jr("0x17")].selection);(r.hasAttribute(Jr("0xe"))?r[Jr("0x70")]("alt"):"")!=s[Jr("0x6e")]&&t[Jr("0x1b")][Jr("0x48")]((()=>{n[Jr("0x79")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n._descriptionFactory[Jr("0x4f")]((t=>{if(x[Jr("0x7b")]((({type:e,subType:n})=>t[Jr("0x9")]==e&&t.subType==n)))return t[Jr("0x71")]?{}:void 0})),n[Jr("0x6d")][Jr("0x4f")]((t=>{if(Jr("0x1e")==t[Jr("0x9")]||"deletion"==t[Jr("0x9")]){const e=t[Jr("0x2c")]();if(e&&e.is(Jr("0x5c"),Jr("0x2a")))return{type:Jr("0x1e")==t[Jr("0x9")]?Jr("0x26"):Jr("0x45"),element:e,quantity:1}}})),n._descriptionFactory[Jr("0x4f")]((t=>"formatBlock"==t[Jr("0x9")]&&Jr("0x43")==t.subType?{type:Jr("0x7a"),content:Jr("0x59")}:Jr("0x3c")==t.type&&Jr("0x49")==t.subType?{type:Jr("0x7a"),content:"Block image to inline image"}:void 0)),n._descriptionFactory[Jr("0x4f")]((t=>{const{data:e}=t;if(e){if(Jr("0x36")==e[Jr("0x66")]){const t=e[Jr("0x3b")][0].value;return n="side"===t?Yo(r,Jr("0x5b")):s[t]||t,{type:Jr("0x7a"),content:Yo(r,Jr("0x1c"),n)}}if("imageTextAlternative"==e[Jr("0x66")]){const t=e[Jr("0x3b")][0][Jr("0x6e")];return t?{type:Jr("0x7a"),content:Yo(r,Jr("0x65"),'"'+t+'"')}:{type:Jr("0x7a"),content:Yo(r,Jr("0x35"))}}if("resizeImage"==e[Jr("0x66")]){const t=e.commandParams[0][Jr("0x25")];return t?{type:Jr("0x7a"),content:Yo(r,Jr("0x53"),t)}:{type:"format",content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["data","getSuggestionCallback","discard","registerDescriptionCallback","getSelectedElement","TrackChangesEditing","get","_descriptionFactory","document","source","model","handleSuggestionDescription","enableCommand","accept","replaceImageSource","_suggestionFactory","format","has","plugins","Users","ImageEditing","src","subType","markBlockFormat","getSuggestions","handleReplaceImageCommand","afterInit","formatBlock","registerCustomCallback","editor","*Format:* replace image URL","getContainedElement"];var Yr,ti;Yr=Zr,ti=213,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x5")](){if(!this[ei("0x8")][ei("0x1d")][ei("0x1c")](ei("0x1f")))return;const t=this[ei("0x8")][ei("0x1d")][ei("0x11")](ei("0x10"));t[ei("0x17")](ei("0x19"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory.registerCustomCallback(ei("0x6"),ei("0x19"),ei("0x18"),t[ei("0x1a")].getSuggestionCallback(ei("0x6"),null,ei("0xd"))),t[ei("0x1a")][ei("0x7")](ei("0x6"),ei("0x19"),"discard",t[ei("0x1a")][ei("0xc")](ei("0x6"),null,ei("0x18"))),t[ei("0x12")][ei("0xe")]((t=>this[ei("0x16")](t)))}[ei("0x4")](t,e){const n=this[ei("0x8")][ei("0x1d")].get("TrackChangesEditing"),o=this[ei("0x8")][ei("0x15")][ei("0x13")].selection[ei("0xf")]();this[ei("0x8")][ei("0x15")].change((()=>{let s=o.getAttribute(ei("0x0"));const r=this[ei("0x8")][ei("0x1d")][ei("0x11")](ei("0x1e")).me;for(const t of n[ei("0x3")]({skipNotAttached:!0})){const e=t[ei("0xa")]();if(ei("0x19")===t[ei("0x1")]&&e===o){t.author!==r&&t[ei("0xd")](),s=t[ei("0xb")].commandParams[0][ei("0x14")];break}}t(e),n[ei("0x2")](o,{commandName:ei("0x19"),commandParams:[{source:s}]},[],ei("0x19"))}))}[ei("0x16")](t){const{data:e}=t;if(e&&ei("0x19")===e.commandName){const t=ei("0x9");return{type:ei("0x1b"),content:Yo(this[ei("0x8")].locale,t)}}}}const oi=["track_changes","Users","get","execute","plugins","commands","listenTo","_trackChangesValueDuringImport","_trackChangesExecuted","trackChanges","TrackChangesEditing","_setSuggestionData","collaboration_features","afterInit","dataInsert","editor","enableCommand","importWord","value","lowest","_handleImportedData"];var si,ri;si=oi,ri=179,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("0x11")]=!1,this[ii("0x12")]=!1}[ii("0x2")](){const t=this[ii("0x4")],e=t[ii("0xf")][ii("0xc")](ii("0x6")),n=t.commands[ii("0xc")](ii("0x13"));e&&(e.on(ii("0xd"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x7")],e[ii("0x1")][ii("0xa")]=!this[ii("0x11")]}),{priority:"high"}),this[ii("0x10")](e,"dataInsert",this[ii("0x9")].bind(this)),this[ii("0x10")](e,ii("0x3"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0x12")]=!1)}),{priority:ii("0x8")}),t[ii("0xe")][ii("0xc")](ii("0x14"))[ii("0x5")](ii("0x6")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this[ii("0x4")][ii("0xf")].get("trackChanges"),s=o[ii("0x7")];this._trackChangesValueDuringImport!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xe")].get(ii("0xb")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x6")}}};this[ii("0x4")].plugins[ii("0xc")]("TrackChangesEditing")[ii("0x0")](s)}))}}const ai=["IndentEditing","model","_descriptionFactory","format","from","plugins","getItems","has","editor","getItemLabel","outdent","afterInit","commandName","get","enableCommand","checkAttribute","blockIndent","outdentBlock","indent","getSelectedBlocks","document","indentBlock","selection"];var ci,li;ci=ai,li=298,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xc")](){const t=this[ui("0x9")],e=t[ui("0x6")][ui("0xe")]("TrackChangesEditing");t[ui("0x6")][ui("0x8")](ui("0x1"))&&(e[ui("0xf")](ui("0x13")),e[ui("0xf")](ui("0xb")));const n=t.locale;if(t[ui("0x6")].has("IndentBlock")){for(const n of[ui("0x16"),ui("0x12")])e[ui("0xf")](n,(()=>{const o=Array[ui("0x5")](this[ui("0x9")][ui("0x2")][ui("0x15")][ui("0x0")][ui("0x14")]()).filter((t=>this[ui("0x9")].model.schema[ui("0x10")](t,ui("0x11"))));t.model.change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x16")})}))}));e[ui("0x3")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[ui("0xd")]&&ui("0x12")!=o[ui("0xd")])return;const s=t[ui("0x7")]()[0],r=e[ui("0x3")][ui("0xa")](s);return"indentBlock"==o[ui("0xd")]?{type:ui("0x4"),content:Yo(n,"*Indent:* %0",r)}:ui("0x12")==o.commandName?{type:ui("0x4"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["editor","TrackChangesEditing","input","requires"];gi=fi,mi=431,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("0x0")](){return[Vs.Input]}init(){this[hi("0x1")].plugins.get(hi("0x2")).enableCommand(hi("0x3"))}}const bi=["markInlineFormat","commandName","TrackChangesEditing","document","link","linkHref","unlink","format","getFirstRange","getRanges","plugins","get","hasAttribute","editor","change","enableCommand","getAttribute","*Set link:* %0","LinkEditing","isCollapsed","from","afterInit","model","*Remove link*"];var Ei,_i;Ei=bi,_i=288,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x15")](){const t=this[Ti("0xd")];if(!t[Ti("0xa")].has(Ti("0x12")))return;const e=t[Ti("0xa")][Ti("0xb")](Ti("0x2"));e[Ti("0xf")](Ti("0x4"),((n,o)=>{const s=t[Ti("0x16")][Ti("0x3")].selection;let r=[];if(s[Ti("0x13")]){if(!s[Ti("0xc")](Ti("0x5")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x5"),s[Ti("0x10")]("linkHref"),t[Ti("0x16")]);r=[e]}}else r=Array[Ti("0x14")](s[Ti("0x9")]());t[Ti("0x16")][Ti("0xe")]((()=>{for(const t of r)e[Ti("0x0")](t,{commandName:Ti("0x4"),commandParams:[o]})}))})),e[Ti("0xf")](Ti("0x6"),(()=>{const n=this.editor[Ti("0x16")],o=n[Ti("0x3")].selection;n[Ti("0xe")]((()=>{let n=[];n=o[Ti("0x13")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),"linkHref",o.getAttribute(Ti("0x5")),t.model)]:ms(Ti("0x5"),o[Ti("0x8")](),t[Ti("0x16")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x6"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:Ti("0x7"),content:Yo(o,Ti("0x11"),'"'+t+'"')}}return"unlink"==n[Ti("0x1")]?{type:Ti("0x7"),content:Yo(o,Ti("0x17"))}:void 0}}))}}const yi=["document","ELEMENT_LIST_ITEM","ListEditing","findIndex","has","*Check item*","execute","ELEMENT_TODO_LIST","commands","listIndent","registerElementLabel","parent","plugins","nextSibling","listType","bulletedList","enableCommand","outdentList","slice","before","numbered","value","replace","length","editor","filter","bulleted","change","model","todo","todoListChecked","selection","List","listItem","commandParams","get","paragraph","TodoListEditing","*Uncheck item*","numberedList","format","commandName","createRange","element","*Outdent:* %0","todoList","checkTodoList","getSelectedBlocks","isObject","locale","registerDescriptionCallback","schema","getAttribute","markBlockFormat","_descriptionFactory","add","from","previousSibling","TrackChangesEditing","afterInit"];var ki,Ai;ki=yi,Ai=250,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x31")](){const t=this[vi("0xe")],e=t[vi("0x27")];if(!t[vi("0x2")][vi("0x36")](vi("0x34")))return;const n=t[vi("0x2")][vi("0x19")](vi("0x30")),o=t[vi("0x2")][vi("0x36")](vi("0x1b"));function s(e){return()=>{const o=t[vi("0x12")][vi("0x32")][vi("0x15")],s=t[vi("0x3a")][vi("0x19")](e);if(s.value)return void t[vi("0x38")](vi("0x1a"),{});const r=e[vi("0x8")](0,-4),i=function(t,e,n){let o=Array[vi("0x2e")](t)[vi("0xf")]((t=>{return e=t,(o=n).checkChild(e[vi("0x1")],vi("0x17"))&&!o[vi("0x26")](e);var e,o}));o=o[vi("0xf")]((t=>!t.is(vi("0x21"),"listItem")||t[vi("0x2a")](vi("0x4"))!=e));const s=new Set;for(const t of o)t.is("element",vi("0x17"))?s.add(Si(t)):s[vi("0x2d")](t);return Array.from(s)}(o[vi("0x25")](),r,t[vi("0x12")][vi("0x29")]);t[vi("0x12")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0xb")]}],formatGroupId:"blockName"},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x35")]((t=>vi("0x17")!=t.name));return n>-1&&(e=e[vi("0x8")](0,n)),e}(t[vi("0x12")][vi("0x32")].selection.getSelectedBlocks()),s=t[vi("0x12")][vi("0x20")](t[vi("0x12")].createPositionAt(o[0],vi("0x9")),t[vi("0x12")].createPositionAt(o[o[vi("0xd")]-1],"end"));t.model[vi("0x11")]((()=>{n[vi("0x2b")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x3b")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3")];for(;t&&t[vi("0x2a")](vi("0x3b"))>n[vi("0x2a")](vi("0x3b"));)e[vi("0x2d")](t),t=t[vi("0x3")]}return Array[vi("0x2e")](e)}(o))}))}}n[vi("0x6")](vi("0x1d"),s(vi("0x1d"))),n[vi("0x6")]("bulletedList",s(vi("0x5"))),o&&n.enableCommand("todoList",s("todoList")),n[vi("0x6")]("indentList",r("indentList")),n[vi("0x6")]("outdentList",r("outdentList")),o&&n.enableCommand(vi("0x24"),(()=>{const e=t[vi("0x3a")].get("checkTodoList"),o=Array[vi("0x2e")](e._selectedElements);o.filter((t=>t.getAttribute(vi("0x14"))!=e[vi("0xb")])),t[vi("0x12")][vi("0x11")]((()=>{for(const t of o)n[vi("0x2b")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory[vi("0x0")](vi("0x17"),(t=>Yo(e,vi("0x33"),t))),n[vi("0x2c")][vi("0x28")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x1f")]||vi("0x5")==n[vi("0x1f")]||vi("0x23")==n[vi("0x1f")])switch(n.commandName[vi("0xc")](vi("0x16"),"")){case vi("0x10"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0xa"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x13"):return o(Yo(e,vi("0x39")))}if("indentList"==n[vi("0x1f")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x7")==n[vi("0x1f")])return{type:"format",content:Yo(e,vi("0x22"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x24")==n[vi("0x1f")])return n[vi("0x18")][0].forceValue?{type:vi("0x1e"),content:Yo(e,vi("0x37"))}:{type:"format",content:Yo(e,vi("0x1c"))}}function o(t){return{type:vi("0x1e"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Si(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x2f")]&&t.previousSibling.is(vi("0x21"),vi("0x17"));){const o=t[vi("0x2f")].getAttribute(vi("0x3b"));if(o==e)n=t[vi("0x2f")];else if(o<e)break;t=t[vi("0x2f")]}return n}function Ii(t){const e=[];if(t.is(vi("0x21"),vi("0x17"))&&t[vi("0x2a")]("listIndent")>0){let n=t.nextSibling;for(;n&&vi("0x17")==n.name&&n.getAttribute(vi("0x3b"))==t[vi("0x2a")](vi("0x3b"));)e.push(n),n=n[vi("0x3")]}return e}const Li=["type","locale","toUpperCase","selection","getLastPosition","unshift","handleListReversedCommand","listItem","flat","listReversed","document","backward","*Format:* set order to reversed","afterInit","filter","markMultiRangeBlockFormat","has","getAttribute","ListUtils","_getSuggestionBlocks","reversed","_LIST_","handleDescriptions","model","startIndex","push","handleListStyleCommand","_getSuggestionBlocksForListStyle","createRange","createPositionAt","map","numbered","forward","listType","ListPropertiesEditing","styles","listStart","ELEMENT_","getListTypeFromListStyleType","_descriptionFactory","get","change","getFirstPosition","from","_getTranslationKeyForListStyle","bind","getSelectedBlocks","getSiblingNodes","commandName","commandParams","TrackChangesEditing","listStyle","editor","enableCommand","*Change to:* %0","format","plugins","element","registerDescriptionCallback","length","*Format:* set start index to %0","handleListStartCommand"];var wi,Ni;wi=Li,Ni=116,function(t){for(;--t;)wi.push(wi.shift())}(++Ni);const Mi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Mi("0x15")](){if(!this[Mi("0x3c")][Mi("0x2")][Mi("0x18")](Mi("0x2a")))return;const t=this.editor.config[Mi("0x30")]("list.properties"),e=this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x3a"));t[Mi("0x2b")]&&e.enableCommand(Mi("0x3b"),this[Mi("0x22")][Mi("0x35")](this)),t[Mi("0x1c")]&&e[Mi("0x3d")](Mi("0x11"),this[Mi("0xe")].bind(this)),t[Mi("0x20")]&&e[Mi("0x3d")](Mi("0x2c"),this.handleListStartCommand[Mi("0x35")](this)),e[Mi("0x2f")][Mi("0x4")](this[Mi("0x1e")][Mi("0x35")](this))}handleListStyleCommand(t,e={}){const n=this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x3a")),o=this[Mi("0x23")]();this[Mi("0x3c")][Mi("0x1f")][Mi("0x31")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Mi("0x3b"),commandParams:[{type:e[Mi("0x8")]}],formatGroupId:Mi("0x3b")})}))}[Mi("0xe")](t,e={}){const n=this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x3a")),o=this[Mi("0x1b")]((t=>t.is(Mi("0x3"),Mi("0xf"))&&Mi("0x27")===t[Mi("0x19")](Mi("0x29"))));if(o[Mi("0x5")]<1)return;const s=o[Mi("0x26")]((t=>this[Mi("0x3c")].model[Mi("0x24")](this[Mi("0x3c")][Mi("0x1f")][Mi("0x25")](t,"before"),this[Mi("0x3c")][Mi("0x1f")].createPositionAt(t,0))));this[Mi("0x3c")][Mi("0x1f")][Mi("0x31")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x11"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[Mi("0x7")](t,e={}){const n=this.editor[Mi("0x2")].get(Mi("0x3a")),o=this[Mi("0x1b")]((t=>t.is(Mi("0x3"),Mi("0xf"))&&"numbered"===t[Mi("0x19")]("listType")));if(o.length<1)return;const s=o[Mi("0x26")]((t=>this[Mi("0x3c")][Mi("0x1f")][Mi("0x24")](this[Mi("0x3c")].model.createPositionAt(t,"before"),this.editor[Mi("0x1f")][Mi("0x25")](t,0))));this[Mi("0x3c")][Mi("0x1f")].change((()=>{n[Mi("0x17")](s,{commandName:Mi("0x2c"),commandParams:[{startIndex:e[Mi("0x20")]}],formatGroupId:Mi("0x2c")})}))}handleDescriptions(t){const e=this[Mi("0x3c")][Mi("0x9")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x38")]){case Mi("0x3b"):o=Mi("0x0"),s={type:Mi("0x1"),content:Yo(e,o,Yo(e,this[Mi("0x34")](n[Mi("0x39")][0][Mi("0x8")])))};break;case"listReversed":o=n[Mi("0x39")][0][Mi("0x1c")]?Mi("0x14"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case"listStart":o=Mi("0x6"),s={type:Mi("0x1"),content:Yo(e,o,n[Mi("0x39")][0][Mi("0x20")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x1a"));let r=Array[Mi("0x33")](this.editor[Mi("0x1f")].document.selection[Mi("0x36")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0x3"),Mi("0xf")))&&r[Mi("0xd")](...s[Mi("0x37")](this[Mi("0x3c")].model[Mi("0x12")].selection.getFirstPosition(),Mi("0x13"))),(null===(e=r[r[Mi("0x5")]-1])||void 0===e?void 0:e.is("element",Mi("0xf")))&&r[Mi("0x21")](...s[Mi("0x37")](this[Mi("0x3c")][Mi("0x1f")][Mi("0x12")][Mi("0xb")][Mi("0xc")](),Mi("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x3c")].model[Mi("0x12")][Mi("0xb")][Mi("0x32")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Mi("0x3"),Mi("0xf")))&&(r=r[Mi("0x16")]((t=>t.is(Mi("0x3"),"listItem")))),r}[Mi("0x1b")](t){const e=this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x1a"));let n=Array.from(this.editor[Mi("0x1f")][Mi("0x12")][Mi("0xb")][Mi("0x36")]())[Mi("0x16")](t).map((t=>{const n=this[Mi("0x3c")][Mi("0x1f")][Mi("0x25")](t,0);return[...e[Mi("0x37")](n,Mi("0x13")),...e.getSiblingNodes(n,Mi("0x28"))]}))[Mi("0x10")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Mi("0x2d")+this[Mi("0x3c")][Mi("0x2")][Mi("0x30")](Mi("0x1a"))[Mi("0x2e")](t)[Mi("0xa")]()+Mi("0x1d")+t[Mi("0xa")]().replace(/-/g,"_")}}const Oi=["dataDowncast","options","TrackChangesEditing","div","MediaEmbedEditing","has","downcastDispatcher","editor","high","_descriptionFactory","data","plugins","ELEMENT_MEDIA","elementToElement","registerElementLabel","media","locale","afterInit","showSuggestionHighlights","createEmptyElement","attribute:url:media","get","mediaEmbed","for","enableCommand"];var Pi,Di;Pi=Oi,Di=208,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class ji extends t.Plugin{[Bi("0x9")](){const t=this[Bi("0x18")];if(!t[Bi("0x3")][Bi("0x16")](Bi("0x15")))return;const e=t[Bi("0x3")][Bi("0xd")](Bi("0x13")),n=t[Bi("0x8")];e[Bi("0x10")](Bi("0xe")),e[Bi("0x1")][Bi("0x6")](Bi("0x7"),(t=>Yo(n,Bi("0x4"),t))),t.conversion[Bi("0xf")](Bi("0x11"))[Bi("0x5")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0xa")])return e[Bi("0xb")](Bi("0x14"))},converterPriority:Bi("0x0")}),t[Bi("0x2")][Bi("0x17")].on(Bi("0xc"),((t,e,n)=>{n[Bi("0x12")][Bi("0xa")]&&t.stop()}),{priority:Bi("0x0")})}}const Ui=["plugins","MentionEditing","has","mention","get","TrackChangesEditing","editor"];var Gi,Hi;Gi=Ui,Hi=235,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("0x2")];t[zi("0x3")][zi("0x5")](zi("0x4"))&&t[zi("0x3")][zi("0x0")](zi("0x1")).enableCommand(zi("0x6"))}}const Vi=["get","plugins","enableCommand","locale","PageBreakEditing","afterInit","editor","ELEMENT_PAGE_BREAK","has","pageBreak","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=303,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0xa")](){const t=this[Xi("0x0")];if(!t[Xi("0x6")][Xi("0x2")](Xi("0x9")))return;t[Xi("0x6")][Xi("0x5")](Xi("0x4"))[Xi("0x7")](Xi("0x3"));const e=t[Xi("0x6")][Xi("0x5")]("TrackChangesEditing"),n=t[Xi("0x8")];e._descriptionFactory.registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["from","blockName","isTouching","getFirstRange","getSelectedBlocks","isObject","nodeAfter","mapper","isBlock","markerName","change","addClass","type","data","end","checkChild","consumable","downcastDispatcher","plugins","ck-suggestion-marker--active","editor","registerElementLabel","get","model","markerRange","commandName","enableCommand","createUIElement","format","TrackChangesEditing","*Change to:* %0","highest","$text","start","ck-suggestion-marker-split","toViewPosition","schema","has","getItemLabel","paragraph","selection","_descriptionFactory","document","name","showSuggestionHighlights","registerDescriptionCallback","insertion","ELEMENT_PARAGRAPH","span","addMarker:suggestion:insertion","writer","*Insert:* %0","isLimit","afterInit","editing","options"];var Qi,Zi;Qi=Ji,Zi=473,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1c")](){const t=this[Yi("0x33")];if(!t[Yi("0x31")][Yi("0xc")]("Paragraph"))return;const e=t.locale,n=t[Yi("0x31")][Yi("0x35")](Yi("0x4"));n[Yi("0x10")][Yi("0x34")](Yi("0xe"),(t=>Yo(e,Yi("0x16"),t))),n[Yi("0x1")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x11")],r=o[Yi("0xf")]||s.selection,i=Array[Yi("0x1f")](r[Yi("0x23")]()).filter((t=>{return e=t,(n=this.editor[Yi("0x36")][Yi("0xb")])[Yi("0x2e")](e.parent,"paragraph")&&!n[Yi("0x24")](e)&&Yi("0xe")!=e[Yi("0x12")];var e,n}));t.model[Yi("0x29")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0xe"),commandParams:[],formatGroupId:Yi("0x20")},fs(t))}))})),n[Yi("0x10")][Yi("0x14")]((t=>{const{data:n}=t;if(n&&Yi("0xe")==n[Yi("0x0")])return{type:Yi("0x3"),content:Yo(e,Yi("0x5"),Yo(e,Yi("0x16")))}})),n[Yi("0x1")]("insertParagraph"),t[Yi("0x1d")][Yi("0x30")].on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x6")}),t[Yi("0x2c")][Yi("0x30")].on(Yi("0x18"),((e,n,o)=>{o[Yi("0x1e")][Yi("0x13")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x10")];o.registerDescriptionCallback((n=>{if(Yi("0x15")!==n[Yi("0x2b")])return;const{start:s,end:r}=n[Yi("0x22")]();if(!s[Yi("0x21")](r)||!s.nodeAfter)return;const i=t[Yi("0x36")][Yi("0xb")],x=s[Yi("0x25")];return i[Yi("0x27")](x)&&!i[Yi("0x1b")](x)&&i[Yi("0x2e")](x,Yi("0x7"))?{type:Yi("0x15"),content:Yo(e,Yi("0x1a"),o[Yi("0xd")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x35")]("TrackChangesEditing"),i=o[Yi("0x37")][Yi("0x8")],x=o[Yi("0x37")][Yi("0x2d")],a=t[Yi("0x36")][Yi("0xb")];if(!i[Yi("0x21")](x)||!i[Yi("0x25")])return;const c=i[Yi("0x25")];if(a[Yi("0x27")](c)&&!a.isLimit(c)&&a[Yi("0x2e")](c,Yi("0x7"))){if(!s[Yi("0x2f")].consume(o[Yi("0x37")],n[Yi("0x12")]))return;const t=s[Yi("0x19")][Yi("0x2")](Yi("0x17"),{class:Yi("0x9")}),i=s[Yi("0x26")][Yi("0xa")](x);e&&r.activeMarkers.includes(o.markerName)&&s[Yi("0x19")][Yi("0x2a")](Yi("0x32"),t),s[Yi("0x19")].insert(i,t),s[Yi("0x26")].bindElementToMarker(t,o[Yi("0x28")])}}}const nx=["from","change","getAttributeProperties","*Remove all formatting*","document","format","selection","RemoveFormatEditing","getRanges","has","getAttributes","editor","afterInit","isCollapsed","markInlineFormat","commandName","model","removeFormat","enableCommand","_descriptionFactory","locale","registerDescriptionCallback"];var ox,sx;ox=nx,sx=426,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x4")](){const t=this[rx("0x3")];if(!t.plugins[rx("0x1")](rx("0x15")))return;const e=t.plugins.get("TrackChangesEditing");e[rx("0xa")](rx("0x9"),(n=>{const o=t.model[rx("0x12")][rx("0x14")];o[rx("0x5")]?n():t.model[rx("0xf")]((()=>{const n=Array[rx("0xe")](o[rx("0x0")]());for(const o of n)for(const n of o.getItems())xx(n,t.model.schema)&&e[rx("0x6")](t[rx("0x8")].createRangeOn(n),{commandName:"removeFormat",commandParams:[]})}))})),e[rx("0xb")][rx("0xd")]((e=>{const{data:n}=e;if(n&&rx("0x9")==n[rx("0x7")])return{type:rx("0x13"),content:Yo(t[rx("0xc")],rx("0x11"))}}))}}function xx(t,e){for(const[n]of t[rx("0x2")]()){const t=e[rx("0x10")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["trackChanges","RestrictedEditingModeEditing","discardSelectedSuggestions","afterInit","goToNextRestrictedEditingException","editor","acceptSelectedSuggestions","TrackChangesEditing","goToPreviousRestrictedEditingException","acceptAllSuggestions","plugins","enableCommand"];var cx,lx;cx=ax,lx=332,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x7")](){const t=this[ux("0x9")];if(!t[ux("0x2")].has(ux("0x5")))return;const e=t[ux("0x2")].get(ux("0xb"));e[ux("0x3")](ux("0x0")),e[ux("0x3")](ux("0x8"));const n=t[ux("0x2")].get(ux("0x5"));n.enableCommand(ux("0x4")),n[ux("0x3")]("acceptSuggestion"),n.enableCommand("discardSuggestion"),n.enableCommand(ux("0x1")),n[ux("0x3")]("discardAllSuggestions"),n[ux("0x3")](ux("0xa")),n.enableCommand(ux("0x6"))}}const gx=["showSuggestionHighlights","addMarker:suggestion:insertion","addClass","mapper","markerRange","_descriptionFactory","addMarker:suggestion:deletion","plugins","model","requires","registerElementLabel","consumable","ck-suggestion-marker--active","writer","toViewPosition","ELEMENT_LINE_BREAK","editing","data","addMarker:suggestion","TrackChangesEditing","merge","getItems","high","init","createUIElement","downcastDispatcher","locale","test","shiftEnter","enableCommand","split","markerName","softBreak","get"];var mx,fx;mx=gx,fx=311,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("0x4")](){return[nr.ShiftEnter]}[hx("0x12")](){const t=this.editor,e=t[hx("0x2")].get("TrackChangesEditing");e[hx("0x18")](hx("0x17")),t[hx("0xb")][hx("0x14")].on(hx("0x1e"),bx(t),{priority:hx("0x11")}),t[hx("0xb")].downcastDispatcher.on(hx("0x1"),bx(t),{priority:hx("0x11")}),t[hx("0xc")][hx("0x14")].on(hx("0xd"),((e,n,o)=>{o.options[hx("0x1d")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x0")][hx("0x5")](hx("0x1b"),(e=>Yo(t[hx("0x15")],hx("0xa"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x2")][hx("0x1c")](hx("0xe"));if(!s[hx("0x6")][hx("0x16")](o[hx("0x21")],n.name))return;const i=t[hx("0x3")];for(const t of o[hx("0x21")][hx("0x10")]()){if(!t.is("element","softBreak"))continue;const n="deletion"==o[hx("0x1a")][hx("0x19")](":")[1]?hx("0xf"):hx("0x19"),x=s[hx("0x8")][hx("0x13")]("span",{class:"ck-suggestion-marker-"+n}),a=s.mapper[hx("0x9")](i.createPositionBefore(t));e&&r.activeMarkers.includes(o[hx("0x1a")])&&s.writer[hx("0x1f")](hx("0x7"),x),s.writer.insert(a,x),s[hx("0x20")].bindElementToMarker(x,o.markerName)}}}const Ex=["commandParams","commandName","registerDescriptionCallback","FORMAT_RESTRICTED_DISABLED","from","format","plugins","has","model","editor","selection","value","isCollapsed","markInlineFormat","enableCommand","StandardEditingModeEditing","change","afterInit","get","TrackChangesEditing","commands","forceValue","document"];var _x,Tx;_x=Ex,Tx=270,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x0")](){const t=this[Cx("0xf")],e=t[Cx("0xe")],n=t.locale;if(!t[Cx("0xc")][Cx("0xd")](Cx("0x15")))return;const o=t.plugins[Cx("0x1")](Cx("0x2")),s="restrictedEditingException",r=t[Cx("0x3")][Cx("0x1")](s);o[Cx("0x14")](s,((t,n={})=>{const i=e[Cx("0x5")][Cx("0x10")];if(i[Cx("0x12")])return void t(n);const x=void 0!==n[Cx("0x4")]?n[Cx("0x4")]:!r[Cx("0x11")];e[Cx("0x16")]((()=>{const t=Array[Cx("0xa")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x13")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x8")]((t=>{const{data:e}=t;if(e&&e[Cx("0x7")]==s)return e[Cx("0x6")][0][Cx("0x4")]?{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Cx("0x9"))}}))}}const kx=["style:","value","has","every","includes","normalizeConfig","getAttribute","change","markInlineFormat","style.definitions","block","getItems","element","styleName","markBlockFormat","registerDescriptionCallback","getRanges","isCollapsed","afterInit","TrackChangesEditing","get","_getRangesWithClasses","push","name","getAncestors","model","StyleUtils","enableCommand","*Format:* %0","style","plugins","forceValue","locale","toLowerCase","find","getSelectedBlocks","format","commandName","_descriptionFactory","config","modelElements","add","_getStyleDefinition","commandParams","isBlock","document","from","Style","classes"];var Ax,vx;Ax=kx,vx=230,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x21")](){const t=this.editor;if(!t.plugins[Rx("0x11")](Rx("0xd")))return;const e=t.commands[Rx("0x23")](Rx("0x2c")),n=t[Rx("0x2d")][Rx("0x23")](Rx("0x22")),o=t[Rx("0x2f")],s=t[Rx("0x2d")][Rx("0x23")]("DataSchema"),r=t[Rx("0x2d")][Rx("0x23")](Rx("0x29"))[Rx("0x14")](s,t[Rx("0x5")][Rx("0x23")](Rx("0x18")));n[Rx("0x2a")](Rx("0x2c"),((o,{styleName:i})=>{const x=t.model[Rx("0xb")].selection,a=this[Rx("0x8")](i,r);if(!a)return;if(!e.enabledStyles[Rx("0x13")](i))return;if(x[Rx("0x20")]&&!a[Rx("0xa")])return void o({styleName:i});const c=!e[Rx("0x10")].includes(a[Rx("0x26")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x27")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x7")](o);break}}return n}(x[Rx("0x1")](),a[Rx("0x6")]);t[Rx("0x28")][Rx("0x16")]((()=>{for(const t of e)n[Rx("0x1d")](t,{commandName:Rx("0x2c"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0xf")+i})}))}else{let e=Array[Rx("0xc")](x[Rx("0x1f")]());if(!c){const n=Array[Rx("0xc")](s.getDefinitionsForView(a[Rx("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x28")],s,a[Rx("0xe")],n);o[Rx("0x25")](...e)}e=o}t[Rx("0x28")][Rx("0x16")]((()=>{for(const t of e)n[Rx("0x17")](t,{commandName:Rx("0x2c"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x4")][Rx("0x1e")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x3")])return e.commandParams[0][Rx("0x2e")]?{type:Rx("0x2"),content:Yo(o,Rx("0x2b"),e[Rx("0x9")][0][Rx("0x1c")][Rx("0x30")]())}:{type:Rx("0x2"),content:Yo(o,"*Remove format:* %0",e.commandParams[0].styleName.toLowerCase())}}))}_getStyleDefinition(t,e){let n=e[Rx("0x19")][Rx("0x0")]((e=>e[Rx("0x26")]===t));return n||(n=e.inline[Rx("0x0")]((e=>e[Rx("0x26")]===t))),n}[Rx("0x24")](t,e,n,o){const s=[];for(const r of e[Rx("0x1a")]()){const e=r[Rx("0x15")](o);e&&n[Rx("0x12")]((t=>e[Rx("0xe")][Rx("0x13")](t)))&&s[Rx("0x25")](t.createRangeOn(r))}return s}}const Ix=["getAttribute","above","getItems","insertion","detach","forceValue","table","refresh","getSelectionAffectedTableCells","getFirstRange","registerDescriptionCallback","filter","tableCell","ELEMENT_TABLE_WITH_TEXT","type","_acceptFormatSuggestionCallbackFactory","colspan","differ","tableColumn","oldRange","accept","removeTableRow","downcastDispatcher","getChanges","isEqual","fromRange","findAncestor","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","selectTableRow","insertTableRowAbove","rootName","getChildren","suggestion","nodeAfter","ELEMENT_TABLE_ROW","_getCoordsForCells","element","highest","length","get","min","toLowerCase","afterInit","position","MAX_SAFE_INTEGER","_tableSuggestions","*Insert:* %0","writer","toViewElement","setSelection","isIntersectingWithRange","values","enableCommand","hasAttribute","createPositionAt","root","selection","insertTable","tableRow","commands","substr","getCellLocation","end","*Remove:* %0","push","model","getContainedElement","editor","_splitMarkerName","deletion","addClass","TableEditing","nodeBefore","getChangedMarkers","_setupColumnsRowsFixing","$graveyard","registerElementLabel","selectTableColumn","insertTableColumnLeft","TableUtils","startsWith","discard","plugins","last","MIN_SAFE_INTEGER","maxColumn","$textProxy","rowspan","start","change:data","addMarker:suggestion","ELEMENT_TABLE_COLUMN","insertTableColumnRight","isTouching","createRangeIn","_descriptionFactory","getRowIndexes","name","registerCustomCallback","addRange","left","_getSuggestionCoords","_suggestionFactory","minColumn","execute","join","createTableWalker","removeTableColumn","data","markMultiRangeDeletion","createRangeOn","every","document","getColumnIndexes","classes","isInContent","minRow","some","getRanges","enqueueChange","tablePaste","span","ELEMENT_TABLE_ROW_WITH_TEXT","map","isArray","_tablePostFixingSubtypes","registerPostFixer","cell","add","mapper","from","order","change","low","subType","markMultiRangeInsertion","showSuggestionHighlights"];var Lx,wx;Lx=Ix,wx=458,function(t){for(;--t;)Lx.push(Lx.shift())}(++wx);const Nx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[Nx("0x52")]=[Nx("0xf"),Nx("0x70")],this[Nx("0x2")]=new Set}[Nx("0x89")](){const t=this[Nx("0x18")],e=t.model[Nx("0x45")].selection;if(!t.plugins.has(Nx("0x1c")))return;const n=t.locale,o=t[Nx("0x27")].get("TrackChangesEditing"),s=t[Nx("0x27")].get(Nx("0x24"));o[Nx("0x34")][Nx("0x21")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Nx("0x9")](Nx("0xe")),o[Nx("0x9")](Nx("0x7b")),o[Nx("0x9")](Nx("0x22"));for(const n of[Nx("0x7c"),"insertTableRowBelow"]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[Nx("0x16")].change((t=>{n();const i=Nx("0x5f")===r[Nx("0x58")],x=s[Nx("0x66")](e),a=s[Nx("0x35")](x),c=i?a[Nx("0x79")]-1:a[Nx("0x28")]+1,l=x[0][Nx("0x78")](Nx("0x64")),u=s[Nx("0x3f")](l,{startRow:c,endRow:c}),d=Array[Nx("0x57")](u)[Nx("0x50")]((e=>t.createRangeOn(e[Nx("0x54")])));o[Nx("0x5c")](d,"tableRow")}))}))}for(const n of[Nx("0x23"),Nx("0x31")]){const r=t[Nx("0x10")][Nx("0x86")](n);o[Nx("0x9")](n,(n=>{t.model[Nx("0x59")]((t=>{n();const i=Nx("0x39")===r.order,x=s[Nx("0x66")](e),a=s[Nx("0x46")](x),c=i?a[Nx("0x79")]-1:a[Nx("0x28")]+1,l=x[0][Nx("0x78")](Nx("0x64")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Nx("0x57")](u)[Nx("0x50")]((e=>t[Nx("0x43")](e[Nx("0x54")])));o[Nx("0x5c")](d,Nx("0x70"))}))}))}for(const n of[Nx("0x73"),Nx("0x40")]){const r=n[Nx("0x11")](11),i=r[Nx("0x88")](),x=i.substr(0,3)+Nx("0x4e"),a=Nx("0x64")+r,c=Nx("0x87")+r,l="max"+r;o.enableCommand(n,(()=>{t.model[Nx("0x59")]((t=>{const r=s.getSelectionAffectedTableCells(e),u=r[0][Nx("0x78")](Nx("0x64"));let d;if(Nx("0x73")==n){const t=s.getRowIndexes(r);d={startRow:t[Nx("0x79")],endRow:t[Nx("0x28")],includeAllSlots:!0}}else{const t=s[Nx("0x46")](r);d={startColumn:t[Nx("0x79")],endColumn:t[Nx("0x28")],includeAllSlots:!0}}const g=s[Nx("0x3f")](u,d),m=Array[Nx("0x57")](g)[Nx("0x50")]((({cell:t})=>t)),f=Fx(m[Nx("0x69")]((t=>t.hasAttribute(x)))),h=Fx(m.filter((t=>!t.hasAttribute(x))))[Nx("0x50")]((e=>t[Nx("0x43")](e))),p=o[Nx("0x42")](h,a);if(p&&(Nx("0xf")==p[Nx("0x5b")]||"tableColumn"==p[Nx("0x5b")])){const e=this[Nx("0x3a")](p);for(const n of f){const o=t[Nx("0x43")](n),r=s[Nx("0x12")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Nx("0x38")](o)}}}))}))}function r(n){const o=Array[Nx("0x57")](e[Nx("0x4b")]()).map((t=>i.LiveRange[Nx("0x77")](t)));t[Nx("0x16")][Nx("0x59")]((e=>{const s=e.batch;n=n.filter((t=>Nx("0x20")!=t.root[Nx("0x7d")])),e.setSelection(n),t[Nx("0x10")][Nx("0x86")]("removeTableRow")[Nx("0x65")](),t[Nx("0x3d")](Nx("0x73"),{forceDefaultExecution:!0}),t[Nx("0x16")][Nx("0x4c")]((()=>{t[Nx("0x16")][Nx("0x4c")](s,(t=>{const e=o[Nx("0x69")]((t=>Nx("0x20")!=t.root[Nx("0x7d")]));e[Nx("0x85")]>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[Nx("0x16")].change((o=>{const s=Array.from(e[Nx("0x4b")]())[Nx("0x50")]((t=>i.LiveRange[Nx("0x77")](t))),r=[];for(const t of n)for(const e of t[Nx("0x60")]({shallow:!0}))r[Nx("0x15")](e);for(const e of r)Nx("0x20")!=e[Nx("0xc")][Nx("0x7d")]&&(o.setSelection(o[Nx("0xb")](e,0)),t[Nx("0x10")][Nx("0x86")](Nx("0x40"))[Nx("0x65")](),t[Nx("0x3d")](Nx("0x40"),{forceDefaultExecution:!0}));const x=s[Nx("0x69")]((t=>Nx("0x20")!=t[Nx("0xc")][Nx("0x7d")]));x[Nx("0x85")]>0&&o[Nx("0x6")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Nx("0x44")]((e=>t[Nx("0x4a")]((t=>t.end[Nx("0x76")](e[Nx("0x2d")])||e[Nx("0x13")][Nx("0x76")](t[Nx("0x2d")])))))}function l(t,e){return t.some((t=>e[Nx("0x4a")]((e=>t[Nx("0x13")][Nx("0x32")](e[Nx("0x2d")])))))}t.data[Nx("0x74")].on(Nx("0x2f"),((t,e,n)=>{if(!n.options[Nx("0x5d")])return;const o=e.item;if(!o)return;const s=n[Nx("0x56")][Nx("0x5")](o);function r(t){return Array[Nx("0x51")](t)?t:[t]}s&&"tableCell"===o[Nx("0x36")]&&(0,x.setHighlightHandling)(s,n[Nx("0x4")],((t,e,n)=>n[Nx("0x1b")](r(e[Nx("0x47")]),t)),((t,e,n)=>n.removeClass(r(e.classes),t)))}),{priority:Nx("0x84")}),o._descriptionFactory[Nx("0x68")]((t=>{if(Nx("0x61")!=t[Nx("0x6c")]&&Nx("0x1a")!=t[Nx("0x6c")])return;const e=t[Nx("0x17")]();if(null!=e&&e.is(Nx("0x83"),"table")){if(Nx("0x61")==t[Nx("0x6c")]){const e=t[Nx("0x60")]()[Nx("0x69")]((t=>t.is(Nx("0x2b"))))[Nx("0x50")]((t=>t[Nx("0x41")]));if(e[Nx("0x85")])return{type:"insertion",content:Yo(n,Nx("0x3"),Yo(n,Nx("0x6b"),'"'+e[Nx("0x3e")](" ")+'"'))}}if("deletion"==t[Nx("0x6c")]){const e=t[Nx("0x60")]().filter((t=>t.is("$textProxy"))).map((t=>t[Nx("0x41")]));if(e[Nx("0x85")])return{type:Nx("0x1a"),content:Yo(n,Nx("0x14"),Yo(n,Nx("0x6b"),'"'+e[Nx("0x3e")](" ")+'"'))}}}})),o[Nx("0x34")][Nx("0x68")]((t=>{if(Nx("0xf")==t.subType){const e=t[Nx("0x60")]()[Nx("0x69")]((t=>t.is(Nx("0x2b"))))[Nx("0x50")]((t=>t[Nx("0x41")])),o=this[Nx("0x3a")](t),s=o.maxRow-o[Nx("0x49")]+1;if(Nx("0x61")==t.type)return e[Nx("0x85")]?{type:Nx("0x61"),content:Yo(n,Nx("0x3"),Yo(n,Nx("0x4f"),[s,'"'+e[Nx("0x3e")](" ")+'"']))}:{type:Nx("0x61"),content:Yo(n,Nx("0x3"),Yo(n,Nx("0x81"),s))};if(Nx("0x1a")==t[Nx("0x6c")])return e[Nx("0x85")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,Nx("0x4f"),[s,'"'+e[Nx("0x3e")](" ")+'"']))}:{type:Nx("0x1a"),content:Yo(n,Nx("0x14"),Yo(n,Nx("0x81"),s))}}if("tableColumn"==t[Nx("0x5b")]){const e=t.getItems()[Nx("0x69")]((t=>t.is(Nx("0x2b"))))[Nx("0x50")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Nx("0x2a")]-o[Nx("0x3c")]+1;if(Nx("0x61")==t.type)return e[Nx("0x85")]?{type:Nx("0x61"),content:Yo(n,Nx("0x3"),Yo(n,Nx("0x7a"),[s,'"'+e[Nx("0x3e")](" ")+'"']))}:{type:Nx("0x61"),content:Yo(n,Nx("0x3"),Yo(n,Nx("0x30"),s))};if("deletion"==t[Nx("0x6c")])return e[Nx("0x85")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Nx("0x3e")](" ")+'"']))}:{type:Nx("0x1a"),content:Yo(n,Nx("0x14"),Yo(n,Nx("0x30"),s))}}})),o[Nx("0x3b")][Nx("0x37")](Nx("0x61"),Nx("0xf"),Nx("0x26"),r),o[Nx("0x3b")].registerCustomCallback(Nx("0x1a"),Nx("0xf"),Nx("0x72"),r),o[Nx("0x3b")][Nx("0x37")](Nx("0x61"),Nx("0x70"),Nx("0x26"),a),o[Nx("0x3b")][Nx("0x37")](Nx("0x1a"),"tableColumn",Nx("0x72"),a),o[Nx("0x3b")][Nx("0x37")](Nx("0x61"),Nx("0x70"),Nx("0x3e"),c),o[Nx("0x3b")][Nx("0x37")](Nx("0x1a"),Nx("0x70"),"join",c),o[Nx("0x3b")].registerCustomCallback("insertion",Nx("0xf"),Nx("0x3e"),l),o[Nx("0x3b")][Nx("0x37")](Nx("0x1a"),Nx("0xf"),Nx("0x3e"),l)}[Nx("0x6d")](){const t=this.editor,e=t[Nx("0x16")][Nx("0x45")][Nx("0xd")];return(n,o)=>{t[Nx("0x16")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Nx("0x13")][Nx("0x1d")];x&&x[0]&&!1===x[0][Nx("0x63")]&&(a=n[0][Nx("0x2d")][Nx("0x80")]);const c=s[Nx("0x33")](a);if(Nx("0x20")==c.root[Nx("0x7d")])return;const l=Array[Nx("0x57")](e.getRanges())[Nx("0x50")]((t=>i.LiveRange[Nx("0x77")](t)));s[Nx("0x6")](c),t[Nx("0x10")].get(r).refresh(),x[Nx("0x15")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Nx("0x69")]((t=>Nx("0x20")!=t[Nx("0xc")][Nx("0x7d")]));u.length>0&&s[Nx("0x6")](u);for(const t of l)t[Nx("0x62")]()}))}}_getCoordsForCells(t){const e=this[Nx("0x18")].plugins[Nx("0x86")](Nx("0x24"));let n=Number[Nx("0x1")],o=Number[Nx("0x29")],s=Number[Nx("0x1")],r=Number[Nx("0x29")];for(const i of t){if(Nx("0x20")==i.root.rootName)continue;const{row:t,column:x}=e[Nx("0x12")](i),a=i.hasAttribute(Nx("0x2c"))?i[Nx("0x5e")](Nx("0x2c"))-1:0,c=i[Nx("0xa")](Nx("0x6e"))?i[Nx("0x5e")](Nx("0x6e"))-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}}[Nx("0x1f")](){const t=this[Nx("0x18")],e=t[Nx("0x27")][Nx("0x86")]("TrackChangesEditing"),n=t.plugins[Nx("0x86")]("TableUtils");t[Nx("0x16")][Nx("0x45")].on(Nx("0x2e"),(()=>{const n=Array[Nx("0x57")](t[Nx("0x16")][Nx("0x45")].differ[Nx("0x1e")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Nx("0x19")](t);if(Nx("0x7f")!=n)continue;if(null!=o[Nx("0x71")])continue;const i=e.getSuggestion(s);this._tablePostFixingSubtypes.includes(r)&&this[Nx("0x2")][Nx("0x55")](i)}}),{priority:Nx("0x5a")});const o=(t,e)=>{let o=!1;const s=e[Nx("0x43")](t),r=t.findAncestor(Nx("0x64")),i=n[Nx("0x12")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n[Nx("0x25")](Nx("0x4d")),a=n.substr(x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Nx("0x4e"),u=Nx("0x87")+a,d="max"+a;if(!e[Nx("0x48")])continue;if(r!=e[Nx("0x67")]().start[Nx("0x78")](Nx("0x64")))continue;if(e[Nx("0x7")](s))continue;const g=t[Nx("0xa")](l)?t[Nx("0x5e")](l)-1:0,m=this[Nx("0x3a")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Nx("0x38")](s),o=!0)}return o};t[Nx("0x16")][Nx("0x45")][Nx("0x53")]((e=>{let n=!1;for(const s of t[Nx("0x16")].document[Nx("0x6f")][Nx("0x75")]())if("insert"==s[Nx("0x6c")])if("tableRow"==s[Nx("0x36")])for(const t of s[Nx("0x0")].nodeAfter[Nx("0x7e")]())n=n||o(t,e);else Nx("0x6a")==s[Nx("0x36")]&&(n=n||o(s[Nx("0x0")][Nx("0x80")],e));return n}))}[Nx("0x3a")](t){return this[Nx("0x82")](t[Nx("0x4b")]()[Nx("0x50")]((t=>t[Nx("0x2d")][Nx("0x80")])))}}function Fx(t){return Array.from(new Set(t)[Nx("0x8")]())}const Ox=["mergeTableCellRight","model","afterInit","mergeTableCells","getSuggestions","_areMergableCells","format","editor","value","registerCustomCallback","execute","add","splitTableCellHorizontally","createRangeOn","_suggestionFactory","root","document","_areSelectedCellsMergable","rootName","from","createTableWalker","TableUtils","push","set:isEnabled","TrackChangesEditing","horizontally","getRanges","map","has","getSelectionAffectedTableCells","plugins","isInContent","_tablePostFixingSubtypes","subType","cell","markMultiRangeBlockFormat","enableCommand","findAncestor","get","requires","getCellLocation","isEnabled","fromRange","getFirstPosition","registerDescriptionCallback","element","size","trackChanges","find","table","_descriptionFactory","mergeTableCellDown","mergeTableCellLeft","stop","containsRange","setSelection","tableCell","*Split cell:* vertically","insertion","commandName","detach","mergeTableCellUp","splitTableCellVertically","getAncestors","*Merge cells*","length","selection","type","formatBlock","_acceptFormatSuggestionCallbackFactory","accept","author","change","$graveyard","commands","deletion"];var Px,Dx;Px=Ox,Dx=200,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Ox[t-=0]};class jx extends t.Plugin{static get[Bx("0x43")](){return[Mx]}[Bx("0x1e")](){const t=this.editor,e=t[Bx("0x1d")][Bx("0x2c")][Bx("0x12")],n=t.locale;if(!t[Bx("0x3a")].has("TableEditing"))return;const o=t.plugins[Bx("0x42")](Bx("0x34")),s=t.plugins[Bx("0x42")](Bx("0x31")),r=t[Bx("0x3a")][Bx("0x42")](Mx);r[Bx("0x3c")][Bx("0x32")](Bx("0x1f")),o[Bx("0x40")](Bx("0x1f"),(()=>{const e=s[Bx("0x39")](t[Bx("0x1d")].document[Bx("0x12")]);t.model[Bx("0x18")]((()=>{o[Bx("0x3f")](e,{commandName:Bx("0x1f"),commandParams:[]},[],Bx("0x1f"))}))})),t[Bx("0x1a")][Bx("0x42")](Bx("0x1f")).on(Bx("0x26"),((e,n)=>{t[Bx("0x1a")].get(Bx("0x4b")).value&&(n[Bx("0x11")]>0&&n[n[Bx("0x11")]-1]&&n[n.length-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this._areSelectedCellsMergable()||e[Bx("0x5")]())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x1c"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x1a")][Bx("0x42")](e);o[Bx("0x40")](e,(()=>{const e=t[Bx("0x1d")].document[Bx("0x12")][Bx("0x47")]()[Bx("0xf")]().find((t=>t.is(Bx("0x49"),Bx("0x8")))),s=n[Bx("0x24")];t.model.change((()=>{o[Bx("0x3f")]([e,s],{commandName:Bx("0x1f"),commandParams:[]},[],Bx("0x1f"))}))}))}for(const e of[Bx("0xe"),Bx("0x28")]){const n=t.commands[Bx("0x42")](e);o[Bx("0x40")](e,(()=>{const r=s[Bx("0x39")](t.model[Bx("0x2c")][Bx("0x12")])[0],i=r[Bx("0x41")](Bx("0x1")),{column:x,row:a}=s[Bx("0x44")](r);let c=[];if(Bx("0x35")==n.direction){const t=s[Bx("0x30")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x2f")](t)[Bx("0x37")]((t=>t[Bx("0x3e")]))}else{const t=s[Bx("0x30")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2f")](t)[Bx("0x37")]((t=>t.cell))}t.model[Bx("0x18")]((t=>{o.markBlockFormat(t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x48")]((t=>{const{data:e}=t;if(e)return Bx("0x1f")==e[Bx("0xb")]?{type:Bx("0x22"),content:Yo(n,Bx("0x10"))}:void 0})),o[Bx("0x2")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0xe")==e[Bx("0xb")]?{type:Bx("0x22"),content:Yo(n,Bx("0x9"))}:Bx("0x28")==e[Bx("0xb")]?{type:Bx("0x22"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x15")]();for(const t of[Bx("0xd"),Bx("0x1c"),Bx("0x3"),Bx("0x4")])o[Bx("0x2a")][Bx("0x25")](Bx("0x14"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x28")])o[Bx("0x2a")][Bx("0x25")]("formatBlock",t,Bx("0x16"),x);o._suggestionFactory.registerCustomCallback(Bx("0x14"),"mergeTableCells",Bx("0x16"),(n=>{t[Bx("0x1d")].change((o=>{const s=Array[Bx("0x2f")](e.getRanges()).map((t=>i.LiveRange[Bx("0x46")](t)));o[Bx("0x7")](n),t.commands.get("mergeTableCells").refresh(),t[Bx("0x26")](Bx("0x1f"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x19")!=t[Bx("0x2b")][Bx("0x2e")]));r[Bx("0x11")]>0&&o[Bx("0x7")](r);for(const t of s)t[Bx("0xc")]()}))}));for(const e of[Bx("0xd"),Bx("0x3"),Bx("0x4"),Bx("0x1c")]){const n=t[Bx("0x1a")][Bx("0x42")](e);n.on(Bx("0x33"),((e,o,s)=>{if(s){const o=t[Bx("0x1d")][Bx("0x2c")][Bx("0x12")].getFirstPosition()[Bx("0xf")]()[Bx("0x0")]((t=>t.is("element",Bx("0x8"))));this._areMergableCells(n[Bx("0x24")],o)||(e.return=!1,e[Bx("0x5")]())}}),{priority:"low"})}}[Bx("0x2d")](){const t=this[Bx("0x23")][Bx("0x1a")][Bx("0x42")](Bx("0x1f")),e=this[Bx("0x23")].plugins[Bx("0x42")](Bx("0x31"));if(!t[Bx("0x45")])return!1;const n=e[Bx("0x39")](this[Bx("0x23")][Bx("0x1d")][Bx("0x2c")][Bx("0x12")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x21")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x23")].plugins[Bx("0x42")](Bx("0x34")),o=this[Bx("0x23")][Bx("0x1d")][Bx("0x29")](t),s=this.editor[Bx("0x1d")][Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x20")]())if((Bx("0xa")==t[Bx("0x13")]||Bx("0x1b")==t[Bx("0x13")]||Bx("0x1f")==t[Bx("0x3d")])&&t[Bx("0x3b")])for(const e of t[Bx("0x36")]())e[Bx("0x6")](o,!0)&&r[Bx("0x27")](t.type+":"+t.author.id),e[Bx("0x6")](s,!0)&&i.add(t[Bx("0x13")]+":"+t[Bx("0x17")].id);if(r.size!=i[Bx("0x4a")])return!1;for(const t of r)if(!i[Bx("0x38")](t))return!1;return!0}}const Ux=["removeClass","table","TableEditing","addMarker:suggestion","setAttribute","ck-suggestion-marker-","first","FORMAT_HEADER_ROW","createPositionAfter","commandName","getSuggestion","FORMAT_REGULAR_COLUMN","plugins","_acceptFormatSuggestionCallbackFactory","headingRows","_descriptionFactory","name","change","editor","selection","findAncestor","addClass","childCount","_splitMarkerName","getCellLocation","getSelectionAffectedTableCells","writer","getChild","end","item","formatBlock","get","consumable","options","downcastDispatcher","ck-suggestion-marker--active","cell","activeMarkers","editing","locale","nodeBefore","data-suggestion","enableCommand","unbindElementFromMarkerName","markBlockFormat","mapper","commandParams","highest","data","TrackChangesEditing","getColumnIndexes","*Format:* %0","forceValue","getRowIndexes","isBefore","markerRange","accept","commands","requires","createPositionBefore","createTableWalker","index","includes","createRange","setTableRowHeader","has","FORMAT_REGULAR_ROW","getAttribute","TableUtils","removeAttribute","parent","value","nodeAfter","showSuggestionHighlights","_suggestionFactory","headingColumns","setTableColumnHeader","document","toViewElement","markerName","model"];var Gx,Hx;Gx=Ux,Hx=479,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("0x41")](){return[Mx]}afterInit(){const t=this[zx("0x19")];if(!t[zx("0x13")][zx("0x48")](zx("0x9")))return;const e=t[zx("0x2e")],n=t[zx("0x13")][zx("0x26")](zx("0x38")),o=t[zx("0x13")][zx("0x26")](zx("0x4b")),s=t[zx("0x13")][zx("0x26")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x1e")](r.markerName),c=n.getSuggestion(a);if(!c[zx("0x37")]||zx("0x2")!=c.data[zx("0x10")])return;if(r[zx("0x24")])return void s.stop();if(!i[zx("0x27")].consume(r[zx("0x3e")],s[zx("0x17")]))return;const l=r.markerRange.start[zx("0x4f")],u=r.markerRange[zx("0x23")][zx("0x2f")],d=l[zx("0x4d")][zx("0x4d")],{column:g}=o[zx("0x1f")](l),{column:m}=o[zx("0x1f")](u);for(let s=g;s<=m;s++){const c=o[zx("0x43")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x2b")],c=i[zx("0x34")][zx("0x4")](s);i[zx("0x21")][zx("0x1c")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x21")][zx("0xb")]("data-suggestion",a,c),i[zx("0x34")].bindElementToMarker(c,r[zx("0x5")]),t&&(n[zx("0x2c")][zx("0x45")](r[zx("0x5")])?i[zx("0x21")].addClass(zx("0x2a"),c):i[zx("0x21")][zx("0x7")](zx("0x2a"),c))}}}}n.enableCommand(zx("0x47"),((e,s)=>{const r=o[zx("0x20")](t[zx("0x6")][zx("0x3")][zx("0x1a")]),i=o[zx("0x3c")](r),x=r[0][zx("0x1b")](zx("0x8")),a=x.getAttribute(zx("0x15"))||0,c=s&&null!==s[zx("0x3b")]?s[zx("0x3b")]:!t[zx("0x40")][zx("0x26")](zx("0x47"))[zx("0x4e")],l=c?i.last:i[zx("0xd")],u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u.index<e[zx("0x44")])return;d=t[zx("0x6")][zx("0x46")](t[zx("0x6")][zx("0x42")](e[zx("0x22")](0)),t[zx("0x6")][zx("0xf")](u[zx("0x22")](u[zx("0x1d")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t[zx("0x6")].createRange(t[zx("0x6")][zx("0x42")](u[zx("0x22")](0)),t[zx("0x6")].createPositionAfter(e[zx("0x22")](e[zx("0x1d")]-1)))}t[zx("0x6")][zx("0x18")]((()=>{n.markBlockFormat(d,{commandName:zx("0x47"),commandParams:[{forceValue:c}]},[],zx("0x47"))}))})),n[zx("0x31")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x13")].get("TableUtils"),r=s[zx("0x20")](t[zx("0x6")].document[zx("0x1a")]),i=s[zx("0x39")](r),x=r[0][zx("0x1b")](zx("0x8")),a=x[zx("0x4a")](zx("0x1"))||0,c=o&&null!==o[zx("0x3b")]?o[zx("0x3b")]:!t[zx("0x40")].get("setTableColumnHeader")[zx("0x4e")];let l;const u=x[zx("0x22")](0),d=c?i.last:i[zx("0xd")],g=s[zx("0x43")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x2b")];if(c){const e=u.getChild(a);if(m[zx("0x3d")](e))return;l=t[zx("0x6")][zx("0x46")](t[zx("0x6")][zx("0x42")](e),t.model.createPositionAfter(m))}else{const e=u.getChild(a-1);if(!e)return;l=t.model[zx("0x46")](t[zx("0x6")].createPositionBefore(m),t[zx("0x6")].createPositionAfter(e))}t[zx("0x6")][zx("0x18")]((()=>{n[zx("0x33")](l,{commandName:zx("0x2"),commandParams:[{forceValue:c}]},[],zx("0x2"))}))})),t[zx("0x2d")][zx("0x29")].on(zx("0xa"),r(),{priority:zx("0x36")}),t[zx("0x37")].downcastDispatcher.on(zx("0xa"),((t,e,n)=>{n[zx("0x28")][zx("0x50")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x36")}),t[zx("0x2d")][zx("0x29")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[zx("0x1e")](e[zx("0x5")]),i=n[zx("0x11")](r);if(!i.data||zx("0x2")!=i[zx("0x37")][zx("0x10")])return;const x=o[zx("0x34")].markerNameToElements(e[zx("0x5")]);if(x)for(const t of x)o.writer[zx("0x7")](zx("0xc")+s,t),o[zx("0x21")].removeClass(zx("0x2a"),t),o[zx("0x21")][zx("0x4c")](zx("0x30"),t),o.mapper[zx("0x32")](t,e.markerName)}),{priority:zx("0x36")}),n[zx("0x16")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x47")==n[zx("0x10")]){const t=n[zx("0x35")][0][zx("0x3b")];return o(Yo(e,zx(t?"0xe":"0x49")))}if(zx("0x2")==n[zx("0x10")]){const t=n.commandParams[0][zx("0x3b")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x12")))}}function o(t){return{type:"format",content:Yo(e,zx("0x3a"),t)}}}));const i=s[zx("0x14")]();n[zx("0x0")].registerCustomCallback(zx("0x25"),zx("0x47"),"accept",i),n[zx("0x0")].registerCustomCallback(zx("0x25"),zx("0x2"),zx("0x3f"),i)}}const Vx=["join","reduce","tableCellVerticalAlignment","_splitMarkerName","getSuggestions","markers","createRange","markMultiRangeDeletion","cell","paragraph","getRanges","map","tableCellBorderColor","nextSibling","setAttribute","commands","deletion","newRange","getRows","remove","findAncestor","createTableWalker","subType","row","trackChanges","requires","insert","tablePasteCell","isEmpty","insertRows","value","last","attributes","cells","registerPostFixer","first","content","showSuggestionHighlights","element","high","filter","unwrap","tablePaste","options","hasSuggestion","*Replace table cells*","TableUtils","suggestion","Users","suggestionUnloaded","getChangedMarkers","includes","$graveyard","columnInsertionIndexes","find","entries","rootName","getChanges","endRow","table","isEqual","type","column","position","endColumn","differ","getColumns","has","clipboardOutput","plugins","activeMarkers","deletionRanges","discard","from","document","insertColumns","selection","columnInsertionRanges","batch","formatBlock","author","suggestionLoaded","getTableIfOnlyTableInContent","getSelectionAffectedTableCells","end","markMultiRangeInsertion","markerToHighlight","_replaceTableSlotCell","rowInsertionIndexes","_isForcedDefaultExecutionBlock","change","insertion","createRangeOn","getChild","_getCoordsForCells","startsWith","removeRows","afterInit","containsRange","getRange","next","markMultiRangeBlockFormat","getChildren","fromEntries","insertionRanges","tableCellPadding","redo","registerCustomCallback","low","tableCellBackgroundColor","_suggestionFactory","getColumnIndexes","editing","ck-suggestion-marker--active","previous","push","view","getAllAdjacentSuggestions","getSuggestion","stop","listenTo","createRangeIn","_tablePostFixingSubtypes","name","suggestion:formatBlock:tablePasteCell","columns","tablePasteColumn","markerAttributes","tableCellBorderWidth","documentSelection","tableCellSuggestion","get","markerName","editor","TableClipboard","forceDefaultExecution","tablePasteRow","conversion","return","set","isInContent","tableCell","previousSibling","wrap","_descriptionFactory","rowInsertionRanges","setAttributes","dataDowncast","oldRange","getContainedElement","fill","add","nodeAfter","getShiftedBy","start","suggestion-td","updateMarker","model","getMarkers","length","move","for","ck-suggestion-marker","accept","tablePasteChainId","some","getAttributes","schema"];var Kx,qx;Kx=Vx,qx=490,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x8e"),Xx("0x1a"),"tableCellBorderStyle","tableCellHorizontalAlignment",Xx("0x10"),Xx("0x7b"),Xx("0x77")],Jx=Object.fromEntries($x[Xx("0x19")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x27")](){return[Mx]}[Xx("0x6f")](){const t=this[Xx("0x93")];if(!t[Xx("0x53")][Xx("0x51")]("TableClipboard"))return;const n=t[Xx("0x53")][Xx("0x91")]("TrackChangesEditing"),o=t.plugins.get(Xx("0x3c")),s=t[Xx("0x53")][Xx("0x91")](Mx),r=t[Xx("0x53")][Xx("0x91")]("TableClipboard");s[Xx("0x88")].push("tablePasteRow",Xx("0x8c")),t[Xx("0x3")][Xx("0xd")].register(Xx("0x90"),{allowIn:Xx("0x9b"),allowContentOf:Xx("0x9b"),isLimit:!0}),t[Xx("0x97")].elementToElement({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t[Xx("0x3")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x5")]-1];l&&l[Xx("0x95")]||n[Xx("0x67")]||this[Xx("0x93")][Xx("0x1d")][Xx("0x91")](Xx("0x26"))[Xx("0x2c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x8f")))return!1;const r=s[Xx("0x60")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x61")](n[Xx("0x58")][Xx("0x5a")]);if(!i[Xx("0x5")])return!1;const x=i[0][Xx("0x22")](Xx("0x49")),a=o.getRowIndexes(i),c=o[Xx("0x7d")](i),l={startRow:a[Xx("0x31")],endRow:a.last,startColumn:c[Xx("0x31")],endColumn:c[Xx("0x2d")]};return 1==i[Xx("0x5")]&&(l[Xx("0x48")]+=o[Xx("0x20")](r)-1,l[Xx("0x4e")]+=o[Xx("0x50")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x85")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Xx("0x68")]((()=>{t[Xx("0x3")].insertContent(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,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x5")]&&n[Xx("0x63")](r,Xx("0x8c"),{tablePasteChainId:o}),a[Xx("0x5")]&&n.markMultiRangeInsertion(a,Xx("0x38"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x5")]&&n[Xx("0x15")](c,Xx("0x38"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Xx("0x73")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x29"),{tablePasteChainId:o});if(u){const e=u[Xx("0x4")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x6a")](o),i=e[Xx("0x44")]((t=>t[Xx("0x71")]()[Xx("0x4a")](r)));i&&n[Xx("0x81")]([i.name,s])}n[Xx("0x5")]&&u[Xx("0x1c")](Xx("0x8d"),Object[Xx("0x75")](n))}i=null})))}),{priority:e.priorities[Xx("0x35")]+10}),t[Xx("0x53")][Xx("0x91")](Xx("0x94")).on(Xx("0x65"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x85")]();const r=n[Xx("0x16")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x98")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x21")](r[Xx("0x6b")](0));for(const t of Array[Xx("0x57")](x[Xx("0x74")]()))s.insert(t,r,Xx("0x62"));const t=i[Xx("0x66")][Xx("0x41")](n[Xx("0x25")]),e=i[Xx("0x43")][Xx("0x41")](n[Xx("0x4c")]);t||e||(l=s[Xx("0x87")](r))}else c&&!a&&(u=s[Xx("0x87")](r));else{const t=s.createElement(Xx("0x90")),e=s.createElement("tableCellSuggestion");s[Xx("0x9d")](s[Xx("0x87")](r),e),s[Xx("0x28")](t,r,0);for(const e of Array.from(x[Xx("0x74")]()))s[Xx("0x28")](e,t,"end");l=s[Xx("0x6a")](t),u=s[Xx("0x6a")](e)}const d=Array.from(x[Xx("0xc")]())[Xx("0x36")]((([t])=>$x[Xx("0x41")](t)));i[Xx("0x2f")][Xx("0x81")]({element:r,attributes:d[Xx("0x5")]?Object[Xx("0x75")](d):null}),l&&i[Xx("0x76")][Xx("0x81")](l),u&&i[Xx("0x55")].push(u)}),{priority:Xx("0x35")}),o.on(Xx("0x59"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x8b")]||1;i[Xx("0x43")]=new Array(a)[Xx("0xa4")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x23")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5b")][Xx("0x81")](t[Xx("0x3")][Xx("0x6a")](e))}),{priority:Xx("0x7a")}),o.on(Xx("0x2b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x66")]=new Array(a)[Xx("0xa4")](x)[Xx("0x19")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x23")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x9f")].push(t.model[Xx("0x6a")](e))}),{priority:Xx("0x7a")}),n[Xx("0x9e")].registerDescriptionCallback((e=>{if(e[Xx("0x24")]&&e.subType[Xx("0x6d")](Xx("0x38")))return e[Xx("0x80")]?{}:{type:"insertion",content:Yo(t.locale,Xx("0x3b"))}}));const x=()=>{};for(const t of[Xx("0x38"),"tablePasteColumn","tablePasteRow","tablePasteCell"])n[Xx("0x7c")][Xx("0x79")](Xx("0x69"),t,Xx("0xe"),x),n[Xx("0x7c")][Xx("0x79")](Xx("0x1e"),t,"join",x);n._suggestionFactory[Xx("0x79")]("formatBlock",Xx("0x29"),Xx("0x56"),x),n[Xx("0x7c")].registerCustomCallback(Xx("0x5d"),Xx("0x29"),Xx("0x9"),((e,n,o)=>{const s=e[Xx("0x19")]((t=>t[Xx("0xa3")]()))[Xx("0x36")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x99")](t,e);else if(o&&o[Xx("0x8d")])for(const[e,n]of Object[Xx("0x45")](o[Xx("0x8d")])){const o=t[Xx("0x3")][Xx("0x13")][Xx("0x91")](e),s=o?o[Xx("0x71")]().getContainedElement():null;s&&r.set(s,n)}t[Xx("0x3")][Xx("0x68")]((t=>{for(const[e,n]of r)t[Xx("0xa0")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x7c")][Xx("0x79")](e,Xx("0x38"),o,((s,r,i)=>{t.model[Xx("0x68")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x0")][Xx("0xa6")];e.is(Xx("0x34"),Xx("0x90"))&&x.push(e)}n[Xx("0x7c")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x42")!=e.root[Xx("0x46")]&&t[Xx("0x37")](e)}))}))};a("insertion",Xx("0x9")),a(Xx("0x69"),Xx("0x56")),a("deletion",Xx("0x9")),a(Xx("0x1e"),Xx("0x56")),n[Xx("0x7c")].registerCustomCallback(Xx("0x69"),Xx("0x96"),Xx("0x56"),(t=>{const e=t.map((t=>t[Xx("0xa3")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s[Xx("0x6c")](e);o[Xx("0x6e")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x79")](Xx("0x69"),Xx("0x8c"),"discard",(t=>{const e=t.map((t=>t[Xx("0xa3")]())),n=e[0].findAncestor(Xx("0x49")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x24")]||!e[Xx("0x24")][Xx("0x6d")](Xx("0x38")))return;const o=e[Xx("0x2e")][Xx("0xa")],s=n[Xx("0x12")]()[Xx("0x36")]((t=>t.isInContent&&t[Xx("0x2e")]&&t[Xx("0x2e")][Xx("0xa")]==o));s[Xx("0x5")]&&e[Xx("0x83")]().length!=s.length&&s[Xx("0xf")](((t,e)=>(t[Xx("0x72")]=e,e[Xx("0x80")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x11")](t[Xx("0x92")]),s=[Xx("0x8"),"ck-suggestion-marker-insertion"],r=n[Xx("0x54")][Xx("0x41")](t[Xx("0x92")]);return r&&s[Xx("0x81")](Xx("0x7f")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x5f"),c,{priority:"high"}),n.on(Xx("0x3f"),c,{priority:Xx("0x35")}),t.model[Xx("0x58")][Xx("0x30")]((()=>{let e=!1;const o=Array[Xx("0x57")](t[Xx("0x3")].document.differ.getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x11")](s);if(Xx("0x3d")!=o||Xx("0x1e")!=i||r[Xx("0xa2")])continue;if(!n[Xx("0x3a")](x))continue;const a=n[Xx("0x84")](x)[Xx("0x18")](),c=t[Xx("0x53")].get(Xx("0x3e")).me;for(const t of n[Xx("0x12")]())if(t[Xx("0x9a")]&&t[Xx("0x5e")]==c&&Xx("0x5d")==t[Xx("0x4b")]&&"tablePasteCell"==t[Xx("0x24")]&&t[Xx("0x18")]().every((t=>a[Xx("0xb")]((e=>e[Xx("0x70")](t,!0))))))for(const n of t[Xx("0x83")]())n[Xx("0x9a")]&&(n[Xx("0x56")](),e=!0)}return e})),t[Xx("0x3")][Xx("0x58")][Xx("0x30")]((e=>{const o=t[Xx("0x1d")][Xx("0x91")](Xx("0x78"));if(!o||!o._createdBatches[Xx("0x51")](e[Xx("0x5c")]))return!1;let s=!1;const r=t[Xx("0x53")][Xx("0x91")](Xx("0x3e")).me,i=t[Xx("0x3")][Xx("0x58")][Xx("0x4f")][Xx("0x47")](),x=Array.from(t[Xx("0x3")].document[Xx("0x4f")][Xx("0x40")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x11")](t);return"suggestion"==o&&Xx("0x38")==s&&i==r.id&&!e[Xx("0xa2")]}));for(const t of i){if(Xx("0x28")!=t[Xx("0x4b")]||"tableCellSuggestion"!=t[Xx("0x89")]||1!=t[Xx("0x5")])continue;const n=e[Xx("0x14")](t[Xx("0x4d")],t.position[Xx("0xa7")](1));if(!x[Xx("0x44")]((({data:t})=>t[Xx("0x1f")][Xx("0x4a")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x70")](o[Xx("0x1f")])){e[Xx("0x2")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x3")][Xx("0x58")][Xx("0x30")]((e=>{let o=!1;const s=t[Xx("0x53")][Xx("0x91")]("Users").me,r=n[Xx("0x12")]()[Xx("0x36")]((t=>t[Xx("0x9a")]&&t[Xx("0x5e")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x38")==t[Xx("0x24")])for(const e of t[Xx("0x4")]()){const n=e[Xx("0x71")]()[Xx("0xa3")]();if(n)if(n.is(Xx("0x34"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e.name),i[Xx("0xa5")](n),o=!0;const s=n[Xx("0x1b")],r=n[Xx("0x9c")],a=s&&s.is(Xx("0x34"),"tableCellSuggestion"),c=r&&r.is(Xx("0x34"),Xx("0x90"));a&&!i.has(s)&&x[Xx("0xa5")](s),c&&!i[Xx("0x51")](r)&&x.add(r)}else n.is(Xx("0x34"),Xx("0x17"))&&n[Xx("0x2a")]&&(t.removeMarker(e[Xx("0x89")]),o=!0)}else if(Xx("0x29")==t[Xx("0x24")]){if(!t[Xx("0x2e")]||!t[Xx("0x2e")][Xx("0xa")])continue;const e=t[Xx("0x2e")][Xx("0x8d")];if(e&&Object.keys(e)[Xx("0x5")])continue;const n=t[Xx("0x2e")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[Xx("0x24")]&&e[Xx("0x24")][Xx("0x6d")](Xx("0x38"))){if(!e[Xx("0x2e")][Xx("0xa")]){i=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x21")](t);for(const t of x)e[Xx("0x37")](t);return o})),t[Xx("0x97")][Xx("0x7")]("editingDowncast")[Xx("0x64")]({model:Xx("0x8a"),view:(t,e)=>l(t),converterPriority:Xx("0x35")}),t.conversion[Xx("0x7")](Xx("0xa1"))[Xx("0x64")]({model:Xx("0x8a"),view:(t,e)=>e[Xx("0x39")][Xx("0x33")]?l(t,!1):null,converterPriority:Xx("0x35")});const u=t[Xx("0x7e")][Xx("0x82")];this[Xx("0x86")](u[Xx("0x58")],Xx("0x52"),((t,e)=>{const n=[];for(const t of u[Xx("0x87")](e[Xx("0x32")]).getItems())t.is(Xx("0x34"),Xx("0x1"))&&n[Xx("0x81")](t);u[Xx("0x68")]((t=>{for(const e of n)t[Xx("0x6")](t[Xx("0x87")](e),t.createPositionBefore(e)),t[Xx("0x21")](e)}))}))}}function Zx(t){if(t[Xx("0x2a")])return!0;const e=t[Xx("0x6b")](0);return e.is(Xx("0x34"),Xx("0x17"))&&e[Xx("0x2a")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x23")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["bind","*Format:* resize table","locale","selection","_suggestionFactory","get","editor","commandParams","document","plugins","getAttribute","accept","model","format","Users","TrackChangesEditing","registerCustomCallback","handleSuggestionDescription","handleResizeTableWidthCommand","markBlockFormat","afterInit","resizeTableWidth","resizeColumnWidths","getTableColumnsWidths","tableWidth","enableCommand","author","change","formatBlock","TableColumnResizeEditing","columnWidths","subType","table","getSelectedElement","data","discard","resizeTable","formatGroupId","registerDescriptionCallback","getSuggestionCallback"];var ea,na;ea=ta,na=129,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0xb")](){if(!this[oa("0x25")][oa("0x0")].has(oa("0x14")))return;const t=this.editor[oa("0x0")].get(oa("0x6"));t.enableCommand(oa("0xc"),this[oa("0x9")].bind(this)),t[oa("0x10")](oa("0xd"),this[oa("0x9")].bind(this)),t._suggestionFactory.registerCustomCallback("formatBlock","resizeTable",oa("0x2"),t[oa("0x23")][oa("0x1e")](oa("0x13"),null,oa("0x1a"))),t._suggestionFactory[oa("0x7")]("formatBlock",oa("0x1b"),oa("0x1a"),t[oa("0x23")].getSuggestionCallback(oa("0x13"),null,oa("0x2"))),t._descriptionFactory[oa("0x1d")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x9")](t,e){const n=this.editor.plugins[oa("0x24")](oa("0x6")),o=this[oa("0x25")][oa("0x0")].get(oa("0x14")),s=e[oa("0x17")]||this[oa("0x25")][oa("0x3")][oa("0x27")][oa("0x22")][oa("0x18")]();this[oa("0x25")][oa("0x3")][oa("0x12")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[oa("0xe")](r):null,x=s[oa("0x1")](oa("0xf"))||null;const a=e[oa("0xf")]||x,c=e[oa("0x15")]||i,l=this[oa("0x25")].plugins[oa("0x24")](oa("0x5")).me;for(const t of n.getSuggestions()){const e=t.getContainedElement();if(oa("0x1b")===t[oa("0x16")]&&e===s){t[oa("0x11")]!==l&&t[oa("0x1a")]();const e=t[oa("0x19")][oa("0x26")];x=e[0][oa("0xf")],i=e[0][oa("0x15")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xa")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1b")},[],oa("0x1b"))}))}[oa("0x8")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x1c")]){const t=oa("0x20");return{type:oa("0x4"),content:Yo(this[oa("0x25")][oa("0x21")],t)}}}}const ra=["Template","enableCommand","insertTemplate","has","plugins","afterInit"];var ia,xa;ia=ra,xa=222,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this.editor;t.plugins[aa("0x3")](aa("0x0"))&&t[aa("0x4")].get("TrackChangesEditing")[aa("0x1")](aa("0x2"))}}const la=["insertTableOfContents","get","_descriptionFactory","commands","afterInit","plugins","TrackChangesEditing","locale","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","editor"];var ua,da;ua=la,da=287,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x3")](){const t=this[ga("0x9")];if(!t[ga("0x2")].get(ga("0xa")))return;t[ga("0x4")][ga("0x0")](ga("0x5")).enableCommand(ga("0xa"));const e=t[ga("0x4")][ga("0x0")]("TrackChangesEditing"),n=t[ga("0x6")];e[ga("0x1")].registerElementLabel(ga("0x7"),(t=>Yo(n,ga("0x8"),t)))}}const fa=["get","_splitMarkerName","differ","from","isCollapsed","model","suggestion","newRange","document","forward","plugins","TrackChangesEditing","element","removeMarker","afterInit","title-content","nodeBefore","updateMarker","ELEMENT_TITLE","schema","start","createRange","registerPostFixer","editor","_descriptionFactory","getNearestSelectionRange","registerElementLabel","locale","has","getChangedMarkers"];var ha,pa;ha=fa,pa=414,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x14")](){const t=this[ba("0x1d")];if(!t.plugins[ba("0x4")]("Title"))return;const e=t[ba("0x10")][ba("0x6")](ba("0x11"));e[ba("0x0")][ba("0x2")](ba("0x15"),(()=>Yo(t[ba("0x3")],ba("0x18")))),t[ba("0xb")][ba("0xe")][ba("0x1c")]((n=>{let o=!1;const s=Array[ba("0x9")](t[ba("0xb")].document[ba("0x8")][ba("0x5")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x7")](r);if(ba("0xc")!==s||!i[ba("0xd")])continue;const x=i.newRange,a=x.end[ba("0x16")];if(!a||!a.is(ba("0x12"),ba("0x15")))continue;if(!x[ba("0x1a")].isTouching(x.end))continue;const c=t[ba("0xb")][ba("0x19")][ba("0x1")](x.end,ba("0xf"));if(c&&c[ba("0xa")]){const t=n[ba("0x1b")](x.start,c[ba("0x1a")]);t.isEqual(x)||(n[ba("0x17")](r,{range:t}),o=!0)}o||(n[ba("0x13")](r),o=!0)}return o}))}}const _a=["enableCommand","plugins","TrackChangesEditing","UndoEditing","get","has","editor"];var Ta,Ca;Ta=_a,Ca=471,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("0x4")],e=t[ya("0x6")][ya("0x2")](ya("0x0"));t.plugins[ya("0x3")](ya("0x1"))&&(e[ya("0x5")]("undo"),e[ya("0x5")]("redo"))}}const Aa=["TableCaptionEditing","afterInit","editor","has","get","toggleTableCaption","plugins","enableCommand"];var va,Ra;va=Aa,Ra=148,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[Mx]}[Sa("0x5")](){const t=this[Sa("0x6")];t.plugins[Sa("0x7")](Sa("0x4"))&&t[Sa("0x2")][Sa("0x0")]("TrackChangesEditing")[Sa("0x3")](Sa("0x1"))}}const La=["change","bind","commandName","handleListStartCommand","getListTypeFromListStyleType","listStart","editor","list.properties","replace","DocumentListPropertiesEditing","handleDescriptions","has","styles","isListItemBlock","ELEMENT_","_getTranslationKeyForListStyle","locale","selection","format","listType","_getSuggestionBlocks","commandParams","*Change to:* %0","*Format:* set start index to %0","config","toUpperCase","enableCommand","plugins","*Format:* set order to regular","model","getAttribute","_descriptionFactory","markMultiRangeBlockFormat","isFirstBlockOfListItem","from","listStyle","numbered","TrackChangesEditing","type","listReversed","filter","reversed","handleListStyleCommand","DocumentListPropertiesUtils","getSelectedBlocks","startIndex","DocumentListUtils","*Format:* set order to reversed","afterInit","registerDescriptionCallback","get"];var wa,Na;wa=La,Na=140,function(t){for(;--t;)wa.push(wa.shift())}(++Na);const Ma=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Ma("0xa")](){if(!this[Ma("0x13")].plugins[Ma("0x18")](Ma("0x16")))return;const t=this.editor[Ma("0x25")][Ma("0xc")](Ma("0x14")),e=this[Ma("0x13")][Ma("0x28")][Ma("0xc")](Ma("0x32"));t[Ma("0x19")]&&e[Ma("0x27")](Ma("0x30"),this.handleListStyleCommand.bind(this)),t[Ma("0x3")]&&e[Ma("0x27")](Ma("0x1"),this.handleListReversedCommand[Ma("0xe")](this)),t[Ma("0x7")]&&e[Ma("0x27")](Ma("0x12"),this.handleListStartCommand[Ma("0xe")](this)),e[Ma("0x2c")][Ma("0xb")](this.handleDescriptions[Ma("0xe")](this))}[Ma("0x4")](t,e={}){const n=this[Ma("0x13")][Ma("0x28")][Ma("0xc")](Ma("0x32")),o=this._getSuggestionBlocksForListStyle();this.editor.model[Ma("0xd")]((()=>{n[Ma("0x2d")](o,{commandName:Ma("0x30"),commandParams:[{type:e[Ma("0x0")]}],formatGroupId:Ma("0x30")})}))}handleListReversedCommand(t,e={}){const n=this[Ma("0x13")].plugins[Ma("0xc")](Ma("0x32")),o=this.editor.plugins[Ma("0xc")]("DocumentListUtils"),s=this[Ma("0x21")]((t=>o[Ma("0x1a")](t)&&Ma("0x31")===t[Ma("0x2b")](Ma("0x20"))));null!==s&&this[Ma("0x13")][Ma("0x2a")][Ma("0xd")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e[Ma("0x3")]}],formatGroupId:"listReversed"})}))}[Ma("0x10")](t,e={}){const n=this[Ma("0x13")][Ma("0x28")][Ma("0xc")](Ma("0x32")),o=this[Ma("0x13")][Ma("0x28")][Ma("0xc")](Ma("0x8")),s=this._getSuggestionBlocks((t=>o[Ma("0x1a")](t)&&"numbered"===t[Ma("0x2b")](Ma("0x20"))));null!==s&&this.editor.model[Ma("0xd")]((()=>{n[Ma("0x2d")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[Ma("0x17")](t){const e=this[Ma("0x13")][Ma("0x1d")],{data:n}=t;if(!n)return;let o,s;switch(n[Ma("0xf")]){case"listStyle":o=Ma("0x23"),s={type:Ma("0x1f"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x22")][0][Ma("0x0")])))};break;case Ma("0x1"):o=n[Ma("0x22")][0][Ma("0x3")]?Ma("0x9"):Ma("0x29"),s={type:Ma("0x1f"),content:Yo(e,o)};break;case Ma("0x12"):o=Ma("0x24"),s={type:Ma("0x1f"),content:Yo(e,o,n[Ma("0x22")][0][Ma("0x7")])}}return s}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[Ma("0xc")]("DocumentListUtils");let e=Array[Ma("0x2f")](this[Ma("0x13")][Ma("0x2a")].document[Ma("0x1e")][Ma("0x6")]());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[Ma("0x21")](t){const e=this[Ma("0x13")].plugins[Ma("0xc")](Ma("0x8"));let n=Array.from(this[Ma("0x13")][Ma("0x2a")].document[Ma("0x1e")][Ma("0x6")]())[Ma("0x2")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ma("0x2e")](t)&&o.push(t);return o}[Ma("0x1c")](t){return Ma("0x1b")+this[Ma("0x13")][Ma("0x28")][Ma("0xc")](Ma("0x5"))[Ma("0x11")](t)[Ma("0x26")]()+"_LIST_"+t[Ma("0x26")]()[Ma("0x15")](/-/g,"_")}}const Oa=["*Format:* change table properties","pluginName","registerCustomCallback","model","*Format:* change table cell properties","TablePropertiesEditing","selection","TableUtils","tableCellWidth","tableHeight","commandParams","tableWidth","getSuggestionCallback","document","findAncestor","tableCellBorderStyle","join","editor","batch","plugins","accept","getAttribute","getContainedElement","afterInit","setAttribute","TableCellPropertiesEditing","tableBorderStyle","enqueueChange","formatBlock","tableCellVerticalAlignment","getSelectionAffectedTableCells","tableBackgroundColor","removeAttribute","get","start","subType","registerDescriptionCallback","locale","tableBorderWidth","_handlePropertyChange","getSuggestions","_descriptionFactory","handleSuggestionDescription","tableCellProperties","tableCellHorizontalAlignment","tableBorderColor","has","tableProperties","tableCellBackgroundColor","TrackChangesTableProperties","_getSuggestion","TrackChangesEditing","discard","markBlockFormat","format","_suggestionFactory","getFirstPosition","handleDiscardAction","tableCellBorderColor"];var Pa,Da;Pa=Oa,Da=264,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x13")]=[Ba("0x11"),Ba("0x39"),Ba("0xa"),"tableAlignment",Ba("0x2a"),Ba("0x28"),Ba("0x3")],this[Ba("0xf")]=[Ba("0x1e"),Ba("0x2e"),"tableCellBorderWidth","tableCellPadding",Ba("0x27"),"tableCellHeight",Ba("0x14"),Ba("0x10"),Ba("0x1")]}static get[Ba("0x20")](){return Ba("0x15")}[Ba("0x36")](){const t=this[Ba("0x30")][Ba("0x32")][Ba("0x5")]("TrackChangesEditing");if(this[Ba("0x30")][Ba("0x32")][Ba("0x12")](Ba("0x24"))){for(const e of this[Ba("0x13")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x30")].model[Ba("0x2c")][Ba("0x25")][Ba("0x1c")]()[Ba("0x2d")]("table");this._handlePropertyChange(e,[o],this[Ba("0x13")],Ba("0x13"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",Ba("0x13"),Ba("0x33"),t._suggestionFactory[Ba("0x2b")]("formatBlock",null,"discard")),t[Ba("0x1b")].registerCustomCallback(Ba("0x0"),Ba("0x13"),Ba("0x18"),((t,e)=>this[Ba("0x1d")](this[Ba("0x13")],t,e))),t._suggestionFactory.registerCustomCallback(Ba("0x0"),Ba("0x13"),Ba("0x2f"),(()=>!1))}if(this[Ba("0x30")][Ba("0x32")][Ba("0x12")](Ba("0x38"))){for(const e of this[Ba("0xf")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x30")][Ba("0x32")][Ba("0x5")](Ba("0x26"))[Ba("0x2")](this[Ba("0x30")][Ba("0x22")][Ba("0x2c")].selection);this[Ba("0xb")](e,o,this[Ba("0xf")],Ba("0xf"),t,n)}));t[Ba("0x1b")][Ba("0x21")](Ba("0x0"),"tableCellProperties",Ba("0x33"),t._suggestionFactory[Ba("0x2b")](Ba("0x0"),null,Ba("0x18"))),t[Ba("0x1b")][Ba("0x21")](Ba("0x0"),"tableCellProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0xf")],t,e))),t._suggestionFactory[Ba("0x21")]("formatBlock",Ba("0xf"),Ba("0x2f"),(()=>!1))}t[Ba("0xd")][Ba("0x8")]((t=>this[Ba("0xe")](t)))}[Ba("0xb")](t,e,n,o,s,r){const i=this.editor[Ba("0x32")][Ba("0x5")](Ba("0x17"));this.editor.model[Ba("0x3a")](r[Ba("0x31")],(()=>{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("0x34")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x19")](t,{commandParams:[e]},[],o)}}))}[Ba("0x1d")](t,e,n){const o=e[0][Ba("0x6")].nodeAfter,s=n[Ba("0x29")][0];this.editor[Ba("0x22")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x37")](n,s[n],o):e[Ba("0x4")](n,o)}))}[Ba("0xe")](t){if(t.data)switch(t[Ba("0x7")]){case Ba("0x13"):return{type:"format",content:Yo(this[Ba("0x30")].locale,Ba("0x1f"))};case Ba("0xf"):return{type:Ba("0x1a"),content:Yo(this.editor[Ba("0x9")],Ba("0x23"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x30")][Ba("0x32")][Ba("0x5")](Ba("0x17"));for(const o of n[Ba("0xc")]({skipNotAttached:!0})){const n=o[Ba("0x35")]();if(o[Ba("0x7")]===e&&n===t)return o}return null}}const Ua=["showSuggestionHighlights","removeMarker","trackChangesCommand","_createSuggestion","suggestion:","removeComment","addSuggestionData","PENDING_ACTION_SUGGESTION","next","commentThread","ck-suggestion-marker-","plugins","removed","init","refresh","newRange","low","addCommentThread","splitPosition","backward","_checkSuggestionCorrectness","item","updateMarker","locale","root","trackChanges","_onDiscard","rootName","high","nodeAfter","multi","trackChanges.mergeNestedSuggestions","track-changes-command-not-found","ck-suggestion-marker--active","options","CommentsRepository","_model","buildSuggestion","multipleBlocks","unbindElementFromMarkerName","config","getSuggestions","$marker","insertion:","_removeSuggestion","updateSuggestion","split","addSuggestion","notReady","_mergeNestedSuggestions","group","getSuggestion","rejected","before","addClass","elementStart","isOwn","value","never","createRange","_refreshSuggestionsChain","$graveyard","listenTo","_findSuggestions","hasCommentThread","toViewElement","substr","getNearestSelectionRange","_adapter","deletion:chain","every","batch","formatInline:discard","join","deletion","createPositionBefore","isBefore","suggestion-type","_addThreadToSuggestion","markInsertion","getSuggestionCallback","getChangedMarkers","markerToHighlight","_setSuggestionRange","set","change","discardAllSuggestions","_editor","attributes","getCustomProperty","skipNestingCheck","isInsideObject","add","getLastMatchingPosition","has","push","track-changes-suggestion-data-mismatch","start","formatInline:chain","track-changes-adapter-missing-getsuggestion","from","acceptAllSuggestions","isLimit","collaboration.channelId","_saved","data","ready","markDeletion","acceptSuggestion","size","get","formatInline:","addMarkerName","getIntersection","hasComments","previous","element","markMultiRangeBlockFormat","values","differ","_breakSuggestionMarker","chain","isNextTo","PendingActions","addUser","_commentsRepository","isBlock","fire","isDocumentOperation","containsRangeInObject","dataToMarker","addMarker:suggestion","containsRange","originalSuggestionId","deleteContent","formatBlock:","track-changes-user-not-found","error-saving-suggestion-data-suggestion-discarded","_descriptionFactory","isEqual","deletion:accept","authoredAt","addMarker","consume","_setSuggestionData","return","delete","accept","writer","isExternal","getMarkers","TrackChangesEditing","insert","_handleNewSuggestionMarker","includes","range","fetchCommentThread","enableCommand","registerPostFixer","stop","insertion","enableReadOnlyMode","removeMarkers","_suggestionFactory","_customCallbacks","formatBlock:join","name","_trackFormatChanges","ck-suggestion-marker","_updateSuggestionData","oldRange","dataReady","isAfter","track-changes-adapter-already-set","isMultiRange","then","isTouching","markerReady","resolve","elementToElement","unbind","setTo","document","isSelectable","pluginName","change:_saved","discardSuggestion","mapper","schema","end","markMultiRangeDeletion","parent","suggestionChanged","toJSON","filter","update:suggestion","createPositionAt","deletion:","getFirstRange","_getSuggestionData","getMultiRangeId","fromCharCode","discardSelectedSuggestions","remove","_isForcedDefaultExecutionBlock","editor","track-changes-suggestion-not-found","_splitMarkerName","define","formatGroupId","setSelection","splice","insertContent","insertion:accept","getAttribute","reconvertMarker","getUser","@external","adapter","removeClass","change:data","author","_getExternalAuthor","suggestionLoaded","markers","position","isObject","isIntersectingWithRange","default","getFirstMarker","addHighlight","addRange","getWalker","type","formatInline","applyOperation","always","dataDowncast","editingDowncast","activeMarkers","upcast","execute","formatBlock","_suggestionState","editing","getAncestors","markerName","fromRange","isLocal","acceptSelectedSuggestions","addMarker:suggestion:formatBlock","discard","commandName","hasSuggestion","_defaultCallbacks","_suggestions","containsItem","isRemovable","suggestion","createdAt","Users","forceDefaultExecution","isInContent","move","getAllAdjacentSuggestions","marker-count","_cutOutSuggestionMarker","addComment","lowest","_enabledCommands","trackChanges.trackFormatChanges","length","removeAttribute","getShiftedBy","_rangeIsInLocalUserInsertion","subType","after","commands","moveTargetPosition","_registerDefaultCallbacks","isCollapsed","creator","isAtEnd","some","containerElement","change:activeMarkers","setAttribute","model","map","data-suggestion","getRanges","insertion:chain","sort","nodeBefore","deletion:join","getDifference","consumable","_addSuggestionMarker","getChanges","getCommentThread","detach","selection","conversion","_joinSuggestions","for"];var Ga,Ha;Ga=Ua,Ha=395,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 requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Fa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Fi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x5e")](){return za("0x3d")}constructor(t){function e(t){return t[za("0xc6")]((t=>String[za("0x6f")](t))).join("")}super(t),this[za("0x12b")]("activeMarkers",[]),this.on(za("0xc3"),((e,n,o,s)=>{this[za("0xfb")].change((()=>{for(const e of[...s,...o])this[za("0xfb")][za("0x86")][za("0x4")](e)&&t[za("0x9a")][za("0x7d")](e)}))})),this[za("0x30")]=new ss(this.editor[za("0xc5")].schema,this[za("0x73")][za("0xee")]),this[za("0x11b")]=null,this[za("0x49")]=new Va(this[za("0x73")]),this._suggestions=new Map,this[za("0x23")]=t[za("0xe2")][za("0x14")](za("0xfa")),this._enabledCommands=new Set,this[za("0xfb")]=this[za("0x73")][za("0xc5")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config[za("0x76")](za("0xb4"),za("0x8a")),this[za("0x4d")]=t.config.get(za("0xb4")),t[za("0xff")][za("0x76")](za("0xf6"),!0),this[za("0x108")]=t[za("0xff")][za("0x14")](za("0xf6")),this[za("0xd9")]=new d(t,this[za("0xb3")]),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,50,50])}[za("0xe4")](){const t=this[za("0x73")];t[za("0xd4")][za("0xd6")](za("0x94"))[za("0x129")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0x75")](t.markerName),o=["ck-suggestion-marker",za("0xe1")+n];let s=3e3;return this[za("0x95")][za("0x40")](t[za("0x9c")])&&(o[za("0x5")](za("0xf8")),s=3010),za("0x121")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xd4")][za("0xd6")](za("0x93"))[za("0x2")]((e=>{e.on(za("0x29"),((e,n,o)=>{if(!o[za("0xf9")][za("0xd7")])return;const s=n[za("0xec")];if(!s)return;const r=o.mapper[za("0x118")](s);t[za("0xc5")][za("0x62")].isObject(s)&&r&&!r[za("0x130")]("widget")&&r.is(za("0xc2"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0xf3")})})),t[za("0xd4")].for("dataDowncast").markerToHighlight({model:za("0xa8"),view:(t,e)=>{if(!e[za("0xf9")][za("0xd7")])return null;const{type:n}=this[za("0x75")](t.markerName);return{classes:[za("0x4e"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xec")])return;if(o[za("0xec")].is(za("0xd3")))return void s[za("0xce")].consume(o[za("0xec")],n[za("0x4c")]);const r=s.mapper[za("0x118")](o[za("0xec")]);if(!o[za("0xec")].is(za("0x1a"))||!t[za("0xc5")][za("0x62")].isBlock(o[za("0xec")])||r[za("0x130")](za("0x8c")))return;const{id:i}=this[za("0x75")](o[za("0x9c")]);s[za("0x3a")][za("0x10d")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],r),s.writer[za("0xc4")](za("0xc7"),i,r),s[za("0x61")].bindElementToMarker(r,o[za("0x9c")]),e&&(this[za("0x95")][za("0x40")](o[za("0x9c")])?s[za("0x3a")][za("0x10d")](za("0xf8"),r):s[za("0x3a")].removeClass(za("0xf8"),r));for(const e of t[za("0xc5")].createRangeIn(o[za("0xec")]).getItems())s[za("0xce")][za("0x35")](e,n[za("0x4c")]);s[za("0xce")][za("0x35")](o.item,n[za("0x4c")])};t[za("0xd4")][za("0xd6")](za("0x93"))[za("0x2")]((t=>{t.on(za("0xa0"),((t,e,o)=>{o[za("0xf9")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xd6")](za("0x93")).markerToData({model:za("0xa8"),view:(t,e)=>e[za("0xf9")].showSuggestionHighlights?null:{group:za("0xa8"),name:t[za("0x119")](11)}}),t.conversion[za("0xd6")](za("0x96"))[za("0x59")]({view:{name:za("0xa8"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xdb")+t[za("0x7c")](za("0x124"))+":"+t.getAttribute("id");return t.getAttribute(za("0xaf"))&&(n+=":"+t[za("0x7c")](za("0xaf"))),e.createElement(za("0x101"),{"data-name":n})}}),t[za("0xd4")].for("upcast")[za("0x28")]({view:za("0xa8")}),t.conversion.for(za("0x94")).add((t=>{t.on(za("0xa0"),n(),{priority:za("0xf3")})})),t[za("0xd4")][za("0xd6")]("editingDowncast")[za("0x2")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x61")].markerNameToElements(e[za("0x9c")]);if(o)for(const t of o)t[za("0x130")]("addHighlight")||(n.writer[za("0x81")]([za("0x4e"),"ck-suggestion-marker-formatBlock",za("0xf8")],t),n[za("0x3a")][za("0xb6")]("data-suggestion",t),n.mapper[za("0xfe")](t,e[za("0x9c")]))}),{priority:za("0xf3")})})),t.model[za("0x5c")].registerPostFixer((e=>{let n=!1;const o=Array[za("0xa")](t[za("0xc5")][za("0x5c")][za("0x1d")][za("0x128")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xa8")!==o)continue;const u=this[za("0xa5")][za("0x14")](l);if(null!=a[za("0xe6")])if(za("0x90")==c&&(n=n||Xa(a.newRange,x,e,t.model.schema)),a[za("0xe6")][za("0xbe")]||za("0x114")==a[za("0xe6")][za("0xef")][za("0xf2")]||za("0x98")==c&&!Ja(a.newRange)||za("0x121")==c&&(qa(i=a[za("0xe6")])||(r=i)[za("0x7")].parent==r[za("0x63")][za("0xcb")]&&r[za("0x7")].isAtEnd))e[za("0xd8")](x),n=!0;else{if(!u||!u[za("0xac")])continue;s[za("0x2")](u)}}var r,i;return s[za("0x13")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0xc5")][za("0x5c")][za("0x44")]((e=>{let n=!1;for(const o of t[za("0xc5")][za("0x5c")][za("0x1d")][za("0xd0")]()){if(za("0x3e")!=o.type)continue;const s=o[za("0x87")][za("0xb7")](o[za("0xb5")]);if(s.isAtEnd)for(const r of this[za("0xa5")][za("0x1c")]()){if(r[za("0x54")]||!r.isInContent)continue;if(za("0x98")!=r[za("0x8f")])continue;const i=r.getFirstRange();if(i[za("0x7")][za("0x65")]!=i[za("0x63")][za("0x65")]&&i[za("0x63")][za("0x31")](o.position)){const o=t[za("0xc5")][za("0x112")](i.start,s);e[za("0xed")](r[za("0x8b")](),{range:o}),n=!0}}}return n})),t[za("0xc5")][za("0x86")].on(za("0x69"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x75")](e[za("0x4c")]),n=this._suggestions[za("0x14")](t);n&&n.addMarkerName(e[za("0x4c")])}})),t[za("0xc5")][za("0x5c")].on(za("0x82"),(()=>{const e=Array.from(t[za("0xc5")][za("0x5c")][za("0x1d")][za("0x128")]())[za("0x68")]((t=>"suggestion"===this[za("0x75")](t[za("0x4c")])[za("0x109")]));if(0===e[za("0xb5")])return;e[za("0xca")](((t,e)=>{const n=t.data[za("0x50")],o=e[za("0xf")][za("0x50")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x7")][za("0x123")](o[za("0x7")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x75")](t);if(null===s[za("0x50")]){const e=this[za("0x3f")](t);o[za("0x2")](e)}else{const t=this[za("0xa5")][za("0x14")](e);null!==s[za("0xe6")]||t[za("0xac")]?(n[za("0x2")](t.head),o[za("0x2")](t)):this[za("0x103")](t)}}o[za("0x13")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x25")](za("0x66"),t)})),t[za("0xc5")].on(za("0x91"),((e,n)=>{const o=n[0];if(!this._suggestions[za("0x13")])return;if(!o[za("0x26")])return;if(o[za("0x11e")].isUndo||!o.batch[za("0x9e")])return;let s,r;switch(o[za("0x8f")]){case za("0x3e"):s=t[za("0xc5")][za("0x6a")](o[za("0x87")]),r=s[za("0xb7")](o.howMany);break;case za("0x105"):s=t.model[za("0x6a")](o[za("0xe9")]),r=t[za("0xc5")].createPositionAt(o[za("0xbc")]);break;case za("0xad"):s=t[za("0xc5")][za("0x6a")](o.targetPosition),r=s[za("0xb7")](o.howMany);break;default:return}const i=t.model.createRange(s,r);t[za("0xc5")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x116")](i)){if(t[za("0x54")])continue;if("formatInline"==t[za("0x8f")])continue;const n=t[za("0xf")]&&t[za("0xf")][za("0xfd")];(za("0x98")!=t[za("0x8f")]||za("0x105")==o[za("0x8f")]&&!n)&&(e[za("0x27")]||za("0x46")==t[za("0x8f")]&&e[za("0x10f")]||t[za("0x6c")]()[za("0x2a")](i)&&this[za("0x1e")](t,s,r))}}))}),{priority:za("0xb2")}),t.model.on(za("0x2c"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x72")])return;if(!this.trackChangesCommand[za("0x110")])return;if(o[za("0xbe")])return;const r=t[za("0xc5")][za("0x62")],{start:i,end:x}=o.getFirstRange(),a=i[za("0xf4")]&&r[za("0xc")](i[za("0xf4")])?null:r[za("0x11a")](i,"forward"),c=x[za("0xcb")]&&r[za("0xc")](x[za("0xcb")])?null:r[za("0x11a")](x,za("0xea")),l=t[za("0xc5")].createRange(a?a[za("0x7")]:i,c?c[za("0x63")]:x);t[za("0xc5")][za("0x12c")]((e=>{this[za("0x11")](l);const n=t[za("0xc5")].schema[za("0x11a")](l[za("0x7")]);o.is("documentSelection")?e.setSelection(n):o[za("0x5b")](n)})),e[za("0x45")]()}),{priority:e.priorities.normal+10}),t[za("0xc5")].on(za("0x7a"),((e,n)=>{const o=n[n[za("0xb5")]-1];o&&o[za("0xab")]||this[za("0x72")]||this[za("0xd9")][za("0x110")]&&(t[za("0xc5")].change((()=>{let o=t[za("0xc5")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x37")]=o.clone();const s=o[za("0x63")][za("0xcb")],r=t[za("0xc5")][za("0x62")];s&&r[za("0x24")](s)&&!r[za("0x88")](s)&&(o=t.model[za("0x112")](o.start,t[za("0xc5")].createPositionAt(s,"end"))),this[za("0x126")](o)})),e[za("0x45")]())}),{priority:za("0xf3")}),this[za("0x73")][za("0xbb")][za("0x2")](za("0xf0"),this[za("0xd9")]),this.enableCommand("trackChanges");const o=new p(t,this[za("0xa5")]);t.commands[za("0x2")](za("0x12"),o),this[za("0x43")]("acceptSuggestion");const s=new C(t,this._suggestions);t[za("0xbb")][za("0x2")](za("0x60"),s),this[za("0x43")](za("0x60")),t[za("0xbb")][za("0x2")](za("0xb"),new O(t,o,this._suggestions)),this[za("0x43")](za("0xb")),t[za("0xbb")][za("0x2")](za("0x12d"),new O(t,s,this._suggestions)),this[za("0x43")](za("0x12d")),t[za("0xbb")][za("0x2")](za("0x9f"),new U(t,o,this[za("0xa5")])),this.enableCommand("acceptSelectedSuggestions"),t.commands[za("0x2")]("discardSelectedSuggestions",new U(t,s,this[za("0xa5")])),this[za("0x43")](za("0x70"));const r=t[za("0xe2")].get("CommentsRepository");this[za("0x115")](r,za("0xb1"),((t,{threadId:e})=>{const n=this[za("0xa5")][za("0x14")](e);n&&n.commentThread&&1===n[za("0xe0")][za("0xb5")]&&this[za("0x4f")](e,{hasComments:!0})}),{priority:za("0xe7")}),this.listenTo(r,za("0xdc"),((t,{threadId:e})=>{const n=this._suggestions[za("0x14")](e);n&&n.commentThread&&!n[za("0xe0")][za("0xb5")]&&this[za("0x4f")](e,{hasComments:!1})}),{priority:"low"})}set[za("0x80")](t){if(this[za("0x11b")])throw new e.CKEditorError(za("0x53"),this);this._adapter=t}get[za("0x80")](){return this[za("0x11b")]}[za("0x100")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x1c")]())t&&!e[za("0xac")]||n[za("0x5")](e);return e?n[za("0xc6")]((t=>t[za("0x67")]())):n}[za("0x10a")](t){const n=this[za("0xa5")][za("0x14")](t);if(!n)throw new e.CKEditorError(za("0x74"),this);return n}[za("0xa3")](t){return this[za("0xa5")][za("0x4")](t)}[za("0xdd")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x8f")][za("0x105")](":"),i=this._suggestions[za("0x14")](n)||this[za("0xda")](s,r,n,e,o);if(this[za("0x125")](i),this[za("0xeb")](i,s,r||null,e),i[za("0xa9")]=t[za("0xa9")],o&&o[za("0x7f")]){const t=o["@external"],e=this[za("0x84")](t.authorName);i[za("0x33")]=t.createdAt,i[za("0x83")]=e,i[za("0x3b")]=!0}else i.authoredAt=t[za("0xa9")];switch(t.data&&(i[za("0xf")]=t[za("0xf")]),t.attributes&&(i.attributes=t.attributes),this._adapter&&this[za("0x11b")][za("0x106")]||(i[za("0xe")]=!0),this._suggestionState[za("0x14")](i)){case za("0x107"):this[za("0x99")][za("0x12b")](i,za("0x51"));break;case za("0x57"):i[za("0xac")]?(this[za("0x99")][za("0x12b")](i,"ready"),this[za("0x25")](za("0x85"),i)):this[za("0x99")][za("0x12b")](i,za("0xe3"))}return i}[za("0x12")](t){this[za("0xab")]((()=>{this[za("0x73")][za("0xc5")][za("0x12c")]((()=>{for(const e of t[za("0xae")]())e.accept()}))}))}[za("0x60")](t){this[za("0xab")]((()=>{this[za("0x73")][za("0xc5")].change((()=>{for(const e of t[za("0xae")]())e[za("0xa1")]()}))}))}[za("0x43")](t,n){const o=this.editor[za("0xbb")].get(t);if(!o)throw new e.CKEditorError(za("0xf7"),this,{commandName:t});this[za("0xb3")][za("0x2")](o),n&&o.on(za("0x97"),((t,e)=>{this[za("0xd9")][za("0x110")]&&(this[za("0x72")]||e.length>0&&e[e[za("0xb5")]-1]&&e[e[za("0xb5")]-1][za("0xab")]||(n(((...t)=>o[za("0x97")](...t,{forceDefaultExecution:!0})),...e),t[za("0x45")]()))}),{priority:za("0xf3")})}[za("0xab")](t){let n,o;const s=this[za("0x72")];this[za("0x72")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x72")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0x126")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x73")][za("0xe2")][za("0x14")](za("0xaa")).me;for(const{suggestion:e,meta:o}of this[za("0x116")](t,za("0x46")))if(o[za("0x10f")]){if(!o[za("0x20")]){if(!this[za("0x108")]&&o[za("0x27")])continue;return e}if(n==e.subType){const n=e[za("0x6c")]();return n[za("0x7")].isEqual(t[za("0x63")])?this[za("0x12a")](e,this[za("0xfb")][za("0x112")](t[za("0x7")],n[za("0x63")])):this[za("0x12a")](e,this[za("0xfb")].createRange(n[za("0x7")],t[za("0x63")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x102")+n:za("0x46"),a=this[za("0x36")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xcf")](x,r,i,t),a}markMultiRangeInsertion(t,n="multi",o={}){const s=this[za("0x73")].plugins[za("0x14")](za("0xaa")).me,r=this[za("0x49")][za("0x127")](za("0x46"),n,za("0x120"));for(const e of this[za("0x100")]())if(e.author.id==s.id&&"insertion"==e[za("0x8f")]&&e.subType==n&&(r(e[za("0xc8")](),t)||r(t,e.getRanges()))){for(const n of t)e[za("0x8d")](n);return e}if(this[za("0x108")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x116")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0x2a")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x102")+n,c=this[za("0x36")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xcf")](a,i,x,e,Zo[za("0x6e")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0xbe")])return null;if(za("0x111")===this._trackFormatChanges){const e=this[za("0x49")][za("0x127")](za("0x90"),o,za("0x39"));return this[za("0xab")]((()=>e([t],n,s))),null}const r=this.editor[za("0xe2")][za("0x14")](za("0xaa")).me,i=[];if("always"!==this[za("0x4d")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion"))n[za("0x10f")]&&!n[za("0x1")]&&i[za("0x5")](...e[za("0xc8")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x17")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xb5")];){const o=n[e][za("0xcd")](t);n[za("0x79")](e,1,...o),e+=o[za("0xb5")]}}return n}(t,i);x[za("0xb5")]&&this._model[za("0x12c")]((()=>{for(const t of x){const e=this[za("0x49")][za("0x127")](za("0x90"),o,za("0x39"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x7")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x90"))){if(!n[za("0x10f")])continue;if(e.subType!=o)continue;const s=e[za("0x6c")]();if(s[za("0x2a")](t,!0))return null;x=x[za("0x123")](s[za("0x7")])?x:s[za("0x7")],a=a.isAfter(s.end)?a:s.end,i?s[za("0x7")].isBefore(i.getFirstRange()[za("0x7")])?(i[za("0x48")](),i=e):e[za("0x48")]():i=e}const c=this._model[za("0x112")](x,a);if(i)this[za("0x12a")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x36")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0x15")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x77")]||(n[za("0x77")]=n[za("0xa2")]),n.multipleBlocks=t.is(za("0x41")),s=s||$a(n);const i=o[za("0xc6")]((t=>Qa(t,this[za("0xfb")]))),x=t.is(za("0x41"))?t:Qa(t,this[za("0xfb")]);if("never"===this[za("0x4d")]){const t=this._suggestionFactory[za("0x127")]("formatBlock",s,"accept");return this[za("0xab")]((()=>t([x],n,r))),null}i[za("0x5")](x);let a=!0;for(const t of i)if(!this[za("0xb8")](t)){a=!1;break}if(a&&za("0x92")!==this[za("0x4d")]){const t=this._suggestionFactory[za("0x127")]("formatBlock",s,"accept");return this[za("0xab")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[za("0x63")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[za("0x10f")]||e[za("0x20")]||e[za("0x27")]||e[za("0x1")])continue;if(t[za("0xf")][za("0x77")]!=n[za("0x77")])continue;const o=t[za("0x6c")]();if(t[za("0xb9")]==s){if(o[za("0x2a")](x,!0))return null;l=l[za("0x123")](o[za("0x7")])?l:o[za("0x7")],u=u[za("0x52")](o[za("0x63")])?u:o[za("0x63")],c?o.start[za("0x123")](c[za("0x6c")]()[za("0x7")])?(c[za("0x48")](),c=t):t[za("0x48")]():c=t}else{const e=x[za("0x17")](o);this[za("0xb0")](t,e)}}const d=this[za("0x73")][za("0xe2")][za("0x14")](za("0xaa")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x12a")](c,this[za("0xfb")][za("0x112")](l,u)),c;{const t=this._setSuggestionData({id:g,type:za("0x2d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xcf")](za("0x2d")+s,g,m,this._model[za("0x112")](l,u)),t}}[za("0x1b")](t,n,o=[],s=null,r={}){n[za("0x77")]||(n[za("0x77")]=n.commandName);const i=t[0];n[za("0xfd")]=i.is(za("0x41")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0xfb")]))),a=i.is(za("0x41"))?t:t[za("0xc6")]((t=>Qa(t,this[za("0xfb")])));if(za("0x111")===this[za("0x4d")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x98"),s,za("0x39"));return this[za("0xab")]((()=>t(a,n,r))),null}x[za("0x5")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x127")]("formatBlock",s,za("0x39"));return this[za("0xab")]((()=>t(a,n,r))),null}const l=this[za("0x73")].plugins[za("0x14")](za("0xaa")).me;for(const t of this[za("0x100")]()){if(t[za("0x83")].id!=l.id)continue;if(za("0x98")!=t[za("0x8f")]||t.data.formatGroupId!=n[za("0x77")])continue;const e=t[za("0xb9")]==s;for(let n=0;n<a[za("0xb5")];n++){const o=a[n];for(const s of t[za("0x3c")]()){const r=s.getRange();if(o[za("0x31")](r)){e?(a[za("0x79")](n,1),n--):t[za("0xd8")](s.name);break}}}}if(0==a[za("0xb5")])return null;const u=this._suggestionFactory.getSuggestionCallback("formatBlock",s,za("0x120"));for(const t of this[za("0x100")]())if(t[za("0x83")].id==l.id&&za("0x98")==t[za("0x8f")]&&t[za("0xf")][za("0x77")]==n[za("0x77")]&&t[za("0xb9")]==s&&(u(t.getRanges(),a)||u(a,t[za("0xc8")]()))){for(const e of a)t[za("0x8d")](e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0x36")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xcf")](m,d,g,t,Zo.getMultiRangeId());return f}[za("0x11")](t,n=null,o={}){if(t[za("0xbe")])return null;const s=this[za("0x73")][za("0xe2")][za("0x14")](za("0xaa")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[za("0x116")](r,za("0x46")))if(e[za("0x10f")]&&!e[za("0x20")])if(t[za("0x54")]){const e=t[za("0xc8")]()[za("0x68")]((t=>za("0x114")!=t[za("0xef")][za("0xf2")]));if(e[za("0x11d")]((t=>r[za("0x2a")](t,!0)))&&t[za("0xa1")](),e[za("0xc1")]((t=>t[za("0x2a")](r,!0)))){const t=this[za("0x49")].getSuggestionCallback(za("0x121"),n,za("0x39"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x17")](t[za("0x6c")]());null!==e&&t[za("0xf1")]([e],null,o)}if(r[za("0xd2")](),r[za("0xbe")]||"$graveyard"==r[za("0xef")][za("0xf2")])return null;let x=null,a=r[za("0x7")],c=r[za("0x63")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x121")))if(e[za("0x10f")])if(t[za("0x54")]&&this[za("0x108")]){let e=!0;for(const n of t[za("0xc8")]()){if(n.containsRange(r,!0))return t;r[za("0x2a")](n)||(e=!1)}e&&t[za("0xa1")]()}else{const n=t[za("0x6c")]();if(n[za("0x2a")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x27")])continue;return t}a=a.isBefore(n[za("0x7")])?a:n[za("0x7")],c=c[za("0x52")](n.end)?c:n.end,x?n[za("0x7")][za("0x123")](x[za("0x6c")]()[za("0x7")])?(x[za("0x48")](),x=t):t[za("0x48")]():x=t}if(x)return this[za("0x12a")](x,this[za("0xfb")][za("0x112")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xfb")][za("0x112")](a,c),i=s.id,x=n?za("0x6b")+n:za("0x121"),l=this[za("0x36")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xcf")](x,t,i,r),l}}[za("0x64")](t,n=za("0xf5"),o={}){const s=this[za("0x73")].plugins[za("0x14")](za("0xaa")).me,r=t[za("0xc6")]((t=>new i.LiveRange(t.start,t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x46")))n[za("0x10f")]&&!n[za("0x20")]&&x[za("0x2")](e);for(const e of x)if(e[za("0x54")]){const s=e[za("0xc8")]();if((!e.attributes||!e[za("0x12f")][za("0x0")])&&s[za("0x11d")]((t=>r.some((e=>e[za("0x2a")](t,!0)))))&&e[za("0xa1")](),r[za("0x11d")]((t=>s.some((e=>e[za("0x2a")](t,!0)))))){const e=this._suggestionFactory[za("0x127")](za("0x121"),n,za("0x39"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0xc1")]((e=>e[za("0x2a")](t,!0)))&&e[za("0xa1")](),r.every((e=>t[za("0x2a")](e,!0)))){const t=this[za("0x49")][za("0x127")](za("0x121"),n,za("0x39"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x49")].getSuggestionCallback(za("0x121"),n,"join");let c=null;for(const t of this[za("0x100")]())if(t[za("0x83")].id==s.id&&t[za("0xac")]&&"deletion"==t.type&&t[za("0xb9")]==n&&(a(t.getRanges(),r)||a(r,t[za("0xc8")]())))if(c){if(t[za("0xe0")]&&t[za("0xe0")][za("0xb5")])continue;for(const e of t[za("0xc8")]())c[za("0x89")](e)||c.addRange(e);t[za("0x48")]()}else{c=t;for(const e of r)t[za("0x89")](e)||t[za("0x8d")](e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x121")))n[za("0x10f")]&&x[za("0x2")](e);for(const t of x){const e=t[za("0xc8")]();if((!o||!o[za("0x0")])&&r.every((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[za("0x12f")]||!t[za("0x12f")][za("0x0")])&&e[za("0x11d")]((t=>r[za("0xc1")]((e=>e[za("0x2a")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=za("0x6b")+n,g=this[za("0x36")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0xd2")](),t[za("0xbe")]||za("0x114")==t.root[za("0xf2")]||this[za("0xcf")](d,l,u,t,Zo[za("0x6e")]());return g}[za("0x12a")](t,e){const n=t[za("0x8b")]();this[za("0xfb")][za("0x12c")]((t=>{t[za("0xed")](n,{range:e})}))}[za("0x125")](t){const e=t.id,n=this.editor[za("0xff")][za("0x14")]("collaboration.channelId");this._commentsRepository[za("0x117")](e)||this[za("0x23")][za("0xe8")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xd1")](e);o[za("0x5a")]("isRemovable"),o[za("0xa7")]=!1,t[za("0xe0")]=o}[za("0xeb")](t,n,o,s){if(t.type!=n||t[za("0xb9")]!=o||t.creator.id!=s)throw this[za("0x73")][za("0x47")](za("0x6")),new e.CKEditorError(za("0x6"),this)}[za("0xb0")](t,n){const o=t.getFirstRange();if(n[za("0x31")](o))t.removeMarkers();else if(o[za("0x2a")](n)){const s=this[za("0xfb")][za("0x6a")](n[za("0x7")][za("0xcb")],za("0x63"));this[za("0x12a")](t,this[za("0xfb")][za("0x112")](o.start,s));const r=(0,e.uid)(),i=t[za("0xbf")].id,x=t.type+":"+t[za("0xb9")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xf")],attributes:t.attributes});const a=this[za("0xfb")][za("0x6a")](n.end[za("0x65")],za("0xba")),c=this._model[za("0x112")](a,o[za("0x63")]);this[za("0xcf")](x,r,i,c)}else if(o.containsPosition(n[za("0x7")])){const e=this[za("0xfb")].createPositionAt(n[za("0x7")].nodeBefore,"end");this[za("0x12a")](t,this[za("0xfb")][za("0x112")](o.start,e))}else{const e=this[za("0xfb")].createPositionAt(n[za("0x63")].parent,"after");this[za("0x12a")](t,this[za("0xfb")][za("0x112")](e,o[za("0x63")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x116")](t,"insertion")){if(!n[za("0x10f")])continue;const o=e[za("0xc8")]();for(const e of o)if(!t[za("0xcd")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[za("0x73")][za("0xe2")][za("0x14")](za("0xaa"))[za("0x7e")](t);if(!n)throw new e.CKEditorError(za("0x2e"),this);return n}[za("0x84")](t){const e=this[za("0x73")][za("0xe2")].get(za("0xaa")),n=(0,r.hashObject)("external:"+t);return e[za("0x7e")](n)||e[za("0x22")]({id:n,name:t})}[za("0xda")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[za("0x49")][za("0xfc")](t,e,n,r,s,(t=>this[za("0x4f")](n,{attributes:t})));return this[za("0x115")](i,za("0x39"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:za("0xf3")}),this.listenTo(i,za("0xa1"),(()=>{this[za("0x4f")](n,{state:za("0x10b")})}),{priority:"high"}),this[za("0xa5")][za("0x12b")](n,i),this._suggestionState[za("0x12b")](i,"notReady"),i}[za("0x75")](t){const e=t[za("0x105")](":");return{group:e[0],type:e[1],subType:e[za("0xb5")]>=5?e[2]:null,id:e[za("0xb5")]<5?e[2]:e[3],authorId:e[za("0xb5")]<5?e[3]:e[4],markerCount:6==e[za("0xb5")]?e[5]:null}}[za("0x1e")](t,n,o){const s=t[za("0x6c")](),r=s[za("0x7")],i=s.end;this[za("0x12a")](t,this._model[za("0x112")](r,n));const x=(0,e.uid)(),a=t[za("0xbf")].id,c=t[za("0x8f")]+(t.subType?":"+t[za("0xb9")]:"");this[za("0x36")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x12f")],data:t[za("0xf")]}),"formatBlock"==t[za("0x8f")]&&(o=this[za("0xfb")][za("0x122")](o[za("0x65")])),this[za("0xcf")](c,x,a,this._model[za("0x112")](o,i))}[za("0x116")](t,e=null){const n=[],o=this._model[za("0x62")],s=this[za("0x73")][za("0xe2")].get(za("0xaa")).me;for(const r of this[za("0x100")]())if(r[za("0xac")]&&(!e||r[za("0x8f")]==e))for(const e of r[za("0xc8")]()){const i=t.start[za("0x31")](e.end)||t[za("0x63")][za("0x31")](e.start);if(i||t[za("0x17")](e)){const x=t[za("0x2a")](e)&&Ka(o,e[za("0x7")],t),a=e[za("0x2a")](t)&&Ka(o,t[za("0x7")],e);n[za("0x5")]({suggestion:r,meta:{isOwn:s==r[za("0x83")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xcf")](t,e,n,o,s){this[za("0xfb")][za("0x12c")]((r=>{let i=za("0xdb")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x34")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x103")](t){const e=t[za("0x19")],n=t[za("0xdf")];t[za("0x19")]=null,null!=e&&(e[za("0xdf")]=null),t.next=null,null!=n&&(n[za("0x19")]=null),za("0x10")==this[za("0x99")][za("0x14")](t)&&(this._suggestionState[za("0x12b")](t,za("0xe3")),this[za("0x25")]("suggestionUnloaded",t,e,n))}[za("0x36")](t){const n=t.id,o=this[za("0xdd")](t);if(this[za("0x11b")]&&this[za("0x11b")][za("0x106")]){const s=this[za("0x73")][za("0xe2")].get(za("0x21")),r=o[za("0x18")],i=o[za("0xb9")]?o[za("0x8f")]+":"+o[za("0xb9")]:o[za("0x8f")],x=this[za("0x73")][za("0xee")],a=s[za("0x2")](Yo(x,za("0xde"))),c={id:n,type:i,hasComments:r,data:t[za("0xf")]||null,originalSuggestionId:t[za("0x2b")]||null,attributes:o[za("0x12f")]};this._adapter[za("0x106")](c).then((t=>{o[za("0xe")]=!0,s[za("0x71")](a),t&&t[za("0xa9")]&&(this[za("0xa5")][za("0x14")](n)[za("0xa9")]=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(za("0x2f")),this[za("0x73")][za("0xc5")].enqueueChange({isUndoable:!1},(()=>{o[za("0xa1")]()})),o.stopListening(),this[za("0xa5")][za("0x38")](o.id),this[za("0x99")][za("0x38")](o),t}))}return o}[za("0x4f")](t,e){const n=this[za("0x73")][za("0xe2")][za("0x14")](za("0x21")),o=this.getSuggestion(t);if(this[za("0x11b")]&&this[za("0x11b")].updateSuggestion)if(o[za("0xe")]){const o=n[za("0x2")](Yo(this.editor[za("0xee")],za("0xde")));this[za("0x11b")][za("0x104")](t,e)[za("0x55")]((()=>{n.remove(o)}))}else o.on(za("0x5f"),(()=>{this[za("0x4f")](t,e)}))}[za("0x6d")](t){if(!this._adapter||!this[za("0x11b")][za("0x10a")])throw new e.CKEditorError(za("0x9"),this);return this[za("0x11b")][za("0x10a")](t)}[za("0x3f")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0xa5")][za("0x14")](e)||this[za("0xda")](n,o,e,s,{});switch(this[za("0xeb")](r,n,o,s),this._suggestionState.get(r)){case za("0x107"):this._getSuggestionData(e)[za("0x55")]((t=>{let n=Promise[za("0x58")]();t[za("0x18")]&&(n=this[za("0x23")][za("0x42")]({channelId:this[za("0x73")][za("0xff")][za("0x14")](za("0xd")),threadId:e})),n[za("0x55")]((()=>{this[za("0xdd")](t)[za("0xe")]=!0}))})),this[za("0x99")].set(r,"markerReady");break;case"removed":this._updateSuggestionData(e,{state:"open"});case za("0x51"):this[za("0x99")][za("0x12b")](r,"ready"),this[za("0x25")](za("0x85"),r);break;case za("0x10"):this[za("0x25")](za("0x66"),r)}return r[za("0x16")](t),r}[za("0x113")](t){const e=Array[za("0xa")](t).filter((t=>!t[za("0x54")])),n=this[za("0x100")]({skipNotAttached:!0})[za("0x68")]((t=>!t[za("0x54")])),o=n[za("0x68")]((e=>!t.has(e))),s=new Map(n.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x8f")],t.subType,za("0x1f"))]))),r=new Map(n[za("0xc6")]((t=>[t,t[za("0x6c")]()]))),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("0xb5")];t++){const n=e[t];!x[za("0x4")](n)&&n[za("0x19")]&&(n[za("0x19")].next===n&&(n[za("0x19")].next=null),n[za("0x19")]=null),!i[za("0x4")](n)&&n[za("0xdf")]&&(n.next[za("0x19")]===n&&(n.next[za("0x19")]=null),n[za("0xdf")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xb5")];o++){const n=c(t,e[o]);n&&(n[0][za("0xdf")]=n[1],n[1][za("0x19")]=n[0],i.add(n[0]),x[za("0x2")](n[1]))}}function c(t,e){if(t[za("0x83")].id!==e[za("0x83")].id)return null;const n=s[za("0x14")](t)(t,e,r[za("0x14")](t),r[za("0x14")](e));return n&&s[za("0x14")](e)(t,e,r[za("0x14")](t),r[za("0x14")](e))?n[1][za("0xe0")]&&n[1].commentThread.length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[za("0xa")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[za("0x4")](e))),s=new Map(e.map((t=>[t,this[za("0x49")][za("0x127")](t.type,t[za("0xb9")],za("0x120"))]))),r=new Map(n.map((t=>[t,t.getRanges()])));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("0xb5")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[za("0x8f")]!==e[za("0x8f")]||o[za("0x83")].id!==e.author.id||o[za("0xb9")]!==e.subType)continue;const x=s[za("0x14")](e),a=r.get(e),c=r[za("0x14")](o),l=e[za("0xe0")]&&e[za("0xe0")].length,u=o[za("0xe0")]&&o.commentThread.length;if(!l&&x(c,a))return t[za("0xd5")](o,e),r[za("0x38")](e),!0;if(!u&&x(a,c))return t[za("0xd5")](e,o),r[za("0x38")](o),!0}return!1}}[za("0xd5")](t,e){if(t[za("0x54")])for(const n of e[za("0xc8")]())t[za("0x8d")](n);else{const n=e[za("0x6c")]().end;this[za("0x12a")](t,this._model[za("0x112")](t.getFirstRange().start,n))}e[za("0x48")]()}}class Va{constructor(t){this._editor=t,this[za("0xfb")]=t[za("0xc5")],this[za("0x4a")]=new Map,this._defaultCallbacks=new Map,this[za("0xbd")]()}[za("0xfc")](t,e,n,o,s,r){return new Zo(this[za("0xfb")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x127")](t,e,za("0x39"))(...n),onDiscard:(...n)=>this[za("0x127")](t,e,za("0xa1"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[za("0x4a")].set(s,o)}[za("0x127")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x4a")].get(o)||this[za("0xa4")].get(t+":"+n)}[za("0xbd")](){const t=()=>{},e=t=>{t[za("0xca")](((t,e)=>t[za("0x7")][za("0x123")](e.start)?1:-1)),this[za("0xfb")][za("0x12c")]((e=>{for(const n of t){let t;t=n[za("0x63")][za("0xc0")]&&n[za("0x63")][za("0x65")]==n[za("0x7")][za("0xf4")]?e.createSelection(n[za("0x7")][za("0xf4")],"on"):e.createSelection(n),this[za("0xfb")][za("0x2c")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x12c")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(qa(t)&&(t=this[za("0xfb")].createRange(t[za("0x63")])),t)))[za("0x68")]((t=>"$graveyard"!==t[za("0xef")][za("0xf2")]));if(r[za("0xb5")]<1)return;const x=Array[za("0xa")](this[za("0xfb")][za("0x5c")][za("0xd3")][za("0xc8")]())[za("0xc6")]((t=>i.LiveRange[za("0x9d")](t)));n[za("0x78")](r);for(const t of this[za("0x12e")][za("0xbb")].commands())t[za("0xe5")]();s[za("0x5")]({forceDefaultExecution:!0}),this[za("0x12e")][za("0x97")](o,...s);const a=x[za("0x68")]((t=>za("0x114")!=t[za("0xef")][za("0xf2")]));a[za("0xb5")]>0&&n[za("0x78")](a);for(const t of x)t[za("0xd2")]()}))},o=(t,e)=>1==t.length&&1==e[za("0xb5")]&&t[0][za("0x63")][za("0x31")](e[0][za("0x7")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xfb")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0xa4")][za("0x12b")](za("0x7b"),t),this[za("0xa4")][za("0x12b")]("insertion:discard",e),this[za("0xa4")].set("insertion:join",o),this._defaultCallbacks[za("0x12b")](za("0xc9"),s),this[za("0xa4")][za("0x12b")](za("0x32"),e),this._defaultCallbacks[za("0x12b")]("deletion:discard",t),this[za("0xa4")][za("0x12b")](za("0xcc"),o),this[za("0xa4")][za("0x12b")](za("0x11c"),s),this[za("0xa4")][za("0x12b")]("formatInline:accept",n),this[za("0xa4")][za("0x12b")](za("0x11f"),t),this[za("0xa4")][za("0x12b")]("formatInline:join",o),this[za("0xa4")][za("0x12b")](za("0x8"),t),this._defaultCallbacks[za("0x12b")]("formatBlock:accept",n),this[za("0xa4")][za("0x12b")]("formatBlock:discard",t),this[za("0xa4")][za("0x12b")](za("0x4b"),o),this[za("0xa4")].set("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0x9b")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0xa6")](o))return!1;if(t.isObject(o)||t[za("0xc")](o))return!0}return!1}function qa(t){return t[za("0x63")].parent==t[za("0x7")][za("0xf4")]&&t[za("0x63")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[za("0xec")].is("$textProxy")&&!o.isObject(t[za("0xec")]),r=t[za("0x7")].getLastMatchingPosition(s),i=t[za("0x63")][za("0x3")](s,{direction:za("0xea")});return!(t[za("0x7")].isEqual(r)&&t[za("0x63")][za("0x31")](i)||(r[za("0x123")](i)?n[za("0xed")](e,{range:n.createRange(r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x7")].nodeAfter;return e&&e.is(za("0x1a"))}function Qa(t,e){const n=e[za("0x62")].isObject(t)||e[za("0x62")][za("0x5d")](t);return e[za("0x112")](e[za("0x6a")](t,za("0x10c")),n?e.createPositionAfter(t):e[za("0x6a")](t,za("0x63")))}function Za(t,e,n,o,s){if(n[za("0x63")][za("0x31")](o.start))return!0;if(t[za("0x8f")]!=e[za("0x8f")])return!1;if(!n[za("0x63")][za("0x56")](o[za("0x7")]))return!1;const r=s[za("0x112")](n[za("0x63")],o[za("0x7")])[za("0x8e")]();for(const t of r)if([za("0x10e"),"elementEnd"][za("0x40")](t[za("0x8f")])&&s.schema.isLimit(t.item))return!1;return!0}const Ya=["change:isDirty","_acceptCommand","_discardCommand","isDirty","PENDING_ACTION_SUGGESTION","canDiscard","unbind","commands","PendingActions","model","remove","discardSuggestion","execute","_removePendingAction","canAccept","_pendingAction","get","_setPendingAction","listenTo","_editor","plugins","locale","acceptSuggestion","add","getRanges","isEnabled","destroy","bind","commentThreadController","view"];var tc,ec;tc=Ya,ec=281,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("0x1c")]=e,this.view=n,this[nc("0x11")]=o,this[nc("0x8")]=t,this[nc("0x14")]=t[nc("0x1a")][nc("0x5")](nc("0xb")),this[nc("0x15")]=t[nc("0x1a")][nc("0x5")](nc("0x0")),this[nc("0x12")][nc("0x10")](nc("0xe")).to(this[nc("0x14")],this[nc("0x15")],((t,e)=>t||e)),this[nc("0x12")][nc("0x10")](nc("0x3")).to(this._acceptCommand,nc("0xe"),(t=>t&&this[nc("0x8")].model.canEditAt(e[nc("0xd")]()))),this.view[nc("0x10")](nc("0x18")).to(this[nc("0x15")],nc("0xe"),(t=>t&&this[nc("0x8")].model.canEditAt(e[nc("0xd")]()))),this[nc("0x4")]=null,n.isDirty&&this[nc("0x6")](),this.listenTo(n,"acceptSuggestion",(()=>this[nc("0xb")]())),this[nc("0x7")](n,nc("0x0"),(()=>this[nc("0x0")]())),this[nc("0x7")](n,nc("0x13"),(()=>{n[nc("0x16")]?this[nc("0x6")]():this[nc("0x2")]()}))}[nc("0xb")](){this._acceptCommand[nc("0x1")](this[nc("0x1c")].id)}discardSuggestion(){this._discardCommand[nc("0x1")](this[nc("0x1c")].id)}[nc("0xf")](){this[nc("0x12")][nc("0x19")](nc("0xe")),this[nc("0x12")][nc("0x19")](nc("0x3")),this[nc("0x12")][nc("0x19")](nc("0x18")),this.stopListening(),this[nc("0x11")][nc("0xf")](),this._pendingAction&&this._removePendingAction()}[nc("0x6")](){const t=Yo(this[nc("0x8")][nc("0xa")],nc("0x17"));this[nc("0x4")]=this[nc("0x8")].plugins[nc("0x5")]("PendingActions")[nc("0xc")](t)}_removePendingAction(){null!==this._pendingAction&&this[nc("0x8")][nc("0x9")][nc("0x5")](nc("0x1b"))[nc("0x1d")](this[nc("0x4")]),this._pendingAction=null}}const sc=["updateComment","commentThreadInputView","bind","value","isReadOnly","removeComment","set","commentsListView","authoredAt","commentInputView","disableComments","_createCommentThreadInputView","locale","assign","isActive","_createCommentViews","editor","delegate","element","canDiscard","submit","focus","editorConfig","cancel","hasDirtyComment","CommentView","disabledSubmit","canAccept","isEnabled","_config","_model","length","addComment","commentThread","isDirty","setData","destroy","_localUser","descriptionParts"];var rc,ic;rc=sc,ic=492,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.commentsListView=null,this[xc("0x10")]=null,this.set(xc("0x1d"),!1),this[xc("0x15")](xc("0x17"),e[xc("0x17")]),this.bind("authoredAt").to(e),this[xc("0x15")](xc("0xe"),[]),this[xc("0x15")]("isDirty",!1),this[xc("0x15")](xc("0x4"),!1),this[xc("0x15")](xc("0x3"),!1),this[xc("0x15")](xc("0x22"),!1),this[xc("0x6")]=e,this[xc("0xd")]=n,this[xc("0x5")]=o,o[xc("0x19")]?this[xc("0x15")](xc("0x7"),1):this[xc("0x1e")]()}focus(){this[xc("0x21")][xc("0x24")]()}destroy(){this[xc("0x16")]&&this[xc("0x16")][xc("0xc")](),this[xc("0x10")]&&this.commentThreadInputView[xc("0xc")](),super.destroy()}[xc("0x1e")](){const{CommentsListView:t}=this[xc("0x5")];this[xc("0x16")]=new t(this[xc("0x1b")],this[xc("0x6")][xc("0x9")],Object[xc("0x1c")]({CommentView:this[xc("0x5")][xc("0x1")]},this[xc("0x5")])),this[xc("0x16")].delegate("removeComment").to(this),this[xc("0x16")][xc("0x20")](xc("0xf")).to(this),this.commentsListView[xc("0x11")](xc("0x1d")).to(this),this.set("length",this[xc("0x16")][xc("0x7")]+1),this[xc("0x11")]("length").to(this[xc("0x16")],xc("0x7"),(t=>t+1)),this.commentThreadInputView=this[xc("0x1a")](),this.on(xc("0x14"),(()=>this.focus())),this[xc("0x11")](xc("0xa")).to(this[xc("0x16")],xc("0x0"),this[xc("0x10")].commentInputView,xc("0x12"),((t,e)=>t||!!e))}[xc("0x1a")](){const{CommentThreadInputView:t}=this[xc("0x5")],e=new t(this.locale,this[xc("0xd")],this._config[xc("0x25")]),n=e[xc("0x18")];return e[xc("0x11")]("showInput").to(this,xc("0x1d"),this._model.commentThread,xc("0x13"),n,xc("0x12"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x23"),((t,e)=>{this.fire(xc("0x8"),e),n[xc("0x1f")][xc("0xb")]("")})),n.on(xc("0x26"),(()=>this.focus())),n[xc("0x11")](xc("0x2")).to(this[xc("0x6")][xc("0x9")],xc("0x13")),e}}const cc=["color","author","Accept suggestion","importWord","push","userView","</span>","ck-annotation__main","execute","ck-comment__info-time","cancel","_model","type","ck-annotation__user","commentThread","_config","_createButton","ck-suggestion__main","isEnabled","<p>","content","formatDateTime","ck-suggestion--discard","ck-suggestion__info-name","extendTemplate","ck-annotation__info-time","split","check","ck-suggestion__user","getExternalSuggestionNote","ck-annotation","innerHTML","getUserViewNotificationText","change:description","render","commentsListView","isExternal","isActive","element","name",'"></span>',"div","bind","locale","attributes","description",'" title="',"children","authoredAt","ck-annotation__info-name","EXTERNAL_IMPORT_WORD_AVATAR","map","discardButton",'<span class="ck-suggestion-color" style="background-color: ',"value","set","span","ck-suggestion__actions","creator","canDiscard","ck-suggestion-wrapper--active","@external","Discard suggestion","join",".ck-annotation__content-wrapper","EXTERNAL_AVATAR","ck-suggestion--disabled-comments","commentThreadInputView","_descriptionElement","ck-suggestion__info","descriptionParts","source","getTemplate",'<span class="ck-suggestion-type">',"bindTemplate","ck-comment__external","disableComments","ck-annotation__info"];var lc,uc;lc=cc,uc=405,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[dc("0x28")](dc("0x4b"),""),this[dc("0x1b")](dc("0x4b")).to(this,dc("0x37"),(t=>t&&t[0]?t[0][dc("0x4b")]:"")),this[dc("0x1b")](dc("0x1e")).to(this,"descriptionParts",this,dc("0x16"),((t,e)=>{let n="";for(const e of t)n+=dc("0x4")+mc(e[dc("0x5")],e[dc("0x3f")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[dc("0x1")](Yo(e,dc("0x41")),t.icons[dc("0xc")],"ck-suggestion--accept","acceptSuggestion","sw"),this.acceptButton.bind(dc("0x3")).to(this,"canAccept"),this[dc("0x25")]=this[dc("0x1")](Yo(e,dc("0x2f")),t.icons[dc("0x49")],dc("0x7"),"discardSuggestion","sw"),this[dc("0x25")][dc("0x1b")](dc("0x3")).to(this,dc("0x2c")),this[dc("0x44")]=new r.UserView(e,this[dc("0x4a")][dc("0x40")],this[dc("0x11")]()),this[dc("0x44")].extendTemplate({attributes:{class:[dc("0xd"),dc("0x4c")]}}),this.setTemplate(this[dc("0x39")]())}getTemplate(){const t=this[dc("0x3b")],e=[{tag:"div",attributes:{class:[dc("0x36"),dc("0x3e")]},children:[{tag:dc("0x29"),children:[{text:this[dc("0x44")].name}],attributes:{class:[dc("0x8"),dc("0x22")]}},{tag:"time",attributes:{datetime:t.to(dc("0x21")),class:[dc("0x48"),dc("0xa")]},children:[{text:t.to(dc("0x21"),(t=>this[dc("0x0")][dc("0x6")](t)))}]}]},{tag:dc("0x1a"),attributes:{class:[dc("0x2a"),"ck-annotation__actions"]},children:[this.acceptButton,this[dc("0x25")]]},{tag:dc("0x1a"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[dc("0x15")]&&e[dc("0x43")]({tag:"div",attributes:{class:[dc("0x3c")]},children:[{text:this[dc("0xe")]()}]});const n={tag:dc("0x1a"),attributes:{class:["ck-suggestion-wrapper",t.if(dc("0x16"),dc("0x2d")),t.to(dc("0x4b"),(t=>"ck-suggestion-"+t)),this[dc("0x0")][dc("0x3d")]&&dc("0x33")],"data-suggestion-id":this[dc("0x4a")].id,"data-thread-id":this[dc("0x4a")][dc("0x4d")].id,"data-author-id":this[dc("0x4a")][dc("0x40")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",dc("0xf")]},children:[this[dc("0x44")],{tag:dc("0x1a"),attributes:{class:[dc("0x2"),dc("0x46")]},children:e}]}]};return this[dc("0x14")]&&this.commentThreadInputView&&n[dc("0x20")][dc("0x43")](this.commentsListView,this[dc("0x34")]),n}[dc("0x13")](){super[dc("0x13")](),this[dc("0x35")]=this[dc("0x17")].querySelector(dc("0x31")),this[dc("0x35")].innerHTML=this[dc("0x1e")],this.on(dc("0x12"),((t,e,n)=>{this[dc("0x35")][dc("0x10")]=n}))}[dc("0x1")](t,e,n,o,r){const i=new s.ButtonView(this[dc("0x1c")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x9")]({attributes:{class:n}}),i.on(dc("0x47"),(()=>{this.fire(o,this[dc("0x4a")].id)})),i}getExternalSuggestionNote(){return dc("0x42")===this[dc("0x4a")][dc("0x1d")][dc("0x2e")][dc("0x38")]?Yo(this[dc("0x1c")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,"EXTERNAL_SUGGESTION")}[dc("0x11")](){return this[dc("0x4a")][dc("0x15")]?dc("0x42")===this[dc("0x4a")].attributes[dc("0x2e")][dc("0x38")]?Yo(this[dc("0x1c")],dc("0x23"),this[dc("0x4a")][dc("0x2b")][dc("0x18")]):Yo(this[dc("0x1c")],dc("0x32"),this._model.creator[dc("0x18")]):null}}function mc(t,e){let n="";return n+=t[dc("0xb")]("*")[dc("0x24")](((t,e)=>e%2!=0?dc("0x3a")+fc(t)+dc("0x45"):fc(t)))[dc("0x30")](""),e&&(n+=dc("0x26")+e[dc("0x27")]+dc("0x1f")+e.title+dc("0x19")),n}function fc(t){const e=document.createElement(dc("0x29"));return e.innerText=t,e[dc("0x10")]}const hc=["discardButton","addComment","EditorAnnotations","comments.maxCommentsWhenCollapsed","listenTo","Annotations","locale","button","view","_refreshActiveMarkers","activeMarkers","comments.maxCommentCharsWhenCollapsed","delete","execute","_handleControllerBuffer","CommentsRepository","model","values","previous","getAllAdjacentSuggestions","reduce","get","trackChanges","comments.editorConfig","getMarkers","_createUIButton","acceptAllSuggestions","config","plugins","_updateController","size","change:activeAnnotations","suggestionChanged","unbind","toMany","isOn","componentFactory","_handleSuggestionControllerDelayed","_disableComments","suggestionUnloaded","length","change:previous","mainView","isInContent","destroy","suggestion-","refreshSelectedViews","bind","editing","has","TrackChangesUI","SuggestionThreadView","isDirty","buttonView","isEnabled","acceptButton","arrowView","editor","actionView","commands","discardAllSuggestions","_suggestionToController","remove","getRanges","requires","_initializeController","Discard all selected suggestions","add","switchbutton","some","push","suggestionLoaded","descriptionParts","trackChanges.disableComments","type","keys","Track changes","addSourceCollector","filter","_annotationViews","registerAnnotation","lowest","set","getDescriptions","_destroyController","TrackChangesEditing","focus","value","isMultiRange","head","from","clear","getFirstRange","commandName","_viewToController","innerView","getSuggestion","_descriptionFactory","separator","stopListening","comments.maxThreadTotalWeight","comments","getMarkerNames"];var pc,bc;pc=hc,bc=450,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("0x1a")](){return[Wa,r.Users,Ec("0x50"),Ec("0x46"),Ec("0x43")]}static get pluginName(){return Ec("0xc")}constructor(t){super(t),this[Ec("0x17")]=new Map,this._viewToController=new Map,this[Ec("0x29")]=new Map,this[Ec("0x4f")]=new Map;const e=this[Ec("0x13")][Ec("0x5c")];e.define("trackChanges.SuggestionThreadView",gc),e.define(Ec("0x23"),!1),this[Ec("0x0")]=e[Ec("0x56")](Ec("0x23"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x4f")][Ec("0x5f")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x4f")]){const n=this[Ec("0x17")][Ec("0xb")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x1b")](t)}this[Ec("0x13")].plugins[Ec("0x56")](Ec("0x43"))[Ec("0x8")](),this[Ec("0x4a")](),this[Ec("0x4f")][Ec("0x35")]()}),10),this._handleControllerBuffer[Ec("0x2c")](t,e)}init(){const t=this.editor,e=t[Ec("0x5d")][Ec("0x56")](Ec("0x2f")),n=t[Ec("0x5d")][Ec("0x56")](Ec("0x46")),o=t.plugins[Ec("0x56")](Ec("0x43")),s=t[Ec("0x5d")][Ec("0x56")](Ec("0x50"));t.ui[Ec("0x65")].add(Ec("0x57"),(t=>this[Ec("0x5a")](t))),o[Ec("0x27")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x34")](this[Ec("0x17")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Ec("0x5")])continue;if(t[Ec("0x32")]){s[Ec("0x20")](...t[Ec("0x19")]());continue}const e=t[Ec("0x36")]();if(s[Ec("0x2")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Ec("0x20")](e)}t[Ec("0x20")]([n.view,s])}return t})),this[Ec("0x45")](e,Ec("0x21"),((t,e)=>{this[Ec("0x45")](e,Ec("0x3"),((t,n,o,s)=>{e[Ec("0x5")]&&(null==o?(this[Ec("0x5e")](s[Ec("0x33")]),this[Ec("0x66")](e,!1)):(this[Ec("0x5e")](o[Ec("0x33")]),this[Ec("0x66")](e,!0)))})),null===e[Ec("0x53")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Ec("0x33")])})),this[Ec("0x45")](e,Ec("0x1"),((t,e,n)=>{this[Ec("0x3d")](e,"change:previous"),this[Ec("0x4f")][Ec("0x4d")](e);const o=n?n[Ec("0x33")]:e,s=this[Ec("0x17")][Ec("0x56")](o);null!==n&&this[Ec("0x5e")](o),null===n&&s&&this[Ec("0x2e")](e)})),this[Ec("0x45")](e,Ec("0x61"),((t,e)=>{this[Ec("0x5e")](e)})),this[Ec("0x45")](n,Ec("0x60"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,Ec("0x42"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x3a")](n);this[Ec("0x17")][Ec("0x56")](s)[Ec("0x49")][Ec("0x30")]()}),{priority:Ec("0x2b")})}[Ec("0x4a")](){const t=this.editor[Ec("0x5d")].get(Ec("0x46")),e=this[Ec("0x13")].plugins.get(Ec("0x2f")),n=Array[Ec("0x34")](t.activeAnnotations,(t=>t[Ec("0x39")]))[Ec("0x28")]((t=>this[Ec("0x38")][Ec("0xb")](t))),o=[];for(const t of n){const e=this._viewToController.get(t).model[Ec("0x54")]();o[Ec("0x20")](...e[Ec("0x55")](((t,e)=>[...t,...e[Ec("0x40")]()]),[]))}e[Ec("0x4b")]=o}[Ec("0x5a")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x13")][Ec("0x15")][Ec("0x56")](Ec("0x57")),r=Yo(t,Ec("0x26"));n.buttonView[Ec("0x2c")]({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("0xf")].bind(Ec("0x64")).to(o,Ec("0x31")),n[Ec("0xf")].on(Ec("0x4e"),(()=>{o.execute(),this.editor[Ec("0xa")].view[Ec("0x30")]()}));const i=new e.Collection,x=[{type:Ec("0x1e"),model:{withText:!0,label:r,commandName:Ec("0x57")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x5b")}},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:"acceptSelectedSuggestions"}},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x16")}},{type:Ec("0x48"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x3c")};if(t[Ec("0x51")]){const n=new s.Model(t.model),o=this[Ec("0x13")][Ec("0x15")][Ec("0x56")](n[Ec("0x37")]);n[Ec("0x9")]("isOn",Ec("0x10")).to(o,Ec("0x31"),Ec("0x10")),e={type:t[Ec("0x24")],model:n}}i[Ec("0x1d")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x28")]((t=>null!=t[Ec("0x51")])).map((t=>this[Ec("0x13")].commands[Ec("0x56")](t.model.commandName))),c=n[Ec("0xf")];return c[Ec("0x14")].unbind(Ec("0x10")),c[Ec("0x12")][Ec("0x62")]("isEnabled"),c[Ec("0x14")].bind(Ec("0x10")).to(o,Ec("0x10")),c[Ec("0x12")][Ec("0x9")](Ec("0x10"))[Ec("0x63")](a,Ec("0x10"),((...t)=>t[Ec("0x1f")]((t=>t)))),n.on(Ec("0x4e"),(t=>{this[Ec("0x13")].execute(t.source[Ec("0x37")]),this[Ec("0x13")][Ec("0xa")].view[Ec("0x30")]()})),n}[Ec("0x1b")](t){const e=this[Ec("0x13")],n=e.config,o=e[Ec("0x5d")][Ec("0x56")](Ec("0x46")),s=e[Ec("0x5d")][Ec("0x56")](Ec("0x50")),i=e[Ec("0x5d")][Ec("0x56")](Ec("0x43")),x=e[Ec("0x5d")][Ec("0x56")](r.Users).me,a=n.get(Ec("0x57"))[Ec("0xd")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x5d")].get("CommentsUI");let u,d;this[Ec("0x29")][Ec("0xb")](t.id)?(d=this[Ec("0x29")][Ec("0x56")](t.id),u=d[Ec("0x4")]):(u=new a(e.locale,t,x,{disableComments:this[Ec("0x0")],editorConfig:n[Ec("0x56")](Ec("0x58")),maxCommentsWhenCollapsed:n.get(Ec("0x44")),maxThreadTotalWeight:n[Ec("0x56")](Ec("0x3e")),maxCommentCharsWhenCollapsed:n[Ec("0x56")](Ec("0x4c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x56")](Ec("0x47"))),CommentView:n[Ec("0x56")](Ec("0x3f")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x11")].on(Ec("0x4e"),(()=>{e.editing[Ec("0x49")][Ec("0x30")]()})),u[Ec("0x41")].on(Ec("0x4e"),(()=>{e[Ec("0xa")][Ec("0x49")][Ec("0x30")]()})),d=o.createAnnotationView(this.editor[Ec("0x47")],u),d.bind(Ec("0xe")).to(u,Ec("0xe")),d[Ec("0x9")](Ec("0x2")).to(u),d[Ec("0x9")](Ec("0x24")).to(u,Ec("0x24"),(t=>Ec("0x7")+t)),this[Ec("0x29")][Ec("0x2c")](t.id,d));const g=s.createCommentThreadController(t.commentThread,u),m=new oc(e,t,u,g),f=t[Ec("0x54")]()[Ec("0x28")]((t=>t.isInContent));u[Ec("0x22")]=e[Ec("0x5d")][Ec("0x56")](Ec("0x2f"))._descriptionFactory[Ec("0x2d")](f),this[Ec("0x17")].set(t,m),this[Ec("0x38")][Ec("0x2c")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions().filter((t=>t[Ec("0x5")]));for(const t of o)n[Ec("0x20")](...t[Ec("0x59")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xa")],n)},type:()=>"suggestion-"+m[Ec("0x49")].type});o[Ec("0x1d")](h),i[Ec("0x2a")](h)}_destroyController(t){const e=this[Ec("0x13")][Ec("0x5d")][Ec("0x56")]("Annotations"),n=this[Ec("0x17")][Ec("0x56")](t),o=n[Ec("0x49")],s=e.getByInnerView(o);s&&e[Ec("0x18")](s),this._suggestionToController.delete(t),this[Ec("0x38")][Ec("0x4d")](o),n[Ec("0x6")]()}[Ec("0x5e")](t){if(!t[Ec("0x5")]||!this[Ec("0x17")][Ec("0xb")](t))return;const e=this.editor[Ec("0x5d")][Ec("0x56")](Ec("0x2f")),n=this._suggestionToController[Ec("0x56")](t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ec("0x3b")][Ec("0x2d")](o)}[Ec("0x6")](){for(const t of this._suggestionToController[Ec("0x25")]())this[Ec("0x2e")](t);for(const t of this._annotationViews[Ec("0x52")]())t[Ec("0x4")][Ec("0x6")]();super[Ec("0x6")]()}}var Tc,Cc,yc=["getSuggestion","addSuggestion","pluginName","plugins","getSuggestions","get","editor","addSuggestionData","Comments","TrackChanges","requires","adapter"];Tc=yc,Cc=183,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("0x7")](){return[Wa,_c,kc("0x5")]}static get[kc("0xb")](){return kc("0x6")}set adapter(t){this[kc("0x3")][kc("0x0")].get(Wa)[kc("0x8")]=t}get[kc("0x8")](){return this.editor[kc("0x0")][kc("0x2")](Wa)[kc("0x8")]}[kc("0xa")](t){return this[kc("0x3")][kc("0x0")][kc("0x2")](Wa)[kc("0x4")](t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x3")][kc("0x0")][kc("0x2")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x9")](t){return this[kc("0x3")][kc("0x0")][kc("0x2")](Wa)[kc("0x9")](t)}}const vc=["initialData","Users","end","get","concat","TrackChangesDataGetter","tokenUrl","pluginName","createElement","reduce","TrackChangesEditing","track-changes-data-invalid-editor-creator","WebSocketGateway","getDataWithAcceptedSuggestions","createDocumentFragment","requires","getDataWithDiscardedSuggestions","filter","init","includes","data","editorCreator","execute","constructor","div","appendChild","string","find","from","function","model","acceptAllSuggestions","DocumentOutline","addSuggestionData","has","plugins","getSuggestions","useAnonymousUser","Autosave","users","map","define","name","trackChangesData.editorCreator","cloudServices","_context","_adapter","addUser","extraPlugins","getRootNames","names","editor","context","CommentsRepository","toolbar","set","destroy","push","every","create","builtinPlugins","getUser","config","WordCount","TrackChangesData"];var Rc,Sc;Rc=vc,Sc=107,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x17"),Ic("0xa"),Ic("0xc")],wc=[Ic("0x23"),"RevisionTracker",Ic("0x3d"),Ic("0x15"),"Pagination",Ic("0x37")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x1e")](){return Ic("0x16")}init(){const t=this[Ic("0x9")];if(t.config[Ic("0x40")](Ic("0x1"),(e=>t[Ic("0x2e")][Ic("0x11")]("",e))),"function"!=typeof t[Ic("0x14")][Ic("0x1a")]("trackChangesData")[Ic("0x2c")])throw new e.CKEditorError(Ic("0x22"))}[Ic("0x24")](t){return Fc(this[Ic("0x9")],!0,t)}[Ic("0x27")](t){return Fc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Ic("0x1e")](){return Ic("0x1c")}constructor(t){super(t),this.result=Ic("0x19")}[Ic("0x29")](){this[Ic("0x9")][Ic("0x3a")].get(Ic("0xb"))[Ic("0x4")]={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("0x3a")][Ic("0x1a")]("TrackChangesEditing")[Ic("0x4")]=null}}async function Fc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ic("0x8")]())Lc[Ic("0x2a")](n)||(e[n]=t[Ic("0x14")].get(n));e[Ic("0x2")]&&e[Ic("0x2")].tokenUrl&&delete e.cloudServices[Ic("0x1d")];const n=t[Ic("0x2e")][Ic("0x12")]||[],o=e[Ic("0x6")]||[];delete e.extraPlugins;const s=t[Ic("0x3")].config[Ic("0x1a")](Ic("0x3a"))||[],r=n[Ic("0x1b")](e[Ic("0x3a")]).concat(o)[Ic("0x1b")](s)[Ic("0x3f")]((t=>Ic("0x31")==typeof t?n[Ic("0x32")]((e=>e[Ic("0x1e")]==t)):t)),i=Array[Ic("0x33")](new Set(r)),x=new Map;return e[Ic("0x3a")]=i[Ic("0x28")]((t=>Oc(t,x))),e[Ic("0x3a")].push(Wa),e[Ic("0x3a")][Ic("0xf")](Mc),e}(t),s=document[Ic("0x25")](),r=t[Ic("0x14")][Ic("0x1a")]("trackChangesData")[Ic("0x2c")],i=await r(o,(()=>function(t){const e=document[Ic("0x1f")](Ic("0x2f"));return t[Ic("0x30")](e),e}(s)));!function(t,e){const n=t[Ic("0x35")].document[Ic("0x7")]()[Ic("0x20")](((e,n)=>(e[n]=t[Ic("0x2b")].get({rootName:n}),e)),{}),o=t.plugins[Ic("0x1a")]("Users")[Ic("0x3e")][Ic("0x3f")]((t=>({id:t.id,name:t[Ic("0x0")]}))),s=t[Ic("0x3a")][Ic("0x1a")]("TrackChangesEditing")[Ic("0x3b")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x3a")][Ic("0x1a")](Ic("0x18")),i=e[Ic("0x3a")][Ic("0x1a")](Ic("0x21"));for(const t of o)r[Ic("0x13")](t.id)||r[Ic("0x5")](t);r.me||r[Ic("0x3c")]();for(const t of s)i[Ic("0x38")](t);e[Ic("0x2b")][Ic("0xd")](n)}(t,i),i[Ic("0x2d")](e?Ic("0x36"):"discardAllSuggestions");const x=i[Ic("0x2b")][Ic("0x1a")](n);return await i[Ic("0xe")](),x}function Oc(t,e){const n=Ic("0x34")==typeof t?t[Ic("0x1e")]||t[Ic("0x0")]:t;if(e[Ic("0x39")](n))return e[Ic("0x1a")](n);if(e.set(n,!0),n&&wc[Ic("0x2a")](n))return e[Ic("0xd")](n,!1),!1;if(!t.requires)return e[Ic("0xd")](n,!0),!0;const o=t[Ic("0x26")][Ic("0x10")]((t=>Oc(t,e)));return e[Ic("0xd")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|