@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230914.0 → 0.0.0-nightly-20230915.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- 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:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["value","refresh","_isEnabledBasedOnSelection","isEnabled","has","_enabledCommands","forceDisabled","_disableUnsupportedCommands","TrackChangesCommand","affectsData","commands","clearForceDisabled","_enableCommands"];var c,l;c=a,l=257,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("0x3")]=!1,this[u("0x4")](),this[u("0x5")]=!1}refresh(){this[u("0x6")]=!0}execute(){this.value=!this[u("0x3")],this[u("0x3")]?this[u("0xa")]():this[u("0x2")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0x0")][u("0x0")]())t[u("0xc")]&&!this[u("0x8")][u("0x7")](t)&&t[u("0x9")]("TrackChangesCommand")}_enableCommands(){for(const t of this.editor[u("0x0")][u("0x0")]())t[u("0xc")]&&!this[u("0x8")][u("0x7")](t)&&t[u("0x1")](u("0xb"))}}const g=["canEditAt","execute","editor","refresh","get","getRanges","isEnabled","plugins","acceptSuggestion"];var m,f;m=g,f=211,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._suggestions=e,this[h("0x8")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x2")]=!0}[h("0x6")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x1")]();this.editor.model[h("0x5")](o)&&this[h("0x7")][h("0x3")][h("0x0")]("TrackChangesEditing")[h("0x4")](n)}}const b=["TrackChangesEditing","get","discardSuggestion","getRanges","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins","refresh","execute","isEnabled"];var E,_;E=b,_=309,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._suggestions=e,this.refresh(),this[T("0x6")]=!1}[T("0x8")](){this[T("0x0")]=!0}[T("0x9")](t){const n=this._suggestions[T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const o=n[T("0x4")]();this.editor.model.canEditAt(o)&&this.editor[T("0x7")].get(T("0x1"))[T("0x3")](n)}}const y=["sort","isArray","createPositionAfter","createPositionBefore","start"," [color ","change","from","createRange","join","value","getRanges","deletion","type","isIntersecting","splice","map","schema","content","replace","execute","isObject","createPositionAt","next","length","isTouching","isInContent","push","isMultiRange","add","color","end"];var k,A;k=y,A=229,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1b")](((t,e)=>v("0x7")==t[v("0x8")]&&v("0x7")!=e[v("0x8")]?-1:v("0x7")!=t.type&&v("0x7")==e[v("0x8")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t[v("0x13")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s[v("0x16")](e[v("0x3")](n,r[v("0x10")](i)?e[v("0x1d")](i):e[v("0x11")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x1d")](e),s=t[v("0x1e")](n);return o[v("0x14")](s)}function L(t,e,n){for(;n[v("0x13")];){const o=n[v("0xa")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x15")]&&e[v("0xf")](t.id)}))}}const N=["execute","isInContent","editor","some","values","model","from","refresh","_command","isEnabled"];var M,w;M=N,w=225,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x3")]=e,this._suggestions=n,this[O("0x2")](),this._isEnabledBasedOnSelection=!1}[O("0x2")](){const t=Array[O("0x1")](this._suggestions[O("0x9")]())[O("0x8")]((t=>t[O("0x6")]));this[O("0x4")]=this[O("0x3")][O("0x4")]&&t}[O("0x5")](){const t=R(Array[O("0x1")](this._suggestions.values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x0")].canEditAt(t))return}L(this.editor.model,this[O("0x3")],t)}}const P=["from","isEnabled","_selectedSuggestions","refresh","canEditAt","_suggestions","editor","_isEnabledBasedOnSelection","_command","getRanges","model","document","selection"];var D,B;D=P,B=354,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("0x5")]=e,this[j("0x2")]=n,this[j("0xc")]=new Set,this[j("0x0")](),this[j("0x4")]=!1}[j("0x0")](){const t=this[j("0x3")][j("0x7")][j("0x8")][j("0x9")],e=Array[j("0xa")](this[j("0x2")].values());this[j("0xc")]=function(t,e){const n=Array[v("0x2")](t[v("0x6")]()),o=new Set;for(const s of e)if(s[v("0x15")])for(const e of n)for(const n of s.getRanges())(e[v("0x9")](n)||t.isCollapsed&&!s[v("0x17")]&&s[v("0x12")]&&n[v("0x1a")][v("0x14")](e[v("0x1f")]))&&o[v("0x18")](s);return o}(t,e),this[j("0xb")]=this[j("0x5")][j("0xb")]&&!!this[j("0xc")].size}execute(){const t=R(Array[j("0xa")](this[j("0xc")]));for(const e of t){const t=e[j("0x6")]();if(!this[j("0x3")][j("0x7")][j("0x1")](t))return}L(this[j("0x3")][j("0x7")],this[j("0x5")],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 X=function(t){return z(this.__data__,t)>-1};const q=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=X,$.prototype.set=q;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 Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const Xt=function(t){return Wt(this,t).has(t)};const qt=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=Xt,$t.prototype.set=qt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,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 Ne=Object.prototype.hasOwnProperty;const Me=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&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const 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(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const Xn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const $n=qn?ke(qn):Xn;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,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=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:wo.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 Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?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):Mo(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),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["length","onAccept","isIntersecting","authoredAt","decorate","nodeBefore","delete","next","hasComments","isExternal","getMarkerNames","map","onDiscard","clear","getRange","getItems","getRanges","discard","_onDiscard","head","setAttribute","isMultiRange","removeAttribute","push","addRange","suggestion:","from","substr","author","getFirstMarker","getMarkers","data","set","removeMarker","change","previous","isIntersectingWithRange","accept","add","_model","createdAt","removeMarkers","size","type","subType","filter","split","reduce","addMarkerName","end","_markerNames","commentThread","creator","_onAttributesChange","attributes","isInContent","start","nodeAfter"];var $o,Jo;$o=qo,Jo=305,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Qo("0x1c")]=e[Qo("0x1c")],this[Qo("0x1d")]=e[Qo("0x1d")]||null,this[Qo("0xd")]=e.author,this[Qo("0x25")]=e.creator||e.author,this[Qo("0x34")]=Boolean(e[Qo("0x27")]&&e[Qo("0x27")]["@external"]),this[Qo("0x10")]=null,this._model=t,this._onAccept=e[Qo("0x2c")],this[Qo("0x3")]=e[Qo("0x37")],this[Qo("0x26")]=e.onAttributesChange,this[Qo("0x23")]=new Set,this[Qo("0x19")]=null,this[Qo("0x11")](Qo("0x2e"),null),this[Qo("0x11")](Qo("0x27"),e[Qo("0x27")]||{}),this[Qo("0x11")](Qo("0x14"),null),this[Qo("0x11")]("next",null),this[Qo("0x11")](Qo("0x24"),null),this[Qo("0x11")]("_saved",!1),this[Qo("0x2f")](Qo("0x16")),this[Qo("0x2f")](Qo("0x2"))}get[Qo("0x4")](){let t=this;for(;t[Qo("0x14")];)t=t[Qo("0x14")];return t}get[Qo("0x33")](){return!!this[Qo("0x24")]&&this.commentThread.length>0}get[Qo("0x6")](){return 0!=this[Qo("0x23")][Qo("0x1b")]&&6==Array[Qo("0xb")](this[Qo("0x23")])[0][Qo("0x1f")](":").length}get[Qo("0x28")](){return null!==this[Qo("0xe")]()}[Qo("0x21")](t){this[Qo("0x23")][Qo("0x17")](t)}[Qo("0x35")](){return Array.from(this[Qo("0x23")])}[Qo("0xf")](){return this[Qo("0x35")]()[Qo("0x36")]((t=>this._model.markers.get(t)))[Qo("0x1e")]((t=>t))}[Qo("0xe")](){return this.getMarkers()[0]||null}[Qo("0x1a")](){this._model[Qo("0x13")]((t=>{for(const e of this[Qo("0xf")]())t[Qo("0x12")](e)})),this[Qo("0x23")][Qo("0x38")]()}[Qo("0x12")](t){this[Qo("0x18")][Qo("0x13")]((e=>{e[Qo("0x12")](t)})),this[Qo("0x23")][Qo("0x31")](t)}[Qo("0x9")](t){const e=Qo("0xa")+this.type+":"+this[Qo("0x1d")]+":"+this.id+":"+this[Qo("0x25")].id+":"+Zo.getMultiRangeId();this[Qo("0x21")](e),this[Qo("0x18")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x15")](t){for(const e of this[Qo("0x1")]())if(e[Qo("0x2d")](t))return!0;return!1}[Qo("0x1")](){return this[Qo("0xf")]().map((t=>t[Qo("0x39")]()))}[Qo("0x0")](){return this[Qo("0x1")]()[Qo("0x20")](((t,e)=>[...t,...e[Qo("0x0")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0xe")]())||void 0===t?void 0:t[Qo("0x39")]())||null}getContainedElement(){const t=this[Qo("0x1")]();if(1!=t[Qo("0x2b")])return null;const e=t[0],n=e[Qo("0x29")][Qo("0x2a")],o=e[Qo("0x22")][Qo("0x30")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x1")](),this.data,this[Qo("0x27")]),this.removeMarkers()}[Qo("0x2")](){this[Qo("0x3")](this.getRanges(),this[Qo("0x10")],this[Qo("0x27")]),this[Qo("0x1a")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x4")];for(;e;)t[Qo("0x8")](e),e=e[Qo("0x32")];return t}[Qo("0x5")](t,e){const n=eo(this[Qo("0x27")]);_o(n,t,e),Go(n,this[Qo("0x27")])||(this.attributes=n,this[Qo("0x26")](n))}[Qo("0x7")](t){const e=eo(this[Qo("0x27")]);Xo(e,t),Go(e,this.attributes)||(this.attributes=e,this[Qo("0x26")](this[Qo("0x27")]))}toJSON(){return{id:this.id,type:this[Qo("0x1d")]?this[Qo("0x1c")]+":"+this[Qo("0x1d")]:this.type,authorId:this[Qo("0x25")].id,createdAt:this[Qo("0x19")],hasComments:this[Qo("0x33")],data:this[Qo("0x10")],attributes:this[Qo("0x27")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0xc")](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=["insertion","function","item","remove","_addDescriptionItems","_customCallbacks","text","_resolveDescriptionItems","length","removeObject","pop","_schema","type","normal","Container","get","removeEmptyContainer","_itemLabelsCallbacks","previousSibling","deletion","element","elementEnd","push","$1 $2","replace","skip","*Insert:* %0","matchingCallback","data","getFirstRange","getDescriptions","match","indexOf","*Remove:* %0","nextSibling","$text","EmptyContainer","_itemLabels","addEmptyContainer","REPLACE_TEXT","isEqual","_locale","quantity","set","name","addContainer","isInContent","start","*Merge:* %0","addObject","isEmpty","softBreak","$textProxy","getItemLabel","ELEMENT_SPACE","isObject","registerDescriptionCallback","add"];var es,ns;es=ts,ns=142,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x25")]=[],this[os("0xb")]=new Map,this[os("0x31")]=[],this._schema=t,this[os("0xf")]=e}[os("0x4")](t){const e=[];for(let n=0;n<t[os("0x28")];n++){const o=t[n];if(!o[os("0x14")])continue;let s=!1;for(const t of this[os("0x25")]){const n=t(o);if(n){os("0x2c")in n&&e[os("0x36")](n),s=!0;break}}if(!s){this[os("0x24")](e,o);const s=t[n+1];if(s&&!o[os("0x3")]().end[os("0xe")](s.getFirstRange()[os("0x15")])){const t=e[e.length-1],n="insertion"==o[os("0x2c")]?os("0x1f"):"remove";t&&os("0x26")==t[os("0x2c")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1e")](t){this[os("0x25")].push(t)}registerElementLabel(t,n,o=e.priorities[os("0x2d")]){os("0x21")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xb")][os("0x11")](t,n)}[os("0x1b")](t,e=1){let n;for(const e of this[os("0x31")])if(e[os("0x1")](t)){n=e.label;break}return n||(n=this[os("0xb")][os("0x2f")](t[os("0x12")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x12")]}_addDescriptionItems(t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[os("0x2c")]?os("0x1f"):"remove";for(const e of n){const s=e[os("0x22")],r=t[t[os("0x28")]-1];if(s.is(os("0x1a")))r&&r[os("0x2c")][os("0x6")]("Container")>-1&&t[os("0x2a")](),r&&os("0x26")==r[os("0x2c")]?r[o]+=s[os("0x2")]:t[os("0x36")]({type:"text",add:os("0x1f")==o?s.data:"",remove:os("0x23")==o?s[os("0x2")]:""});else if(this[os("0x2b")][os("0x1d")](s)){const i=s;if(r&&r[os("0x2c")][os("0x6")](os("0x2e"))>-1&&t.pop(),os("0x35")==e[os("0x2c")])continue;r&&r[os("0x2c")]==o+"Object"&&r[os("0x34")][os("0x12")]==i[os("0x12")]?r[os("0x10")]++:t[os("0x36")]({type:o+"Object",element:i,quantity:1}),n[os("0x39")]((t=>!(os("0x35")==t[os("0x2c")]&&t.item==s)))}else if(this[os("0x2b")].checkChild(s,os("0x9"))||s.is("element",os("0x19"))){const n=s;if(os("0x1f")==o&&"elementStart"==e[os("0x2c")]||os("0x23")==o&&os("0x35")==e.type)continue;if(r&&-1==r.type[os("0x6")]("Container")){os("0x26")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x1f")==o?n[os("0x8")]&&!this[os("0x2b")][os("0x1d")](n.nextSibling)?n[os("0x8")]:null:n[os("0x32")]&&!this[os("0x2b")][os("0x1d")](n[os("0x32")])?n.previousSibling:null,n[os("0x18")]||i&&i[os("0x18")]){const e=i&&i[os("0x18")]?i:n;r&&r[os("0x2c")]==o+os("0xa")&&r[os("0x34")][os("0x12")]==e.name?r.quantity++:t[os("0x36")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x36")]({type:o+"Container",element:n})}}}[os("0x27")](t){const e=this[os("0xf")],n=[];for(const o of t){switch(o.type){case os("0x26"):if(o.add=o[os("0x1f")][os("0x38")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x38")](/\u000A/g,""),o.remove=o.remove[os("0x38")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x38")](/\u000A/g,""),""!=o[os("0x1f")]&&""!=o[os("0x23")]){n[os("0x36")]({type:os("0x38"),content:Yo(e,os("0xd"),['"'+o.remove+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x1f")][os("0x5")](/^ +$/)){n[os("0x36")]({type:os("0x20"),content:Yo(e,os("0x0"),Yo(e,os("0x1c"),o[os("0x1f")][os("0x28")]))});continue}if(null!=o[os("0x23")][os("0x5")](/^ +$/)){n[os("0x36")]({type:os("0x33"),content:Yo(e,os("0x7"),Yo(e,os("0x1c"),o[os("0x23")][os("0x28")]))});continue}if(""!=o[os("0x1f")]){n[os("0x36")]({type:os("0x20"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x1f")]+'"')});continue}n[os("0x36")]({type:os("0x33"),content:Yo(e,os("0x7"),'"'+o.remove+'"')});continue;case os("0xc"):case os("0x17"):n.push({type:os("0x20"),content:Yo(e,os("0x0"),this[os("0x1b")](o.element,o[os("0x10")]))});continue;case os("0x30"):case os("0x29"):n.push({type:"deletion",content:Yo(e,os("0x7"),this[os("0x1b")](o[os("0x34")],o[os("0x10")]))});continue;case os("0x13"):n.push({type:os("0x20"),content:Yo(e,"*Split:* %0",this[os("0x1b")](o.element,o.quantity))});continue;case"removeContainer":n.push({type:os("0x33"),content:Yo(e,os("0x16"),this.getItemLabel(o.element,o[os("0x10")]))});continue}n[os("0x36")](o)}return n}}const rs=["center","AlignmentEditing","format","afterInit","plugins","commandName","left","markBlockFormat","alignment","document","editor","value","selection","TrackChangesEditing","locale","registerDescriptionCallback","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","change","schema","FORMAT_JUSTIFY_TEXT","right","justify","contentLanguageDirection","*Format:* %0","ltr","enableCommand","filter","model","FORMAT_ALIGN_TO_LEFT"];var is,xs;is=rs,xs=294,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x9")](){const t=this.editor,e=t.locale;if(!t[as("0xa")].has(as("0x7")))return;const n=t[as("0xa")].get(as("0x13"));n[as("0x2")]("alignment",((e,o={})=>{let s=o[as("0x11")];o.value||(s=as("0x1")===t[as("0x14")][as("0x1d")]?as("0xc"):as("0x1b"));const r=Array.from(this.editor[as("0x4")][as("0xf")][as("0x12")][as("0x16")]())[as("0x3")]((t=>function(t,e,n){const o=t.getAttribute(as("0xe"))||null;return e.checkAttribute(t,as("0xe"))&&n!=o}(t,this[as("0x10")][as("0x4")][as("0x19")],s)));t[as("0x4")][as("0x18")]((()=>{for(const t of r)n[as("0xd")](t,{commandName:as("0xe"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x15")]((t=>{const{data:n}=t;if(n&&as("0xe")==n[as("0xb")]){const t=n.commandParams[0][as("0x11")];return{type:as("0x8"),content:Yo(e,as("0x0"),function(t){switch(t){case as("0xc"):return Yo(e,as("0x5"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x6"):return Yo(e,as("0x17"));case as("0x1c"):return Yo(e,as("0x1a"))}}(t))}}}))}}const ls=["getWalker","includes","listItem","addHighlight","get","isBlock","TrackChangesEditing","toViewPosition","nextSibling","ck-suggestion-marker--active","bindElementToMarker","parent","writer","hasAttribute","isLimit","markerName","markerRange","plugins","activeMarkers","item","isAtEnd","push","createUIElement","test","getAttribute","element","insert","previousPosition","elementEnd","schema","consumable","mapper","ck-suggestion-marker-","addClass","name"];var us,ds;us=ls,ds=412,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.getItems())s[gs("0x15")](t)&&o[gs("0x1d")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x21"),gs("0xa"))){let n=t[gs("0x10")];for(;n&&n.is(gs("0x21"),gs("0xa"))&&n[gs("0x20")]("listIndent")>0;)e[gs("0x1d")](n),n=n[gs("0x10")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x19")][gs("0xc")](gs("0xe"));return(s,r,i)=>{if(!i[gs("0x3")][gs("0x1f")](r.markerRange,s[gs("0x7")]))return;const x=r[gs("0x18")][gs("0x8")](),a=r[gs("0x18")].start,c=t.model[gs("0x2")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x1b")];d=d||c.isContent(e);const n=i[gs("0x4")].toViewElement(e);if(n&&n.getCustomProperty(gs("0xb")))return;gs("0x1")==t.type&&c[gs("0xd")](e)&&!c[gs("0x16")](e)&&(e[gs("0x10")]||a[gs("0x1c")]?l&&l[gs("0x13")]==e||(l=e,m(t[gs("0x0")]),g=!0):u=u||t[gs("0x0")])}function m(t){const s=i.writer[gs("0x1e")]("span",{class:gs("0x5")+e}),x=i[gs("0x4")][gs("0xf")](t);n&&o[gs("0x1a")][gs("0x9")](r[gs("0x17")])&&i[gs("0x14")][gs("0x6")](gs("0x11"),s),i[gs("0x14")][gs("0x22")](x,s),i[gs("0x4")][gs("0x12")](s,r[gs("0x17")])}d||g||!u||m(u)}}const ps=["markInlineFormat","FORMAT_SUPERSCRIPT","format","afterInit","FORMAT_BOLD","getRanges","subscript","model","FORMAT_UNDERLINE","underline","get","slice","UnderlineEditing","commandName","editor","ItalicEditing","document","*Remove format:* %0","commands","FORMAT_ITALIC","from","bold","superscript","forceValue","isCollapsed","value","plugins","FORMAT_STRIKETHROUGH","CodeEditing","StrikethroughEditing","code","commandParams","toLowerCase","enableCommand","BoldEditing","selection","locale","italic","*Format:* %0"];var bs,Es;bs=ps,Es=441,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x3"),_s("0x0"),_s("0x10"),_s("0x11"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x1e")](){const t=this[_s("0x2")],e=t[_s("0x22")],n=t.plugins[_s("0x25")]("TrackChangesEditing"),o=t[_s("0x18")];for(const o of Ts){if(!t[_s("0xe")].has(o))continue;const s=o[_s("0x26")](0,-7)[_s("0x14")](),r=t[_s("0x6")][_s("0x25")](s);n[_s("0x15")](s,((t,o={})=>{const i=e[_s("0x4")][_s("0x17")];if(i[_s("0xc")])return void t(o);const x=void 0!==o[_s("0xb")]?o[_s("0xb")]:!r[_s("0xd")];e.change((()=>{const t=Array[_s("0x8")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x1")]===t)return s[_s("0x13")][0][_s("0xb")]?{type:"format",content:Yo(o,_s("0x1a"),e)}:{type:_s("0x1d"),content:Yo(o,_s("0x5"),e)}}))}s(_s("0x9"),Yo(o,_s("0x1f"))),s(_s("0x19"),Yo(o,_s("0x7"))),s(_s("0x24"),Yo(o,_s("0x23"))),s(_s("0x12"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0xf"))),s(_s("0x21"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0xa"),Yo(o,_s("0x1c")))}}const ys=["TrackChangesEditing","model","blockQuote","plugins","document","change","checkChild","BlockQuoteEditing","parent","getSelectedBlocks","from","format","$root","get","commandName","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","name","forceValue","afterInit","filter","value","locale","*Remove format:* %0","schema","enableCommand","editor","markBlockFormat"];var ks,As;ks=ys,As=276,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x17")](){const t=this[vs("0x2")],e=t[vs("0x1a")];if(!t[vs("0x7")].has(vs("0xb")))return;const n=t.plugins[vs("0x11")](vs("0x4")),o=this[vs("0x2")].commands[vs("0x11")](vs("0x6"));n[vs("0x1")](vs("0x6"),((e,s={})=>{const r=this[vs("0x2")][vs("0x5")][vs("0x8")].selection,i=s&&void 0!==s[vs("0x16")]?s[vs("0x16")]:!o[vs("0x19")];let x=[];if(i){const e=Array[vs("0xe")](r[vs("0xd")]())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0xa")](t.parent,vs("0x6")),o=e[vs("0xa")]([vs("0x10"),vs("0x6")],t);return n&&o}(t,this.editor[vs("0x5")][vs("0x0")])));x=S(e,t[vs("0x5")])}else{const e=Array.from(r[vs("0xd")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t.model)}t[vs("0x5")][vs("0x9")]((()=>{for(const t of x)n[vs("0x3")](t,{commandName:vs("0x6"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x14")]((t=>{const{data:n}=t;if(n&&vs("0x6")==n[vs("0x12")]){const t=Yo(e,vs("0x13"));return n.commandParams[0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:vs("0xf"),content:Yo(e,vs("0x1b"),t)}}}))}}function Ss(t){return vs("0x6")==t[vs("0xc")][vs("0x15")]}const Is=["enableCommand","plugins","ckbox","afterInit","editor","get","commands"];var Ls,Ns;Ls=Is,Ns=157,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x1")];t[Ms("0x3")][Ms("0x2")](Ms("0x6"))&&t[Ms("0x5")][Ms("0x2")]("TrackChangesEditing")[Ms("0x4")](Ms("0x6"))}}const Os=["enableCommand","value","afterInit","change","document","has","blockName","format","find","indentCodeBlock","getSelectedBlocks","ELEMENT_CODE_BLOCK","get","formatBlock","model","selection","TrackChangesEditing","schema","commandParams","filter","from","registerDescriptionCallback","outdentCodeBlock","_descriptionFactory","forceValue","locale","*Remove format:* %0","language","parent","codeBlock","rootElement","CodeBlock","plugins","editor","isLimit"];var Fs,Ps;Fs=Os,Ps=326,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1a")](){const t=this[Ds("0x16")];if(!t[Ds("0x15")][Ds("0x1d")](Ds("0x14")))return;const e=t[Ds("0x15")][Ds("0x1")](Ds("0x5")),n=t[Ds("0xe")],o=t.config[Ds("0x1")](Ds("0x12")).languages,s=t.commands.get(Ds("0x12"));e[Ds("0x18")](Ds("0x21")),e[Ds("0x18")](Ds("0xb")),e.enableCommand(Ds("0x12"),((n,r={})=>{const i=t[Ds("0x3")],x=t[Ds("0x3")][Ds("0x1c")][Ds("0x4")],a=r&&void 0!==r.forceValue?r[Ds("0xd")]:!s[Ds("0x19")];let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array[Ds("0x9")](x[Ds("0x22")]())[Ds("0x8")]((t=>{return js(t)||(e=t,n=i[Ds("0x6")],!e.is(Ds("0x13"))&&!n[Ds("0x17")](e)&&n.checkChild(e[Ds("0x11")],"codeBlock"));var e,n})):Array[Ds("0x9")](x[Ds("0x22")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x1b")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x12"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1e")})}))})),e[Ds("0xc")].registerElementLabel("codeBlock",(t=>Yo(n,Ds("0x0"),t))),e[Ds("0xc")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x2")==s&&r&&"codeBlock"==r.commandName){const t=r[Ds("0x7")][0][Ds("0x10")],s=e(o[Ds("0x20")]((e=>e[Ds("0x10")]===t)).label);return r.commandParams[0][Ds("0xd")]?{type:Ds("0x1f"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x0"),1)+" ("+s+")")}:{type:Ds("0x1f"),content:Yo(n,Ds("0xf"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["has","TrackChangesEditing","CommentsEditing","addCommentThread","get","plugins","editor"];var Gs,Hs;Gs=Us,Hs=372,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x5")];t[zs("0x4")][zs("0x6")](zs("0x1"))&&t.plugins[zs("0x3")](zs("0x0")).enableCommand(zs("0x2"))}}var Vs=n(181);const Ks=["high","options","get","mapper","remove","showSuggestionHighlights","unit","batch","$graveyard","isCollapsed","fromRange","writer","modifySelection","addMarker:suggestion:deletion","setSelection","createSelection","document","editing","requires","end","init","forward","markerName","bind","getFirstRange","commands","TrackChangesEditing","removeMarker:suggestion:deletion","unlock","downcastDispatcher","detach","enqueueChange","buffer","delete","plugins","createRange","markerNameToElements","start","rootName","merge","root","uiElement","model","data","lock","editor","deleteForward","enableCommand"];var Xs,qs;Xs=Ks,qs=102,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xc")](){return[Vs.Delete]}[$s("0xe")](){const t=this[$s("0x27")],e=t[$s("0x1c")][$s("0x2c")]($s("0x14"));e.enableCommand($s("0x1b"));const n=t[$s("0x13")][$s("0x2c")]($s("0x28"));e[$s("0x29")]($s("0x28"),((e,o={})=>{const s=t[$s("0x24")][$s("0x9")](t[$s("0x24")][$s("0xa")].selection);s[$s("0x3")]&&t[$s("0x24")][$s("0x6")](s,{direction:$s("0xf"),unit:o[$s("0x0")]});const r=s[$s("0x12")](),x=i.LiveRange[$s("0x4")](r);let a;e(o),a=$s("0x2")==x[$s("0x22")][$s("0x20")]?t[$s("0x24")][$s("0x1d")](r[$s("0x1f")]):t[$s("0x24")][$s("0x1d")](x.start,x[$s("0xd")]),x[$s("0x18")](),t[$s("0x24")][$s("0x19")](n[$s("0x1a")][$s("0x1")],(t=>{n[$s("0x1a")][$s("0x26")](),t[$s("0x8")](t[$s("0x1d")](a.end)),n[$s("0x1a")][$s("0x16")]()}))})),t[$s("0xb")][$s("0x17")].on("addMarker:suggestion:deletion",hs(t,$s("0x21")),{priority:$s("0x2a")}),t[$s("0x25")][$s("0x17")].on($s("0x7"),((e,n,o)=>{o[$s("0x2b")][$s("0x2f")]&&hs(t,$s("0x21"),{showActiveMarker:!1})[$s("0x11")](this)(e,n,o)}),{priority:"high"}),t[$s("0xb")][$s("0x17")].on($s("0x15"),((t,e,n)=>{const o=n[$s("0x2d")][$s("0x1e")](e[$s("0x10")]);if(o)for(const t of o)t.is($s("0x23"))&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0x10")]),n[$s("0x5")][$s("0x2e")](t))}),{priority:"high"})}}const Qs=["selection","forceValue","value","indentList","registerElementLabel","after","numberedList","listIndent","bulletedList","format","multipleBlocks","end","commandName","length","splitListItemBefore","start","locale","previousSibling","commandParams","change","before","listType","schema","markMultiRangeBlockFormat","isObject","*Change to:* %0","splitListItemAfter","accept","_LIST","commands","enableCommand","push","from","parent","markBlockFormat","*Format:* insert into %0","getSelectedBlocks","ELEMENT_BULLETED_LIST","model","refresh","mergeListItemForward","outdentList","*Indent:* %0","*Format:* remove from %0","createPositionAt","nextSibling","editor","nodeAfter","isFirstBlockOfListItem","expandListBlocksToCompleteList","getRanges","containsItem","createRange","getFirstRange","document","getAttribute","*Outdent:* %0","execute","registerDescriptionCallback","get","plugins","DocumentListUtils","has","toUpperCase","documentList","TrackChangesEditing","listItemId","map","deletion","ELEMENT_LIST_ITEM","hasAttribute","ELEMENT_","_suggestionFactory","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=489,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x1")];if(!t.plugins[tr("0x11")]("DocumentListEditing"))return;const e=t[tr("0x2d")],n=t[tr("0xf")][tr("0xe")](tr("0x14")),o=t[tr("0xf")][tr("0xe")](tr("0x10"));function s(e){return()=>{const s=t[tr("0x3a")].get(e);let r=Array[tr("0x3d")](t.model[tr("0x9")].selection[tr("0x41")]());if(a(e)){r=o[tr("0x4")](r);const t=[];for(const e of r)o[tr("0x3")](e)&&t.push(e);r=t}t[tr("0x43")][tr("0x30")]((()=>{n[tr("0x34")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1f")]}],formatGroupId:tr("0x32")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3d")](t);const n=e.findIndex((t=>!t[tr("0x19")]("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0x9")][tr("0x1d")][tr("0x41")]()),s=o[o[tr("0x2a")]-1],r=t[tr("0x43")][tr("0x33")][tr("0x35")](s)?tr("0x22"):tr("0x28"),i=t[tr("0x43")][tr("0x7")](t[tr("0x43")][tr("0x49")](o[0],"before"),t[tr("0x43")][tr("0x49")](s,r));t[tr("0x43")].change((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0xa")](tr("0x24"))>n.getAttribute(tr("0x24"));)e.add(t),t=t.nextSibling}return Array[tr("0x3d")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x9")][tr("0x1d")].getSelectedBlocks().next().value,s=t[tr("0x43")][tr("0x49")](o,tr("0x31")),r=t[tr("0x43")][tr("0x49")](o,0),i=t.model[tr("0x7")](s,r);t.model[tr("0x30")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")})}))}}function a(e){const n=t[tr("0x3a")][tr("0xe")](tr("0x25"))[tr("0x1f")],o=t[tr("0x3a")][tr("0xe")]("numberedList")[tr("0x1f")];return"numberedList"===e?n:o}n[tr("0x3b")]("numberedList",s(tr("0x23"))),n.enableCommand(tr("0x25"),s(tr("0x25"))),n[tr("0x3b")](tr("0x20"),r(tr("0x20"))),n[tr("0x3b")](tr("0x46"),r(tr("0x46"))),n[tr("0x3b")]("splitListItemAfter",x(tr("0x37"))),n.enableCommand(tr("0x2b"),x(tr("0x2b"))),n[tr("0x1c")][tr("0x21")]((function(e){const n=!t[tr("0x43")].schema.isObject(e),o=e[tr("0x2e")],s=e[tr("0x0")],r=e.getAttribute(tr("0x15")),i=!o||o[tr("0xa")](tr("0x15"))!==r,x=!s||s[tr("0xa")](tr("0x15"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x29")]){case tr("0x25"):r=n[tr("0x2f")][0][tr("0x1e")],i=a(n[tr("0x29")]),o=tr(r?"0x40":"0x48"),i&&(o="*Change to:* %0"),s={type:tr("0x26"),content:Yo(e,o,Yo(e,tr("0x42")))};break;case tr("0x23"):r=n[tr("0x2f")][0].forceValue,i=a(n.commandName),o=tr(r?"0x40":"0x48"),i&&(o=tr("0x36")),s={type:tr("0x26"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x20"):o=tr("0x47"),s={type:tr("0x26"),content:Yo(e,o,Yo(e,tr("0x18")))};break;case tr("0x46"):o=function(t){const e=t[tr("0x8")]();let n=e[tr("0x2c")][tr("0x2")];for(;n&&e[tr("0x6")](n);){if(n[tr("0xa")](tr("0x24"))>0)return!1;n=n[tr("0x0")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange()[tr("0x2c")][tr("0x2")];return tr("0x1a")+e[tr("0xa")](tr("0x32"))[tr("0x12")]()+tr("0x39")}(t))):Yo(e,tr("0xb"),Yo(e,tr("0x18"))),s={type:tr("0x26"),content:o};break;case"mergeListItemBackward":case tr("0x45"):!1===n[tr("0x27")]&&(o="*Merge:* %0",s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0x18")))})}return s})),n[tr("0x1b")].registerCustomCallback("formatBlock",tr("0x13"),tr("0x38"),(function(e,n){const o=[];for(let n of e)n[tr("0x2c")][tr("0x2")]===n[tr("0x28")][tr("0x3e")]&&(n=t[tr("0x43")].createRange(t[tr("0x43")][tr("0x49")](n[tr("0x2c")][tr("0x2")],0))),o[tr("0x3c")](n);t[tr("0x43")][tr("0x30")]((e=>{const s=t[tr("0x43")][tr("0x9")][tr("0x1d")],r=Array.from(s[tr("0x5")]())[tr("0x16")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x3a")][tr("0xe")](n[tr("0x29")])[tr("0x44")](),n[tr("0x2f")][tr("0x3c")]({forceDefaultExecution:!0}),t[tr("0xc")](n[tr("0x29")],...n[tr("0x2f")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["TrackChangesEditing","split","editing","enter","enableCommand","setSelection","parent","unbindElementFromMarkerName","model","markerName","end","ck-suggestion-marker-split","high","data","downcastDispatcher","createPositionAt","enterBlock","bind","get","fire","markInsertion","remove","addMarker:suggestion:insertion","hasClass","createRange","plugins","removeMarker:suggestion:insertion","detach","writer","change","init","afterExecute","commands","getFirstPosition","options"];var sr,rr;sr=or,rr=257,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("0x12")](){const t=this.editor,e=t[ir("0xd")][ir("0x6")](ir("0x17")),n=t[ir("0x14")].get(ir("0x1a"));e[ir("0x1b")](ir("0x1a"),(()=>{t[ir("0x1f")][ir("0x11")]((o=>{const s=t[ir("0x1f")].document.selection,r=s[ir("0x15")](),x=i.LiveRange.fromRange(s.getFirstRange());if(n[ir("0x4")](o)){const n=t[ir("0x1f")][ir("0x3")](r[ir("0x1d")].nextSibling,0),s=o[ir("0xc")](r,n);e[ir("0x8")](s)}else o[ir("0x1c")](o[ir("0xc")](x[ir("0x21")]));x[ir("0xf")](),n[ir("0x7")](ir("0x13"),{writer:o})}))})),t[ir("0x19")].downcastDispatcher.on(ir("0xa"),hs(t,ir("0x18")),{priority:ir("0x0")}),t[ir("0x19")][ir("0x2")].on(ir("0xe"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ir("0x20")]);if(o)for(const t of o)t[ir("0xb")](ir("0x22"))&&(n.mapper[ir("0x1e")](t,e.markerName),n[ir("0x10")][ir("0x9")](t))}),{priority:ir("0x0")}),t[ir("0x1")][ir("0x2")].on(ir("0xa"),((e,n,o)=>{o[ir("0x16")].showSuggestionHighlights&&hs(t,ir("0x18"),{showActiveMarker:!1})[ir("0x5")](this)(e,n,o)}),{priority:ir("0x0")})}}const ar=["findPrevious","plugins","TrackChangesEditing","getRange","get","model","has","handleFindCommand","getIntersection","afterInit","createPositionAt","createRange","editor","FindAndReplaceUtils","_isInDeletionRange","start","suggestion:deletion","end","string","replace","enableCommand"];var cr,lr;cr=ar,lr=352,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0xe")](){if(!this[ur("0x11")].plugins[ur("0xb")]("FindAndReplaceEditing"))return;const t=this[ur("0x11")][ur("0x6")].get(ur("0x7"));t[ur("0x4")]("find",this[ur("0xc")].bind(this)),t[ur("0x4")]("findNext"),t[ur("0x4")](ur("0x5")),t[ur("0x4")](ur("0x3")),t[ur("0x4")]("replaceAll")}[ur("0xc")](t,e,n={}){const o=this[ur("0x11")].plugins[ur("0x9")](ur("0x12"));void 0!==n&&t((t=>(ur("0x2")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ur("0x13")](e,t.item)))),n)}[ur("0x13")](t,e){const n=this[ur("0x11")][ur("0xa")][ur("0x10")](this.editor[ur("0xa")].createPositionAt(e,t[ur("0x14")]),this.editor[ur("0xa")][ur("0xf")](e,t[ur("0x1")]));for(const t of this[ur("0x11")][ur("0xa")].markers.getMarkersGroup(ur("0x0")))if(null!==n[ur("0xd")](t[ur("0x8")]()))return!0;return!1}}const gr=["fontBackgroundColor","has","get","TrackChangesEditing","enableCommand","*Reset font background color*","*Set font family:* %0","*Set font size:* %0","*Reset font family*","fontSize.options","config","plugins","find","isCollapsed","markInlineFormat","fontSize","editor","change","fontColor","model","value","label","document","afterInit","FontFamilyEditing","commandName","fontColor.colors","toLowerCase","normalizeSizeOptions","registerDescriptionCallback","commandParams","format","FontSize","from","fontBackgroundColor.colors","getRanges","*Set font color:* %0","FontColorEditing","_enableCommand","fontFamily","title","FontBackgroundColorEditing","_descriptionFactory"];var mr,fr;mr=gr,fr=483,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0xe"),commandName:hr("0x1d")},{pluginName:hr("0x1b"),commandName:hr("0x8")},{pluginName:hr("0x1f"),commandName:hr("0x21")}];class br extends t.Plugin{[hr("0xd")](){const t=this[hr("0x6")].locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x1")][hr("0x22")](t)&&this[hr("0x1c")](e);this.editor[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x20")][hr("0x13")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x5")==o.commandName){const e=o[hr("0x14")][0][hr("0xa")];if(e){const o=n(this[hr("0x6")][hr("0x1")][hr("0x23")](hr("0x16"))[hr("0x12")](this[hr("0x6")][hr("0x0")][hr("0x23")](hr("0x2a")))[hr("0x2")]((t=>t[hr("0x9")]==e))[hr("0x1e")])[hr("0x11")]();return{type:"format",content:Yo(t,hr("0x28"),o)}}return{type:hr("0x15"),content:Yo(t,"*Reset font size*")}}if(hr("0x1d")==o[hr("0xf")]){const e=o.commandParams[0][hr("0xa")];return e?{type:"format",content:Yo(t,hr("0x27"),e)}:{type:hr("0x15"),content:Yo(t,hr("0x29"))}}if(hr("0x8")==o[hr("0xf")]){const e=o[hr("0x14")][0][hr("0xa")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")].config[hr("0x23")](hr("0x10")))[hr("0x2")]((t=>t[hr("0x9")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r).toLowerCase()),{type:hr("0x15"),content:Yo(t,hr("0x1a"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x15"),content:Yo(t,"*Reset font color*")}}if(hr("0x21")==o[hr("0xf")]){const e=o[hr("0x14")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x0")][hr("0x23")](hr("0x18")))[hr("0x2")]((t=>t[hr("0x9")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x11")]()),{type:hr("0x15"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x15"),content:Yo(t,hr("0x26"))}}}}))}_enableCommand(t){const e=this[hr("0x6")];e[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x25")](t,((n,o={})=>{const s=e[hr("0x9")][hr("0xc")].selection,r=o.value;s[hr("0x3")]?n(o):e[hr("0x9")][hr("0x7")]((()=>{const n=Array[hr("0x17")](s[hr("0x19")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x9")]);for(const o of n)e[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x4")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["commands","schema","selection","isCollapsed","TrackChangesEditing","plugins","normalizeSizeOptions","entries","find","getAttributeProperties","fontColor","config","*Remove all formatting*","getItems","locale","get","getFirstPosition","getLastPosition","markInlineFormat","fontBackgroundColor","getRanges","boolean","createSelection","isBlock","afterInit","format","modifySelection","_descriptionFactory","push","editor","length","word","backward","copyFormat","label","document","join","isFormatting","commandName","toLowerCase","charAt","fontSize.options","commandParams","pasteFormat","registerDescriptionCallback"];var _r,Tr;_r=Er,Tr=236,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xd")](){const t=this[Cr("0x12")],n=t.model,o=n[Cr("0x18")][Cr("0x24")],s=t[Cr("0x27")][Cr("0x4")](Cr("0x26")),r=t[Cr("0x3")],i=t[Cr("0x22")][Cr("0x4")](Cr("0x16")),x=t[Cr("0x22")][Cr("0x4")](Cr("0x20"));i&&x&&(s.enableCommand(Cr("0x20"),((t,r={})=>{const i=r;n.change((()=>{const t=Array.from(o.getRanges()),r=o[Cr("0x25")]?[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.getAttributes()){const t=e[Cr("0x2b")](n);t&&t[Cr("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x9")]())for(const t of e[Cr("0x2")]())!n[Cr("0xc")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x23")]))||0!==Object.keys(i)[Cr("0x13")])for(const t of r)s[Cr("0x7")](t,{commandName:Cr("0x20"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x21")]((e=>{const{data:n}=e;if(n&&Cr("0x20")===n[Cr("0x1b")]){const e=[],o=n[Cr("0x1f")][0];for(const[n,s]of Object[Cr("0x29")](o))e[Cr("0x11")](Ar(t,n,s));return e[Cr("0x13")]?{type:Cr("0xe"),content:Yo(r,"*Set format to:* %0",e[Cr("0x19")](", "))}:{type:Cr("0xe"),content:Yo(r,Cr("0x1"))}}})),t.plugins[Cr("0x4")]("TrackChangesEditing").enableCommand(Cr("0x16")))}}function kr(t,e){const n=t[Cr("0xb")](e);t[Cr("0xf")](n,{unit:Cr("0x14"),direction:Cr("0x15")});const o=n[Cr("0x5")]();t[Cr("0xf")](n,{unit:Cr("0x14"),direction:"forward"});const s=n[Cr("0x6")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x3")].t,r=e.split(/(?=[A-Z])/)[Cr("0x19")](" "),i=o(r[Cr("0x1d")](0).toUpperCase()+r.slice(1))[Cr("0x1c")]();if(Cr("0xa")==typeof n)return i;if(Cr("0x2c")===e||Cr("0x8")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x0")][Cr("0x4")]("fontColor.colors"))[Cr("0x2a")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x17")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x27")][Cr("0x4")]("FontSize")[Cr("0x28")](t[Cr("0x0")][Cr("0x4")](Cr("0x1e"))).find((t=>t.model==n));return i+" ("+(e?o(e.title)[Cr("0x1c")]():n)+")"}return i+" ("+n+")"}const vr=["checkChild","_descriptionFactory","title","HeadingEditing","formatBlock","afterInit","ELEMENT_HEADING_CUSTOM","has","from","format","document","filter","get","find","match","registerDescriptionCallback","commandName","model","isObject","markBlockFormat","getSelectedBlocks","TrackChangesEditing","selection","name","value","editor","heading.options","ELEMENT_HEADING","paragraph","plugins","registerElementLabel","*Change to:* %0","parent","heading"];var Rr,Sr;Rr=vr,Sr=284,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1b")](){const t=this.editor,e=t.locale,n=t.config.get(Ir("0xe"));if(!t[Ir("0x11")][Ir("0x1d")](Ir("0x19")))return;const o=t[Ir("0x11")][Ir("0x0")](Ir("0x9"));o.enableCommand(Ir("0x15"),((e,n)=>{const s=n[Ir("0xc")],r=Array[Ir("0x1e")](this[Ir("0xd")][Ir("0x5")][Ir("0x20")][Ir("0xa")][Ir("0x8")]())[Ir("0x21")]((t=>{return e=t,n=s,(o=this.editor[Ir("0x5")].schema)[Ir("0x16")](e[Ir("0x14")],n)&&!o[Ir("0x6")](e)&&e[Ir("0xb")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0x7")](t,{commandName:Ir("0x15"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x10")!=t[Ir("0x5")]&&o[Ir("0x17")][Ir("0x12")](t[Ir("0x5")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x18")])}));function s(t,n){return Yo(e,Ir("0xf"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x17")][Ir("0x3")]((t=>{const{type:o,data:i}=t;if(Ir("0x1a")==o&&i&&"heading"==i[Ir("0x4")]){const t=i.commandParams[0][Ir("0xc")],o=Nr(t);if(null!==o)return{type:Ir("0x1f"),content:Yo(e,Ir("0x13"),s(1,o))};const x=n[Ir("0x1")]((e=>e[Ir("0x5")]===t))[Ir("0x18")];return{type:Ir("0x1f"),content:Yo(e,Ir("0x13"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x2")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["format","config","commandName","TrackChangesEditing","HighlightEditing","isCollapsed","getAttribute","*Set highlight:* %0","toLowerCase","markInlineFormat","enableCommand","getFirstPosition","highlight.options","highlight","title","value","push","createRange","color","get","backward","model","getRanges","change","hasAttribute","item","plugins","formatInline","locale","_descriptionFactory","find","has","registerDescriptionCallback"];var wr,Or;wr=Mr,Or=311,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Fr("0x11")](Fr("0x17")))return;const e=t[Fr("0xc")].get(Fr("0x16"));e[Fr("0x1d")](Fr("0x20"),((n,o={})=>{const s=t[Fr("0x7")].document.selection,r=s.getAttribute(Fr("0x20"));let i=o[Fr("0x1")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1e")]();if(!s[Fr("0xa")](Fr("0x20")))return void n(o);{const n=t=>t[Fr("0xb")][Fr("0x19")](Fr("0x20"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x6")}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x8")]())i?x.push(e):x[Fr("0x2")](...ms(Fr("0x20"),e,t[Fr("0x7")]));t[Fr("0x7")][Fr("0x9")]((()=>{for(const t of x)e[Fr("0x1c")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xe")];e[Fr("0xf")][Fr("0x12")]((e=>{const{type:o,data:s}=e;if(Fr("0xd")==o&&s&&Fr("0x20")==s[Fr("0x15")]){const e=n.t,o=s.commandParams[0][Fr("0x1")];if(o){const s=t[Fr("0x14")][Fr("0x5")](Fr("0x1f"))[Fr("0x10")]((t=>t.model==o)),r=e(s[Fr("0x0")])[Fr("0x1b")]();return{type:Fr("0x13"),content:Yo(n,Fr("0x1a"),r),color:{value:s[Fr("0x4")],title:s[Fr("0x0")]}}}return{type:Fr("0x13"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["TrackChangesEditing","createContainerElement","createEmptyElement","afterInit","editor","has","elementToStructure","plugins","horizontalLine","ELEMENT_HORIZONTAL_LINE","registerElementLabel","addClass","dataDowncast","get","_descriptionFactory","ck-horizontal-line","for","conversion","locale","insert"];var Br,jr;Br=Dr,jr=336,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0x8")];if(!t.plugins[Ur("0x9")]("HorizontalLineEditing"))return;t[Ur("0xb")][Ur("0x11")](Ur("0x4")).enableCommand(Ur("0xc"));const e=t.plugins[Ur("0x11")](Ur("0x4")),n=t[Ur("0x2")];e[Ur("0x12")][Ur("0xe")](Ur("0xc"),(t=>Yo(n,Ur("0xd"),t))),t[Ur("0x1")][Ur("0x0")](Ur("0x10"))[Ur("0xa")]({model:Ur("0xc"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")]("div"),s=e[Ur("0x6")]("hr");return e[Ur("0xf")](Ur("0x13"),o),e[Ur("0x3")](e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["editor","change","rawHtml","rawHtmlApi","value","get","commandName","HtmlEmbed","getCustomProperty","registerDescriptionCallback","model","afterInit","_descriptionFactory","enableCommand","TrackChangesEditing","view","htmlEmbed","markBlockFormat","ELEMENT_HTML_EMBED","element","*Change %0 content*","cancel","plugins","selection"];var zr,Wr;zr=Hr,Wr=384,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xb")](){const t=this[Vr("0x0")];if(!t[Vr("0x16")].has(Vr("0x7")))return;const e=t[Vr("0x16")][Vr("0x5")](Vr("0xe")),n=t.locale,o=t.editing[Vr("0xf")].document[Vr("0x17")];e._descriptionFactory.registerElementLabel(Vr("0x2"),(t=>Yo(n,Vr("0x12"),t))),t[Vr("0x16")][Vr("0x5")](Vr("0xe"))[Vr("0xd")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xa")],i=r.document.selection;r[Vr("0x1")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x13"),"rawHtml")?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x4"))||"";void 0!==s&&s!==r&&(e[Vr("0x11")](t,{commandName:Vr("0x10"),commandParams:[s]}),o.getSelectedElement()[Vr("0x8")](Vr("0x3"))[Vr("0x15")]())}))})),e[Vr("0xc")][Vr("0x9")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x6")]){const t=Yo(n,Vr("0x12"));return{type:"format",content:Yo(n,Vr("0x14"),t)}}}))}}const Xr=["convertBlockImageToInline","*Set image width:* %0","ImageInlineEditing","element","commandName","formatInline","model","side","getSuggestions","removeObject","hasSuggestion","isEqual","findIndex","imageBlock","nodeAfter","suggestion","shouldConvertImageType","*Format:* %0","commandReversedParams","isOwn","Block image to inline image","convertInlineImageToBlock","_findSuggestions","_descriptionFactory","registerCustomCallback","end","imageStylePostApply","previous","newValue","name","plugins","has","getSuggestionCallback","getFirstRange","type","imageTypeInline","ImageEditing","TrackChangesEditing","_splitMarkerName","value","insertImage","markBlockFormat","nodeBefore","commandParams","toNext","imageCaption","ELEMENT_INLINE_IMAGE","getNearestSelectionRange","find","accept","start","chain","subType","schema","getCaptionFromImageModelElement","resizeImage","alt","refresh","newRange","backward","next","enableCommand","discard","document","formatBlock","ELEMENT_IMAGE","_suggestionFactory","createRangeOn","markInsertion","isBefore","join","ImageTextAlternativeEditing","forEach","filter","author","ELEMENT_CAPTION","isInContent","editor","get","selection","ImageCaptionUtils","isCollapsed","afterInit","imageStyle","length","registerElementLabel","*Set image text alternative:* %0","discardSuggestion","title","FORMAT_SIDE_IMAGE","imageStylePreApply","hasAttribute","uploadImage","createRange","getAttribute","getContainedElement","getSuggestion","isInlineImage","ImageStyleEditing","commands","ImageBlockEditing","getChangedMarkers","imageTextAlternative","getClosestSelectedImageElement","forward","ImageUtils","registerDescriptionCallback","change","caption","insertion","head","isIntersecting","ImageUploadEditing","format","normalizedStyles","width","isBlockImage"];var qr,$r;qr=Xr,$r=192,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x7")](){const t=this[Jr("0x2")];if(!t[Jr("0x48")][Jr("0x49")](Jr("0x4e")))return;const n=t.plugins[Jr("0x3")](Jr("0x4f")),o=t[Jr("0x48")][Jr("0x3")](Jr("0x1e")),s={},r=t.locale;if(n[Jr("0x67")](Jr("0x52")),n._descriptionFactory[Jr("0xa")](Jr("0x37"),(t=>Yo(r,Jr("0x6b"),t))),n[Jr("0x41")][Jr("0xa")]("imageInline",(t=>Yo(r,Jr("0x58"),t))),n[Jr("0x41")][Jr("0xa")](Jr("0x21"),(()=>Yo(r,Jr("0x0")))),t[Jr("0x48")][Jr("0x49")](Jr("0x25"))&&n[Jr("0x67")](Jr("0x11")),t[Jr("0x48")][Jr("0x49")](Jr("0x19"))&&t[Jr("0x48")][Jr("0x49")](Jr("0x2c"))&&(n[Jr("0x67")](Jr("0x4d"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x30")].document[Jr("0x4")]);t[Jr("0x30")][Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x4d"),commandParams:[s]},[],Jr("0x2a"))}))})),n.enableCommand("imageTypeBlock",((e,s)=>{t.model[Jr("0x20")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x30")].document[Jr("0x4")]),a=r.createRangeOn(x);const c=i.LivePosition.fromPosition(a[Jr("0x5c")],"toPrevious"),l=i.LivePosition.fromPosition(a[Jr("0x43")],Jr("0x56"));n.forceDefaultExecution((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),a=r[Jr("0x6d")](x);const u=r.createRange(c,l);c.detach(),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x4d"),commandParams:[]},[],Jr("0x3f")),u[Jr("0x5c")].isBefore(a[Jr("0x5c")])&&n[Jr("0x6e")](r[Jr("0x12")](u.start,a[Jr("0x5c")]),Jr("0x3f")),a.end[Jr("0x6f")](u[Jr("0x43")])&&n[Jr("0x6e")](r[Jr("0x12")](a.end,u.end),Jr("0x3f"))}))})),n[Jr("0x6c")].registerCustomCallback("formatBlock",Jr("0x3f"),Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),"accept",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),Jr("0x68"),n[Jr("0x6c")].getSuggestionCallback("formatBlock","",Jr("0x5b"))),n[Jr("0x6c")].registerCustomCallback(Jr("0x22"),Jr("0x3f"),"join",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x22"),Jr("0x3f"),Jr("0x68"),(([e])=>{const o=n[Jr("0x6c")][Jr("0x4a")](Jr("0x22"),"",Jr("0x68"));let s=e[Jr("0x5c")],r=e[Jr("0x43")];const i=t[Jr("0x30")][Jr("0x5f")][Jr("0x59")](s,Jr("0x65")),x=t[Jr("0x30")][Jr("0x5f")][Jr("0x59")](r,Jr("0x1d"));i[Jr("0x6")]&&(s=i[Jr("0x5c")]),x.isCollapsed&&(r=x[Jr("0x43")]),o([t[Jr("0x30")][Jr("0x12")](s,r)])})),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),Jr("0x5d"),c),n[Jr("0x6c")][Jr("0x42")]("insertion",Jr("0x3f"),Jr("0x5d"),c)),t[Jr("0x48")][Jr("0x49")]("ImageCaptionEditing")&&(n[Jr("0x67")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x3")](Jr("0x5"));let i=o[Jr("0x1c")](t[Jr("0x30")][Jr("0x69")].selection),x=r[Jr("0x60")](i);t.model[Jr("0x20")]((()=>{if(x)return void n.markDeletion(t[Jr("0x30")][Jr("0x6d")](x));const a=o[Jr("0x29")](i);e(s),i=o[Jr("0x1c")](t[Jr("0x30")].document.selection),x=r[Jr("0x60")](i),n[Jr("0x6e")](t[Jr("0x30")][Jr("0x6d")](x),a?null:Jr("0x57"))}))})),n[Jr("0x6c")].registerCustomCallback(Jr("0x22"),Jr("0x57"),Jr("0x5d"),c)),t[Jr("0x48")][Jr("0x49")](Jr("0x17"))){n.enableCommand(Jr("0x8"),((s,r)=>{const i=t.plugins[Jr("0x3")]("Users").me,x=t[Jr("0x18")][Jr("0x3")](Jr("0x8"));let a=o[Jr("0x1c")](t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),c=t[Jr("0x30")][Jr("0x6d")](a),l=x.value;if(l==r[Jr("0x51")])return;const u={commandName:Jr("0x8"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x30")][Jr("0x20")]((()=>{if(n[Jr("0x32")]()[Jr("0x73")]((t=>t[Jr("0x1")]&&i==t[Jr("0x74")]&&(Jr("0x6a")==t[Jr("0x4c")]||Jr("0x2f")==t.type)&&("imageStylePreApply"==t[Jr("0x5e")]||Jr("0x44")==t.subType)&&t.getFirstRange()[Jr("0x35")](c)))[Jr("0x72")]((t=>n[Jr("0xc")](t[Jr("0x23")]))),a=o.getClosestSelectedImageElement(t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),c=t[Jr("0x30")].createRangeOn(a),x[Jr("0x63")](),t[Jr("0x18")][Jr("0x3")](Jr("0x4d")).refresh(),t.commands[Jr("0x3")]("imageTypeBlock")[Jr("0x63")](),l=x[Jr("0x51")],l!=r[Jr("0x51")])return o[Jr("0x16")](a)&&x[Jr("0x3a")](r[Jr("0x51")],a)?(s(r),a=o[Jr("0x1c")](t.model[Jr("0x69")][Jr("0x4")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0xf"))):void(o[Jr("0x29")](a)?n[Jr("0x53")](a,u,[],Jr("0x44")):n.markInlineFormat(c,u,Jr("0x44")))}))}));for(const e of t[Jr("0x48")].get("ImageStyleEditing")[Jr("0x27")])s[e[Jr("0x47")]]=e[Jr("0xd")].toLowerCase();n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),"imageStylePreApply",Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x44"),"join",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x2f"),Jr("0x44"),Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0xf"),Jr("0x5b"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")]("formatBlock",Jr("0xf"),Jr("0x68"),((t,e)=>{n[Jr("0x6c")][Jr("0x4a")](Jr("0x6a"),"",Jr("0x5b"))(t,{commandName:e[Jr("0x2e")],commandParams:e[Jr("0x3c")]})})),n._suggestionFactory[Jr("0x42")](Jr("0x6a"),Jr("0xf"),Jr("0x5d"),c)}const x=[{type:"formatBlock",subType:Jr("0xf")},{type:Jr("0x22"),subType:Jr("0x57")},{type:Jr("0x6a"),subType:Jr("0x3f")},{type:Jr("0x22"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x36")]((({type:e,subType:n})=>t[Jr("0x4c")]==e&&t[Jr("0x5e")]==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0x4c")]==t&&e[Jr("0x5e")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x4b")](),a=e[Jr("0x4b")]();if((0==s||1==s)&&2==r&&i[Jr("0x24")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x40")](i,"insertion")[Jr("0x73")]((({suggestion:t,meta:e})=>e[Jr("0x3d")]&&Jr("0x3f")==t.subType));if(t[Jr("0x9")]>1&&a[Jr("0x43")].isEqual(i[Jr("0x5c")]))return!0;if(1==t[Jr("0x9")]&&(i[Jr("0x5c")][Jr("0x35")](a[Jr("0x43")])||i[Jr("0x43")][Jr("0x35")](a[Jr("0x5c")])))return!0}if(3==s&&3==r&&i[Jr("0x5c")].isBefore(a[Jr("0x5c")])){const t=i.end[Jr("0x38")],e=a[Jr("0x5c")][Jr("0x54")];return o[Jr("0x29")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x69")].registerPostFixer((()=>{let e=!1;const s=Array.from(t[Jr("0x30")][Jr("0x69")].differ[Jr("0x1a")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x50")](t);if(Jr("0x39")==s&&n[Jr("0x34")](a)){if(Jr("0x6a")==i&&(Jr("0xf")==x||Jr("0x44")==x)){const t=n[Jr("0x15")](a);if(r[Jr("0x64")]){const s=t[Jr("0x4b")]()[Jr("0x14")]();if(o[Jr("0x29")](s))continue;n[Jr("0xc")](t),e=!0}}if(Jr("0x22")==i&&Jr("0x57")==x&&!r[Jr("0x64")]){const t=n[Jr("0x15")](a);t[Jr("0x66")]&&t[Jr("0x66")][Jr("0x1")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Jr("0x48")][Jr("0x49")]("ImageResize")&&n[Jr("0x67")](Jr("0x61"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x30")].document[Jr("0x4")]);r[Jr("0x13")]("width")!=s.width&&t[Jr("0x30")][Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x61"),commandParams:[s]})}))})),t[Jr("0x48")][Jr("0x49")](Jr("0x71"))&&n.enableCommand(Jr("0x1b"),((e,s)=>{const r=o[Jr("0x1c")](t.model[Jr("0x69")][Jr("0x4")]);(r[Jr("0x10")](Jr("0x62"))?r[Jr("0x13")](Jr("0x62")):"")!=s[Jr("0x46")]&&t.model[Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x1b"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Jr("0x5a")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x5e")]==n)))return t[Jr("0x45")]?{}:void 0})),n[Jr("0x41")][Jr("0x1f")]((t=>{if(Jr("0x22")==t[Jr("0x4c")]||"deletion"==t[Jr("0x4c")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x2d"),"caption"))return{type:Jr("0x22")==t[Jr("0x4c")]?"addObject":Jr("0x33"),element:e,quantity:1}}})),n[Jr("0x41")][Jr("0x1f")]((t=>Jr("0x6a")==t[Jr("0x4c")]&&"convertInlineImageToBlock"==t[Jr("0x5e")]?{type:Jr("0x26"),content:"Inline image to block image"}:Jr("0x6a")==t[Jr("0x4c")]&&Jr("0x2a")==t[Jr("0x5e")]?{type:Jr("0x26"),content:Jr("0x3e")}:void 0)),n[Jr("0x41")][Jr("0x1f")]((t=>{const{data:e}=t;if(e){if(Jr("0x8")==e[Jr("0x2e")]){const t=e[Jr("0x55")][0][Jr("0x51")];return n=Jr("0x31")===t?Yo(r,Jr("0xe")):s[t]||t,{type:Jr("0x26"),content:Yo(r,Jr("0x3b"),n)}}if(Jr("0x1b")==e[Jr("0x2e")]){const t=e[Jr("0x55")][0][Jr("0x46")];return t?{type:Jr("0x26"),content:Yo(r,Jr("0xb"),'"'+t+'"')}:{type:Jr("0x26"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x61")==e[Jr("0x2e")]){const t=e.commandParams[0][Jr("0x28")];return t?{type:Jr("0x26"),content:Yo(r,Jr("0x2b"),t)}:{type:Jr("0x26"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["selection","afterInit","discard","_suggestionFactory","source","commandName","handleSuggestionDescription","locale","registerCustomCallback","accept","_descriptionFactory","getAttribute","getSuggestionCallback","has","model","getSelectedElement","author","enableCommand","replaceImageSource","ImageEditing","*Format:* replace image URL","editor","change","getContainedElement","registerDescriptionCallback","get","formatBlock","getSuggestions","plugins","handleReplaceImageCommand"];var Yr,ti;Yr=Zr,ti=343,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x12")](){if(!this[ei("0x8")].plugins[ei("0x0")](ei("0x6")))return;const t=this[ei("0x8")][ei("0xf")][ei("0xc")]("TrackChangesEditing");t[ei("0x4")]("replaceImageSource",((t,e)=>this[ei("0x10")](t,e))),t[ei("0x14")][ei("0x19")]("formatBlock","replaceImageSource",ei("0x1a"),t[ei("0x14")].getSuggestionCallback(ei("0xd"),null,ei("0x13"))),t[ei("0x14")][ei("0x19")](ei("0xd"),ei("0x5"),ei("0x13"),t[ei("0x14")][ei("0x1d")](ei("0xd"),null,"accept")),t[ei("0x1b")][ei("0xb")]((t=>this[ei("0x17")](t)))}[ei("0x10")](t,e){const n=this[ei("0x8")][ei("0xf")][ei("0xc")]("TrackChangesEditing"),o=this.editor[ei("0x1")].document[ei("0x11")][ei("0x2")]();this[ei("0x8")][ei("0x1")][ei("0x9")]((()=>{let s=o[ei("0x1c")]("src");const r=this[ei("0x8")][ei("0xf")].get("Users").me;for(const t of n[ei("0xe")]({skipNotAttached:!0})){const e=t[ei("0xa")]();if(ei("0x5")===t.subType&&e===o){t[ei("0x3")]!==r&&t[ei("0x13")](),s=t.data.commandParams[0][ei("0x15")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x17")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x16")]){const t=ei("0x7");return{type:"format",content:Yo(this[ei("0x8")][ei("0x18")],t)}}}}const oi=["Users","trackChanges","listenTo","enableCommand","afterInit","value","plugins","forEach","importWord","bind","commands","high","_handleImportedData","lowest","get","track_changes","_trackChangesValueDuringImport","TrackChangesEditing","_trackChangesExecuted","dataInsert","execute","editor","_setSuggestionData"];var si,ri;si=oi,ri=241,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._trackChangesValueDuringImport=!1,this[ii("0x7")]=!1}[ii("0x10")](){const t=this[ii("0xa")],e=t[ii("0x16")][ii("0x3")](ii("0x14")),n=t[ii("0x16")][ii("0x3")](ii("0xd"));e&&(e.on(ii("0x9"),((t,[,e])=>{this[ii("0x5")]=n[ii("0x11")],e.collaboration_features[ii("0x4")]=!this[ii("0x5")]}),{priority:ii("0x0")}),this[ii("0xe")](e,ii("0x8"),this[ii("0x1")][ii("0x15")](this)),this.listenTo(e,ii("0x8"),(()=>{this[ii("0x7")]&&(n[ii("0x9")](),this[ii("0x7")]=!1)}),{priority:ii("0x2")}),t.plugins[ii("0x3")](ii("0x6"))[ii("0xf")](ii("0x14")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0x16")].get(ii("0xd")),s=o[ii("0x11")];this[ii("0x5")]!==s&&(o.execute(),this[ii("0x7")]=!0),n&&n[ii("0x13")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x12")][ii("0x3")](ii("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0xa")][ii("0x12")][ii("0x3")](ii("0x6"))[ii("0xb")](s)}))}}const ai=["*Outdent:* %0","model","indentBlock","get","plugins","outdent","locale","from","has","*Indent:* %0","markBlockFormat","enableCommand","indent","_descriptionFactory","TrackChangesEditing","afterInit","getItemLabel","document","getSelectedBlocks","outdentBlock","commandName","editor","checkAttribute","schema","format","IndentEditing"];var ci,li;ci=ai,li=131,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xe")](){const t=this[ui("0x14")],e=t[ui("0x3")][ui("0x2")](ui("0xd"));t[ui("0x3")].has(ui("0x18"))&&(e[ui("0xa")](ui("0xb")),e[ui("0xa")](ui("0x4")));const n=t[ui("0x5")];if(t.plugins[ui("0x7")]("IndentBlock")){for(const n of[ui("0x1"),ui("0x12")])e[ui("0xa")](n,(()=>{const o=Array[ui("0x6")](this.editor[ui("0x0")][ui("0x10")].selection[ui("0x11")]()).filter((t=>this.editor[ui("0x0")][ui("0x16")][ui("0x15")](t,"blockIndent")));t[ui("0x0")].change((()=>{for(const t of o)e[ui("0x9")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x1")})}))}));e[ui("0xc")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(ui("0x1")!=o[ui("0x13")]&&ui("0x12")!=o.commandName)return;const s=t.getItems()[0],r=e._descriptionFactory[ui("0xf")](s);return"indentBlock"==o[ui("0x13")]?{type:ui("0x17"),content:Yo(n,ui("0x8"),r)}:ui("0x12")==o[ui("0x13")]?{type:ui("0x17"),content:Yo(n,ui("0x19"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","editor"];gi=fi,mi=283,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}init(){this[hi("0x0")].plugins.get(hi("0x1")).enableCommand("input")}}const bi=["document","model","linkHref","plugins","unlink","registerDescriptionCallback","format","get","afterInit","*Set link:* %0","change","enableCommand","link","getAttribute","TrackChangesEditing","markInlineFormat","commandName","getFirstPosition","locale","getFirstRange","commandParams","getRanges","*Remove link*","isCollapsed","LinkEditing"];var Ei,_i;Ei=bi,_i=392,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this.editor;if(!t[Ti("0xb")].has(Ti("0x7")))return;const e=t[Ti("0xb")][Ti("0xf")](Ti("0x16"));e[Ti("0x13")]("link",((n,o)=>{const s=t[Ti("0x9")].document.selection;let r=[];if(s[Ti("0x6")]){if(!s.hasAttribute(Ti("0xa")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0xa"),s[Ti("0x15")](Ti("0xa")),t.model);r=[e]}}else r=Array.from(s[Ti("0x4")]());t.model[Ti("0x12")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x14"),commandParams:[o]})}))})),e[Ti("0x13")](Ti("0xc"),(()=>{const n=this.editor[Ti("0x9")],o=n[Ti("0x8")].selection;n[Ti("0x12")]((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x0")](),Ti("0xa"),o[Ti("0x15")](Ti("0xa")),t.model)]:ms(Ti("0xa"),o[Ti("0x2")](),t[Ti("0x9")]);for(const t of n)e[Ti("0x17")](t,{commandName:Ti("0xc"),commandParams:[]})}))})),e._descriptionFactory[Ti("0xd")]((e=>{const{data:n}=e,o=t[Ti("0x1")];if(n){if(Ti("0x14")==n[Ti("0x18")]){const t=n[Ti("0x3")][0];return{type:Ti("0xe"),content:Yo(o,Ti("0x11"),'"'+t+'"')}}return"unlink"==n[Ti("0x18")]?{type:Ti("0xe"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["change","checkTodoList","_selectedElements","before","slice","*Change to:* %0","add","listIndent","has","plugins","schema","todoList","from","todo","commandName","*Indent:* %0","blockName","model","registerDescriptionCallback","isObject","List","listType","format","value","nextSibling","commandParams","getSelectedBlocks","markBlockFormat","registerElementLabel","ELEMENT_TODO_LIST","*Uncheck item*","forceValue","get","outdentList","numberedList","locale","*Check item*","commands","TodoListEditing","ELEMENT_LIST_ITEM","element","selection","name","afterInit","enableCommand","_descriptionFactory","replace","getAttribute","previousSibling","checkChild","bulletedList","document","todoListChecked","filter","listItem","indentList","createPositionAt"];var ki,Ai;ki=yi,Ai=345,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x28")](){const t=this.editor,e=t[vi("0x20")];if(!t[vi("0x6")][vi("0x5")]("ListEditing"))return;const n=t[vi("0x6")][vi("0x1d")]("TrackChangesEditing"),o=t[vi("0x6")][vi("0x5")](vi("0x23"));function s(e){return()=>{const o=t[vi("0xe")][vi("0x30")][vi("0x26")],s=t[vi("0x22")][vi("0x1d")](e);if(s.value)return void t.execute("paragraph",{});const r=e[vi("0x1")](0,-4),i=function(t,e,n){let o=Array[vi("0x9")](t)[vi("0x32")]((t=>{return e=t,(o=n)[vi("0x2e")](e.parent,vi("0x33"))&&!o[vi("0x10")](e);var e,o}));o=o[vi("0x32")]((t=>!t.is("element",vi("0x33"))||t.getAttribute(vi("0x12"))!=e));const s=new Set;for(const t of o)t.is(vi("0x25"),vi("0x33"))?s[vi("0x3")](Si(t)):s[vi("0x3")](t);return Array[vi("0x9")](s)}(o.getSelectedBlocks(),r,t[vi("0xe")][vi("0x7")]);t[vi("0xe")][vi("0x36")]((()=>{for(const t of i)n[vi("0x18")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0xd")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x9")](t);const n=e.findIndex((t=>vi("0x33")!=t[vi("0x27")]));return n>-1&&(e=e[vi("0x1")](0,n)),e}(t[vi("0xe")][vi("0x30")][vi("0x26")][vi("0x17")]()),s=t[vi("0xe")].createRange(t[vi("0xe")].createPositionAt(o[0],vi("0x0")),t[vi("0xe")][vi("0x35")](o[o.length-1],"end"));t.model[vi("0x36")]((()=>{n[vi("0x18")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x4")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x15")];for(;t&&t[vi("0x2c")](vi("0x4"))>n[vi("0x2c")](vi("0x4"));)e[vi("0x3")](t),t=t[vi("0x15")]}return Array[vi("0x9")](e)}(o))}))}}n[vi("0x29")](vi("0x1f"),s(vi("0x1f"))),n[vi("0x29")](vi("0x2f"),s(vi("0x2f"))),o&&n[vi("0x29")](vi("0x8"),s(vi("0x8"))),n[vi("0x29")](vi("0x34"),r(vi("0x34"))),n[vi("0x29")]("outdentList",r(vi("0x1e"))),o&&n[vi("0x29")]("checkTodoList",(()=>{const e=t[vi("0x22")][vi("0x1d")]("checkTodoList"),o=Array[vi("0x9")](e[vi("0x38")]);o.filter((t=>t.getAttribute(vi("0x31"))!=e[vi("0x14")])),t[vi("0xe")][vi("0x36")]((()=>{for(const t of o)n[vi("0x18")](t,{commandName:vi("0x37"),commandParams:[{forceValue:!e[vi("0x14")]}]})}))})),n._descriptionFactory[vi("0x19")]("listItem",(t=>Yo(e,vi("0x24"),t))),n[vi("0x2a")][vi("0xf")]((t=>{const{data:n}=t;if(n){if(vi("0x1f")==n.commandName||vi("0x2f")==n[vi("0xb")]||"todoList"==n.commandName)switch(n[vi("0xb")][vi("0x2b")](vi("0x11"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0xa"):return o(Yo(e,vi("0x1a")))}if(vi("0x34")==n[vi("0xb")])return{type:vi("0x13"),content:Yo(e,vi("0xc"),Yo(e,vi("0x24")))};if("outdentList"==n.commandName)return{type:vi("0x13"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x24")))};if(vi("0x37")==n[vi("0xb")])return n[vi("0x16")][0][vi("0x1c")]?{type:"format",content:Yo(e,vi("0x21"))}:{type:vi("0x13"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:vi("0x13"),content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t[vi("0x2c")]("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x2d")]&&t[vi("0x2d")].is(vi("0x25"),vi("0x33"));){const o=t.previousSibling[vi("0x2c")](vi("0x4"));if(o==e)n=t[vi("0x2d")];else if(o<e)break;t=t[vi("0x2d")]}return n}function Ii(t){const e=[];if(t.is(vi("0x25"),vi("0x33"))&&t[vi("0x2c")]("listIndent")>0){let n=t[vi("0x15")];for(;n&&"listItem"==n[vi("0x27")]&&n[vi("0x2c")](vi("0x4"))==t[vi("0x2c")](vi("0x4"));)e.push(n),n=n[vi("0x15")]}return e}const Li=["getFirstPosition","getSiblingNodes","length","bind","type","editor","createRange","push","plugins","*Format:* set order to regular","listStart","createPositionAt","has","parent","ELEMENT_","reversed","filter","document","ListPropertiesEditing","getListTypeFromListStyleType","list.properties","map","get","handleListStyleCommand","commandParams","listType","toUpperCase","getAttribute","model","enableCommand","getSelectedBlocks","format","TrackChangesEditing","from","config","handleDescriptions","registerDescriptionCallback","listReversed","handleListReversedCommand","listStyle","_getTranslationKeyForListStyle","_getSuggestionBlocks","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","change","ListUtils","locale","listItem","startIndex","selection","styles","afterInit","getLastPosition","numbered","handleListStartCommand","forward","backward","element"];var Ni,Mi;Ni=Li,Mi=213,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0xc")](){if(!this[wi("0x18")].plugins[wi("0x1f")](wi("0x25")))return;const t=this[wi("0x18")][wi("0x35")].get(wi("0x27")),e=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x33"));t[wi("0xb")]&&e[wi("0x30")](wi("0x0"),this[wi("0x2a")][wi("0x16")](this)),t[wi("0x22")]&&e[wi("0x30")](wi("0x38"),this[wi("0x39")][wi("0x16")](this)),t.startIndex&&e.enableCommand(wi("0x1d"),this.handleListStartCommand[wi("0x16")](this)),e._descriptionFactory[wi("0x37")](this[wi("0x36")][wi("0x16")](this))}[wi("0x2a")](t,e={}){const n=this.editor.plugins[wi("0x29")](wi("0x33")),o=this[wi("0x4")]();this[wi("0x18")][wi("0x2f")].change((()=>{n[wi("0x3")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x17")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x18")][wi("0x1b")][wi("0x29")]("TrackChangesEditing"),o=this[wi("0x2")]((t=>t.is(wi("0x12"),wi("0x8"))&&wi("0xe")===t[wi("0x2e")]("listType")));if(o.length<1)return;const s=o[wi("0x28")]((t=>this.editor.model[wi("0x19")](this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,"before"),this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,0))));this[wi("0x18")][wi("0x2f")][wi("0x5")]((()=>{n[wi("0x3")](s,{commandName:wi("0x38"),commandParams:[{reversed:e[wi("0x22")]}],formatGroupId:"listReversed"})}))}[wi("0xf")](t,e={}){const n=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x33")),o=this[wi("0x2")]((t=>t.is(wi("0x12"),wi("0x8"))&&wi("0xe")===t.getAttribute(wi("0x2c"))));if(o[wi("0x15")]<1)return;const s=o[wi("0x28")]((t=>this[wi("0x18")][wi("0x2f")][wi("0x19")](this[wi("0x18")].model[wi("0x1e")](t,"before"),this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,0))));this[wi("0x18")][wi("0x2f")][wi("0x5")]((()=>{n[wi("0x3")](s,{commandName:wi("0x1d"),commandParams:[{startIndex:e[wi("0x9")]}],formatGroupId:wi("0x1d")})}))}handleDescriptions(t){const e=this.editor[wi("0x7")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x0"):o="*Change to:* %0",s={type:wi("0x32"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wi("0x17")])))};break;case wi("0x38"):o=n[wi("0x2b")][0].reversed?"*Format:* set order to reversed":wi("0x1c"),s={type:"format",content:Yo(e,o)};break;case wi("0x1d"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wi("0x2b")][0][wi("0x9")])}}return s}[wi("0x4")](){var t,e,n,o;const s=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x6"));let r=Array[wi("0x34")](this[wi("0x18")][wi("0x2f")][wi("0x24")][wi("0xa")][wi("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x12"),"listItem"))&&r.unshift(...s[wi("0x14")](this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0x13")](),wi("0x11"))),(null===(e=r[r[wi("0x15")]-1])||void 0===e?void 0:e.is(wi("0x12"),wi("0x8")))&&r[wi("0x1a")](...s[wi("0x14")](this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0xd")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0x13")]())||void 0===n?void 0:n[wi("0x20")])||void 0===o?void 0:o.is(wi("0x12"),wi("0x8")))&&(r=r.filter((t=>t.is(wi("0x12"),wi("0x8"))))),r}[wi("0x2")](t){const e=this[wi("0x18")].plugins[wi("0x29")](wi("0x6"));let n=Array[wi("0x34")](this.editor[wi("0x2f")][wi("0x24")][wi("0xa")][wi("0x31")]())[wi("0x23")](t)[wi("0x28")]((t=>{const n=this.editor.model[wi("0x1e")](t,0);return[...e[wi("0x14")](n,wi("0x11")),...e[wi("0x14")](n,wi("0x10"))]})).flat();return n=[...new Set(n)],n}[wi("0x1")](t){return wi("0x21")+this[wi("0x18")][wi("0x1b")].get(wi("0x6"))[wi("0x26")](t)[wi("0x2d")]()+"_LIST_"+t[wi("0x2d")]().replace(/-/g,"_")}}const Fi=["locale","editor","has","plugins","enableCommand","conversion","registerElementLabel","high","for","_descriptionFactory","media","stop","options","TrackChangesEditing","showSuggestionHighlights","ELEMENT_MEDIA","elementToElement","MediaEmbedEditing","createEmptyElement","div","get","downcastDispatcher"];var Pi,Di;Pi=Fi,Di=200,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x15")];if(!t[Bi("0x1")][Bi("0x0")](Bi("0xf")))return;const e=t[Bi("0x1")][Bi("0x12")](Bi("0xb")),n=t[Bi("0x14")];e[Bi("0x2")]("mediaEmbed"),e[Bi("0x7")][Bi("0x4")](Bi("0x8"),(t=>Yo(n,Bi("0xd"),t))),t[Bi("0x3")][Bi("0x6")]("dataDowncast")[Bi("0xe")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x10")](Bi("0x11"))},converterPriority:Bi("0x5")}),t.data[Bi("0x13")].on("attribute:url:media",((t,e,n)=>{n[Bi("0xa")][Bi("0xc")]&&t[Bi("0x9")]()}),{priority:Bi("0x5")})}}const Ui=["editor","enableCommand","has","plugins","afterInit","MentionEditing","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=104,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x1")];t.plugins[zi("0x3")](zi("0x6"))&&t[zi("0x4")].get(zi("0x0"))[zi("0x2")]("mention")}}const Vi=["registerElementLabel","plugins","TrackChangesEditing","locale","PageBreakEditing","has","ELEMENT_PAGE_BREAK","pageBreak","editor","enableCommand","get"];var Ki,Xi;Ki=Vi,Xi=247,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[qi("0x3")];if(!t[qi("0x7")][qi("0x0")](qi("0xa")))return;t[qi("0x7")][qi("0x5")](qi("0x8"))[qi("0x4")](qi("0x2"));const e=t[qi("0x7")][qi("0x5")](qi("0x8")),n=t[qi("0x9")];e._descriptionFactory[qi("0x6")]("pageBreak",(t=>Yo(n,qi("0x1"),t)))}}const Ji=["$text","plugins","isBlock","consume","name","filter","addMarker:suggestion:insertion","showSuggestionHighlights","format","get","span","Paragraph","registerDescriptionCallback","getSelectedBlocks","insertion","consumable","options","start","downcastDispatcher","editing","highest","_descriptionFactory","paragraph","ck-suggestion-marker--active","afterInit","markerRange","toViewPosition","nodeAfter","insertParagraph","getFirstRange","editor","parent","getItemLabel","markerName","selection","markBlockFormat","schema","enableCommand","isLimit","insert","blockName","change","TrackChangesEditing","checkChild","writer","model","registerElementLabel","end","activeMarkers","ELEMENT_PARAGRAPH","document","addClass","mapper"];var Qi,Zi;Qi=Ji,Zi=173,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0xa")](){const t=this[Yi("0x10")];if(!t.plugins.has(Yi("0x32")))return;const e=t.locale,n=t.plugins.get(Yi("0x1c"));n._descriptionFactory[Yi("0x20")](Yi("0x8"),(t=>Yo(e,Yi("0x23"),t))),n[Yi("0x17")](Yi("0x8"),((e,o={})=>{const s=t[Yi("0x1f")][Yi("0x24")],r=o[Yi("0x14")]||s[Yi("0x14")],i=Array.from(r[Yi("0x34")]())[Yi("0x2c")]((t=>{return e=t,(n=this[Yi("0x10")][Yi("0x1f")][Yi("0x16")])[Yi("0x1d")](e[Yi("0x11")],"paragraph")&&!n.isObject(e)&&Yi("0x8")!=e[Yi("0x2b")];var e,n}));t[Yi("0x1f")][Yi("0x1b")]((()=>{for(const t of i)n[Yi("0x15")](t,{commandName:Yi("0x8"),commandParams:[],formatGroupId:Yi("0x1a")},fs(t))}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x8")==n.commandName)return{type:Yi("0x2f"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x23")))}})),n[Yi("0x17")](Yi("0xe")),t[Yi("0x5")][Yi("0x4")].on(Yi("0x2d"),ex(t),{priority:Yi("0x6")}),t.data[Yi("0x4")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x2")][Yi("0x2e")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x7")];o[Yi("0x33")]((n=>{if(Yi("0x0")!==n.type)return;const{start:s,end:r}=n[Yi("0xf")]();if(!s.isTouching(r)||!s[Yi("0xd")])return;const i=t.model[Yi("0x16")],x=s[Yi("0xd")];return i[Yi("0x29")](x)&&!i[Yi("0x18")](x)&&i.checkChild(x,Yi("0x27"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o[Yi("0x12")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x28")][Yi("0x30")](Yi("0x1c")),i=o[Yi("0xb")][Yi("0x3")],x=o[Yi("0xb")][Yi("0x21")],a=t[Yi("0x1f")][Yi("0x16")];if(!i.isTouching(x)||!i[Yi("0xd")])return;const c=i[Yi("0xd")];if(a[Yi("0x29")](c)&&!a[Yi("0x18")](c)&&a[Yi("0x1d")](c,Yi("0x27"))){if(!s[Yi("0x1")][Yi("0x2a")](o[Yi("0xb")],n.name))return;const t=s[Yi("0x1e")].createUIElement(Yi("0x31"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x26")][Yi("0xc")](x);e&&r[Yi("0x22")].includes(o[Yi("0x13")])&&s[Yi("0x1e")][Yi("0x25")](Yi("0x9"),t),s[Yi("0x1e")][Yi("0x19")](i,t),s[Yi("0x26")].bindElementToMarker(t,o[Yi("0x13")])}}}const nx=["getAttributeProperties","from","getAttributes","createRangeOn","_descriptionFactory","*Remove all formatting*","document","commandName","get","has","editor","afterInit","model","selection","change","removeFormat","getItems","enableCommand","isFormatting","registerDescriptionCallback","plugins"];var ox,sx;ox=nx,sx=401,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x9")](){const t=this[rx("0x8")];if(!t[rx("0x12")][rx("0x7")]("RemoveFormatEditing"))return;const e=t.plugins[rx("0x6")]("TrackChangesEditing");e[rx("0xf")]("removeFormat",(n=>{const o=t[rx("0xa")][rx("0x4")][rx("0xb")];o.isCollapsed?n():t[rx("0xa")][rx("0xc")]((()=>{const n=Array[rx("0x14")](o.getRanges());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0xa")].schema)&&e.markInlineFormat(t[rx("0xa")][rx("0x1")](n),{commandName:rx("0xd"),commandParams:[]})}))})),e[rx("0x2")][rx("0x11")]((e=>{const{data:n}=e;if(n&&rx("0xd")==n[rx("0x5")])return{type:"format",content:Yo(t.locale,rx("0x3"))}}))}}function xx(t,e){for(const[n]of t[rx("0x0")]()){const t=e[rx("0x13")](n);if(t&&t[rx("0x10")])return!0}return!1}const ax=["has","acceptAllSuggestions","TrackChangesEditing","acceptSelectedSuggestions","discardSuggestion","get","discardAllSuggestions","enableCommand","goToNextRestrictedEditingException","discardSelectedSuggestions","RestrictedEditingModeEditing","acceptSuggestion","plugins","editor"];var cx,lx;cx=ax,lx=217,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0x6")];if(!t[ux("0x5")][ux("0x7")](ux("0x3")))return;const e=t.plugins[ux("0xc")](ux("0x9"));e[ux("0x0")]("goToPreviousRestrictedEditingException"),e[ux("0x0")](ux("0x1"));const n=t[ux("0x5")].get(ux("0x3"));n.enableCommand("trackChanges"),n[ux("0x0")](ux("0x4")),n[ux("0x0")](ux("0xb")),n[ux("0x0")](ux("0x8")),n[ux("0x0")](ux("0xd")),n[ux("0x0")](ux("0xa")),n[ux("0x0")](ux("0x2"))}}const gx=["plugins","high","mapper","merge","addMarker:suggestion","enableCommand","addMarker:suggestion:deletion","span","createPositionBefore","markerRange","test","createUIElement","downcastDispatcher","softBreak","editor","options","editing","addClass","insert","get","split","deletion","markerName","getItems","consumable","model","ck-suggestion-marker-","TrackChangesEditing","_descriptionFactory","writer"];var mx,fx;mx=gx,fx=197,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 requires(){return[nr.ShiftEnter]}init(){const t=this[hx("0x1b")],e=t.plugins[hx("0x2")]("TrackChangesEditing");e[hx("0x12")]("shiftEnter"),t[hx("0x1d")][hx("0x19")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0xe")}),t[hx("0x1d")][hx("0x19")].on(hx("0x13"),bx(t),{priority:hx("0xe")}),t.data.downcastDispatcher.on(hx("0x11"),((e,n,o)=>{o[hx("0x1c")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xb")].registerElementLabel(hx("0x1a"),(e=>Yo(t.locale,"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")].get(hx("0xa"));if(!s[hx("0x7")][hx("0x17")](o[hx("0x16")],n.name))return;const i=t[hx("0x8")];for(const t of o[hx("0x16")][hx("0x6")]()){if(!t.is("element","softBreak"))continue;const n=hx("0x4")==o[hx("0x5")][hx("0x3")](":")[1]?hx("0x10"):hx("0x3"),x=s[hx("0xc")][hx("0x18")](hx("0x14"),{class:hx("0x9")+n}),a=s[hx("0xf")].toViewPosition(i[hx("0x15")](t));e&&r.activeMarkers.includes(o[hx("0x5")])&&s[hx("0xc")][hx("0x0")]("ck-suggestion-marker--active",x),s[hx("0xc")][hx("0x1")](a,x),s[hx("0xf")].bindElementToMarker(x,o[hx("0x5")])}}}const Ex=["afterInit","getRanges","locale","from","format","FORMAT_RESTRICTED_ENABLED","plugins","registerDescriptionCallback","change","markInlineFormat","commands","has","FORMAT_RESTRICTED_DISABLED","model","get","forceValue","commandName","enableCommand","TrackChangesEditing","editor"];var _x,Tx;_x=Ex,Tx=227,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xd")](){const t=this[Cx("0xc")],e=t[Cx("0x6")],n=t[Cx("0xf")];if(!t.plugins[Cx("0x4")]("StandardEditingModeEditing"))return;const o=t[Cx("0x13")][Cx("0x7")](Cx("0xb")),s="restrictedEditingException",r=t[Cx("0x3")][Cx("0x7")](s);o[Cx("0xa")](s,((t,n={})=>{const i=e.document.selection;if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x8")]?n[Cx("0x8")]:!r.value;e[Cx("0x1")]((()=>{const t=Array[Cx("0x10")](i[Cx("0xe")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x2")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x0")]((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==s)return e.commandParams[0][Cx("0x8")]?{type:Cx("0x11"),content:Yo(n,Cx("0x12"))}:{type:Cx("0x11"),content:Yo(n,Cx("0x5"))}}))}}const kx=["editor","isBlock","add","commands","plugins","style","_descriptionFactory","_getRangesWithClasses","style:","styleName","Style","normalizeConfig","createRangeOn","every","name","registerDescriptionCallback","toLowerCase","value","enableCommand","commandName","format","change","includes","locale","get","enabledStyles","push","find","classes","getAttribute","from","markBlockFormat","model","StyleUtils","modelElements","config","*Remove format:* %0","_getStyleDefinition","getAncestors","selection","commandParams","getRanges","document","*Format:* %0","element","afterInit","block"];var Ax,vx;Ax=kx,vx=266,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xe")](){const t=this[Rx("0x10")];if(!t.plugins.has(Rx("0x1a")))return;const e=t[Rx("0x13")].get(Rx("0x15")),n=t[Rx("0x14")][Rx("0x28")]("TrackChangesEditing"),o=t[Rx("0x27")],s=t[Rx("0x14")][Rx("0x28")]("DataSchema"),r=t.plugins[Rx("0x28")](Rx("0x2"))[Rx("0x1b")](s,t[Rx("0x4")][Rx("0x28")]("style.definitions"));n[Rx("0x22")](Rx("0x15"),((o,{styleName:i})=>{const x=t[Rx("0x1")][Rx("0xb")][Rx("0x8")],a=this[Rx("0x6")](i,r);if(!a)return;if(!e[Rx("0x29")][Rx("0x26")](i))return;if(x.isCollapsed&&!a[Rx("0x11")])return void o({styleName:i});const c=!e[Rx("0x21")][Rx("0x26")](a.name);if(a[Rx("0x11")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x7")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x26")](o[Rx("0x1e")])){n[Rx("0x12")](o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x3")]);t[Rx("0x1")][Rx("0x25")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x15"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x18")+i})}))}else{let e=Array.from(x[Rx("0xa")]());if(!c){const n=Array[Rx("0x2e")](s.getDefinitionsForView(a[Rx("0xd")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x17")](t[Rx("0x1")],s,a.classes,n);o.push(...e)}e=o}t[Rx("0x1")].change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")][Rx("0x1f")]((t=>{const{data:e}=t;if(e&&Rx("0x15")===e[Rx("0x23")])return e[Rx("0x9")][0].forceValue?{type:"format",content:Yo(o,Rx("0xc"),e.commandParams[0].styleName[Rx("0x20")]())}:{type:Rx("0x24"),content:Yo(o,Rx("0x5"),e[Rx("0x9")][0][Rx("0x19")][Rx("0x20")]())}}))}[Rx("0x6")](t,e){let n=e[Rx("0xf")][Rx("0x2b")]((e=>e[Rx("0x1e")]===t));return n||(n=e.inline.find((e=>e[Rx("0x1e")]===t))),n}[Rx("0x17")](t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x2d")](o);e&&n[Rx("0x1d")]((t=>e[Rx("0x2c")].includes(t)))&&s[Rx("0x2a")](t[Rx("0x1c")](r))}return s}}const Ix=["addClass","add","getColumnIndexes","_acceptFormatSuggestionCallbackFactory","$textProxy","insertTableRowBelow","isIntersectingWithRange","getSuggestion","startsWith","rootName","map","removeTableRow","isEqual","execute","addMarker:suggestion","end","removeClass","minRow","rowspan","includes","_suggestionFactory","tableRow","registerPostFixer","getChildren","root","order","batch","length","low","position","minColumn","highest","ELEMENT_TABLE_ROW_WITH_TEXT","isArray","first","TableUtils","editor","ELEMENT_TABLE_COLUMN_WITH_TEXT","_getSuggestionCoords","change","deletion","getCellLocation","push","last","nodeAfter","from","cell","*Remove:* %0","getItems","insertTableColumnLeft","ELEMENT_TABLE_ROW","some","removeTableColumn","classes","max","table","insertTable","markMultiRangeInsertion","getSelectionAffectedTableCells","insertTableColumnRight","tableColumn","differ","_splitMarkerName","enqueueChange","ELEMENT_TABLE_COLUMN","downcastDispatcher","enableCommand","mapper","_descriptionFactory","plugins","_setupColumnsRowsFixing","tableCell","filter","getAttribute","get","commands","registerCustomCallback","suggestion","showSuggestionHighlights","refresh","_getCoordsForCells","insertion","findAncestor","writer","element","subType","join","_tablePostFixingSubtypes","document","discard","createRangeOn","above","min","ELEMENT_TABLE_WITH_TEXT","getChanges","createPositionAt","data","span","insertTableRowAbove","hasAttribute","values","TableEditing","colspan","getRanges","$graveyard","isTouching","substr","options","item","_tableSuggestions","getChangedMarkers","locale","TrackChangesEditing","*Insert:* %0","createRangeIn","addRange","model","detach","selection","getContainedElement","name","maxRow","MIN_SAFE_INTEGER","maxColumn","setSelection","createTableWalker","afterInit","fromRange","type","accept","selectTableColumn","start","MAX_SAFE_INTEGER","toLowerCase"];var Lx,Nx;Lx=Ix,Nx=404,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x55")]=["tableRow",Mx("0x3a")],this[Mx("0x6b")]=new Set}[Mx("0x7c")](){const t=this[Mx("0x22")],e=t[Mx("0x72")][Mx("0x56")].selection;if(!t[Mx("0x43")].has(Mx("0x63")))return;const n=t[Mx("0x6d")],o=t.plugins[Mx("0x48")]("TrackChangesEditing"),s=t[Mx("0x43")].get("TableUtils");o._descriptionFactory.registerElementLabel(Mx("0x35"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Mx("0x40")](Mx("0x36")),o[Mx("0x40")]("selectTableRow"),o[Mx("0x40")](Mx("0x80"));for(const n of[Mx("0x60"),Mx("0x3")]){const r=t.commands[Mx("0x48")](n);o[Mx("0x40")](n,(n=>{t[Mx("0x72")][Mx("0x25")]((t=>{n();const i=Mx("0x59")===r[Mx("0x17")],x=s[Mx("0x38")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x20")]-1:a[Mx("0x29")]+1,l=x[0][Mx("0x50")](Mx("0x35")),u=s[Mx("0x7b")](l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x8")]((e=>t[Mx("0x58")](e[Mx("0x2c")])));o[Mx("0x37")](d,Mx("0x13"))}))}))}for(const n of[Mx("0x2f"),Mx("0x39")]){const r=t.commands.get(n);o[Mx("0x40")](n,(n=>{t[Mx("0x72")][Mx("0x25")]((t=>{n();const i="left"===r.order,x=s[Mx("0x38")](e),a=s[Mx("0x0")](x),c=i?a[Mx("0x20")]-1:a[Mx("0x29")]+1,l=x[0][Mx("0x50")](Mx("0x35")),u=s[Mx("0x7b")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x2b")](u).map((e=>t[Mx("0x58")](e[Mx("0x2c")])));o[Mx("0x37")](d,Mx("0x3a"))}))}))}for(const n of[Mx("0x9"),Mx("0x32")]){const r=n[Mx("0x68")](11),i=r[Mx("0x83")](),x=i[Mx("0x68")](0,3)+"span",a=Mx("0x35")+r,c=Mx("0x5a")+r,l=Mx("0x34")+r;o[Mx("0x40")](n,(()=>{t[Mx("0x72")][Mx("0x25")]((t=>{const r=s[Mx("0x38")](e),u=r[0][Mx("0x50")](Mx("0x35"));let d;if(Mx("0x9")==n){const t=s.getRowIndexes(r);d={startRow:t[Mx("0x20")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x0")](r);d={startColumn:t[Mx("0x20")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x7b")](u,d),m=Array[Mx("0x2b")](g)[Mx("0x8")]((({cell:t})=>t)),f=Ox(m[Mx("0x46")]((t=>t[Mx("0x61")](x)))),h=Ox(m.filter((t=>!t[Mx("0x61")](x)))).map((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[Mx("0x53")]||"tableColumn"==p[Mx("0x53")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x27")](n),a=n[Mx("0x47")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x71")](o)}}}))}))}function r(n){const o=Array[Mx("0x2b")](e[Mx("0x65")]())[Mx("0x8")]((t=>i.LiveRange[Mx("0x7d")](t)));t[Mx("0x72")][Mx("0x25")]((e=>{const s=e[Mx("0x18")];n=n[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")])),e[Mx("0x7a")](n),t[Mx("0x49")][Mx("0x48")](Mx("0x9"))[Mx("0x4d")](),t[Mx("0xb")](Mx("0x9"),{forceDefaultExecution:!0}),t[Mx("0x72")][Mx("0x3d")]((()=>{t[Mx("0x72")][Mx("0x3d")](s,(t=>{const e=o[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")]));e[Mx("0x19")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x73")]()}))}))}))}function a(n){t[Mx("0x72")][Mx("0x25")]((o=>{const s=Array[Mx("0x2b")](e[Mx("0x65")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Mx("0x2e")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x66")!=e[Mx("0x16")][Mx("0x7")]&&(o.setSelection(o[Mx("0x5d")](e,0)),t.commands[Mx("0x48")](Mx("0x32"))[Mx("0x4d")](),t[Mx("0xb")](Mx("0x32"),{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x66")!=t.root[Mx("0x7")]));x.length>0&&o.setSelection(x);for(const t of s)t[Mx("0x73")]()}))}function c(t,e){return e.every((e=>t[Mx("0x31")]((t=>t[Mx("0xd")][Mx("0xa")](e.start)||e[Mx("0xd")][Mx("0xa")](t.start)))))}function l(t,e){return t[Mx("0x31")]((t=>e[Mx("0x31")]((e=>t[Mx("0xd")][Mx("0x67")](e.start)))))}t[Mx("0x5e")][Mx("0x3f")].on(Mx("0xc"),((t,e,n)=>{if(!n[Mx("0x69")][Mx("0x4c")])return;const o=e[Mx("0x6a")];if(!o)return;const s=n[Mx("0x41")].toViewElement(o);function r(t){return Array[Mx("0x1f")](t)?t:[t]}s&&Mx("0x45")===o[Mx("0x76")]&&(0,x.setHighlightHandling)(s,n[Mx("0x51")],((t,e,n)=>n[Mx("0x84")](r(e[Mx("0x33")]),t)),((t,e,n)=>n[Mx("0xe")](r(e.classes),t)))}),{priority:Mx("0x1d")}),o[Mx("0x42")].registerDescriptionCallback((t=>{if(Mx("0x4f")!=t.type&&"deletion"!=t[Mx("0x7e")])return;const e=t[Mx("0x75")]();if(null!=e&&e.is(Mx("0x52"),Mx("0x35"))){if(Mx("0x4f")==t[Mx("0x7e")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")]));if(e[Mx("0x19")])return{type:Mx("0x4f"),content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x5b"),'"'+e[Mx("0x54")](" ")+'"'))}}if(Mx("0x26")==t[Mx("0x7e")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")]));if(e[Mx("0x19")])return{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x54")](" ")+'"'))}}}})),o[Mx("0x42")].registerDescriptionCallback((t=>{if(Mx("0x13")==t[Mx("0x53")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")])),o=this._getSuggestionCoords(t),s=o[Mx("0x77")]-o[Mx("0xf")]+1;if(Mx("0x4f")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x4f"),content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x30"),s))};if(Mx("0x26")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x1e"),[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x30"),s))}}if(Mx("0x3a")==t[Mx("0x53")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t.data)),o=this[Mx("0x24")](t),s=o[Mx("0x79")]-o[Mx("0x1c")]+1;if(Mx("0x4f")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x23"),[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x3e"),s))};if(Mx("0x26")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x3e"),s))}}})),o[Mx("0x12")][Mx("0x4a")](Mx("0x4f"),Mx("0x13"),Mx("0x57"),r),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),Mx("0x13"),"accept",r),o[Mx("0x12")].registerCustomCallback(Mx("0x4f"),Mx("0x3a"),Mx("0x57"),a),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),Mx("0x3a"),Mx("0x7f"),a),o[Mx("0x12")][Mx("0x4a")](Mx("0x4f"),Mx("0x3a"),Mx("0x54"),c),o._suggestionFactory[Mx("0x4a")](Mx("0x26"),"tableColumn",Mx("0x54"),c),o[Mx("0x12")].registerCustomCallback(Mx("0x4f"),Mx("0x13"),Mx("0x54"),l),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),"tableRow",Mx("0x54"),l)}[Mx("0x1")](){const t=this[Mx("0x22")],e=t[Mx("0x72")][Mx("0x56")][Mx("0x74")];return(n,o)=>{t[Mx("0x72")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0xd")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x81")][Mx("0x2a")]);const c=s[Mx("0x70")](a);if("$graveyard"==c[Mx("0x16")][Mx("0x7")])return;const l=Array[Mx("0x2b")](e.getRanges()).map((t=>i.LiveRange[Mx("0x7d")](t)));s.setSelection(c),t[Mx("0x49")][Mx("0x48")](r)[Mx("0x4d")](),x[Mx("0x28")]({forceDefaultExecution:!0}),t[Mx("0xb")](r,...x);const u=l[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")]));u[Mx("0x19")]>0&&s[Mx("0x7a")](u);for(const t of l)t[Mx("0x73")]()}))}}[Mx("0x4e")](t){const e=this[Mx("0x22")][Mx("0x43")][Mx("0x48")](Mx("0x21"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x82")],r=Number[Mx("0x78")];for(const i of t){if(Mx("0x66")==i[Mx("0x16")][Mx("0x7")])continue;const{row:t,column:x}=e[Mx("0x27")](i),a=i[Mx("0x61")](Mx("0x10"))?i[Mx("0x47")](Mx("0x10"))-1:0,c=i[Mx("0x61")](Mx("0x64"))?i.getAttribute("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x44")](){const t=this.editor,e=t[Mx("0x43")][Mx("0x48")](Mx("0x6e")),n=t[Mx("0x43")][Mx("0x48")](Mx("0x21"));t.model[Mx("0x56")].on("change:data",(()=>{const n=Array[Mx("0x2b")](t[Mx("0x72")][Mx("0x56")][Mx("0x3b")][Mx("0x6c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x3c")](t);if(Mx("0x4b")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x5")](s);this._tablePostFixingSubtypes[Mx("0x11")](r)&&this[Mx("0x6b")][Mx("0x85")](i)}}),{priority:Mx("0x1a")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x50")](Mx("0x35")),i=n[Mx("0x27")](t);for(const e of this[Mx("0x6b")]){const n=e[Mx("0x53")],x=n[Mx("0x6")]("tablePaste"),a=n[Mx("0x68")](x?10:5),c=a[Mx("0x83")](),l=c[Mx("0x68")](0,3)+Mx("0x5f"),u="min"+a,d=Mx("0x34")+a;if(!e.isInContent)continue;if(r!=e.getFirstRange()[Mx("0x81")].findAncestor("table"))continue;if(e[Mx("0x4")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x24")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x71")](s),o=!0)}return o};t[Mx("0x72")].document[Mx("0x14")]((e=>{let n=!1;for(const s of t[Mx("0x72")][Mx("0x56")][Mx("0x3b")][Mx("0x5c")]())if("insert"==s.type)if("tableRow"==s[Mx("0x76")])for(const t of s[Mx("0x1b")].nodeAfter[Mx("0x15")]())n=n||o(t,e);else Mx("0x45")==s[Mx("0x76")]&&(n=n||o(s[Mx("0x1b")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x4e")](t.getRanges().map((t=>t[Mx("0x81")][Mx("0x2a")])))}}function Ox(t){return Array[Mx("0x2b")](new Set(t)[Mx("0x62")]())}const Fx=["length","_tablePostFixingSubtypes","document","change","refresh","direction","*Merge cells*","getSuggestions","commands","locale","getAncestors","createRangeOn","return","_areSelectedCellsMergable","registerCustomCallback","accept","getFirstPosition","from","map","trackChanges","cell","mergeTableCellDown","add","table","mergeTableCellLeft","filter","low","_descriptionFactory","isInContent","author","splitTableCellHorizontally","type","mergeTableCells","rootName","_suggestionFactory","_areMergableCells","get","execute","setSelection","TableUtils","editor","forceDefaultExecution","plugins","TrackChangesEditing","createTableWalker","containsRange","registerDescriptionCallback","_acceptFormatSuggestionCallbackFactory","getRanges","value","enableCommand","afterInit","insertion","tableCell","commandName","push","root","formatBlock","splitTableCellVertically","format","getSelectionAffectedTableCells","element","deletion","fromRange","model","markMultiRangeBlockFormat","*Split cell:* vertically","mergeTableCellRight","detach","findAncestor","selection","has"];var Px,Dx;Px=Fx,Dx=173,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x16")](){const t=this[Bx("0xb")],e=t[Bx("0x23")][Bx("0x2d")][Bx("0x29")],n=t[Bx("0x34")];if(!t.plugins[Bx("0x2a")]("TableEditing"))return;const o=t[Bx("0xd")][Bx("0x7")](Bx("0xe")),s=t.plugins[Bx("0x7")](Bx("0xa")),r=t[Bx("0xd")].get(wx);r[Bx("0x2c")][Bx("0x1a")](Bx("0x3")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x1f")](t[Bx("0x23")][Bx("0x2d")][Bx("0x29")]);t[Bx("0x23")][Bx("0x2e")]((()=>{o[Bx("0x24")](e,{commandName:Bx("0x3"),commandParams:[]},[],Bx("0x3"))}))})),t[Bx("0x33")].get("mergeTableCells").on(Bx("0x8"),((e,n)=>{t[Bx("0x33")][Bx("0x7")](Bx("0x3e"))[Bx("0x14")]&&(n[Bx("0x2b")]>0&&n[n[Bx("0x2b")]-1]&&n[n[Bx("0x2b")]-1][Bx("0xc")]||o._isForcedDefaultExecutionBlock||this[Bx("0x38")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x26"),"mergeTableCellDown",Bx("0x43")]){const n=t[Bx("0x33")][Bx("0x7")](e);o[Bx("0x15")](e,(()=>{const e=t.model[Bx("0x2d")][Bx("0x29")][Bx("0x3b")]()[Bx("0x35")]().find((t=>t.is("element",Bx("0x18")))),s=n[Bx("0x14")];t.model[Bx("0x2e")]((()=>{o[Bx("0x24")]([e,s],{commandName:Bx("0x3"),commandParams:[]},[],Bx("0x3"))}))}))}for(const e of[Bx("0x1d"),Bx("0x1")]){const n=t.commands.get(e);o[Bx("0x15")](e,(()=>{const r=s[Bx("0x1f")](t[Bx("0x23")][Bx("0x2d")].selection)[0],i=r[Bx("0x28")](Bx("0x42")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n[Bx("0x30")]){const t=s[Bx("0xf")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3c")](t).map((t=>t[Bx("0x3f")]))}else{const t=s[Bx("0xf")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3c")](t)[Bx("0x3d")]((t=>t[Bx("0x3f")]))}t.model[Bx("0x2e")]((t=>{o.markBlockFormat(t[Bx("0x36")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x46")][Bx("0x11")]((t=>{const{data:e}=t;if(e)return Bx("0x3")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,Bx("0x31"))}:void 0})),o[Bx("0x46")][Bx("0x11")]((t=>{const{data:e}=t;if(e)return Bx("0x1d")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,Bx("0x25"))}:Bx("0x1")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x12")]();for(const t of["mergeTableCellUp",Bx("0x26"),"mergeTableCellDown",Bx("0x43")])o[Bx("0x5")][Bx("0x39")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x1")])o[Bx("0x5")][Bx("0x39")](Bx("0x1c"),t,Bx("0x3a"),x);o[Bx("0x5")].registerCustomCallback(Bx("0x1c"),Bx("0x3"),"accept",(n=>{t[Bx("0x23")][Bx("0x2e")]((o=>{const s=Array[Bx("0x3c")](e[Bx("0x13")]())[Bx("0x3d")]((t=>i.LiveRange[Bx("0x22")](t)));o[Bx("0x9")](n),t[Bx("0x33")][Bx("0x7")](Bx("0x3"))[Bx("0x2f")](),t.execute(Bx("0x3"),{forceDefaultExecution:!0});const r=s[Bx("0x44")]((t=>"$graveyard"!=t[Bx("0x1b")][Bx("0x4")]));r[Bx("0x2b")]>0&&o.setSelection(r);for(const t of s)t[Bx("0x27")]()}))}));for(const e of["mergeTableCellUp",Bx("0x40"),Bx("0x43"),Bx("0x26")]){const n=t[Bx("0x33")][Bx("0x7")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x2d")][Bx("0x29")][Bx("0x3b")]()[Bx("0x35")]().find((t=>t.is(Bx("0x20"),Bx("0x18"))));this[Bx("0x6")](n.value,o)||(e[Bx("0x37")]=!1,e.stop())}}),{priority:Bx("0x45")})}}[Bx("0x38")](){const t=this.editor.commands[Bx("0x7")](Bx("0x3")),e=this[Bx("0xb")][Bx("0xd")][Bx("0x7")](Bx("0xa"));if(!t.isEnabled)return!1;const n=e[Bx("0x1f")](this[Bx("0xb")][Bx("0x23")][Bx("0x2d")][Bx("0x29")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x6")](t,e))return!1;return!0}[Bx("0x6")](t,e){const n=this.editor.plugins[Bx("0x7")](Bx("0xe")),o=this.editor[Bx("0x23")][Bx("0x36")](t),s=this.editor[Bx("0x23")][Bx("0x36")](e),r=new Set,i=new Set;for(const t of n[Bx("0x32")]())if((Bx("0x17")==t.type||Bx("0x21")==t[Bx("0x2")]||Bx("0x3")==t.subType)&&t[Bx("0x47")])for(const e of t.getRanges())e[Bx("0x10")](o,!0)&&r[Bx("0x41")](t[Bx("0x2")]+":"+t[Bx("0x0")].id),e[Bx("0x10")](s,!0)&&i[Bx("0x41")](t[Bx("0x2")]+":"+t[Bx("0x0")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i[Bx("0x2a")](t))return!1;return!0}}const Ux=["highest","markerRange","headingColumns","get","options","requires","registerCustomCallback","editing","model","data","removeAttribute","start","toViewElement","table","*Format:* %0","getSuggestion","_splitMarkerName","first","FORMAT_HEADER_ROW","change","findAncestor","consume","commandParams","_acceptFormatSuggestionCallbackFactory","nodeBefore","_suggestionFactory","getChild","activeMarkers","childCount","addMarker:suggestion","parent","TableUtils","markerName","getSelectionAffectedTableCells","from","FORMAT_REGULAR_ROW","markerNameToElements","commands","end","setAttribute","addClass","index","showSuggestionHighlights","data-suggestion","formatBlock","locale","removeMarker:suggestion","value","createPositionAfter","selection","afterInit","createPositionBefore","forceValue","getAttribute","createRange","downcastDispatcher","accept","markBlockFormat","enableCommand","commandName","ck-suggestion-marker--active","unbindElementFromMarkerName","last","consumable","removeClass","plugins","format","ck-suggestion-marker-","setTableColumnHeader","writer","mapper","has","cell","bindElementToMarker","getRowIndexes","FORMAT_REGULAR_COLUMN","getCellLocation","document","name","createTableWalker","setTableRowHeader","editor","isBefore"];var Gx,Hx;Gx=Ux,Hx=453,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("0x32")](){return[wx]}[zx("0xc")](){const t=this[zx("0x2b")];if(!t[zx("0x1b")][zx("0x21")]("TableEditing"))return;const e=t[zx("0x7")],n=t[zx("0x1b")][zx("0x30")]("TrackChangesEditing"),o=t[zx("0x1b")][zx("0x30")](zx("0x4c")),s=t.plugins[zx("0x30")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x3d")](r[zx("0x4d")]),c=n[zx("0x3c")](a);if(!c.data||"setTableColumnHeader"!=c.data[zx("0x15")])return;if(r.item)return void s.stop();if(!i[zx("0x19")][zx("0x42")](r[zx("0x2e")],s[zx("0x28")]))return;const l=r[zx("0x2e")][zx("0x38")].nodeAfter,u=r[zx("0x2e")][zx("0x0")][zx("0x45")],d=l.parent[zx("0x4b")],{column:g}=o[zx("0x26")](l),{column:m}=o[zx("0x26")](u);for(let s=g;s<=m;s++){const c=o[zx("0x29")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x22")],c=i[zx("0x20")][zx("0x39")](s);i[zx("0x1f")].addClass(zx("0x1d")+x,c),e&&i[zx("0x1f")][zx("0x1")]("data-suggestion",a,c),i[zx("0x20")][zx("0x23")](c,r[zx("0x4d")]),t&&(n[zx("0x48")].includes(r[zx("0x4d")])?i[zx("0x1f")][zx("0x2")](zx("0x16"),c):i[zx("0x1f")].removeClass("ck-suggestion-marker--active",c))}}}}n[zx("0x14")](zx("0x2a"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x35")][zx("0x27")][zx("0xb")]),i=o[zx("0x24")](r),x=r[0][zx("0x41")](zx("0x3a")),a=x[zx("0xf")]("headingRows")||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x52")][zx("0x30")](zx("0x2a"))[zx("0x9")],l=c?i.last:i[zx("0x3e")],u=x[zx("0x47")](l);let d;if(c){const e=x[zx("0x47")](a);if(u.index<e[zx("0x3")])return;d=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](e[zx("0x47")](0)),t[zx("0x35")][zx("0xa")](u[zx("0x47")](u[zx("0x49")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](u.getChild(0)),t.model[zx("0xa")](e[zx("0x47")](e[zx("0x49")]-1)))}t[zx("0x35")][zx("0x40")]((()=>{n[zx("0x13")](d,{commandName:zx("0x2a"),commandParams:[{forceValue:c}]},[],zx("0x2a"))}))})),n[zx("0x14")](zx("0x1e"),((e,o)=>{const s=t[zx("0x1b")][zx("0x30")](zx("0x4c")),r=s[zx("0x4e")](t[zx("0x35")].document[zx("0xb")]),i=s.getColumnIndexes(r),x=r[0][zx("0x41")](zx("0x3a")),a=x[zx("0xf")](zx("0x2f"))||0,c=o&&null!==o[zx("0xe")]?o[zx("0xe")]:!t.commands[zx("0x30")](zx("0x1e")).value;let l;const u=x[zx("0x47")](0),d=c?i[zx("0x18")]:i[zx("0x3e")],g=s[zx("0x29")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x4f")](g)[0].cell;if(c){const e=u[zx("0x47")](a);if(m[zx("0x2c")](e))return;l=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x47")](a-1);if(!e)return;l=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](m),t[zx("0x35")].createPositionAfter(e))}t.model[zx("0x40")]((()=>{n[zx("0x13")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x1e"))}))})),t.editing[zx("0x11")].on(zx("0x4a"),r(),{priority:zx("0x2d")}),t.data[zx("0x11")].on(zx("0x4a"),((t,e,n)=>{n[zx("0x31")][zx("0x4")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x2d")}),t[zx("0x34")].downcastDispatcher.on(zx("0x8"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x4d")]),i=n.getSuggestion(r);if(!i.data||"setTableColumnHeader"!=i[zx("0x36")][zx("0x15")])return;const x=o[zx("0x20")][zx("0x51")](e[zx("0x4d")]);if(x)for(const t of x)o.writer[zx("0x1a")]("ck-suggestion-marker-"+s,t),o.writer.removeClass(zx("0x16"),t),o.writer[zx("0x37")](zx("0x5"),t),o[zx("0x20")][zx("0x17")](t,e.markerName)}),{priority:zx("0x2d")}),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x2a")==n[zx("0x15")]){const t=n[zx("0x43")][0][zx("0xe")];return o(Yo(e,zx(t?"0x3f":"0x50")))}if("setTableColumnHeader"==n[zx("0x15")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x25")))}}function o(t){return{type:zx("0x1c"),content:Yo(e,zx("0x3b"),t)}}}));const i=s[zx("0x44")]();n[zx("0x46")][zx("0x33")](zx("0x6"),zx("0x2a"),zx("0x12"),i),n[zx("0x46")].registerCustomCallback("formatBlock","setTableColumnHeader",zx("0x12"),i)}}const Vx=["differ","previous","insert","tableCellSuggestion","author","removeMarkers","getSuggestions","endColumn","registerCustomCallback","deletion","tableCell","length","paragraph","suggestion:formatBlock:tablePasteCell","forceDefaultExecution","rows","_suggestionFactory","endRow","insertColumns","*Replace table cells*","rootName","register","keys","afterInit","getItems","getChild","removeRows","setAttributes","selection","hasSuggestion","ck-suggestion-marker","type","filter","_tablePostFixingSubtypes","getChildren","registerPostFixer","requires","markerName","every","TrackChangesEditing","insertRows","find","get","getColumns","model","getChanges","columns","removeColumns","tablePaste","value","markerToHighlight","suggestionUnloaded","end","map","deletionRanges","trackChanges","editing","discard","has","push","cells","subType","high","root","suggestionLoaded","tableCellVerticalAlignment","tablePasteChainId","tableCellHorizontalAlignment","getRange","getRowIndexes","fromEntries","fill","includes","from","position","rowInsertionRanges","insertion","getContainedElement","markerAttributes","markers","editingDowncast","createPositionBefore","view","createTableWalker","move","for","getMarkers","getAllAdjacentSuggestions","Users","_getCoordsForCells","commands","showSuggestionHighlights","_createdBatches","last","document","change","insertContent","listenTo","tableCellBorderStyle","getRanges","startsWith","next","oldRange","_replaceTableSlotCell","elementToElement","rowInsertionIndexes","formatBlock","_splitMarkerName","accept","findAncestor","isInContent","getSelectionAffectedTableCells","markMultiRangeInsertion","insertionRanges","table","tablePasteColumn","first","$graveyard","suggestion-td","stop","columnInsertionRanges","updateMarker","plugins","cell","removeMarker","isEmpty","editor","return","content","TableUtils","TableClipboard","getTableIfOnlyTableInContent","attributes","_isForcedDefaultExecutionBlock","isEqual","_descriptionFactory","low","createElement","tablePasteCell","batch","createRangeOn","columnInsertionIndexes","tablePasteRow","locale","getSuggestion","set","documentSelection","element","markMultiRangeBlockFormat","nextSibling","name","nodeAfter","tableCellPadding","some","createRangeIn","suggestion","add","tableCellBackgroundColor","getRows","join","conversion","containsRange","remove"];var Kx,Xx;Kx=Vx,Xx=406,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=["tableCellBorderWidth","tableCellBorderColor",qx("0x12"),qx("0x96"),qx("0x94"),qx("0x4d"),qx("0x48")],Jx=Object.fromEntries($x[qx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[qx("0x77")](){return[wx]}[qx("0x6a")](){const t=this[qx("0x2e")];if(!t[qx("0x2a")][qx("0x8d")](qx("0x32")))return;const n=t.plugins.get(qx("0x7a")),o=t[qx("0x2a")][qx("0x7d")](qx("0x31")),s=t[qx("0x2a")][qx("0x7d")](wx),r=t.plugins[qx("0x7d")](qx("0x32"));s[qx("0x74")][qx("0x8e")](qx("0x3e"),qx("0x23")),t[qx("0x7f")].schema[qx("0x68")](qx("0x56"),{allowIn:qx("0x5d"),allowContentOf:"tableCell",isLimit:!0}),t[qx("0x50")][qx("0x18")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t.model.on(qx("0x10"),((s,x)=>{const[a,c]=x,l=x[x[qx("0x5e")]-1];l&&l[qx("0x61")]||n[qx("0x35")]||this[qx("0x2e")][qx("0xa")].get(qx("0x8a"))[qx("0x84")]&&function(t,e,n,o,s){if(e&&!e.is(qx("0x42")))return!1;const r=s[qx("0x33")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[qx("0x1f")](n[qx("0xe")][qx("0x6f")]);if(!i[qx("0x5e")])return!1;const x=i[0].findAncestor("table"),a=o[qx("0x98")](i),c=o.getColumnIndexes(i),l={startRow:a[qx("0x24")],endRow:a[qx("0xd")],startColumn:c[qx("0x24")],endColumn:c[qx("0xd")]};return 1==i[qx("0x5e")]&&(l[qx("0x64")]+=o[qx("0x4e")](r)-1,l[qx("0x5a")]+=o[qx("0x7e")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x7f")],o,r)&&(s[qx("0x27")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x7f")][qx("0xf")]((()=>{t[qx("0x7f")][qx("0x10")](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[qx("0x5e")]&&n[qx("0x20")](s,"tablePasteRow",{tablePasteChainId:o}),r[qx("0x5e")]&&n.markMultiRangeInsertion(r,qx("0x23"),{tablePasteChainId:o}),a.length&&n[qx("0x20")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,qx("0x83"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[qx("0x44")](l[qx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[qx("0x3c")](o),i=e.find((t=>t[qx("0x97")]()[qx("0x36")](r)));i&&n[qx("0x8e")]([i[qx("0x46")],s])}n.length&&u.setAttribute(qx("0xa1"),Object[qx("0x99")](n))}i=null})))}),{priority:e.priorities.high+10}),t[qx("0x2a")][qx("0x7d")](qx("0x32")).on(qx("0x17"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x27")]();const r=n[qx("0x2b")],x=o,a=Zx(r),c=Zx(x);t[qx("0x2f")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[qx("0x52")](r[qx("0x6c")](0));for(const t of Array[qx("0x9c")](x.getChildren()))s[qx("0x55")](t,r,qx("0x87"));const t=i[qx("0x19")][qx("0x9b")](n.row),e=i[qx("0x3d")][qx("0x9b")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[qx("0x4a")](r));else{const t=s[qx("0x39")](qx("0x56")),e=s[qx("0x39")]("tableCellSuggestion");s.wrap(s.createRangeIn(r),e),s[qx("0x55")](t,r,0);for(const e of Array[qx("0x9c")](x[qx("0x75")]()))s[qx("0x55")](e,t,qx("0x87"));l=s[qx("0x3c")](t),u=s[qx("0x3c")](e)}const d=Array[qx("0x9c")](x.getAttributes())[qx("0x73")]((([t])=>$x[qx("0x9b")](t)));i[qx("0x8f")].push({element:r,attributes:d[qx("0x5e")]?Object[qx("0x99")](d):null}),l&&i[qx("0x21")][qx("0x8e")](l),u&&i[qx("0x89")][qx("0x8e")](u)}),{priority:qx("0x91")}),o.on(qx("0x65"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x81")]||1;i[qx("0x3d")]=new Array(a)[qx("0x9a")](x)[qx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x3")](s,{startColumn:x,endColumn:x+a-1}))i[qx("0x28")][qx("0x8e")](t[qx("0x7f")][qx("0x3c")](e))}),{priority:qx("0x38")}),o.on(qx("0x7b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x62")]||1;i[qx("0x19")]=new Array(a)[qx("0x9a")](x)[qx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x3")](s,{startRow:x,endRow:x+a-1}))i[qx("0x9e")].push(t[qx("0x7f")][qx("0x3c")](e))}),{priority:qx("0x38")}),n[qx("0x37")].registerDescriptionCallback((e=>{if(e.subType&&e.subType.startsWith(qx("0x83")))return e.previous?{}:{type:qx("0x9f"),content:Yo(t[qx("0x3f")],qx("0x66"))}}));const x=()=>!1;for(const t of["tablePaste",qx("0x23"),qx("0x3e"),qx("0x3a")])n[qx("0x63")].registerCustomCallback(qx("0x9f"),t,"join",x),n[qx("0x63")].registerCustomCallback(qx("0x5c"),t,qx("0x4f"),x),n._suggestionFactory[qx("0x5b")]("formatBlock",t,qx("0x4f"),x);n[qx("0x63")][qx("0x5b")](qx("0x1a"),"tablePasteCell",qx("0x8c"),x),n[qx("0x63")].registerCustomCallback(qx("0x1a"),"tablePasteCell",qx("0x1c"),((e,n,o)=>{const s=e[qx("0x88")]((t=>t.getContainedElement()))[qx("0x73")]((t=>t)),r=new Map(s[qx("0x88")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[qx("0x41")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[qx("0xa1")])){const o=t[qx("0x7f")][qx("0xa2")][qx("0x7d")](e),s=o?o[qx("0x97")]()[qx("0xa0")]():null;s&&r[qx("0x41")](s,n)}t[qx("0x7f")][qx("0xf")]((t=>{for(const[e,n]of r)t[qx("0x6e")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[qx("0x5b")](e,qx("0x83"),o,((s,r,i)=>{t[qx("0x7f")][qx("0xf")]((t=>{const x=[];for(const t of s){const e=t.start[qx("0x47")];e.is("element","tableCellSuggestion")&&x.push(e)}n[qx("0x63")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)qx("0x25")!=e[qx("0x92")][qx("0x67")]&&t.unwrap(e)}))}))};a("insertion",qx("0x1c")),a(qx("0x9f"),"discard"),a(qx("0x5c"),"accept"),a(qx("0x5c"),"discard"),n._suggestionFactory[qx("0x5b")](qx("0x9f"),"tablePasteRow",qx("0x8c"),(t=>{const e=t[qx("0x88")]((t=>t[qx("0xa0")]())),n=e[0][qx("0x1d")](qx("0x22")),{minRow:r,maxRow:i}=s[qx("0x9")](e);o[qx("0x6d")](n,{at:r,rows:i-r+1})})),n[qx("0x63")][qx("0x5b")](qx("0x9f"),qx("0x23"),qx("0x8c"),(t=>{const e=t[qx("0x88")]((t=>t[qx("0xa0")]())),n=e[0].findAncestor(qx("0x22")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[qx("0x82")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x90")]||!e.subType[qx("0x14")](qx("0x83")))return;const o=e[qx("0x34")][qx("0x95")],s=n[qx("0x59")]()[qx("0x73")]((t=>t.isInContent&&t[qx("0x34")]&&t.attributes.tablePasteChainId==o));s[qx("0x5e")]&&e[qx("0x7")]().length!=s[qx("0x5e")]&&s.reduce(((t,e)=>(t[qx("0x15")]=e,e[qx("0x54")]=t,e)))};function l(t,e=!0){const{id:o}=n[qx("0x1b")](t.markerName),s=[qx("0x71"),"ck-suggestion-marker-insertion"],r=n.activeMarkers[qx("0x9b")](t[qx("0x78")]);return r&&s[qx("0x8e")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x93"),c,{priority:qx("0x91")}),n.on(qx("0x86"),c,{priority:qx("0x91")}),t[qx("0x7f")][qx("0xe")][qx("0x76")]((()=>{let e=!1;const o=Array[qx("0x9c")](t[qx("0x7f")][qx("0xe")][qx("0x53")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[qx("0x1b")](s);if(qx("0x4b")!=o||qx("0x5c")!=i||r[qx("0x16")])continue;if(!n[qx("0x70")](x))continue;const a=n[qx("0x40")](x)[qx("0x13")](),c=t[qx("0x2a")][qx("0x7d")]("Users").me;for(const t of n.getSuggestions())if(t[qx("0x1e")]&&t[qx("0x57")]==c&&qx("0x1a")==t[qx("0x72")]&&qx("0x3a")==t[qx("0x90")]&&t[qx("0x13")]()[qx("0x79")]((t=>a[qx("0x49")]((e=>e[qx("0x51")](t,!0))))))for(const n of t[qx("0x7")]())n[qx("0x1e")]&&(n[qx("0x8c")](),e=!0)}return e})),t[qx("0x7f")][qx("0xe")].registerPostFixer((e=>{const o=t.commands[qx("0x7d")]("redo");if(!o||!o[qx("0xc")].has(e[qx("0x3b")]))return!1;let s=!1;const r=t.plugins[qx("0x7d")](qx("0x8")).me,i=t[qx("0x7f")][qx("0xe")].differ[qx("0x80")](),x=Array[qx("0x9c")](t[qx("0x7f")][qx("0xe")][qx("0x53")].getChangedMarkers())[qx("0x73")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x1b")](t);return"suggestion"==o&&qx("0x83")==s&&i==r.id&&!e[qx("0x16")]}));for(const t of i){if(qx("0x55")!=t[qx("0x72")]||"tableCellSuggestion"!=t[qx("0x46")]||1!=t[qx("0x5e")])continue;const n=e.createRange(t[qx("0x9d")],t[qx("0x9d")].getShiftedBy(1));if(!x[qx("0x7c")]((({data:t})=>t.newRange[qx("0x36")](n))))for(const{name:t,data:o}of x)if(n[qx("0x51")](o.newRange)){e[qx("0x29")](t,{range:n}),s=!0;break}}return s})),t[qx("0x7f")][qx("0xe")][qx("0x76")]((e=>{let o=!1;const s=t[qx("0x2a")][qx("0x7d")]("Users").me,r=n.getSuggestions().filter((t=>t[qx("0x1e")]&&t[qx("0x57")]==s)),i=new Set,x=new Set;for(const t of r)if(qx("0x83")==t[qx("0x90")])for(const e of t[qx("0x6")]()){const n=e[qx("0x97")]().getContainedElement();if(n)if(n.is(qx("0x43"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[qx("0x46")]),i.add(n),o=!0;const s=n[qx("0x45")],r=n.previousSibling,a=s&&s.is(qx("0x43"),qx("0x56")),c=r&&r.is(qx("0x43"),qx("0x56"));a&&!i.has(s)&&x[qx("0x4c")](s),c&&!i.has(r)&&x[qx("0x4c")](r)}else n.is("element",qx("0x5f"))&&n[qx("0x2d")]&&(t[qx("0x2c")](e[qx("0x46")]),o=!0)}else if(qx("0x3a")==t.subType){if(!t[qx("0x34")]||!t[qx("0x34")][qx("0x95")])continue;const e=t[qx("0x34")][qx("0xa1")];if(e&&Object[qx("0x69")](e)[qx("0x5e")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[qx("0x90")]&&e.subType[qx("0x14")]("tablePaste")){if(!e.attributes[qx("0x95")]){i=!1;break}if(e.id!=t.id&&e[qx("0x34")][qx("0x95")]==n){s=!1;break}}i&&s&&(t[qx("0x58")](),o=!0)}for(const t of i)e[qx("0x52")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[qx("0x5")](qx("0x0"))[qx("0x85")]({model:qx("0x60"),view:(t,e)=>l(t),converterPriority:qx("0x91")}),t.conversion[qx("0x5")]("dataDowncast")[qx("0x85")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[qx("0xb")]?l(t,!1):null,converterPriority:qx("0x91")});const u=t[qx("0x8b")][qx("0x2")];this[qx("0x11")](u[qx("0xe")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[qx("0x30")])[qx("0x6b")]())t.is(qx("0x43"),qx("0x26"))&&n[qx("0x8e")](t);u[qx("0xf")]((t=>{for(const e of n)t[qx("0x4")](t[qx("0x4a")](e),t[qx("0x1")](e)),t[qx("0x52")](e)}))}))}}function Zx(t){if(t[qx("0x2d")])return!0;const e=t.getChild(0);return e.is(qx("0x43"),"paragraph")&&e[qx("0x2d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0x3")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["bind","Users","format","getSuggestionCallback","data","TableColumnResizeEditing","handleResizeTableWidthCommand","author","get","plugins","editor","getContainedElement","_descriptionFactory","_suggestionFactory","resizeTableWidth","registerDescriptionCallback","resizeTable","getColumnGroupElement","afterInit","has","accept","*Format:* resize table","change","table","tableWidth","model","formatBlock","discard","markBlockFormat","TrackChangesEditing","columnWidths","subType","handleSuggestionDescription","commandParams","locale","getTableColumnsWidths","registerCustomCallback"];var ea,na;ea=ta,na=108,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x15")](){if(!this.editor[oa("0xc")][oa("0x16")](oa("0x8")))return;const t=this[oa("0xd")][oa("0xc")][oa("0xb")](oa("0x20"));t.enableCommand("resizeTableWidth",this[oa("0x9")][oa("0x3")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x9")].bind(this)),t[oa("0x10")][oa("0x2")](oa("0x1d"),"resizeTable",oa("0x17"),t[oa("0x10")][oa("0x6")](oa("0x1d"),null,"discard")),t[oa("0x10")].registerCustomCallback(oa("0x1d"),"resizeTable",oa("0x1e"),t[oa("0x10")][oa("0x6")](oa("0x1d"),null,"accept")),t[oa("0xf")][oa("0x12")](this[oa("0x23")][oa("0x3")](this))}[oa("0x9")](t,e){const n=this[oa("0xd")].plugins[oa("0xb")]("TrackChangesEditing"),o=this[oa("0xd")][oa("0xc")].get("TableColumnResizeEditing"),s=e[oa("0x1a")]||this[oa("0xd")][oa("0x1c")].document.selection.getSelectedElement();this.editor[oa("0x1c")][oa("0x19")]((()=>{const r=o[oa("0x14")](s);let i=r?o[oa("0x1")](r):null,x=s.getAttribute("tableWidth")||null;const a=e[oa("0x1b")]||x,c=e.columnWidths||i,l=this[oa("0xd")].plugins[oa("0xb")](oa("0x4")).me;for(const t of n.getSuggestions()){const e=t[oa("0xe")]();if(oa("0x13")===t[oa("0x22")]&&e===s){t[oa("0xa")]!==l&&t[oa("0x1e")]();const e=t[oa("0x7")][oa("0x24")];x=e[0][oa("0x1b")],i=e[0][oa("0x21")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1f")](s,{commandName:oa("0x11"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x13")},[],oa("0x13"))}))}[oa("0x23")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x18");return{type:oa("0x5"),content:Yo(this.editor[oa("0x0")],t)}}}}const ra=["get","enableCommand","Template","editor","TrackChangesEditing","plugins"];var ia,xa;ia=ra,xa=329,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x4")];t.plugins.has(aa("0x3"))&&t[aa("0x0")][aa("0x1")](aa("0x5"))[aa("0x2")]("insertTemplate")}}const la=["get","editor","plugins","commands","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","locale","enableCommand","TrackChangesEditing","afterInit"];var ua,da;ua=la,da=127,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x6")];if(!t[ga("0x8")].get(ga("0x9")))return;t.plugins[ga("0x5")](ga("0x3"))[ga("0x2")](ga("0x9"));const e=t[ga("0x7")][ga("0x5")](ga("0x3")),n=t[ga("0x1")];e._descriptionFactory[ga("0x0")]("tableOfContents",(t=>Yo(n,ga("0xa"),t)))}}const fa=["createRange","isCollapsed","from","afterInit","suggestion","element","_splitMarkerName","isTouching","get","end","removeMarker","TrackChangesEditing","title-content","model","getChangedMarkers","forward","plugins","getNearestSelectionRange","document","start","Title","has","ELEMENT_TITLE","newRange","editor","differ","nodeBefore"];var ha,pa;ha=fa,pa=363,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x12")](){const t=this[ba("0xc")];if(!t[ba("0x4")][ba("0x9")](ba("0x8")))return;const e=t[ba("0x4")][ba("0x17")](ba("0x1a"));e._descriptionFactory.registerElementLabel("title-content",(()=>Yo(t.locale,ba("0xa")))),t[ba("0x1")][ba("0x6")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x11")](t.model[ba("0x6")][ba("0xd")][ba("0x2")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x15")](r);if(ba("0x13")!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x[ba("0x18")][ba("0xe")];if(!a||!a.is(ba("0x14"),ba("0x0")))continue;if(!x[ba("0x7")][ba("0x16")](x.end))continue;const c=t[ba("0x1")].schema[ba("0x5")](x[ba("0x18")],ba("0x3"));if(c&&c[ba("0x10")]){const t=n[ba("0xf")](x[ba("0x7")],c[ba("0x7")]);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x19")](r),o=!0)}return o}))}}const _a=["afterInit","enableCommand","undo","redo","get","UndoEditing"];var Ta,Ca;Ta=_a,Ca=409,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this.editor,e=t.plugins[ya("0x3")]("TrackChangesEditing");t.plugins.has(ya("0x4"))&&(e[ya("0x0")](ya("0x1")),e.enableCommand(ya("0x2")))}}const Aa=["requires","has","TableCaptionEditing","afterInit","get","enableCommand","editor","TrackChangesEditing","plugins"];var va,Ra;va=Aa,Ra=282,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x6")](){return[wx]}[Sa("0x0")](){const t=this[Sa("0x3")];t.plugins[Sa("0x7")](Sa("0x8"))&&t[Sa("0x5")][Sa("0x1")](Sa("0x4"))[Sa("0x2")]("toggleTableCaption")}}const La=["commandName","handleListStartCommand","numbered","config","listStart","bind","editor","document","ELEMENT_","isFirstBlockOfListItem","getAttribute","handleDescriptions","from","DocumentListPropertiesEditing","handleListStyleCommand","change","*Change to:* %0","DocumentListUtils","enableCommand","*Format:* set order to reversed","expandListBlocksToCompleteList","_descriptionFactory","TrackChangesEditing","commandParams","list.properties","handleListReversedCommand","get","reversed","isListItemBlock","listReversed","getListTypeFromListStyleType","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","format","afterInit","replace","DocumentListPropertiesUtils","model","startIndex","listType","has","listStyle","toUpperCase","registerDescriptionCallback","plugins","locale","push","getSelectedBlocks","_getSuggestionBlocks","length","type","styles"];var Na,Ma;Na=La,Ma=109,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1d")](){if(!this[wa("0x1")].plugins[wa("0x23")](wa("0x8")))return;const t=this[wa("0x1")][wa("0x32")][wa("0x15")](wa("0x13")),e=this[wa("0x1")][wa("0x27")].get(wa("0x11"));t[wa("0x2e")]&&e[wa("0xd")](wa("0x24"),this[wa("0x9")].bind(this)),t[wa("0x16")]&&e.enableCommand(wa("0x18"),this[wa("0x14")][wa("0x0")](this)),t.startIndex&&e.enableCommand("listStart",this[wa("0x30")][wa("0x0")](this)),e[wa("0x10")][wa("0x26")](this[wa("0x6")][wa("0x0")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x1")][wa("0x27")][wa("0x15")]("TrackChangesEditing"),o=this[wa("0x1b")]();this[wa("0x1")][wa("0x20")][wa("0xa")]((()=>{n[wa("0x1a")](o,{commandName:wa("0x24"),commandParams:[{type:e.type}],formatGroupId:wa("0x24")})}))}[wa("0x14")](t,e={}){const n=this[wa("0x1")][wa("0x27")][wa("0x15")](wa("0x11")),o=this[wa("0x1")][wa("0x27")].get(wa("0xc")),s=this[wa("0x2b")]((t=>o.isListItemBlock(t)&&"numbered"===t[wa("0x5")]("listType")));null!==s&&this[wa("0x1")][wa("0x20")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x18"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x18")})}))}[wa("0x30")](t,e={}){const n=this[wa("0x1")].plugins.get(wa("0x11")),o=this[wa("0x1")].plugins[wa("0x15")](wa("0xc")),s=this._getSuggestionBlocks((t=>o[wa("0x17")](t)&&wa("0x31")===t[wa("0x5")](wa("0x22"))));null!==s&&this[wa("0x1")][wa("0x20")][wa("0xa")]((()=>{n[wa("0x1a")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x6")](t){const e=this[wa("0x1")][wa("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2f")]){case wa("0x24"):o=wa("0xb"),s={type:wa("0x1c"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x12")][0][wa("0x2d")])))};break;case wa("0x18"):o=n[wa("0x12")][0][wa("0x16")]?wa("0xe"):"*Format:* set order to regular",s={type:wa("0x1c"),content:Yo(e,o)};break;case wa("0x33"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x12")][0][wa("0x21")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x1")].plugins.get(wa("0xc"));let e=Array[wa("0x7")](this.editor[wa("0x20")].document.selection.getSelectedBlocks());return e[wa("0x29")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x2b")](t){const e=this[wa("0x1")].plugins[wa("0x15")](wa("0xc"));let n=Array[wa("0x7")](this.editor.model[wa("0x2")].selection[wa("0x2a")]()).filter(t);if(!n[wa("0x2c")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x4")](t)&&o[wa("0x29")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x3")+this[wa("0x1")][wa("0x27")].get(wa("0x1f"))[wa("0x19")](t)[wa("0x25")]()+"_LIST_"+t[wa("0x25")]()[wa("0x1e")](/-/g,"_")}}const Fa=["handleSuggestionDescription","tableCellBorderWidth","TablePropertiesEditing","locale","getSuggestions","tableBorderWidth","TableCellPropertiesEditing","TrackChangesTableProperties","*Format:* change table cell properties","getSuggestionCallback","tableBorderStyle","_descriptionFactory","change","afterInit","getAttribute","handleDiscardAction","start","accept","editor","findAncestor","join","tableCellBackgroundColor","selection","getFirstPosition","tableCellProperties","setAttribute","enableCommand","get","registerDescriptionCallback","_suggestionFactory","removeAttribute","getContainedElement","model","TrackChangesEditing","plugins","data","_getSuggestion","_handlePropertyChange","tableCellPadding","tableBorderColor","format","document","tableWidth","table","TableUtils","discard","formatBlock","tableAlignment","getSelectionAffectedTableCells","subType","registerCustomCallback","tableHeight","*Format:* change table properties","tableCellWidth","tableProperties","tableCellBorderStyle","markBlockFormat"];var Pa,Da;Pa=Fa,Da=260,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x16")]=[Ba("0x7"),Ba("0x23"),Ba("0x1e"),Ba("0xf"),Ba("0xa"),Ba("0x13"),"tableBackgroundColor"],this.tableCellProperties=["tableCellBorderColor",Ba("0x17"),Ba("0x1a"),Ba("0x6"),Ba("0x15"),"tableCellHeight",Ba("0x2e"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return Ba("0x20")}[Ba("0x26")](){const t=this[Ba("0x2b")][Ba("0x2")][Ba("0x34")](Ba("0x1"));if(this.editor[Ba("0x2")].has(Ba("0x1b"))){for(const e of this[Ba("0x16")])t[Ba("0x33")](e,((t,n)=>{const o=this[Ba("0x2b")][Ba("0x0")][Ba("0x9")][Ba("0x2f")][Ba("0x30")]()[Ba("0x2c")](Ba("0xb"));this._handlePropertyChange(e,[o],this.tableProperties,Ba("0x16"),t,n)}));t._suggestionFactory[Ba("0x12")](Ba("0xe"),Ba("0x16"),Ba("0x2a"),t[Ba("0x36")][Ba("0x22")](Ba("0xe"),null,Ba("0xd"))),t[Ba("0x36")][Ba("0x12")]("formatBlock","tableProperties",Ba("0xd"),((t,e)=>this.handleDiscardAction(this[Ba("0x16")],t,e))),t[Ba("0x36")][Ba("0x12")]("formatBlock",Ba("0x16"),"join",(()=>!1))}if(this[Ba("0x2b")][Ba("0x2")].has(Ba("0x1f"))){for(const e of this[Ba("0x31")])t[Ba("0x33")](e,((t,n)=>{const o=this.editor[Ba("0x2")][Ba("0x34")](Ba("0xc"))[Ba("0x10")](this[Ba("0x2b")][Ba("0x0")][Ba("0x9")][Ba("0x2f")]);this[Ba("0x5")](e,o,this.tableCellProperties,Ba("0x31"),t,n)}));t[Ba("0x36")][Ba("0x12")]("formatBlock","tableCellProperties",Ba("0x2a"),t[Ba("0x36")].getSuggestionCallback(Ba("0xe"),null,"discard")),t._suggestionFactory[Ba("0x12")]("formatBlock",Ba("0x31"),Ba("0xd"),((t,e)=>this[Ba("0x28")](this.tableCellProperties,t,e))),t[Ba("0x36")].registerCustomCallback(Ba("0xe"),Ba("0x31"),Ba("0x2d"),(()=>!1))}t[Ba("0x24")][Ba("0x35")]((t=>this[Ba("0x19")](t)))}[Ba("0x5")](t,e,n,o,s,r){const i=this[Ba("0x2b")].plugins.get(Ba("0x1"));this[Ba("0x2b")].model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[Ba("0x4")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x27")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x18")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x29")].nodeAfter,s=n.commandParams[0];this[Ba("0x2b")].model[Ba("0x25")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x32")](n,s[n],o):e[Ba("0x37")](n,o)}))}[Ba("0x19")](t){if(t[Ba("0x3")])switch(t[Ba("0x11")]){case Ba("0x16"):return{type:Ba("0x8"),content:Yo(this[Ba("0x2b")].locale,Ba("0x14"))};case Ba("0x31"):return{type:"format",content:Yo(this.editor[Ba("0x1c")],Ba("0x21"))}}}[Ba("0x4")](t,e){const n=this[Ba("0x2b")].plugins[Ba("0x34")](Ba("0x1"));for(const o of n[Ba("0x1d")]({skipNotAttached:!0})){const n=o[Ba("0x38")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["isAfter","deletion:accept","adapter","isInsideObject","enableCommand","_getExternalAuthor","filter","formatBlock:discard","insertion:chain","attributes","change","suggestionUnloaded","editor","author","createSelection","isLocal","type","fromCharCode","TrackChangesEditing","error-saving-suggestion-data-suggestion-discarded","markerNameToElements","markInsertion","map","fetchCommentThread","hasComments","_removeSuggestion","getRange","_customCallbacks","position","normal","delete","from","for","setSelection","get","setAttribute","discardAllSuggestions","enqueueChange","getAncestors","data-suggestion","external:","getNearestSelectionRange","splice","getWalker","getChangedMarkers","addHighlight","registerPostFixer","size","_joinSuggestions","clone","every","next","authorName","getUser","_registerDefaultCallbacks","_rangeIsInLocalUserInsertion","insertion:join","insertion:","creator","rejected","markMultiRangeDeletion","tablePasteChainId","isDocumentOperation","head","values","$textProxy","addSuggestionData","editing","data","deletion:discard","high","document","addCommentThread","catch","addMarkerName","getSuggestion","multipleBlocks","containsRangeInObject","name","isInContent","Users","getSuggestions","isObject","before","CommentsRepository","isMultiRange","unbind","elementEnd","authoredAt","_splitMarkerName","_getSuggestionData","_addThreadToSuggestion","markers","_adapter","_editor","updateMarker","moveTargetPosition","formatBlock:chain","createPositionBefore","substr","removeMarker","sort","_suggestionFactory","always","trackChanges.mergeNestedSuggestions","formatInline:","isAtStart","isLimit","removeMarkers","push","isTouching","getFirstRange","getItems","change:data","buildSuggestion","enableReadOnlyMode","stopListening","consumable","deletion:join","getAttribute","getIntersection","PENDING_ACTION_SUGGESTION","targetPosition","locale","_model","mapper","markMultiRangeBlockFormat","config","after","conversion","acceptSuggestion","activeMarkers","isCollapsed","registerCustomCallback","originalSuggestionId","_enabledCommands","ck-suggestion-marker-","isEqual","marker-count","rootName","createRangeIn","start","ck-suggestion-marker","refresh","some","_breakSuggestionMarker","getCustomProperty","_mergeNestedSuggestions","getCommentThread","isUndo","setTo","model","createdAt","fromRange","removeComment","_saved","track-changes-user-not-found","set","_checkSuggestionCorrectness","consume","multi","track-changes-suggestion-data-mismatch","markerToHighlight","acceptAllSuggestions","_setSuggestionRange","has","writer","then","getLastMatchingPosition","low","$graveyard","_cutOutSuggestionMarker","markerName","trackChanges.trackFormatChanges","editingDowncast","newRange","skipNestingCheck","_trackFormatChanges","add","isIntersectingWithRange","nodeAfter","containsRange","formatBlock:","formatBlock","selection","containerElement","_joinWithAdjacentSuggestions","pluginName","suggestionChanged","backward","_suggestionState","widget","hasSuggestion","rethrowUnexpectedError","formatInline:chain","insertion","isBlock","_getAuthorFromId","_handleNewSuggestionMarker","getSuggestionCallback","_suggestions","subType","group","_createSuggestion","removeMarker:suggestion:formatBlock","removed","formatInline:discard","nodeBefore","isAtEnd","fire","getShiftedBy","addMarker:suggestion:formatBlock","containsItem","isSelectable","change:_saved","deletion:chain","getFirstMarker","element","hasCommentThread","@external","_addSuggestionMarker","addRange","discard","return","getAllAdjacentSuggestions","PendingActions","insertContent","_setSuggestionData","requires","toJSON","forceDefaultExecution","getDifference","removeAttribute","insert","markInlineFormat","_defaultCallbacks","collaboration.channelId","remove","_commentsRepository","_isForcedDefaultExecutionBlock","parent","addSuggestion","acceptSelectedSuggestions","oldRange","define","root","deletion","accept","formatGroupId","length","isArray","addMarker:suggestion","includes","bindElementToMarker","listenTo","howMany","updateSuggestion","plugins","markDeletion","removeClass","split","getRanges","highest","track-changes-adapter-missing-getsuggestion","_refreshSuggestionsChain","suggestion","end","commandName","isOwn","formatInline:join","_updateSuggestionData","ck-suggestion-marker-formatBlock","formatBlock:join","addMarker","formatInline","dataDowncast","never","stop","deletion:","differ","containsPosition","forward","range","ready","deleteContent","join","item","discardSuggestion","showSuggestionHighlights","move","suggestion-type","addComment","createPositionAt","elementToElement","createElement","getMultiRangeId","notReady","createPositionAfter","resolve","assign","commands","getChanges","_descriptionFactory","open","toViewElement","dataReady","trackChanges","previous","detach","execute","markerToData","trackChangesCommand","discardSelectedSuggestions","batch","_isDataLoaded","clear","ck-suggestion-marker--active","isNextTo","options","schema","markerReady","value","isRemovable","commentThread","addClass","insertion:discard","suggestion:","track-changes-command-not-found","lowest","createRange","getMarkers","_findSuggestions","isBefore"];var Ga,Ha;Ga=Ua,Ha=243,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("0x13e")](){return[za("0xae"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x115")](){return za("0x6c")}constructor(t){function e(t){return t.map((t=>String[za("0x6b")](t)))[za("0x2a")]("")}super(t),this[za("0xf7")](za("0xdd"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0xd6")][za("0x64")]((()=>{for(const e of[...s,...o])this._model[za("0xb6")][za("0xff")](e)&&t[za("0x9d")].reconvertMarker(e)}))})),this[za("0x3b")]=new ss(this[za("0x66")][za("0xf1")][za("0x4c")],this.editor[za("0xd5")]),this[za("0xb7")]=null,this[za("0xc0")]=new Va(this.editor),this[za("0x122")]=new Map,this[za("0x148")]=t.plugins[za("0x7c")](za("0xae")),this[za("0xe1")]=new Set,this._model=this.editor[za("0xf1")],this[za("0x118")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0xd9")][za("0x1")](za("0x107"),"default"),this[za("0x10b")]=t[za("0xd9")][za("0x7c")](za("0x107")),t[za("0xd9")][za("0x1")](za("0xc2"),!0),this[za("0xed")]=t[za("0xd9")][za("0x7c")](za("0xc2")),this[za("0x44")]=new d(t,this._enabledCommands),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,56,50,56])}init(){const t=this[za("0x66")];t[za("0xdb")].for(za("0x108")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xb3")](t[za("0x106")]),o=[za("0xe8"),za("0xe2")+n];let s=3e3;return this[za("0xdd")].includes(t.markerName)&&(o[za("0xc7")](za("0x49")),s=3010),za("0x3")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xdb")][za("0x7a")](za("0x20"))[za("0x10c")]((e=>{e.on(za("0x8"),((e,n,o)=>{if(!o[za("0x4b")][za("0x2d")])return;const s=n.item;if(!s)return;const r=o[za("0xd7")].toViewElement(s);t[za("0xf1")][za("0x4c")][za("0xac")](s)&&r&&!r[za("0xec")](za("0x119"))&&r.is(za("0x113"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0xa0")})})),t[za("0xdb")][za("0x7a")]("dataDowncast")[za("0xfc")]({model:za("0x16"),view:(t,e)=>{if(!e[za("0x4b")][za("0x2d")])return null;const{type:n}=this._splitMarkerName(t[za("0x106")]);return{classes:["ck-suggestion-marker",za("0xe2")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x2b")].is("selection"))return void s[za("0xcf")][za("0xf9")](o[za("0x2b")],n.name);const r=s[za("0xd7")][za("0x3d")](o.item);if(!o[za("0x2b")].is(za("0x133"))||!t[za("0xf1")][za("0x4c")].isBlock(o.item)||r[za("0xec")](za("0x87")))return;const{id:i}=this[za("0xb3")](o[za("0x106")]);s[za("0x100")][za("0x51")]([za("0xe8"),"ck-suggestion-marker-formatBlock"],r),s[za("0x100")][za("0x7d")](za("0x81"),i,r),s[za("0xd7")][za("0xa")](r,o.markerName),e&&(this[za("0xdd")][za("0x9")](o[za("0x106")])?s[za("0x100")][za("0x51")](za("0x49"),r):s[za("0x100")].removeClass(za("0x49"),r));for(const e of t[za("0xf1")][za("0xe6")](o[za("0x2b")])[za("0xca")]())s[za("0xcf")][za("0xf9")](e,n.name);s.consumable.consume(o.item,n.name)};t[za("0xdb")][za("0x7a")](za("0x20"))[za("0x10c")]((t=>{t.on(za("0x12d"),((t,e,o)=>{o.options[za("0x2d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x13")})})),t.conversion[za("0x7a")]("dataDowncast")[za("0x43")]({model:"suggestion",view:(t,e)=>e[za("0x4b")][za("0x2d")]?null:{group:"suggestion",name:t[za("0xbd")](11)}}),t[za("0xdb")][za("0x7a")]("upcast")[za("0x32")]({view:{name:za("0x16"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xd1")](za("0x2f"))+":"+t[za("0xd1")]("id");return t[za("0xd1")](za("0xe4"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0x33")]("$marker",{"data-name":n})}}),t[za("0xdb")][za("0x7a")]("upcast").dataToMarker({view:"suggestion"}),t[za("0xdb")].for(za("0x108"))[za("0x10c")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xa0")})})),t[za("0xdb")][za("0x7a")](za("0x108"))[za("0x10c")]((t=>{t.on(za("0x126"),((t,e,n)=>{const o=n[za("0xd7")][za("0x6e")](e[za("0x106")]);if(o)for(const t of o)t[za("0xec")](za("0x87"))||(n[za("0x100")][za("0x10")]([za("0xe8"),za("0x1c"),za("0x49")],t),n[za("0x100")][za("0x142")](za("0x81"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0xa0")})})),t[za("0xf1")].document[za("0x88")]((e=>{let n=!1;const o=Array[za("0x79")](t[za("0xf1")][za("0xa1")][za("0x24")][za("0x86")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x16")!==o)continue;const u=this[za("0x122")].get(l);if(null!=a[za("0x109")])if(za("0x1f")==c&&(n=n||qa(a[za("0x109")],x,e,t.model[za("0x4c")])),a[za("0x109")][za("0xde")]||za("0x104")==a.newRange.root[za("0xe5")]||za("0x111")==c&&!Ja(a[za("0x109")])||za("0x3")==c&&(Xa(i=a[za("0x109")])||(r=i)[za("0xe7")][za("0x14a")]==r.end[za("0x129")]&&r.start[za("0x12a")]))e.removeMarker(x),n=!0;else{if(!u||!u[za("0xa9")])continue;s[za("0x10c")](u)}}var r,i;return s[za("0x89")]>0&&(n=!!this[za("0x114")](s)||n),n})),t.model[za("0xa1")][za("0x88")]((e=>{let n=!1;for(const o of t[za("0xf1")][za("0xa1")].differ[za("0x3a")]()){if(za("0x143")!=o.type)continue;const s=o.position[za("0x12c")](o.length);if(s[za("0x12a")])for(const r of this[za("0x122")].values()){if(r[za("0xaf")]||!r[za("0xa9")])continue;if(za("0x111")!=r[za("0x6a")])continue;const i=r.getFirstRange();if(i[za("0xe7")][za("0x14a")]!=i.end[za("0x14a")]&&i[za("0x17")][za("0xe3")](o[za("0x76")])){const o=t[za("0xf1")].createRange(i[za("0xe7")],s);e[za("0xb9")](r[za("0x132")](),{range:o}),n=!0}}}return n})),t[za("0xf1")][za("0xb6")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0xb3")](e[za("0xa8")]),n=this[za("0x122")].get(t);n&&n.addMarkerName(e[za("0xa8")])}})),t[za("0xf1")].document.on(za("0xcb"),(()=>{const e=Array[za("0x79")](t[za("0xf1")][za("0xa1")][za("0x24")].getChangedMarkers())[za("0x60")]((t=>za("0x16")===this[za("0xb3")](t[za("0xa8")])[za("0x124")]));if(0===e[za("0x6")])return;e[za("0xbf")](((t,e)=>{const n=t[za("0x9e")][za("0x0")],o=e[za("0x9e")][za("0x0")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[za("0xe7")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb3")](t);if(null===s[za("0x0")]){const e=this._handleNewSuggestionMarker(t);o[za("0x10c")](e)}else{const t=this[za("0x122")][za("0x7c")](e);null!==s[za("0x109")]||t[za("0xa9")]?(n.add(t[za("0x99")]),o[za("0x10c")](t)):this[za("0x73")](t)}}o[za("0x89")]>0&&this[za("0x15")](o);for(const t of n)this[za("0x12b")](za("0x116"),t)})),t[za("0xf1")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x122")][za("0x89")])return;if(!o[za("0x98")])return;if(o.batch[za("0xef")]||!o[za("0x46")][za("0x69")])return;let s,r;switch(o[za("0x6a")]){case za("0x143"):s=t[za("0xf1")][za("0x31")](o[za("0x76")]),r=s[za("0x12c")](o[za("0xc")]);break;case"split":s=t.model[za("0x31")](o.splitPosition),r=t[za("0xf1")][za("0x31")](o[za("0xba")]);break;case za("0x2e"):s=t[za("0xf1")][za("0x31")](o[za("0xd4")]),r=s.getShiftedBy(o.howMany);break;default:return}const i=t.model[za("0x56")](s,r);t[za("0xf1")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x58")](i)){if(t.isMultiRange)continue;if("formatInline"==t.type)continue;const n=t.data&&t.data[za("0xa6")];(za("0x111")!=t[za("0x6a")]||za("0x11")==o[za("0x6a")]&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x6a")]&&e[za("0x19")]||t[za("0xc9")]()[za("0x10f")](i)&&this[za("0xeb")](t,s,r))}}))}),{priority:za("0x55")}),t.model.on(za("0x29"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x149")])return;if(!this[za("0x44")][za("0x4e")])return;if(o.isCollapsed)return;const r=t[za("0xf1")][za("0x4c")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x10e")]&&r.isLimit(i[za("0x10e")])?null:r[za("0x83")](i,za("0x26")),c=x.nodeBefore&&r[za("0xc5")](x[za("0x129")])?null:r.getNearestSelectionRange(x,za("0x117")),l=t[za("0xf1")][za("0x56")](a?a.start:i,c?c[za("0x17")]:x);t[za("0xf1")][za("0x64")]((e=>{this[za("0xf")](l);const n=t[za("0xf1")][za("0x4c")].getNearestSelectionRange(l[za("0xe7")]);o.is("documentSelection")?e[za("0x7b")](n):o[za("0xf0")](n)})),e[za("0x22")]()}),{priority:e.priorities[za("0x77")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[za("0x6")]-1];o&&o[za("0x140")]||this[za("0x149")]||this[za("0x44")][za("0x4e")]&&(t[za("0xf1")][za("0x64")]((()=>{let o=t[za("0xf1")][za("0x13c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x139")]=o[za("0x8b")]();const s=o.end[za("0x129")],r=t[za("0xf1")].schema;s&&r[za("0x11e")](s)&&!r.isObject(s)&&(o=t[za("0xf1")][za("0x56")](o[za("0xe7")],t[za("0xf1")][za("0x31")](s,za("0x17")))),this[za("0x6f")](o)})),e.stop())}),{priority:za("0xa0")}),this[za("0x66")].commands[za("0x10c")](za("0x3f"),this[za("0x44")]),this[za("0x5e")](za("0x3f"));const o=new p(t,this[za("0x122")]);t.commands.add(za("0xdc"),o),this[za("0x5e")](za("0xdc"));const s=new C(t,this[za("0x122")]);t.commands[za("0x10c")](za("0x2c"),s),this[za("0x5e")](za("0x2c")),t[za("0x39")].add(za("0xfd"),new F(t,o,this._suggestions)),this[za("0x5e")](za("0xfd")),t[za("0x39")][za("0x10c")]("discardAllSuggestions",new F(t,s,this[za("0x122")])),this[za("0x5e")](za("0x7e")),t[za("0x39")][za("0x10c")]("acceptSelectedSuggestions",new U(t,o,this[za("0x122")])),this[za("0x5e")](za("0x14c")),t[za("0x39")][za("0x10c")](za("0x45"),new U(t,s,this._suggestions)),this[za("0x5e")](za("0x45"));const r=t[za("0xe")][za("0x7c")]("CommentsRepository");this[za("0xb")](r,za("0x30"),((t,{threadId:e})=>{const n=this._suggestions[za("0x7c")](e);n&&n[za("0x50")]&&1===n.commentThread.length&&this[za("0x1b")](e,{hasComments:!0})}),{priority:za("0x103")}),this[za("0xb")](r,za("0xf4"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0x50")]&&!n[za("0x50")][za("0x6")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[za("0x5c")](t){if(this[za("0xb7")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0xb7")]=t}get[za("0x5c")](){return this[za("0xb7")]}[za("0xab")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x122")][za("0x9a")]())t&&!e[za("0xa9")]||n.push(e);return e?n.map((t=>t[za("0x13f")]())):n}getSuggestion(t){const n=this[za("0x122")][za("0x7c")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0x11a")](t){return this[za("0x122")][za("0xff")](t)}[za("0x9c")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x6a")][za("0x11")](":"),i=this._suggestions[za("0x7c")](n)||this[za("0x125")](s,r,n,e,o);if(this[za("0xb5")](i),this[za("0xf8")](i,s,r||null,e),i[za("0xf2")]=t[za("0xf2")],i[za("0x47")]=!0,o&&o[za("0x135")]){const t=o[za("0x135")],e=this[za("0x5f")](t[za("0x8e")]);i[za("0xb2")]=t[za("0xf2")],i[za("0x67")]=e,i.isExternal=!0}else i.authoredAt=t.createdAt;switch(t.data&&(i[za("0x9e")]=t.data),t[za("0x63")]&&(i[za("0x63")]=t[za("0x63")]),this[za("0xb7")]&&this._adapter[za("0x14b")]||(i[za("0xf5")]=!0),this._suggestionState[za("0x7c")](i)){case za("0x35"):this[za("0x118")][za("0xf7")](i,za("0x3e"));break;case za("0x4d"):i[za("0xa9")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x114")](new Set([i])),this[za("0x118")][za("0xf7")](i,za("0x28")),this[za("0x12b")]("suggestionLoaded",i)):this._suggestionState[za("0xf7")](i,za("0x127"))}return i}[za("0xdc")](t){this[za("0x140")]((()=>{this.editor[za("0xf1")][za("0x64")]((()=>{for(const e of t[za("0x13a")]())e[za("0x4")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[za("0x66")][za("0xf1")][za("0x64")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x138")]()}))}))}[za("0x5e")](t,n){const o=this.editor[za("0x39")][za("0x7c")](t);if(!o)throw new e.CKEditorError(za("0x54"),this,{commandName:t});this[za("0xe1")][za("0x10c")](o),n&&o.on(za("0x42"),((t,e)=>{this[za("0x44")][za("0x4e")]&&(this._isForcedDefaultExecutionBlock||e.length>0&&e[e[za("0x6")]-1]&&e[e.length-1][za("0x140")]||(n(((...t)=>o[za("0x42")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0xa0")})}forceDefaultExecution(t){let n,o;const s=this[za("0x149")];this[za("0x149")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x149")]=!1),o&&e.CKEditorError[za("0x11b")](o,this),n}[za("0x6f")](t,n=null,o={}){if(t[za("0xde")])return null;const s=this[za("0x66")][za("0xe")].get("Users").me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,"insertion"))if(s[za("0x19")]){if(!s[za("0x4a")]){if(s.containsRangeInObject){if(!this[za("0xed")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0xeb")](e,t[za("0xe7")],t.end);break}if(n==e.subType&&tc(e,o)){const n=e[za("0xc9")]();return n.start[za("0xe3")](t.end)?this[za("0xfe")](e,this._model[za("0x56")](t[za("0xe7")],n[za("0x17")])):this._setSuggestionRange(e,this[za("0xd6")][za("0x56")](n[za("0xe7")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x93")+n:"insertion",a=this[za("0x13d")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x136")](x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xfa"),o={}){const s=this[za("0x66")][za("0xe")][za("0x7c")](za("0xaa")).me,r=this._suggestionFactory[za("0x121")](za("0x11d"),n,za("0x2a"));for(const e of this[za("0xab")]())if(e[za("0x67")].id==s.id&&za("0x11d")==e.type&&e[za("0x123")]==n&&tc(e,o)&&(r(e[za("0x12")](),t)||r(t,e[za("0x12")]()))){for(const n of t)e[za("0x137")](n);return e}for(const{suggestion:e,meta:n}of this[za("0x58")](t,za("0x11d"))){if(!n.isOwn)continue;if(!this[za("0xed")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[za("0x10f")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0x93")+n,c=this[za("0x13d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x136")](a,i,x,e,Zo[za("0x34")]());return c}[za("0x144")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xde")])return null;if("never"===this[za("0x10b")]){const e=this[za("0xc0")][za("0x121")](za("0x1f"),o,za("0x4"));return this[za("0x140")]((()=>e([t],n,s))),null}const r=this[za("0x66")][za("0xe")].get("Users").me,i=[];if(za("0xc1")!==this[za("0x10b")])for(const{suggestion:e,meta:n}of this[za("0x58")](t,"insertion"))n[za("0x19")]&&!n[za("0x5d")]&&i[za("0xc7")](...e[za("0x12")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xd2")](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("0x6")];){const o=n[e][za("0x141")](t);n[za("0x84")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x6")]&&this[za("0xd6")].change((()=>{for(const t of x){const e=this._suggestionFactory[za("0x121")]("formatInline",o,za("0x4"));this[za("0x140")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xe7")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x58")](t,za("0x1f"))){if(!n[za("0x19")])continue;if(e.subType!=o)continue;if(!tc(e,s))continue;const r=e[za("0xc9")]();if(r[za("0x10f")](t,!0))return null;x=x[za("0x59")](r[za("0xe7")])?x:r[za("0xe7")],a=a[za("0x5a")](r[za("0x17")])?a:r[za("0x17")],i?r[za("0xe7")].isBefore(i[za("0xc9")]()[za("0xe7")])?(i[za("0xc6")](),i=e):e[za("0xc6")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0xfe")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0xc3")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x136")](za("0xc3")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x5")]||(n[za("0x5")]=n[za("0x18")]),n[za("0xa6")]=t.is(za("0x27")),s=s||$a(n);const i=o[za("0x70")]((t=>Qa(t,this[za("0xd6")]))),x=t.is(za("0x27"))?t:Qa(t,this[za("0xd6")]);if(za("0x21")===this[za("0x10b")]){const t=this._suggestionFactory[za("0x121")]("formatBlock",s,"accept");return this[za("0x140")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0xc1")!==this[za("0x10b")]){const t=this[za("0xc0")][za("0x121")](za("0x111"),s,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xe7")],u=x.end;for(const{suggestion:t,meta:e}of this[za("0x58")](x,"formatBlock")){if(!e.isOwn)continue;if(e[za("0x4a")]||e[za("0xa7")]||e[za("0x5d")])continue;if(t[za("0x9e")][za("0x5")]!=n[za("0x5")])continue;if(!tc(t,r))continue;const o=t[za("0xc9")]();if(t[za("0x123")]==s){if(o[za("0x10f")](x,!0))return null;l=l.isBefore(o.start)?l:o[za("0xe7")],u=u[za("0x5a")](o[za("0x17")])?u:o[za("0x17")],c?o[za("0xe7")][za("0x59")](c[za("0xc9")]()[za("0xe7")])?(c[za("0xc6")](),c=t):t[za("0xc6")]():c=t}else{const e=x[za("0xd2")](o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[za("0xe")][za("0x7c")]("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0xfe")](c,this[za("0xd6")][za("0x56")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x136")]("formatBlock:"+s,g,m,this._model.createRange(l,u)),t}}[za("0xd8")](t,n,o=[],s=null,r={}){n[za("0x5")]||(n.formatGroupId=n[za("0x18")]);const i=t[0];n[za("0xa6")]=i.is(za("0x27")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0xd6")]))),a=i.is("range")?t:t[za("0x70")]((t=>Qa(t,this[za("0xd6")])));if("never"===this[za("0x10b")]){const t=this[za("0xc0")][za("0x121")](za("0x111"),s,za("0x4"));return this[za("0x140")]((()=>t(a,n,r))),null}x[za("0xc7")](...a);let c=!0;for(const t of x)if(!this[za("0x91")](t)){c=!1;break}if(c&&"always"!==this[za("0x10b")]){const t=this._suggestionFactory[za("0x121")](za("0x111"),s,za("0x4"));return this[za("0x140")]((()=>t(a,n,r))),null}const l=this.editor.plugins[za("0x7c")](za("0xaa")).me;for(const t of this.getSuggestions()){if(t[za("0x67")].id!=l.id)continue;if(za("0x111")!=t[za("0x6a")]||t[za("0x9e")].formatGroupId!=n.formatGroupId)continue;if(!tc(t,r))continue;const e=t[za("0x123")]==s;for(let n=0;n<a[za("0x6")];n++){const o=a[n];for(const s of t[za("0x57")]()){const r=s[za("0x74")]();if(o.isEqual(r)){e?(a[za("0x84")](n,1),n--):t[za("0xbe")](s[za("0xa8")]);break}}}}if(0==a.length)return null;const u=this[za("0xc0")].getSuggestionCallback(za("0x111"),s,za("0x2a"));for(const t of this[za("0xab")]())if(t.author.id==l.id&&za("0x111")==t[za("0x6a")]&&t[za("0x9e")][za("0x5")]==n[za("0x5")]&&t.subType==s&&tc(t,r)&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x110")+s,f=this[za("0x13d")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x136")](m,d,g,t,Zo[za("0x34")]());return f}[za("0xf")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[za("0xe")][za("0x7c")](za("0xaa")).me,r=new i.LiveRange(t[za("0xe7")],t.end);for(const{suggestion:t,meta:e}of this[za("0x58")](r,za("0x11d")))if(e[za("0x19")]&&!e[za("0x4a")])if(t.isMultiRange){const e=t[za("0x12")]()[za("0x60")]((t=>za("0x104")!=t[za("0x2")][za("0xe5")]));if(e[za("0x8c")]((t=>r[za("0x10f")](t,!0)))&&t[za("0x138")](),e[za("0xea")]((t=>t.containsRange(r,!0)))){const t=this[za("0xc0")].getSuggestionCallback(za("0x3"),n,za("0x4"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0xd2")](t[za("0xc9")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x41")](),r[za("0xde")]||za("0x104")==r[za("0x2")][za("0xe5")])return null;let x=null,a=r[za("0xe7")],c=r[za("0x17")];const l=this[za("0x58")](r,za("0x3"));for(const{suggestion:t,meta:e}of l){const n=this[za("0xd6")][za("0x56")](a,c);if(e[za("0x19")]&&(this[za("0xed")]||!e[za("0xa7")]&&!e[za("0x5d")]))if(t[za("0xaf")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x12")]()){if(o[za("0x10f")](n,!0))return t;n[za("0x10f")](o)||(e=!1)}e&&t[za("0x138")]()}else{const e=t[za("0xc9")]();if(e[za("0x10f")](n,!0))return t;if(!tc(t,o)){n[za("0x10f")](e)?t[za("0xc6")]():e[za("0x25")](a)?a=e[za("0x17")]:e[za("0x25")](c)&&(c=e[za("0xe7")]);continue}a=a[za("0x59")](e[za("0xe7")])?a:e.start,c=c[za("0x5a")](e[za("0x17")])?c:e.end,o=Object[za("0x38")]({},t[za("0x63")]),x?e[za("0xe7")][za("0x59")](x[za("0xc9")]()[za("0xe7")])?(x.removeMarkers(),x=t):t[za("0xc6")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[za("0x56")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xd6")][za("0x56")](a,c),i=s.id,x=n?za("0x23")+n:za("0x3"),l=this[za("0x13d")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x136")](x,t,i,r),l}}[za("0x96")](t,n=za("0xfa"),o={}){const s=this[za("0x66")].plugins[za("0x7c")](za("0xaa")).me,r=t.map((t=>new i.LiveRange(t[za("0xe7")],t[za("0x17")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x11d")))e[za("0x19")]&&!e.isNextTo&&x[za("0x10c")](t);for(const e of x)if(e[za("0xaf")]){const s=e[za("0x12")]();if((!e[za("0x63")]||!e[za("0x63")].skipNestingCheck)&&s[za("0x8c")]((t=>r.some((e=>e[za("0x10f")](t,!0)))))&&e[za("0x138")](),r[za("0x8c")]((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this[za("0xc0")][za("0x121")]("deletion",n,za("0x4"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0xc9")]();if(r.some((e=>e.containsRange(t,!0)))&&e[za("0x138")](),r.every((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[za("0x121")](za("0x3"),n,za("0x4"));return this[za("0x140")]((()=>t(r,null,o))),null}}const a=this[za("0xc0")][za("0x121")](za("0x3"),n,"join");let c=null;for(const t of this[za("0xab")]())if(t.author.id==s.id&&t.isInContent&&za("0x3")==t[za("0x6a")]&&t.subType==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t[za("0x12")]())))if(c){if(t[za("0x50")]&&t[za("0x50")].length)continue;for(const e of t[za("0x12")]())c.isIntersectingWithRange(e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0x10d")](e)||t[za("0x137")](e)}if(c)return c;x[za("0x48")]();for(const{suggestion:t,meta:e}of this[za("0x58")](r,za("0x3")))e[za("0x19")]&&(this[za("0xed")]||!e.containsRangeInObject&&!e[za("0x5d")])&&tc(t,o)&&x[za("0x10c")](t);for(const t of x){const e=t[za("0x12")]();if((!o||!o[za("0x10a")])&&r[za("0x8c")]((t=>e[za("0xea")]((e=>e[za("0x10f")](t,!0))))))return t;(!t[za("0x63")]||!t[za("0x63")][za("0x10a")])&&e.every((t=>r.some((e=>e[za("0x10f")](t,!0)))))&&t[za("0x138")]()}const l=(0,e.uid)(),u=s.id,d=za("0x23")+n,g=this[za("0x13d")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x41")](),t[za("0xde")]||"$graveyard"==t[za("0x2")][za("0xe5")]||this[za("0x136")](d,l,u,t,Zo[za("0x34")]());return g}_setSuggestionRange(t,e){const n=t[za("0x132")]();this[za("0xd6")].change((t=>{t[za("0xb9")](n,{range:e})}))}[za("0xb5")](t){const e=t.id,n=this[za("0x66")][za("0xd9")].get("collaboration.channelId");this[za("0x148")][za("0x134")](e)||this._commentsRepository[za("0xa2")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x148")][za("0xee")](e);o[za("0xb0")]("isRemovable"),o[za("0x4f")]=!1,t[za("0x50")]=o}[za("0xf8")](t,n,o,s){if(t.type!=n||t[za("0x123")]!=o||t[za("0x94")].id!=s)throw this[za("0x66")][za("0xcd")](za("0xfb")),new e.CKEditorError(za("0xfb"),this)}[za("0x105")](t,n){const o=t.getFirstRange();if(n[za("0xe3")](o))t[za("0xc6")]();else if(o[za("0x10f")](n)){const s=this._model[za("0x31")](n.start[za("0x129")],"end");this._setSuggestionRange(t,this[za("0xd6")].createRange(o[za("0xe7")],s));const r=(0,e.uid)(),i=t[za("0x94")].id,x=t.type+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x9e")],attributes:t[za("0x63")]});const a=this[za("0xd6")][za("0x31")](n.end[za("0x14a")],"after"),c=this[za("0xd6")][za("0x56")](a,o[za("0x17")]);this[za("0x136")](x,r,i,c)}else if(o.containsPosition(n[za("0xe7")])){const e=this[za("0xd6")].createPositionAt(n[za("0xe7")][za("0x129")],za("0x17"));this._setSuggestionRange(t,this[za("0xd6")][za("0x56")](o[za("0xe7")],e))}else{const e=this[za("0xd6")].createPositionAt(n[za("0x17")].parent,za("0xda"));this._setSuggestionRange(t,this._model[za("0x56")](e,o[za("0x17")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x58")](t,"insertion")){if(!n[za("0x19")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x141")](e)[za("0x6")])return!0}return!1}_getAuthorFromId(t){const n=this.editor[za("0xe")][za("0x7c")](za("0xaa"))[za("0x8f")](t);if(!n)throw new e.CKEditorError(za("0xf6"),this);return n}[za("0x5f")](t){const e=this[za("0x66")][za("0xe")].get(za("0xaa")),n=(0,r.hashObject)(za("0x82")+t);return e[za("0x8f")](n)||e.addUser({id:n,name:t})}[za("0x125")](t,e,n,o,s){const r=this[za("0x11f")](o),i=this[za("0xc0")][za("0xcc")](t,e,n,r,s,(t=>this[za("0x1b")](n,{attributes:t})));return this[za("0xb")](i,za("0x4"),(()=>{this[za("0x1b")](n,{state:"accepted"})}),{priority:za("0xa0")}),this[za("0xb")](i,"discard",(()=>{this[za("0x1b")](n,{state:za("0x95")})}),{priority:"high"}),this[za("0x122")][za("0xf7")](n,i),this[za("0x118")][za("0xf7")](i,"notReady"),i}_splitMarkerName(t){const e=t[za("0x11")](":");return{group:e[0],type:e[1],subType:e[za("0x6")]>=5?e[2]:null,id:e[za("0x6")]<5?e[2]:e[3],authorId:e[za("0x6")]<5?e[3]:e[4],markerCount:6==e[za("0x6")]?e[5]:null}}[za("0xeb")](t,n,o){const s=t[za("0xc9")](),r=s[za("0xe7")],i=s[za("0x17")];this[za("0xfe")](t,this._model.createRange(r,n));const x=(0,e.uid)(),a=t[za("0x94")].id,c=t[za("0x6a")]+(t.subType?":"+t[za("0x123")]:"");this[za("0x13d")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x63")],data:t[za("0x9e")]}),za("0x111")==t[za("0x6a")]&&(o=this._model[za("0xbc")](o.parent)),this._addSuggestionMarker(c,x,a,this._model[za("0x56")](o,i))}[za("0x58")](t,e=null){const n=[],o=this[za("0x66")][za("0xe")][za("0x7c")](za("0xaa")).me;Array[za("0x7")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[za("0xa9")])continue;if(e&&s[za("0x6a")]!=e)continue;let r=!1;for(const e of s[za("0x12")]()){for(const i of t){const t=i.start[za("0xe3")](e[za("0x17")])||i.end[za("0xe3")](e[za("0xe7")]);if(t||i.getIntersection(e)){const x=i[za("0x10f")](e)&&Ka(this._model[za("0x4c")],e[za("0xe7")],i),a=e[za("0x10f")](i)&&Ka(this[za("0xd6")][za("0x4c")],i[za("0xe7")],e);n[za("0xc7")]({suggestion:s,meta:{isOwn:o==s[za("0x67")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x136")](t,e,n,o,s){this[za("0xd6")].change((r=>{let i=za("0x53")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x1e")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0x40")],n=t[za("0x8d")];t[za("0x40")]=null,null!=e&&(e[za("0x8d")]=null),t[za("0x8d")]=null,null!=n&&(n[za("0x40")]=null),za("0x28")==this._suggestionState[za("0x7c")](t)&&(this[za("0x118")][za("0xf7")](t,za("0x127")),this[za("0x12b")](za("0x65"),t,e,n))}[za("0x13d")](t){const n=t.id,o=this[za("0x9c")](t);if(this[za("0xb7")]&&this[za("0xb7")][za("0x14b")]){const s=this[za("0x66")][za("0xe")].get(za("0x13b")),r=o[za("0x72")],i=o[za("0x123")]?o[za("0x6a")]+":"+o[za("0x123")]:o[za("0x6a")],x=this[za("0x66")][za("0xd5")],a=s.add(Yo(x,za("0xd3"))),c={id:n,type:i,hasComments:r,data:t[za("0x9e")]||null,originalSuggestionId:t[za("0xe0")]||null,attributes:o[za("0x63")]};this[za("0xb7")].addSuggestion(c)[za("0x101")]((t=>{o[za("0xf5")]=!0,s[za("0x147")](a),t&&t.createdAt&&(this[za("0x122")][za("0x7c")](n).createdAt=t.createdAt)}))[za("0xa3")]((t=>{throw(0,e.logWarning)(za("0x6d")),this[za("0x66")][za("0xf1")][za("0x7f")]({isUndoable:!1},(()=>{o.discard()})),o[za("0xce")](),this[za("0x122")].delete(o.id),this[za("0x118")][za("0x78")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[za("0xe")][za("0x7c")]("PendingActions"),o=this[za("0xa5")](t);if(this[za("0xb7")]&&this[za("0xb7")][za("0xd")])if(o[za("0xf5")]){const o=n[za("0x10c")](Yo(this.editor[za("0xd5")],"PENDING_ACTION_SUGGESTION"));this._adapter[za("0xd")](t,e)[za("0x101")]((()=>{n[za("0x147")](o)}))}else o.on(za("0x130"),(()=>{this[za("0x1b")](t,e)}))}_getSuggestionData(t){if(!this[za("0xb7")]||!this._adapter[za("0xa5")])throw new e.CKEditorError(za("0x14"),this);return this._adapter.getSuggestion(t)}[za("0x120")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb3")](t),r=this[za("0x122")][za("0x7c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0xf8")](r,n,o,s),this[za("0x118")][za("0x7c")](r)){case za("0x35"):this[za("0xb4")](e)[za("0x101")]((t=>{let n=Promise[za("0x37")]();t[za("0x72")]&&(n=this[za("0x148")][za("0x71")]({channelId:this[za("0x66")][za("0xd9")][za("0x7c")](za("0x146")),threadId:e})),n[za("0x101")]((()=>{this[za("0x9c")](t)._saved=!0}))})),this[za("0x118")].set(r,za("0x4d"));break;case za("0x127"):this[za("0x1b")](e,{state:za("0x3c")});case za("0x3e"):this._suggestionState.set(r,za("0x28")),this[za("0x12b")]("suggestionLoaded",r);break;case za("0x28"):this[za("0x12b")](za("0x116"),r)}return r[za("0xa4")](t),r}[za("0x15")](t){const e=Array[za("0x79")](t)[za("0x60")]((t=>!t[za("0xaf")])),n=this[za("0xab")]({skipNotAttached:!0})[za("0x60")]((t=>!t.isMultiRange)),o=n[za("0x60")]((e=>!t.has(e))),s=new Map(n[za("0x70")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x6a")],t.subType,"chain")]))),r=new Map(n[za("0x70")]((t=>[t,t[za("0xc9")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x6")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x6")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x6")];t++){const n=e[t];!x[za("0xff")](n)&&n[za("0x40")]&&(n[za("0x40")].next===n&&(n.previous[za("0x8d")]=null),n[za("0x40")]=null),!i.has(n)&&n[za("0x8d")]&&(n.next[za("0x40")]===n&&(n.next[za("0x40")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x8d")]=n[1],n[1][za("0x40")]=n[0],i[za("0x10c")](n[0]),x[za("0x10c")](n[1]))}}function c(t,e){if(t[za("0x67")].id!==e[za("0x67")].id)return null;const n=s.get(t)(t,e,r[za("0x7c")](t),r.get(e));return n&&s[za("0x7c")](e)(t,e,r[za("0x7c")](t),r[za("0x7c")](e))?n[1][za("0x50")]&&n[1][za("0x50")].length?null:n:null}}[za("0x114")](t){const e=Array[za("0x79")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x60")]((e=>!t[za("0xff")](e))),s=new Map(e[za("0x70")]((t=>[t,this[za("0xc0")][za("0x121")](t.type,t.subType,za("0x2a"))]))),r=new Map(n[za("0x70")]((t=>[t,t[za("0x12")]()])));for(let t=0;t<e[za("0x6")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x6")];i++){const o=n[i];if(o.type!==e[za("0x6a")]||o[za("0x67")].id!==e.author.id||o[za("0x123")]!==e[za("0x123")])continue;if(!Ya(e,o))continue;const x=s[za("0x7c")](e),a=r[za("0x7c")](e),c=r[za("0x7c")](o),l=e[za("0x50")]&&e[za("0x50")].length,u=o[za("0x50")]&&o[za("0x50")][za("0x6")];if(!l&&x(c,a))return t[za("0x8a")](o,e),r[za("0x78")](e),!0;if(!u&&x(a,c))return t[za("0x8a")](e,o),r[za("0x78")](o),!0}return!1}}[za("0x8a")](t,e){if(t[za("0xaf")])for(const n of e[za("0x12")]())t[za("0x137")](n);else{const n=e[za("0xc9")]()[za("0x17")];this._setSuggestionRange(t,this._model.createRange(t[za("0xc9")]().start,n))}e[za("0xc6")]()}}class Va{constructor(t){this[za("0xb8")]=t,this[za("0xd6")]=t.model,this._customCallbacks=new Map,this[za("0x145")]=new Map,this._registerDefaultCallbacks()}[za("0xcc")](t,e,n,o,s,r){return new Zo(this[za("0xd6")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x121")](t,e,za("0x4"))(...n),onDiscard:(...n)=>this[za("0x121")](t,e,za("0x138"))(...n)})}[za("0xdf")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0xf7")](s,o)}[za("0x121")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x75")].get(o)||this[za("0x145")][za("0x7c")](t+":"+n)}[za("0x90")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[za("0x59")](e[za("0xe7")])?1:-1)),this[za("0xd6")].change((e=>{for(const n of t){let t;t=n.end[za("0x12a")]&&n[za("0x17")].parent==n.start[za("0x10e")]?e.createSelection(n[za("0xe7")][za("0x10e")],"on"):e[za("0x68")](n),this[za("0xd6")][za("0x29")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xd6")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Xa(t)&&(t=this[za("0xd6")][za("0x56")](t.end)),t)))[za("0x60")]((t=>za("0x104")!==t[za("0x2")][za("0xe5")]));if(r.length<1)return;const x=Array.from(this[za("0xd6")][za("0xa1")][za("0x112")][za("0x12")]()).map((t=>i.LiveRange[za("0xf3")](t)));n.setSelection(r);for(const t of this[za("0xb8")][za("0x39")][za("0x39")]())t[za("0xe9")]();s[za("0xc7")]({forceDefaultExecution:!0}),this[za("0xb8")][za("0x42")](o,...s);const a=x.filter((t=>za("0x104")!=t[za("0x2")][za("0xe5")]));a[za("0x6")]>0&&n[za("0x7b")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x6")]&&1==e[za("0x6")]&&t[0][za("0x17")].isEqual(e[0][za("0xe7")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xd6")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x145")][za("0xf7")]("insertion:accept",t),this[za("0x145")][za("0xf7")](za("0x52"),e),this._defaultCallbacks[za("0xf7")](za("0x92"),o),this[za("0x145")][za("0xf7")](za("0x62"),s),this[za("0x145")][za("0xf7")](za("0x5b"),e),this[za("0x145")][za("0xf7")](za("0x9f"),t),this[za("0x145")][za("0xf7")](za("0xd0"),o),this[za("0x145")][za("0xf7")](za("0x131"),s),this[za("0x145")][za("0xf7")]("formatInline:accept",n),this[za("0x145")][za("0xf7")](za("0x128"),t),this[za("0x145")][za("0xf7")](za("0x1a"),o),this[za("0x145")][za("0xf7")](za("0x11c"),t),this[za("0x145")][za("0xf7")]("formatBlock:accept",n),this[za("0x145")][za("0xf7")](za("0x61"),t),this[za("0x145")].set(za("0x1d"),o),this._defaultCallbacks[za("0xf7")](za("0xbb"),t)}}function Ka(t,e,n){for(const o of e[za("0x14a")][za("0x80")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x2")]==o)return!1;if(!n[za("0x12e")](o))return!1;if(t.isObject(o)||t[za("0xc5")](o))return!0}return!1}function Xa(t){return t[za("0x17")].parent==t.start.nodeAfter&&t[za("0x17")][za("0xc4")]}function qa(t,e,n,o){const s=t=>!t[za("0x2b")].is(za("0x9b"))&&!o[za("0xac")](t[za("0x2b")]),r=t[za("0xe7")].getLastMatchingPosition(s),i=t.end[za("0x102")](s,{direction:za("0x117")});return!(t[za("0xe7")][za("0xe3")](r)&&t[za("0x17")][za("0xe3")](i)||(r.isBefore(i)?n[za("0xb9")](e,{range:n[za("0x56")](r,i)}):n[za("0xbe")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xe7")][za("0x10e")];return e&&e.is(za("0x133"))}function Qa(t,e){const n=e[za("0x4c")][za("0xac")](t)||e.schema[za("0x12f")](t);return e[za("0x56")](e[za("0x31")](t,za("0xad")),n?e[za("0x36")](t):e[za("0x31")](t,za("0x17")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x17")][za("0xe3")](o.start))return!0;if(t.type!=e.type)return!1;if(!n[za("0x17")][za("0xc8")](o[za("0xe7")]))return!1;const r=s[za("0x56")](n.end,o[za("0xe7")])[za("0x85")]();for(const t of r)if(["elementStart",za("0xb1")].includes(t.type)&&s[za("0x4c")].isLimit(t.item))return!1;return!0}function Ya(t,e){return!(!t[za("0x47")]||!e._isDataLoaded)&&Go(t[za("0x63")],e[za("0x63")])}function tc(t,e){const n=ec(t[za("0x63")]),o=ec(e);if(!t[za("0x47")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object.assign({},t);return delete e[za("0x10a")],delete e[za("0x97")],e}const nc=["model","change:isDirty","locale","view","destroy","isEnabled","canDiscard","_pendingAction","isDirty","_setPendingAction","execute","get","remove","_acceptCommand","bind","_discardCommand","canEditAt","plugins","commentThreadController","acceptSuggestion","commands","unbind","listenTo","_editor","_removePendingAction","discardSuggestion","getRanges","add","canAccept","stopListening","PendingActions"];var oc,sc;oc=nc,sc=308,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x2")]=e,this.view=n,this[rc("0x14")]=o,this[rc("0x19")]=t,this[rc("0xf")]=t[rc("0x16")][rc("0xd")](rc("0x15")),this._discardCommand=t[rc("0x16")][rc("0xd")](rc("0x1b")),this.view[rc("0x10")](rc("0x7")).to(this._acceptCommand,this[rc("0x11")],((t,e)=>t||e)),this[rc("0x5")][rc("0x10")](rc("0x1e")).to(this[rc("0xf")],"isEnabled",(t=>t&&this[rc("0x19")][rc("0x2")][rc("0x12")](e[rc("0x1c")]()))),this.view.bind(rc("0x8")).to(this[rc("0x11")],"isEnabled",(t=>t&&this[rc("0x19")][rc("0x2")][rc("0x12")](e.getRanges()))),this[rc("0x9")]=null,n[rc("0xa")]&&this._setPendingAction(),this[rc("0x18")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[rc("0x18")](n,rc("0x1b"),(()=>this[rc("0x1b")]())),this[rc("0x18")](n,rc("0x3"),(()=>{n.isDirty?this[rc("0xb")]():this[rc("0x1a")]()}))}[rc("0x15")](){this[rc("0xf")][rc("0xc")](this[rc("0x2")].id)}[rc("0x1b")](){this[rc("0x11")][rc("0xc")](this[rc("0x2")].id)}destroy(){this[rc("0x5")][rc("0x17")](rc("0x7")),this[rc("0x5")][rc("0x17")](rc("0x1e")),this[rc("0x5")][rc("0x17")](rc("0x8")),this[rc("0x0")](),this.commentThreadController[rc("0x6")](),this._pendingAction&&this[rc("0x1a")]()}[rc("0xb")](){const t=Yo(this[rc("0x19")][rc("0x4")],"PENDING_ACTION_SUGGESTION");this[rc("0x9")]=this[rc("0x19")][rc("0x13")][rc("0xd")]("PendingActions")[rc("0x1d")](t)}[rc("0x1a")](){null!==this[rc("0x9")]&&this[rc("0x19")][rc("0x13")][rc("0xd")](rc("0x1"))[rc("0xe")](this._pendingAction),this[rc("0x9")]=null}}const xc=["_config","isEnabled","isReadOnly","CommentView","commentThread","updateComment","focus","set","_localUser","_createCommentThreadInputView","submit","destroy","commentThreadInputView","element","removeComment","showInput","value","disableComments","bind","length","commentsListView","descriptionParts","authoredAt","isDirty","hasDirtyComment","locale","assign","delegate","isActive","canAccept","fire","commentInputView","_model","_createCommentViews"];var ac,cc;ac=xc,cc=416,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xc")]=null,this[lc("0x4")]=null,this[lc("0x21")](lc("0x14"),!1),this[lc("0x21")](lc("0xe"),e[lc("0xe")]),this[lc("0xa")](lc("0xe")).to(e),this[lc("0x21")](lc("0xd"),[]),this[lc("0x21")]("isDirty",!1),this.set(lc("0x1b"),!1),this.set(lc("0x15"),!1),this[lc("0x21")]("canDiscard",!1),this[lc("0x18")]=e,this[lc("0x0")]=n,this[lc("0x1a")]=o,o[lc("0x9")]?this.set("length",1):this[lc("0x19")]()}focus(){this[lc("0x5")][lc("0x20")]()}[lc("0x3")](){this[lc("0xc")]&&this[lc("0xc")].destroy(),this[lc("0x4")]&&this[lc("0x4")].destroy(),super[lc("0x3")]()}[lc("0x19")](){const{CommentsListView:t}=this[lc("0x1a")];this[lc("0xc")]=new t(this.locale,this[lc("0x18")][lc("0x1e")],Object[lc("0x12")]({CommentView:this[lc("0x1a")][lc("0x1d")]},this[lc("0x1a")])),this[lc("0xc")].delegate(lc("0x6")).to(this),this[lc("0xc")][lc("0x13")](lc("0x1f")).to(this),this[lc("0xc")][lc("0xa")]("isActive").to(this),this.set("length",this[lc("0xc")].length+1),this.bind(lc("0xb")).to(this[lc("0xc")],lc("0xb"),(t=>t+1)),this[lc("0x4")]=this[lc("0x1")](),this.on(lc("0x6"),(()=>this[lc("0x20")]())),this[lc("0xa")](lc("0xf")).to(this[lc("0xc")],lc("0x10"),this.commentThreadInputView[lc("0x17")],lc("0x8"),((t,e)=>t||!!e))}[lc("0x1")](){const{CommentThreadInputView:t}=this[lc("0x1a")],e=new t(this[lc("0x11")],this[lc("0x0")],this[lc("0x1a")].editorConfig),n=e[lc("0x17")];return e[lc("0xa")](lc("0x7")).to(this,lc("0x14"),this._model[lc("0x1e")],lc("0x1c"),n,lc("0x8"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x2"),((t,e)=>{this[lc("0x16")]("addComment",e),n.editor.setData("")})),n.on("cancel",(()=>this[lc("0x20")]())),n[lc("0xa")]("disabledSubmit").to(this[lc("0x18")][lc("0x1e")],lc("0x1c")),e}}const dc=["descriptionParts","ck-comment__info-time","_model","editorDestroyed","commentsListView","span","bind","isEnabled","EXTERNAL_SUGGESTION","join","Accept suggestion","querySelector","bindTemplate","ck-annotation__actions","authoredAt","execute","ck-suggestion__info","isActive","time","innerText","ck-suggestion--disabled-comments","fire","importWord","ck-comment__external","EXTERNAL_AVATAR","editorReady",'"></span>',"canAccept","change:description","color","isExternal","discardButton","source","ck-annotation__info-time","ck-annotation","delegate","attributes","name","ck-suggestion__main","_createButton","acceptButton","<p>","value","canDiscard","creator","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--accept","description","extendTemplate","setTemplate","content","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion","check","_config",'" title="',"author","</span>","ck-suggestion--discard",'<span class="ck-suggestion-type">',"getUserViewNotificationText","_descriptionElement","getExternalSuggestionNote","commentThreadInputView","div","map","type","getTemplate","set","locale","cancel","push","innerHTML","ck-suggestion__info-name","</p>","formatDateTime","@external","userView","ck-annotation__info-name","disableComments"];var gc,mc;gc=dc,mc=186,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x2a")](fc("0x28"),""),this[fc("0x3c")](fc("0x28")).to(this,fc("0x36"),(t=>t&&t[0]?t[0].type:"")),this.bind(fc("0x15")).to(this,fc("0x36"),this,fc("0x47"),((t,e)=>{let n="";for(const e of t)n+=fc("0xf")+pc(e[fc("0x18")],e[fc("0x3")])+fc("0x30");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x23")]=null,this[fc("0xe")]=this[fc("0xd")](Yo(e,fc("0x40")),t.icons[fc("0x1b")],fc("0x14"),"acceptSuggestion","sw"),this.acceptButton[fc("0x3c")](fc("0x3d")).to(this,fc("0x1")),this[fc("0x5")]=this[fc("0xd")](Yo(e,"Discard suggestion"),t.icons[fc("0x2c")],fc("0x20"),"discardSuggestion","sw"),this[fc("0x5")][fc("0x3c")](fc("0x3d")).to(this,fc("0x11")),this[fc("0x33")]=new r.UserView(e,this[fc("0x38")].author,this[fc("0x22")]()),this[fc("0x33")][fc("0x16")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[fc("0x17")](this.getTemplate())}[fc("0x29")](){const t=this[fc("0x42")],e=[{tag:"div",attributes:{class:[fc("0x46"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this.userView.name}],attributes:{class:[fc("0x2f"),fc("0x34")]}},{tag:fc("0x48"),attributes:{datetime:t.to(fc("0x44")),class:[fc("0x37"),fc("0x7")]},children:[{text:t.to("authoredAt",(t=>this[fc("0x1c")][fc("0x31")](t)))}]}]},{tag:fc("0x26"),attributes:{class:["ck-suggestion__actions",fc("0x43")]},children:[this[fc("0xe")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[fc("0x38")][fc("0x4")]&&e.push({tag:fc("0x26"),attributes:{class:[fc("0x4d")]},children:[{text:this[fc("0x24")]()}]});const n={tag:fc("0x26"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive","ck-suggestion-wrapper--active"),t.to(fc("0x28"),(t=>"ck-suggestion-"+t)),this[fc("0x1c")][fc("0x35")]&&fc("0x4a")],"data-suggestion-id":this[fc("0x38")].id,"data-thread-id":this[fc("0x38")].commentThread.id,"data-author-id":this[fc("0x38")][fc("0x1e")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x1a"),fc("0x8")]},children:[this.userView,{tag:"div",attributes:{class:[fc("0xc"),"ck-annotation__main"]},children:e}]}]};return this[fc("0x3a")]&&this[fc("0x25")]&&(n.children[fc("0x2d")](this[fc("0x3a")],this[fc("0x25")]),this[fc("0x3a")][fc("0x9")](fc("0x4f")).to(this),this[fc("0x3a")][fc("0x9")](fc("0x39")).to(this),this[fc("0x25")].delegate(fc("0x4f")).to(this),this[fc("0x25")][fc("0x9")](fc("0x39")).to(this)),n}render(){super.render(),this._descriptionElement=this.element[fc("0x41")](".ck-annotation__content-wrapper"),this._descriptionElement[fc("0x2e")]=this[fc("0x15")],this.on(fc("0x2"),((t,e,n)=>{this._descriptionElement.innerHTML=n}))}[fc("0xd")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x2b")]);return i[fc("0x2a")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x16")]({attributes:{class:n}}),i.on(fc("0x45"),(()=>{this[fc("0x4b")](o,this[fc("0x38")].id)})),i}getExternalSuggestionNote(){return fc("0x4c")===this[fc("0x38")].attributes[fc("0x32")][fc("0x6")]?Yo(this[fc("0x2b")],fc("0x13")):Yo(this[fc("0x2b")],fc("0x3e"))}[fc("0x22")](){return this._model.isExternal?"importWord"===this[fc("0x38")][fc("0xa")][fc("0x32")][fc("0x6")]?Yo(this.locale,fc("0x19"),this._model[fc("0x12")][fc("0xb")]):Yo(this[fc("0x2b")],fc("0x4e"),this[fc("0x38")][fc("0x12")].name):null}}function pc(t,e){let n="";return n+=t.split("*")[fc("0x27")](((t,e)=>e%2!=0?fc("0x21")+bc(t)+fc("0x1f"):bc(t)))[fc("0x3f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x10")]+fc("0x1d")+e.title+fc("0x0")),n}function bc(t){const e=document.createElement(fc("0x3b"));return e[fc("0x49")]=t,e[fc("0x2e")]}const Ec=["head","source","change:activeAnnotations","has","_handleControllerBuffer","destroy","getSuggestion","listenTo","model","trackChanges.disableComments","TrackChangesUI","change:previous","actionView","editing","getMarkerNames","requires","push","SuggestionThreadView","arrowView","hasSuggestion","button","isEnabled","type","_refreshActiveMarkers","Annotations","comments.maxThreadTotalWeight","remove","_createUIButton","addSourceCollector","isMultiRange","CommentView","getAllAdjacentSuggestions","componentFactory","_suggestionToController","lowest","length","stopListening","comments","getJoined","Accept all suggestions","_handleSuggestionControllerDelayed","from","separator","map","isInContent","registerAnnotation","discardButton","TrackChangesEditing","buttonView","commentThread","define","trackChanges","activeAnnotations","clear","getByInnerView","trackChanges.SuggestionThreadView","isOn","suggestionUnloaded","execute","toMany","pluginName","Accept all selected suggestions","init","bind","set","previous","_destroyController","suggestion-","createCommentThreadController","editor","innerView","_unbindEditors","CommentsUI","commands","view","plugins","_descriptionFactory","_annotationViews","discardSelectedSuggestions","CommentsRepository","_bindAnnotationToEditors","getRanges","getDescriptions","add","commandName","EditorAnnotations","value","acceptAllSuggestions","size","config","filter","getMarkers","focus","Discard all selected suggestions","isDirty","_updateController","unbind","refreshSelectedViews","_viewToController","mainView","locale","activeMarkers","some","get","delete","switchbutton","acceptButton"];var _c,Tc;_c=Ec,Tc=235,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x65")](){return[Wa,r.Users,Cc("0x3a"),Cc("0x3"),Cc("0x40")]}static get[Cc("0x27")](){return Cc("0x60")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x38")]=new Map,this[Cc("0x5a")]=new Map;const e=this[Cc("0x30")][Cc("0x44")];e[Cc("0x1d")](Cc("0x22"),hc),e[Cc("0x1d")](Cc("0x5f"),!1),this._disableComments=e[Cc("0x52")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Cc("0x5a")][Cc("0x43")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Cc("0xc")][Cc("0x59")](t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[Cc("0x30")][Cc("0x36")][Cc("0x52")](Cc("0x40"))[Cc("0x4c")](),this[Cc("0x2")](),this[Cc("0x5a")][Cc("0x20")]()}),10),this[Cc("0x5a")].set(t,e)}[Cc("0x29")](){const t=this[Cc("0x30")],e=t[Cc("0x36")].get(Cc("0x1a")),n=t[Cc("0x36")].get(Cc("0x3")),o=t[Cc("0x36")][Cc("0x52")]("EditorAnnotations"),s=t.plugins[Cc("0x52")](Cc("0x3a"));t.ui[Cc("0xb")][Cc("0x3e")](Cc("0x1e"),(t=>this[Cc("0x6")](t))),o[Cc("0x7")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x14")](this[Cc("0xc")])){const o=e[Cc("0xa")](),s=[];for(const t of o){if(!t[Cc("0x17")])continue;if(t[Cc("0x8")]){s[Cc("0x66")](...t[Cc("0x3c")]());continue}const e=t.getFirstRange();if(s[Cc("0xe")]>0){const t=s[0][Cc("0x11")](e);if(t){s[0]=t;continue}}s[Cc("0x66")](e)}t.push([n[Cc("0x35")],s])}return t})),this[Cc("0x5d")](e,"suggestionLoaded",((t,e)=>{this[Cc("0x5d")](e,Cc("0x61"),((t,n,o,s)=>{e[Cc("0x17")]&&(null==o?(this[Cc("0x4a")](s.head),this[Cc("0x13")](e,!1)):(this[Cc("0x4a")](o[Cc("0x56")]),this[Cc("0x13")](e,!0)))})),null===e[Cc("0x2c")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x4a")](e[Cc("0x56")])})),this[Cc("0x5d")](e,Cc("0x24"),((t,e,n)=>{this[Cc("0xf")](e,Cc("0x61")),this[Cc("0x5a")][Cc("0x53")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0x52")](o);null!==n&&this[Cc("0x4a")](o),null===n&&s&&this[Cc("0x2d")](e)})),this[Cc("0x5d")](e,"suggestionChanged",((t,e)=>{this[Cc("0x4a")](e)})),this[Cc("0x5d")](n,Cc("0x58"),(()=>{this[Cc("0x2")]()})),this[Cc("0x5d")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x69")](n))return;const s=e[Cc("0x5c")](n);this[Cc("0xc")][Cc("0x52")](s)[Cc("0x35")][Cc("0x47")]()}),{priority:Cc("0xd")})}_refreshActiveMarkers(){const t=this[Cc("0x30")][Cc("0x36")][Cc("0x52")](Cc("0x3")),e=this[Cc("0x30")][Cc("0x36")].get(Cc("0x1a")),n=Array.from(t[Cc("0x1f")],(t=>t[Cc("0x31")]))[Cc("0x45")]((t=>this[Cc("0x4d")].has(t))),o=[];for(const t of n){const e=this[Cc("0x4d")][Cc("0x52")](t)[Cc("0x5e")][Cc("0xa")]();o[Cc("0x66")](...e.reduce(((t,e)=>[...t,...e[Cc("0x64")]()]),[]))}e[Cc("0x50")]=o}[Cc("0x6")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x30")][Cc("0x34")][Cc("0x52")](Cc("0x1e")),r=Yo(t,"Track changes");n.buttonView[Cc("0x2b")]({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[Cc("0x1b")][Cc("0x2a")](Cc("0x23")).to(o,Cc("0x41")),n[Cc("0x1b")].on(Cc("0x25"),(()=>{o[Cc("0x25")](),this.editor[Cc("0x63")].view.focus()}));const i=new e.Collection,x=[{type:Cc("0x54"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x12")),commandName:Cc("0x42")}},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x28")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x48")),commandName:Cc("0x39")}}];for(const t of x){let e={type:Cc("0x15")};if(t[Cc("0x5e")]){const n=new s.Model(t[Cc("0x5e")]),o=this.editor[Cc("0x34")][Cc("0x52")](n[Cc("0x3f")]);n[Cc("0x2a")](Cc("0x23"),Cc("0x0")).to(o,Cc("0x41"),Cc("0x0")),e={type:t[Cc("0x1")],model:n}}i[Cc("0x3e")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0x45")]((t=>null!=t[Cc("0x5e")]))[Cc("0x16")]((t=>this[Cc("0x30")][Cc("0x34")][Cc("0x52")](t.model.commandName))),c=n[Cc("0x1b")];return c[Cc("0x62")].unbind(Cc("0x0")),c[Cc("0x68")][Cc("0x4b")]("isEnabled"),c[Cc("0x62")][Cc("0x2a")]("isEnabled").to(o,Cc("0x0")),c[Cc("0x68")][Cc("0x2a")](Cc("0x0"))[Cc("0x26")](a,Cc("0x0"),((...t)=>t[Cc("0x51")]((t=>t)))),n.on(Cc("0x25"),(t=>{this.editor.execute(t[Cc("0x57")][Cc("0x3f")]),this[Cc("0x30")].editing[Cc("0x35")][Cc("0x47")]()})),n}_initializeController(t){const e=this.editor,n=e.config,o=e[Cc("0x36")][Cc("0x52")](Cc("0x3")),s=e[Cc("0x36")][Cc("0x52")]("CommentsRepository"),i=e[Cc("0x36")][Cc("0x52")](Cc("0x40")),x=e.plugins[Cc("0x52")](r.Users).me,a=n[Cc("0x52")](Cc("0x1e"))[Cc("0x67")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x36")][Cc("0x52")](Cc("0x33"));let u,d;this._annotationViews[Cc("0x59")](t.id)?(d=this[Cc("0x38")][Cc("0x52")](t.id),u=d[Cc("0x4e")]):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x52")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0x52")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0x52")](Cc("0x4")),maxCommentCharsWhenCollapsed:n.get("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x52")](Cc("0x4f"))),CommentView:n[Cc("0x52")](Cc("0x10"))[Cc("0x9")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x55")].on(Cc("0x25"),(()=>{e[Cc("0x63")][Cc("0x35")][Cc("0x47")]()})),u[Cc("0x19")].on(Cc("0x25"),(()=>{e[Cc("0x63")][Cc("0x35")][Cc("0x47")]()})),d=o.createAnnotationView(this[Cc("0x30")][Cc("0x4f")],u),d[Cc("0x2a")](Cc("0x49")).to(u,Cc("0x49")),d[Cc("0x2a")](Cc("0xe")).to(u),d[Cc("0x2a")]("type").to(u,Cc("0x1"),(t=>Cc("0x2e")+t)),this[Cc("0x38")][Cc("0x2b")](t.id,d));const g=s[Cc("0x2f")](t[Cc("0x1c")],u),m=new ic(e,t,u,g),f=t[Cc("0xa")]()[Cc("0x45")]((t=>t[Cc("0x17")]));u.descriptionParts=e.plugins[Cc("0x52")](Cc("0x1a"))[Cc("0x37")][Cc("0x3d")](f),this[Cc("0xc")].set(t,m),this[Cc("0x4d")][Cc("0x2b")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Cc("0xa")]()[Cc("0x45")]((t=>t[Cc("0x17")]));for(const t of o)n[Cc("0x66")](...t[Cc("0x46")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x63")],n)},type:()=>Cc("0x2e")+m[Cc("0x35")].type});s[Cc("0x3b")](u,h),o[Cc("0x3e")](h),i[Cc("0x18")](h)}_destroyController(t){const e=this[Cc("0x30")].plugins.get(Cc("0x3a")),n=this[Cc("0x30")][Cc("0x36")].get(Cc("0x3")),o=this[Cc("0xc")][Cc("0x52")](t),s=o[Cc("0x35")],r=n[Cc("0x21")](s);e[Cc("0x32")](s),r&&n[Cc("0x5")](r),this[Cc("0xc")][Cc("0x53")](t),this[Cc("0x4d")][Cc("0x53")](s),o[Cc("0x5b")]()}[Cc("0x4a")](t){if(!t[Cc("0x17")]||!this[Cc("0xc")].has(t))return;const e=this[Cc("0x30")].plugins[Cc("0x52")](Cc("0x1a")),n=this._suggestionToController.get(t),o=t.getAllAdjacentSuggestions();n[Cc("0x35")].descriptionParts=e._descriptionFactory[Cc("0x3d")](o)}destroy(){for(const t of this._suggestionToController.keys())this[Cc("0x2d")](t);for(const t of this[Cc("0x38")].values())t[Cc("0x4e")][Cc("0x5b")]();super[Cc("0x5b")]()}}var kc,Ac,vc=["editor","pluginName","getSuggestions","getSuggestion","plugins","addSuggestionData","requires","Comments","adapter","get","TrackChanges"];kc=vc,Ac=178,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x4")](){return[Wa,yc,Rc("0x5")]}static get[Rc("0xa")](){return Rc("0x8")}set adapter(t){this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa).adapter=t}get[Rc("0x6")](){return this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa).adapter}addSuggestion(t){return this[Rc("0x9")].plugins[Rc("0x7")](Wa)[Rc("0x3")](t)}[Rc("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Rc("0x2")][Rc("0x7")](Wa)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x1")](t){return this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa)[Rc("0x1")](t)}}const Ic=["addUser","track-changes-data-invalid-editor-creator","constructor","get","getDataWithDiscardedSuggestions","TrackChangesEditing","init","end","document","createDocumentFragment","plugins","div","discardAllSuggestions","_adapter","rootsAttributes","Users","define","model","result","push","getUser","appendChild","pluginName","config","CommentsRepository","users","create","editor","getDataWithAcceptedSuggestions","Pagination","getFullData","set","function","TrackChangesDataGetter","reduce","addSuggestionData","requires","destroy","trackChangesData.editorCreator","getRootsAttributes","getRootNames","editorCreator","acceptAllSuggestions","createElement","name"];var Lc,Nc;Lc=Ic,Nc=200,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x9")];class Oc extends t.Plugin{static get[Mc("0x10")](){return[Wa]}static get[Mc("0x2")](){return"TrackChangesData"}[Mc("0x1f")](){const t=this[Mc("0x7")];if(t[Mc("0x3")][Mc("0x29")](Mc("0x12"),(e=>{const n=t.model.document[Mc("0x14")]()[Mc("0xe")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x1b")][Mc("0x6")](n,e)})),Mc("0xc")!=typeof t[Mc("0x3")][Mc("0x1c")]("trackChangesData")[Mc("0x15")])throw new e.CKEditorError(Mc("0x1a"))}[Mc("0x8")](t){return Dc(this[Mc("0x7")],!0,t)}[Mc("0x1d")](t){return Dc(this.editor,!1,t)}}class Fc extends t.Plugin{static get[Mc("0x2")](){return Mc("0xd")}constructor(t){super(t),this[Mc("0x2b")]=Mc("0x20")}[Mc("0x1f")](){this.editor[Mc("0x23")][Mc("0x1c")](Mc("0x4"))._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[Mc("0x7")][Mc("0x23")].get(Mc("0x1e"))[Mc("0x26")]=null}}function Pc(t){return void 0!==t[Mc("0x13")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins[Mc("0x2c")](Wa,Fc),o[Mc("0x27")]=Pc(t)?t[Mc("0x13")]():void 0;const s=document[Mc("0x22")](),i=t[Mc("0x3")][Mc("0x1c")]("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Mc("0x17")](Mc("0x24"));return t[Mc("0x1")](e),e}(s)));!function(t,e){const n=t[Mc("0x2a")][Mc("0x21")][Mc("0x14")]()[Mc("0xe")](((e,n)=>(e[n]=t.data[Mc("0x1c")]({rootName:n}),e)),{}),o=t.plugins[Mc("0x1c")](Mc("0x28"))[Mc("0x5")].map((t=>({id:t.id,name:t[Mc("0x18")]}))),s=t[Mc("0x23")][Mc("0x1c")](Mc("0x1e")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x1c")]("Users"),i=e[Mc("0x23")][Mc("0x1c")]("TrackChangesEditing");for(const t of o)r[Mc("0x0")](t.id)||r[Mc("0x19")](t);r.me||r.useAnonymousUser();for(const t of s)i[Mc("0xf")](t);e.data[Mc("0xb")](n)}(t,x),x.execute(Mc(e?"0x16":"0x25"));const a=Pc(x)?x[Mc("0xa")](n):x.data[Mc("0x1c")](n);return await x[Mc("0x11")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["refresh","_disableUnsupportedCommands","_isEnabledBasedOnSelection","isEnabled","commands","editor","_enabledCommands","value","has","TrackChangesCommand","affectsData","_enableCommands"];var c,l;c=a,l=469,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x5")]=e,this[u("0x6")]=!1,this[u("0xb")](),this[u("0x1")]=!1}[u("0xb")](){this[u("0x2")]=!0}execute(){this.value=!this[u("0x6")],this.value?this._disableUnsupportedCommands():this[u("0xa")]()}[u("0x0")](){for(const t of this[u("0x4")][u("0x3")][u("0x3")]())t[u("0x9")]&&!this._enabledCommands[u("0x7")](t)&&t.forceDisabled(u("0x8"))}_enableCommands(){for(const t of this[u("0x4")][u("0x3")].commands())t[u("0x9")]&&!this[u("0x5")][u("0x7")](t)&&t.clearForceDisabled(u("0x8"))}}const g=["execute","track-changes-accept-suggestion-not-found","canEditAt","editor","plugins","TrackChangesEditing","acceptSuggestion","getRanges","_suggestions","model","_isEnabledBasedOnSelection","refresh","isEnabled","get"];var f,m;f=g,m=118,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x2")]=e,this.refresh(),this[h("0x4")]=!1}[h("0x5")](){this[h("0x6")]=!0}[h("0x8")](t){const n=this[h("0x2")][h("0x7")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x1")]();this[h("0xb")][h("0x3")][h("0xa")](o)&&this[h("0xb")][h("0xc")].get(h("0xd"))[h("0x0")](n)}}const p=["canEditAt","get","getRanges","refresh","execute","TrackChangesEditing","model","discardSuggestion","editor","_suggestions"];var E,_;E=p,_=165,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x4")]=e,this[T("0x8")](),this._isEnabledBasedOnSelection=!1}[T("0x8")](){this.isEnabled=!0}[T("0x9")](t){const n=this._suggestions[T("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x7")]();this[T("0x3")][T("0x1")][T("0x5")](o)&&this[T("0x3")].plugins[T("0x6")](T("0x0"))[T("0x2")](n)}}const y=["isCollapsed","deletion","start","isObject","isArray","createPositionAfter","join","isTouching","createPositionBefore","map","getRanges","type","length","from","change","schema","splice","end","isIntersecting","add","createRange","value","color"," [color "];var k,A;k=y,A=457,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("0x0")==t[v("0xa")]&&v("0x0")!=e[v("0xa")]?-1:"deletion"!=t[v("0xa")]&&v("0x0")==e[v("0xa")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xe")];for(;o<t[v("0xb")];){const i=t[o],x=t[o+1];n||(n=e[v("0x7")](i)),I(e,i,x)||(s.push(e[v("0x13")](n,r[v("0x2")](i)?e[v("0x4")](i):e.createPositionAt(i,v("0x10")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x4")](e),s=t[v("0x7")](n);return o[v("0x6")](s)}function L(t,e,n){for(;n[v("0xb")];){const o=n[v("0xf")](0,100);t[v("0xd")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["isInContent","editor","model","_command","some","from","values","refresh","_isEnabledBasedOnSelection","getRanges","canEditAt","_suggestions","isEnabled","execute"];var M,w;M=N,w=130,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xd")]=e,this[O("0x7")]=n,this[O("0x3")](),this[O("0x4")]=!1}[O("0x3")](){const t=Array[O("0x1")](this[O("0x7")][O("0x2")]())[O("0x0")]((t=>t[O("0xa")]));this[O("0x8")]=this[O("0xd")].isEnabled&&t}[O("0x9")](){const t=R(Array[O("0x1")](this._suggestions[O("0x2")]()));for(const e of t){const t=e[O("0x5")]();if(!this[O("0xb")].model[O("0x6")](t))return}L(this[O("0xb")][O("0xc")],this[O("0xd")],t)}}const P=["from","editor","size","values","refresh","isEnabled","getRanges","document","_command","selection","_isEnabledBasedOnSelection","execute","_selectedSuggestions"];var D,B;D=P,B=292,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._suggestions=n,this[j("0x6")]=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0x8")].model[j("0x1")][j("0x3")],e=Array[j("0x7")](this._suggestions[j("0xa")]());this[j("0x6")]=function(t,e){const n=Array[v("0xc")](t.getRanges()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x9")]())(e[v("0x11")](n)||t[v("0x17")]&&!s.isMultiRange&&s.next&&n[v("0x10")][v("0x6")](e[v("0x1")]))&&o[v("0x12")](s);return o}(t,e),this[j("0xc")]=this[j("0x2")][j("0xc")]&&!!this._selectedSuggestions[j("0x9")]}[j("0x5")](){const t=R(Array[j("0x7")](this._selectedSuggestions));for(const e of t){const t=e[j("0x0")]();if(!this.editor.model.canEditAt(t))return}L(this[j("0x8")].model,this[j("0x2")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const X=function(t){return W(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=W(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=X,$.prototype.set=q;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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt 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!(!ft(t)||Et(t))&&(mt(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const Xt=function(t){return zt(this,t).has(t)};const qt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=Xt,$t.prototype.set=qt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!mt(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const fn=Lt(ot,"Promise");const mn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(fn),An=Tt(mn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const Xn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const $n=qn?ke(qn):Xn;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(!ft(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(pe(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(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 f=i.get(e);if(f)return f;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 m=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(m||e,(function(s,r){m&&(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,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var s=-1,r=(e=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(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=ft(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 f=t[u],m=e[u];if(o)var h=i?o(m,f,u,e,t,r):o(f,m,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)&&(f===t||s(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!s(f,m,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,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=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:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=i;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=i?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===b?m===h||s(m,h,n,o,r):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&pe(t)){if(!pe(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):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),f=u&&Bo.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Yt),s(m,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=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:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Vo(t,e))||delete t[po(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["length","markers","isInContent","setAttribute","end","get","from","removeMarker","add","hasComments","getMarkerNames","getFirstMarker","isIntersectingWithRange","previous","createdAt","_onAttributesChange","_isDataLoaded","toJSON","getContainedElement","isExternal","split","set","creator","substr","addMarker","author","attributes","@external","reduce","getRange","clear","onDiscard","decorate","size","suggestion:","isMultiRange","getMultiRangeId","nodeAfter","map","type","_onAccept","change","subType","head","getRanges","onAccept","isIntersecting","addRange","push","next","_onDiscard","removeMarkers","_markerNames","_model","data","start","authoredAt","addMarkerName","commentThread","discard","nodeBefore","getItems","getMarkers"];var $o,Jo;$o=qo,Jo=134,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x8")]=!1,this.id=e.id,this[Qo("0x1f")]=e.type,this[Qo("0x22")]=e[Qo("0x22")]||null,this[Qo("0x11")]=e.author,this[Qo("0xe")]=e[Qo("0xe")]||e[Qo("0x11")],this[Qo("0xb")]=Boolean(e[Qo("0x12")]&&e.attributes[Qo("0x13")]),this.data=null,this[Qo("0x2d")]=t,this[Qo("0x20")]=e[Qo("0x25")],this._onDiscard=e[Qo("0x17")],this[Qo("0x7")]=e.onAttributesChange,this._markerNames=new Set,this[Qo("0x6")]=null,this.set(Qo("0x30"),null),this[Qo("0xd")]("attributes",e[Qo("0x12")]||{}),this.set(Qo("0x5"),null),this[Qo("0xd")](Qo("0x29"),null),this[Qo("0xd")](Qo("0x32"),null),this[Qo("0xd")]("_saved",!1),this[Qo("0x18")]("accept"),this[Qo("0x18")](Qo("0x33"))}get[Qo("0x23")](){let t=this;for(;t[Qo("0x5")];)t=t[Qo("0x5")];return t}get[Qo("0x1")](){return!!this[Qo("0x32")]&&this.commentThread[Qo("0x37")]>0}get[Qo("0x1b")](){return 0!=this[Qo("0x2c")][Qo("0x19")]&&6==Array[Qo("0x3d")](this[Qo("0x2c")])[0][Qo("0xc")](":")[Qo("0x37")]}get[Qo("0x39")](){return null!==this[Qo("0x3")]()}[Qo("0x31")](t){this[Qo("0x2c")][Qo("0x0")](t)}[Qo("0x2")](){return Array[Qo("0x3d")](this[Qo("0x2c")])}[Qo("0x36")](){return this[Qo("0x2")]()[Qo("0x1e")]((t=>this[Qo("0x2d")][Qo("0x38")][Qo("0x3c")](t))).filter((t=>t))}[Qo("0x3")](){return this[Qo("0x36")]()[0]||null}[Qo("0x2b")](){this._model.change((t=>{for(const e of this[Qo("0x36")]())t[Qo("0x3e")](e)})),this[Qo("0x2c")][Qo("0x16")]()}[Qo("0x3e")](t){this[Qo("0x2d")][Qo("0x21")]((e=>{e[Qo("0x3e")](t)})),this._markerNames.delete(t)}[Qo("0x27")](t){const e=Qo("0x1a")+this[Qo("0x1f")]+":"+this[Qo("0x22")]+":"+this.id+":"+this[Qo("0xe")].id+":"+Zo.getMultiRangeId();this[Qo("0x31")](e),this[Qo("0x2d")][Qo("0x21")]((n=>{n[Qo("0x10")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x4")](t){for(const e of this[Qo("0x24")]())if(e[Qo("0x26")](t))return!0;return!1}getRanges(){return this[Qo("0x36")]()[Qo("0x1e")]((t=>t[Qo("0x15")]()))}[Qo("0x35")](){return this[Qo("0x24")]()[Qo("0x14")](((t,e)=>[...t,...e.getItems()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x3")]())||void 0===t?void 0:t[Qo("0x15")]())||null}[Qo("0xa")](){const t=this[Qo("0x24")]();if(1!=t[Qo("0x37")])return null;const e=t[0],n=e[Qo("0x2f")][Qo("0x1d")],o=e[Qo("0x3b")][Qo("0x34")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x24")](),this[Qo("0x2e")],this.attributes),this.removeMarkers()}[Qo("0x33")](){this[Qo("0x2a")](this[Qo("0x24")](),this[Qo("0x2e")],this[Qo("0x12")]),this[Qo("0x2b")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x23")];for(;e;)t[Qo("0x28")](e),e=e[Qo("0x29")];return t}[Qo("0x3a")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x12")])||(this[Qo("0x12")]=n,this[Qo("0x7")](n))}removeAttribute(t){const e=eo(this.attributes);Xo(e,t),Go(e,this.attributes)||(this[Qo("0x12")]=e,this[Qo("0x7")](this[Qo("0x12")]))}[Qo("0x9")](){return{id:this.id,type:this.subType?this.type+":"+this[Qo("0x22")]:this.type,authorId:this[Qo("0xe")].id,createdAt:this[Qo("0x6")],hasComments:this[Qo("0x1")],data:this[Qo("0x2e")],attributes:this.attributes}}static[Qo("0x1c")](){return(0,e.uid)()[Qo("0xf")](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=["data","getFirstRange","name","$1 $2","_locale","_itemLabels","match","length","isInContent","Object","getItemLabel","add","EmptyContainer","end","registerElementLabel","softBreak","label","element","remove","quantity","addObject","previousSibling","removeContainer","_resolveDescriptionItems","text","ELEMENT_SPACE","registerDescriptionCallback","replace","*Insert:* %0","isEmpty","addEmptyContainer","indexOf","checkChild","nextSibling","matchingCallback","push","_schema","insertion","_customCallbacks","deletion","getDescriptions","REPLACE_TEXT","elementEnd","item","type","$text","_itemLabelsCallbacks","start","*Merge:* %0","$textProxy","_addDescriptionItems","addContainer","pop","*Remove:* %0","isEqual","*Split:* %0","isObject","Container","elementStart","skip"];var es,ns;es=ts,ns=137,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("0x30")]=new Map,this[os("0x1d")]=[],this._schema=t,this[os("0x2f")]=e}[os("0x17")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x33")])continue;let s=!1;for(const t of this[os("0x15")]){const n=t(o);if(n){os("0x1b")in n&&e[os("0x12")](n),s=!0;break}}if(!s){this[os("0x21")](e,o);const s=t[n+1];if(s&&!o[os("0x2c")]()[os("0x38")][os("0x25")](s[os("0x2c")]()[os("0x1e")])){const t=e[e[os("0x32")]-1],n=os("0x14")==o[os("0x1b")]?os("0x36"):os("0x1");t&&os("0x7")==t[os("0x1b")]&&(t[n]+="\n")}}}return this[os("0x6")](e)}[os("0x9")](t){this[os("0x15")][os("0x12")](t)}[os("0x39")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x1d")],{matchingCallback:t,label:n,priority:o}):this[os("0x30")].set(t,n)}[os("0x35")](t,e=1){let n;for(const e of this[os("0x1d")])if(e[os("0x11")](t)){n=e[os("0x3b")];break}return n||(n=this[os("0x30")].get(t[os("0x2d")])),n?n(e):1!==e?e+" "+t[os("0x2d")]+"s":""+t[os("0x2d")]}[os("0x21")](t,e){const n=e[os("0x2c")]().getWalker(),o=os("0x14")==e[os("0x1b")]?os("0x36"):os("0x1");for(const e of n){const s=e[os("0x1a")],r=t[t[os("0x32")]-1];if(s.is(os("0x20")))r&&r.type[os("0xe")](os("0x28"))>-1&&t[os("0x23")](),r&&"text"==r[os("0x1b")]?r[o]+=s[os("0x2b")]:t[os("0x12")]({type:"text",add:os("0x36")==o?s[os("0x2b")]:"",remove:os("0x1")==o?s[os("0x2b")]:""});else if(this._schema[os("0x27")](s)){const i=s;if(r&&r[os("0x1b")][os("0xe")](os("0x28"))>-1&&t[os("0x23")](),os("0x19")==e[os("0x1b")])continue;r&&r.type==o+os("0x34")&&r.element[os("0x2d")]==i.name?r.quantity++:t[os("0x12")]({type:o+"Object",element:i,quantity:1}),n[os("0x2a")]((t=>!(os("0x19")==t[os("0x1b")]&&t[os("0x1a")]==s)))}else if(this[os("0x13")][os("0xf")](s,os("0x1c"))||s.is(os("0x0"),os("0x3a"))){const n=s;if(os("0x36")==o&&os("0x29")==e.type||os("0x1")==o&&"elementEnd"==e.type)continue;if(r&&-1==r[os("0x1b")][os("0xe")](os("0x28"))){os("0x7")==r[os("0x1b")]&&(r[o]+="\n");continue}let i;if(i=os("0x36")==o?n.nextSibling&&!this._schema.isObject(n[os("0x10")])?n[os("0x10")]:null:n[os("0x4")]&&!this[os("0x13")][os("0x27")](n[os("0x4")])?n[os("0x4")]:null,n.isEmpty||i&&i[os("0xc")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x37")&&r.element.name==e[os("0x2d")]?r[os("0x2")]++:t[os("0x12")]({type:o+os("0x37"),element:e,quantity:1})}else t[os("0x12")]({type:o+"Container",element:n})}}}[os("0x6")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x1b")]){case"text":if(o[os("0x36")]=o.add[os("0xa")](/(\S)\u000A+(\S)/g,os("0x2e"))[os("0xa")](/\u000A/g,""),o[os("0x1")]=o[os("0x1")][os("0xa")](/(\S)\u000A+(\S)/g,os("0x2e")).replace(/\u000A/g,""),""!=o[os("0x36")]&&""!=o[os("0x1")]){n.push({type:os("0xa"),content:Yo(e,os("0x18"),['"'+o[os("0x1")]+'"','"'+o[os("0x36")]+'"'])});continue}if(null!=o.add[os("0x31")](/^ +$/)){n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0xb"),Yo(e,"ELEMENT_SPACE",o[os("0x36")][os("0x32")]))});continue}if(null!=o[os("0x1")].match(/^ +$/)){n.push({type:os("0x16"),content:Yo(e,os("0x24"),Yo(e,os("0x8"),o.remove[os("0x32")]))});continue}if(""!=o.add){n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0xb"),'"'+o[os("0x36")]+'"')});continue}n[os("0x12")]({type:"deletion",content:Yo(e,"*Remove:* %0",'"'+o[os("0x1")]+'"')});continue;case os("0xd"):case os("0x3"):n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0xb"),this[os("0x35")](o[os("0x0")],o[os("0x2")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:os("0x16"),content:Yo(e,os("0x24"),this[os("0x35")](o[os("0x0")],o[os("0x2")]))});continue;case os("0x22"):n.push({type:os("0x14"),content:Yo(e,os("0x26"),this.getItemLabel(o[os("0x0")],o.quantity))});continue;case os("0x5"):n.push({type:os("0x16"),content:Yo(e,os("0x1f"),this.getItemLabel(o[os("0x0")],o[os("0x2")]))});continue}n[os("0x12")](o)}return n}}const rs=["ltr","TrackChangesEditing","commandParams","change","editor","model","left","justify","_descriptionFactory","filter","FORMAT_ALIGN_TO_RIGHT","*Format:* %0","get","center","FORMAT_ALIGN_TO_LEFT","has","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER","document","locale","schema","plugins","format","enableCommand","right","selection","getSelectedBlocks","commandName","checkAttribute","value","alignment","contentLanguageDirection","markBlockFormat"];var is,xs;is=rs,xs=272,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("0x1d")],e=t.locale;if(!t[as("0xd")][as("0x7")]("AlignmentEditing"))return;const n=t[as("0xd")][as("0x4")](as("0x1a"));n[as("0xf")]("alignment",((e,o={})=>{let s=o[as("0x15")];o[as("0x15")]||(s=as("0x19")===t[as("0xb")][as("0x17")]?as("0x1f"):as("0x10"));const r=Array.from(this[as("0x1d")][as("0x1e")][as("0xa")][as("0x11")][as("0x12")]())[as("0x1")]((t=>function(t,e,n){const o=t.getAttribute(as("0x16"))||null;return e[as("0x14")](t,as("0x16"))&&n!=o}(t,this[as("0x1d")][as("0x1e")][as("0xc")],s)));t[as("0x1e")][as("0x1c")]((()=>{for(const t of r)n[as("0x18")](t,{commandName:as("0x16"),commandParams:[{value:s}]})}))})),n[as("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x16")==n[as("0x13")]){const t=n[as("0x1b")][0][as("0x15")];return{type:as("0xe"),content:Yo(e,as("0x3"),function(t){switch(t){case"left":return Yo(e,as("0x6"));case as("0x10"):return Yo(e,as("0x2"));case as("0x5"):return Yo(e,as("0x9"));case as("0x20"):return Yo(e,as("0x8"))}}(t))}}}))}}const ls=["mapper","ck-suggestion-marker--active","includes","span","start","previousPosition","writer","item","insert","isLimit","test","activeMarkers","consumable","toViewElement","name","schema","nextSibling","markerName","plugins","listIndent","getAttribute","createUIElement","isContent","model","elementEnd","element","type","markerRange","push","isBlock","listItem","toViewPosition","ck-suggestion-marker-","get","getCustomProperty","isAtEnd","addHighlight"];var us,ds;us=ls,ds=449,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function fs(t,e,n){const o=[];for(const s of e.getItems())s.hasAttribute(t)&&o[gs("0x17")](n.createRangeOn(s));return o}function ms(t){const e=[];if(t.is(gs("0x14"),gs("0x19"))){let n=t[gs("0xb")];for(;n&&n.is(gs("0x14"),gs("0x19"))&&n[gs("0xf")](gs("0xe"))>0;)e[gs("0x17")](n),n=n[gs("0xb")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xd")][gs("0x1c")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x7")][gs("0x5")](r[gs("0x16")],s[gs("0x9")]))return;const x=r[gs("0x16")].getWalker(),a=r[gs("0x16")][gs("0x24")],c=t[gs("0x12")][gs("0xa")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x2")];d=d||c[gs("0x11")](e);const n=i[gs("0x20")][gs("0x8")](e);if(n&&n[gs("0x1d")](gs("0x1f")))return;gs("0x13")==t[gs("0x15")]&&c[gs("0x18")](e)&&!c[gs("0x4")](e)&&(e.nextSibling||a[gs("0x1e")]?l&&l.parent==e||(l=e,f(t[gs("0x0")]),g=!0):u=u||t[gs("0x0")])}function f(t){const s=i[gs("0x1")][gs("0x10")](gs("0x23"),{class:gs("0x1b")+e}),x=i[gs("0x20")][gs("0x1a")](t);n&&o[gs("0x6")][gs("0x22")](r[gs("0xc")])&&i[gs("0x1")].addClass(gs("0x21"),s),i.writer[gs("0x3")](x,s),i[gs("0x20")].bindElementToMarker(s,r.markerName)}d||g||!u||f(u)}}const bs=["CodeEditing","getRanges","FORMAT_SUPERSCRIPT","italic","has","markInlineFormat","UnderlineEditing","afterInit","get","TrackChangesEditing","SuperscriptEditing","StrikethroughEditing","forceValue","FORMAT_CODE","value","underline","isCollapsed","format","selection","commands","document","ItalicEditing","plugins","slice","change","FORMAT_ITALIC","editor","superscript","FORMAT_SUBSCRIPT","bold","BoldEditing","registerDescriptionCallback","FORMAT_BOLD","strikethrough","code","subscript"];var ps,Es;ps=bs,Es=158,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x10"),_s("0x7"),_s("0x1c"),_s("0x16"),_s("0x21"),"SubscriptEditing",_s("0x20")];class Cs extends t.Plugin{[_s("0x1d")](){const t=this[_s("0xc")],e=t.model,n=t[_s("0x8")][_s("0x1e")](_s("0x1f")),o=t.locale;for(const o of Ts){if(!t[_s("0x8")][_s("0x1a")](o))continue;const s=o[_s("0x9")](0,-7).toLowerCase(),r=t[_s("0x5")].get(s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x6")][_s("0x4")];if(i[_s("0x2")])return void t(o);const x=void 0!==o.forceValue?o[_s("0x22")]:!r[_s("0x0")];e[_s("0xa")]((()=>{const t=Array.from(i[_s("0x17")]());for(const o of t){const t=x?[o]:fs(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x11")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0x22")]?{type:_s("0x3"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x3"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xf"),Yo(o,_s("0x12"))),s(_s("0x19"),Yo(o,_s("0xb"))),s(_s("0x1"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x14"),Yo(o,_s("0x23"))),s(_s("0x13"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x15"),Yo(o,_s("0xe"))),s(_s("0xd"),Yo(o,_s("0x18")))}}const ys=["commandParams","getSelectedBlocks","document","ELEMENT_BLOCK_QUOTE","filter","markBlockFormat","_descriptionFactory","change","commands","*Format:* %0","BlockQuoteEditing","blockQuote","commandName","get","enableCommand","TrackChangesEditing","has","model","parent","forceValue","$root","afterInit","plugins","checkChild","editor","selection","schema","format"];var ks,As;ks=ys,As=189,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x0")](){const t=this[vs("0x3")],e=t.locale;if(!t[vs("0x1")][vs("0x17")](vs("0x11")))return;const n=t[vs("0x1")][vs("0x14")](vs("0x16")),o=this[vs("0x3")][vs("0xf")][vs("0x14")](vs("0x12"));n[vs("0x15")](vs("0x12"),((e,s={})=>{const r=this.editor[vs("0x18")][vs("0x9")][vs("0x4")],i=s&&void 0!==s[vs("0x1a")]?s[vs("0x1a")]:!o.value;let x=[];if(i){const e=Array.from(r[vs("0x8")]()).filter((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0x19")],vs("0x12")),o=e[vs("0x2")]([vs("0x1b"),"blockQuote"],t);return n&&o}(t,this.editor[vs("0x18")][vs("0x5")])));x=S(e,t.model)}else{const e=Array.from(r[vs("0x8")]())[vs("0xb")]((t=>Ss(t)));x=S(e,t[vs("0x18")])}t[vs("0x18")][vs("0xe")]((()=>{for(const t of x)n[vs("0xc")](t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vs("0xd")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x12")==n[vs("0x13")]){const t=Yo(e,vs("0xa"));return n[vs("0x7")][0][vs("0x1a")]?{type:vs("0x6"),content:Yo(e,vs("0x10"),t)}:{type:"format",content:Yo(e,"*Remove format:* %0",t)}}}))}}function Ss(t){return vs("0x12")==t[vs("0x19")].name}const Is=["commands","ckbox","get","plugins"];var Ls,Ns;Ls=Is,Ns=173,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x3")][Ms("0x1")](Ms("0x0"))&&t[Ms("0x2")][Ms("0x1")]("TrackChangesEditing").enableCommand(Ms("0x0"))}}const Os=["ELEMENT_CODE_BLOCK","change","parent","enableCommand","codeBlock","forceValue","filter","config","CodeBlock","isLimit","*Remove format:* %0","checkChild","blockName","TrackChangesEditing","value","format","formatBlock","find","selection","commands","get","label","has","model","getSelectedBlocks","editor","afterInit","document","rootElement","from","language","commandParams","*Format:* %0","indentCodeBlock","_descriptionFactory"];var Fs,Ps;Fs=Os,Ps=142,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x18")](){const t=this[Ds("0x17")];if(!t.plugins[Ds("0x14")](Ds("0x6")))return;const e=t.plugins[Ds("0x12")](Ds("0xb")),n=t.locale,o=t[Ds("0x5")][Ds("0x12")](Ds("0x2")).languages,s=t[Ds("0x11")][Ds("0x12")](Ds("0x2"));e[Ds("0x1")](Ds("0x1f")),e[Ds("0x1")]("outdentCodeBlock"),e.enableCommand(Ds("0x2"),((n,r={})=>{const i=t[Ds("0x15")],x=t.model[Ds("0x19")][Ds("0x10")],a=r&&void 0!==r.forceValue?r[Ds("0x3")]:!s[Ds("0xc")];let c;r[Ds("0x1c")]||(r[Ds("0x1c")]=o[0][Ds("0x1c")]),c=a?Array.from(x[Ds("0x16")]())[Ds("0x4")]((t=>{return js(t)||(e=t,n=i.schema,!e.is(Ds("0x1a"))&&!n[Ds("0x7")](e)&&n[Ds("0x9")](e[Ds("0x0")],Ds("0x2")));var e,n})):Array[Ds("0x1b")](x[Ds("0x16")]())[Ds("0x4")]((t=>js(t)));const l=S(c,i);i[Ds("0x22")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x2"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0xa")})}))})),e[Ds("0x20")].registerElementLabel(Ds("0x2"),(t=>Yo(n,Ds("0x21"),t))),e[Ds("0x20")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xe")==s&&r&&Ds("0x2")==r.commandName){const t=r[Ds("0x1d")][0].language,s=e(o[Ds("0xf")]((e=>e[Ds("0x1c")]===t))[Ds("0x13")]);return r[Ds("0x1d")][0].forceValue?{type:Ds("0xd"),content:Yo(n,Ds("0x1e"),Yo(n,Ds("0x21"),1)+" ("+s+")")}:{type:Ds("0xd"),content:Yo(n,Ds("0x8"),Yo(n,Ds("0x21"),1))}}}))}}function js(t){return Ds("0x2")==t.name}const Us=["plugins","enableCommand","TrackChangesEditing","get","editor","afterInit","CommentsEditing","has"];var Gs,Hs;Gs=Us,Hs=390,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x7")](){const t=this[Ws("0x6")];t[Ws("0x2")][Ws("0x1")](Ws("0x0"))&&t[Ws("0x2")][Ws("0x5")](Ws("0x4"))[Ws("0x3")]("addCommentThread")}}var Vs=n(181);const Ks=["createSelection","deleteForward","writer","markerName","unlock","uiElement","remove","markerNameToElements","start","enqueueChange","unit","detach","fromRange","get","enableCommand","showSuggestionHighlights","buffer","merge","isCollapsed","data","forward","delete","downcastDispatcher","removeMarker:suggestion:deletion","editing","lock","high","getFirstRange","addMarker:suggestion:deletion","mapper","batch","commands","init","model","options","end","setSelection","root","bind","$graveyard","createRange","document","plugins","unbindElementFromMarkerName","TrackChangesEditing"];var Xs,qs;Xs=Ks,qs=254,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x3")](){const t=this.editor,e=t[$s("0xd")][$s("0x1d")]($s("0xf"));e[$s("0x1e")]($s("0x25"));const n=t[$s("0x2")][$s("0x1d")]($s("0x11"));e.enableCommand($s("0x11"),((e,o={})=>{const s=t[$s("0x4")][$s("0x10")](t.model[$s("0xc")].selection);s[$s("0x22")]&&t.model.modifySelection(s,{direction:$s("0x24"),unit:o[$s("0x1a")]});const r=s[$s("0x2b")](),x=i.LiveRange[$s("0x1c")](r);let a;e(o),a=$s("0xa")==x[$s("0x8")].rootName?t[$s("0x4")][$s("0xb")](r[$s("0x18")]):t[$s("0x4")].createRange(x[$s("0x18")],x[$s("0x6")]),x[$s("0x1b")](),t[$s("0x4")][$s("0x19")](n[$s("0x20")][$s("0x1")],(t=>{n[$s("0x20")][$s("0x29")](),t[$s("0x7")](t[$s("0xb")](a[$s("0x6")])),n[$s("0x20")][$s("0x14")]()}))})),t[$s("0x28")].downcastDispatcher.on($s("0x2c"),hs(t,$s("0x21")),{priority:$s("0x2a")}),t[$s("0x23")][$s("0x26")].on($s("0x2c"),((e,n,o)=>{o[$s("0x5")][$s("0x1f")]&&hs(t,$s("0x21"),{showActiveMarker:!1})[$s("0x9")](this)(e,n,o)}),{priority:$s("0x2a")}),t[$s("0x28")][$s("0x26")].on($s("0x27"),((t,e,n)=>{const o=n[$s("0x0")][$s("0x17")](e[$s("0x13")]);if(o)for(const t of o)t.is($s("0x15"))&&(n[$s("0x0")][$s("0xe")](t,e.markerName),n[$s("0x12")][$s("0x16")](t))}),{priority:$s("0x2a")})}}const Qs=["length","_suggestionFactory","plugins","bulletedList","forceValue","setSelection","TrackChangesEditing","getAttribute","splitListItemBefore","fromRange","value","DocumentListEditing","next","before","commandParams","*Change to:* %0","document","registerElementLabel","listItemId","expandListBlocksToCompleteList","*Format:* insert into %0","mergeListItemBackward","registerCustomCallback","nodeAfter","parent","model","toUpperCase","*Indent:* %0","commandName","isObject","outdentList","from","refresh","locale","listType","editor","ELEMENT_NUMBERED_LIST","change","commands","_descriptionFactory","isFirstBlockOfListItem","getRanges","splitListItemAfter","getSelectedBlocks","*Format:* remove from %0","add","indentList","createPositionAt","after","*Outdent:* %0","listIndent","registerDescriptionCallback","end","multipleBlocks","numberedList","afterInit","accept","ELEMENT_","getFirstRange","selection","createRange","_LIST","enableCommand","get","push","containsItem","ELEMENT_BULLETED_LIST","schema","hasAttribute","deletion","documentList","nextSibling","start","ELEMENT_LIST_ITEM","format","markBlockFormat","DocumentListUtils"];var Zs,Ys;Zs=Qs,Ys=128,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x4")](){const t=this[tr("0x3d")];if(!t[tr("0x1c")].has(tr("0x25")))return;const e=t[tr("0x3b")],n=t[tr("0x1c")][tr("0xc")](tr("0x20")),o=t.plugins[tr("0xc")](tr("0x19"));function s(e){return()=>{const s=t[tr("0x40")][tr("0xc")](e);let r=Array[tr("0x39")](t[tr("0x33")][tr("0x2a")][tr("0x8")].getSelectedBlocks());if(a(e)){r=o[tr("0x2d")](r);const t=[];for(const e of r)o[tr("0x42")](e)&&t[tr("0xd")](e);r=t}t[tr("0x33")][tr("0x3f")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!s[tr("0x24")]}],formatGroupId:tr("0x3c")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x39")](t);const n=e.findIndex((t=>!t[tr("0x11")](tr("0x2c"))));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x33")].document[tr("0x8")][tr("0x45")]()),s=o[o[tr("0x1a")]-1],r=t.model[tr("0x10")][tr("0x37")](s)?tr("0x4a"):"end",i=t[tr("0x33")].createRange(t[tr("0x33")][tr("0x49")](o[0],tr("0x27")),t[tr("0x33")][tr("0x49")](s,r));t[tr("0x33")][tr("0x3f")]((()=>{n[tr("0x18")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[tr("0x14")];for(;t&&t[tr("0x21")](tr("0x4c"))>n.getAttribute(tr("0x4c"));)e[tr("0x47")](t),t=t[tr("0x14")]}return Array[tr("0x39")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x33")][tr("0x2a")][tr("0x8")][tr("0x45")]()[tr("0x26")]()[tr("0x24")],s=t[tr("0x33")].createPositionAt(o,tr("0x27")),r=t[tr("0x33")][tr("0x49")](o,0),i=t[tr("0x33")].createRange(s,r);t[tr("0x33")][tr("0x3f")]((()=>{n[tr("0x18")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0x40")][tr("0xc")]("bulletedList")[tr("0x24")],o=t.commands.get(tr("0x3")).value;return tr("0x3")===e?n:o}n[tr("0xb")]("numberedList",s(tr("0x3"))),n[tr("0xb")](tr("0x1d"),s("bulletedList")),n[tr("0xb")](tr("0x48"),r(tr("0x48"))),n.enableCommand(tr("0x38"),r(tr("0x38"))),n.enableCommand(tr("0x44"),x(tr("0x44"))),n[tr("0xb")](tr("0x22"),x(tr("0x22"))),n[tr("0x41")][tr("0x2b")]((function(e){const n=!t[tr("0x33")].schema[tr("0x37")](e),o=e.previousSibling,s=e[tr("0x14")],r=e[tr("0x21")](tr("0x2c")),i=!o||o[tr("0x21")](tr("0x2c"))!==r,x=!s||s[tr("0x21")](tr("0x2c"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x41")][tr("0x0")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x36")]){case"bulletedList":r=n[tr("0x28")][0][tr("0x1e")],i=a(n[tr("0x36")]),o=tr(r?"0x2e":"0x46"),i&&(o="*Change to:* %0"),s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0xf")))};break;case"numberedList":r=n.commandParams[0].forceValue,i=a(n[tr("0x36")]),o=r?"*Format:* insert into %0":tr("0x46"),i&&(o=tr("0x29")),s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0x3e")))};break;case"indentList":o=tr("0x35"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x16")))};break;case tr("0x38"):o=function(t){const e=t[tr("0x7")]();let n=e[tr("0x15")][tr("0x31")];for(;n&&e[tr("0xe")](n);){if(n[tr("0x21")](tr("0x4c"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x46"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x15")][tr("0x31")];return tr("0x6")+e[tr("0x21")](tr("0x3c"))[tr("0x34")]()+tr("0xa")}(t))):Yo(e,tr("0x4b"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:"format",content:o};break;case tr("0x2f"):case"mergeListItemForward":!1===n[tr("0x2")]&&(o="*Merge:* %0",s={type:tr("0x12"),content:Yo(e,o,Yo(e,tr("0x16")))})}return s})),n[tr("0x1b")][tr("0x30")]("formatBlock",tr("0x13"),tr("0x5"),(function(e,n){const o=[];for(let n of e)n[tr("0x15")][tr("0x31")]===n[tr("0x1")][tr("0x32")]&&(n=t.model[tr("0x9")](t[tr("0x33")].createPositionAt(n[tr("0x15")][tr("0x31")],0))),o.push(n);t.model[tr("0x3f")]((e=>{const s=t[tr("0x33")].document[tr("0x8")],r=Array.from(s[tr("0x43")]()).map((t=>i.LiveRange[tr("0x23")](t)));e.setSelection(o),t[tr("0x40")][tr("0xc")](n.commandName)[tr("0x3a")](),n[tr("0x28")].push({forceDefaultExecution:!0}),t.execute(n[tr("0x36")],...n[tr("0x28")]),e[tr("0x1f")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["TrackChangesEditing","addMarker:suggestion:insertion","markerName","remove","bind","document","parent","writer","plugins","model","removeMarker:suggestion:insertion","change","end","split","requires","showSuggestionHighlights","hasClass","downcastDispatcher","afterExecute","detach","commands","enterBlock","high","ck-suggestion-marker-split","init","createRange","nextSibling","editor","getFirstRange","enableCommand","fromRange","getFirstPosition","mapper","fire","selection","editing","enter"];var sr,rr;sr=or,rr=283,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[ir("0x1b")](){return[nr.Enter]}[ir("0x0")](){const t=this[ir("0x3")],e=t[ir("0x15")].get(ir("0xd")),n=t[ir("0x21")].get(ir("0xc"));e[ir("0x5")](ir("0xc"),(()=>{t[ir("0x16")][ir("0x18")]((o=>{const s=t[ir("0x16")][ir("0x12")][ir("0xa")],r=s[ir("0x7")](),x=i.LiveRange[ir("0x6")](s[ir("0x4")]());if(n[ir("0x22")](o)){const n=t[ir("0x16")].createPositionAt(r[ir("0x13")][ir("0x2")],0),s=o[ir("0x1")](r,n);e.markInsertion(s)}else o.setSelection(o[ir("0x1")](x[ir("0x19")]));x[ir("0x20")](),n[ir("0x9")](ir("0x1f"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0xe"),hs(t,"split"),{priority:"high"}),t[ir("0xb")][ir("0x1e")].on(ir("0x17"),((t,e,n)=>{const o=n[ir("0x8")].markerNameToElements(e.markerName);if(o)for(const t of o)t[ir("0x1d")](ir("0x24"))&&(n[ir("0x8")].unbindElementFromMarkerName(t,e[ir("0xf")]),n[ir("0x14")][ir("0x10")](t))}),{priority:ir("0x23")}),t.data.downcastDispatcher.on(ir("0xe"),((e,n,o)=>{o.options[ir("0x1c")]&&hs(t,ir("0x1a"),{showActiveMarker:!1})[ir("0x11")](this)(e,n,o)}),{priority:ir("0x23")})}}const ar=["editor","model","markers","replaceAll","findPrevious","end","start","_isInDeletionRange","find","afterInit","findByTextCallback","TrackChangesEditing","createPositionAt","get","handleFindCommand","plugins","createRange","getRange","FindAndReplaceUtils","getIntersection","bind","suggestion:deletion","enableCommand","has"];var cr,lr;cr=ar,lr=252,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x15")](){if(!this[ur("0xc")][ur("0x3")][ur("0xb")]("FindAndReplaceEditing"))return;const t=this[ur("0xc")].plugins.get(ur("0x17"));t.enableCommand(ur("0x14"),this[ur("0x2")][ur("0x8")](this)),t[ur("0xa")]("findNext"),t[ur("0xa")](ur("0x10")),t.enableCommand("replace"),t[ur("0xa")](ur("0xf"))}[ur("0x2")](t,e,n={}){const o=this[ur("0xc")][ur("0x3")][ur("0x1")](ur("0x6"));void 0!==n&&t((t=>("string"==typeof e?o[ur("0x16")](e,n):e)(t).filter((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[ur("0x13")](t,e){const n=this.editor[ur("0xd")][ur("0x4")](this[ur("0xc")][ur("0xd")][ur("0x0")](e,t[ur("0x12")]),this[ur("0xc")].model.createPositionAt(e,t[ur("0x11")]));for(const t of this.editor.model[ur("0xe")].getMarkersGroup(ur("0x9")))if(null!==n[ur("0x7")](t[ur("0x5")]()))return!0;return!1}}const gr=["markInlineFormat","find","registerDescriptionCallback","editor","fontSize","model","fontColor.colors","title","trim","*Reset font color*","fontBackgroundColor.colors","locale","fontBackgroundColor","enableCommand","afterInit","fontFamily","TrackChangesEditing","get","*Reset font size*","*Set font background color:* %0","_descriptionFactory","fontSize.options","*Set font color:* %0","FontSizeEditing","config","change","value","normalizeSizeOptions","FontBackgroundColorEditing","selection","FontFamilyEditing","has","FontSize","fontColor","*Reset font background color*","_enableCommand","plugins","format","label","toLowerCase","commandParams","commandName"];var fr,mr;fr=gr,mr=203,function(t){for(;--t;)fr.push(fr.shift())}(++mr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:hr("0x1e"),commandName:hr("0xb")},{pluginName:hr("0x25"),commandName:hr("0x16")},{pluginName:"FontColorEditing",commandName:hr("0x28")},{pluginName:hr("0x23"),commandName:hr("0x13")}];class pr extends t.Plugin{[hr("0x15")](){const t=this.editor[hr("0x12")];for(const{pluginName:t,commandName:e}of br)this.editor[hr("0x1")][hr("0x26")](t)&&this[hr("0x0")](e);this[hr("0xa")][hr("0x1")][hr("0x18")](hr("0x17"))[hr("0x1b")][hr("0x9")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x6")]){const e=o[hr("0x5")][0][hr("0x21")];if(e){const o=n(this[hr("0xa")][hr("0x1")].get(hr("0x27"))[hr("0x22")](this[hr("0xa")][hr("0x1f")].get(hr("0x1c")))[hr("0x8")]((t=>t[hr("0xc")]==e))[hr("0xe")])[hr("0x4")]();return{type:hr("0x2"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,hr("0x19"))}}if(hr("0x16")==o[hr("0x6")]){const e=o[hr("0x5")][0][hr("0x21")];return e?{type:hr("0x2"),content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x2"),content:Yo(t,"*Reset font family*")}}if(hr("0x28")==o[hr("0x6")]){const e=o[hr("0x5")][0][hr("0x21")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xa")].config[hr("0x18")](hr("0xd")))[hr("0x8")]((t=>t[hr("0xc")]==e));let r=e,i="";return o&&(r=o[hr("0x3")],i=n(r)[hr("0x4")]()),{type:hr("0x2"),content:Yo(t,hr("0x1d"),i)[hr("0xf")](),color:{value:e,title:i||r}}}return{type:hr("0x2"),content:Yo(t,hr("0x10"))}}if(hr("0x13")==o[hr("0x6")]){const e=o[hr("0x5")][0][hr("0x21")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0xa")][hr("0x1f")][hr("0x18")](hr("0x11")))[hr("0x8")]((t=>t[hr("0xc")]==e));let r=e,i="";return o&&(r=o[hr("0x3")],i=n(r)[hr("0x4")]()),{type:hr("0x2"),content:Yo(t,hr("0x1a"),i)[hr("0xf")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x29"))}}}}))}[hr("0x0")](t){const e=this[hr("0xa")];e[hr("0x1")][hr("0x18")]("TrackChangesEditing")[hr("0x14")](t,((n,o={})=>{const s=e[hr("0xc")].document[hr("0x24")],r=o[hr("0x21")];s.isCollapsed?n(o):e[hr("0xc")][hr("0x20")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:fs(t,o,e[hr("0xc")]);for(const o of n)e[hr("0x1")][hr("0x18")](hr("0x17"))[hr("0x7")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["title","*Set format to:* %0","*Remove all formatting*","format","slice","document","registerDescriptionCallback","length","config","join","getLastPosition","push","createSelection","change","commandParams","commandName","label","isBlock","editor","FontSize","keys","selection","pasteFormat","split","model","get","getFirstPosition","fontBackgroundColor","toLowerCase","afterInit","fontSize","getRanges","fontColor.colors","charAt","markInlineFormat","schema","enableCommand","commands","getItems","getAttributeProperties","normalizeSizeOptions","fontColor","find","toUpperCase","entries","isCollapsed","copyFormat","fontSize.options","plugins"];var _r,Tr;_r=Er,Tr=376,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("0x22")],n=t.model,o=n[Cr("0x15")][Cr("0x25")],s=t.plugins[Cr("0x29")]("TrackChangesEditing"),r=t.locale,i=t.commands[Cr("0x29")](Cr("0xd")),x=t[Cr("0x4")][Cr("0x29")](Cr("0x26"));i&&x&&(s[Cr("0x3")](Cr("0x26"),((t,r={})=>{const i=r;n[Cr("0x1d")]((()=>{const t=Array.from(o[Cr("0x2f")]()),r=o[Cr("0xc")]?[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.getAttributes()){const t=e[Cr("0x6")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x2f")]())for(const t of e[Cr("0x5")]())!n[Cr("0x21")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x2")]))||0!==Object[Cr("0x24")](i)[Cr("0x17")])for(const t of r)s[Cr("0x1")](t,{commandName:Cr("0x26"),commandParams:[i]})}))})),s._descriptionFactory[Cr("0x16")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x1f")]){const e=[],o=n[Cr("0x1e")][0];for(const[n,s]of Object[Cr("0xb")](o))e[Cr("0x1b")](Ar(t,n,s));return e[Cr("0x17")]?{type:Cr("0x13"),content:Yo(r,Cr("0x11"),e[Cr("0x19")](", "))}:{type:Cr("0x13"),content:Yo(r,Cr("0x12"))}}})),t[Cr("0xf")][Cr("0x29")]("TrackChangesEditing").enableCommand(Cr("0xd")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:"word",direction:"backward"});const o=n[Cr("0x2a")]();t.modifySelection(n,{unit:"word",direction:"forward"});const s=n[Cr("0x1a")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x27")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x0")](0)[Cr("0xa")]()+r[Cr("0x14")](1))[Cr("0x2c")]();if("boolean"==typeof n)return i;if(Cr("0x8")===e||Cr("0x2b")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x18")][Cr("0x29")](Cr("0x30")))[Cr("0x9")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x20")])[Cr("0x2c")]():n)+")"}if(Cr("0x2e")===e&&isNaN(parseFloat(n))){const e=t[Cr("0xf")][Cr("0x29")](Cr("0x23"))[Cr("0x7")](t[Cr("0x18")].get(Cr("0xe")))[Cr("0x9")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x10")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["TrackChangesEditing","registerElementLabel","markBlockFormat","model","from","find","document","ELEMENT_HEADING_CUSTOM","ELEMENT_HEADING","blockName","get","has","locale","enableCommand","editor","name","parent","filter","checkChild","commandName","heading.options","paragraph","afterInit","getSelectedBlocks","heading","registerDescriptionCallback","config","selection","plugins","HeadingEditing","_descriptionFactory","title","format","value"];var Rr,Sr;Rr=vr,Sr=479,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x13")](){const t=this.editor,e=t[Ir("0x9")],n=t[Ir("0x17")][Ir("0x7")](Ir("0x11"));if(!t[Ir("0x19")][Ir("0x8")](Ir("0x1a")))return;const o=t[Ir("0x19")][Ir("0x7")](Ir("0x1f"));o[Ir("0xa")]("heading",((e,n)=>{const s=n[Ir("0x1e")],r=Array[Ir("0x1")](this[Ir("0xb")][Ir("0x0")][Ir("0x3")][Ir("0x18")][Ir("0x14")]())[Ir("0xe")]((t=>{return e=t,n=s,(o=this[Ir("0xb")][Ir("0x0")].schema)[Ir("0xf")](e[Ir("0xd")],n)&&!o.isObject(e)&&e[Ir("0xc")]!=n;var e,n,o}));t[Ir("0x0")].change((()=>{for(const t of r)o[Ir("0x21")](t,{commandName:Ir("0x15"),commandParams:[n],formatGroupId:Ir("0x6")},ms(t))}))}));for(const t of n)Ir("0x12")!=t[Ir("0x0")]&&o[Ir("0x1b")][Ir("0x20")](t.model,(e=>{const n=Nr(t[Ir("0x0")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Ir("0x5"),[t,n])}function r(t,n){return Yo(e,Ir("0x4"),[t,n])}o[Ir("0x1b")][Ir("0x16")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Ir("0x15")==i[Ir("0x10")]){const t=i.commandParams[0][Ir("0x1e")],o=Nr(t);if(null!==o)return{type:Ir("0x1d"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x2")]((e=>e.model===t))[Ir("0x1c")];return{type:"format",content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["has","color","toLowerCase","*Remove highlight*","push","find","get","model","FORMAT_HIGHLIGHT","registerDescriptionCallback","commandName","formatInline","title","HighlightEditing","selection","config","enableCommand","format","item","highlight","TrackChangesEditing","change","markInlineFormat","commandParams","plugins","editor","getAttribute","getLastMatchingPosition","locale","isCollapsed","value","createRange"];var wr,Or;wr=Mr,Or=328,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0x11")];if(!t[Fr("0x10")][Fr("0x18")](Fr("0x5")))return;const e=t.plugins[Fr("0x1e")](Fr("0xc"));e[Fr("0x8")](Fr("0xb"),((n,o={})=>{const s=t[Fr("0x1f")].document[Fr("0x6")],r=s[Fr("0x12")](Fr("0xb"));let i=o[Fr("0x16")],x=[];if(s[Fr("0x15")]){const e=s.getFirstPosition();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0xa")][Fr("0x12")](Fr("0xb"))===r,o=e[Fr("0x13")](n,{direction:"backward"}),s=e[Fr("0x13")](n);x=[t[Fr("0x1f")][Fr("0x17")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0x1c")](...fs("highlight",e,t[Fr("0x1f")]));t[Fr("0x1f")][Fr("0xd")]((()=>{for(const t of x)e[Fr("0xe")](t,{commandName:Fr("0xb"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x14")];e._descriptionFactory[Fr("0x1")]((e=>{const{type:o,data:s}=e;if(Fr("0x3")==o&&s&&Fr("0xb")==s[Fr("0x2")]){const e=n.t,o=s[Fr("0xf")][0][Fr("0x16")];if(o){const s=t[Fr("0x7")][Fr("0x1e")]("highlight.options")[Fr("0x1d")]((t=>t.model==o)),r=e(s[Fr("0x4")])[Fr("0x1a")]();return{type:"format",content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0x19")],title:s.title}}}return{type:Fr("0x9"),content:Yo(n,Fr("0x1b"),Yo(n,Fr("0x0")))}}}))}}const Dr=["HorizontalLineEditing","horizontalLine","TrackChangesEditing","createEmptyElement","elementToStructure","afterInit","high","createContainerElement","_descriptionFactory","enableCommand","conversion","showSuggestionHighlights","dataDowncast","createPositionAt","locale","ELEMENT_HORIZONTAL_LINE","plugins","has","get"];var Br,jr;Br=Dr,jr=156,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1")](){const t=this.editor;if(!t.plugins[Ur("0xd")](Ur("0xf")))return;t[Ur("0xc")].get(Ur("0x11"))[Ur("0x5")]("horizontalLine");const e=t[Ur("0xc")][Ur("0xe")](Ur("0x11")),n=t[Ur("0xa")];e[Ur("0x4")].registerElementLabel(Ur("0x10"),(t=>Yo(n,Ur("0xb"),t))),t[Ur("0x6")].for(Ur("0x8"))[Ur("0x0")]({model:Ur("0x10"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x7")])return null;const o=e[Ur("0x3")]("div"),s=e[Ur("0x12")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e[Ur("0x9")](o,0),s),o},converterPriority:Ur("0x2")})}}const Hr=["format","HtmlEmbed","markBlockFormat","model","change","htmlEmbed","getCustomProperty","registerDescriptionCallback","registerElementLabel","plugins","locale","selection","getAttribute","ELEMENT_HTML_EMBED","cancel","document","getSelectedElement","get","_descriptionFactory","element","commandName","view","afterInit","*Change %0 content*","has","TrackChangesEditing","rawHtml"];var Wr,zr;Wr=Hr,zr=171,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xd")](){const t=this.editor;if(!t[Vr("0x0")][Vr("0xf")](Vr("0x13")))return;const e=t[Vr("0x0")].get(Vr("0x10")),n=t[Vr("0x1")],o=t.editing[Vr("0xc")].document[Vr("0x2")];e[Vr("0x9")][Vr("0x1a")]("rawHtml",(t=>Yo(n,Vr("0x4"),t))),t[Vr("0x0")][Vr("0x8")](Vr("0x10")).enableCommand(Vr("0x17"),((n,s)=>{const r=t[Vr("0x15")],i=r[Vr("0x6")].selection;r[Vr("0x16")]((()=>{const t=function(t){const e=t[Vr("0x7")]();return e&&e.is(Vr("0xa"),Vr("0x11"))?t[Vr("0x7")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x3")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x14")](t,{commandName:Vr("0x17"),commandParams:[s]}),o.getSelectedElement()[Vr("0x18")]("rawHtmlApi")[Vr("0x5")]())}))})),e[Vr("0x9")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&Vr("0x17")==e[Vr("0xb")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x12"),content:Yo(n,Vr("0xe"),t)}}}))}}const Xr=["imageTextAlternative","imageStylePostApply","selection","discardSuggestion","getContainedElement","ImageEditing","imageCaption","Block image to inline image","plugins","resizeImage","markDeletion","createRangeOn","getSuggestionCallback","Users","findIndex","accept","imageTypeInline","deletion","isBlockImage","ELEMENT_CAPTION","ELEMENT_IMAGE","from","toPrevious","*Set image text alternative:* %0","side","formatBlock","ImageResize","commandName","convertBlockImageToInline","getCaptionFromImageModelElement","markBlockFormat","forward","isCollapsed","type","createRange","end","differ","width","subType","getSuggestion","get","TrackChangesEditing","alt","ELEMENT_INLINE_IMAGE","_suggestionFactory","commandParams","enableCommand","model","refresh","toggleImageCaption","isIntersecting","schema","*Format:* %0","ImageBlockEditing","discard","format","filter","removeObject","ImageUtils","find","document","*Remove image text alternative*","newValue","imageBlock","isInContent","value","join","next","markInlineFormat","has","ImageUploadEditing","change","start","ImageStyleEditing","formatInline","chain","getNearestSelectionRange","insertion","commands","length","title","registerDescriptionCallback","isEqual","*Reset image width*","suggestion","imageStyle","newRange","getSuggestions","imageTypeBlock","convertInlineImageToBlock","isBefore","markInsertion","getClosestSelectedImageElement","_splitMarkerName","ImageCaptionUtils","isInlineImage","registerPostFixer","uploadImage","_descriptionFactory","registerElementLabel","locale","element","caption","getFirstRange","registerCustomCallback","isOwn","detach","fromPosition","_findSuggestions","imageStylePreApply","nodeBefore","FORMAT_SIDE_IMAGE","toNext","forEach","nodeAfter"];var qr,$r;qr=Xr,$r=211,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jr("0x1b")].has(Jr("0x18")))return;const n=t.plugins[Jr("0x3b")](Jr("0x3c")),o=t[Jr("0x1b")][Jr("0x3b")](Jr("0x4d")),s={},r=t[Jr("0x4")];if(n[Jr("0x41")]("insertImage"),n[Jr("0x2")][Jr("0x3")](Jr("0x52"),(t=>Yo(r,Jr("0x27"),t))),n[Jr("0x2")][Jr("0x3")]("imageInline",(t=>Yo(r,Jr("0x3e"),t))),n._descriptionFactory[Jr("0x3")]("caption",(()=>Yo(r,Jr("0x26")))),t.plugins[Jr("0x58")](Jr("0x59"))&&n.enableCommand(Jr("0x1")),t[Jr("0x1b")][Jr("0x58")](Jr("0x48"))&&t.plugins.has("ImageInlineEditing")&&(n[Jr("0x41")](Jr("0x23"),((e,s)=>{const r=o[Jr("0x6f")](t[Jr("0x42")].document[Jr("0x15")]);t[Jr("0x42")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x23"),commandParams:[s]},[],Jr("0x2f"))}))})),n[Jr("0x41")]("imageTypeBlock",((e,s)=>{t.model[Jr("0x5a")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x42")].document.selection),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0xb")](a[Jr("0x5b")],Jr("0x29")),l=i.LivePosition[Jr("0xb")](a[Jr("0x36")],Jr("0x10"));n.forceDefaultExecution((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x42")][Jr("0x4f")][Jr("0x15")]),a=r.createRangeOn(x);const u=r[Jr("0x35")](c,l);c[Jr("0xa")](),l[Jr("0xa")](),n[Jr("0x31")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x6c")),u[Jr("0x5b")][Jr("0x6d")](a[Jr("0x5b")])&&n[Jr("0x6e")](r.createRange(u.start,a.start),Jr("0x6c")),a.end[Jr("0x6d")](u.end)&&n[Jr("0x6e")](r[Jr("0x35")](a[Jr("0x36")],u.end),Jr("0x6c"))}))})),n[Jr("0x3f")].registerCustomCallback("formatBlock",Jr("0x6c"),Jr("0x55"),(()=>!1)),n[Jr("0x3f")][Jr("0x8")](Jr("0x2c"),Jr("0x6c"),Jr("0x22"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x2c"),Jr("0x6c"),"discard",n[Jr("0x3f")][Jr("0x1f")]("formatBlock","","accept")),n[Jr("0x3f")][Jr("0x8")](Jr("0x60"),"convertInlineImageToBlock",Jr("0x55"),(()=>!1)),n[Jr("0x3f")][Jr("0x8")](Jr("0x60"),Jr("0x6c"),Jr("0x49"),(([e])=>{const o=n[Jr("0x3f")][Jr("0x1f")]("insertion","",Jr("0x49"));let s=e.start,r=e[Jr("0x36")];const i=t.model[Jr("0x46")][Jr("0x5f")](s,"backward"),x=t[Jr("0x42")][Jr("0x46")].getNearestSelectionRange(r,Jr("0x32"));i[Jr("0x33")]&&(s=i[Jr("0x5b")]),x[Jr("0x33")]&&(r=x[Jr("0x36")]),o([t.model[Jr("0x35")](s,r)])})),n[Jr("0x3f")][Jr("0x8")](Jr("0x2c"),Jr("0x6c"),"chain",c),n[Jr("0x3f")][Jr("0x8")](Jr("0x60"),Jr("0x6c"),"chain",c)),t[Jr("0x1b")][Jr("0x58")]("ImageCaptionEditing")&&(n[Jr("0x41")](Jr("0x44"),((e,s)=>{const r=t[Jr("0x1b")][Jr("0x3b")](Jr("0x71"));let i=o[Jr("0x6f")](t.model[Jr("0x4f")][Jr("0x15")]),x=r[Jr("0x30")](i);t[Jr("0x42")][Jr("0x5a")]((()=>{if(x)return void n[Jr("0x1d")](t.model[Jr("0x1e")](x));const a=o.isBlockImage(i);e(s),i=o[Jr("0x6f")](t[Jr("0x42")][Jr("0x4f")].selection),x=r[Jr("0x30")](i),n[Jr("0x6e")](t[Jr("0x42")][Jr("0x1e")](x),a?null:Jr("0x19"))}))})),n[Jr("0x3f")][Jr("0x8")](Jr("0x60"),Jr("0x19"),Jr("0x5e"),c)),t[Jr("0x1b")][Jr("0x58")]("ImageStyleEditing")){n[Jr("0x41")]("imageStyle",((s,r)=>{const i=t[Jr("0x1b")][Jr("0x3b")](Jr("0x20")).me,x=t[Jr("0x61")][Jr("0x3b")](Jr("0x68"));let a=o[Jr("0x6f")](t.model[Jr("0x4f")].selection),c=t[Jr("0x42")].createRangeOn(a),l=x[Jr("0x54")];if(l==r.value)return;const u={commandName:Jr("0x68"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x42")][Jr("0x5a")]((()=>{if(n[Jr("0x6a")]()[Jr("0x4b")]((t=>t[Jr("0x53")]&&i==t.author&&(Jr("0x2c")==t.type||Jr("0x5d")==t[Jr("0x34")])&&("imageStylePreApply"==t[Jr("0x39")]||"imageStylePostApply"==t.subType)&&t.getFirstRange()[Jr("0x65")](c)))[Jr("0x11")]((t=>n[Jr("0x16")](t.head))),a=o[Jr("0x6f")](t.model[Jr("0x4f")].selection),c=t.model[Jr("0x1e")](a),x[Jr("0x43")](),t[Jr("0x61")].get(Jr("0x23"))[Jr("0x43")](),t[Jr("0x61")].get(Jr("0x6b")).refresh(),l=x[Jr("0x54")],l!=r[Jr("0x54")])return o[Jr("0x72")](a)&&x.shouldConvertImageType(r[Jr("0x54")],a)?(s(r),a=o[Jr("0x6f")](t.model[Jr("0x4f")][Jr("0x15")]),void n[Jr("0x31")](a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x25")](a)?n[Jr("0x31")](a,u,[],Jr("0x14")):n[Jr("0x57")](c,u,Jr("0x14")))}))}));for(const e of t.plugins[Jr("0x3b")](Jr("0x5c")).normalizedStyles)s[e.name]=e[Jr("0x63")].toLowerCase();n[Jr("0x3f")].registerCustomCallback(Jr("0x2c"),Jr("0xd"),Jr("0x55"),(()=>!1)),n[Jr("0x3f")][Jr("0x8")](Jr("0x2c"),Jr("0x14"),Jr("0x55"),(()=>!1)),n[Jr("0x3f")][Jr("0x8")]("formatInline",Jr("0x14"),Jr("0x55"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x2c"),Jr("0xd"),Jr("0x22"),(()=>!1)),n[Jr("0x3f")].registerCustomCallback(Jr("0x2c"),"imageStylePreApply",Jr("0x49"),((t,e)=>{n[Jr("0x3f")].getSuggestionCallback(Jr("0x2c"),"",Jr("0x22"))(t,{commandName:e[Jr("0x2e")],commandParams:e.commandReversedParams})})),n[Jr("0x3f")][Jr("0x8")](Jr("0x2c"),"imageStylePreApply",Jr("0x5e"),c)}const x=[{type:Jr("0x2c"),subType:"imageStylePreApply"},{type:Jr("0x60"),subType:Jr("0x19")},{type:Jr("0x2c"),subType:"convertInlineImageToBlock"},{type:Jr("0x60"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x21")]((({type:e,subType:n})=>t[Jr("0x34")]==e&&t.subType==n)),r=x[Jr("0x21")]((({type:t,subType:n})=>e[Jr("0x34")]==t&&e[Jr("0x39")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x7")](),a=e[Jr("0x7")]();if((0==s||1==s)&&2==r&&i[Jr("0x45")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xc")](i,Jr("0x60"))[Jr("0x4b")]((({suggestion:t,meta:e})=>e[Jr("0x9")]&&Jr("0x6c")==t[Jr("0x39")]));if(t[Jr("0x62")]>1&&a.end[Jr("0x65")](i.start))return!0;if(1==t[Jr("0x62")]&&(i[Jr("0x5b")][Jr("0x65")](a[Jr("0x36")])||i[Jr("0x36")][Jr("0x65")](a[Jr("0x5b")])))return!0}if(3==s&&3==r&&i[Jr("0x5b")][Jr("0x6d")](a[Jr("0x5b")])){const t=i[Jr("0x36")][Jr("0x12")],e=a[Jr("0x5b")][Jr("0xe")];return o[Jr("0x25")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x42")][Jr("0x4f")][Jr("0x0")]((()=>{let e=!1;const s=Array[Jr("0x28")](t[Jr("0x42")].document[Jr("0x37")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x70")](t);if(Jr("0x67")==s&&n.hasSuggestion(a)){if(Jr("0x2c")==i&&(Jr("0xd")==x||Jr("0x14")==x)){const t=n.getSuggestion(a);if(r[Jr("0x69")]){const s=t.getFirstRange()[Jr("0x17")]();if(o[Jr("0x25")](s))continue;n[Jr("0x16")](t),e=!0}}if(Jr("0x60")==i&&"imageCaption"==x&&!r[Jr("0x69")]){const t=n[Jr("0x3a")](a);t[Jr("0x56")]&&t[Jr("0x56")].isInContent&&(n[Jr("0x16")](t[Jr("0x56")]),e=!0)}}}return e})),t[Jr("0x1b")][Jr("0x58")](Jr("0x2d"))&&n.enableCommand(Jr("0x1c"),((e,s)=>{const r=o[Jr("0x6f")](t.model[Jr("0x4f")][Jr("0x15")]);r.getAttribute(Jr("0x38"))!=s[Jr("0x38")]&&t[Jr("0x42")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x1c"),commandParams:[s]})}))})),t[Jr("0x1b")][Jr("0x58")]("ImageTextAlternativeEditing")&&n.enableCommand("imageTextAlternative",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x42")][Jr("0x4f")].selection);(r.hasAttribute("alt")?r.getAttribute(Jr("0x3d")):"")!=s[Jr("0x51")]&&t.model[Jr("0x5a")]((()=>{n[Jr("0x31")](r,{commandName:Jr("0x13"),commandParams:[s]})}))})),n[Jr("0x2")][Jr("0x64")]((t=>{if(x[Jr("0x4e")]((({type:e,subType:n})=>t[Jr("0x34")]==e&&t[Jr("0x39")]==n)))return t.previous?{}:void 0})),n[Jr("0x2")][Jr("0x64")]((t=>{if(Jr("0x60")==t[Jr("0x34")]||Jr("0x24")==t[Jr("0x34")]){const e=t[Jr("0x17")]();if(e&&e.is(Jr("0x5"),Jr("0x6")))return{type:Jr("0x60")==t[Jr("0x34")]?"addObject":Jr("0x4c"),element:e,quantity:1}}})),n._descriptionFactory.registerDescriptionCallback((t=>Jr("0x2c")==t.type&&Jr("0x6c")==t[Jr("0x39")]?{type:Jr("0x4a"),content:"Inline image to block image"}:Jr("0x2c")==t.type&&"convertBlockImageToInline"==t.subType?{type:Jr("0x4a"),content:Jr("0x1a")}:void 0)),n[Jr("0x2")][Jr("0x64")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e.commandParams[0].value;return n=Jr("0x2b")===t?Yo(r,Jr("0xf")):s[t]||t,{type:Jr("0x4a"),content:Yo(r,Jr("0x47"),n)}}if(Jr("0x13")==e[Jr("0x2e")]){const t=e.commandParams[0][Jr("0x51")];return t?{type:Jr("0x4a"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0x4a"),content:Yo(r,Jr("0x50"))}}if("resizeImage"==e[Jr("0x2e")]){const t=e[Jr("0x40")][0][Jr("0x38")];return t?{type:Jr("0x4a"),content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x4a"),content:Yo(r,Jr("0x66"))}}}var n}))}}const Zr=["editor","markBlockFormat","get","formatBlock","has","plugins","getSuggestions","handleReplaceImageCommand","selection","registerCustomCallback","replaceImageSource","enableCommand","_suggestionFactory","format","src","author","accept","commandParams","discard","handleSuggestionDescription","subType","locale","Users","model","source","TrackChangesEditing","getContainedElement","_descriptionFactory","change","*Format:* replace image URL","registerDescriptionCallback"];var Yr,ti;Yr=Zr,ti=466,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1e")][ei("0x4")][ei("0x3")]("ImageEditing"))return;const t=this.editor[ei("0x4")][ei("0x1")](ei("0x18"));t[ei("0xa")](ei("0x9"),((t,e)=>this[ei("0x6")](t,e))),t[ei("0xb")][ei("0x8")]("formatBlock",ei("0x9"),ei("0xf"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,ei("0x11"))),t[ei("0xb")][ei("0x8")](ei("0x2"),ei("0x9"),ei("0x11"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,ei("0xf"))),t[ei("0x1a")][ei("0x1d")]((t=>this[ei("0x12")](t)))}[ei("0x6")](t,e){const n=this.editor.plugins[ei("0x1")](ei("0x18")),o=this[ei("0x1e")][ei("0x16")].document[ei("0x7")].getSelectedElement();this[ei("0x1e")][ei("0x16")][ei("0x1b")]((()=>{let s=o.getAttribute(ei("0xd"));const r=this.editor[ei("0x4")][ei("0x1")](ei("0x15")).me;for(const t of n[ei("0x5")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x9")===t[ei("0x13")]&&e===o){t[ei("0xe")]!==r&&t[ei("0x11")](),s=t.data[ei("0x10")][0][ei("0x17")];break}}t(e),n[ei("0x0")](o,{commandName:ei("0x9"),commandParams:[{source:s}]},[],ei("0x9"))}))}[ei("0x12")](t){const{data:e}=t;if(e&&"replaceImageSource"===e.commandName){const t=ei("0x1c");return{type:ei("0xc"),content:Yo(this.editor[ei("0x14")],t)}}}}const oi=["afterInit","_setSuggestionData","_trackChangesExecuted","TrackChangesEditing","get","editor","forEach","dataInsert","value","_handleImportedData","_trackChangesValueDuringImport","track_changes","commands","importWord","listenTo","enableCommand","Users","execute","trackChanges","high","plugins"];var si,ri;si=oi,ri=415,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("0xf")]=!1,this[ii("0x7")]=!1}[ii("0x5")](){const t=this.editor,e=t[ii("0x11")][ii("0x9")](ii("0x12")),n=t[ii("0x11")].get(ii("0x2"));e&&(e.on(ii("0x1"),((t,[,e])=>{this[ii("0xf")]=n.value,e.collaboration_features[ii("0x10")]=!this._trackChangesValueDuringImport}),{priority:ii("0x3")}),this[ii("0x13")](e,ii("0xc"),this[ii("0xe")].bind(this)),this[ii("0x13")](e,ii("0xc"),(()=>{this[ii("0x7")]&&(n[ii("0x1")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[ii("0x4")][ii("0x9")](ii("0x8"))[ii("0x14")](ii("0x12")))}[ii("0xe")](t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0x11")][ii("0x9")](ii("0x2")),s=o[ii("0xd")];this[ii("0xf")]!==s&&(o[ii("0x1")](),this[ii("0x7")]=!0),n&&n[ii("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")].plugins[ii("0x9")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x12")}}};this[ii("0xa")].plugins[ii("0x9")]("TrackChangesEditing")[ii("0x6")](s)}))}}const ai=["from","getItemLabel","outdentBlock","afterInit","_descriptionFactory","*Outdent:* %0","schema","change","commandName","filter","enableCommand","locale","blockIndent","indentBlock","*Indent:* %0","registerDescriptionCallback","editor","plugins","getItems","format","model","get","IndentBlock","has","selection","getSelectedBlocks"];var ci,li;ci=ai,li=266,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x17")](){const t=this[ui("0xa")],e=t.plugins[ui("0xf")]("TrackChangesEditing");t[ui("0xb")][ui("0x11")]("IndentEditing")&&(e[ui("0x4")]("indent"),e[ui("0x4")]("outdent"));const n=t[ui("0x5")];if(t[ui("0xb")][ui("0x11")](ui("0x10"))){for(const n of[ui("0x7"),ui("0x16")])e[ui("0x4")](n,(()=>{const o=Array[ui("0x14")](this[ui("0xa")][ui("0xe")].document[ui("0x12")][ui("0x13")]())[ui("0x3")]((t=>this[ui("0xa")][ui("0xe")][ui("0x0")].checkAttribute(t,ui("0x6"))));t[ui("0xe")][ui("0x1")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[ui("0x9")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x7")!=o.commandName&&"outdentBlock"!=o[ui("0x2")])return;const s=t[ui("0xc")]()[0],r=e[ui("0x18")][ui("0x15")](s);return"indentBlock"==o.commandName?{type:ui("0xd"),content:Yo(n,ui("0x8"),r)}:ui("0x16")==o[ui("0x2")]?{type:ui("0xd"),content:Yo(n,ui("0x19"),r)}:void 0}))}}}var gi,fi,mi=["plugins","enableCommand","get","editor","requires"];gi=mi,fi=387,function(t){for(;--t;)gi.push(gi.shift())}(++fi);var hi=function(t,e){return mi[t-=0]};class bi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}init(){this[hi("0x1")][hi("0x3")][hi("0x0")]("TrackChangesEditing")[hi("0x4")]("input")}}const pi=["get","*Set link:* %0","getFirstRange","getAttribute","getRanges","locale","isCollapsed","enableCommand","change","document","selection","linkHref","editor","from","format","registerDescriptionCallback","markInlineFormat","link","_descriptionFactory","*Remove link*","unlink","hasAttribute","plugins","LinkEditing","model","commandName"];var Ei,_i;Ei=pi,_i=234,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0xc")];if(!t[Ti("0x16")].has(Ti("0x17")))return;const e=t.plugins[Ti("0x0")]("TrackChangesEditing");e[Ti("0x7")]("link",((n,o)=>{const s=t[Ti("0x18")][Ti("0x9")].selection;let r=[];if(s[Ti("0x6")]){if(!s[Ti("0x15")](Ti("0xb")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),"linkHref",s.getAttribute(Ti("0xb")),t[Ti("0x18")]);r=[e]}}else r=Array[Ti("0xd")](s[Ti("0x4")]());t.model[Ti("0x8")]((()=>{for(const t of r)e[Ti("0x10")](t,{commandName:Ti("0x11"),commandParams:[o]})}))})),e[Ti("0x7")](Ti("0x14"),(()=>{const n=this[Ti("0xc")][Ti("0x18")],o=n[Ti("0x9")][Ti("0xa")];n[Ti("0x8")]((()=>{let n=[];n=o[Ti("0x6")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0xb"),o[Ti("0x3")]("linkHref"),t[Ti("0x18")])]:fs(Ti("0xb"),o[Ti("0x2")](),t[Ti("0x18")]);for(const t of n)e[Ti("0x10")](t,{commandName:Ti("0x14"),commandParams:[]})}))})),e[Ti("0x12")][Ti("0xf")]((e=>{const{data:n}=e,o=t[Ti("0x5")];if(n){if(Ti("0x11")==n[Ti("0x19")]){const t=n.commandParams[0];return{type:Ti("0xe"),content:Yo(o,Ti("0x1"),'"'+t+'"')}}return Ti("0x14")==n.commandName?{type:"format",content:Yo(o,Ti("0x13"))}:void 0}}))}}const yi=["afterInit","selection","before","getAttribute","todoListChecked","name","from","commands","_descriptionFactory","markBlockFormat","numberedList","todoList","filter","*Change to:* %0","createPositionAt","blockName","value","commandParams","ELEMENT_LIST_ITEM","todo","*Outdent:* %0","add","slice","bulleted","checkTodoList","document","bulletedList","isObject","createRange","plugins","outdentList","paragraph","schema","registerElementLabel","commandName","*Uncheck item*","parent","end","ELEMENT_BULLETED_LIST","indentList","listItem","previousSibling","enableCommand","getSelectedBlocks","findIndex","model","length","List","*Indent:* %0","has","listIndent","numbered","registerDescriptionCallback","element","editor","ListEditing","nextSibling","push","*Check item*","execute","TrackChangesEditing","listType","ELEMENT_TODO_LIST","change","get","format"];var ki,Ai;ki=yi,Ai=215,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("0x25")],e=t.locale;if(!t[vi("0xc")].has(vi("0x26")))return;const n=t[vi("0xc")][vi("0x2f")](vi("0x2b")),o=t[vi("0xc")][vi("0x20")]("TodoListEditing");function s(e){return()=>{const o=t[vi("0x1c")][vi("0x8")][vi("0x32")],s=t.commands[vi("0x2f")](e);if(s[vi("0x41")])return void t[vi("0x2a")](vi("0xe"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x37")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x13")],vi("0x17"))&&!o[vi("0xa")](e);var e,o}));o=o[vi("0x3d")]((t=>!t.is(vi("0x24"),"listItem")||t[vi("0x34")](vi("0x2c"))!=e));const s=new Set;for(const t of o)t.is(vi("0x24"),vi("0x17"))?s[vi("0x4")](Si(t)):s[vi("0x4")](t);return Array.from(s)}(o[vi("0x1a")](),r,t.model[vi("0xf")]);t.model.change((()=>{for(const t of i)n[vi("0x3a")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x40")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x37")](t);const n=e[vi("0x1b")]((t=>vi("0x17")!=t[vi("0x36")]));return n>-1&&(e=e[vi("0x5")](0,n)),e}(t[vi("0x1c")][vi("0x8")][vi("0x32")][vi("0x1a")]()),s=t.model[vi("0xb")](t[vi("0x1c")][vi("0x3f")](o[0],vi("0x33")),t.model[vi("0x3f")](o[o[vi("0x1d")]-1],vi("0x14")));t.model[vi("0x2e")]((()=>{n[vi("0x3a")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x21")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x27")];for(;t&&t[vi("0x34")]("listIndent")>n[vi("0x34")](vi("0x21"));)e[vi("0x4")](t),t=t[vi("0x27")]}return Array[vi("0x37")](e)}(o))}))}}n[vi("0x19")](vi("0x3b"),s(vi("0x3b"))),n[vi("0x19")]("bulletedList",s(vi("0x9"))),o&&n.enableCommand(vi("0x3c"),s(vi("0x3c"))),n[vi("0x19")](vi("0x16"),r(vi("0x16"))),n[vi("0x19")](vi("0xd"),r(vi("0xd"))),o&&n[vi("0x19")](vi("0x7"),(()=>{const e=t[vi("0x38")][vi("0x2f")]("checkTodoList"),o=Array[vi("0x37")](e._selectedElements);o[vi("0x3d")]((t=>t[vi("0x34")](vi("0x35"))!=e[vi("0x41")])),t.model.change((()=>{for(const t of o)n[vi("0x3a")](t,{commandName:vi("0x7"),commandParams:[{forceValue:!e[vi("0x41")]}]})}))})),n._descriptionFactory[vi("0x10")](vi("0x17"),(t=>Yo(e,vi("0x1"),t))),n[vi("0x39")][vi("0x23")]((t=>{const{data:n}=t;if(n){if(vi("0x3b")==n[vi("0x11")]||"bulletedList"==n[vi("0x11")]||vi("0x3c")==n[vi("0x11")])switch(n[vi("0x11")].replace(vi("0x1e"),"")){case vi("0x6"):return o(Yo(e,vi("0x15")));case vi("0x22"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x2"):return o(Yo(e,vi("0x2d")))}if("indentList"==n[vi("0x11")])return{type:vi("0x30"),content:Yo(e,vi("0x1f"),Yo(e,vi("0x1")))};if("outdentList"==n[vi("0x11")])return{type:vi("0x30"),content:Yo(e,vi("0x3"),Yo(e,vi("0x1")))};if("checkTodoList"==n[vi("0x11")])return n[vi("0x0")][0].forceValue?{type:vi("0x30"),content:Yo(e,vi("0x29"))}:{type:vi("0x30"),content:Yo(e,vi("0x12"))}}function o(t){return{type:vi("0x30"),content:Yo(e,vi("0x3e"),t)}}}))}}function Si(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x18")]&&t[vi("0x18")].is("element","listItem");){const o=t[vi("0x18")][vi("0x34")](vi("0x21"));if(o==e)n=t[vi("0x18")];else if(o<e)break;t=t[vi("0x18")]}return n}function Ii(t){const e=[];if(t.is(vi("0x24"),"listItem")&&t[vi("0x34")](vi("0x21"))>0){let n=t[vi("0x27")];for(;n&&vi("0x17")==n[vi("0x36")]&&n[vi("0x34")]("listIndent")==t[vi("0x34")](vi("0x21"));)e[vi("0x28")](n),n=n[vi("0x27")]}return e}const Li=["handleListReversedCommand","toUpperCase","listItem","ListPropertiesEditing","createRange","_LIST_","replace","length","enableCommand","_descriptionFactory","forward","before","element","model","handleListStyleCommand","bind","startIndex","has","editor","_getTranslationKeyForListStyle","get","styles","_getSuggestionBlocksForListStyle","locale","unshift","type","map","handleListStartCommand","listType","_getSuggestionBlocks","listReversed","getListTypeFromListStyleType","filter","reversed","registerDescriptionCallback","change","from","push","listStart","getSiblingNodes","createPositionAt","plugins","selection","*Format:* set order to regular","*Change to:* %0","parent","ListUtils","getSelectedBlocks","*Format:* set start index to %0","document","ELEMENT_","format","commandName","backward","markMultiRangeBlockFormat","TrackChangesEditing","commandParams","getFirstPosition","numbered","config","*Format:* set order to reversed","listStyle"];var Ni,Mi;Ni=Li,Mi=433,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x13")].plugins[wi("0x12")](wi("0x4")))return;const t=this[wi("0x13")][wi("0x3c")][wi("0x15")]("list.properties"),e=this[wi("0x13")][wi("0x2a")].get(wi("0x38"));t[wi("0x16")]&&e[wi("0x9")](wi("0x0"),this.handleListStyleCommand[wi("0x10")](this)),t[wi("0x22")]&&e[wi("0x9")](wi("0x1f"),this[wi("0x1")].bind(this)),t.startIndex&&e[wi("0x9")](wi("0x27"),this.handleListStartCommand[wi("0x10")](this)),e[wi("0xa")][wi("0x23")](this.handleDescriptions[wi("0x10")](this))}[wi("0xf")](t,e={}){const n=this[wi("0x13")][wi("0x2a")][wi("0x15")](wi("0x38")),o=this[wi("0x17")]();this[wi("0x13")][wi("0xe")][wi("0x24")]((()=>{n[wi("0x37")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x1a")]}],formatGroupId:wi("0x0")})}))}[wi("0x1")](t,e={}){const n=this[wi("0x13")][wi("0x2a")][wi("0x15")](wi("0x38")),o=this[wi("0x1e")]((t=>t.is(wi("0xd"),wi("0x3"))&&wi("0x3b")===t.getAttribute(wi("0x1d"))));if(o[wi("0x8")]<1)return;const s=o[wi("0x1b")]((t=>this[wi("0x13")].model[wi("0x5")](this[wi("0x13")][wi("0xe")].createPositionAt(t,wi("0xc")),this[wi("0x13")].model[wi("0x29")](t,0))));this[wi("0x13")][wi("0xe")][wi("0x24")]((()=>{n[wi("0x37")](s,{commandName:wi("0x1f"),commandParams:[{reversed:e[wi("0x22")]}],formatGroupId:wi("0x1f")})}))}[wi("0x1c")](t,e={}){const n=this[wi("0x13")].plugins[wi("0x15")](wi("0x38")),o=this._getSuggestionBlocks((t=>t.is(wi("0xd"),wi("0x3"))&&wi("0x3b")===t.getAttribute("listType")));if(o[wi("0x8")]<1)return;const s=o.map((t=>this[wi("0x13")][wi("0xe")][wi("0x5")](this[wi("0x13")].model[wi("0x29")](t,wi("0xc")),this[wi("0x13")][wi("0xe")][wi("0x29")](t,0))));this[wi("0x13")][wi("0xe")][wi("0x24")]((()=>{n[wi("0x37")](s,{commandName:"listStart",commandParams:[{startIndex:e[wi("0x11")]}],formatGroupId:wi("0x27")})}))}handleDescriptions(t){const e=this[wi("0x13")][wi("0x18")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x35")]){case wi("0x0"):o=wi("0x2d"),s={type:wi("0x34"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wi("0x1a")])))};break;case"listReversed":o=n[wi("0x39")][0].reversed?wi("0x3d"):wi("0x2c"),s={type:wi("0x34"),content:Yo(e,o)};break;case wi("0x27"):o=wi("0x31"),s={type:wi("0x34"),content:Yo(e,o,n[wi("0x39")][0][wi("0x11")])}}return s}[wi("0x17")](){var t,e,n,o;const s=this.editor.plugins[wi("0x15")](wi("0x2f"));let r=Array[wi("0x25")](this[wi("0x13")][wi("0xe")][wi("0x32")][wi("0x2b")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xd"),wi("0x3")))&&r[wi("0x19")](...s[wi("0x28")](this.editor[wi("0xe")][wi("0x32")][wi("0x2b")][wi("0x3a")](),wi("0x36"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0xd"),"listItem"))&&r[wi("0x26")](...s[wi("0x28")](this[wi("0x13")][wi("0xe")].document[wi("0x2b")].getLastPosition(),wi("0xb"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[wi("0xe")][wi("0x32")][wi("0x2b")][wi("0x3a")]())||void 0===n?void 0:n[wi("0x2e")])||void 0===o?void 0:o.is("element",wi("0x3")))&&(r=r.filter((t=>t.is(wi("0xd"),wi("0x3"))))),r}[wi("0x1e")](t){const e=this[wi("0x13")].plugins[wi("0x15")](wi("0x2f"));let n=Array.from(this.editor.model[wi("0x32")][wi("0x2b")][wi("0x30")]())[wi("0x21")](t)[wi("0x1b")]((t=>{const n=this[wi("0x13")][wi("0xe")][wi("0x29")](t,0);return[...e[wi("0x28")](n,"backward"),...e.getSiblingNodes(n,wi("0xb"))]})).flat();return n=[...new Set(n)],n}[wi("0x14")](t){return wi("0x33")+this[wi("0x13")].plugins[wi("0x15")](wi("0x2f"))[wi("0x20")](t)[wi("0x2")]()+wi("0x6")+t[wi("0x2")]()[wi("0x7")](/-/g,"_")}}const Fi=["for","_descriptionFactory","showSuggestionHighlights","options","dataDowncast","attribute:url:media","createEmptyElement","data","elementToElement","TrackChangesEditing","ELEMENT_MEDIA","MediaEmbedEditing","plugins","downcastDispatcher","enableCommand","has","registerElementLabel","conversion","media","stop","afterInit","mediaEmbed","high","editor"];var Pi,Di;Pi=Fi,Di=226,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0xd")];if(!t.plugins[Bi("0x5")](Bi("0x1")))return;const e=t[Bi("0x2")].get(Bi("0x17")),n=t.locale;e[Bi("0x4")](Bi("0xb")),e[Bi("0xf")][Bi("0x6")](Bi("0x8"),(t=>Yo(n,Bi("0x0"),t))),t[Bi("0x7")][Bi("0xe")](Bi("0x12"))[Bi("0x16")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x10")])return e[Bi("0x14")]("div")},converterPriority:Bi("0xc")}),t[Bi("0x15")][Bi("0x3")].on(Bi("0x13"),((t,e,n)=>{n[Bi("0x11")].showSuggestionHighlights&&t[Bi("0x9")]()}),{priority:Bi("0xc")})}}const Ui=["TrackChangesEditing","has","enableCommand","get","mention","plugins","editor"];var Gi,Hi;Gi=Ui,Hi=317,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{afterInit(){const t=this[Wi("0x4")];t[Wi("0x3")][Wi("0x6")]("MentionEditing")&&t[Wi("0x3")][Wi("0x1")](Wi("0x5"))[Wi("0x0")](Wi("0x2"))}}const Vi=["ELEMENT_PAGE_BREAK","plugins","PageBreakEditing","pageBreak","_descriptionFactory","TrackChangesEditing","locale","afterInit","enableCommand","get"];var Ki,Xi;Ki=Vi,Xi=393,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[qi("0x4")](){const t=this.editor;if(!t[qi("0x8")].has(qi("0x9")))return;t[qi("0x8")][qi("0x6")](qi("0x2"))[qi("0x5")]("pageBreak");const e=t[qi("0x8")].get(qi("0x2")),n=t[qi("0x3")];e[qi("0x1")].registerElementLabel(qi("0x0"),(t=>Yo(n,qi("0x7"),t)))}}const Ji=["nodeAfter","includes","isBlock","data","toViewPosition","writer","isTouching","options","get","showSuggestionHighlights","addClass","isLimit","getSelectedBlocks","start","schema","downcastDispatcher","parent","end","format","ELEMENT_PARAGRAPH","isObject","_descriptionFactory","addMarker:suggestion:insertion","insertParagraph","paragraph","name","selection","$text","markerName","createUIElement","filter","change","checkChild","insert","span","locale","Paragraph","editor","highest","getFirstRange","from","document","markBlockFormat","insertion","TrackChangesEditing","enableCommand","mapper","registerDescriptionCallback","ck-suggestion-marker--active","consume","has","plugins","registerElementLabel","editing","markerRange","model","type"];var Qi,Zi;Qi=Ji,Zi=264,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x1")];if(!t[Yi("0xf")][Yi("0xe")](Yi("0x0")))return;const e=t[Yi("0x38")],n=t.plugins.get(Yi("0x8"));n[Yi("0x2a")][Yi("0x10")]("paragraph",(t=>Yo(e,Yi("0x28"),t))),n[Yi("0x9")]("paragraph",((e,o={})=>{const s=t.model[Yi("0x5")],r=o[Yi("0x2f")]||s[Yi("0x2f")],i=Array[Yi("0x4")](r[Yi("0x21")]())[Yi("0x33")]((t=>{return e=t,(n=this.editor[Yi("0x13")][Yi("0x23")]).checkChild(e[Yi("0x25")],Yi("0x2d"))&&!n[Yi("0x29")](e)&&Yi("0x2d")!=e[Yi("0x2e")];var e,n}));t.model[Yi("0x34")]((()=>{for(const t of i)n[Yi("0x6")](t,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},ms(t))}))})),n._descriptionFactory[Yi("0xb")]((t=>{const{data:n}=t;if(n&&Yi("0x2d")==n.commandName)return{type:Yi("0x27"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x28")))}})),n[Yi("0x9")](Yi("0x2c")),t[Yi("0x11")][Yi("0x24")].on(Yi("0x2b"),ex(t),{priority:Yi("0x2")}),t[Yi("0x18")][Yi("0x24")].on(Yi("0x2b"),((e,n,o)=>{o[Yi("0x1c")][Yi("0x1e")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x2")});const o=n[Yi("0x2a")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x14")])return;const{start:s,end:r}=n[Yi("0x3")]();if(!s[Yi("0x1b")](r)||!s[Yi("0x15")])return;const i=t[Yi("0x13")][Yi("0x23")],x=s.nodeAfter;return i[Yi("0x17")](x)&&!i[Yi("0x20")](x)&&i[Yi("0x35")](x,Yi("0x30"))?{type:Yi("0x7"),content:Yo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0x1d")]("TrackChangesEditing"),i=o[Yi("0x12")][Yi("0x22")],x=o[Yi("0x12")][Yi("0x26")],a=t[Yi("0x13")][Yi("0x23")];if(!i[Yi("0x1b")](x)||!i[Yi("0x15")])return;const c=i[Yi("0x15")];if(a.isBlock(c)&&!a[Yi("0x20")](c)&&a[Yi("0x35")](c,Yi("0x30"))){if(!s.consumable[Yi("0xd")](o[Yi("0x12")],n[Yi("0x2e")]))return;const t=s[Yi("0x1a")][Yi("0x32")](Yi("0x37"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0xa")][Yi("0x19")](x);e&&r.activeMarkers[Yi("0x16")](o.markerName)&&s[Yi("0x1a")][Yi("0x1f")](Yi("0xc"),t),s.writer[Yi("0x36")](i,t),s.mapper.bindElementToMarker(t,o[Yi("0x31")])}}}const nx=["removeFormat","format","_descriptionFactory","getAttributes","from","model","isFormatting","TrackChangesEditing","selection","get","editor","getItems","plugins","document","*Remove all formatting*","isCollapsed","schema","markInlineFormat","afterInit","has","createRangeOn","commandName","getAttributeProperties"];var ox,sx;ox=nx,sx=409,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x0")](){const t=this[rx("0xf")];if(!t.plugins[rx("0x1")]("RemoveFormatEditing"))return;const e=t[rx("0x11")][rx("0xe")](rx("0xc"));e.enableCommand("removeFormat",(n=>{const o=t[rx("0xa")][rx("0x12")][rx("0xd")];o[rx("0x14")]?n():t[rx("0xa")].change((()=>{const n=Array[rx("0x9")](o.getRanges());for(const o of n)for(const n of o[rx("0x10")]())xx(n,t[rx("0xa")][rx("0x15")])&&e[rx("0x16")](t[rx("0xa")][rx("0x2")](n),{commandName:rx("0x5"),commandParams:[]})}))})),e[rx("0x7")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x5")==n[rx("0x3")])return{type:rx("0x6"),content:Yo(t.locale,rx("0x13"))}}))}}function xx(t,e){for(const[n]of t[rx("0x8")]()){const t=e[rx("0x4")](n);if(t&&t[rx("0xb")])return!0}return!1}const ax=["discardSuggestion","has","acceptSuggestion","discardAllSuggestions","RestrictedEditingModeEditing","trackChanges","editor","goToPreviousRestrictedEditingException","goToNextRestrictedEditingException","acceptSelectedSuggestions","discardSelectedSuggestions","enableCommand","get","plugins"];var cx,lx;cx=ax,lx=119,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0xd")];if(!t[ux("0x6")][ux("0x8")](ux("0xb")))return;const e=t[ux("0x6")][ux("0x5")]("TrackChangesEditing");e[ux("0x4")](ux("0x0")),e[ux("0x4")](ux("0x1"));const n=t[ux("0x6")][ux("0x5")](ux("0xb"));n.enableCommand(ux("0xc")),n[ux("0x4")](ux("0x9")),n[ux("0x4")](ux("0x7")),n.enableCommand("acceptAllSuggestions"),n[ux("0x4")](ux("0xa")),n[ux("0x4")](ux("0x2")),n[ux("0x4")](ux("0x3"))}}const gx=["enableCommand","markerRange","insert","showSuggestionHighlights","init","model","span","bindElementToMarker","addClass","locale","TrackChangesEditing","options","registerElementLabel","softBreak","getItems","shiftEnter","element","addMarker:suggestion","toViewPosition","activeMarkers","_descriptionFactory","plugins","ck-suggestion-marker-","split","writer","high","data","markerName","consumable","mapper","test","deletion","downcastDispatcher","editing","includes"];var fx,mx;fx=gx,mx=255,function(t){for(;--t;)fx.push(fx.shift())}(++mx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get requires(){return[nr.ShiftEnter]}[hx("0x1d")](){const t=this.editor,e=t[hx("0xb")].get(hx("0x0"));e[hx("0x19")](hx("0x5")),t[hx("0x17")][hx("0x16")].on("addMarker:suggestion:insertion",px(t),{priority:hx("0xf")}),t[hx("0x17")][hx("0x16")].on("addMarker:suggestion:deletion",px(t),{priority:hx("0xf")}),t[hx("0x10")][hx("0x16")].on(hx("0x7"),((e,n,o)=>{o[hx("0x1")][hx("0x1c")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xa")][hx("0x2")]("softBreak",(e=>Yo(t[hx("0x22")],"ELEMENT_LINE_BREAK",e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xb")].get(hx("0x0"));if(!s[hx("0x12")][hx("0x14")](o[hx("0x1a")],n.name))return;const i=t[hx("0x1e")];for(const t of o[hx("0x1a")][hx("0x4")]()){if(!t.is(hx("0x6"),hx("0x3")))continue;const n=hx("0x15")==o.markerName[hx("0xd")](":")[1]?"merge":"split",x=s[hx("0xe")].createUIElement(hx("0x1f"),{class:hx("0xc")+n}),a=s.mapper[hx("0x8")](i.createPositionBefore(t));e&&r[hx("0x9")][hx("0x18")](o[hx("0x11")])&&s[hx("0xe")][hx("0x21")]("ck-suggestion-marker--active",x),s[hx("0xe")][hx("0x1b")](a,x),s[hx("0x13")][hx("0x20")](x,o.markerName)}}}const Ex=["editor","commandName","locale","has","get","plugins","restrictedEditingException","selection","markInlineFormat","commands","change","forceValue","isCollapsed","enableCommand","from","FORMAT_RESTRICTED_ENABLED","StandardEditingModeEditing","afterInit","value","commandParams"];var _x,Tx;_x=Ex,Tx=267,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xa")](){const t=this[Cx("0xd")],e=t.model,n=t[Cx("0xf")];if(!t[Cx("0x12")][Cx("0x10")](Cx("0x9")))return;const o=t[Cx("0x12")][Cx("0x11")]("TrackChangesEditing"),s=Cx("0x13"),r=t[Cx("0x2")].get(s);o[Cx("0x6")](s,((t,n={})=>{const i=e.document[Cx("0x0")];if(i[Cx("0x5")])return void t(n);const x=void 0!==n[Cx("0x4")]?n[Cx("0x4")]:!r[Cx("0xb")];e[Cx("0x3")]((()=>{const t=Array[Cx("0x7")](i.getRanges());for(const n of t){const t=x?[n]:fs(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e[Cx("0xe")]==s)return e[Cx("0xc")][0][Cx("0x4")]?{type:"format",content:Yo(n,Cx("0x8"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["style.definitions","style:","isCollapsed","change","normalizeConfig","locale","styleName","getDefinitionsForView","*Remove format:* %0","getAncestors","classes","getRanges","registerDescriptionCallback","commands","afterInit","from","_descriptionFactory","format","commandName","value","_getStyleDefinition","name","TrackChangesEditing","element","includes","config","block","find","modelElements","Style","get","style","DataSchema","*Format:* %0","commandParams","push","_getRangesWithClasses","has","every","getItems","inline","getAttribute","model","plugins","enabledStyles","markBlockFormat","add","isBlock"];var Ax,vx;Ax=kx,vx=447,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x2f")](){const t=this.editor;if(!t.plugins[Rx("0x16")](Rx("0xe")))return;const e=t[Rx("0x2e")][Rx("0xf")](Rx("0x10")),n=t.plugins.get(Rx("0x7")),o=t[Rx("0x26")],s=t[Rx("0x1c")].get(Rx("0x11")),r=t[Rx("0x1c")][Rx("0xf")]("StyleUtils")[Rx("0x25")](s,t[Rx("0xa")][Rx("0xf")](Rx("0x21")));n.enableCommand("style",((o,{styleName:i})=>{const x=t[Rx("0x1b")].document.selection,a=this[Rx("0x5")](i,r);if(!a)return;if(!e[Rx("0x1d")].includes(i))return;if(x[Rx("0x23")]&&!a[Rx("0x20")])return void o({styleName:i});const c=!e[Rx("0x4")][Rx("0x9")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x2a")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x9")](o[Rx("0x6")])){n[Rx("0x1f")](o);break}}return n}(x.getSelectedBlocks(),a[Rx("0xd")]);t[Rx("0x1b")][Rx("0x24")]((()=>{for(const t of e)n[Rx("0x1e")](t,{commandName:Rx("0x10"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x22")+i})}))}else{let e=Array[Rx("0x0")](x[Rx("0x2c")]());if(!c){const n=Array.from(s[Rx("0x28")](a[Rx("0x8")],!1))[0][Rx("0x1b")],o=[];for(const s of e){const e=this[Rx("0x15")](t[Rx("0x1b")],s,a.classes,n);o[Rx("0x14")](...e)}e=o}t[Rx("0x1b")][Rx("0x24")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x10"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x1")][Rx("0x2d")]((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x3")])return e[Rx("0x13")][0].forceValue?{type:Rx("0x2"),content:Yo(o,Rx("0x12"),e[Rx("0x13")][0][Rx("0x27")].toLowerCase())}:{type:Rx("0x2"),content:Yo(o,Rx("0x29"),e[Rx("0x13")][0].styleName.toLowerCase())}}))}[Rx("0x5")](t,e){let n=e[Rx("0xb")][Rx("0xc")]((e=>e.name===t));return n||(n=e[Rx("0x19")][Rx("0xc")]((e=>e[Rx("0x6")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x18")]()){const e=r[Rx("0x1a")](o);e&&n[Rx("0x17")]((t=>e[Rx("0x2b")].includes(t)))&&s[Rx("0x14")](t.createRangeOn(r))}return s}}const Ix=["deletion","_descriptionFactory","getColumnIndexes","position","document","rootName","*Remove:* %0","findAncestor","colspan","getFirstRange","forceValue","registerCustomCallback","maxColumn","minRow","editor","*Insert:* %0","createTableWalker","nodeBefore","get","filter","plugins","span","rowspan","addRange","differ","root","join","removeTableColumn","min","MAX_SAFE_INTEGER","addClass","getChanges","model","order","left","hasAttribute","push","_suggestionFactory","data","$textProxy","suggestion","_tablePostFixingSubtypes","name","selectTableColumn","selectTableRow","_getSuggestionCoords","tableCell","commands","enableCommand","TableEditing","subType","getChangedMarkers","$graveyard","_splitMarkerName","setSelection","getAttribute","start","getContainedElement","substr","registerDescriptionCallback","isInContent","end","selection","enqueueChange","cell","tableColumn","addMarker:suggestion","insert","getSuggestion","max","first","tableRow","_setupColumnsRowsFixing","isEqual","ELEMENT_TABLE_ROW_WITH_TEXT","getSelectionAffectedTableCells","toLowerCase","ELEMENT_TABLE_ROW","_tableSuggestions","markMultiRangeInsertion","createRangeOn","ELEMENT_TABLE_COLUMN_WITH_TEXT","insertTableColumnRight","TrackChangesEditing","maxRow","TableUtils","insertion","table","element","getItems","nodeAfter","createPositionAt","_getCoordsForCells","batch","ELEMENT_TABLE_WITH_TEXT","from","downcastDispatcher","change","includes","insertTableRowBelow","showSuggestionHighlights","registerPostFixer","above","ELEMENT_TABLE_COLUMN","map","removeTableRow","change:data","execute","type","removeClass","classes","detach","refresh","getCellLocation","getRanges","values","startsWith","length","isArray","locale","writer","some","fromRange","getRowIndexes","last"];var Lx,Nx;Lx=Ix,Nx=120,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Mx("0x4c"),"tableColumn"],this[Mx("0x53")]=new Set}afterInit(){const t=this[Mx("0x13")],e=t[Mx("0x25")].document[Mx("0x43")];if(!t[Mx("0x19")].has(Mx("0x36")))return;const n=t[Mx("0x7c")],o=t.plugins[Mx("0x17")](Mx("0x58")),s=t[Mx("0x19")][Mx("0x17")](Mx("0x5a"));o[Mx("0x6")].registerElementLabel("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x4d")](),o[Mx("0x35")]("insertTable"),o.enableCommand(Mx("0x31")),o[Mx("0x35")](Mx("0x30"));for(const n of["insertTableRowAbove",Mx("0x68")]){const r=t[Mx("0x34")][Mx("0x17")](n);o[Mx("0x35")](n,(n=>{t[Mx("0x25")][Mx("0x66")]((t=>{n();const i=Mx("0x6b")===r.order,x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x3")](x),c=i?a[Mx("0x4b")]-1:a[Mx("0x4")]+1,l=x[0][Mx("0xc")](Mx("0x5c")),u=s[Mx("0x15")](l,{startRow:c,endRow:c}),d=Array[Mx("0x64")](u)[Mx("0x6d")]((e=>t[Mx("0x55")](e[Mx("0x45")])));o[Mx("0x54")](d,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Mx("0x57")]){const r=t[Mx("0x34")][Mx("0x17")](n);o[Mx("0x35")](n,(n=>{t[Mx("0x25")][Mx("0x66")]((t=>{n();const i=Mx("0x27")===r[Mx("0x26")],x=s[Mx("0x50")](e),a=s[Mx("0x7")](x),c=i?a[Mx("0x4b")]-1:a.last+1,l=x[0].findAncestor(Mx("0x5c")),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x64")](u)[Mx("0x6d")]((e=>t[Mx("0x55")](e.cell)));o[Mx("0x54")](d,"tableColumn")}))}))}for(const n of[Mx("0x6e"),"removeTableColumn"]){const r=n.substr(11),i=r[Mx("0x51")](),x=i[Mx("0x3f")](0,3)+"span",a=Mx("0x5c")+r,c=Mx("0x21")+r,l=Mx("0x4a")+r;o[Mx("0x35")](n,(()=>{t[Mx("0x25")][Mx("0x66")]((t=>{const r=s[Mx("0x50")](e),u=r[0][Mx("0xc")](Mx("0x5c"));let d;if(Mx("0x6e")==n){const t=s.getRowIndexes(r);d={startRow:t.first,endRow:t[Mx("0x4")],includeAllSlots:!0}}else{const t=s[Mx("0x7")](r);d={startColumn:t[Mx("0x4b")],endColumn:t[Mx("0x4")],includeAllSlots:!0}}const g=s[Mx("0x15")](u,d),f=Array[Mx("0x64")](g)[Mx("0x6d")]((({cell:t})=>t)),m=Ox(f[Mx("0x18")]((t=>t[Mx("0x28")](x)))),h=Ox(f[Mx("0x18")]((t=>!t[Mx("0x28")](x))))[Mx("0x6d")]((e=>t[Mx("0x55")](e))),b=o.markMultiRangeDeletion(h,a);if(b&&("tableRow"==b.subType||Mx("0x46")==b[Mx("0x37")])){const e=this[Mx("0x32")](b);for(const n of m){const o=t[Mx("0x55")](n),r=s[Mx("0x76")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&b.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x64")](e[Mx("0x77")]())[Mx("0x6d")]((t=>i.LiveRange[Mx("0x2")](t)));t[Mx("0x25")].change((e=>{const s=e[Mx("0x62")];n=n[Mx("0x18")]((t=>Mx("0x39")!=t.root[Mx("0xa")])),e[Mx("0x3b")](n),t[Mx("0x34")][Mx("0x17")](Mx("0x6e"))[Mx("0x75")](),t[Mx("0x70")](Mx("0x6e"),{forceDefaultExecution:!0}),t[Mx("0x25")][Mx("0x44")]((()=>{t.model.enqueueChange(s,(t=>{const e=o[Mx("0x18")]((t=>Mx("0x39")!=t.root.rootName));e[Mx("0x7a")]>0&&t[Mx("0x3b")](e);for(const t of o)t[Mx("0x74")]()}))}))}))}function a(n){t[Mx("0x25")][Mx("0x66")]((o=>{const s=Array[Mx("0x64")](e[Mx("0x77")]())[Mx("0x6d")]((t=>i.LiveRange[Mx("0x2")](t))),r=[];for(const t of n)for(const e of t[Mx("0x5e")]({shallow:!0}))r[Mx("0x29")](e);for(const e of r)Mx("0x39")!=e[Mx("0x1e")].rootName&&(o[Mx("0x3b")](o[Mx("0x60")](e,0)),t[Mx("0x34")][Mx("0x17")](Mx("0x20"))[Mx("0x75")](),t.execute(Mx("0x20"),{forceDefaultExecution:!0}));const x=s[Mx("0x18")]((t=>Mx("0x39")!=t[Mx("0x1e")][Mx("0xa")]));x[Mx("0x7a")]>0&&o[Mx("0x3b")](x);for(const t of s)t[Mx("0x74")]()}))}function c(t,e){return e.every((e=>t[Mx("0x1")]((t=>t[Mx("0x42")][Mx("0x4e")](e[Mx("0x3d")])||e[Mx("0x42")].isEqual(t[Mx("0x3d")])))))}function l(t,e){return t[Mx("0x1")]((t=>e[Mx("0x1")]((e=>t[Mx("0x42")].isTouching(e[Mx("0x3d")])))))}t[Mx("0x2b")][Mx("0x65")].on(Mx("0x47"),((t,e,n)=>{if(!n.options[Mx("0x69")])return;const o=e.item;if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Mx("0x7b")](t)?t:[t]}s&&Mx("0x33")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x0")],((t,e,n)=>n[Mx("0x23")](r(e[Mx("0x73")]),t)),((t,e,n)=>n[Mx("0x72")](r(e[Mx("0x73")]),t)))}),{priority:"highest"}),o[Mx("0x6")][Mx("0x40")]((t=>{if("insertion"!=t.type&&Mx("0x5")!=t[Mx("0x71")])return;const e=t[Mx("0x3e")]();if(null!=e&&e.is(Mx("0x5d"),Mx("0x5c"))){if(Mx("0x5b")==t.type){const e=t[Mx("0x5e")]()[Mx("0x18")]((t=>t.is(Mx("0x2c"))))[Mx("0x6d")]((t=>t.data));if(e[Mx("0x7a")])return{type:"insertion",content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x1f")](" ")+'"'))}}if(Mx("0x5")==t[Mx("0x71")]){const e=t[Mx("0x5e")]()[Mx("0x18")]((t=>t.is(Mx("0x2c"))))[Mx("0x6d")]((t=>t[Mx("0x2b")]));if(e.length)return{type:Mx("0x5"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x63"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x6")][Mx("0x40")]((t=>{if(Mx("0x4c")==t[Mx("0x37")]){const e=t[Mx("0x5e")]()[Mx("0x18")]((t=>t.is(Mx("0x2c"))))[Mx("0x6d")]((t=>t[Mx("0x2b")])),o=this[Mx("0x32")](t),s=o[Mx("0x59")]-o[Mx("0x12")]+1;if(Mx("0x5b")==t[Mx("0x71")])return e[Mx("0x7a")]?{type:Mx("0x5b"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x4f"),[s,'"'+e[Mx("0x1f")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if("deletion"==t[Mx("0x71")])return e[Mx("0x7a")]?{type:Mx("0x5"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x4f"),[s,'"'+e[Mx("0x1f")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0xb"),Yo(n,Mx("0x52"),s))}}if(Mx("0x46")==t[Mx("0x37")]){const e=t[Mx("0x5e")]()[Mx("0x18")]((t=>t.is(Mx("0x2c")))).map((t=>t[Mx("0x2b")])),o=this[Mx("0x32")](t),s=o[Mx("0x11")]-o.minColumn+1;if(Mx("0x5b")==t[Mx("0x71")])return e[Mx("0x7a")]?{type:Mx("0x5b"),content:Yo(n,Mx("0x14"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5b"),content:Yo(n,Mx("0x14"),Yo(n,Mx("0x6c"),s))};if(Mx("0x5")==t[Mx("0x71")])return e[Mx("0x7a")]?{type:Mx("0x5"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x56"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x5"),content:Yo(n,Mx("0xb"),Yo(n,Mx("0x6c"),s))}}})),o[Mx("0x2a")][Mx("0x10")](Mx("0x5b"),Mx("0x4c"),"discard",r),o[Mx("0x2a")][Mx("0x10")](Mx("0x5"),Mx("0x4c"),"accept",r),o[Mx("0x2a")][Mx("0x10")](Mx("0x5b"),Mx("0x46"),"discard",a),o[Mx("0x2a")][Mx("0x10")]("deletion",Mx("0x46"),"accept",a),o._suggestionFactory.registerCustomCallback(Mx("0x5b"),Mx("0x46"),Mx("0x1f"),c),o._suggestionFactory[Mx("0x10")](Mx("0x5"),Mx("0x46"),Mx("0x1f"),c),o[Mx("0x2a")][Mx("0x10")](Mx("0x5b"),"tableRow",Mx("0x1f"),l),o[Mx("0x2a")][Mx("0x10")](Mx("0x5"),"tableRow",Mx("0x1f"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x13")],e=t[Mx("0x25")][Mx("0x9")].selection;return(n,o)=>{t[Mx("0x25")][Mx("0x66")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x16")];x&&x[0]&&!1===x[0][Mx("0xf")]&&(a=n[0][Mx("0x3d")][Mx("0x5f")]);const c=s.createRangeIn(a);if("$graveyard"==c[Mx("0x1e")][Mx("0xa")])return;const l=Array[Mx("0x64")](e[Mx("0x77")]())[Mx("0x6d")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x3b")](c),t[Mx("0x34")][Mx("0x17")](r)[Mx("0x75")](),x[Mx("0x29")]({forceDefaultExecution:!0}),t[Mx("0x70")](r,...x);const u=l.filter((t=>"$graveyard"!=t[Mx("0x1e")][Mx("0xa")]));u.length>0&&s[Mx("0x3b")](u);for(const t of l)t[Mx("0x74")]()}))}}[Mx("0x61")](t){const e=this.editor[Mx("0x19")][Mx("0x17")](Mx("0x5a"));let n=Number[Mx("0x22")],o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;for(const i of t){if(Mx("0x39")==i[Mx("0x1e")][Mx("0xa")])continue;const{row:t,column:x}=e[Mx("0x76")](i),a=i[Mx("0x28")](Mx("0x1b"))?i.getAttribute("rowspan")-1:0,c=i.hasAttribute(Mx("0xd"))?i.getAttribute(Mx("0xd"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x4d")](){const t=this[Mx("0x13")],e=t.plugins[Mx("0x17")](Mx("0x58")),n=t[Mx("0x19")][Mx("0x17")](Mx("0x5a"));t[Mx("0x25")][Mx("0x9")].on(Mx("0x6f"),(()=>{const n=Array.from(t[Mx("0x25")][Mx("0x9")][Mx("0x1d")][Mx("0x38")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x3a")](t);if(Mx("0x2d")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x49")](s);this[Mx("0x2e")][Mx("0x67")](r)&&this[Mx("0x53")].add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0xc")](Mx("0x5c")),i=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Mx("0x37")],x=n[Mx("0x79")]("tablePaste"),a=n[Mx("0x3f")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Mx("0x1a"),u=Mx("0x21")+a,d=Mx("0x4a")+a;if(!e[Mx("0x41")])continue;if(r!=e[Mx("0xe")]().start[Mx("0xc")]("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x28")](l)?t[Mx("0x3c")](l)-1:0,f=this[Mx("0x32")](e),m=f[u],h=f[d];m<=i[c]&&i[c]+g<=h&&(e[Mx("0x1c")](s),o=!0)}return o};t[Mx("0x25")][Mx("0x9")][Mx("0x6a")]((e=>{let n=!1;for(const s of t[Mx("0x25")][Mx("0x9")].differ[Mx("0x24")]())if(Mx("0x48")==s.type)if(Mx("0x4c")==s[Mx("0x2f")])for(const t of s[Mx("0x8")].nodeAfter.getChildren())n=n||o(t,e);else"tableCell"==s[Mx("0x2f")]&&(n=n||o(s[Mx("0x8")][Mx("0x5f")],e));return n}))}[Mx("0x32")](t){return this[Mx("0x61")](t[Mx("0x77")]()[Mx("0x6d")]((t=>t.start[Mx("0x5f")])))}}function Ox(t){return Array[Mx("0x64")](new Set(t)[Mx("0x78")]())}const Fx=["forceDefaultExecution","length","getFirstPosition","has","add","root","markBlockFormat","_isForcedDefaultExecutionBlock","insertion","return","plugins","requires","map","commands","filter","*Merge cells*","direction","splitTableCellVertically","table","$graveyard","createTableWalker","getSelectionAffectedTableCells","set:isEnabled","mergeTableCellLeft","formatBlock","getRanges","refresh","findAncestor","trackChanges","low","author","TableEditing","document","commandName","rootName","locale","TableUtils","detach","highest","registerCustomCallback","execute","stop","_areMergableCells","accept","element","value","_suggestionFactory","deletion","_tablePostFixingSubtypes","isInContent","enableCommand","splitTableCellHorizontally","type","cell","mergeTableCellRight","mergeTableCellUp","afterInit","isEnabled","get","model","containsRange","find","tableCell","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","getAncestors","from","change","selection","fromRange","mergeTableCellDown","*Split cell:* vertically","format","push","mergeTableCells","registerDescriptionCallback","createRangeOn","*Split cell:* horizontally","setSelection","editor","markMultiRangeBlockFormat","subType","size","TrackChangesEditing"];var Px,Dx;Px=Fx,Dx=386,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x2d")](){return[wx]}[Bx("0x6")](){const t=this[Bx("0x1d")],e=t.model[Bx("0x42")].selection,n=t[Bx("0x45")];if(!t[Bx("0x2c")][Bx("0x25")](Bx("0x41")))return;const o=t.plugins.get(Bx("0x21")),s=t[Bx("0x2c")][Bx("0x8")]("TableUtils"),r=t[Bx("0x2c")][Bx("0x8")](wx);r[Bx("0x52")][Bx("0x17")](Bx("0x18")),o[Bx("0x0")](Bx("0x18"),(()=>{const e=s[Bx("0x37")](t[Bx("0x9")].document[Bx("0x12")]);t[Bx("0x9")].change((()=>{o[Bx("0x1e")](e,{commandName:Bx("0x18"),commandParams:[]},[],Bx("0x18"))}))})),t[Bx("0x2f")][Bx("0x8")](Bx("0x18")).on(Bx("0x4a"),((e,n)=>{t[Bx("0x2f")][Bx("0x8")](Bx("0x3e"))[Bx("0x4f")]&&(n.length>0&&n[n[Bx("0x23")]-1]&&n[n[Bx("0x23")]-1][Bx("0x22")]||o[Bx("0x29")]||this._areSelectedCellsMergable()||e[Bx("0x4b")]())}),{priority:Bx("0x48")});for(const e of[Bx("0x5"),Bx("0x4"),Bx("0x14"),Bx("0x39")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[Bx("0x9")].document.selection[Bx("0x24")]()[Bx("0xf")]().find((t=>t.is(Bx("0x4e"),Bx("0xc")))),s=n[Bx("0x4f")];t[Bx("0x9")][Bx("0x11")]((()=>{o[Bx("0x1e")]([e,s],{commandName:Bx("0x18"),commandParams:[]},[],Bx("0x18"))}))}))}for(const e of["splitTableCellVertically",Bx("0x1")]){const n=t[Bx("0x2f")][Bx("0x8")](e);o.enableCommand(e,(()=>{const r=s[Bx("0x37")](t[Bx("0x9")][Bx("0x42")][Bx("0x12")])[0],i=r[Bx("0x3d")](Bx("0x34")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n[Bx("0x32")]){const t=s[Bx("0x36")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x2e")]((t=>t[Bx("0x3")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x10")](t).map((t=>t.cell))}t[Bx("0x9")][Bx("0x11")]((t=>{o[Bx("0x28")](t[Bx("0x1a")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0xe")][Bx("0x19")]((t=>{const{data:e}=t;if(e)return Bx("0x18")==e[Bx("0x43")]?{type:Bx("0x16"),content:Yo(n,Bx("0x31"))}:void 0})),o[Bx("0xe")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x33")==e[Bx("0x43")]?{type:Bx("0x16"),content:Yo(n,Bx("0x15"))}:Bx("0x1")==e[Bx("0x43")]?{type:Bx("0x16"),content:Yo(n,Bx("0x1b"))}:void 0}));const x=r[Bx("0xd")]();for(const t of[Bx("0x5"),Bx("0x4"),Bx("0x14"),Bx("0x39")])o[Bx("0x50")][Bx("0x49")]("formatBlock",t,Bx("0x4d"),x);for(const t of[Bx("0x33"),Bx("0x1")])o._suggestionFactory[Bx("0x49")](Bx("0x3a"),t,"accept",x);o[Bx("0x50")][Bx("0x49")](Bx("0x3a"),Bx("0x18"),"accept",(n=>{t.model[Bx("0x11")]((o=>{const s=Array[Bx("0x10")](e[Bx("0x3b")]())[Bx("0x2e")]((t=>i.LiveRange[Bx("0x13")](t)));o.setSelection(n),t[Bx("0x2f")][Bx("0x8")]("mergeTableCells")[Bx("0x3c")](),t[Bx("0x4a")](Bx("0x18"),{forceDefaultExecution:!0});const r=s[Bx("0x30")]((t=>Bx("0x35")!=t[Bx("0x27")][Bx("0x44")]));r[Bx("0x23")]>0&&o[Bx("0x1c")](r);for(const t of s)t[Bx("0x47")]()}))}));for(const e of[Bx("0x5"),"mergeTableCellDown",Bx("0x39"),Bx("0x4")]){const n=t.commands.get(e);n.on(Bx("0x38"),((e,o,s)=>{if(s){const o=t[Bx("0x9")][Bx("0x42")].selection[Bx("0x24")]()[Bx("0xf")]()[Bx("0xb")]((t=>t.is(Bx("0x4e"),"tableCell")));this[Bx("0x4c")](n.value,o)||(e[Bx("0x2b")]=!1,e[Bx("0x4b")]())}}),{priority:Bx("0x3f")})}}_areSelectedCellsMergable(){const t=this[Bx("0x1d")][Bx("0x2f")][Bx("0x8")](Bx("0x18")),e=this.editor[Bx("0x2c")].get(Bx("0x46"));if(!t[Bx("0x7")])return!1;const n=e[Bx("0x37")](this.editor[Bx("0x9")][Bx("0x42")][Bx("0x12")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4c")](t,e))return!1;return!0}[Bx("0x4c")](t,e){const n=this[Bx("0x1d")][Bx("0x2c")][Bx("0x8")](Bx("0x21")),o=this.editor[Bx("0x9")][Bx("0x1a")](t),s=this.editor[Bx("0x9")].createRangeOn(e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x2a")==t[Bx("0x2")]||Bx("0x51")==t.type||Bx("0x18")==t[Bx("0x1f")])&&t[Bx("0x53")])for(const e of t[Bx("0x3b")]())e[Bx("0xa")](o,!0)&&r[Bx("0x26")](t[Bx("0x2")]+":"+t[Bx("0x40")].id),e[Bx("0xa")](s,!0)&&i[Bx("0x26")](t.type+":"+t.author.id);if(r.size!=i[Bx("0x20")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["getColumnIndexes","ck-suggestion-marker--active","mapper","plugins","highest","index","setTableRowHeader","commands","nodeAfter","setTableColumnHeader","getCellLocation","data","document","options","commandName","getSuggestion","value","createRange","FORMAT_REGULAR_COLUMN","get","table","data-suggestion","cell","toViewElement","first","_splitMarkerName","registerCustomCallback","editing","FORMAT_HEADER_ROW","TrackChangesEditing","markerRange","createPositionAfter","afterInit","TableUtils","addMarker:suggestion","activeMarkers","getAttribute","ck-suggestion-marker-","model","markBlockFormat","removeClass","formatBlock","selection","accept","childCount","getSelectionAffectedTableCells","headingColumns","addClass","FORMAT_HEADER_COLUMN","last","format","commandParams","bindElementToMarker","parent","writer","consume","_descriptionFactory","consumable","createPositionBefore","requires","enableCommand","forceValue","createTableWalker","getChild","getRowIndexes","_acceptFormatSuggestionCallbackFactory","stop","findAncestor","showSuggestionHighlights","_suggestionFactory","change","start","name","downcastDispatcher","markerName","locale","setAttribute"];var Gx,Hx;Gx=Ux,Hx=442,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x2")](){return[wx]}[Wx("0x34")](){const t=this.editor;if(!t[Wx("0x17")].has("TableEditing"))return;const e=t[Wx("0x12")],n=t[Wx("0x17")].get(Wx("0x31")),o=t.plugins[Wx("0x27")](Wx("0x35")),s=t[Wx("0x17")][Wx("0x27")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x2d")](r[Wx("0x11")]),c=n.getSuggestion(a);if(!c.data||"setTableColumnHeader"!=c[Wx("0x1f")][Wx("0x22")])return;if(r.item)return void s[Wx("0x9")]();if(!i[Wx("0x0")][Wx("0x4b")](r[Wx("0x32")],s[Wx("0xf")]))return;const l=r[Wx("0x32")][Wx("0xe")][Wx("0x1c")],u=r[Wx("0x32")].end.nodeBefore,d=l[Wx("0x49")].parent,{column:g}=o[Wx("0x1e")](l),{column:f}=o[Wx("0x1e")](u);for(let s=g;s<=f;s++){const c=o[Wx("0x5")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x2a")],c=i[Wx("0x16")][Wx("0x2b")](s);i.writer[Wx("0x43")](Wx("0x39")+x,c),e&&i[Wx("0x4a")][Wx("0x13")](Wx("0x29"),a,c),i[Wx("0x16")][Wx("0x48")](c,r[Wx("0x11")]),t&&(n[Wx("0x37")].includes(r[Wx("0x11")])?i.writer[Wx("0x43")](Wx("0x15"),c):i[Wx("0x4a")][Wx("0x3c")](Wx("0x15"),c))}}}}n[Wx("0x3")](Wx("0x1a"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t.model[Wx("0x20")].selection),i=o[Wx("0x7")](r),x=r[0][Wx("0xa")]("table"),a=x[Wx("0x38")]("headingRows")||0,c=s&&null!==s.forceValue?s[Wx("0x4")]:!t.commands.get(Wx("0x1a"))[Wx("0x24")],l=c?i[Wx("0x45")]:i[Wx("0x2c")],u=x[Wx("0x6")](l);let d;if(c){const e=x.getChild(a);if(u.index<e[Wx("0x19")])return;d=t.model.createRange(t[Wx("0x3a")].createPositionBefore(e.getChild(0)),t[Wx("0x3a")][Wx("0x33")](u[Wx("0x6")](u[Wx("0x40")]-1)))}else{const e=x[Wx("0x6")](a-1);if(!e)return;d=t[Wx("0x3a")][Wx("0x25")](t[Wx("0x3a")][Wx("0x1")](u[Wx("0x6")](0)),t[Wx("0x3a")][Wx("0x33")](e.getChild(e[Wx("0x40")]-1)))}t[Wx("0x3a")][Wx("0xd")]((()=>{n[Wx("0x3b")](d,{commandName:Wx("0x1a"),commandParams:[{forceValue:c}]},[],Wx("0x1a"))}))})),n[Wx("0x3")](Wx("0x1d"),((e,o)=>{const s=t[Wx("0x17")].get(Wx("0x35")),r=s[Wx("0x41")](t[Wx("0x3a")][Wx("0x20")][Wx("0x3e")]),i=s[Wx("0x14")](r),x=r[0][Wx("0xa")](Wx("0x28")),a=x.getAttribute(Wx("0x42"))||0,c=o&&null!==o.forceValue?o[Wx("0x4")]:!t[Wx("0x1b")][Wx("0x27")]("setTableColumnHeader")[Wx("0x24")];let l;const u=x[Wx("0x6")](0),d=c?i[Wx("0x45")]:i[Wx("0x2c")],g=s.createTableWalker(x,{startRow:0,column:d,includeAllSlots:!1}),f=Array.from(g)[0][Wx("0x2a")];if(c){const e=u[Wx("0x6")](a);if(f.isBefore(e))return;l=t.model.createRange(t[Wx("0x3a")][Wx("0x1")](e),t[Wx("0x3a")][Wx("0x33")](f))}else{const e=u[Wx("0x6")](a-1);if(!e)return;l=t[Wx("0x3a")][Wx("0x25")](t[Wx("0x3a")][Wx("0x1")](f),t[Wx("0x3a")][Wx("0x33")](e))}t[Wx("0x3a")][Wx("0xd")]((()=>{n[Wx("0x3b")](l,{commandName:Wx("0x1d"),commandParams:[{forceValue:c}]},[],Wx("0x1d"))}))})),t.editing[Wx("0x10")].on(Wx("0x36"),r(),{priority:Wx("0x18")}),t.data[Wx("0x10")].on(Wx("0x36"),((t,e,n)=>{n[Wx("0x21")][Wx("0xb")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x18")}),t[Wx("0x2f")].downcastDispatcher.on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Wx("0x2d")](e[Wx("0x11")]),i=n[Wx("0x23")](r);if(!i.data||Wx("0x1d")!=i.data.commandName)return;const x=o.mapper.markerNameToElements(e.markerName);if(x)for(const t of x)o.writer[Wx("0x3c")](Wx("0x39")+s,t),o[Wx("0x4a")][Wx("0x3c")](Wx("0x15"),t),o[Wx("0x4a")].removeAttribute("data-suggestion",t),o.mapper.unbindElementFromMarkerName(t,e[Wx("0x11")])}),{priority:Wx("0x18")}),n[Wx("0x4c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Wx("0x1a")==n[Wx("0x22")]){const t=n.commandParams[0][Wx("0x4")];return o(Yo(e,t?Wx("0x30"):"FORMAT_REGULAR_ROW"))}if("setTableColumnHeader"==n[Wx("0x22")]){const t=n[Wx("0x47")][0][Wx("0x4")];return o(Yo(e,Wx(t?"0x44":"0x26")))}}function o(t){return{type:Wx("0x46"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[Wx("0x8")]();n[Wx("0xc")][Wx("0x2e")](Wx("0x3d"),"setTableRowHeader",Wx("0x3f"),i),n[Wx("0xc")].registerCustomCallback(Wx("0x3d"),Wx("0x1d"),Wx("0x3f"),i)}}const Vx=["insertRows","dataDowncast","getRange","tableCellBorderWidth","redo","tableCellSuggestion","markMultiRangeDeletion","afterInit","isEmpty","getRowIndexes","suggestionUnloaded","getTableIfOnlyTableInContent","getChangedMarkers","find","tablePasteCell","deletion","selection","markerToHighlight","TableClipboard","attributes","nextSibling","hasSuggestion","model","every","keys","tablePasteColumn","startsWith","formatBlock","end","document","filter","listenTo","registerPostFixer","insertion","deletionRanges","has","markers","next","getRanges","position","markerAttributes","createElement","documentSelection","get","setAttributes","tablePaste","markerName","nodeAfter","getShiftedBy","tableCell","columnInsertionRanges","for","view","tablePasteChainId","entries","_splitMarkerName","getMarkers","isEqual","accept","name","showSuggestionHighlights","plugins","fromEntries","getAllAdjacentSuggestions","type","length","_createdBatches","suggestion:formatBlock:tablePasteCell","markMultiRangeBlockFormat","insertContent","editor","getSuggestions","differ","getSelectionAffectedTableCells","isInContent","root","rootName","createPositionBefore","markMultiRangeInsertion","locale","previousSibling","tableCellBackgroundColor","low","map","removeRows","containsRange","commands","ck-suggestion-marker-insertion","table","_isForcedDefaultExecutionBlock","includes","author","from","createRangeOn","insertColumns","ck-suggestion-marker--active","columnInsertionIndexes","start","unwrap","wrap","column","insert","createTableWalker","remove","setAttribute","_descriptionFactory","previous","ck-suggestion-marker","forceDefaultExecution","getContainedElement","getRows","push","fill","elementToElement","cells","element","add","subType","tableCellPadding","getColumnIndexes","clipboardOutput","TableUtils","suggestion","discard","rowInsertionRanges","columns","reduce","TrackChangesEditing","editing","schema","endColumn","removeColumns","tablePasteRow","suggestionLoaded","insertionRanges","endRow","getSuggestion","createRangeIn","oldRange","tableCellVerticalAlignment","high","_getCoordsForCells","options","newRange","value","set","createRange","paragraph","change","join","stop","findAncestor","_suggestionFactory","Users","_tablePostFixingSubtypes","first","row","last","getChild","suggestion-td","registerCustomCallback","removeMarker","registerDescriptionCallback","activeMarkers","conversion"];var Kx,Xx;Kx=Vx,Xx=341,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=[qx("0x9d"),"tableCellBorderColor","tableCellBorderStyle","tableCellHorizontalAlignment",qx("0x80"),qx("0x46"),qx("0x6b")],Jx=Object[qx("0x33")]($x[qx("0x48")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[qx("0xa1")](){const t=this[qx("0x3b")];if(!t[qx("0x32")][qx("0x18")](qx("0x7")))return;const n=t[qx("0x32")][qx("0x20")](qx("0x74")),o=t[qx("0x32")].get(qx("0x6e")),s=t.plugins[qx("0x20")](wx),r=t[qx("0x32")][qx("0x20")](qx("0x7"));s[qx("0x8f")][qx("0x64")]("tablePasteRow",qx("0xe")),t[qx("0xb")][qx("0x76")].register(qx("0x9f"),{allowIn:qx("0x26"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[qx("0x66")]({model:qx("0x9f"),view:qx("0x94")});let i=null;t[qx("0xb")].on(qx("0x3a"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[qx("0x61")]||n[qx("0x4e")]||this[qx("0x3b")].commands[qx("0x20")]("trackChanges")[qx("0x85")]&&function(t,e,n,o,s){if(e&&!e.is(qx("0x1f")))return!1;const r=s[qx("0x0")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[qx("0x3e")](n.document[qx("0x5")]);if(!i.length)return!1;const x=i[0][qx("0x8c")]("table"),a=o[qx("0xa3")](i),c=o[qx("0x6c")](i),l={startRow:a[qx("0x90")],endRow:a.last,startColumn:c[qx("0x90")],endColumn:c[qx("0x92")]};return 1==i[qx("0x36")]&&(l[qx("0x7c")]+=o[qx("0x63")](r)-1,l[qx("0x77")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0xb")][qx("0x89")]((()=>{t[qx("0xb")][qx("0x3a")](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[qx("0x36")]&&n[qx("0x43")](s,qx("0x79"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,qx("0xe"),{tablePasteChainId:o}),a[qx("0x36")]&&n[qx("0x43")](a,qx("0x22"),{tablePasteChainId:o,skipNestingCheck:!0}),c[qx("0x36")]&&n[qx("0xa0")](c,qx("0x22"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[qx("0x39")](l[qx("0x48")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[qx("0xb")].createRangeOn(o),i=e[qx("0x2")]((t=>t.getRange()[qx("0x2e")](r)));i&&n.push([i[qx("0x30")],s])}n[qx("0x36")]&&u[qx("0x5d")](qx("0x1d"),Object[qx("0x33")](n))}i=null})))}),{priority:e.priorities[qx("0x81")]+10}),t[qx("0x32")][qx("0x20")]("TableClipboard").on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x8b")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[qx("0x5c")](r.getChild(0));for(const t of Array.from(x.getChildren()))s[qx("0x5a")](t,r,qx("0x11"));const t=i.rowInsertionIndexes[qx("0x4f")](n[qx("0x91")]),e=i[qx("0x55")][qx("0x4f")](n[qx("0x59")]);t||e||(l=s[qx("0x7e")](r))}else c&&!a&&(u=s.createRangeIn(r));else{const t=s[qx("0x1e")](qx("0x9f")),e=s[qx("0x1e")](qx("0x9f"));s[qx("0x58")](s[qx("0x7e")](r),e),s[qx("0x5a")](t,r,0);for(const e of Array[qx("0x51")](x.getChildren()))s.insert(e,t,"end");l=s[qx("0x52")](t),u=s[qx("0x52")](e)}const d=Array[qx("0x51")](x.getAttributes())[qx("0x13")]((([t])=>$x[qx("0x4f")](t)));i[qx("0x67")][qx("0x64")]({element:r,attributes:d.length?Object.fromEntries(d):null}),l&&i[qx("0x7b")].push(l),u&&i[qx("0x17")][qx("0x64")](u)}),{priority:"high"}),o.on(qx("0x53"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x72")]||1;i[qx("0x55")]=new Array(a)[qx("0x65")](x)[qx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x5b")](s,{startColumn:x,endColumn:x+a-1}))i[qx("0x27")][qx("0x64")](t.model.createRangeOn(e))}),{priority:qx("0x47")}),o.on(qx("0x9a"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i.rowInsertionIndexes=new Array(a)[qx("0x65")](x)[qx("0x48")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x5b")](s,{startRow:x,endRow:x+a-1}))i[qx("0x71")][qx("0x64")](t[qx("0xb")][qx("0x52")](e))}),{priority:qx("0x47")}),n[qx("0x5e")][qx("0x97")]((e=>{if(e[qx("0x6a")]&&e.subType[qx("0xf")](qx("0x22")))return e[qx("0x5f")]?{}:{type:qx("0x16"),content:Yo(t[qx("0x44")],"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste",qx("0xe"),qx("0x79"),qx("0x3")])n._suggestionFactory[qx("0x95")](qx("0x16"),t,qx("0x8a"),x),n[qx("0x8d")][qx("0x95")]("deletion",t,qx("0x8a"),x),n[qx("0x8d")][qx("0x95")]("formatBlock",t,qx("0x8a"),x);n._suggestionFactory[qx("0x95")]("formatBlock",qx("0x3"),qx("0x70"),x),n[qx("0x8d")][qx("0x95")](qx("0x10"),qx("0x3"),qx("0x2f"),((e,n,o)=>{const s=e.map((t=>t[qx("0x62")]()))[qx("0x13")]((t=>t)),r=new Map(s[qx("0x48")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[qx("0x86")](t,e);else if(o&&o[qx("0x1d")])for(const[e,n]of Object[qx("0x2b")](o[qx("0x1d")])){const o=t.model[qx("0x19")][qx("0x20")](e),s=o?o[qx("0x9c")]()[qx("0x62")]():null;s&&r[qx("0x86")](s,n)}t[qx("0xb")][qx("0x89")]((t=>{for(const[e,n]of r)t[qx("0x21")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[qx("0x95")](e,qx("0x22"),o,((s,r,i)=>{t.model[qx("0x89")]((t=>{const x=[];for(const t of s){const e=t[qx("0x56")][qx("0x24")];e.is(qx("0x68"),qx("0x9f"))&&x[qx("0x64")](e)}n[qx("0x8d")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[qx("0x40")][qx("0x41")]&&t[qx("0x57")](e)}))}))};a("insertion","accept"),a("insertion",qx("0x70")),a("deletion",qx("0x2f")),a(qx("0x4"),"discard"),n._suggestionFactory.registerCustomCallback(qx("0x16"),qx("0x79"),qx("0x70"),(t=>{const e=t[qx("0x48")]((t=>t[qx("0x62")]())),n=e[0].findAncestor(qx("0x4d")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[qx("0x49")](n,{at:r,rows:i-r+1})})),n[qx("0x8d")][qx("0x95")](qx("0x16"),qx("0xe"),qx("0x70"),(t=>{const e=t[qx("0x48")]((t=>t.getContainedElement())),n=e[0][qx("0x8c")](qx("0x4d")),{minColumn:r,maxColumn:i}=s[qx("0x82")](e);o[qx("0x78")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[qx("0x6a")][qx("0xf")]("tablePaste"))return;const o=e[qx("0x8")][qx("0x2a")],s=n[qx("0x3c")]().filter((t=>t[qx("0x3f")]&&t[qx("0x8")]&&t[qx("0x8")].tablePasteChainId==o));s[qx("0x36")]&&e[qx("0x34")]()[qx("0x36")]!=s[qx("0x36")]&&s[qx("0x73")](((t,e)=>(t[qx("0x1a")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t.markerName),s=[qx("0x60"),qx("0x4c")],r=n[qx("0x98")][qx("0x4f")](t[qx("0x23")]);return r&&s[qx("0x64")](qx("0x54")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x7a"),c,{priority:qx("0x81")}),n.on(qx("0xa4"),c,{priority:"high"}),t[qx("0xb")][qx("0x12")][qx("0x15")]((()=>{let e=!1;const o=Array[qx("0x51")](t[qx("0xb")][qx("0x12")].differ[qx("0x1")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||"deletion"!=i||r.oldRange)continue;if(!n[qx("0xa")](x))continue;const a=n[qx("0x7d")](x)[qx("0x1b")](),c=t[qx("0x32")][qx("0x20")]("Users").me;for(const t of n[qx("0x3c")]())if(t[qx("0x3f")]&&t.author==c&&"formatBlock"==t[qx("0x35")]&&qx("0x3")==t.subType&&t[qx("0x1b")]()[qx("0xc")]((t=>a.some((e=>e[qx("0x4a")](t,!0))))))for(const n of t[qx("0x34")]())n[qx("0x3f")]&&(n[qx("0x70")](),e=!0)}return e})),t[qx("0xb")][qx("0x12")][qx("0x15")]((e=>{const o=t[qx("0x4b")][qx("0x20")](qx("0x9e"));if(!o||!o[qx("0x37")][qx("0x18")](e.batch))return!1;let s=!1;const r=t[qx("0x32")][qx("0x20")](qx("0x8e")).me,i=t.model[qx("0x12")][qx("0x3d")].getChanges(),x=Array[qx("0x51")](t[qx("0xb")][qx("0x12")].differ[qx("0x1")]())[qx("0x13")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x2c")](t);return qx("0x6f")==o&&"tablePaste"==s&&i==r.id&&!e[qx("0x7f")]}));for(const t of i){if("insert"!=t[qx("0x35")]||qx("0x9f")!=t[qx("0x30")]||1!=t[qx("0x36")])continue;const n=e[qx("0x87")](t[qx("0x1c")],t[qx("0x1c")][qx("0x25")](1));if(!x[qx("0x2")]((({data:t})=>t[qx("0x84")][qx("0x2e")](n))))for(const{name:t,data:o}of x)if(n[qx("0x4a")](o[qx("0x84")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[qx("0x12")][qx("0x15")]((e=>{let o=!1;const s=t[qx("0x32")][qx("0x20")]("Users").me,r=n[qx("0x3c")]()[qx("0x13")]((t=>t.isInContent&&t[qx("0x50")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[qx("0x6a")])for(const e of t[qx("0x2d")]()){const n=e.getRange()[qx("0x62")]();if(n)if(n.is("element",qx("0x9f"))&&Zx(n)){t[qx("0x96")](e[qx("0x30")]),i.add(n),o=!0;const s=n[qx("0x9")],r=n[qx("0x45")],a=s&&s.is(qx("0x68"),qx("0x9f")),c=r&&r.is(qx("0x68"),qx("0x9f"));a&&!i.has(s)&&x.add(s),c&&!i[qx("0x18")](r)&&x[qx("0x69")](r)}else n.is(qx("0x68"),qx("0x88"))&&n[qx("0xa2")]&&(t[qx("0x96")](e[qx("0x30")]),o=!0)}else if("tablePasteCell"==t[qx("0x6a")]){if(!t.attributes||!t[qx("0x8")].tablePasteChainId)continue;const e=t[qx("0x8")][qx("0x1d")];if(e&&Object[qx("0xd")](e)[qx("0x36")])continue;const n=t[qx("0x8")][qx("0x2a")];let s=!0,i=!0;for(const e of r)if(e[qx("0x6a")]&&e[qx("0x6a")][qx("0xf")]("tablePaste")){if(!e.attributes[qx("0x2a")]){i=!1;break}if(e.id!=t.id&&e[qx("0x8")].tablePasteChainId==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[qx("0x5c")](t);for(const t of x)e[qx("0x57")](t);return o})),t[qx("0x99")][qx("0x28")]("editingDowncast")[qx("0x6")]({model:qx("0x38"),view:(t,e)=>l(t),converterPriority:"high"}),t[qx("0x99")][qx("0x28")](qx("0x9b"))[qx("0x6")]({model:qx("0x38"),view:(t,e)=>e[qx("0x83")][qx("0x31")]?l(t,!1):null,converterPriority:qx("0x81")});const u=t[qx("0x75")][qx("0x29")];this[qx("0x14")](u.document,qx("0x6d"),((t,e)=>{const n=[];for(const t of u[qx("0x7e")](e.content).getItems())t.is(qx("0x68"),qx("0x94"))&&n[qx("0x64")](t);u[qx("0x89")]((t=>{for(const e of n)t.move(t[qx("0x7e")](e),t[qx("0x42")](e)),t[qx("0x5c")](e)}))}))}}function Zx(t){if(t[qx("0xa2")])return!0;const e=t[qx("0x93")](0);return e.is("element",qx("0x88"))&&e[qx("0xa2")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["getSuggestionCallback","markBlockFormat","table","TableColumnResizeEditing","formatBlock","Users","document","discard","registerCustomCallback","accept","enableCommand","TrackChangesEditing","columnWidths","commandParams","change","*Format:* resize table","getSuggestions","data","plugins","handleResizeTableWidthCommand","get","handleSuggestionDescription","getColumnGroupElement","subType","_suggestionFactory","has","registerDescriptionCallback","locale","tableWidth","model","resizeTableWidth","selection","editor","formatGroupId","resizeColumnWidths","getTableColumnsWidths","bind","resizeTable","getAttribute"];var ea,na;ea=ta,na=316,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x1c")][oa("0xe")][oa("0x15")](oa("0x26")))return;const t=this[oa("0x1c")][oa("0xe")][oa("0x10")](oa("0x7"));t[oa("0x6")]("resizeTableWidth",this[oa("0xf")].bind(this)),t[oa("0x6")](oa("0x1e"),this[oa("0xf")][oa("0x20")](this)),t[oa("0x14")][oa("0x4")]("formatBlock",oa("0x21"),oa("0x5"),t[oa("0x14")][oa("0x23")](oa("0x0"),null,oa("0x3"))),t[oa("0x14")].registerCustomCallback("formatBlock","resizeTable",oa("0x3"),t[oa("0x14")].getSuggestionCallback(oa("0x0"),null,"accept")),t._descriptionFactory[oa("0x16")](this[oa("0x11")][oa("0x20")](this))}[oa("0xf")](t,e){const n=this[oa("0x1c")][oa("0xe")].get(oa("0x7")),o=this.editor[oa("0xe")].get(oa("0x26")),s=e[oa("0x25")]||this[oa("0x1c")][oa("0x19")][oa("0x2")][oa("0x1b")].getSelectedElement();this.editor[oa("0x19")][oa("0xa")]((()=>{const r=o[oa("0x12")](s);let i=r?o[oa("0x1f")](r):null,x=s[oa("0x22")](oa("0x18"))||null;const a=e[oa("0x18")]||x,c=e[oa("0x8")]||i,l=this[oa("0x1c")].plugins[oa("0x10")](oa("0x1")).me;for(const t of n[oa("0xc")]()){const e=t.getContainedElement();if(oa("0x21")===t[oa("0x13")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t[oa("0xd")][oa("0x9")];x=e[0][oa("0x18")],i=e[0][oa("0x8")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x24")](s,{commandName:oa("0x1a"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x21")},[],oa("0x21"))}))}[oa("0x11")](t){const{data:e}=t;if(e&&oa("0x21")===e[oa("0x1d")]){const t=oa("0xb");return{type:"format",content:Yo(this[oa("0x1c")][oa("0x17")],t)}}}}const ra=["afterInit","enableCommand","get","plugins","Template"];var ia,xa;ia=ra,xa=223,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x2")](){const t=this.editor;t[aa("0x0")].has(aa("0x1"))&&t.plugins[aa("0x4")]("TrackChangesEditing")[aa("0x3")]("insertTemplate")}}const la=["_descriptionFactory","plugins","TrackChangesEditing","editor","locale","get","insertTableOfContents","registerElementLabel","enableCommand","afterInit","ELEMENT_TABLE_OF_CONTENTS","commands"];var ua,da;ua=la,da=430,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class fa extends t.Plugin{[ga("0xb")](){const t=this[ga("0x5")];if(!t[ga("0x1")].get(ga("0x8")))return;t[ga("0x3")].get(ga("0x4"))[ga("0xa")](ga("0x8"));const e=t[ga("0x3")][ga("0x7")](ga("0x4")),n=t[ga("0x6")];e[ga("0x2")][ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0x0"),t)))}}const ma=["_splitMarkerName","end","afterInit","removeMarker","start","registerPostFixer","forward","isCollapsed","from","getNearestSelectionRange","locale","updateMarker","plugins","newRange","get","differ","has","element","suggestion","model","schema","getChangedMarkers"];var ha,ba;ha=ma,ba=476,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return ma[t-=0]};class Ea extends t.Plugin{[pa("0xa")](){const t=this.editor;if(!t[pa("0x14")][pa("0x2")]("Title"))return;const e=t.plugins[pa("0x0")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel("title-content",(()=>Yo(t[pa("0x12")],"ELEMENT_TITLE"))),t[pa("0x5")].document[pa("0xd")]((n=>{let o=!1;const s=Array[pa("0x10")](t[pa("0x5")].document[pa("0x1")][pa("0x7")]());for(const{name:r,data:i}of s){const{group:s}=e[pa("0x8")](r);if(pa("0x4")!==s||!i[pa("0x15")])continue;const x=i[pa("0x15")],a=x.end.nodeBefore;if(!a||!a.is(pa("0x3"),"title-content"))continue;if(!x.start.isTouching(x[pa("0x9")]))continue;const c=t[pa("0x5")][pa("0x6")][pa("0x11")](x[pa("0x9")],pa("0xe"));if(c&&c[pa("0xf")]){const t=n.createRange(x[pa("0xc")],c[pa("0xc")]);t.isEqual(x)||(n[pa("0x13")](r,{range:t}),o=!0)}o||(n[pa("0xb")](r),o=!0)}return o}))}}const _a=["TrackChangesEditing","redo","enableCommand","UndoEditing","undo","plugins","editor","get"];var Ta,Ca;Ta=_a,Ca=331,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("0x3")],e=t[ya("0x2")][ya("0x4")](ya("0x5"));t[ya("0x2")].has(ya("0x0"))&&(e.enableCommand(ya("0x1")),e[ya("0x7")](ya("0x6")))}}const Aa=["afterInit","get","editor","has","plugins","TrackChangesEditing","enableCommand","requires","TableCaptionEditing","toggleTableCaption"];var va,Ra;va=Aa,Ra=113,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x4")](){return[wx]}[Sa("0x7")](){const t=this[Sa("0x9")];t[Sa("0x1")][Sa("0x0")](Sa("0x5"))&&t.plugins[Sa("0x8")](Sa("0x2"))[Sa("0x3")](Sa("0x6"))}}const La=["_descriptionFactory","getAttribute","commandParams","listType","push","isListItemBlock","change","DocumentListUtils","enableCommand","bind","locale","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","registerDescriptionCallback","handleListStyleCommand","_getTranslationKeyForListStyle","expandListBlocksToCompleteList","document","*Change to:* %0","startIndex","reversed","handleListReversedCommand","commandName","selection","model","_LIST_","plugins","handleDescriptions","listStyle","handleListStartCommand","listStart","type","listReversed","DocumentListPropertiesEditing","*Format:* set order to regular","ELEMENT_","TrackChangesEditing","from","config","toUpperCase","format","length","numbered","get","getSelectedBlocks","getListTypeFromListStyleType","*Format:* set order to reversed","list.properties","editor"];var Na,Ma;Na=La,Ma=199,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this.editor[wa("0x1c")].has(wa("0x23")))return;const t=this[wa("0x0")][wa("0x28")][wa("0x2d")](wa("0x31")),e=this[wa("0x0")].plugins[wa("0x2d")](wa("0x26"));t.styles&&e.enableCommand(wa("0x1e"),this[wa("0x10")][wa("0xa")](this)),t[wa("0x16")]&&e[wa("0x9")](wa("0x22"),this[wa("0x17")][wa("0xa")](this)),t[wa("0x15")]&&e.enableCommand(wa("0x20"),this.handleListStartCommand.bind(this)),e[wa("0x1")][wa("0xf")](this.handleDescriptions[wa("0xa")](this))}[wa("0x10")](t,e={}){const n=this.editor[wa("0x1c")].get(wa("0x26")),o=this[wa("0xd")]();this.editor[wa("0x1a")][wa("0x7")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x1e"),commandParams:[{type:e[wa("0x21")]}],formatGroupId:"listStyle"})}))}[wa("0x17")](t,e={}){const n=this.editor[wa("0x1c")].get(wa("0x26")),o=this[wa("0x0")][wa("0x1c")][wa("0x2d")](wa("0x8")),s=this[wa("0xe")]((t=>o.isListItemBlock(t)&&wa("0x2c")===t.getAttribute(wa("0x4"))));null!==s&&this[wa("0x0")][wa("0x1a")][wa("0x7")]((()=>{n[wa("0xc")](s,{commandName:wa("0x22"),commandParams:[{reversed:e[wa("0x16")]}],formatGroupId:wa("0x22")})}))}[wa("0x1f")](t,e={}){const n=this[wa("0x0")][wa("0x1c")].get(wa("0x26")),o=this.editor[wa("0x1c")][wa("0x2d")](wa("0x8")),s=this._getSuggestionBlocks((t=>o[wa("0x6")](t)&&wa("0x2c")===t[wa("0x2")](wa("0x4"))));null!==s&&this[wa("0x0")][wa("0x1a")].change((()=>{n[wa("0xc")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:wa("0x20")})}))}[wa("0x1d")](t){const e=this[wa("0x0")][wa("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x18")]){case"listStyle":o=wa("0x14"),s={type:wa("0x2a"),content:Yo(e,o,Yo(e,this[wa("0x11")](n[wa("0x3")][0][wa("0x21")])))};break;case wa("0x22"):o=n[wa("0x3")][0][wa("0x16")]?wa("0x30"):wa("0x24"),s={type:wa("0x2a"),content:Yo(e,o)};break;case wa("0x20"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x3")][0][wa("0x15")])}}return s}[wa("0xd")](){const t=this[wa("0x0")][wa("0x1c")].get("DocumentListUtils");let e=Array[wa("0x27")](this[wa("0x0")][wa("0x1a")][wa("0x13")][wa("0x19")][wa("0x2e")]());return e[wa("0x5")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[wa("0xe")](t){const e=this.editor[wa("0x1c")].get("DocumentListUtils");let n=Array[wa("0x27")](this[wa("0x0")][wa("0x1a")].document[wa("0x19")][wa("0x2e")]()).filter(t);if(!n[wa("0x2b")])return null;n=e[wa("0x12")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[wa("0x5")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x25")+this[wa("0x0")][wa("0x1c")][wa("0x2d")]("DocumentListPropertiesUtils")[wa("0x2f")](t).toUpperCase()+wa("0x1b")+t[wa("0x29")]().replace(/-/g,"_")}}const Fa=["accept","tableCellBackgroundColor","tableBorderStyle","_suggestionFactory","_handlePropertyChange","handleDiscardAction","join","tableBackgroundColor","tableCellWidth","TrackChangesEditing","tableCellBorderColor","_getSuggestion","tableCellProperties","has","setAttribute","subType","enableCommand","getContainedElement","batch","enqueueChange","tableCellBorderWidth","tableProperties","formatBlock","getFirstPosition","tableBorderColor","selection","TablePropertiesEditing","*Format:* change table cell properties","getAttribute","discard","model","getSuggestions","plugins","change","pluginName","_descriptionFactory","registerDescriptionCallback","nodeAfter","table","editor","tableBorderWidth","getSuggestionCallback","TableUtils","tableAlignment","tableHeight","document","handleSuggestionDescription","markBlockFormat","tableCellHorizontalAlignment","getSelectionAffectedTableCells","tableCellVerticalAlignment","locale","tableCellPadding","registerCustomCallback","get","TableCellPropertiesEditing"];var Pa,Da;Pa=Fa,Da=381,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x20")]=[Ba("0x23"),Ba("0xd"),Ba("0x33"),Ba("0x36"),"tableWidth",Ba("0x37"),Ba("0x12")],this[Ba("0x17")]=[Ba("0x15"),"tableCellBorderStyle",Ba("0x1f"),Ba("0x7"),Ba("0x13"),"tableCellHeight",Ba("0xc"),Ba("0x3"),Ba("0x5")]}static get[Ba("0x2d")](){return"TrackChangesTableProperties"}afterInit(){const t=this.editor[Ba("0x2b")][Ba("0x9")]("TrackChangesEditing");if(this[Ba("0x32")][Ba("0x2b")][Ba("0x18")](Ba("0x25"))){for(const e of this[Ba("0x20")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x32")][Ba("0x29")].document.selection[Ba("0x22")]().findAncestor(Ba("0x31"));this[Ba("0xf")](e,[o],this[Ba("0x20")],Ba("0x20"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x21"),"tableProperties",Ba("0xb"),t[Ba("0xe")][Ba("0x34")](Ba("0x21"),null,Ba("0x28"))),t[Ba("0xe")][Ba("0x8")]("formatBlock",Ba("0x20"),Ba("0x28"),((t,e)=>this[Ba("0x10")](this[Ba("0x20")],t,e))),t[Ba("0xe")][Ba("0x8")](Ba("0x21"),Ba("0x20"),Ba("0x11"),(()=>!1))}if(this[Ba("0x32")][Ba("0x2b")].has(Ba("0xa"))){for(const e of this.tableCellProperties)t[Ba("0x1b")](e,((t,n)=>{const o=this[Ba("0x32")].plugins[Ba("0x9")](Ba("0x35"))[Ba("0x4")](this[Ba("0x32")][Ba("0x29")][Ba("0x0")][Ba("0x24")]);this[Ba("0xf")](e,o,this[Ba("0x17")],Ba("0x17"),t,n)}));t[Ba("0xe")][Ba("0x8")](Ba("0x21"),Ba("0x17"),Ba("0xb"),t[Ba("0xe")][Ba("0x34")](Ba("0x21"),null,Ba("0x28"))),t._suggestionFactory[Ba("0x8")](Ba("0x21"),Ba("0x17"),Ba("0x28"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[Ba("0xe")][Ba("0x8")](Ba("0x21"),Ba("0x17"),Ba("0x11"),(()=>!1))}t[Ba("0x2e")][Ba("0x2f")]((t=>this[Ba("0x1")](t)))}[Ba("0xf")](t,e,n,o,s,r){const i=this[Ba("0x32")][Ba("0x2b")].get(Ba("0x14"));this.editor.model[Ba("0x1e")](r[Ba("0x1d")],(()=>{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("0x27")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x2")](t,{commandParams:[e]},[],o)}}))}[Ba("0x10")](t,e,n){const o=e[0].start[Ba("0x30")],s=n.commandParams[0];this[Ba("0x32")][Ba("0x29")][Ba("0x2c")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x19")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x1")](t){if(t.data)switch(t.subType){case Ba("0x20"):return{type:"format",content:Yo(this[Ba("0x32")][Ba("0x6")],"*Format:* change table properties")};case Ba("0x17"):return{type:"format",content:Yo(this[Ba("0x32")][Ba("0x6")],Ba("0x26"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x32")][Ba("0x2b")][Ba("0x9")](Ba("0x14"));for(const o of n[Ba("0x2a")]({skipNotAttached:!0})){const n=o[Ba("0x1c")]();if(o[Ba("0x1a")]===e&&n===t)return o}return null}}const Ua=["createElement","chain","batch","name","getLastMatchingPosition","isLimit","_defaultCallbacks","_splitMarkerName","formatInline:chain","trackChanges","differ","_trackFormatChanges","_isForcedDefaultExecutionBlock","map","formatGroupId","splitPosition","never","getAncestors","getWalker","push","delete","open","forceDefaultExecution","refresh","splice","_findSuggestions","getSuggestionCallback","change","getRange","dataReady","isInContent","getShiftedBy","removeAttribute","then","showSuggestionHighlights","_commentsRepository","_removeSuggestion","_enabledCommands","Users","commentThread","author","getCustomProperty","discardAllSuggestions","change:activeMarkers","ck-suggestion-marker","enableReadOnlyMode","substr","formatBlock:","get","join","schema","collaboration.channelId","getItems","formatInline:","commandName","_suggestionFactory","removed","suggestion:","markMultiRangeBlockFormat","_createSuggestion","root","addMarker","pluginName","addClass","hasCommentThread","addComment","high","markerName","insertion:discard","document","createRange","isObject","getUser","markMultiRangeInsertion","elementToElement","value","markBlockFormat","default","rejected","_suggestionState","formatBlock:discard","formatBlock:chain","getNearestSelectionRange","trackChanges.mergeNestedSuggestions","data-suggestion","clear","getChangedMarkers","consumable","formatBlock:accept","containsRangeInObject","fetchCommentThread","addSuggestionData","unbind","model","addSuggestion","isLocal","size","trackChangesCommand","stop","isMultiRange","_getExternalAuthor","ck-suggestion-marker-formatBlock","_adapter","enqueueChange","createPositionAt","adapter","removeMarkers","_saved","isOwn","discardSelectedSuggestions","ready","accepted","_addSuggestionMarker","unbindElementFromMarkerName","move","registerPostFixer","suggestionUnloaded","_isDataLoaded","acceptSelectedSuggestions","track-changes-suggestion-not-found","rootName","CommentsRepository","deletion:chain","deletion:discard","accept","_updateSuggestionData","createRangeIn","addHighlight","createSelection","buildSuggestion","targetPosition","_getAuthorFromId","discardSuggestion","getFirstRange","insertContent","fromRange","originalSuggestionId","insertion:","getMarkers","values","external:","_setSuggestionData","before","containsRange","nodeBefore","options","isCollapsed","deleteContent","mapper","notReady","plugins","rethrowUnexpectedError","acceptSuggestion","config","removeMarker","getDifference","$graveyard","authoredAt","oldRange","set","PendingActions","isAfter","newRange","editing","add","isAtEnd","type","suggestionLoaded","_customCallbacks","fire","authorName","isBefore","deletion:","markerNameToElements","update:suggestion","length","isSelectable","insertion","commands","creator","backward","conversion","_getSuggestionData","addMarkerName","toViewElement","next","elementStart","_editor","low","previous","deletion:accept","containsItem","nodeAfter","enableCommand","_joinWithAdjacentSuggestions","_breakSuggestionMarker","_handleNewSuggestionMarker","head","track-changes-adapter-missing-getsuggestion","$textProxy","addUser","isArray","multi","split","containsPosition","_checkSuggestionCorrectness","fromCharCode","suggestion-type","lowest","markInsertion","isIntersectingWithRange","track-changes-command-not-found","error-saving-suggestion-data-suggestion-discarded","always","addCommentThread","multipleBlocks","marker-count","isEqual","ck-suggestion-marker--active","hasComments","isUndo","_setSuggestionRange","updateMarker","bindElementToMarker","addMarker:suggestion:formatBlock","getMultiRangeId","TrackChangesEditing","has","documentSelection","skipNestingCheck","insert","locale","writer","isInsideObject","@external","upcast","_registerDefaultCallbacks","getIntersection","updateSuggestion","subType","listenTo","position","setSelection","getSuggestions","data","formatInline:discard","consume","getChanges","deletion","isBlock","filter","catch","insertion:chain","_refreshSuggestionsChain","deletion:join","range","trackChanges.trackFormatChanges","PENDING_ACTION_SUGGESTION","tablePasteChainId","_suggestions","element","_joinSuggestions","getAttribute","_mergeNestedSuggestions","editor","formatInline:join","for","attributes","addRange","formatBlock","_cutOutSuggestionMarker","_rangeIsInLocalUserInsertion","markers","end","item","markMultiRangeDeletion","detach","every","init","elementEnd","isDocumentOperation","toJSON","markDeletion","_addThreadToSuggestion","suggestionChanged","dataDowncast","formatInline","getRanges","suggestion","from","parent","includes","start","_descriptionFactory","after","createdAt","acceptAllSuggestions","highest","editingDowncast","insertion:accept","define","isNextTo","_model","keys","selection","moveTargetPosition","some","markerReady","getAllAdjacentSuggestions","applyOperation","discard","getFirstMarker","markerToHighlight","getSuggestion","dataToMarker","change:_saved"];var Ga,Ha;Ga=Ua,Ha=227,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get requires(){return[Wa("0xd2"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Js,er,Oa,xr,dr,pr,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,bi,Ci,Ri,Oi,ji,zi,$i,tx,ix,dx,bx,yx,Sx,wx,jx,zx,Ia,Qx,sa,fa,ja,ca,Ea,ka]}static get[Wa("0x97")](){return Wa("0x13b")}constructor(t){function e(t){return t[Wa("0x66")]((t=>String[Wa("0x127")](t)))[Wa("0x8a")]("")}super(t),this[Wa("0xf8")]("activeMarkers",[]),this.on(Wa("0x84"),((e,n,o,s)=>{this[Wa("0x4b")][Wa("0x74")]((()=>{for(const e of[...s,...o])this._model[Wa("0x2d")][Wa("0x0")](e)&&t[Wa("0xfc")].reconvertMarker(e)}))})),this[Wa("0x42")]=new ss(this[Wa("0x25")][Wa("0xb6")][Wa("0x8b")],this.editor[Wa("0x4")]),this[Wa("0xbf")]=null,this[Wa("0x90")]=new Va(this.editor),this[Wa("0x20")]=new Map,this._commentsRepository=t[Wa("0xef")][Wa("0x89")](Wa("0xd2")),this[Wa("0x7e")]=new Set,this[Wa("0x4b")]=this[Wa("0x25")][Wa("0xb6")],this[Wa("0xa8")]=new WeakMap,this[Wa("0x65")]=!1,t[Wa("0xf2")][Wa("0x49")](Wa("0x1d"),Wa("0xa6")),this[Wa("0x64")]=t.config[Wa("0x89")](Wa("0x1d")),t[Wa("0xf2")][Wa("0x49")](Wa("0xac"),!0),this[Wa("0x24")]=t.config.get("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this._enabledCommands),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,56,51,48])}[Wa("0x33")](){const t=this.editor;t[Wa("0x10e")][Wa("0x27")](Wa("0x47"))[Wa("0x55")]({model:Wa("0x3d"),view:t=>{const{id:e,type:n}=this[Wa("0x60")](t[Wa("0x9c")]),o=[Wa("0x85"),"ck-suggestion-marker-"+n];let s=3e3;return this.activeMarkers[Wa("0x40")](t.markerName)&&(o[Wa("0x6c")](Wa("0x133")),s=3010),Wa("0x15")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0x10e")].for("dataDowncast")[Wa("0xfd")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Wa("0xea")][Wa("0x7b")])return;const s=n.item;if(!s)return;const r=o[Wa("0xed")][Wa("0x111")](s);t[Wa("0xb6")][Wa("0x8b")][Wa("0xa0")](s)&&r&&!r[Wa("0x82")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o[Wa("0x5")])}),{priority:"high"})})),t[Wa("0x10e")][Wa("0x27")]("dataDowncast")[Wa("0x55")]({model:"suggestion",view:(t,e)=>{if(!e[Wa("0xea")][Wa("0x7b")])return null;const{type:n}=this._splitMarkerName(t[Wa("0x9c")]);return{classes:[Wa("0x85"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0x2f")])return;if(o.item.is(Wa("0x4d")))return void s[Wa("0xb0")].consume(o[Wa("0x2f")],n[Wa("0x5c")]);const r=s.mapper[Wa("0x111")](o[Wa("0x2f")]);if(!o[Wa("0x2f")].is(Wa("0x21"))||!t[Wa("0xb6")][Wa("0x8b")].isBlock(o.item)||r.getCustomProperty(Wa("0xd8")))return;const{id:i}=this._splitMarkerName(o[Wa("0x9c")]);s[Wa("0x5")][Wa("0x98")]([Wa("0x85"),Wa("0xbe")],r),s[Wa("0x5")].setAttribute(Wa("0xad"),i,r),s[Wa("0xed")][Wa("0x138")](r,o.markerName),e&&(this.activeMarkers[Wa("0x40")](o[Wa("0x9c")])?s[Wa("0x5")][Wa("0x98")](Wa("0x133"),r):s[Wa("0x5")].removeClass(Wa("0x133"),r));for(const e of t[Wa("0xb6")][Wa("0xd7")](o[Wa("0x2f")])[Wa("0x8d")]())s.consumable[Wa("0x13")](e,n[Wa("0x5c")]);s[Wa("0xb0")].consume(o[Wa("0x2f")],n.name)};t[Wa("0x10e")][Wa("0x27")](Wa("0x3a"))[Wa("0xfd")]((t=>{t.on(Wa("0x139"),((t,e,o)=>{o[Wa("0xea")][Wa("0x7b")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x46")})})),t[Wa("0x10e")][Wa("0x27")](Wa("0x3a")).markerToData({model:Wa("0x3d"),view:(t,e)=>e[Wa("0xea")][Wa("0x7b")]?null:{group:Wa("0x3d"),name:t[Wa("0x87")](11)}}),t[Wa("0x10e")][Wa("0x27")](Wa("0x8"))[Wa("0xa3")]({view:{name:Wa("0x3d"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x92")+t.getAttribute(Wa("0x128"))+":"+t[Wa("0x23")]("id");return t[Wa("0x23")](Wa("0x131"))&&(n+=":"+t[Wa("0x23")](Wa("0x131"))),e[Wa("0x59")]("$marker",{"data-name":n})}}),t[Wa("0x10e")][Wa("0x27")](Wa("0x8"))[Wa("0x57")]({view:Wa("0x3d")}),t[Wa("0x10e")][Wa("0x27")](Wa("0x47"))[Wa("0xfd")]((t=>{t.on(Wa("0x139"),n(),{priority:Wa("0x9b")})})),t.conversion[Wa("0x27")]("editingDowncast")[Wa("0xfd")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[Wa("0xed")][Wa("0x106")](e.markerName);if(o)for(const t of o)t[Wa("0x82")](Wa("0xd8"))||(n[Wa("0x5")].removeClass([Wa("0x85"),Wa("0xbe"),Wa("0x133")],t),n[Wa("0x5")][Wa("0x79")]("data-suggestion",t),n[Wa("0xed")][Wa("0xca")](t,e[Wa("0x9c")]))}),{priority:Wa("0x9b")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[Wa("0x3e")](t.model[Wa("0x9e")][Wa("0x63")][Wa("0xaf")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if("suggestion"!==o)continue;const u=this[Wa("0x20")][Wa("0x89")](l);if(null!=a[Wa("0xfb")])if(Wa("0x3b")==c&&(n=n||qa(a[Wa("0xfb")],x,e,t.model[Wa("0x8b")])),a[Wa("0xfb")].isCollapsed||Wa("0xf5")==a[Wa("0xfb")][Wa("0x95")][Wa("0xd1")]||"formatBlock"==c&&!Ja(a[Wa("0xfb")])||Wa("0x15")==c&&(Xa(i=a.newRange)||(r=i)[Wa("0x41")].parent==r[Wa("0x2e")][Wa("0xe9")]&&r.start[Wa("0xfe")]))e[Wa("0xf3")](x),n=!0;else{if(!u||!u.isInContent)continue;s[Wa("0xfd")](u)}}var r,i;return s[Wa("0xb9")]>0&&(n=!!this[Wa("0x11b")](s)||n),n})),t.model[Wa("0x9e")][Wa("0xcc")]((e=>{let n=!1;for(const o of t[Wa("0xb6")][Wa("0x9e")][Wa("0x63")][Wa("0x14")]()){if(Wa("0x3")!=o[Wa("0xff")])continue;const s=o[Wa("0xe")][Wa("0x78")](o[Wa("0x108")]);if(s[Wa("0xfe")])for(const r of this[Wa("0x20")].values()){if(r.isMultiRange||!r.isInContent)continue;if(Wa("0x2a")!=r.type)continue;const i=r[Wa("0xde")]();if(i[Wa("0x41")][Wa("0x3f")]!=i[Wa("0x2e")].parent&&i[Wa("0x2e")][Wa("0x132")](o[Wa("0xe")])){const o=t.model[Wa("0x9f")](i.start,s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Wa("0xb6")][Wa("0x2d")].on(Wa("0x107"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x60")](e[Wa("0x5c")]),n=this[Wa("0x20")][Wa("0x89")](t);n&&n[Wa("0x110")](e[Wa("0x5c")])}})),t[Wa("0xb6")].document.on("change:data",(()=>{const e=Array[Wa("0x3e")](t[Wa("0xb6")][Wa("0x9e")][Wa("0x63")][Wa("0xaf")]())[Wa("0x17")]((t=>Wa("0x3d")===this[Wa("0x60")](t[Wa("0x5c")]).group));if(0===e.length)return;e.sort(((t,e)=>{const n=t[Wa("0x11")][Wa("0xf7")],o=e.data[Wa("0xf7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x41")].isBefore(o[Wa("0x41")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0x60")](t);if(null===s[Wa("0xf7")]){const e=this[Wa("0x11d")](t);o.add(e)}else{const t=this[Wa("0x20")][Wa("0x89")](e);null!==s.newRange||t[Wa("0x77")]?(n.add(t[Wa("0x11e")]),o[Wa("0xfd")](t)):this._removeSuggestion(t)}}o[Wa("0xb9")]>0&&this[Wa("0x1a")](o);for(const t of n)this[Wa("0x102")](Wa("0x39"),t)})),t.model.on(Wa("0x52"),((e,n)=>{const o=n[0];if(!this._suggestions[Wa("0xb9")])return;if(!o[Wa("0x35")])return;if(o[Wa("0x5b")][Wa("0x135")]||!o[Wa("0x5b")][Wa("0xb8")])return;let s,r;switch(o[Wa("0xff")]){case"insert":s=t[Wa("0xb6")][Wa("0xc1")](o[Wa("0xe")]),r=s[Wa("0x78")](o.howMany);break;case Wa("0x124"):s=t[Wa("0xb6")][Wa("0xc1")](o[Wa("0x68")]),r=t[Wa("0xb6")][Wa("0xc1")](o[Wa("0x4e")]);break;case Wa("0xcb"):s=t[Wa("0xb6")][Wa("0xc1")](o[Wa("0xdb")]),r=s[Wa("0x78")](o.howMany);break;default:return}const i=t[Wa("0xb6")][Wa("0x9f")](s,r);t.model[Wa("0x74")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Wa("0xbc")])continue;if("formatInline"==t.type)continue;const n=t[Wa("0x11")]&&t.data[Wa("0x130")];(Wa("0x2a")!=t[Wa("0xff")]||"split"==o[Wa("0xff")]&&!n)&&(e[Wa("0xb2")]||Wa("0x10a")==t.type&&e[Wa("0xc5")]||t[Wa("0xde")]().containsRange(i)&&this[Wa("0x11c")](t,s,r))}}))}),{priority:Wa("0x129")}),t[Wa("0xb6")].on(Wa("0xec"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[Wa("0x65")])return;if(!this.trackChangesCommand[Wa("0xa4")])return;if(o.isCollapsed)return;const r=t.model[Wa("0x8b")],{start:i,end:x}=o.getFirstRange(),a=i[Wa("0x119")]&&r[Wa("0x5e")](i[Wa("0x119")])?null:r.getNearestSelectionRange(i,"forward"),c=x[Wa("0xe9")]&&r[Wa("0x5e")](x.nodeBefore)?null:r[Wa("0xab")](x,Wa("0x10d")),l=t.model[Wa("0x9f")](a?a[Wa("0x41")]:i,c?c[Wa("0x2e")]:x);t[Wa("0xb6")][Wa("0x74")]((e=>{this[Wa("0x37")](l);const n=t[Wa("0xb6")][Wa("0x8b")][Wa("0xab")](l.start);o.is(Wa("0x1"))?e[Wa("0xf")](n):o.setTo(n)})),e[Wa("0xbb")]()}),{priority:e.priorities.normal+10}),t.model.on(Wa("0xdf"),((e,n)=>{const o=n[n[Wa("0x108")]-1];o&&o[Wa("0x6f")]||this[Wa("0x65")]||this.trackChangesCommand[Wa("0xa4")]&&(t[Wa("0xb6")][Wa("0x74")]((()=>{let o=t[Wa("0xb6")][Wa("0xdf")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o.end[Wa("0xe9")],r=t[Wa("0xb6")].schema;s&&r[Wa("0x16")](s)&&!r.isObject(s)&&(o=t.model.createRange(o[Wa("0x41")],t[Wa("0xb6")][Wa("0xc1")](s,Wa("0x2e")))),this[Wa("0x12a")](o)})),e[Wa("0xbb")]())}),{priority:Wa("0x9b")}),this[Wa("0x25")][Wa("0x10b")][Wa("0xfd")](Wa("0x62"),this[Wa("0xba")]),this[Wa("0x11a")]("trackChanges");const o=new b(t,this[Wa("0x20")]);t.commands[Wa("0xfd")](Wa("0xf1"),o),this[Wa("0x11a")]("acceptSuggestion");const s=new C(t,this[Wa("0x20")]);t.commands[Wa("0xfd")](Wa("0xdd"),s),this.enableCommand(Wa("0xdd")),t.commands[Wa("0xfd")](Wa("0x45"),new F(t,o,this[Wa("0x20")])),this[Wa("0x11a")](Wa("0x45")),t[Wa("0x10b")].add(Wa("0x83"),new F(t,s,this[Wa("0x20")])),this[Wa("0x11a")](Wa("0x83")),t[Wa("0x10b")][Wa("0xfd")]("acceptSelectedSuggestions",new U(t,o,this[Wa("0x20")])),this.enableCommand(Wa("0xcf")),t[Wa("0x10b")][Wa("0xfd")](Wa("0xc6"),new U(t,s,this._suggestions)),this[Wa("0x11a")](Wa("0xc6"));const r=t[Wa("0xef")][Wa("0x89")](Wa("0xd2"));this[Wa("0xd")](r,Wa("0x9a"),((t,{threadId:e})=>{const n=this[Wa("0x20")].get(e);n&&n[Wa("0x80")]&&1===n.commentThread.length&&this[Wa("0xd6")](e,{hasComments:!0})}),{priority:Wa("0x115")}),this[Wa("0xd")](r,"removeComment",((t,{threadId:e})=>{const n=this[Wa("0x20")][Wa("0x89")](e);n&&n[Wa("0x80")]&&!n[Wa("0x80")].length&&this[Wa("0xd6")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[Wa("0xbf")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Wa("0xbf")]=t}get[Wa("0xc2")](){return this[Wa("0xbf")]}[Wa("0x10")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0x20")][Wa("0xe4")]())t&&!e[Wa("0x77")]||n[Wa("0x6c")](e);return e?n[Wa("0x66")]((t=>t[Wa("0x36")]())):n}[Wa("0x56")](t){const n=this[Wa("0x20")][Wa("0x89")](t);if(!n)throw new e.CKEditorError(Wa("0xd0"),this);return n}hasSuggestion(t){return this[Wa("0x20")][Wa("0x0")](t)}[Wa("0xb4")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0xff")][Wa("0x124")](":"),i=this[Wa("0x20")][Wa("0x89")](n)||this[Wa("0x94")](s,r,n,e,o);if(this[Wa("0x38")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[Wa("0x44")]=t.createdAt,i[Wa("0xce")]=!0,o&&o[Wa("0x7")]){const t=o["@external"],e=this[Wa("0xbd")](t[Wa("0x103")]);i[Wa("0xf6")]=t[Wa("0x44")],i[Wa("0x81")]=e,i.isExternal=!0}else i[Wa("0xf6")]=t[Wa("0x44")];switch(t[Wa("0x11")]&&(i[Wa("0x11")]=t[Wa("0x11")]),t.attributes&&(i[Wa("0x28")]=t[Wa("0x28")]),this[Wa("0xbf")]&&this[Wa("0xbf")][Wa("0xb7")]||(i[Wa("0xc4")]=!0),this[Wa("0xa8")].get(i)){case"notReady":this[Wa("0xa8")][Wa("0xf8")](i,"dataReady");break;case Wa("0x50"):i[Wa("0x77")]?(this[Wa("0x1a")](new Set([i])),this[Wa("0x11b")](new Set([i])),this[Wa("0xa8")].set(i,Wa("0xc7")),this[Wa("0x102")](Wa("0x100"),i)):this[Wa("0xa8")][Wa("0xf8")](i,Wa("0x91"))}return i}[Wa("0xf1")](t){this[Wa("0x6f")]((()=>{this[Wa("0x25")][Wa("0xb6")].change((()=>{for(const e of t[Wa("0x51")]())e[Wa("0xd5")]()}))}))}[Wa("0xdd")](t){this.forceDefaultExecution((()=>{this.editor[Wa("0xb6")][Wa("0x74")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Wa("0x53")]()}))}))}[Wa("0x11a")](t,n){const o=this.editor[Wa("0x10b")][Wa("0x89")](t);if(!o)throw new e.CKEditorError(Wa("0x12c"),this,{commandName:t});this[Wa("0x7e")][Wa("0xfd")](o),n&&o.on("execute",((t,e)=>{this[Wa("0xba")][Wa("0xa4")]&&(this[Wa("0x65")]||e[Wa("0x108")]>0&&e[e.length-1]&&e[e[Wa("0x108")]-1][Wa("0x6f")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[Wa("0x6f")](t){let n,o;const s=this[Wa("0x65")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0x65")]=!1),o&&e.CKEditorError[Wa("0xf0")](o,this),n}[Wa("0x12a")](t,n=null,o={}){if(t[Wa("0xeb")])return null;const s=this[Wa("0x25")].plugins[Wa("0x89")](Wa("0x7f")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,Wa("0x10a")))if(s.isOwn){if(!s[Wa("0x4a")]){if(s[Wa("0xb2")]){if(!this[Wa("0x24")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this._breakSuggestionMarker(e,t[Wa("0x41")],t[Wa("0x2e")]);break}if(n==e[Wa("0xc")]&&tc(e,o)){const n=e.getFirstRange();return n[Wa("0x41")][Wa("0x132")](t[Wa("0x2e")])?this[Wa("0x136")](e,this._model[Wa("0x9f")](t[Wa("0x41")],n[Wa("0x2e")])):this._setSuggestionRange(e,this._model.createRange(n[Wa("0x41")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0xe2")+n:Wa("0x10a"),a=this[Wa("0xe6")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0xc9")](x,r,i,t),a}[Wa("0xa2")](t,n=Wa("0x123"),o={}){const s=this[Wa("0x25")][Wa("0xef")].get(Wa("0x7f")).me,r=this[Wa("0x90")][Wa("0x73")](Wa("0x10a"),n,"join");for(const e of this[Wa("0x10")]())if(e[Wa("0x81")].id==s.id&&"insertion"==e[Wa("0xff")]&&e[Wa("0xc")]==n&&tc(e,o)&&(r(e.getRanges(),t)||r(t,e[Wa("0x3c")]()))){for(const n of t)e[Wa("0x29")](n);return e}for(const{suggestion:e,meta:n}of this[Wa("0x72")](t,Wa("0x10a"))){if(!n[Wa("0xc5")])continue;if(!this[Wa("0x24")]&&n[Wa("0xb2")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[Wa("0x3c")]())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Wa("0xe2")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0xc9")](a,i,x,e,Zo[Wa("0x13a")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0xeb")])return null;if(Wa("0x69")===this._trackFormatChanges){const e=this._suggestionFactory[Wa("0x73")]("formatInline",o,Wa("0xd5"));return this[Wa("0x6f")]((()=>e([t],n,s))),null}const r=this.editor[Wa("0xef")].get(Wa("0x7f")).me,i=[];if(Wa("0x12e")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Wa("0x72")](t,Wa("0x10a")))n.isOwn&&!n[Wa("0x6")]&&i[Wa("0x6c")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Wa("0xa")](o);e&&n[Wa("0x6c")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Wa("0xf4")](t);n[Wa("0x71")](e,1,...o),e+=o[Wa("0x108")]}}return n}(t,i);x[Wa("0x108")]&&this._model[Wa("0x74")]((()=>{for(const t of x){const e=this[Wa("0x90")].getSuggestionCallback(Wa("0x3b"),o,Wa("0xd5"));this[Wa("0x6f")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[Wa("0x2e")];for(const{suggestion:e,meta:n}of this[Wa("0x72")](t,Wa("0x3b"))){if(!n[Wa("0xc5")])continue;if(e[Wa("0xc")]!=o)continue;if(!tc(e,s))continue;const r=e[Wa("0xde")]();if(r[Wa("0xe8")](t,!0))return null;x=x[Wa("0x104")](r[Wa("0x41")])?x:r[Wa("0x41")],a=a[Wa("0xfa")](r[Wa("0x2e")])?a:r[Wa("0x2e")],i?r[Wa("0x41")][Wa("0x104")](i[Wa("0xde")]()[Wa("0x41")])?(i[Wa("0xc3")](),i=e):e.removeMarkers():i=e}const c=this[Wa("0x4b")][Wa("0x9f")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0xe6")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0xc9")](Wa("0x8e")+o,t,i,c)}}return null}[Wa("0xa5")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[Wa("0x8f")]),n.multipleBlocks=t.is("range"),s=s||$a(n);const i=o[Wa("0x66")]((t=>Qa(t,this[Wa("0x4b")]))),x=t.is("range")?t:Qa(t,this._model);if(Wa("0x69")===this._trackFormatChanges){const t=this[Wa("0x90")][Wa("0x73")](Wa("0x2a"),s,Wa("0xd5"));return this[Wa("0x6f")]((()=>t([x],n,r))),null}i[Wa("0x6c")](x);let a=!0;for(const t of i)if(!this[Wa("0x2c")](t)){a=!1;break}if(a&&Wa("0x12e")!==this[Wa("0x64")]){const t=this[Wa("0x90")][Wa("0x73")](Wa("0x2a"),s,Wa("0xd5"));return this[Wa("0x6f")]((()=>t([x],n,r))),null}let c=null,l=x[Wa("0x41")],u=x[Wa("0x2e")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,Wa("0x2a"))){if(!e[Wa("0xc5")])continue;if(e[Wa("0x4a")]||e.containsRangeInObject||e[Wa("0x6")])continue;if(t.data[Wa("0x67")]!=n.formatGroupId)continue;if(!tc(t,r))continue;const o=t[Wa("0xde")]();if(t[Wa("0xc")]==s){if(o.containsRange(x,!0))return null;l=l[Wa("0x104")](o[Wa("0x41")])?l:o[Wa("0x41")],u=u[Wa("0xfa")](o[Wa("0x2e")])?u:o[Wa("0x2e")],c?o.start[Wa("0x104")](c[Wa("0xde")]()[Wa("0x41")])?(c.removeMarkers(),c=t):t[Wa("0xc3")]():c=t}else{const e=x[Wa("0xa")](o);this[Wa("0x2b")](t,e)}}const d=this[Wa("0x25")][Wa("0xef")][Wa("0x89")](Wa("0x7f")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Wa("0x136")](c,this[Wa("0x4b")][Wa("0x9f")](l,u)),c;{const t=this[Wa("0xe6")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:f,attributes:r});return this._addSuggestionMarker(Wa("0x88")+s,g,f,this._model.createRange(l,u)),t}}[Wa("0x93")](t,n,o=[],s=null,r={}){n[Wa("0x67")]||(n[Wa("0x67")]=n[Wa("0x8f")]);const i=t[0];n[Wa("0x130")]=i.is(Wa("0x1c")),s=s||$a(n);const x=o.map((t=>Qa(t,this[Wa("0x4b")]))),a=i.is("range")?t:t.map((t=>Qa(t,this._model)));if(Wa("0x69")===this[Wa("0x64")]){const t=this._suggestionFactory[Wa("0x73")]("formatBlock",s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0x2c")](t)){c=!1;break}if(c&&Wa("0x12e")!==this._trackFormatChanges){const t=this[Wa("0x90")][Wa("0x73")]("formatBlock",s,Wa("0xd5"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Wa("0x25")][Wa("0xef")][Wa("0x89")]("Users").me;for(const t of this[Wa("0x10")]()){if(t[Wa("0x81")].id!=l.id)continue;if(Wa("0x2a")!=t[Wa("0xff")]||t[Wa("0x11")][Wa("0x67")]!=n[Wa("0x67")])continue;if(!tc(t,r))continue;const e=t[Wa("0xc")]==s;for(let n=0;n<a[Wa("0x108")];n++){const o=a[n];for(const s of t[Wa("0xe3")]()){const r=s[Wa("0x75")]();if(o[Wa("0x132")](r)){e?(a[Wa("0x71")](n,1),n--):t[Wa("0xf3")](s[Wa("0x5c")]);break}}}}if(0==a[Wa("0x108")])return null;const u=this[Wa("0x90")].getSuggestionCallback(Wa("0x2a"),s,"join");for(const t of this.getSuggestions())if(t[Wa("0x81")].id==l.id&&Wa("0x2a")==t[Wa("0xff")]&&t[Wa("0x11")].formatGroupId==n[Wa("0x67")]&&t.subType==s&&tc(t,r)&&(u(t[Wa("0x3c")](),a)||u(a,t[Wa("0x3c")]()))){for(const e of a)t[Wa("0x29")](e);return t}const d=(0,e.uid)(),g=l.id,f=Wa("0x88")+s,m=this[Wa("0xe6")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Zo[Wa("0x13a")]());return m}markDeletion(t,n=null,o={}){if(t[Wa("0xeb")])return null;const s=this[Wa("0x25")][Wa("0xef")][Wa("0x89")](Wa("0x7f")).me,r=new i.LiveRange(t.start,t[Wa("0x2e")]);for(const{suggestion:t,meta:e}of this[Wa("0x72")](r,Wa("0x10a")))if(e[Wa("0xc5")]&&!e[Wa("0x4a")])if(t.isMultiRange){const e=t[Wa("0x3c")]().filter((t=>Wa("0xf5")!=t[Wa("0x95")].rootName));if(e.every((t=>r[Wa("0xe8")](t,!0)))&&t.discard(),e.some((t=>t[Wa("0xe8")](r,!0)))){const t=this[Wa("0x90")][Wa("0x73")](Wa("0x15"),n,Wa("0xd5"));return this[Wa("0x6f")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0xa")](t[Wa("0xde")]());null!==e&&t._onDiscard([e],null,o)}if(r[Wa("0x31")](),r[Wa("0xeb")]||Wa("0xf5")==r[Wa("0x95")][Wa("0xd1")])return null;let x=null,a=r[Wa("0x41")],c=r[Wa("0x2e")];const l=this[Wa("0x72")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[Wa("0x4b")][Wa("0x9f")](a,c);if(e[Wa("0xc5")]&&(this._mergeNestedSuggestions||!e[Wa("0xb2")]&&!e[Wa("0x6")]))if(t[Wa("0xbc")]){if(!tc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[Wa("0xe8")](n,!0))return t;n[Wa("0xe8")](o)||(e=!1)}e&&t[Wa("0x53")]()}else{const e=t[Wa("0xde")]();if(e[Wa("0xe8")](n,!0))return t;if(!tc(t,o)){n[Wa("0xe8")](e)?t[Wa("0xc3")]():e[Wa("0x125")](a)?a=e.end:e[Wa("0x125")](c)&&(c=e[Wa("0x41")]);continue}a=a[Wa("0x104")](e[Wa("0x41")])?a:e[Wa("0x41")],c=c[Wa("0xfa")](e[Wa("0x2e")])?c:e.end,o=Object.assign({},t[Wa("0x28")]),x?e[Wa("0x41")].isBefore(x[Wa("0xde")]()[Wa("0x41")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this._setSuggestionRange(x,this._model[Wa("0x9f")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x4b")].createRange(a,c),i=s.id,x=n?Wa("0x105")+n:Wa("0x15"),l=this[Wa("0xe6")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[Wa("0x30")](t,n=Wa("0x123"),o={}){const s=this[Wa("0x25")][Wa("0xef")][Wa("0x89")](Wa("0x7f")).me,r=t[Wa("0x66")]((t=>new i.LiveRange(t[Wa("0x41")],t[Wa("0x2e")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Wa("0x72")](r,Wa("0x10a")))e[Wa("0xc5")]&&!e[Wa("0x4a")]&&x[Wa("0xfd")](t);for(const e of x)if(e.isMultiRange){const s=e[Wa("0x3c")]();if((!e[Wa("0x28")]||!e[Wa("0x28")][Wa("0x2")])&&s[Wa("0x32")]((t=>r[Wa("0x4f")]((e=>e[Wa("0xe8")](t,!0)))))&&e[Wa("0x53")](),r[Wa("0x32")]((t=>s[Wa("0x4f")]((e=>e[Wa("0xe8")](t,!0)))))){const e=this._suggestionFactory[Wa("0x73")](Wa("0x15"),n,Wa("0xd5"));return this[Wa("0x6f")]((()=>e(t,null,o))),null}}else{const t=e[Wa("0xde")]();if(r[Wa("0x4f")]((e=>e[Wa("0xe8")](t,!0)))&&e[Wa("0x53")](),r[Wa("0x32")]((e=>t[Wa("0xe8")](e,!0)))){const t=this[Wa("0x90")].getSuggestionCallback(Wa("0x15"),n,Wa("0xd5"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Wa("0x73")](Wa("0x15"),n,Wa("0x8a"));let c=null;for(const t of this[Wa("0x10")]())if(t[Wa("0x81")].id==s.id&&t[Wa("0x77")]&&"deletion"==t[Wa("0xff")]&&t[Wa("0xc")]==n&&tc(t,o)&&(a(t[Wa("0x3c")](),r)||a(r,t[Wa("0x3c")]())))if(c){if(t[Wa("0x80")]&&t.commentThread[Wa("0x108")])continue;for(const e of t[Wa("0x3c")]())c[Wa("0x12b")](e)||c[Wa("0x29")](e);t[Wa("0xc3")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[Wa("0xae")]();for(const{suggestion:t,meta:e}of this[Wa("0x72")](r,Wa("0x15")))e[Wa("0xc5")]&&(this[Wa("0x24")]||!e.containsRangeInObject&&!e.isInsideObject)&&tc(t,o)&&x[Wa("0xfd")](t);for(const t of x){const e=t.getRanges();if((!o||!o.skipNestingCheck)&&r[Wa("0x32")]((t=>e[Wa("0x4f")]((e=>e[Wa("0xe8")](t,!0))))))return t;(!t[Wa("0x28")]||!t[Wa("0x28")][Wa("0x2")])&&e[Wa("0x32")]((t=>r.some((e=>e[Wa("0xe8")](t,!0)))))&&t[Wa("0x53")]()}const l=(0,e.uid)(),u=s.id,d=Wa("0x105")+n,g=this[Wa("0xe6")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Wa("0x31")](),t[Wa("0xeb")]||Wa("0xf5")==t[Wa("0x95")][Wa("0xd1")]||this[Wa("0xc9")](d,l,u,t,Zo[Wa("0x13a")]());return g}[Wa("0x136")](t,e){const n=t[Wa("0x54")]();this[Wa("0x4b")][Wa("0x74")]((t=>{t[Wa("0x137")](n,{range:e})}))}[Wa("0x38")](t){const e=t.id,n=this[Wa("0x25")][Wa("0xf2")][Wa("0x89")]("collaboration.channelId");this._commentsRepository[Wa("0x99")](e)||this[Wa("0x7c")][Wa("0x12f")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository.getCommentThread(e);o[Wa("0xb5")]("isRemovable"),o.isRemovable=!1,t[Wa("0x80")]=o}[Wa("0x126")](t,n,o,s){if(t[Wa("0xff")]!=n||t[Wa("0xc")]!=o||t[Wa("0x10c")].id!=s)throw this.editor[Wa("0x86")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Wa("0x2b")](t,n){const o=t[Wa("0xde")]();if(n[Wa("0x132")](o))t.removeMarkers();else if(o[Wa("0xe8")](n)){const s=this._model[Wa("0xc1")](n[Wa("0x41")].nodeBefore,Wa("0x2e"));this[Wa("0x136")](t,this._model.createRange(o[Wa("0x41")],s));const r=(0,e.uid)(),i=t.creator.id,x=t[Wa("0xff")]+":"+t.subType;this[Wa("0xe6")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Wa("0x28")]});const a=this[Wa("0x4b")][Wa("0xc1")](n[Wa("0x2e")][Wa("0x3f")],Wa("0x43")),c=this[Wa("0x4b")][Wa("0x9f")](a,o.end);this[Wa("0xc9")](x,r,i,c)}else if(o.containsPosition(n[Wa("0x41")])){const e=this[Wa("0x4b")][Wa("0xc1")](n.start[Wa("0xe9")],Wa("0x2e"));this[Wa("0x136")](t,this[Wa("0x4b")][Wa("0x9f")](o[Wa("0x41")],e))}else{const e=this[Wa("0x4b")].createPositionAt(n.end[Wa("0x3f")],Wa("0x43"));this[Wa("0x136")](t,this[Wa("0x4b")][Wa("0x9f")](e,o.end))}}[Wa("0x2c")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Wa("0x10a"))){if(!n[Wa("0xc5")])continue;const o=e[Wa("0x3c")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[Wa("0xdc")](t){const n=this[Wa("0x25")].plugins.get("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Wa("0xbd")](t){const e=this[Wa("0x25")][Wa("0xef")].get(Wa("0x7f")),n=(0,r.hashObject)(Wa("0xe5")+t);return e[Wa("0xa1")](n)||e[Wa("0x121")]({id:n,name:t})}[Wa("0x94")](t,e,n,o,s){const r=this[Wa("0xdc")](o),i=this[Wa("0x90")][Wa("0xda")](t,e,n,r,s,(t=>this[Wa("0xd6")](n,{attributes:t})));return this[Wa("0xd")](i,Wa("0xd5"),(()=>{this[Wa("0xd6")](n,{state:Wa("0xc8")})}),{priority:Wa("0x9b")}),this[Wa("0xd")](i,Wa("0x53"),(()=>{this._updateSuggestionData(n,{state:Wa("0xa7")})}),{priority:Wa("0x9b")}),this[Wa("0x20")][Wa("0xf8")](n,i),this[Wa("0xa8")][Wa("0xf8")](i,Wa("0xee")),i}_splitMarkerName(t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[Wa("0x108")]>=5?e[2]:null,id:e[Wa("0x108")]<5?e[2]:e[3],authorId:e[Wa("0x108")]<5?e[3]:e[4],markerCount:6==e[Wa("0x108")]?e[5]:null}}[Wa("0x11c")](t,n,o){const s=t.getFirstRange(),r=s[Wa("0x41")],i=s[Wa("0x2e")];this._setSuggestionRange(t,this[Wa("0x4b")][Wa("0x9f")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Wa("0xff")]+(t[Wa("0xc")]?":"+t[Wa("0xc")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x28")],data:t.data}),Wa("0x2a")==t[Wa("0xff")]&&(o=this[Wa("0x4b")].createPositionBefore(o[Wa("0x3f")])),this[Wa("0xc9")](c,x,a,this[Wa("0x4b")][Wa("0x9f")](o,i))}[Wa("0x72")](t,e=null){const n=[],o=this.editor[Wa("0xef")][Wa("0x89")]("Users").me;Array[Wa("0x122")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[Wa("0x77")])continue;if(e&&s[Wa("0xff")]!=e)continue;let r=!1;for(const e of s[Wa("0x3c")]()){for(const i of t){const t=i.start[Wa("0x132")](e.end)||i[Wa("0x2e")][Wa("0x132")](e[Wa("0x41")]);if(t||i[Wa("0xa")](e)){const x=i[Wa("0xe8")](e)&&Ka(this[Wa("0x4b")][Wa("0x8b")],e.start,i),a=e.containsRange(i)&&Ka(this[Wa("0x4b")][Wa("0x8b")],i.start,e);n[Wa("0x6c")]({suggestion:s,meta:{isOwn:o==s[Wa("0x81")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Wa("0x4b")][Wa("0x74")]((r=>{let i=Wa("0x92")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0x96")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0x7d")](t){const e=t[Wa("0x116")],n=t.next;t[Wa("0x116")]=null,null!=e&&(e[Wa("0x112")]=null),t[Wa("0x112")]=null,null!=n&&(n.previous=null),"ready"==this[Wa("0xa8")][Wa("0x89")](t)&&(this[Wa("0xa8")].set(t,Wa("0x91")),this.fire(Wa("0xcd"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[Wa("0xb4")](t);if(this._adapter&&this[Wa("0xbf")][Wa("0xb7")]){const s=this[Wa("0x25")][Wa("0xef")].get("PendingActions"),r=o[Wa("0x134")],i=o[Wa("0xc")]?o[Wa("0xff")]+":"+o.subType:o[Wa("0xff")],x=this[Wa("0x25")].locale,a=s.add(Yo(x,Wa("0x1e"))),c={id:n,type:i,hasComments:r,data:t[Wa("0x11")]||null,originalSuggestionId:t[Wa("0xe1")]||null,attributes:o.attributes};this._adapter.addSuggestion(c).then((t=>{o[Wa("0xc4")]=!0,s.remove(a),t&&t.createdAt&&(this[Wa("0x20")][Wa("0x89")](n).createdAt=t.createdAt)}))[Wa("0x18")]((t=>{throw(0,e.logWarning)(Wa("0x12d")),this[Wa("0x25")][Wa("0xb6")][Wa("0xc0")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this._suggestions.delete(o.id),this[Wa("0xa8")][Wa("0x6d")](o),t}))}return o}[Wa("0xd6")](t,e){const n=this[Wa("0x25")][Wa("0xef")].get(Wa("0xf9")),o=this[Wa("0x56")](t);if(this[Wa("0xbf")]&&this[Wa("0xbf")][Wa("0xb")])if(o[Wa("0xc4")]){const o=n.add(Yo(this[Wa("0x25")][Wa("0x4")],"PENDING_ACTION_SUGGESTION"));this[Wa("0xbf")][Wa("0xb")](t,e)[Wa("0x7a")]((()=>{n.remove(o)}))}else o.on(Wa("0x58"),(()=>{this[Wa("0xd6")](t,e)}))}_getSuggestionData(t){if(!this[Wa("0xbf")]||!this[Wa("0xbf")][Wa("0x56")])throw new e.CKEditorError(Wa("0x11f"),this);return this[Wa("0xbf")].getSuggestion(t)}[Wa("0x11d")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x60")](t),r=this[Wa("0x20")][Wa("0x89")](e)||this[Wa("0x94")](n,o,e,s,{});switch(this[Wa("0x126")](r,n,o,s),this[Wa("0xa8")][Wa("0x89")](r)){case Wa("0xee"):this[Wa("0x10f")](e)[Wa("0x7a")]((t=>{let n=Promise.resolve();t[Wa("0x134")]&&(n=this._commentsRepository[Wa("0xb3")]({channelId:this[Wa("0x25")].config[Wa("0x89")](Wa("0x8c")),threadId:e})),n[Wa("0x7a")]((()=>{this.addSuggestionData(t)[Wa("0xc4")]=!0}))})),this[Wa("0xa8")][Wa("0xf8")](r,Wa("0x50"));break;case Wa("0x91"):this[Wa("0xd6")](e,{state:Wa("0x6e")});case Wa("0x76"):this[Wa("0xa8")][Wa("0xf8")](r,"ready"),this[Wa("0x102")](Wa("0x100"),r);break;case"ready":this[Wa("0x102")](Wa("0x39"),r)}return r[Wa("0x110")](t),r}_refreshSuggestionsChain(t){const e=Array[Wa("0x3e")](t)[Wa("0x17")]((t=>!t[Wa("0xbc")])),n=this[Wa("0x10")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n[Wa("0x17")]((e=>!t.has(e))),s=new Map(n[Wa("0x66")]((t=>[t,this._suggestionFactory[Wa("0x73")](t.type,t.subType,Wa("0x5a"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x108")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x108")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0x108")];t++){const n=e[t];!x[Wa("0x0")](n)&&n[Wa("0x116")]&&(n[Wa("0x116")][Wa("0x112")]===n&&(n[Wa("0x116")].next=null),n[Wa("0x116")]=null),!i[Wa("0x0")](n)&&n.next&&(n[Wa("0x112")][Wa("0x116")]===n&&(n[Wa("0x112")][Wa("0x116")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Wa("0x108")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Wa("0x116")]=n[0],i[Wa("0xfd")](n[0]),x[Wa("0xfd")](n[1]))}}function c(t,e){if(t[Wa("0x81")].id!==e[Wa("0x81")].id)return null;const n=s.get(t)(t,e,r[Wa("0x89")](t),r[Wa("0x89")](e));return n&&s[Wa("0x89")](e)(t,e,r.get(t),r.get(e))?n[1].commentThread&&n[1][Wa("0x80")][Wa("0x108")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[Wa("0x10")]({skipNotAttached:!0}),o=n[Wa("0x17")]((e=>!t[Wa("0x0")](e))),s=new Map(e.map((t=>[t,this[Wa("0x90")][Wa("0x73")](t[Wa("0xff")],t[Wa("0xc")],"join")]))),r=new Map(n[Wa("0x66")]((t=>[t,t[Wa("0x3c")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x108")];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.type!==e.type||o[Wa("0x81")].id!==e.author.id||o[Wa("0xc")]!==e[Wa("0xc")])continue;if(!Ya(e,o))continue;const x=s.get(e),a=r.get(e),c=r.get(o),l=e[Wa("0x80")]&&e.commentThread[Wa("0x108")],u=o[Wa("0x80")]&&o[Wa("0x80")][Wa("0x108")];if(!l&&x(c,a))return t[Wa("0x22")](o,e),r[Wa("0x6d")](e),!0;if(!u&&x(a,c))return t[Wa("0x22")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[Wa("0x3c")]())t[Wa("0x29")](n);else{const n=e[Wa("0xde")]()[Wa("0x2e")];this[Wa("0x136")](t,this[Wa("0x4b")][Wa("0x9f")](t[Wa("0xde")]()[Wa("0x41")],n))}e.removeMarkers()}}class Va{constructor(t){this._editor=t,this[Wa("0x4b")]=t[Wa("0xb6")],this[Wa("0x101")]=new Map,this[Wa("0x5f")]=new Map,this._registerDefaultCallbacks()}[Wa("0xda")](t,e,n,o,s,r){return new Zo(this[Wa("0x4b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x73")](t,e,Wa("0xd5"))(...n),onDiscard:(...n)=>this[Wa("0x73")](t,e,Wa("0x53"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Wa("0xf8")](s,o)}[Wa("0x73")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Wa("0x89")](o)||this._defaultCallbacks[Wa("0x89")](t+":"+n)}[Wa("0x9")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[Wa("0x104")](e.start)?1:-1)),this[Wa("0x4b")][Wa("0x74")]((e=>{for(const n of t){let t;t=n[Wa("0x2e")].isAtEnd&&n[Wa("0x2e")][Wa("0x3f")]==n[Wa("0x41")].nodeAfter?e.createSelection(n[Wa("0x41")][Wa("0x119")],"on"):e[Wa("0xd9")](n),this[Wa("0x4b")][Wa("0xec")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x4b")][Wa("0x74")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0x66")]((t=>(Xa(t)&&(t=this[Wa("0x4b")].createRange(t[Wa("0x2e")])),t)))[Wa("0x17")]((t=>Wa("0xf5")!==t.root[Wa("0xd1")]));if(r[Wa("0x108")]<1)return;const x=Array.from(this._model[Wa("0x9e")][Wa("0x4d")][Wa("0x3c")]())[Wa("0x66")]((t=>i.LiveRange[Wa("0xe0")](t)));n[Wa("0xf")](r);for(const t of this[Wa("0x114")][Wa("0x10b")].commands())t[Wa("0x70")]();s.push({forceDefaultExecution:!0}),this[Wa("0x114")].execute(o,...s);const a=x[Wa("0x17")]((t=>Wa("0xf5")!=t[Wa("0x95")].rootName));a[Wa("0x108")]>0&&n.setSelection(a);for(const t of x)t[Wa("0x31")]()}))},o=(t,e)=>1==t[Wa("0x108")]&&1==e[Wa("0x108")]&&t[0].end[Wa("0x132")](e[0][Wa("0x41")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x4b")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks.set(Wa("0x48"),t),this[Wa("0x5f")].set(Wa("0x9d"),e),this[Wa("0x5f")][Wa("0xf8")]("insertion:join",o),this._defaultCallbacks[Wa("0xf8")](Wa("0x19"),s),this._defaultCallbacks.set(Wa("0x117"),e),this._defaultCallbacks[Wa("0xf8")](Wa("0xd4"),t),this[Wa("0x5f")][Wa("0xf8")](Wa("0x1b"),o),this[Wa("0x5f")][Wa("0xf8")](Wa("0xd3"),s),this[Wa("0x5f")].set("formatInline:accept",n),this[Wa("0x5f")][Wa("0xf8")](Wa("0x12"),t),this[Wa("0x5f")][Wa("0xf8")](Wa("0x26"),o),this[Wa("0x5f")][Wa("0xf8")](Wa("0x61"),t),this[Wa("0x5f")].set(Wa("0xb1"),n),this[Wa("0x5f")][Wa("0xf8")](Wa("0xa9"),t),this._defaultCallbacks[Wa("0xf8")]("formatBlock:join",o),this[Wa("0x5f")][Wa("0xf8")](Wa("0xaa"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x3f")][Wa("0x6a")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Wa("0x118")](o))return!1;if(t[Wa("0xa0")](o)||t[Wa("0x5e")](o))return!0}return!1}function Xa(t){return t.end.parent==t.start[Wa("0x119")]&&t[Wa("0x2e")].isAtStart}function qa(t,e,n,o){const s=t=>!t.item.is(Wa("0x120"))&&!o[Wa("0xa0")](t[Wa("0x2f")]),r=t.start[Wa("0x5d")](s),i=t.end[Wa("0x5d")](s,{direction:Wa("0x10d")});return!(t[Wa("0x41")][Wa("0x132")](r)&&t[Wa("0x2e")][Wa("0x132")](i)||(r[Wa("0x104")](i)?n[Wa("0x137")](e,{range:n.createRange(r,i)}):n[Wa("0xf3")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Wa("0x41")][Wa("0x119")];return e&&e.is(Wa("0x21"))}function Qa(t,e){const n=e[Wa("0x8b")].isObject(t)||e[Wa("0x8b")][Wa("0x109")](t);return e[Wa("0x9f")](e[Wa("0xc1")](t,Wa("0xe7")),n?e.createPositionAfter(t):e[Wa("0xc1")](t,Wa("0x2e")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[Wa("0x2e")][Wa("0x132")](o.start))return!0;if(t[Wa("0xff")]!=e[Wa("0xff")])return!1;if(!n[Wa("0x2e")].isTouching(o[Wa("0x41")]))return!1;const r=s[Wa("0x9f")](n[Wa("0x2e")],o.start)[Wa("0x6b")]();for(const t of r)if([Wa("0x113"),Wa("0x34")][Wa("0x40")](t.type)&&s.schema[Wa("0x5e")](t.item))return!1;return!0}function Ya(t,e){return!(!t[Wa("0xce")]||!e[Wa("0xce")])&&Go(t[Wa("0x28")],e[Wa("0x28")])}function tc(t,e){const n=ec(t[Wa("0x28")]),o=ec(e);if(!t[Wa("0xce")])return!1;for(const t of Object[Wa("0x4c")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[Wa("0x1f")],e}const nc=["plugins","commands","isEnabled","canAccept","unbind","_removePendingAction","PENDING_ACTION_SUGGESTION","_pendingAction","isDirty","commentThreadController","PendingActions","model","change:isDirty","bind","execute","canEditAt","getRanges","destroy","_discardCommand","canDiscard","view","discardSuggestion","_setPendingAction","remove","listenTo","add","get","acceptSuggestion","_acceptCommand","_editor"];var oc,sc;oc=nc,sc=290,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x15")]=e,this[rc("0x0")]=n,this[rc("0x13")]=o,this[rc("0x9")]=t,this[rc("0x8")]=t[rc("0xb")][rc("0x6")](rc("0x7")),this[rc("0x1c")]=t[rc("0xb")][rc("0x6")](rc("0x1")),this[rc("0x0")][rc("0x17")](rc("0xc")).to(this[rc("0x8")],this[rc("0x1c")],((t,e)=>t||e)),this.view.bind(rc("0xd")).to(this[rc("0x8")],"isEnabled",(t=>t&&this._editor[rc("0x15")].canEditAt(e[rc("0x1a")]()))),this[rc("0x0")][rc("0x17")](rc("0x1d")).to(this[rc("0x1c")],rc("0xc"),(t=>t&&this._editor[rc("0x15")][rc("0x19")](e[rc("0x1a")]()))),this[rc("0x11")]=null,n.isDirty&&this[rc("0x2")](),this.listenTo(n,rc("0x7"),(()=>this[rc("0x7")]())),this.listenTo(n,rc("0x1"),(()=>this.discardSuggestion())),this[rc("0x4")](n,rc("0x16"),(()=>{n[rc("0x12")]?this[rc("0x2")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[rc("0x18")](this[rc("0x15")].id)}[rc("0x1")](){this[rc("0x1c")][rc("0x18")](this[rc("0x15")].id)}[rc("0x1b")](){this[rc("0x0")][rc("0xe")]("isEnabled"),this[rc("0x0")][rc("0xe")](rc("0xd")),this.view[rc("0xe")](rc("0x1d")),this.stopListening(),this[rc("0x13")][rc("0x1b")](),this._pendingAction&&this[rc("0xf")]()}[rc("0x2")](){const t=Yo(this._editor.locale,rc("0x10"));this[rc("0x11")]=this._editor[rc("0xa")][rc("0x6")](rc("0x14"))[rc("0x5")](t)}_removePendingAction(){null!==this._pendingAction&&this[rc("0x9")][rc("0xa")][rc("0x6")](rc("0x14"))[rc("0x3")](this._pendingAction),this[rc("0x11")]=null}}const xc=["isReadOnly","assign","_localUser","removeComment","focus","authoredAt","disableComments","element","editor","isEnabled","updateComment","commentThreadInputView","delegate","descriptionParts","setData","bind","destroy","_config","commentsListView","fire","isActive","disabledSubmit","showInput","_model","canAccept","_createCommentViews","length","set","_createCommentThreadInputView","isDirty","hasDirtyComment","commentThread","addComment","locale","value","commentInputView"];var ac,cc;ac=xc,cc=187,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xb")]=null,this[lc("0x4")]=null,this[lc("0x14")](lc("0xd"),!1),this[lc("0x14")](lc("0x22"),e[lc("0x22")]),this.bind("authoredAt").to(e),this[lc("0x14")](lc("0x6"),[]),this.set("isDirty",!1),this[lc("0x14")](lc("0x2"),!1),this[lc("0x14")](lc("0x11"),!1),this.set("canDiscard",!1),this._model=e,this[lc("0x1f")]=n,this[lc("0xa")]=o,o[lc("0x23")]?this[lc("0x14")](lc("0x13"),1):this[lc("0x12")]()}focus(){this[lc("0x0")][lc("0x21")]()}destroy(){this.commentsListView&&this[lc("0xb")][lc("0x9")](),this[lc("0x4")]&&this[lc("0x4")][lc("0x9")](),super[lc("0x9")]()}_createCommentViews(){const{CommentsListView:t}=this[lc("0xa")];this[lc("0xb")]=new t(this.locale,this[lc("0x10")].commentThread,Object[lc("0x1e")]({CommentView:this[lc("0xa")].CommentView},this[lc("0xa")])),this[lc("0xb")][lc("0x5")]("removeComment").to(this),this.commentsListView[lc("0x5")](lc("0x3")).to(this),this[lc("0xb")][lc("0x8")]("isActive").to(this),this[lc("0x14")](lc("0x13"),this[lc("0xb")][lc("0x13")]+1),this[lc("0x8")](lc("0x13")).to(this[lc("0xb")],lc("0x13"),(t=>t+1)),this[lc("0x4")]=this[lc("0x15")](),this.on(lc("0x20"),(()=>this[lc("0x21")]())),this[lc("0x8")](lc("0x16")).to(this[lc("0xb")],lc("0x17"),this[lc("0x4")][lc("0x1c")],lc("0x1b"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[lc("0xa")],e=new t(this[lc("0x1a")],this[lc("0x1f")],this[lc("0xa")].editorConfig),n=e[lc("0x1c")];return e.bind(lc("0xf")).to(this,"isActive",this._model[lc("0x18")],lc("0x1d"),n,lc("0x1b"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[lc("0xc")](lc("0x19"),e),n[lc("0x1")][lc("0x7")]("")})),n.on("cancel",(()=>this.focus())),n.bind(lc("0xe")).to(this[lc("0x10")][lc("0x18")],lc("0x1d")),e}}const dc=["ck-suggestion__info","EXTERNAL_SUGGESTION","children","_createButton","set","@external","ck-suggestion__user","ck-suggestion--discard","ck-suggestion-","description","element","getExternalSuggestionNote","descriptionParts","acceptButton","execute",'<span class="ck-suggestion-type">',"source","extendTemplate","isEnabled","ck-annotation__info","content","discardSuggestion","</p>","type","bind","split","_model","ck-suggestion--accept","userView","delegate","ck-annotation__user","change:description","name","cancel","check","_config","ck-suggestion--disabled-comments","authoredAt","ck-annotation__main","importWord","isExternal","push","title","EXTERNAL_IMPORT_WORD_SUGGESTION",'" title="',"ck-suggestion-wrapper","locale","getUserViewNotificationText","ck-annotation__info-time","setTemplate","ck-comment__info-time","getTemplate","commentThreadInputView","ck-annotation__info-name","commentsListView","map",".ck-annotation__content-wrapper","disableComments","createElement","value","acceptSuggestion","canAccept","ck-suggestion__info-name","querySelector","isActive","attributes","editorDestroyed","Accept suggestion","ck-suggestion__main","ck-annotation","author","Discard suggestion","editorReady",'<span class="ck-suggestion-color" style="background-color: ',"creator","div","innerText","formatDateTime","<p>","_descriptionElement",'"></span>',"</span>","span","ck-suggestion-wrapper--active","canDiscard","time","innerHTML","discardButton","render"];var gc,fc;gc=dc,fc=335,function(t){for(;--t;)gc.push(gc.shift())}(++fc);const mc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[mc("0x19")](mc("0x2c"),""),this.bind(mc("0x2c")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][mc("0x2c")]:"")),this[mc("0x2d")]("description").to(this,mc("0x21"),this,mc("0x55"),((t,e)=>{let n="";for(const e of t)n+=mc("0xa")+bc(e[mc("0x29")],e.color)+mc("0x2b");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[mc("0x22")]=this[mc("0x18")](Yo(e,mc("0x58")),t.icons[mc("0x37")],mc("0x30"),mc("0x51"),"sw"),this[mc("0x22")].bind("isEnabled").to(this,mc("0x52")),this[mc("0x13")]=this._createButton(Yo(e,mc("0x3")),t.icons[mc("0x36")],mc("0x1c"),mc("0x2a"),"sw"),this[mc("0x13")][mc("0x2d")](mc("0x27")).to(this,mc("0x10")),this[mc("0x31")]=new r.UserView(e,this[mc("0x2f")][mc("0x2")],this[mc("0x44")]()),this[mc("0x31")][mc("0x26")]({attributes:{class:[mc("0x1b"),mc("0x33")]}}),this[mc("0x46")](this[mc("0x48")]())}[mc("0x48")](){const t=this.bindTemplate,e=[{tag:mc("0x7"),attributes:{class:[mc("0x15"),mc("0x28")]},children:[{tag:"span",children:[{text:this.userView[mc("0x35")]}],attributes:{class:[mc("0x53"),mc("0x4a")]}},{tag:mc("0x11"),attributes:{datetime:t.to(mc("0x3a")),class:[mc("0x47"),mc("0x45")]},children:[{text:t.to(mc("0x3a"),(t=>this[mc("0x38")][mc("0x9")](t)))}]}]},{tag:mc("0x7"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this[mc("0x22")],this.discardButton]},{tag:mc("0x7"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[mc("0x2f")][mc("0x3d")]&&e[mc("0x3e")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[mc("0x20")]()}]});const n={tag:"div",attributes:{class:[mc("0x42"),t.if("isActive",mc("0xf")),t.to(mc("0x2c"),(t=>mc("0x1d")+t)),this[mc("0x38")][mc("0x4e")]&&mc("0x39")],"data-suggestion-id":this[mc("0x2f")].id,"data-thread-id":this[mc("0x2f")].commentThread.id,"data-author-id":this[mc("0x2f")][mc("0x2")].id,tabindex:-1},children:[{tag:mc("0x7"),attributes:{class:["ck-suggestion",mc("0x1")]},children:[this[mc("0x31")],{tag:mc("0x7"),attributes:{class:[mc("0x0"),mc("0x3b")]},children:e}]}]};return this[mc("0x4b")]&&this[mc("0x49")]&&(n[mc("0x17")][mc("0x3e")](this.commentsListView,this[mc("0x49")]),this[mc("0x4b")][mc("0x32")]("editorReady").to(this),this[mc("0x4b")][mc("0x32")](mc("0x57")).to(this),this[mc("0x49")].delegate(mc("0x4")).to(this),this[mc("0x49")][mc("0x32")]("editorDestroyed").to(this)),n}[mc("0x14")](){super[mc("0x14")](),this[mc("0xb")]=this[mc("0x1f")][mc("0x54")](mc("0x4d")),this._descriptionElement[mc("0x12")]=this[mc("0x1e")],this.on(mc("0x34"),((t,e,n)=>{this[mc("0xb")].innerHTML=n}))}[mc("0x18")](t,e,n,o,r){const i=new s.ButtonView(this[mc("0x43")]);return i[mc("0x19")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[mc("0x26")]({attributes:{class:n}}),i.on(mc("0x23"),(()=>{this.fire(o,this[mc("0x2f")].id)})),i}[mc("0x20")](){return mc("0x3c")===this[mc("0x2f")].attributes[mc("0x1a")][mc("0x25")]?Yo(this.locale,mc("0x40")):Yo(this[mc("0x43")],mc("0x16"))}[mc("0x44")](){return this._model[mc("0x3d")]?"importWord"===this[mc("0x2f")][mc("0x56")][mc("0x1a")][mc("0x25")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[mc("0x2f")][mc("0x6")][mc("0x35")]):Yo(this.locale,"EXTERNAL_AVATAR",this[mc("0x2f")][mc("0x6")][mc("0x35")]):null}}function bc(t,e){let n="";return n+=t[mc("0x2e")]("*")[mc("0x4c")](((t,e)=>e%2!=0?mc("0x24")+pc(t)+mc("0xd"):pc(t))).join(""),e&&(n+=mc("0x5")+e[mc("0x50")]+mc("0x41")+e[mc("0x3f")]+mc("0xc")),n}function pc(t){const e=document[mc("0x4f")](mc("0xe"));return e[mc("0x8")]=t,e[mc("0x12")]}const Ec=["value","isOn","model","suggestionLoaded","unbind","acceptButton","change:previous","destroy","_handleSuggestionControllerDelayed","buttonView","lowest","_unbindEditors","listenTo","focus","componentFactory","createCommentThreadController","getFirstRange","refreshSelectedViews","view","getSuggestion","commandName","EditorAnnotations","discardSelectedSuggestions","commands","editing","requires","actionView","getRanges","_bindAnnotationToEditors","commentThread","getAllAdjacentSuggestions","_viewToController","discardButton","delete","_createUIButton","push","Track changes","define","TrackChangesEditing","length","values","keys","addComment","getByInnerView","registerAnnotation","isMultiRange","isDirty","get","config","comments.maxCommentCharsWhenCollapsed","size","createAnnotationView","_suggestionToController","some","filter","clear","getJoined","hasSuggestion","Accept all selected suggestions","has","Annotations","set","suggestionChanged","acceptAllSuggestions","_updateController","head","comments","innerView","execute","reduce","map","Discard all suggestions","acceptSelectedSuggestions","activeMarkers","_descriptionFactory","button","add","getMarkers","editor","_refreshActiveMarkers","_disableComments","remove","switchbutton","isInContent","separator","arrowView","activeAnnotations","Discard all selected suggestions","type","stopListening","addSourceCollector","_annotationViews","comments.maxCommentsWhenCollapsed","bind","CommentsUI","locale","createAnnotation","CommentsRepository","descriptionParts","change:activeAnnotations","trackChanges","_handleControllerBuffer","suggestion-","previous","_destroyController","Accept all suggestions","comments.maxThreadTotalWeight","_initializeController","plugins","toMany","comments.editorConfig","isEnabled","trackChanges.disableComments","CommentView","from","TrackChangesUI"];var _c,Tc;_c=Ec,Tc=193,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x40")](){return[za,r.Users,Cc("0x14"),Cc("0x63"),Cc("0x3c")]}static get pluginName(){return Cc("0x26")}constructor(t){super(t),this[Cc("0x5b")]=new Map,this[Cc("0x46")]=new Map,this[Cc("0xe")]=new Map,this[Cc("0x18")]=new Map;const e=this[Cc("0x1")][Cc("0x57")];e[Cc("0x4c")]("trackChanges.SuggestionThreadView",hc),e[Cc("0x4c")](Cc("0x23"),!1),this[Cc("0x3")]=e.get(Cc("0x23"))}[Cc("0x2f")](t,e){0===this[Cc("0x18")][Cc("0x59")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x18")]){const n=this[Cc("0x5b")][Cc("0x62")](t);n||e?n&&e&&this._destroyController(t):this[Cc("0x1e")](t)}this[Cc("0x1")][Cc("0x1f")][Cc("0x56")](Cc("0x3c"))[Cc("0x38")](),this[Cc("0x2")](),this[Cc("0x18")][Cc("0x5e")]()}),10),this[Cc("0x18")].set(t,e)}init(){const t=this[Cc("0x1")],e=t[Cc("0x1f")][Cc("0x56")]("TrackChangesEditing"),n=t[Cc("0x1f")][Cc("0x56")](Cc("0x63")),o=t[Cc("0x1f")][Cc("0x56")]("EditorAnnotations"),s=t.plugins[Cc("0x56")]("CommentsRepository");t.ui[Cc("0x35")][Cc("0x73")]("trackChanges",(t=>this._createUIButton(t))),o[Cc("0xd")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x25")](this[Cc("0x5b")])){const o=e[Cc("0x45")](),s=[];for(const t of o){if(!t[Cc("0x6")])continue;if(t[Cc("0x54")]){s[Cc("0x4a")](...t[Cc("0x42")]());continue}const e=t[Cc("0x37")]();if(s[Cc("0x4e")]>0){const t=s[0][Cc("0x5f")](e);if(t){s[0]=t;continue}}s[Cc("0x4a")](e)}t[Cc("0x4a")]([n[Cc("0x39")],s])}return t})),this[Cc("0x33")](e,Cc("0x2a"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e[Cc("0x6")]&&(null==o?(this._updateController(s[Cc("0x68")]),this[Cc("0x2f")](e,!1)):(this[Cc("0x67")](o[Cc("0x68")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Cc("0x1a")]?this[Cc("0x2f")](e,!1):this[Cc("0x67")](e[Cc("0x68")])})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[Cc("0xc")](e,Cc("0x2d")),this._handleControllerBuffer.delete(e);const o=n?n.head:e,s=this[Cc("0x5b")][Cc("0x56")](o);null!==n&&this[Cc("0x67")](o),null===n&&s&&this[Cc("0x1b")](e)})),this[Cc("0x33")](e,Cc("0x65"),((t,e)=>{this[Cc("0x67")](e)})),this.listenTo(n,Cc("0x16"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,Cc("0x51"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x60")](n))return;const s=e[Cc("0x3a")](n);this[Cc("0x5b")][Cc("0x56")](s)[Cc("0x39")].focus()}),{priority:Cc("0x31")})}[Cc("0x2")](){const t=this[Cc("0x1")][Cc("0x1f")].get("Annotations"),e=this[Cc("0x1")][Cc("0x1f")].get(Cc("0x4d")),n=Array.from(t[Cc("0x9")],(t=>t[Cc("0x6a")]))[Cc("0x5d")]((t=>this[Cc("0x46")][Cc("0x62")](t))),o=[];for(const t of n){const e=this._viewToController[Cc("0x56")](t).model[Cc("0x45")]();o[Cc("0x4a")](...e[Cc("0x6c")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Cc("0x70")]=o}[Cc("0x49")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0x3e")].get(Cc("0x17")),r=Yo(t,Cc("0x4b"));n[Cc("0x30")].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[Cc("0x30")][Cc("0x10")](Cc("0x28")).to(o,Cc("0x27")),n[Cc("0x30")].on("execute",(()=>{o[Cc("0x6b")](),this[Cc("0x1")].editing[Cc("0x39")][Cc("0x34")]()}));const i=new e.Collection,x=[{type:Cc("0x5"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Cc("0x7")},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x1c")),commandName:Cc("0x66")}},{type:Cc("0x72"),model:{withText:!0,label:Yo(t,Cc("0x61")),commandName:Cc("0x6f")}},{type:Cc("0x72"),model:{withText:!0,label:Yo(t,Cc("0x6e")),commandName:"discardAllSuggestions"}},{type:Cc("0x72"),model:{withText:!0,label:Yo(t,Cc("0xa")),commandName:Cc("0x3d")}}];for(const t of x){let e={type:Cc("0x7")};if(t[Cc("0x29")]){const n=new s.Model(t[Cc("0x29")]),o=this.editor[Cc("0x3e")][Cc("0x56")](n[Cc("0x3b")]);n.bind(Cc("0x28"),Cc("0x22")).to(o,Cc("0x27"),Cc("0x22")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t.model))[Cc("0x6d")]((t=>this[Cc("0x1")][Cc("0x3e")][Cc("0x56")](t.model[Cc("0x3b")]))),c=n[Cc("0x30")];return c[Cc("0x41")][Cc("0x2b")]("isEnabled"),c[Cc("0x8")][Cc("0x2b")](Cc("0x22")),c[Cc("0x41")][Cc("0x10")](Cc("0x22")).to(o,Cc("0x22")),c.arrowView[Cc("0x10")](Cc("0x22"))[Cc("0x20")](a,"isEnabled",((...t)=>t[Cc("0x5c")]((t=>t)))),n.on(Cc("0x6b"),(t=>{this.editor.execute(t.source[Cc("0x3b")]),this.editor.editing[Cc("0x39")].focus()})),n}[Cc("0x1e")](t){const e=this.editor,n=e[Cc("0x57")],o=e[Cc("0x1f")][Cc("0x56")](Cc("0x63")),s=e[Cc("0x1f")][Cc("0x56")](Cc("0x14")),i=e[Cc("0x1f")][Cc("0x56")](Cc("0x3c")),x=e[Cc("0x1f")][Cc("0x56")](r.Users).me,a=n[Cc("0x56")](Cc("0x17")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Cc("0x56")](Cc("0x11"));let u,d;this[Cc("0xe")][Cc("0x62")](t.id)?(d=this._annotationViews[Cc("0x56")](t.id),u=d.mainView):(u=new a(e[Cc("0x12")],t,x,{disableComments:this[Cc("0x3")],editorConfig:n[Cc("0x56")](Cc("0x21")),maxCommentsWhenCollapsed:n.get(Cc("0xf")),maxThreadTotalWeight:n[Cc("0x56")](Cc("0x1d")),maxCommentCharsWhenCollapsed:n.get(Cc("0x58")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x56")]("locale")),CommentView:n[Cc("0x56")](Cc("0x69"))[Cc("0x24")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x2c")].on(Cc("0x6b"),(()=>{e.editing.view[Cc("0x34")]()})),u[Cc("0x47")].on(Cc("0x6b"),(()=>{e[Cc("0x3f")][Cc("0x39")].focus()})),d=o[Cc("0x5a")](this[Cc("0x1")][Cc("0x12")],u),d[Cc("0x10")](Cc("0x55")).to(u,Cc("0x55")),d[Cc("0x10")](Cc("0x4e")).to(u),d[Cc("0x10")](Cc("0xb")).to(u,"type",(t=>"suggestion-"+t)),this[Cc("0xe")][Cc("0x64")](t.id,d));const g=s[Cc("0x36")](t[Cc("0x44")],u),f=new ic(e,t,u,g),m=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t.isInContent));u[Cc("0x15")]=e.plugins[Cc("0x56")](Cc("0x4d"))[Cc("0x71")].getDescriptions(m),this._suggestionToController[Cc("0x64")](t,f),this[Cc("0x46")][Cc("0x64")](u,f);const h=o[Cc("0x13")]({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions().filter((t=>t[Cc("0x6")]));for(const t of o)n[Cc("0x4a")](...t[Cc("0x0")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x3f")],n)},type:()=>Cc("0x19")+f[Cc("0x39")][Cc("0xb")]});s[Cc("0x43")](u,h),o.add(h),i[Cc("0x53")](h)}[Cc("0x1b")](t){const e=this[Cc("0x1")][Cc("0x1f")][Cc("0x56")](Cc("0x14")),n=this[Cc("0x1")][Cc("0x1f")][Cc("0x56")](Cc("0x63")),o=this[Cc("0x5b")].get(t),s=o.view,r=n[Cc("0x52")](s);e[Cc("0x32")](s),r&&n[Cc("0x4")](r),this[Cc("0x5b")][Cc("0x48")](t),this[Cc("0x46")][Cc("0x48")](s),o[Cc("0x2e")]()}[Cc("0x67")](t){if(!t[Cc("0x6")]||!this._suggestionToController[Cc("0x62")](t))return;const e=this.editor[Cc("0x1f")][Cc("0x56")](Cc("0x4d")),n=this[Cc("0x5b")][Cc("0x56")](t),o=t[Cc("0x45")]();n.view[Cc("0x15")]=e[Cc("0x71")].getDescriptions(o)}destroy(){for(const t of this._suggestionToController[Cc("0x50")]())this[Cc("0x1b")](t);for(const t of this[Cc("0xe")][Cc("0x4f")]())t.mainView[Cc("0x2e")]();super[Cc("0x2e")]()}}var kc,Ac,vc=["TrackChanges","pluginName","getSuggestions","addSuggestion","Comments","getSuggestion","editor","get","adapter","plugins"];kc=vc,Ac=122,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get requires(){return[za,yc,Rc("0x2")]}static get[Rc("0x9")](){return Rc("0x8")}set[Rc("0x6")](t){this[Rc("0x4")].plugins[Rc("0x5")](za)[Rc("0x6")]=t}get adapter(){return this.editor.plugins[Rc("0x5")](za)[Rc("0x6")]}[Rc("0x1")](t){return this.editor.plugins[Rc("0x5")](za).addSuggestionData(t)}[Rc("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Rc("0x7")][Rc("0x5")](za)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x3")](t){return this[Rc("0x4")][Rc("0x7")][Rc("0x5")](za)[Rc("0x3")](t)}}const Ic=["trackChangesData","getRootNames","map","createDocumentFragment","init","push","useAnonymousUser","result","end","document","CommentsRepository","get","getFullData","div","constructor","destroy","TrackChangesDataGetter","set","Pagination","function","TrackChangesData","getDataWithDiscardedSuggestions","rootsAttributes","requires","create","data","track-changes-data-invalid-editor-creator","addSuggestionData","getRootsAttributes","getSuggestions","TrackChangesEditing","createElement","model","name","editorCreator","plugins","acceptAllSuggestions","editor","reduce","Users","getUser"];var Lc,Nc;Lc=Ic,Nc=437,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x20")];class Oc extends t.Plugin{static get[Mc("0x25")](){return[za]}static get pluginName(){return Mc("0x22")}[Mc("0x12")](){const t=this.editor;if(t.config.define("trackChangesData.editorCreator",(e=>{const n=t[Mc("0x5")][Mc("0x17")][Mc("0xf")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Mc("0x1c")][Mc("0x26")](n,e)})),Mc("0x21")!=typeof t.config[Mc("0x19")](Mc("0xe"))[Mc("0x7")])throw new e.CKEditorError(Mc("0x28"))}getDataWithAcceptedSuggestions(t){return Dc(this.editor,!0,t)}[Mc("0x23")](t){return Dc(this[Mc("0xa")],!1,t)}}class Fc extends t.Plugin{static get pluginName(){return Mc("0x1e")}constructor(t){super(t),this[Mc("0x15")]=Mc("0x16")}init(){this[Mc("0xa")].plugins[Mc("0x19")](Mc("0x18"))._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[Mc("0xa")][Mc("0x8")][Mc("0x19")](Mc("0x3"))._adapter=null}}function Pc(t){return void 0!==t[Mc("0x1")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x8")][Mc("0x13")](za,Fc),o[Mc("0x24")]=Pc(t)?t[Mc("0x1")]():void 0;const s=document[Mc("0x11")](),i=t.config[Mc("0x19")](Mc("0xe")).editorCreator,x=await i(o,(()=>function(t){const e=document[Mc("0x4")](Mc("0x1b"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Mc("0x5")][Mc("0x17")][Mc("0xf")]()[Mc("0xb")](((e,n)=>(e[n]=t.data.get({rootName:n}),e)),{}),o=t[Mc("0x8")].get(Mc("0xc")).users[Mc("0x10")]((t=>({id:t.id,name:t[Mc("0x6")]}))),s=t[Mc("0x8")][Mc("0x19")]("TrackChangesEditing")[Mc("0x2")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get("Users"),i=e[Mc("0x8")].get(Mc("0x3"));for(const t of o)r[Mc("0xd")](t.id)||r.addUser(t);r.me||r[Mc("0x14")]();for(const t of s)i[Mc("0x0")](t);e[Mc("0x27")][Mc("0x1f")](n)}(t,x),x.execute(e?Mc("0x9"):"discardAllSuggestions");const a=Pc(x)?x[Mc("0x1a")](n):x[Mc("0x27")][Mc("0x19")](n);return await x[Mc("0x1d")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|