@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["refresh","isEnabled","affectsData","_enableCommands","execute","clearForceDisabled","TrackChangesCommand","forceDisabled","commands","_enabledCommands","has","value","_isEnabledBasedOnSelection","editor","_disableUnsupportedCommands"];var c,l;c=a,l=280,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xe")]=e,this[d("0x1")]=!1,this[d("0x5")](),this[d("0x2")]=!1}[d("0x5")](){this[d("0x6")]=!0}[d("0x9")](){this.value=!this[d("0x1")],this[d("0x1")]?this._disableUnsupportedCommands():this[d("0x8")]()}[d("0x4")](){for(const t of this[d("0x3")].commands[d("0xd")]())t.affectsData&&!this[d("0xe")].has(t)&&t[d("0xc")](d("0xb"))}[d("0x8")](){for(const t of this[d("0x3")][d("0xd")][d("0xd")]())t[d("0x7")]&&!this._enabledCommands[d("0x0")](t)&&t[d("0xa")](d("0xb"))}}const g=["TrackChangesEditing","model","_isEnabledBasedOnSelection","getRanges","plugins","isEnabled","refresh","editor","_suggestions","get","canEditAt"];var m,f;m=g,f=229,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x8")](),this[h("0x4")]=!1}[h("0x8")](){this[h("0x7")]=!0}execute(t){const n=this[h("0xa")][h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x5")]();this[h("0x9")][h("0x3")][h("0x1")](o)&&this[h("0x9")][h("0x6")].get(h("0x2")).acceptSuggestion(n)}}const b=["discardSuggestion","get","refresh","_suggestions","editor","track-changes-discard-suggestion-not-found","canEditAt","getRanges","_isEnabledBasedOnSelection","execute"];var E,_;E=b,_=111,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x2")]=e,this.refresh(),this[T("0x7")]=!1}[T("0x1")](){this.isEnabled=!0}[T("0x8")](t){const n=this[T("0x2")][T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0x6")]();this[T("0x3")].model[T("0x5")](o)&&this[T("0x3")].plugins[T("0x0")]("TrackChangesEditing")[T("0x9")](n)}}const y=["getMarkers","next","replace","push","type","map","splice","deletion","getRange","isInContent","schema","length","join","color","createPositionAfter","createPositionBefore","content","createPositionAt","isObject","getRanges","end","isMultiRange","execute","change","value","isCollapsed"," [color ","start","add","createRange","isTouching"];var k,A;k=y,A=398,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("0xc")==t.type&&v("0xc")!=e[v("0x9")]?-1:"deletion"!=t[v("0x9")]&&v("0xc")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xf")];for(;o<t[v("0x10")];){const i=t[o],x=t[o+1];n||(n=e[v("0x14")](i)),I(e,i,x)||(s[v("0x8")](e[v("0x3")](n,r[v("0x17")](i)?e[v("0x13")](i):e[v("0x16")](i,v("0x19")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t[v("0x14")](n);return o[v("0x4")](s)}function L(t,e,n){for(;n[v("0x10")];){const o=n[v("0xb")](0,100);t[v("0x1c")]((()=>{for(const t of o)t[v("0xe")]&&e[v("0x1b")](t.id)}))}}const N=["from","model","_command","execute","getRanges","isInContent","editor","some","_suggestions","isEnabled","values","refresh","canEditAt","_isEnabledBasedOnSelection"];var w,M;w=N,M=270,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0x4")]=n,this[O("0x7")](),this[O("0x9")]=!1}[O("0x7")](){const t=Array.from(this._suggestions[O("0x6")]())[O("0x3")]((t=>t[O("0x1")]));this[O("0x5")]=this[O("0xc")][O("0x5")]&&t}[O("0xd")](){const t=R(Array[O("0xa")](this._suggestions[O("0x6")]()));for(const e of t){const t=e[O("0x0")]();if(!this[O("0x2")][O("0xb")][O("0x8")](t))return}L(this[O("0x2")][O("0xb")],this[O("0xc")],t)}}const P=["editor","refresh","values","_isEnabledBasedOnSelection","getRanges","canEditAt","isEnabled","_suggestions","_selectedSuggestions","execute","size","model","from","_command","selection"];var D,B;D=P,B=330,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("0xd")]=e,this[j("0x7")]=n,this[j("0x8")]=new Set,this[j("0x1")](),this[j("0x3")]=!1}[j("0x1")](){const t=this[j("0x0")].model.document[j("0xe")],e=Array[j("0xc")](this[j("0x7")][j("0x2")]());this._selectedSuggestions=function(t,e){const n=Array.from(t[v("0x18")]()),o=new Set;for(const s of e)if(s[v("0xe")])for(const e of n)for(const n of s[v("0x5")]()){const r=n[v("0xd")]();(e.isIntersecting(r)||t[v("0x1e")]&&!s[v("0x1a")]&&s[v("0x6")]&&r[v("0x19")][v("0x4")](e[v("0x1")]))&&o[v("0x2")](s)}return o}(t,e),this[j("0x6")]=this[j("0xd")][j("0x6")]&&!!this._selectedSuggestions[j("0xa")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0x8")]));for(const e of t){const t=e[j("0x4")]();if(!this[j("0x0")].model[j("0x5")](t))return}L(this[j("0x0")][j("0xb")],this[j("0xd")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=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 z=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(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=z,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=zt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=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&&Ve.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,ze(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,ze,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var zn=Se&&Se.isMap;const Kn=zn?ke(zn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?ze:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=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 zo=function(t,e){return e.length<2?t:Vo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["addRange","authoredAt","substr","removeMarkers","decorate","removeMarker","end","_onAccept","data","onAccept","_onDiscard","push","from","split","getAllAdjacentSuggestions","suggestion:","isMultiRange","discard","creator","commentThread","length","addMarkerName","start","getFirstRange","markers","change","@external","getMultiRangeId","get","size","isIntersecting","previous","_model","getRange","set","getMarkers","add","getItems","type","getRanges","getMarkerNames","attributes","getFirstMarker","map","subType","delete","filter","createdAt","_onAttributesChange","nodeBefore","toJSON","removeAttribute","onAttributesChange","hasComments","_markerNames","author","_saved","head","accept","next"];var $o,Jo;$o=Xo,Jo=105,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x35")]=e[Qo("0x35")],this[Qo("0x3b")]=e[Qo("0x3b")]||null,this[Qo("0xa")]=e[Qo("0xa")],this[Qo("0x21")]=e[Qo("0x21")]||e[Qo("0xa")],this.isExternal=Boolean(e[Qo("0x38")]&&e.attributes[Qo("0x29")]),this[Qo("0x17")]=null,this[Qo("0x2f")]=t,this._onAccept=e[Qo("0x18")],this[Qo("0x19")]=e.onDiscard,this[Qo("0x3")]=e[Qo("0x7")],this[Qo("0x9")]=new Set,this.createdAt=null,this[Qo("0x31")](Qo("0x10"),null),this[Qo("0x31")](Qo("0x38"),e[Qo("0x38")]||{}),this.set(Qo("0x2e"),null),this[Qo("0x31")](Qo("0xe"),null),this.set("commentThread",null),this[Qo("0x31")](Qo("0xb"),!1),this.decorate(Qo("0xd")),this[Qo("0x13")](Qo("0x20"))}get[Qo("0xc")](){let t=this;for(;t.previous;)t=t[Qo("0x2e")];return t}get[Qo("0x8")](){return!!this[Qo("0x22")]&&this.commentThread[Qo("0x23")]>0}get[Qo("0x1f")](){return 0!=this._markerNames[Qo("0x2c")]&&6==Array.from(this[Qo("0x9")])[0][Qo("0x1c")](":").length}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x24")](t){this[Qo("0x9")][Qo("0x33")](t)}[Qo("0x37")](){return Array[Qo("0x1b")](this[Qo("0x9")])}[Qo("0x32")](){return this[Qo("0x37")]()[Qo("0x3a")]((t=>this._model[Qo("0x27")][Qo("0x2b")](t)))[Qo("0x1")]((t=>t))}getFirstMarker(){return this[Qo("0x32")]()[0]||null}removeMarkers(){this[Qo("0x2f")][Qo("0x28")]((t=>{for(const e of this.getMarkers())t[Qo("0x14")](e)})),this[Qo("0x9")].clear()}[Qo("0x14")](t){this[Qo("0x2f")][Qo("0x28")]((e=>{e[Qo("0x14")](t)})),this[Qo("0x9")][Qo("0x0")](t)}[Qo("0xf")](t){const e=Qo("0x1e")+this[Qo("0x35")]+":"+this[Qo("0x3b")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this.addMarkerName(e),this[Qo("0x2f")][Qo("0x28")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x36")]())if(e[Qo("0x2d")](t))return!0;return!1}[Qo("0x36")](){return this.getMarkers()[Qo("0x3a")]((t=>t[Qo("0x30")]()))}[Qo("0x34")](){return this[Qo("0x36")]().reduce(((t,e)=>[...t,...e[Qo("0x34")]()]),[])}[Qo("0x26")](){var t;return(null===(t=this[Qo("0x39")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x36")]();if(1!=t[Qo("0x23")])return null;const e=t[0],n=e[Qo("0x25")].nodeAfter,o=e[Qo("0x15")][Qo("0x4")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x16")](this[Qo("0x36")](),this[Qo("0x17")],this[Qo("0x38")]),this.removeMarkers()}[Qo("0x20")](){this[Qo("0x19")](this[Qo("0x36")](),this[Qo("0x17")],this[Qo("0x38")]),this[Qo("0x12")]()}[Qo("0x1d")](){const t=[];let e=this.head;for(;e;)t[Qo("0x1a")](e),e=e[Qo("0xe")];return t}setAttribute(t,e){const n=eo(this[Qo("0x38")]);_o(n,t,e),Go(n,this[Qo("0x38")])||(this[Qo("0x38")]=n,this[Qo("0x3")](n))}[Qo("0x6")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x38")])||(this[Qo("0x38")]=e,this[Qo("0x3")](this.attributes))}[Qo("0x5")](){return{id:this.id,type:this[Qo("0x3b")]?this[Qo("0x35")]+":"+this[Qo("0x3b")]:this[Qo("0x35")],authorId:this.creator.id,createdAt:this[Qo("0x2")],hasComments:this[Qo("0x8")],data:this[Qo("0x17")],attributes:this[Qo("0x38")]}}static[Qo("0x2a")](){return(0,e.uid)()[Qo("0x11")](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=["_locale","name","matchingCallback","pop","_itemLabels","_itemLabelsCallbacks","EmptyContainer","REPLACE_TEXT","element","push","removeEmptyContainer","getDescriptions","isEmpty","set","addObject","label","isEqual","_resolveDescriptionItems","indexOf","*Merge:* %0","*Split:* %0","get","previousSibling","insertion","Container","addEmptyContainer","softBreak","isInContent","_customCallbacks","_schema","remove","*Insert:* %0","checkChild","replace","getItemLabel","addContainer","nextSibling","type","$textProxy","match","ELEMENT_SPACE","elementStart","isObject","_addDescriptionItems","removeObject","$1 $2","registerDescriptionCallback","add","getFirstRange","text","start","*Remove:* %0","elementEnd","quantity","deletion","length","Object"];var es,ns;es=ts,ns=295,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("0x33")]=new Map,this[os("0x34")]=[],this[os("0x13")]=t,this[os("0x2f")]=e}[os("0x1")](t){const e=[];for(let n=0;n<t[os("0x2d")];n++){const o=t[n];if(!o[os("0x11")])continue;let s=!1;for(const t of this[os("0x12")]){const n=t(o);if(n){"type"in n&&e[os("0x38")](n),s=!0;break}}if(!s){this[os("0x21")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end[os("0x6")](s[os("0x26")]()[os("0x28")])){const t=e[e[os("0x2d")]-1],n=os("0xd")==o[os("0x1b")]?"add":os("0x14");t&&"text"==t[os("0x1b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x24")](t){this[os("0x12")][os("0x38")](t)}registerElementLabel(t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x3")](t,n)}[os("0x18")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0x31")](t)){n=e[os("0x5")];break}return n||(n=this[os("0x33")][os("0xb")](t[os("0x30")])),n?n(e):1!==e?e+" "+t[os("0x30")]+"s":""+t[os("0x30")]}[os("0x21")](t,e){const n=e[os("0x26")]().getWalker(),o=os("0xd")==e[os("0x1b")]?os("0x25"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x2d")]-1];if(s.is(os("0x1c")))r&&r[os("0x1b")][os("0x8")](os("0xe"))>-1&&t[os("0x32")](),r&&os("0x27")==r[os("0x1b")]?r[o]+=s.data:t[os("0x38")]({type:os("0x27"),add:os("0x25")==o?s.data:"",remove:os("0x14")==o?s.data:""});else if(this[os("0x13")][os("0x20")](s)){const i=s;if(r&&r[os("0x1b")].indexOf("Container")>-1&&t.pop(),os("0x2a")==e[os("0x1b")])continue;r&&r[os("0x1b")]==o+os("0x2e")&&r[os("0x37")][os("0x30")]==i[os("0x30")]?r[os("0x2b")]++:t[os("0x38")]({type:o+"Object",element:i,quantity:1}),n.skip((t=>!(os("0x2a")==t[os("0x1b")]&&t.item==s)))}else if(this[os("0x13")][os("0x16")](s,"$text")||s.is(os("0x37"),os("0x10"))){const n=s;if(os("0x25")==o&&os("0x1f")==e[os("0x1b")]||"remove"==o&&os("0x2a")==e[os("0x1b")])continue;if(r&&-1==r.type[os("0x8")]("Container")){os("0x27")==r[os("0x1b")]&&(r[o]+="\n");continue}let i;if(i=os("0x25")==o?n[os("0x1a")]&&!this[os("0x13")][os("0x20")](n.nextSibling)?n[os("0x1a")]:null:n[os("0xc")]&&!this[os("0x13")][os("0x20")](n[os("0xc")])?n[os("0xc")]:null,n[os("0x2")]||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r.type==o+"EmptyContainer"&&r.element[os("0x30")]==e[os("0x30")]?r[os("0x2b")]++:t[os("0x38")]({type:o+os("0x35"),element:e,quantity:1})}else t.push({type:o+os("0xe"),element:n})}}}[os("0x7")](t){const e=this[os("0x2f")],n=[];for(const o of t){switch(o.type){case"text":if(o[os("0x25")]=o[os("0x25")][os("0x17")](/(\S)\u000A+(\S)/g,os("0x23"))[os("0x17")](/\u000A/g,""),o.remove=o[os("0x14")][os("0x17")](/(\S)\u000A+(\S)/g,os("0x23"))[os("0x17")](/\u000A/g,""),""!=o[os("0x25")]&&""!=o[os("0x14")]){n.push({type:"replace",content:Yo(e,os("0x36"),['"'+o.remove+'"','"'+o[os("0x25")]+'"'])});continue}if(null!=o.add[os("0x1d")](/^ +$/)){n[os("0x38")]({type:"insertion",content:Yo(e,os("0x15"),Yo(e,os("0x1e"),o[os("0x25")].length))});continue}if(null!=o[os("0x14")].match(/^ +$/)){n[os("0x38")]({type:"deletion",content:Yo(e,os("0x29"),Yo(e,"ELEMENT_SPACE",o[os("0x14")].length))});continue}if(""!=o[os("0x25")]){n.push({type:os("0xd"),content:Yo(e,os("0x15"),'"'+o[os("0x25")]+'"')});continue}n[os("0x38")]({type:os("0x2c"),content:Yo(e,"*Remove:* %0",'"'+o.remove+'"')});continue;case os("0xf"):case os("0x4"):n[os("0x38")]({type:os("0xd"),content:Yo(e,"*Insert:* %0",this[os("0x18")](o.element,o.quantity))});continue;case os("0x0"):case os("0x22"):n[os("0x38")]({type:"deletion",content:Yo(e,os("0x29"),this[os("0x18")](o.element,o[os("0x2b")]))});continue;case os("0x19"):n[os("0x38")]({type:os("0xd"),content:Yo(e,os("0xa"),this[os("0x18")](o[os("0x37")],o[os("0x2b")]))});continue;case"removeContainer":n.push({type:"deletion",content:Yo(e,os("0x9"),this[os("0x18")](o[os("0x37")],o[os("0x2b")]))});continue}n[os("0x38")](o)}return n}}const rs=["plugins","justify","format","getSelectedBlocks","*Format:* %0","left","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_RIGHT","from","has","model","AlignmentEditing","value","FORMAT_ALIGN_TO_LEFT","change","FORMAT_ALIGN_TO_CENTER","getAttribute","markBlockFormat","contentLanguageDirection","commandName","commandParams","alignment","ltr","afterInit","registerDescriptionCallback","right","editor","selection","document","locale","TrackChangesEditing","center"];var is,xs;is=rs,xs=476,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1b")](){const t=this[as("0x1e")],e=t[as("0x1")];if(!t[as("0x4")][as("0xd")](as("0xf")))return;const n=t[as("0x4")].get(as("0x2"));n.enableCommand(as("0x19"),((e,o={})=>{let s=o.value;o.value||(s=as("0x1a")===t[as("0x1")][as("0x16")]?as("0x9"):as("0x1d"));const r=Array[as("0xc")](this[as("0x1e")].model[as("0x0")][as("0x1f")][as("0x7")]()).filter((t=>function(t,e,n){const o=t[as("0x14")](as("0x19"))||null;return e.checkAttribute(t,as("0x19"))&&n!=o}(t,this[as("0x1e")][as("0xe")].schema,s)));t.model[as("0x12")]((()=>{for(const t of r)n[as("0x15")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x1c")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x17")]){const t=n[as("0x18")][0][as("0x10")];return{type:as("0x6"),content:Yo(e,as("0x8"),function(t){switch(t){case as("0x9"):return Yo(e,as("0x11"));case as("0x1d"):return Yo(e,as("0xb"));case as("0x3"):return Yo(e,as("0x13"));case as("0x5"):return Yo(e,as("0xa"))}}(t))}}}))}}const ls=["ck-suggestion-marker-","bindElementToMarker","writer","listItem","element","getCustomProperty","schema","isContent","previousPosition","TrackChangesEditing","get","mapper","item","nextSibling","isLimit","getWalker","isBlock","addClass","name","includes","parent","getAttribute","test","push","isAtEnd","markerRange","createRangeOn","activeMarkers","elementEnd","consumable","toViewElement","hasAttribute","span","addHighlight","createUIElement","start","model","markerName"];var ds,us;ds=ls,us=178,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e.getItems())s[gs("0x5")](t)&&o[gs("0x23")](n[gs("0x0")](s));return o}function fs(t){const e=[];if(t.is(gs("0x10"),gs("0xf"))){let n=t.nextSibling;for(;n&&n.is(gs("0x10"),"listItem")&&n[gs("0x21")]("listIndent")>0;)e[gs("0x23")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x16")](gs("0x15"));return(s,r,i)=>{if(!i[gs("0x3")][gs("0x22")](r.markerRange,s[gs("0x1e")]))return;const x=r[gs("0x25")][gs("0x1b")](),a=r[gs("0x25")][gs("0x9")],c=t[gs("0xa")][gs("0x12")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x18")];u=u||c[gs("0x13")](e);const n=i[gs("0x17")][gs("0x4")](e);if(n&&n[gs("0x11")](gs("0x7")))return;gs("0x2")==t.type&&c[gs("0x1c")](e)&&!c[gs("0x1a")](e)&&(e[gs("0x19")]||a[gs("0x24")]?l&&l[gs("0x20")]==e||(l=e,m(t[gs("0x14")]),g=!0):d=d||t[gs("0x14")])}function m(t){const s=i[gs("0xe")][gs("0x8")](gs("0x6"),{class:gs("0xc")+e}),x=i.mapper.toViewPosition(t);n&&o[gs("0x1")][gs("0x1f")](r[gs("0xb")])&&i.writer[gs("0x1d")]("ck-suggestion-marker--active",s),i[gs("0xe")].insert(x,s),i.mapper[gs("0xd")](s,r[gs("0xb")])}u||g||!d||m(d)}}const ps=["SuperscriptEditing","underline","commands","strikethrough","superscript","*Remove format:* %0","plugins","FORMAT_CODE","italic","enableCommand","TrackChangesEditing","model","BoldEditing","locale","StrikethroughEditing","value","has","commandName","afterInit","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","registerDescriptionCallback","markInlineFormat","getRanges","*Format:* %0","subscript","commandParams","document","ItalicEditing","change","bold","slice","code","selection","SubscriptEditing","toLowerCase","FORMAT_ITALIC","from","_descriptionFactory","get","editor","forceValue","format","isCollapsed","CodeEditing"];var bs,Es;bs=ps,Es=432,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1e"),_s("0x1"),"UnderlineEditing",_s("0x11"),_s("0x20"),_s("0x7"),_s("0x12")];class Cs extends t.Plugin{[_s("0x24")](){const t=this[_s("0xd")],e=t[_s("0x1d")],n=t.plugins[_s("0xc")](_s("0x1c")),o=t[_s("0x1f")];for(const o of Ts){if(!t[_s("0x18")][_s("0x22")](o))continue;const s=o[_s("0x4")](0,-7)[_s("0x8")](),r=t[_s("0x14")][_s("0xc")](s);n[_s("0x1b")](s,((t,o={})=>{const i=e[_s("0x0")][_s("0x6")];if(i[_s("0x10")])return void t(o);const x=void 0!==o[_s("0xe")]?o[_s("0xe")]:!r[_s("0x21")];e[_s("0x2")]((()=>{const t=Array[_s("0xa")](i[_s("0x29")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x28")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xb")][_s("0x27")]((n=>{const{data:s}=n;if(s&&s[_s("0x23")]===t)return s[_s("0x2c")][0].forceValue?{type:"format",content:Yo(o,_s("0x2a"),e)}:{type:_s("0xf"),content:Yo(o,_s("0x17"),e)}}))}s(_s("0x3"),Yo(o,"FORMAT_BOLD")),s(_s("0x1a"),Yo(o,_s("0x9"))),s(_s("0x13"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x5"),Yo(o,_s("0x19"))),s(_s("0x15"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x2b"),Yo(o,_s("0x25"))),s(_s("0x16"),Yo(o,_s("0x26")))}}const ys=["ELEMENT_BLOCK_QUOTE","editor","_descriptionFactory","parent","document","$root","plugins","afterInit","has","forceValue","enableCommand","checkChild","format","registerDescriptionCallback","*Remove format:* %0","getSelectedBlocks","TrackChangesEditing","from","*Format:* %0","model","locale","commands","markBlockFormat","filter","blockQuote","name","commandName","commandParams"];var ks,As;ks=ys,As=316,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x1b")](){const t=this.editor,e=t[vs("0xc")];if(!t[vs("0x1a")][vs("0x0")]("BlockQuoteEditing"))return;const n=t.plugins.get(vs("0x8")),o=this[vs("0x15")][vs("0xd")].get(vs("0x10"));n[vs("0x2")](vs("0x10"),((e,s={})=>{const r=this[vs("0x15")][vs("0xb")][vs("0x18")].selection,i=s&&void 0!==s[vs("0x1")]?s.forceValue:!o.value;let x=[];if(i){const e=Array[vs("0x9")](r[vs("0x7")]())[vs("0xf")]((t=>Ss(t)||function(t,e){const n=e[vs("0x3")](t[vs("0x17")],"blockQuote"),o=e[vs("0x3")]([vs("0x19"),vs("0x10")],t);return n&&o}(t,this[vs("0x15")].model.schema)));x=S(e,t[vs("0xb")])}else{const e=Array[vs("0x9")](r[vs("0x7")]())[vs("0xf")]((t=>Ss(t)));x=S(e,t[vs("0xb")])}t[vs("0xb")].change((()=>{for(const t of x)n[vs("0xe")](t,{commandName:vs("0x10"),commandParams:[{forceValue:i}]})}))})),n[vs("0x16")][vs("0x5")]((t=>{const{data:n}=t;if(n&&vs("0x10")==n[vs("0x12")]){const t=Yo(e,vs("0x14"));return n[vs("0x13")][0][vs("0x1")]?{type:vs("0x4"),content:Yo(e,vs("0xa"),t)}:{type:"format",content:Yo(e,vs("0x6"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x17")][vs("0x11")]}const Is=["editor","commands","get","plugins","TrackChangesEditing","ckbox","afterInit","enableCommand"];var Ls,Ns;Ls=Is,Ns=174,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x0")](){const t=this[ws("0x2")];t[ws("0x3")][ws("0x4")](ws("0x7"))&&t[ws("0x5")][ws("0x4")](ws("0x6"))[ws("0x1")](ws("0x7"))}}const Os=["get","blockName","formatBlock","has","*Remove format:* %0","checkChild","getSelectedBlocks","TrackChangesEditing","change","format","rootElement","language","label","isLimit","codeBlock","_descriptionFactory","languages","registerElementLabel","selection","plugins","from","commands","CodeBlock","enableCommand","editor","forceValue","schema","model","commandParams","indentCodeBlock","parent","ELEMENT_CODE_BLOCK","commandName","locale","value"];var Fs,Ps;Fs=Os,Ps=415,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x1d")];if(!t[Ds("0x18")][Ds("0x8")](Ds("0x1b")))return;const e=t.plugins.get(Ds("0xc")),n=t[Ds("0x3")],o=t.config[Ds("0x5")](Ds("0x13"))[Ds("0x15")],s=t[Ds("0x1a")][Ds("0x5")](Ds("0x13"));e[Ds("0x1c")](Ds("0x22")),e[Ds("0x1c")]("outdentCodeBlock"),e[Ds("0x1c")](Ds("0x13"),((n,r={})=>{const i=t.model,x=t[Ds("0x20")].document[Ds("0x17")],a=r&&void 0!==r[Ds("0x1e")]?r[Ds("0x1e")]:!s[Ds("0x4")];let c;r[Ds("0x10")]||(r.language=o[0].language),c=a?Array[Ds("0x19")](x[Ds("0xb")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x1f")],!e.is(Ds("0xf"))&&!n[Ds("0x12")](e)&&n[Ds("0xa")](e[Ds("0x0")],Ds("0x13")));var e,n})):Array.from(x[Ds("0xb")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0xd")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x6")})}))})),e[Ds("0x14")][Ds("0x16")](Ds("0x13"),(t=>Yo(n,Ds("0x1"),t))),e[Ds("0x14")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x7")==s&&r&&"codeBlock"==r[Ds("0x2")]){const t=r.commandParams[0][Ds("0x10")],s=e(o.find((e=>e[Ds("0x10")]===t))[Ds("0x11")]);return r[Ds("0x21")][0][Ds("0x1e")]?{type:Ds("0xe"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0xe"),content:Yo(n,Ds("0x9"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["enableCommand","plugins","get","editor","afterInit"];var Gs,Hs;Gs=Us,Hs=362,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Vs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[Vs("0x2")](){const t=this[Vs("0x1")];t.plugins.has("CommentsEditing")&&t[Vs("0x4")][Vs("0x0")]("TrackChangesEditing")[Vs("0x3")]("addCommentThread")}}var zs=n(181);const Ks=["mapper","selection","delete","unit","data","get","end","showSuggestionHighlights","batch","remove","editing","enableCommand","root","editor","getFirstRange","bind","deleteForward","forward","markerName","fromRange","writer","merge","unlock","modifySelection","buffer","TrackChangesEditing","options","lock","uiElement","markerNameToElements","requires","rootName","createRange","isCollapsed","addMarker:suggestion:deletion","model","high","createSelection","removeMarker:suggestion:deletion","document","init","setSelection"];var qs,Xs;qs=Ks,Xs=188,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xa")](){return[zs.Delete]}[$s("0x14")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x5"));e.enableCommand($s("0x18"));const n=t.commands[$s("0x1b")]($s("0x26"));e[$s("0x21")]("deleteForward",((e,o={})=>{const s=t.model[$s("0x11")](t[$s("0xf")][$s("0x13")][$s("0x17")]);s[$s("0xd")]&&t[$s("0xf")][$s("0x3")](s,{direction:$s("0x27"),unit:o[$s("0x19")]});const r=s[$s("0x24")](),x=i.LiveRange[$s("0x29")](r);let a;e(o),a="$graveyard"==x[$s("0x22")][$s("0xb")]?t[$s("0xf")][$s("0xc")](r.start):t[$s("0xf")].createRange(x.start,x.end),x.detach(),t.model.enqueueChange(n[$s("0x4")][$s("0x1e")],(t=>{n.buffer[$s("0x7")](),t[$s("0x15")](t[$s("0xc")](a[$s("0x1c")])),n.buffer[$s("0x2")]()}))})),t[$s("0x20")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x1")),{priority:$s("0x10")}),t[$s("0x1a")].downcastDispatcher.on($s("0xe"),((e,n,o)=>{o[$s("0x6")][$s("0x1d")]&&hs(t,$s("0x1"),{showActiveMarker:!1})[$s("0x25")](this)(e,n,o)}),{priority:"high"}),t[$s("0x20")].downcastDispatcher.on($s("0x12"),((t,e,n)=>{const o=n[$s("0x16")][$s("0x9")](e[$s("0x28")]);if(o)for(const t of o)t.is($s("0x8"))&&(n[$s("0x16")].unbindElementFromMarkerName(t,e[$s("0x28")]),n[$s("0x0")][$s("0x1f")](t))}),{priority:$s("0x10")})}}const Qs=["multipleBlocks","commandParams","bulletedList","createRange","_descriptionFactory","ELEMENT_LIST_ITEM","expandListBlocksToCompleteList","format","model","forceValue","formatBlock","before","setSelection","ELEMENT_","accept","indentList","*Format:* remove from %0","markBlockFormat","refresh","isFirstBlockOfListItem","length","fromRange","listIndent","schema","parent","isObject","numberedList","registerDescriptionCallback","from","value","registerCustomCallback","markMultiRangeBlockFormat","createPositionAt","splitListItemBefore","enableCommand","*Indent:* %0","nodeAfter","*Change to:* %0","listItemId","*Merge:* %0","locale","*Format:* insert into %0","get","commands","outdentList","document","getAttribute","end","map","previousSibling","nextSibling","*Outdent:* %0","DocumentListUtils","push","containsItem","toUpperCase","afterInit","findIndex","commandName","_LIST","detach","listType","DocumentListEditing","selection","documentList","ELEMENT_BULLETED_LIST","editor","getSelectedBlocks","next","start","add","getRanges","splitListItemAfter","change","getFirstRange","plugins"];var Zs,Ys;Zs=Qs,Ys=410,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1a")](){const t=this[tr("0x24")];if(!t.plugins.has(tr("0x20")))return;const e=t[tr("0xa")],n=t[tr("0x2d")][tr("0xc")]("TrackChangesEditing"),o=t[tr("0x2d")][tr("0xc")](tr("0x16"));function s(e){return()=>{const s=t[tr("0xd")][tr("0xc")](e);let r=Array[tr("0x4a")](t[tr("0x36")][tr("0xf")][tr("0x21")][tr("0x25")]());if(a(e)){r=o[tr("0x34")](r);const t=[];for(const e of r)o[tr("0x41")](e)&&t[tr("0x17")](e);r=t}t[tr("0x36")][tr("0x2b")]((()=>{n[tr("0x1")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x4b")]}],formatGroupId:tr("0x1f")},[],tr("0x22"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x1b")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0xf")].selection[tr("0x25")]()),s=o[o[tr("0x42")]-1],r=t[tr("0x36")][tr("0x45")][tr("0x47")](s)?"after":tr("0x11"),i=t[tr("0x36")][tr("0x31")](t[tr("0x36")][tr("0x2")](o[0],tr("0x39")),t[tr("0x36")][tr("0x2")](s,r));t[tr("0x36")][tr("0x2b")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1f")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x14")];for(;t&&t[tr("0x10")](tr("0x44"))>n[tr("0x10")](tr("0x44"));)e[tr("0x28")](t),t=t[tr("0x14")]}return Array[tr("0x4a")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x36")][tr("0xf")].selection[tr("0x25")]()[tr("0x26")]().value,s=t[tr("0x36")].createPositionAt(o,tr("0x39")),r=t[tr("0x36")][tr("0x2")](o,0),i=t.model[tr("0x31")](s,r);t[tr("0x36")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0xc")](tr("0x30"))[tr("0x4b")],o=t[tr("0xd")].get(tr("0x48"))[tr("0x4b")];return tr("0x48")===e?n:o}n.enableCommand(tr("0x48"),s("numberedList")),n[tr("0x4")](tr("0x30"),s(tr("0x30"))),n.enableCommand(tr("0x3d"),r("indentList")),n[tr("0x4")](tr("0xe"),r(tr("0xe"))),n[tr("0x4")](tr("0x2a"),x(tr("0x2a"))),n[tr("0x4")](tr("0x3"),x("splitListItemBefore")),n[tr("0x32")].registerElementLabel((function(e){const n=!t[tr("0x36")][tr("0x45")][tr("0x47")](e),o=e[tr("0x13")],s=e[tr("0x14")],r=e.getAttribute(tr("0x8")),i=!o||o[tr("0x10")]("listItemId")!==r,x=!s||s[tr("0x10")](tr("0x8"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x32")][tr("0x49")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x1c")]){case tr("0x30"):r=n[tr("0x2f")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x3e"),i&&(o=tr("0x7")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x23")))};break;case tr("0x48"):r=n.commandParams[0][tr("0x37")],i=a(n[tr("0x1c")]),o=tr(r?"0xb":"0x3e"),i&&(o="*Change to:* %0"),s={type:tr("0x35"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x3d"):o=tr("0x5"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x33")))};break;case tr("0xe"):o=function(t){const e=t[tr("0x2c")]();let n=e[tr("0x27")][tr("0x6")];for(;n&&e[tr("0x18")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3e"),Yo(e,function(t){const e=t[tr("0x2c")]().start[tr("0x6")];return tr("0x3b")+e[tr("0x10")](tr("0x1f"))[tr("0x19")]()+tr("0x1d")}(t))):Yo(e,tr("0x15"),Yo(e,tr("0x33"))),s={type:tr("0x35"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[tr("0x2e")]&&(o=tr("0x9"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x33")))})}return s})),n._suggestionFactory[tr("0x0")](tr("0x38"),tr("0x22"),tr("0x3c"),(function(e,n){const o=[];for(let n of e)n[tr("0x27")][tr("0x6")]===n[tr("0x11")][tr("0x46")]&&(n=t.model[tr("0x31")](t[tr("0x36")][tr("0x2")](n[tr("0x27")][tr("0x6")],0))),o[tr("0x17")](n);t.model[tr("0x2b")]((e=>{const s=t[tr("0x36")][tr("0xf")].selection,r=Array.from(s[tr("0x29")]())[tr("0x12")]((t=>i.LiveRange[tr("0x43")](t)));e[tr("0x3a")](o),t[tr("0xd")].get(n[tr("0x1c")])[tr("0x40")](),n[tr("0x2f")][tr("0x17")]({forceDefaultExecution:!0}),t.execute(n[tr("0x1c")],...n[tr("0x2f")]),e[tr("0x3a")](r);for(const t of r)t[tr("0x1e")]()}))}))}}var nr=n(331);const or=["showSuggestionHighlights","detach","downcastDispatcher","markInsertion","plugins","markerName","enableCommand","options","afterExecute","mapper","end","setSelection","change","fire","createRange","TrackChangesEditing","addMarker:suggestion:insertion","bind","hasClass","split","ck-suggestion-marker-split","editing","writer","getFirstRange","selection","get","unbindElementFromMarkerName","parent","removeMarker:suggestion:insertion","editor","model","fromRange","high","remove","requires","createPositionAt","commands","enter"];var sr,rr;sr=or,rr=225,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("0x25")](){return[nr.Enter]}init(){const t=this[ir("0x20")],e=t[ir("0x7")][ir("0x1c")](ir("0x12")),n=t[ir("0x1")][ir("0x1c")]("enter");e[ir("0x9")](ir("0x2"),(()=>{t[ir("0x21")][ir("0xf")]((o=>{const s=t[ir("0x21")].document[ir("0x1b")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x22")](s[ir("0x1a")]());if(n.enterBlock(o)){const n=t.model[ir("0x0")](r[ir("0x1e")].nextSibling,0),s=o.createRange(r,n);e[ir("0x6")](s)}else o[ir("0xe")](o[ir("0x11")](x[ir("0xd")]));x[ir("0x4")](),n[ir("0x10")](ir("0xb"),{writer:o})}))})),t[ir("0x18")].downcastDispatcher.on(ir("0x13"),hs(t,ir("0x16")),{priority:ir("0x23")}),t.editing[ir("0x5")].on(ir("0x1f"),((t,e,n)=>{const o=n[ir("0xc")].markerNameToElements(e[ir("0x8")]);if(o)for(const t of o)t[ir("0x15")](ir("0x17"))&&(n[ir("0xc")][ir("0x1d")](t,e[ir("0x8")]),n[ir("0x19")][ir("0x24")](t))}),{priority:ir("0x23")}),t.data[ir("0x5")].on(ir("0x13"),((e,n,o)=>{o[ir("0xa")][ir("0x3")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x14")](this)(e,n,o)}),{priority:ir("0x23")})}}const ar=["model","plugins","replace","createPositionAt","getRange","TrackChangesEditing","createRange","findByTextCallback","start","replaceAll","get","suggestion:deletion","item","afterInit","FindAndReplaceUtils","_isInDeletionRange","getMarkersGroup","enableCommand","FindAndReplaceEditing","findNext","handleFindCommand","getIntersection","editor","findPrevious"];var cr,lr;cr=ar,lr=341,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x8")](){if(!this[dr("0x11")][dr("0x14")].has(dr("0xd")))return;const t=this.editor[dr("0x14")][dr("0x5")](dr("0x0"));t[dr("0xc")]("find",this[dr("0xf")].bind(this)),t.enableCommand(dr("0xe")),t.enableCommand(dr("0x12")),t.enableCommand(dr("0x15")),t[dr("0xc")](dr("0x4"))}[dr("0xf")](t,e,n={}){const o=this[dr("0x11")].plugins[dr("0x5")](dr("0x9"));void 0!==n&&t((t=>("string"==typeof e?o[dr("0x2")](e,n):e)(t).filter((e=>!1===this[dr("0xa")](e,t[dr("0x7")])))),n)}[dr("0xa")](t,e){const n=this[dr("0x11")][dr("0x13")][dr("0x1")](this.editor[dr("0x13")][dr("0x16")](e,t[dr("0x3")]),this[dr("0x11")][dr("0x13")][dr("0x16")](e,t.end));for(const t of this[dr("0x11")][dr("0x13")].markers[dr("0xb")](dr("0x6")))if(null!==n[dr("0x10")](t[dr("0x17")]()))return!0;return!1}}const gr=["commandName","fontSize","TrackChangesEditing","fontFamily","*Set font background color:* %0","fontBackgroundColor","value","*Reset font background color*","*Reset font size*","title","_enableCommand","normalizeSizeOptions","*Set font family:* %0","toLowerCase","model","has","find","plugins","fontColor","format","*Reset font family*","FontSize","registerDescriptionCallback","editor","*Set font color:* %0","fontBackgroundColor.colors","*Reset font color*","enableCommand","markInlineFormat","config","fontColor.colors","selection","FontSizeEditing","isCollapsed","afterInit","FontColorEditing","get","from","_descriptionFactory","commandParams","label","trim","FontFamilyEditing"];var mr,fr;mr=gr,fr=289,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1"),commandName:hr("0xd")},{pluginName:hr("0xb"),commandName:hr("0xf")},{pluginName:hr("0x4"),commandName:hr("0x1e")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x11")}];class br extends t.Plugin{[hr("0x3")](){const t=this[hr("0x23")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x1d")][hr("0x1b")](t)&&this[hr("0x16")](e);this.editor.plugins[hr("0x5")]("TrackChangesEditing")[hr("0x7")][hr("0x22")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xd")==o[hr("0xc")]){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=n(this.editor[hr("0x1d")].get(hr("0x21"))[hr("0x17")](this.editor[hr("0x29")][hr("0x5")]("fontSize.options"))[hr("0x1c")]((t=>t[hr("0x1a")]==e))[hr("0x15")])[hr("0x19")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x1f"),content:Yo(t,hr("0x14"))}}if(hr("0xf")==o[hr("0xc")]){const e=o.commandParams[0].value;return e?{type:hr("0x1f"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x1f"),content:Yo(t,hr("0x20"))}}if(hr("0x1e")==o.commandName){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x29")][hr("0x5")](hr("0x2a")))[hr("0x1c")]((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x24"),i)[hr("0xa")](),color:{value:e,title:i||r}}}return{type:hr("0x1f"),content:Yo(t,hr("0x26"))}}if(hr("0x11")==o[hr("0xc")]){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x29")][hr("0x5")](hr("0x25")))[hr("0x1c")]((t=>t[hr("0x1a")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x10"),i)[hr("0xa")](),color:{value:e,title:i||r}}}return{type:hr("0x1f"),content:Yo(t,hr("0x13"))}}}}))}[hr("0x16")](t){const e=this[hr("0x23")];e[hr("0x1d")][hr("0x5")](hr("0xe"))[hr("0x27")](t,((n,o={})=>{const s=e[hr("0x1a")].document[hr("0x0")],r=o[hr("0x12")];s[hr("0x2")]?n(o):e[hr("0x1a")].change((()=>{const n=Array[hr("0x6")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1a")]);for(const o of n)e[hr("0x1d")][hr("0x5")](hr("0xe"))[hr("0x28")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["isFormatting","push","model","format","title","config","get","editor","getAttributes","split","getAttributeProperties","commands","entries","modifySelection","getRanges","getLastPosition","toLowerCase","normalizeSizeOptions","boolean","getFirstPosition","word","getItems","*Remove all formatting*","pasteFormat","find","FontSize","copyFormat","fontColor","*Set format to:* %0","markInlineFormat","fontBackgroundColor","join","schema","getSelectedBlocks","backward","plugins","length","_descriptionFactory","charAt","fontColor.colors","from","isBlock","enableCommand","locale","createRange","TrackChangesEditing","change","selection","slice","commandName","label","afterInit","fontSize.options","commandParams"];var _r,Tr;_r=Er,Tr=444,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x27")](){const t=this[Cr("0x31")],n=t[Cr("0x2c")],o=n.document[Cr("0x23")],s=t[Cr("0x17")][Cr("0x30")](Cr("0x21")),r=t[Cr("0x1f")],i=t[Cr("0x35")][Cr("0x30")](Cr("0xe")),x=t[Cr("0x35")][Cr("0x30")]("pasteFormat");i&&x&&(s.enableCommand(Cr("0xb"),((t,r={})=>{const i=r;n[Cr("0x22")]((()=>{const t=Array[Cr("0x1c")](o[Cr("0x2")]()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x32")]()){const t=e[Cr("0x34")](n);t&&t[Cr("0x2a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2")]())for(const t of e[Cr("0x9")]())!n[Cr("0x1d")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x15")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x14")]))||0!==Object.keys(i)[Cr("0x18")])for(const t of r)s[Cr("0x11")](t,{commandName:Cr("0xb"),commandParams:[i]})}))})),s[Cr("0x19")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x25")]){const e=[],o=n[Cr("0x29")][0];for(const[n,s]of Object[Cr("0x0")](o))e[Cr("0x2b")](Ar(t,n,s));return e.length?{type:Cr("0x2d"),content:Yo(r,Cr("0x10"),e[Cr("0x13")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0xa"))}}})),t[Cr("0x17")][Cr("0x30")](Cr("0x21"))[Cr("0x1e")](Cr("0xe")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1")](n,{unit:Cr("0x8"),direction:Cr("0x16")});const o=n[Cr("0x7")]();t[Cr("0x1")](n,{unit:Cr("0x8"),direction:"forward"});const s=n[Cr("0x3")]();return t[Cr("0x20")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x33")](/(?=[A-Z])/)[Cr("0x13")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x24")](1))[Cr("0x4")]();if(Cr("0x6")==typeof n)return i;if(Cr("0xf")===e||Cr("0x12")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2f")][Cr("0x30")](Cr("0x1b")))[Cr("0xc")]((t=>t[Cr("0x2c")]==n));return i+" ("+(e?o(e[Cr("0x26")])[Cr("0x4")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x17")].get(Cr("0xd"))[Cr("0x5")](t[Cr("0x2f")][Cr("0x30")](Cr("0x28"))).find((t=>t[Cr("0x2c")]==n));return i+" ("+(e?o(e[Cr("0x2e")])[Cr("0x4")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","from","title","format","locale","document","schema","*Change to:* %0","editor","HeadingEditing","commandParams","has","ELEMENT_HEADING_CUSTOM","find","enableCommand","model","formatBlock","get","parent","isObject","ELEMENT_HEADING","match","_descriptionFactory","value","name","registerDescriptionCallback","checkChild","TrackChangesEditing","filter","plugins","heading","getSelectedBlocks"];var Rr,Sr;Rr=vr,Sr=320,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x8")],e=t[Ir("0x4")],n=t.config.get("heading.options");if(!t[Ir("0x1d")][Ir("0xb")](Ir("0x9")))return;const o=t[Ir("0x1d")][Ir("0x11")](Ir("0x1b"));o[Ir("0xe")](Ir("0x1e"),((e,n)=>{const s=n[Ir("0x17")],r=Array[Ir("0x1")](this.editor[Ir("0xf")][Ir("0x5")].selection[Ir("0x1f")]())[Ir("0x1c")]((t=>{return e=t,n=s,(o=this[Ir("0x8")].model[Ir("0x6")])[Ir("0x1a")](e[Ir("0x12")],n)&&!o[Ir("0x13")](e)&&e[Ir("0x18")]!=n;var e,n,o}));t[Ir("0xf")].change((()=>{for(const t of r)o[Ir("0x0")](t,{commandName:Ir("0x1e"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xf")]&&o[Ir("0x16")].registerElementLabel(t.model,(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x2")])}));function s(t,n){return Yo(e,Ir("0x14"),[t,n])}function r(t,n){return Yo(e,Ir("0xc"),[t,n])}o[Ir("0x16")][Ir("0x19")]((t=>{const{type:o,data:i}=t;if(Ir("0x10")==o&&i&&Ir("0x1e")==i.commandName){const t=i[Ir("0xa")][0][Ir("0x17")],o=Nr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0x7"),s(1,o))};const x=n[Ir("0xd")]((e=>e[Ir("0xf")]===t)).title;return{type:Ir("0x3"),content:Yo(e,Ir("0x7"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x15")](/^heading(\d+)$/);return e?e[1]:null}const wr=["commandName","find","model","value","markInlineFormat","plugins","registerDescriptionCallback","getLastMatchingPosition","selection","commandParams","hasAttribute","highlight.options","backward","*Remove highlight*","formatInline","FORMAT_HIGHLIGHT","isCollapsed","change","createRange","push","getAttribute","locale","TrackChangesEditing","HighlightEditing","has","document","title","highlight","item","_descriptionFactory","format","editor","toLowerCase","getFirstPosition"];var Mr,Or;Mr=wr,Or=471,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0x2")];if(!t[Fr("0xa")][Fr("0x1d")](Fr("0x1c")))return;const e=t[Fr("0xa")].get(Fr("0x1b"));e.enableCommand(Fr("0x20"),((n,o={})=>{const s=t[Fr("0x7")][Fr("0x1e")][Fr("0xd")],r=s.getAttribute(Fr("0x20"));let i=o[Fr("0x8")],x=[];if(s[Fr("0x15")]){const e=s[Fr("0x4")]();if(!s[Fr("0xf")]("highlight"))return void n(o);{const n=t=>t[Fr("0x21")][Fr("0x19")](Fr("0x20"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x11")}),s=e[Fr("0xc")](n);x=[t[Fr("0x7")][Fr("0x17")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Fr("0x18")](e):x[Fr("0x18")](...ms(Fr("0x20"),e,t[Fr("0x7")]));t[Fr("0x7")][Fr("0x16")]((()=>{for(const t of x)e[Fr("0x9")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1a")];e[Fr("0x0")][Fr("0xb")]((e=>{const{type:o,data:s}=e;if(Fr("0x13")==o&&s&&"highlight"==s[Fr("0x5")]){const e=n.t,o=s[Fr("0xe")][0][Fr("0x8")];if(o){const s=t.config.get(Fr("0x10"))[Fr("0x6")]((t=>t[Fr("0x7")]==o)),r=e(s[Fr("0x1f")])[Fr("0x3")]();return{type:Fr("0x1"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x1f")]}}}return{type:Fr("0x1"),content:Yo(n,Fr("0x12"),Yo(n,Fr("0x14")))}}}))}}const Dr=["editor","ELEMENT_HORIZONTAL_LINE","has","enableCommand","addClass","elementToStructure","showSuggestionHighlights","get","registerElementLabel","afterInit","horizontalLine","conversion","for","ck-horizontal-line","plugins","high","_descriptionFactory","locale","createEmptyElement","TrackChangesEditing"];var Br,jr;Br=Dr,jr=241,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x8")](){const t=this[Ur("0x13")];if(!t.plugins[Ur("0x1")]("HorizontalLineEditing"))return;t[Ur("0xd")][Ur("0x6")](Ur("0x12"))[Ur("0x2")](Ur("0x9"));const e=t[Ur("0xd")].get(Ur("0x12")),n=t[Ur("0x10")];e[Ur("0xf")][Ur("0x7")](Ur("0x9"),(t=>Yo(n,Ur("0x0"),t))),t[Ur("0xa")][Ur("0xb")]("dataDowncast")[Ur("0x4")]({model:Ur("0x9"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x5")])return null;const o=e.createContainerElement("div"),s=e[Ur("0x11")]("hr");return e[Ur("0x3")](Ur("0xc"),o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["htmlEmbed","getSelectedElement","commandName","registerDescriptionCallback","rawHtml","has","*Change %0 content*","_descriptionFactory","plugins","getAttribute","locale","registerElementLabel","TrackChangesEditing","ELEMENT_HTML_EMBED","HtmlEmbed","model","element","cancel","markBlockFormat","document","selection","get","enableCommand","afterInit","rawHtmlApi","editing"];var Vr,Wr;Vr=Hr,Wr=221,function(t){for(;--t;)Vr.push(Vr.shift())}(++Wr);const zr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[zr("0xa")](){const t=this.editor;if(!t[zr("0x15")][zr("0x12")](zr("0x1")))return;const e=t.plugins[zr("0x8")](zr("0x19")),n=t[zr("0x17")],o=t[zr("0xc")].view[zr("0x6")][zr("0x7")];e[zr("0x14")][zr("0x18")](zr("0x11"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t.plugins[zr("0x8")](zr("0x19"))[zr("0x9")](zr("0xd"),((n,s)=>{const r=t[zr("0x2")],i=r[zr("0x6")][zr("0x7")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(zr("0x3"),"rawHtml")?t[zr("0xe")]():null}(i);if(!t)return void n(null);const r=t[zr("0x16")]("value")||"";void 0!==s&&s!==r&&(e[zr("0x5")](t,{commandName:zr("0xd"),commandParams:[s]}),o[zr("0xe")]().getCustomProperty(zr("0xb"))[zr("0x4")]())}))})),e[zr("0x14")][zr("0x10")]((t=>{const{data:e}=t;if(e&&zr("0xd")==e[zr("0xf")]){const t=Yo(n,zr("0x0"));return{type:"format",content:Yo(n,zr("0x13"),t)}}}))}}const qr=["createRangeOn","getSuggestionCallback","isEqual","subType","nodeBefore","plugins","from","type","schema","detach","_suggestionFactory","_descriptionFactory","uploadImage","filter","caption","resizeImage","ImageUtils","formatBlock","selection","toPrevious","registerCustomCallback","fromPosition","getFirstRange","isInContent","ELEMENT_IMAGE","ImageCaptionUtils","has","imageStylePostApply","locale","commandParams","change","Inline image to block image","editor","imageInline","insertImage","format","isBlockImage","name","hasSuggestion","forceDefaultExecution","chain","shouldConvertImageType","imageCaption","TrackChangesEditing","differ","document","start","imageTypeBlock","nodeAfter","next","formatInline","ImageResize","getContainedElement","get","findIndex","FORMAT_SIDE_IMAGE","suggestion","ImageBlockEditing","toLowerCase","value","isCollapsed","join","imageStyle","getChangedMarkers","isOwn","imageBlock","convertBlockImageToInline","commands","getNearestSelectionRange","createRange","find","backward","Block image to inline image","commandName","imageTextAlternative","*Set image text alternative:* %0","ELEMENT_CAPTION","ImageInlineEditing","markInlineFormat","afterInit","length","width","markBlockFormat","accept","ImageTextAlternativeEditing","imageTypeInline","imageStylePreApply","isInlineImage","newRange","enableCommand","getAttribute","isBefore","registerElementLabel","end","getSuggestion","discard","ImageEditing","getSuggestions","newValue","getClosestSelectedImageElement","refresh","*Set image width:* %0","isIntersecting","alt","_findSuggestions","convertInlineImageToBlock","ImageUploadEditing","registerDescriptionCallback","markInsertion","discardSuggestion","commandReversedParams","ImageCaptionEditing","model","insertion","markDeletion"];var Xr,$r;Xr=qr,$r=322,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x66")](){const t=this[Jr("0x37")];if(!t[Jr("0x1c")][Jr("0x31")](Jr("0x4")))return;const n=t[Jr("0x1c")].get(Jr("0x42")),o=t[Jr("0x1c")].get(Jr("0x27")),s={},r=t[Jr("0x33")];if(n[Jr("0x70")](Jr("0x39")),n[Jr("0x22")][Jr("0x0")](Jr("0x58"),(t=>Yo(r,Jr("0x2f"),t))),n._descriptionFactory[Jr("0x0")](Jr("0x38"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x22")][Jr("0x0")](Jr("0x25"),(()=>Yo(r,Jr("0x63")))),t[Jr("0x1c")][Jr("0x31")](Jr("0xe"))&&n[Jr("0x70")](Jr("0x23")),t[Jr("0x1c")].has(Jr("0x50"))&&t[Jr("0x1c")][Jr("0x31")](Jr("0x64"))&&(n[Jr("0x70")](Jr("0x6c"),((e,s)=>{const r=o[Jr("0x7")](t.model[Jr("0x44")][Jr("0x29")]);t.model[Jr("0x35")]((()=>{n[Jr("0x69")](r,{commandName:Jr("0x6c"),commandParams:[s]},[],Jr("0x59"))}))})),n.enableCommand(Jr("0x46"),((e,s)=>{t[Jr("0x14")][Jr("0x35")]((r=>{let x=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),a=r[Jr("0x17")](x);const c=i.LivePosition[Jr("0x2c")](a[Jr("0x45")],Jr("0x2a")),l=i.LivePosition[Jr("0x2c")](a.end,"toNext");n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),a=r[Jr("0x17")](x);const d=r[Jr("0x5c")](c,l);c[Jr("0x20")](),l[Jr("0x20")](),n[Jr("0x69")](x,{commandName:Jr("0x6c"),commandParams:[]},[],"convertInlineImageToBlock"),d.start.isBefore(a.start)&&n[Jr("0x10")](r[Jr("0x5c")](d.start,a[Jr("0x45")]),Jr("0xd")),a[Jr("0x1")][Jr("0x72")](d[Jr("0x1")])&&n[Jr("0x10")](r[Jr("0x5c")](a[Jr("0x1")],d[Jr("0x1")]),"convertInlineImageToBlock")}))})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),"convertInlineImageToBlock","join",(()=>{})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),Jr("0xd"),Jr("0x6a"),(()=>{})),n._suggestionFactory[Jr("0x2b")]("formatBlock",Jr("0xd"),"discard",n._suggestionFactory.getSuggestionCallback(Jr("0x28"),"","accept")),n[Jr("0x21")][Jr("0x2b")](Jr("0x15"),Jr("0xd"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x15"),"convertInlineImageToBlock",Jr("0x3"),(([e])=>{const o=n._suggestionFactory[Jr("0x18")](Jr("0x15"),"",Jr("0x3"));let s=e[Jr("0x45")],r=e[Jr("0x1")];const i=t[Jr("0x14")].schema[Jr("0x5b")](s,Jr("0x5e")),x=t[Jr("0x14")][Jr("0x1f")].getNearestSelectionRange(r,"forward");i[Jr("0x53")]&&(s=i[Jr("0x45")]),x[Jr("0x53")]&&(r=x[Jr("0x1")]),o([t[Jr("0x14")][Jr("0x5c")](s,r)])})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),Jr("0xd"),Jr("0x3f"),c),n[Jr("0x21")][Jr("0x2b")](Jr("0x15"),Jr("0xd"),Jr("0x3f"),c)),t[Jr("0x1c")][Jr("0x31")](Jr("0x13"))&&(n[Jr("0x70")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x4c")](Jr("0x30"));let i=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")].selection),x=r.getCaptionFromImageModelElement(i);t[Jr("0x14")][Jr("0x35")]((()=>{if(x)return void n[Jr("0x16")](t[Jr("0x14")].createRangeOn(x));const a=o[Jr("0x3b")](i);e(s),i=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")].selection),x=r.getCaptionFromImageModelElement(i),n[Jr("0x10")](t[Jr("0x14")][Jr("0x17")](x),a?null:Jr("0x41"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x15"),Jr("0x41"),"chain",c)),t[Jr("0x1c")][Jr("0x31")]("ImageStyleEditing")){n[Jr("0x70")](Jr("0x55"),((s,r)=>{const i=t.plugins[Jr("0x4c")]("Users").me,x=t[Jr("0x5a")][Jr("0x4c")]("imageStyle");let a=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),c=t[Jr("0x14")][Jr("0x17")](a),l=x.value;if(l==r[Jr("0x52")])return;const d={commandName:Jr("0x55"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x14")].change((()=>{if(n[Jr("0x5")]()[Jr("0x24")]((t=>t[Jr("0x2e")]&&i==t.author&&(Jr("0x28")==t[Jr("0x1e")]||Jr("0x49")==t[Jr("0x1e")])&&(Jr("0x6d")==t.subType||"imageStylePostApply"==t.subType)&&t[Jr("0x2d")]()[Jr("0x19")](c))).forEach((t=>n.discardSuggestion(t.head))),a=o[Jr("0x7")](t.model.document[Jr("0x29")]),c=t[Jr("0x14")][Jr("0x17")](a),x.refresh(),t[Jr("0x5a")][Jr("0x4c")](Jr("0x6c"))[Jr("0x8")](),t[Jr("0x5a")][Jr("0x4c")]("imageTypeBlock").refresh(),l=x[Jr("0x52")],l!=r[Jr("0x52")])return o[Jr("0x6e")](a)&&x[Jr("0x40")](r[Jr("0x52")],a)?(s(r),a=o[Jr("0x7")](t.model[Jr("0x44")][Jr("0x29")]),void n[Jr("0x69")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x3b")](a)?n[Jr("0x69")](a,d,[],Jr("0x32")):n[Jr("0x65")](c,d,Jr("0x32")))}))}));for(const e of t[Jr("0x1c")].get("ImageStyleEditing").normalizedStyles)s[e[Jr("0x3c")]]=e.title[Jr("0x51")]();n[Jr("0x21")].registerCustomCallback(Jr("0x28"),Jr("0x6d"),Jr("0x54"),(()=>{})),n[Jr("0x21")][Jr("0x2b")]("formatBlock",Jr("0x32"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x49"),Jr("0x32"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x28"),Jr("0x6d"),Jr("0x6a"),(()=>{})),n._suggestionFactory[Jr("0x2b")](Jr("0x28"),Jr("0x6d"),Jr("0x3"),((t,e)=>{n[Jr("0x21")][Jr("0x18")](Jr("0x28"),"","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x12")]})})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),"imageStylePreApply",Jr("0x3f"),c)}const x=[{type:"formatBlock",subType:Jr("0x6d")},{type:"insertion",subType:Jr("0x41")},{type:Jr("0x28"),subType:Jr("0xd")},{type:Jr("0x15"),subType:Jr("0xd")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),r=x[Jr("0x4d")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x1a")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x2d")](),a=e[Jr("0x2d")]();if((0==s||1==s)&&2==r&&i[Jr("0xa")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xc")](i,"insertion")[Jr("0x24")]((({suggestion:t,meta:e})=>e[Jr("0x57")]&&Jr("0xd")==t[Jr("0x1a")]));if(t[Jr("0x67")]>1&&a[Jr("0x1")][Jr("0x19")](i.start))return!0;if(1==t[Jr("0x67")]&&(i[Jr("0x45")].isEqual(a[Jr("0x1")])||i.end[Jr("0x19")](a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x72")](a[Jr("0x45")])){const t=i[Jr("0x1")][Jr("0x47")],e=a[Jr("0x45")][Jr("0x1b")];return o[Jr("0x3b")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x14")][Jr("0x44")].registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x1d")](t[Jr("0x14")].document[Jr("0x43")][Jr("0x56")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x4f")==s&&n[Jr("0x3d")](a)){if(Jr("0x28")==i&&("imageStylePreApply"==x||Jr("0x32")==x)){const t=n[Jr("0x2")](a);if(r[Jr("0x6f")]){const s=t[Jr("0x2d")]()[Jr("0x4b")]();if(o[Jr("0x3b")](s))continue;n[Jr("0x11")](t),e=!0}}if(Jr("0x15")==i&&Jr("0x41")==x&&!r[Jr("0x6f")]){const t=n[Jr("0x2")](a);t[Jr("0x48")]&&t[Jr("0x48")][Jr("0x2e")]&&(n[Jr("0x11")](t[Jr("0x48")]),e=!0)}}}return e})),t.plugins[Jr("0x31")](Jr("0x4a"))&&n[Jr("0x70")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")][Jr("0x29")]);r.getAttribute(Jr("0x68"))!=s[Jr("0x68")]&&t[Jr("0x14")][Jr("0x35")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x1c")][Jr("0x31")](Jr("0x6b"))&&n[Jr("0x70")](Jr("0x61"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")].selection);(r.hasAttribute("alt")?r[Jr("0x71")](Jr("0xb")):"")!=s.newValue&&t.model[Jr("0x35")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x61"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Jr("0x5d")]((({type:e,subType:n})=>t[Jr("0x1e")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[Jr("0x22")][Jr("0xf")]((t=>{if(Jr("0x15")==t[Jr("0x1e")]||"deletion"==t[Jr("0x1e")]){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x25")))return{type:Jr("0x15")==t[Jr("0x1e")]?"addObject":"removeObject",element:e,quantity:1}}})),n[Jr("0x22")][Jr("0xf")]((t=>Jr("0x28")==t.type&&Jr("0xd")==t[Jr("0x1a")]?{type:Jr("0x3a"),content:Jr("0x36")}:Jr("0x28")==t.type&&Jr("0x59")==t.subType?{type:Jr("0x3a"),content:Jr("0x5f")}:void 0)),n[Jr("0x22")][Jr("0xf")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x52")];return n="side"===t?Yo(r,Jr("0x4e")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if(Jr("0x61")==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x6")];return t?{type:Jr("0x3a"),content:Yo(r,Jr("0x62"),'"'+t+'"')}:{type:Jr("0x3a"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x26")==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x68")];return t?{type:Jr("0x3a"),content:Yo(r,Jr("0x9"),t)}:{type:Jr("0x3a"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["format","Users","*Format:* replace image URL","change","_suggestionFactory","registerCustomCallback","getContainedElement","locale","get","accept","subType","TrackChangesEditing","getAttribute","commandName","registerDescriptionCallback","handleSuggestionDescription","formatBlock","document","getSelectedElement","_descriptionFactory","replaceImageSource","handleReplaceImageCommand","getSuggestionCallback","markBlockFormat","getSuggestions","editor","plugins","src","discard","has","model"];var Yr,ti;Yr=Zr,ti=311,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("0x18")].plugins[ei("0x1c")]("ImageEditing"))return;const t=this[ei("0x18")][ei("0x19")][ei("0x7")](ei("0xa"));t.enableCommand(ei("0x13"),((t,e)=>this[ei("0x14")](t,e))),t[ei("0x3")][ei("0x4")]("formatBlock",ei("0x13"),"accept",t[ei("0x3")].getSuggestionCallback("formatBlock",null,ei("0x1b"))),t[ei("0x3")][ei("0x4")]("formatBlock",ei("0x13"),ei("0x1b"),t._suggestionFactory[ei("0x15")](ei("0xf"),null,ei("0x8"))),t[ei("0x12")][ei("0xd")]((t=>this[ei("0xe")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ei("0x19")][ei("0x7")](ei("0xa")),o=this[ei("0x18")].model[ei("0x10")].selection[ei("0x11")]();this.editor[ei("0x1d")][ei("0x2")]((()=>{let s=o[ei("0xb")](ei("0x1a"));const r=this[ei("0x18")][ei("0x19")].get(ei("0x0")).me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x5")]();if(ei("0x13")===t[ei("0x9")]&&e===o){t.author!==r&&t[ei("0x1b")](),s=t.data.commandParams[0].source;break}}t(e),n[ei("0x16")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x13"))}))}[ei("0xe")](t){const{data:e}=t;if(e&&ei("0x13")===e[ei("0xc")]){const t=ei("0x1");return{type:ei("0x1e"),content:Yo(this[ei("0x18")][ei("0x6")],t)}}}}const oi=["_trackChangesValueDuringImport","dataInsert","_handleImportedData","plugins","commands","TrackChangesEditing","listenTo","trackChanges","bind","get","afterInit","value","collaboration_features","_trackChangesExecuted","Users","_setSuggestionData","editor","importWord","execute","enableCommand","forEach"];var si,ri;si=oi,ri=434,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("0x7")]=!1,this._trackChangesExecuted=!1}[ii("0x11")](){const t=this.editor,e=t[ii("0xb")][ii("0x10")](ii("0x3")),n=t[ii("0xb")][ii("0x10")](ii("0xe"));e&&(e.on(ii("0x4"),((t,[,e])=>{this[ii("0x7")]=n[ii("0x12")],e[ii("0x13")].track_changes=!this[ii("0x7")]}),{priority:"high"}),this.listenTo(e,ii("0x8"),this._handleImportedData[ii("0xf")](this)),this[ii("0xd")](e,"dataInsert",(()=>{this[ii("0x14")]&&(n[ii("0x4")](),this[ii("0x14")]=!1)}),{priority:"lowest"}),t[ii("0xa")][ii("0x10")]("TrackChangesEditing")[ii("0x5")](ii("0x3")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this.editor[ii("0xb")][ii("0x10")](ii("0xe")),s=o[ii("0x12")];this[ii("0x7")]!==s&&(o.execute(),this[ii("0x14")]=!0),n&&n[ii("0x6")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xa")][ii("0x10")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x2")][ii("0xa")][ii("0x10")](ii("0xc"))[ii("0x1")](s)}))}}const ai=["editor","IndentBlock","enableCommand","plugins","getItems","_descriptionFactory","registerDescriptionCallback","TrackChangesEditing","markBlockFormat","get","schema","format","outdent","selection","commandName","indentBlock","checkAttribute","model","*Indent:* %0","IndentEditing","getSelectedBlocks","filter","outdentBlock","locale","indent","document","afterInit","has"];var ci,li;ci=ai,li=125,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xd")](){const t=this[di("0xf")],e=t.plugins[di("0x18")](di("0x16"));t[di("0x12")][di("0xe")](di("0x6"))&&(e[di("0x11")](di("0xb")),e[di("0x11")](di("0x1b")));const n=t[di("0xa")];if(t[di("0x12")][di("0xe")](di("0x10"))){for(const n of[di("0x2"),di("0x9")])e[di("0x11")](n,(()=>{const o=Array.from(this[di("0xf")][di("0x4")][di("0xc")][di("0x0")][di("0x7")]())[di("0x8")]((t=>this[di("0xf")].model[di("0x19")][di("0x3")](t,"blockIndent")));t[di("0x4")].change((()=>{for(const t of o)e[di("0x17")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x2")})}))}));e[di("0x14")][di("0x15")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x1")]&&di("0x9")!=o.commandName)return;const s=t[di("0x13")]()[0],r=e._descriptionFactory.getItemLabel(s);return di("0x2")==o[di("0x1")]?{type:"format",content:Yo(n,di("0x5"),r)}:di("0x9")==o[di("0x1")]?{type:di("0x1a"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["requires","enableCommand","editor","input","plugins","TrackChangesEditing"];gi=fi,mi=206,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[zs.Input]}init(){this[hi("0x0")][hi("0x2")].get(hi("0x3"))[hi("0x5")](hi("0x1"))}}const bi=["model","format","get","editor","_descriptionFactory","enableCommand","getFirstRange","linkHref","document","*Remove link*","selection","LinkEditing","change","isCollapsed","unlink","markInlineFormat","getFirstPosition","getAttribute","hasAttribute","registerDescriptionCallback","link","plugins","has","commandParams","commandName"];var Ei,_i;Ei=bi,_i=284,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0x13")];if(!t[Ti("0xc")][Ti("0xd")](Ti("0x2")))return;const e=t[Ti("0xc")][Ti("0x12")]("TrackChangesEditing");e[Ti("0x15")](Ti("0xb"),((n,o)=>{const s=t[Ti("0x10")][Ti("0x18")][Ti("0x1")];let r=[];if(s[Ti("0x4")]){if(!s[Ti("0x9")](Ti("0x17")))return void n(o);{const e=(0,zs.findAttributeRange)(s[Ti("0x7")](),"linkHref",s[Ti("0x8")]("linkHref"),t[Ti("0x10")]);r=[e]}}else r=Array.from(s.getRanges());t.model[Ti("0x3")]((()=>{for(const t of r)e[Ti("0x6")](t,{commandName:Ti("0xb"),commandParams:[o]})}))})),e[Ti("0x15")](Ti("0x5"),(()=>{const n=this.editor[Ti("0x10")],o=n.document.selection;n[Ti("0x3")]((()=>{let n=[];n=o[Ti("0x4")]?[(0,zs.findAttributeRange)(o[Ti("0x7")](),Ti("0x17"),o[Ti("0x8")]("linkHref"),t[Ti("0x10")])]:ms(Ti("0x17"),o[Ti("0x16")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x5"),commandParams:[]})}))})),e[Ti("0x14")][Ti("0xa")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0xb")==n[Ti("0xf")]){const t=n[Ti("0xe")][0];return{type:Ti("0x11"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x5")==n[Ti("0xf")]?{type:Ti("0x11"),content:Yo(o,Ti("0x0"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","parent","filter","selection","end","*Indent:* %0","numberedList","indentList","findIndex","get","listItem","commandName","afterInit","from","numbered","todoListChecked","element","nextSibling","document","*Change to:* %0","ELEMENT_LIST_ITEM","previousSibling","value","blockName","add","ListEditing","listIndent","schema","ELEMENT_NUMBERED_LIST","TrackChangesEditing","push","plugins","name","slice","createPositionAt","isObject","*Check item*","bulleted","change","has","model","checkTodoList","registerElementLabel","listType","length","bulletedList","_descriptionFactory","createRange","execute","ELEMENT_BULLETED_LIST","_selectedElements","commands","checkChild","getAttribute","*Uncheck item*","before","todoList","paragraph","markBlockFormat","getSelectedBlocks","registerDescriptionCallback","enableCommand","todo","outdentList","format"];var ki,Ai;ki=yi,Ai=469,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3f")](){const t=this.editor,e=t.locale;if(!t[vi("0x11")][vi("0x19")](vi("0xb")))return;const n=t[vi("0x11")][vi("0x3c")](vi("0xf")),o=t.plugins.has("TodoListEditing");function s(e){return()=>{const o=t[vi("0x1a")][vi("0x4")][vi("0x36")],s=t.commands[vi("0x3c")](e);if(s.value)return void t[vi("0x22")](vi("0x2b"),{});const r=e[vi("0x13")](0,-4),i=function(t,e,n){let o=Array[vi("0x40")](t)[vi("0x35")]((t=>{return e=t,(o=n)[vi("0x26")](e[vi("0x34")],vi("0x3d"))&&!o[vi("0x15")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x3d"))||t[vi("0x27")](vi("0x1d"))!=e));const s=new Set;for(const t of o)t.is("element",vi("0x3d"))?s[vi("0xa")](Si(t)):s.add(t);return Array[vi("0x40")](s)}(o[vi("0x2d")](),r,t.model[vi("0xd")]);t[vi("0x1a")][vi("0x18")]((()=>{for(const t of i)n[vi("0x2c")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x9")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x3b")]((t=>vi("0x3d")!=t.name));return n>-1&&(e=e[vi("0x13")](0,n)),e}(t.model.document[vi("0x36")][vi("0x2d")]()),s=t[vi("0x1a")][vi("0x21")](t[vi("0x1a")].createPositionAt(o[0],vi("0x29")),t.model[vi("0x14")](o[o[vi("0x1e")]-1],vi("0x37")));t[vi("0x1a")][vi("0x18")]((()=>{n[vi("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0xc")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3")];for(;t&&t[vi("0x27")](vi("0xc"))>n[vi("0x27")](vi("0xc"));)e.add(t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[vi("0x2f")](vi("0x39"),s("numberedList")),n[vi("0x2f")]("bulletedList",s(vi("0x1f"))),o&&n.enableCommand(vi("0x2a"),s("todoList")),n[vi("0x2f")](vi("0x3a"),r(vi("0x3a"))),n[vi("0x2f")](vi("0x31"),r(vi("0x31"))),o&&n.enableCommand(vi("0x1b"),(()=>{const e=t[vi("0x25")][vi("0x3c")]("checkTodoList"),o=Array[vi("0x40")](e[vi("0x24")]);o[vi("0x35")]((t=>t[vi("0x27")](vi("0x1"))!=e.value)),t[vi("0x1a")][vi("0x18")]((()=>{for(const t of o)n[vi("0x2c")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x8")]}]})}))})),n[vi("0x20")][vi("0x1c")]("listItem",(t=>Yo(e,vi("0x6"),t))),n[vi("0x20")][vi("0x2e")]((t=>{const{data:n}=t;if(n){if(vi("0x39")==n[vi("0x3e")]||vi("0x1f")==n[vi("0x3e")]||vi("0x2a")==n[vi("0x3e")])switch(n[vi("0x3e")].replace("List","")){case vi("0x17"):return o(Yo(e,vi("0x23")));case vi("0x0"):return o(Yo(e,vi("0xe")));case vi("0x30"):return o(Yo(e,vi("0x33")))}if(vi("0x3a")==n[vi("0x3e")])return{type:vi("0x32"),content:Yo(e,vi("0x38"),Yo(e,vi("0x6")))};if("outdentList"==n[vi("0x3e")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x6")))};if("checkTodoList"==n.commandName)return n.commandParams[0].forceValue?{type:vi("0x32"),content:Yo(e,vi("0x16"))}:{type:vi("0x32"),content:Yo(e,vi("0x28"))}}function o(t){return{type:vi("0x32"),content:Yo(e,vi("0x5"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0xc"));if(0==e)return t;let n=t;for(;t[vi("0x7")]&&t[vi("0x7")].is("element",vi("0x3d"));){const o=t[vi("0x7")][vi("0x27")](vi("0xc"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x7")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),vi("0x3d"))&&t[vi("0x27")]("listIndent")>0){let n=t[vi("0x3")];for(;n&&vi("0x3d")==n[vi("0x12")]&&n.getAttribute(vi("0xc"))==t.getAttribute(vi("0xc"));)e[vi("0x10")](n),n=n[vi("0x3")]}return e}const Li=["*Change to:* %0","_getSuggestionBlocksForListStyle","ListPropertiesEditing","map","document","createRange","element","has","handleDescriptions","createPositionAt","*Format:* set start index to %0","handleListStartCommand","numbered","editor","type","handleListStyleCommand","length","toUpperCase","getSelectedBlocks","reversed","getSiblingNodes","replace","commandName","listStart","markMultiRangeBlockFormat","get","commandParams","getFirstPosition","_getTranslationKeyForListStyle","parent","config","before","listReversed","forward","selection","listStyle","filter","handleListReversedCommand","change","format","listItem","styles","locale","getAttribute","enableCommand","getListTypeFromListStyleType","model","listType","push","_getSuggestionBlocks","plugins","ListUtils","TrackChangesEditing","ELEMENT_","bind","startIndex","flat","from","_descriptionFactory"];var Ni,wi;Ni=Li,wi=232,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[Mi("0x11")].plugins[Mi("0xb")](Mi("0x6")))return;const t=this[Mi("0x11")][Mi("0x22")][Mi("0x1d")]("list.properties"),e=this[Mi("0x11")].plugins[Mi("0x1d")](Mi("0x38"));t[Mi("0x2d")]&&e[Mi("0x30")](Mi("0x27"),this[Mi("0x13")].bind(this)),t.reversed&&e[Mi("0x30")](Mi("0x24"),this.handleListReversedCommand[Mi("0x3a")](this)),t[Mi("0x0")]&&e.enableCommand(Mi("0x1b"),this.handleListStartCommand[Mi("0x3a")](this)),e[Mi("0x3")].registerDescriptionCallback(this.handleDescriptions[Mi("0x3a")](this))}[Mi("0x13")](t,e={}){const n=this[Mi("0x11")][Mi("0x36")].get("TrackChangesEditing"),o=this[Mi("0x5")]();this[Mi("0x11")][Mi("0x32")][Mi("0x2a")]((()=>{n[Mi("0x1c")](o,{commandName:"listStyle",commandParams:[{type:e[Mi("0x12")]}],formatGroupId:Mi("0x27")})}))}[Mi("0x29")](t,e={}){const n=this[Mi("0x11")][Mi("0x36")][Mi("0x1d")](Mi("0x38")),o=this[Mi("0x35")]((t=>t.is(Mi("0xa"),Mi("0x2c"))&&Mi("0x10")===t[Mi("0x2f")](Mi("0x33"))));if(o[Mi("0x14")]<1)return;const s=o.map((t=>this[Mi("0x11")].model[Mi("0x9")](this[Mi("0x11")][Mi("0x32")][Mi("0xd")](t,Mi("0x23")),this[Mi("0x11")][Mi("0x32")].createPositionAt(t,0))));this[Mi("0x11")][Mi("0x32")][Mi("0x2a")]((()=>{n[Mi("0x1c")](s,{commandName:Mi("0x24"),commandParams:[{reversed:e.reversed}],formatGroupId:Mi("0x24")})}))}[Mi("0xf")](t,e={}){const n=this[Mi("0x11")].plugins[Mi("0x1d")](Mi("0x38")),o=this[Mi("0x35")]((t=>t.is(Mi("0xa"),"listItem")&&Mi("0x10")===t[Mi("0x2f")](Mi("0x33"))));if(o[Mi("0x14")]<1)return;const s=o[Mi("0x7")]((t=>this[Mi("0x11")][Mi("0x32")][Mi("0x9")](this[Mi("0x11")].model[Mi("0xd")](t,Mi("0x23")),this[Mi("0x11")][Mi("0x32")][Mi("0xd")](t,0))));this[Mi("0x11")][Mi("0x32")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x1b"),commandParams:[{startIndex:e[Mi("0x0")]}],formatGroupId:"listStart"})}))}[Mi("0xc")](t){const e=this[Mi("0x11")][Mi("0x2e")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x1a")]){case"listStyle":o=Mi("0x4"),s={type:Mi("0x2b"),content:Yo(e,o,Yo(e,this[Mi("0x20")](n[Mi("0x1e")][0].type)))};break;case Mi("0x24"):o=n.commandParams[0][Mi("0x17")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:Mi("0x2b"),content:Yo(e,o)};break;case Mi("0x1b"):o=Mi("0xe"),s={type:Mi("0x2b"),content:Yo(e,o,n[Mi("0x1e")][0].startIndex)}}return s}[Mi("0x5")](){var t,e,n,o;const s=this[Mi("0x11")][Mi("0x36")].get(Mi("0x37"));let r=Array[Mi("0x2")](this[Mi("0x11")][Mi("0x32")][Mi("0x8")][Mi("0x26")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0xa"),"listItem"))&&r.unshift(...s.getSiblingNodes(this.editor[Mi("0x32")][Mi("0x8")].selection[Mi("0x1f")](),"backward")),(null===(e=r[r[Mi("0x14")]-1])||void 0===e?void 0:e.is(Mi("0xa"),Mi("0x2c")))&&r[Mi("0x34")](...s[Mi("0x18")](this[Mi("0x11")].model[Mi("0x8")][Mi("0x26")].getLastPosition(),Mi("0x25"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x11")][Mi("0x32")][Mi("0x8")][Mi("0x26")][Mi("0x1f")]())||void 0===n?void 0:n[Mi("0x21")])||void 0===o?void 0:o.is("element",Mi("0x2c")))&&(r=r[Mi("0x28")]((t=>t.is("element","listItem")))),r}[Mi("0x35")](t){const e=this.editor[Mi("0x36")][Mi("0x1d")]("ListUtils");let n=Array[Mi("0x2")](this[Mi("0x11")][Mi("0x32")][Mi("0x8")].selection[Mi("0x16")]()).filter(t)[Mi("0x7")]((t=>{const n=this.editor.model[Mi("0xd")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[Mi("0x18")](n,Mi("0x25"))]}))[Mi("0x1")]();return n=[...new Set(n)],n}[Mi("0x20")](t){return Mi("0x39")+this[Mi("0x11")][Mi("0x36")].get(Mi("0x37"))[Mi("0x31")](t).toUpperCase()+"_LIST_"+t[Mi("0x15")]()[Mi("0x19")](/-/g,"_")}}const Fi=["for","data","high","ELEMENT_MEDIA","has","showSuggestionHighlights","div","createEmptyElement","conversion","enableCommand","TrackChangesEditing","downcastDispatcher","editor","attribute:url:media","dataDowncast","media","plugins","options","elementToElement","mediaEmbed","afterInit","MediaEmbedEditing","stop"];var Pi,Di;Pi=Fi,Di=185,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x13")](){const t=this[Bi("0xb")];if(!t.plugins[Bi("0x3")](Bi("0x14")))return;const e=t[Bi("0xf")].get(Bi("0x9")),n=t.locale;e[Bi("0x8")](Bi("0x12")),e._descriptionFactory.registerElementLabel(Bi("0xe"),(t=>Yo(n,Bi("0x2"),t))),t[Bi("0x7")][Bi("0x16")](Bi("0xd"))[Bi("0x11")]({model:Bi("0xe"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x4")])return e[Bi("0x6")](Bi("0x5"))},converterPriority:Bi("0x1")}),t[Bi("0x0")][Bi("0xa")].on(Bi("0xc"),((t,e,n)=>{n[Bi("0x10")].showSuggestionHighlights&&t[Bi("0x15")]()}),{priority:Bi("0x1")})}}const Ui=["mention","plugins","TrackChangesEditing","MentionEditing","has","editor"];var Gi,Hi;Gi=Ui,Hi=142,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Vi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[Vi("0x1")];t.plugins[Vi("0x0")](Vi("0x5"))&&t[Vi("0x3")].get(Vi("0x4")).enableCommand(Vi("0x2"))}}const zi=["locale","_descriptionFactory","editor","PageBreakEditing","afterInit","has","ELEMENT_PAGE_BREAK","pageBreak","get","plugins"];var Ki,qi;Ki=zi,qi=101,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[Xi("0x3")](){const t=this[Xi("0x1")];if(!t[Xi("0x8")][Xi("0x4")](Xi("0x2")))return;t.plugins[Xi("0x7")]("TrackChangesEditing").enableCommand(Xi("0x6"));const e=t[Xi("0x8")][Xi("0x7")]("TrackChangesEditing"),n=t[Xi("0x9")];e[Xi("0x0")].registerElementLabel(Xi("0x6"),(t=>Yo(n,Xi("0x5"),t)))}}const Ji=["includes","addMarker:suggestion:insertion","downcastDispatcher","data","getSelectedBlocks","from","_descriptionFactory","activeMarkers","mapper","start","isLimit","filter","getItemLabel","commandName","model","highest","registerElementLabel","markerRange","isObject","has","markBlockFormat","change","plugins","$text","isBlock","end","Paragraph","insert","consumable","checkChild","parent","insertion","writer","isTouching","addClass","editing","selection","paragraph","afterInit","createUIElement","toViewPosition","name","ck-suggestion-marker--active","ELEMENT_PARAGRAPH","get","markerName","locale","TrackChangesEditing","schema","registerDescriptionCallback","format","enableCommand","insertParagraph","blockName","*Change to:* %0","*Insert:* %0","document","bindElementToMarker","type","editor","nodeAfter","showSuggestionHighlights","span"];var Qi,Zi;Qi=Ji,Zi=224,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x3")](){const t=this[Yi("0x18")];if(!t[Yi("0x32")][Yi("0x2f")](Yi("0x36")))return;const e=t[Yi("0xb")],n=t.plugins.get("TrackChangesEditing");n[Yi("0x22")][Yi("0x2c")](Yi("0x2"),(t=>Yo(e,Yi("0x8"),t))),n[Yi("0x10")](Yi("0x2"),((e,o={})=>{const s=t[Yi("0x2a")][Yi("0x15")],r=o[Yi("0x1")]||s[Yi("0x1")],i=Array[Yi("0x21")](r[Yi("0x20")]())[Yi("0x27")]((t=>{return e=t,(n=this.editor[Yi("0x2a")][Yi("0xd")])[Yi("0x39")](e[Yi("0x3a")],Yi("0x2"))&&!n[Yi("0x2e")](e)&&Yi("0x2")!=e[Yi("0x6")];var e,n}));t.model[Yi("0x31")]((()=>{for(const t of i)n[Yi("0x30")](t,{commandName:Yi("0x2"),commandParams:[],formatGroupId:Yi("0x12")},fs(t))}))})),n[Yi("0x22")][Yi("0xe")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x29")])return{type:Yi("0xf"),content:Yo(e,Yi("0x13"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x10")](Yi("0x11")),t[Yi("0x0")].downcastDispatcher.on(Yi("0x1d"),ex(t),{priority:Yi("0x2b")}),t[Yi("0x1f")][Yi("0x1e")].on(Yi("0x1d"),((e,n,o)=>{o.options[Yi("0x1a")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x22")];o.registerDescriptionCallback((n=>{if(Yi("0x3b")!==n[Yi("0x17")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x3d")](r)||!s[Yi("0x19")])return;const i=t[Yi("0x2a")][Yi("0xd")],x=s[Yi("0x19")];return i[Yi("0x34")](x)&&!i[Yi("0x26")](x)&&i[Yi("0x39")](x,Yi("0x33"))?{type:Yi("0x3b"),content:Yo(e,Yi("0x14"),o[Yi("0x28")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x32")][Yi("0x9")](Yi("0xc")),i=o.markerRange[Yi("0x25")],x=o[Yi("0x2d")][Yi("0x35")],a=t[Yi("0x2a")][Yi("0xd")];if(!i[Yi("0x3d")](x)||!i[Yi("0x19")])return;const c=i[Yi("0x19")];if(a[Yi("0x34")](c)&&!a.isLimit(c)&&a[Yi("0x39")](c,Yi("0x33"))){if(!s[Yi("0x38")].consume(o[Yi("0x2d")],n.name))return;const t=s[Yi("0x3c")][Yi("0x4")](Yi("0x1b"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x24")][Yi("0x5")](x);e&&r[Yi("0x23")][Yi("0x1c")](o[Yi("0xa")])&&s[Yi("0x3c")][Yi("0x3e")](Yi("0x7"),t),s[Yi("0x3c")][Yi("0x37")](i,t),s.mapper[Yi("0x16")](t,o[Yi("0xa")])}}}const nx=["getAttributeProperties","schema","TrackChangesEditing","get","locale","from","commandName","createRangeOn","enableCommand","getRanges","has","document","plugins","getAttributes","change","selection","_descriptionFactory","format","removeFormat","markInlineFormat","editor","*Remove all formatting*","isCollapsed","registerDescriptionCallback","model"];var ox,sx;ox=nx,sx=320,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x0")];if(!t.plugins[rx("0xf")]("RemoveFormatEditing"))return;const e=t[rx("0x11")][rx("0x8")](rx("0x7"));e[rx("0xd")](rx("0x17"),(n=>{const o=t[rx("0x4")][rx("0x10")][rx("0x14")];o[rx("0x2")]?n():t[rx("0x4")][rx("0x13")]((()=>{const n=Array[rx("0xa")](o[rx("0xe")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x4")][rx("0x6")])&&e[rx("0x18")](t.model[rx("0xc")](n),{commandName:rx("0x17"),commandParams:[]})}))})),e[rx("0x15")][rx("0x3")]((e=>{const{data:n}=e;if(n&&rx("0x17")==n[rx("0xb")])return{type:rx("0x16"),content:Yo(t[rx("0x9")],rx("0x1"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x5")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["TrackChangesEditing","discardSuggestion","goToNextRestrictedEditingException","plugins","afterInit","acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","acceptAllSuggestions","trackChanges","editor","has","discardAllSuggestions","get","acceptSuggestion","RestrictedEditingModeEditing"];var cx,lx;cx=ax,lx=217,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xb")](){const t=this[dx("0x1")];if(!t[dx("0xa")][dx("0x2")](dx("0x6")))return;const e=t.plugins[dx("0x4")](dx("0x7"));e[dx("0xd")]("goToPreviousRestrictedEditingException"),e.enableCommand(dx("0x9"));const n=t[dx("0xa")][dx("0x4")](dx("0x6"));n[dx("0xd")](dx("0x0")),n[dx("0xd")](dx("0x5")),n[dx("0xd")](dx("0x8")),n[dx("0xd")](dx("0xf")),n[dx("0xd")](dx("0x3")),n.enableCommand(dx("0xc")),n[dx("0xd")](dx("0xe"))}}const gx=["addMarker:suggestion:insertion","consumable","createUIElement","span","addMarker:suggestion:deletion","showSuggestionHighlights","name","requires","ELEMENT_LINE_BREAK","split","deletion","mapper","softBreak","TrackChangesEditing","bindElementToMarker","markerRange","addMarker:suggestion","test","insert","activeMarkers","init","downcastDispatcher","get","markerName","element","editing","plugins","registerElementLabel","merge","locale","editor","writer","ck-suggestion-marker--active","addClass","shiftEnter","toViewPosition","enableCommand","high","getItems","ck-suggestion-marker-"];var mx,fx;mx=gx,fx=296,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1f")](){return[nr.ShiftEnter]}[hx("0x4")](){const t=this[hx("0xe")],e=t.plugins[hx("0x6")](hx("0x25"));e[hx("0x14")](hx("0x12")),t[hx("0x9")].downcastDispatcher.on(hx("0x18"),bx(t),{priority:hx("0x15")}),t[hx("0x9")].downcastDispatcher.on(hx("0x1c"),bx(t),{priority:hx("0x15")}),t.data[hx("0x5")].on(hx("0x0"),((e,n,o)=>{o.options[hx("0x1d")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xb")](hx("0x24"),(e=>Yo(t[hx("0xd")],hx("0x20"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xa")][hx("0x6")](hx("0x25"));if(!s[hx("0x19")][hx("0x1")](o[hx("0x27")],n[hx("0x1e")]))return;const i=t.model;for(const t of o[hx("0x27")][hx("0x16")]()){if(!t.is(hx("0x8"),"softBreak"))continue;const n=hx("0x22")==o.markerName.split(":")[1]?hx("0xc"):hx("0x21"),x=s[hx("0xf")][hx("0x1a")](hx("0x1b"),{class:hx("0x17")+n}),a=s[hx("0x23")][hx("0x13")](i.createPositionBefore(t));e&&r[hx("0x3")].includes(o[hx("0x7")])&&s[hx("0xf")][hx("0x11")](hx("0x10"),x),s.writer[hx("0x2")](a,x),s.mapper[hx("0x26")](x,o[hx("0x7")])}}}const Ex=["change","locale","commandParams","format","value","StandardEditingModeEditing","editor","forceValue","registerDescriptionCallback","commands","getRanges","isCollapsed","get","plugins","TrackChangesEditing","selection","_descriptionFactory","afterInit","from","enableCommand"];var _x,Tx;_x=Ex,Tx=456,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x1")](){const t=this[Cx("0xa")],e=t.model,n=t[Cx("0x5")];if(!t.plugins.has(Cx("0x9")))return;const o=t[Cx("0x11")][Cx("0x10")](Cx("0x12")),s="restrictedEditingException",r=t[Cx("0xd")].get(s);o[Cx("0x3")](s,((t,n={})=>{const i=e.document[Cx("0x13")];if(i[Cx("0xf")])return void t(n);const x=void 0!==n.forceValue?n[Cx("0xb")]:!r[Cx("0x8")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x2")](i[Cx("0xe")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x0")][Cx("0xc")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x6")][0][Cx("0xb")]?{type:Cx("0x7"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x7"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["style","getDefinitionsForView","add","normalizeConfig","every","enabledStyles","toLowerCase","classes","has","isCollapsed","markInlineFormat","enableCommand","name","*Remove format:* %0","commands","getAttribute","afterInit","createRangeOn","from","Style","_descriptionFactory","inline","get","plugins","push","_getRangesWithClasses","getRanges","DataSchema","locale","change","styleName","commandName","find","isBlock","commandParams","TrackChangesEditing","model","markBlockFormat","format","getAncestors","getItems","value","_getStyleDefinition","document","includes","modelElements","getSelectedBlocks"];var Ax,vx;Ax=kx,vx=250,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x1")](){const t=this.editor;if(!t[Rx("0x8")][Rx("0x28")](Rx("0x4")))return;const e=t[Rx("0x2e")].get(Rx("0x20")),n=t[Rx("0x8")][Rx("0x7")](Rx("0x14")),o=t[Rx("0xd")],s=t[Rx("0x8")][Rx("0x7")](Rx("0xc")),r=t[Rx("0x8")].get("StyleUtils")[Rx("0x23")](s,t.config[Rx("0x7")]("style.definitions"));n[Rx("0x2b")]("style",((o,{styleName:i})=>{const x=t[Rx("0x15")][Rx("0x1c")].selection,a=this[Rx("0x1b")](i,r);if(!a)return;if(!e[Rx("0x25")][Rx("0x1d")](i))return;if(x[Rx("0x29")]&&!a[Rx("0x12")])return void o({styleName:i});const c=!e[Rx("0x1a")].includes(a[Rx("0x2c")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x18")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x1d")](o[Rx("0x2c")])){n[Rx("0x22")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x1e")]);t[Rx("0x15")][Rx("0xe")]((()=>{for(const t of e)n[Rx("0x16")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x3")](x[Rx("0xb")]());if(!c){const n=Array[Rx("0x3")](s[Rx("0x21")](a.element,!1))[0][Rx("0x15")],o=[];for(const s of e){const e=this[Rx("0xa")](t[Rx("0x15")],s,a[Rx("0x27")],n);o[Rx("0x9")](...e)}e=o}t.model[Rx("0xe")]((()=>{for(const t of e)n[Rx("0x2a")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x5")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x10")])return e[Rx("0x13")][0].forceValue?{type:Rx("0x17"),content:Yo(o,"*Format:* %0",e[Rx("0x13")][0][Rx("0xf")][Rx("0x26")]())}:{type:Rx("0x17"),content:Yo(o,Rx("0x2d"),e.commandParams[0][Rx("0xf")][Rx("0x26")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x11")]((e=>e[Rx("0x2c")]===t));return n||(n=e[Rx("0x6")][Rx("0x11")]((e=>e.name===t))),n}[Rx("0xa")](t,e,n,o){const s=[];for(const r of e[Rx("0x19")]()){const e=r[Rx("0x0")](o);e&&n[Rx("0x24")]((t=>e.classes[Rx("0x1d")](t)))&&s[Rx("0x9")](t[Rx("0x2")](r))}return s}}const Ix=["getSelectionAffectedTableCells","filter","enqueueChange","commands","$graveyard","change","plugins","cell","isIntersectingWithRange","options","MIN_SAFE_INTEGER","_setupColumnsRowsFixing","order","downcastDispatcher","deletion","ELEMENT_TABLE_COLUMN","tablePaste","mapper","showSuggestionHighlights","data","highest","addMarker:suggestion","getRanges","minColumn","registerElementLabel","MAX_SAFE_INTEGER","join","end","selectTableRow","span","model","detach","first","getColumnIndexes","rootName","getFirstRange","position","ELEMENT_TABLE_ROW_WITH_TEXT","isTouching","locale","table","enableCommand","setSelection","insertTableColumnLeft","oldRange","removeTableRow","nodeAfter","insertion","fromRange","every","TrackChangesEditing","isArray","_suggestionFactory","forceValue","registerCustomCallback","createRangeIn","has","getChangedMarkers","rowspan","findAncestor","editor","registerDescriptionCallback","tableRow","_tableSuggestions","*Remove:* %0","batch","_getCoordsForCells","accept","afterInit","type","getChildren","createRangeOn","tableColumn","max","discard","change:data","createTableWalker","differ","TableEditing","name","ELEMENT_TABLE","selectTableColumn","document","start","tableCell","execute","root","push","$textProxy","insertTableColumnRight","getAttribute","getContainedElement","getItems","hasAttribute","minRow","getRowIndexes","ELEMENT_TABLE_ROW","element","toLowerCase","createPositionAt","min","_splitMarkerName","from","addRange","substr","isInContent","ELEMENT_TABLE_WITH_TEXT","TableUtils","_acceptFormatSuggestionCallbackFactory","colspan","markMultiRangeInsertion","_tablePostFixingSubtypes","low","selection","item","addClass","insertTable","suggestion","insertTableRowAbove","isEqual","values","startsWith","removeTableColumn","some","*Insert:* %0","_descriptionFactory","map","getCellLocation","_getSuggestionCoords","markMultiRangeDeletion","last","ELEMENT_TABLE_COLUMN_WITH_TEXT","removeClass","getChanges","left","classes","subType","refresh","length","get"];var Lx,Nx;Lx=Ix,Nx=214,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x25")]=[wx("0x80"),wx("0x8a")],this[wx("0x81")]=new Set}[wx("0x86")](){const t=this[wx("0x7e")],e=t[wx("0x60")][wx("0x8")].selection;if(!t[wx("0x48")][wx("0x7a")](wx("0x4")))return;const n=t[wx("0x69")],o=t.plugins.get(wx("0x74")),s=t[wx("0x48")][wx("0x41")](wx("0x21"));o[wx("0x33")][wx("0x5a")](wx("0x6a"),(t=>Yo(n,wx("0x6"),t))),this[wx("0x4d")](),o.enableCommand(wx("0x2a")),o[wx("0x6b")](wx("0x5e")),o[wx("0x6b")](wx("0x7"));for(const n of[wx("0x2c"),"insertTableRowBelow"]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[wx("0x60")].change((t=>{n();const i="above"===r[wx("0x4e")],x=s[wx("0x42")](e),a=s[wx("0x15")](x),c=i?a[wx("0x62")]-1:a[wx("0x38")]+1,l=x[0][wx("0x7d")](wx("0x6a")),d=s[wx("0x2")](l,{startRow:c,endRow:c}),u=Array.from(d)[wx("0x34")]((e=>t[wx("0x89")](e[wx("0x49")])));o[wx("0x24")](u,"tableRow")}))}))}for(const n of[wx("0x6d"),wx("0xf")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[wx("0x60")][wx("0x47")]((t=>{n();const i=wx("0x3c")===r[wx("0x4e")],x=s.getSelectionAffectedTableCells(e),a=s[wx("0x63")](x),c=i?a[wx("0x62")]-1:a.last+1,l=x[0][wx("0x7d")]("table"),d=s[wx("0x2")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x1c")](d)[wx("0x34")]((e=>t[wx("0x89")](e[wx("0x49")])));o[wx("0x24")](u,wx("0x8a"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const r=n.substr(11),i=r[wx("0x18")](),x=i[wx("0x1e")](0,3)+"span",a=wx("0x6a")+r,c=wx("0x1a")+r,l="max"+r;o[wx("0x6b")](n,(()=>{t[wx("0x60")][wx("0x47")]((t=>{const r=s[wx("0x42")](e),d=r[0][wx("0x7d")](wx("0x6a"));let u;if("removeTableRow"==n){const t=s[wx("0x15")](r);u={startRow:t[wx("0x62")],endRow:t[wx("0x38")],includeAllSlots:!0}}else{const t=s[wx("0x63")](r);u={startColumn:t.first,endColumn:t[wx("0x38")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x1c")](g)[wx("0x34")]((({cell:t})=>t)),f=Ox(m[wx("0x43")]((t=>t[wx("0x13")](x)))),h=Ox(m[wx("0x43")]((t=>!t[wx("0x13")](x))))[wx("0x34")]((e=>t[wx("0x89")](e))),p=o[wx("0x37")](h,a);if(p&&(wx("0x80")==p[wx("0x3e")]||wx("0x8a")==p[wx("0x3e")])){const e=this[wx("0x36")](p);for(const n of f){const o=t[wx("0x89")](n),r=s[wx("0x35")](n),a=n[wx("0x10")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[wx("0x1d")](o)}}}))}))}function r(n){const o=Array[wx("0x1c")](e[wx("0x58")]()).map((t=>i.LiveRange[wx("0x72")](t)));t[wx("0x60")][wx("0x47")]((e=>{const s=e[wx("0x83")];n=n.filter((t=>wx("0x46")!=t[wx("0xc")][wx("0x64")])),e.setSelection(n),t[wx("0x45")][wx("0x41")](wx("0x6f")).refresh(),t[wx("0xb")](wx("0x6f"),{forceDefaultExecution:!0}),t[wx("0x60")][wx("0x44")]((()=>{t[wx("0x60")][wx("0x44")](s,(t=>{const e=o[wx("0x43")]((t=>wx("0x46")!=t[wx("0xc")][wx("0x64")]));e[wx("0x40")]>0&&t[wx("0x6c")](e);for(const t of o)t[wx("0x61")]()}))}))}))}function a(n){t[wx("0x60")][wx("0x47")]((o=>{const s=Array[wx("0x1c")](e[wx("0x58")]())[wx("0x34")]((t=>i.LiveRange[wx("0x72")](t))),r=[];for(const t of n)for(const e of t[wx("0x12")]({shallow:!0}))r[wx("0xd")](e);for(const e of r)"$graveyard"!=e[wx("0xc")].rootName&&(o.setSelection(o[wx("0x19")](e,0)),t[wx("0x45")][wx("0x41")](wx("0x30"))[wx("0x3f")](),t.execute(wx("0x30"),{forceDefaultExecution:!0}));const x=s[wx("0x43")]((t=>wx("0x46")!=t.root.rootName));x[wx("0x40")]>0&&o[wx("0x6c")](x);for(const t of s)t[wx("0x61")]()}))}function c(t,e){return e[wx("0x73")]((e=>t[wx("0x31")]((t=>t.end[wx("0x2d")](e.start)||e[wx("0x5d")][wx("0x2d")](t[wx("0x9")])))))}function l(t,e){return t[wx("0x31")]((t=>e[wx("0x31")]((e=>t[wx("0x5d")][wx("0x68")](e[wx("0x9")])))))}t[wx("0x55")][wx("0x4f")].on(wx("0x57"),((t,e,n)=>{if(!n[wx("0x4b")][wx("0x54")])return;const o=e[wx("0x28")];if(!o)return;const s=n[wx("0x53")].toViewElement(o);function r(t){return Array[wx("0x75")](t)?t:[t]}s&&"tableCell"===o[wx("0x5")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[wx("0x29")](r(e[wx("0x3d")]),t)),((t,e,n)=>n[wx("0x3a")](r(e[wx("0x3d")]),t)))}),{priority:wx("0x56")}),o[wx("0x33")][wx("0x7f")]((t=>{if(wx("0x71")!=t[wx("0x87")]&&wx("0x50")!=t[wx("0x87")])return;const e=t[wx("0x11")]();if(null!=e&&e.is(wx("0x17"),"table")){if("insertion"==t[wx("0x87")]){const e=t[wx("0x12")]()[wx("0x43")]((t=>t.is(wx("0xe"))))[wx("0x34")]((t=>t[wx("0x55")]));if(e[wx("0x40")])return{type:wx("0x71"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[wx("0x5c")](" ")+'"'))}}if(wx("0x50")==t[wx("0x87")]){const e=t[wx("0x12")]().filter((t=>t.is("$textProxy")))[wx("0x34")]((t=>t[wx("0x55")]));if(e[wx("0x40")])return{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x20"),'"'+e[wx("0x5c")](" ")+'"'))}}}})),o[wx("0x33")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[wx("0x43")]((t=>t.is("$textProxy"))).map((t=>t[wx("0x55")])),o=this[wx("0x36")](t),s=o.maxRow-o[wx("0x14")]+1;if(wx("0x71")==t[wx("0x87")])return e.length?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,wx("0x67"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x71"),content:Yo(n,wx("0x32"),Yo(n,wx("0x16"),s))};if(wx("0x50")==t[wx("0x87")])return e[wx("0x40")]?{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x67"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x8a")==t.subType){const e=t[wx("0x12")]().filter((t=>t.is("$textProxy"))).map((t=>t[wx("0x55")])),o=this[wx("0x36")](t),s=o.maxColumn-o[wx("0x59")]+1;if(wx("0x71")==t[wx("0x87")])return e[wx("0x40")]?{type:"insertion",content:Yo(n,wx("0x32"),Yo(n,wx("0x39"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x32"),Yo(n,wx("0x51"),s))};if(wx("0x50")==t[wx("0x87")])return e[wx("0x40")]?{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x39"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x51"),s))}}})),o[wx("0x76")][wx("0x78")]("insertion",wx("0x80"),wx("0x0"),r),o[wx("0x76")][wx("0x78")](wx("0x50"),wx("0x80"),wx("0x85"),r),o[wx("0x76")][wx("0x78")](wx("0x71"),"tableColumn",wx("0x0"),a),o._suggestionFactory[wx("0x78")]("deletion",wx("0x8a"),"accept",a),o._suggestionFactory.registerCustomCallback(wx("0x71"),wx("0x8a"),wx("0x5c"),c),o._suggestionFactory[wx("0x78")](wx("0x50"),wx("0x8a"),wx("0x5c"),c),o[wx("0x76")][wx("0x78")](wx("0x71"),"tableRow","join",l),o[wx("0x76")][wx("0x78")](wx("0x50"),wx("0x80"),"join",l)}[wx("0x22")](){const t=this[wx("0x7e")],e=t[wx("0x60")][wx("0x8")][wx("0x27")];return(n,o)=>{t[wx("0x60")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][wx("0x77")]&&(a=n[0][wx("0x9")][wx("0x70")]);const c=s[wx("0x79")](a);if(wx("0x46")==c[wx("0xc")].rootName)return;const l=Array.from(e[wx("0x58")]())[wx("0x34")]((t=>i.LiveRange[wx("0x72")](t)));s[wx("0x6c")](c),t[wx("0x45")][wx("0x41")](r)[wx("0x3f")](),x[wx("0xd")]({forceDefaultExecution:!0}),t[wx("0xb")](r,...x);const d=l[wx("0x43")]((t=>wx("0x46")!=t[wx("0xc")].rootName));d[wx("0x40")]>0&&s.setSelection(d);for(const t of l)t[wx("0x61")]()}))}}[wx("0x84")](t){const e=this[wx("0x7e")][wx("0x48")][wx("0x41")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x4c")],s=Number[wx("0x5b")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if(wx("0x46")==i[wx("0xc")][wx("0x64")])continue;const{row:t,column:x}=e[wx("0x35")](i),a=i.hasAttribute(wx("0x7c"))?i.getAttribute(wx("0x7c"))-1:0,c=i[wx("0x13")](wx("0x23"))?i[wx("0x10")](wx("0x23"))-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}}[wx("0x4d")](){const t=this[wx("0x7e")],e=t[wx("0x48")].get("TrackChangesEditing"),n=t.plugins[wx("0x41")](wx("0x21"));t[wx("0x60")][wx("0x8")].on(wx("0x1"),(()=>{const n=Array[wx("0x1c")](t[wx("0x60")][wx("0x8")][wx("0x3")][wx("0x7b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x1b")](t);if(wx("0x2b")!=n)continue;if(null!=o[wx("0x6e")])continue;const i=e.getSuggestion(s);this[wx("0x25")].includes(r)&&this[wx("0x81")].add(i)}}),{priority:wx("0x26")});const o=(t,e)=>{let o=!1;const s=e[wx("0x89")](t),r=t[wx("0x7d")](wx("0x6a")),i=n[wx("0x35")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n[wx("0x2f")](wx("0x52")),a=n[wx("0x1e")](x?10:5),c=a[wx("0x18")](),l=c[wx("0x1e")](0,3)+wx("0x5f"),d=wx("0x1a")+a,u=wx("0x8b")+a;if(!e[wx("0x1f")])continue;if(r!=e[wx("0x65")]()[wx("0x9")][wx("0x7d")](wx("0x6a")))continue;if(e[wx("0x4a")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[wx("0x36")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x1d")](s),o=!0)}return o};t[wx("0x60")][wx("0x8")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x60")][wx("0x8")][wx("0x3")][wx("0x3b")]())if("insert"==s.type)if(wx("0x80")==s[wx("0x5")])for(const t of s[wx("0x66")][wx("0x70")][wx("0x88")]())n=n||o(t,e);else wx("0xa")==s.name&&(n=n||o(s[wx("0x66")][wx("0x70")],e));return n}))}[wx("0x36")](t){return this[wx("0x84")](t.getRanges()[wx("0x34")]((t=>t[wx("0x9")][wx("0x70")])))}}function Ox(t){return Array[wx("0x1c")](new Set(t)[wx("0x2e")]())}const Fx=["stop","_areSelectedCellsMergable","_descriptionFactory","TrackChangesEditing","from","registerDescriptionCallback","mergeTableCellLeft","direction","change","tableCell","plugins","length","isEnabled","markMultiRangeBlockFormat","get","element","find","deletion","*Split cell:* vertically","mergeTableCells","getRanges","map","selection","afterInit","_areMergableCells","fromRange","model","commandName","_isForcedDefaultExecutionBlock","registerCustomCallback","rootName","enableCommand","author","getFirstPosition","refresh","mergeTableCellUp","insertion","subType","getSelectionAffectedTableCells","size","mergeTableCellRight","getSuggestions","editor","value","has","document","splitTableCellVertically","splitTableCellHorizontally","getCellLocation","markBlockFormat","createTableWalker","*Merge cells*","cell","type","$graveyard","add","table","containsRange","TableEditing","push","detach","commands","set:isEnabled","mergeTableCellDown","createRangeOn","accept","format","low","TableUtils","setSelection","_tablePostFixingSubtypes","formatBlock","forceDefaultExecution","execute","_suggestionFactory","trackChanges","highest"];var Px,Dx;Px=Fx,Dx=174,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[Mx]}[Bx("0x3")](){const t=this[Bx("0x16")],e=t.model[Bx("0x19")].selection,n=t.locale;if(!t[Bx("0x43")][Bx("0x18")](Bx("0x26")))return;const o=t.plugins[Bx("0x47")](Bx("0x3c")),s=t[Bx("0x43")][Bx("0x47")](Bx("0x30")),r=t[Bx("0x43")][Bx("0x47")](Mx);r[Bx("0x32")][Bx("0x27")](Bx("0x4c")),o[Bx("0xb")]("mergeTableCells",(()=>{const e=s[Bx("0x12")](t[Bx("0x6")][Bx("0x19")][Bx("0x2")]);t.model.change((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x4c"))}))})),t[Bx("0x29")].get(Bx("0x4c")).on(Bx("0x35"),((e,n)=>{t.commands[Bx("0x47")](Bx("0x37"))[Bx("0x17")]&&(n[Bx("0x44")]>0&&n[n.length-1]&&n[n.length-1][Bx("0x34")]||o[Bx("0x8")]||this[Bx("0x3a")]()||e[Bx("0x39")]())}),{priority:Bx("0x38")});for(const e of[Bx("0xf"),Bx("0x14"),Bx("0x2b"),Bx("0x3f")]){const n=t[Bx("0x29")][Bx("0x47")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x6")][Bx("0x19")][Bx("0x2")][Bx("0xd")]().getAncestors()[Bx("0x49")]((t=>t.is(Bx("0x48"),Bx("0x42")))),s=n[Bx("0x17")];t[Bx("0x6")].change((()=>{o[Bx("0x46")]([e,s],{commandName:Bx("0x4c"),commandParams:[]},[],Bx("0x4c"))}))}))}for(const e of[Bx("0x1a"),"splitTableCellHorizontally"]){const n=t[Bx("0x29")].get(e);o.enableCommand(e,(()=>{const r=s[Bx("0x12")](t[Bx("0x6")][Bx("0x19")][Bx("0x2")])[0],i=r.findAncestor(Bx("0x24")),{column:x,row:a}=s[Bx("0x1c")](r);let c=[];if("horizontally"==n[Bx("0x40")]){const t=s[Bx("0x1e")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3d")](t).map((t=>t[Bx("0x20")]))}else{const t=s[Bx("0x1e")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3d")](t).map((t=>t[Bx("0x20")]))}t[Bx("0x6")].change((t=>{o[Bx("0x1d")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3b")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x4c")==e.commandName?{type:Bx("0x2e"),content:Yo(n,Bx("0x1f"))}:void 0})),o[Bx("0x3b")][Bx("0x3e")]((t=>{const{data:e}=t;if(e)return Bx("0x1a")==e[Bx("0x7")]?{type:Bx("0x2e"),content:Yo(n,Bx("0x4b"))}:Bx("0x1b")==e[Bx("0x7")]?{type:Bx("0x2e"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x2b"),Bx("0x3f")])o[Bx("0x36")][Bx("0x9")](Bx("0x33"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x1b")])o[Bx("0x36")][Bx("0x9")](Bx("0x33"),t,Bx("0x2d"),x);o[Bx("0x36")][Bx("0x9")](Bx("0x33"),Bx("0x4c"),Bx("0x2d"),(n=>{t.model[Bx("0x41")]((o=>{const s=Array[Bx("0x3d")](e[Bx("0x0")]())[Bx("0x1")]((t=>i.LiveRange[Bx("0x5")](t)));o[Bx("0x31")](n),t[Bx("0x29")][Bx("0x47")](Bx("0x4c"))[Bx("0xe")](),t[Bx("0x35")](Bx("0x4c"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x22")!=t.root[Bx("0xa")]));r[Bx("0x44")]>0&&o[Bx("0x31")](r);for(const t of s)t[Bx("0x28")]()}))}));for(const e of[Bx("0xf"),Bx("0x2b"),Bx("0x3f"),Bx("0x14")]){const n=t[Bx("0x29")][Bx("0x47")](e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x6")][Bx("0x19")][Bx("0x2")][Bx("0xd")]().getAncestors()[Bx("0x49")]((t=>t.is("element",Bx("0x42"))));this[Bx("0x4")](n[Bx("0x17")],o)||(e.return=!1,e[Bx("0x39")]())}}),{priority:Bx("0x2f")})}}_areSelectedCellsMergable(){const t=this[Bx("0x16")][Bx("0x29")][Bx("0x47")](Bx("0x4c")),e=this[Bx("0x16")][Bx("0x43")][Bx("0x47")]("TableUtils");if(!t[Bx("0x45")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x16")].model.document[Bx("0x2")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x16")][Bx("0x43")][Bx("0x47")](Bx("0x3c")),o=this[Bx("0x16")][Bx("0x6")][Bx("0x2c")](t),s=this.editor[Bx("0x6")][Bx("0x2c")](e),r=new Set,i=new Set;for(const t of n[Bx("0x15")]())if((Bx("0x10")==t[Bx("0x21")]||Bx("0x4a")==t[Bx("0x21")]||Bx("0x4c")==t[Bx("0x11")])&&t.isInContent)for(const e of t[Bx("0x0")]())e.containsRange(o,!0)&&r[Bx("0x23")](t[Bx("0x21")]+":"+t[Bx("0xc")].id),e[Bx("0x25")](s,!0)&&i[Bx("0x23")](t[Bx("0x21")]+":"+t[Bx("0xc")].id);if(r[Bx("0x13")]!=i[Bx("0x13")])return!1;for(const t of r)if(!i[Bx("0x18")](t))return!1;return!0}}const Ux=["createPositionBefore","*Format:* %0","removeMarker:suggestion","getChild","_acceptFormatSuggestionCallbackFactory","editor","setTableRowHeader","markerRange","locale","createTableWalker","activeMarkers","consumable","table","parent","formatBlock","editing","commands","FORMAT_HEADER_ROW","removeClass","end","stop","downcastDispatcher","accept","createPositionAfter","writer","selection","TableUtils","data","setTableColumnHeader","unbindElementFromMarkerName","FORMAT_HEADER_COLUMN","cell","createRange","registerCustomCallback","TableEditing","forceValue","getAttribute","ck-suggestion-marker--active","includes","document","get","commandParams","getRowIndexes","markBlockFormat","addClass","showSuggestionHighlights","data-suggestion","TrackChangesEditing","change","model","toViewElement","start","headingRows","childCount","markerNameToElements","mapper","getSelectionAffectedTableCells","enableCommand","options","requires","value","_splitMarkerName","findAncestor","commandName","registerDescriptionCallback","bindElementToMarker","_descriptionFactory","first","format","setAttribute","markerName","addMarker:suggestion","highest","getColumnIndexes","last","ck-suggestion-marker-","isBefore","getSuggestion","nodeAfter","plugins","_suggestionFactory","headingColumns","FORMAT_REGULAR_ROW","index","getCellLocation","item","from"];var Gx,Hx;Gx=Ux,Hx=449,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[Vx("0x2d")](){return[Mx]}afterInit(){const t=this[Vx("0x4e")];if(!t[Vx("0x41")].has(Vx("0x14")))return;const e=t[Vx("0x51")],n=t[Vx("0x41")][Vx("0x1a")](Vx("0x21")),o=t[Vx("0x41")][Vx("0x1a")]("TableUtils"),s=t[Vx("0x41")][Vx("0x1a")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Vx("0x2f")](r[Vx("0x38")]),c=n[Vx("0x3f")](a);if(!c.data||Vx("0xe")!=c[Vx("0xd")][Vx("0x31")])return;if(r[Vx("0x47")])return void s[Vx("0x6")]();if(!i[Vx("0x54")].consume(r.markerRange,s.name))return;const l=r[Vx("0x50")][Vx("0x25")][Vx("0x40")],d=r[Vx("0x50")][Vx("0x5")].nodeBefore,u=l[Vx("0x56")][Vx("0x56")],{column:g}=o[Vx("0x46")](l),{column:m}=o[Vx("0x46")](d);for(let s=g;s<=m;s++){const c=o[Vx("0x52")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[Vx("0x29")][Vx("0x24")](s);i[Vx("0xa")][Vx("0x1e")]("ck-suggestion-marker-"+x,c),e&&i[Vx("0xa")][Vx("0x37")](Vx("0x20"),a,c),i[Vx("0x29")][Vx("0x33")](c,r[Vx("0x38")]),t&&(n[Vx("0x53")][Vx("0x18")](r[Vx("0x38")])?i.writer[Vx("0x1e")](Vx("0x17"),c):i[Vx("0xa")][Vx("0x4")](Vx("0x17"),c))}}}}n[Vx("0x2b")]("setTableRowHeader",((e,s)=>{const r=o[Vx("0x2a")](t[Vx("0x23")][Vx("0x19")].selection),i=o[Vx("0x1c")](r),x=r[0][Vx("0x30")](Vx("0x55")),a=x[Vx("0x16")](Vx("0x26"))||0,c=s&&null!==s[Vx("0x15")]?s.forceValue:!t[Vx("0x2")].get(Vx("0x4f")).value,l=c?i[Vx("0x3c")]:i[Vx("0x35")],d=x[Vx("0x4c")](l);let u;if(c){const e=x[Vx("0x4c")](a);if(d[Vx("0x45")]<e[Vx("0x45")])return;u=t.model.createRange(t[Vx("0x23")][Vx("0x49")](e[Vx("0x4c")](0)),t[Vx("0x23")].createPositionAfter(d[Vx("0x4c")](d.childCount-1)))}else{const e=x[Vx("0x4c")](a-1);if(!e)return;u=t.model[Vx("0x12")](t.model.createPositionBefore(d[Vx("0x4c")](0)),t[Vx("0x23")][Vx("0x9")](e.getChild(e[Vx("0x27")]-1)))}t[Vx("0x23")].change((()=>{n[Vx("0x1d")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Vx("0x2b")](Vx("0xe"),((e,o)=>{const s=t[Vx("0x41")].get(Vx("0xc")),r=s[Vx("0x2a")](t[Vx("0x23")][Vx("0x19")][Vx("0xb")]),i=s[Vx("0x3b")](r),x=r[0][Vx("0x30")](Vx("0x55")),a=x[Vx("0x16")](Vx("0x43"))||0,c=o&&null!==o[Vx("0x15")]?o[Vx("0x15")]:!t[Vx("0x2")][Vx("0x1a")](Vx("0xe"))[Vx("0x2e")];let l;const d=x[Vx("0x4c")](0),u=c?i[Vx("0x3c")]:i[Vx("0x35")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Vx("0x48")](g)[0][Vx("0x11")];if(c){const e=d[Vx("0x4c")](a);if(m[Vx("0x3e")](e))return;l=t[Vx("0x23")][Vx("0x12")](t.model.createPositionBefore(e),t[Vx("0x23")][Vx("0x9")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Vx("0x23")][Vx("0x12")](t.model.createPositionBefore(m),t[Vx("0x23")][Vx("0x9")](e))}t[Vx("0x23")][Vx("0x22")]((()=>{n.markBlockFormat(l,{commandName:Vx("0xe"),commandParams:[{forceValue:c}]},[],Vx("0xe"))}))})),t[Vx("0x1")].downcastDispatcher.on(Vx("0x39"),r(),{priority:Vx("0x3a")}),t.data[Vx("0x7")].on(Vx("0x39"),((t,e,n)=>{n[Vx("0x2c")][Vx("0x1f")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Vx("0x3a")}),t.editing[Vx("0x7")].on(Vx("0x4b"),((t,e,o)=>{const{type:s,id:r}=n[Vx("0x2f")](e[Vx("0x38")]),i=n[Vx("0x3f")](r);if(!i[Vx("0xd")]||Vx("0xe")!=i[Vx("0xd")][Vx("0x31")])return;const x=o[Vx("0x29")][Vx("0x28")](e[Vx("0x38")]);if(x)for(const t of x)o[Vx("0xa")][Vx("0x4")](Vx("0x3d")+s,t),o[Vx("0xa")][Vx("0x4")](Vx("0x17"),t),o[Vx("0xa")].removeAttribute("data-suggestion",t),o[Vx("0x29")][Vx("0xf")](t,e.markerName)}),{priority:"highest"}),n[Vx("0x34")][Vx("0x32")]((t=>{const{data:n}=t;if(n){if(Vx("0x4f")==n.commandName){const t=n.commandParams[0].forceValue;return o(Yo(e,Vx(t?"0x3":"0x44")))}if("setTableColumnHeader"==n[Vx("0x31")]){const t=n[Vx("0x1b")][0].forceValue;return o(Yo(e,t?Vx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Vx("0x36"),content:Yo(e,Vx("0x4a"),t)}}}));const i=s[Vx("0x4d")]();n[Vx("0x42")][Vx("0x13")](Vx("0x0"),Vx("0x4f"),Vx("0x8"),i),n._suggestionFactory[Vx("0x13")](Vx("0x0"),Vx("0xe"),"accept",i)}}const zx=["getChildren","selection","endColumn","getRanges","createRange","nodeAfter","createElement","plugins","TableUtils","getRows","cells","commands","_getCoordsForCells","columns","tablePasteRow","deletion","options","locale","deletionRanges","registerCustomCallback","content","getSuggestionCallback","last","isEmpty","newRange","dataDowncast","schema","insertion","removeMarker","row","markerName","startsWith","markMultiRangeBlockFormat","length","_splitMarkerName","$graveyard","getChangedMarkers","getTableIfOnlyTableInContent","suggestion","view","tablePasteChainId","table","setAttributes","next","ck-suggestion-marker-insertion","suggestion:formatBlock:tablePasteCell","tableCellBorderColor","for","getAllAdjacentSuggestions","activeMarkers","end","editingDowncast","change","join","editing","fromEntries","first","insertColumns","TableClipboard","hasSuggestion","forceDefaultExecution","getRange","formatBlock","position","paragraph","_isForcedDefaultExecutionBlock","has","tablePasteColumn","removeRows","createTableWalker","author","insertContent","differ","remove","_replaceTableSlotCell","model","ck-suggestion-marker--active","suggestion-td","element","oldRange","includes","findAncestor","register","rowInsertionIndexes","getSelectionAffectedTableCells","getRowIndexes","get","document","elementToElement","redo","getContainedElement","unwrap","insertionRanges","tablePaste","markerAttributes","type","getColumnIndexes","isInContent","name","add","suggestionLoaded","showSuggestionHighlights","batch","registerPostFixer","requires","rootName","listenTo","find","_descriptionFactory","fill","getMarkers","containsRange","map","afterInit","stop","getColumns","previousSibling","set","attributes","tableCellPadding","getSuggestions","editor","tableCellBorderStyle","clipboardOutput","createRangeIn","accept","rowInsertionRanges","tableCellSuggestion","getSuggestion","createRangeOn","start","reduce","setAttribute","filter","column","high","markerToHighlight","getChild","subType","isEqual","keys","insert","return","getAttributes","previous","tableCellBackgroundColor","_suggestionFactory","discard","conversion","every","markMultiRangeInsertion","columnInsertionRanges","tablePasteCell","push","Users","move","documentSelection","tableCell","endRow","root"];var Kx,qx;Kx=zx,qx=433,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return zx[t-=0]},$x=["tableCellBorderWidth",Xx("0x5d"),Xx("0x9"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",Xx("0x20"),Xx("0x6")],Jx=Object[Xx("0x66")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x97")](){return[Mx]}[Xx("0x0")](){const t=this[Xx("0x8")];if(!t.plugins.has("TableClipboard"))return;const n=t.plugins[Xx("0x85")]("TrackChangesEditing"),o=t.plugins[Xx("0x85")](Xx("0x37")),s=t[Xx("0x36")][Xx("0x85")](Mx),r=t[Xx("0x36")][Xx("0x85")](Xx("0x69"));s._tablePostFixingSubtypes[Xx("0x28")](Xx("0x3d"),"tablePasteColumn"),t[Xx("0x7a")][Xx("0x49")][Xx("0x81")](Xx("0xe"),{allowIn:Xx("0x2c"),allowContentOf:Xx("0x2c"),isLimit:!0}),t[Xx("0x23")][Xx("0x87")]({model:Xx("0xe"),view:Xx("0x7c")});let i=null;t[Xx("0x7a")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x6b")]||n[Xx("0x70")]||this.editor[Xx("0x3a")][Xx("0x85")]("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2b")))return!1;const r=s[Xx("0x54")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x83")](n[Xx("0x86")][Xx("0x30")]);if(!i.length)return!1;const x=i[0].findAncestor(Xx("0x58")),a=o[Xx("0x84")](i),c=o[Xx("0x8f")](i),l={startRow:a[Xx("0x67")],endRow:a.last,startColumn:c[Xx("0x67")],endColumn:c[Xx("0x45")]};return 1==i[Xx("0x50")]&&(l[Xx("0x2d")]+=o[Xx("0x38")](r)-1,l[Xx("0x31")]+=o[Xx("0x2")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x1")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x7a")][Xx("0x63")]((()=>{t[Xx("0x7a")][Xx("0x76")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x50")]&&n[Xx("0x25")](s,Xx("0x3d"),{tablePasteChainId:o}),r[Xx("0x50")]&&n[Xx("0x25")](r,Xx("0x72"),{tablePasteChainId:o}),a.length&&n[Xx("0x25")](a,Xx("0x8c"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x50")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x4f")](l[Xx("0x9f")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Xx("0x9d")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x7a")].createRangeOn(o),i=e[Xx("0x9a")]((t=>t[Xx("0x6c")]()[Xx("0x1a")](r)));i&&n[Xx("0x28")]([i[Xx("0x91")],s])}n[Xx("0x50")]&&d[Xx("0x13")](Xx("0x8d"),Object[Xx("0x66")](n))}i=null})))}),{priority:e.priorities[Xx("0x16")]+10}),t[Xx("0x36")].get(Xx("0x69")).on(Xx("0x79"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x1d")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x18")](0));for(const t of Array.from(x[Xx("0x2f")]()))s[Xx("0x1c")](t,r,"end");const t=i[Xx("0x82")].includes(n[Xx("0x4c")]),e=i.columnInsertionIndexes[Xx("0x7f")](n[Xx("0x15")]);t||e||(l=s[Xx("0xb")](r))}else c&&!a&&(d=s[Xx("0xb")](r));else{const t=s[Xx("0x35")]("tableCellSuggestion"),e=s[Xx("0x35")](Xx("0xe"));s.wrap(s[Xx("0xb")](r),e),s.insert(t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x1c")](e,t,Xx("0x61"));l=s[Xx("0x10")](t),d=s[Xx("0x10")](e)}const u=Array.from(x[Xx("0x1e")]())[Xx("0x14")]((([t])=>$x.includes(t)));i[Xx("0x39")].push({element:r,attributes:u.length?Object[Xx("0x66")](u):null}),l&&i[Xx("0x8b")][Xx("0x28")](l),d&&i[Xx("0x41")][Xx("0x28")](d)}),{priority:Xx("0x16")}),o.on(Xx("0x68"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x3c")]||1;i.columnInsertionIndexes=new Array(a).fill(x)[Xx("0x9f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x26")][Xx("0x28")](t.model[Xx("0x10")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x82")]=new Array(a)[Xx("0x9c")](x)[Xx("0x9f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startRow:x,endRow:x+a-1}))i[Xx("0xd")][Xx("0x28")](t[Xx("0x7a")][Xx("0x10")](e))}),{priority:"low"}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x19")]&&e.subType[Xx("0x4e")]("tablePaste"))return e.previous?{}:{type:Xx("0x4a"),content:Yo(t[Xx("0x40")],"*Replace table cells*")}}));const x=()=>{};for(const t of["tablePaste",Xx("0x72"),Xx("0x3d"),Xx("0x27")])n[Xx("0x21")].registerCustomCallback(Xx("0x4a"),t,Xx("0x64"),x),n._suggestionFactory[Xx("0x42")](Xx("0x3e"),t,Xx("0x64"),x);n[Xx("0x21")][Xx("0x42")](Xx("0x6d"),Xx("0x27"),Xx("0x22"),x),n[Xx("0x21")][Xx("0x42")]("formatBlock",Xx("0x27"),Xx("0xc"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x89")]()))[Xx("0x14")]((t=>t)),r=new Map(s[Xx("0x9f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x39")])e&&r[Xx("0x4")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Xx("0x7a")].markers[Xx("0x85")](e),s=o?o[Xx("0x6c")]()[Xx("0x89")]():null;s&&r[Xx("0x4")](s,n)}t[Xx("0x7a")][Xx("0x63")]((t=>{for(const[e,n]of r)t[Xx("0x59")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x21")][Xx("0x42")](e,Xx("0x8c"),o,((s,r,i)=>{t[Xx("0x7a")][Xx("0x63")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x11")][Xx("0x34")];e.is(Xx("0x7d"),Xx("0xe"))&&x[Xx("0x28")](e)}n[Xx("0x21")][Xx("0x44")](e,null,o)(s,r,i);for(const e of x)Xx("0x52")!=e[Xx("0x2e")][Xx("0x98")]&&t[Xx("0x8a")](e)}))}))};a(Xx("0x4a"),"accept"),a(Xx("0x4a"),Xx("0x22")),a(Xx("0x3e"),Xx("0xc")),a(Xx("0x3e"),"discard"),n[Xx("0x21")][Xx("0x42")](Xx("0x4a"),Xx("0x3d"),Xx("0x22"),(t=>{const e=t[Xx("0x9f")]((t=>t[Xx("0x89")]())),n=e[0].findAncestor(Xx("0x58")),{minRow:r,maxRow:i}=s[Xx("0x3b")](e);o[Xx("0x73")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x42")]("insertion",Xx("0x72"),Xx("0x22"),(t=>{const e=t[Xx("0x9f")]((t=>t[Xx("0x89")]())),n=e[0][Xx("0x80")](Xx("0x58")),{minColumn:r,maxColumn:i}=s[Xx("0x3b")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x19")]||!e[Xx("0x19")][Xx("0x4e")](Xx("0x8c")))return;const o=e[Xx("0x5")][Xx("0x57")],s=n[Xx("0x7")]().filter((t=>t[Xx("0x90")]&&t[Xx("0x5")]&&t.attributes[Xx("0x57")]==o));s.length&&e[Xx("0x5f")]().length!=s[Xx("0x50")]&&s[Xx("0x12")](((t,e)=>(t[Xx("0x5a")]=e,e[Xx("0x1f")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x51")](t[Xx("0x4d")]),s=["ck-suggestion-marker",Xx("0x5b")],r=n[Xx("0x60")][Xx("0x7f")](t[Xx("0x4d")]);return r&&s.push(Xx("0x7b")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x93"),c,{priority:Xx("0x16")}),n.on("suggestionUnloaded",c,{priority:Xx("0x16")}),t[Xx("0x7a")][Xx("0x86")][Xx("0x96")]((()=>{let e=!1;const o=Array.from(t[Xx("0x7a")][Xx("0x86")][Xx("0x77")][Xx("0x53")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x51")](s);if(Xx("0x55")!=o||"deletion"!=i||r[Xx("0x7e")])continue;if(!n[Xx("0x6a")](x))continue;const a=n[Xx("0xf")](x)[Xx("0x32")](),c=t[Xx("0x36")].get(Xx("0x29")).me;for(const t of n.getSuggestions())if(t[Xx("0x90")]&&t[Xx("0x75")]==c&&Xx("0x6d")==t[Xx("0x8e")]&&Xx("0x27")==t[Xx("0x19")]&&t.getRanges()[Xx("0x24")]((t=>a.some((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x5f")]())n[Xx("0x90")]&&(n[Xx("0x22")](),e=!0)}return e})),t[Xx("0x7a")].document[Xx("0x96")]((e=>{const o=t.commands[Xx("0x85")](Xx("0x88"));if(!o||!o._createdBatches[Xx("0x71")](e[Xx("0x95")]))return!1;let s=!1;const r=t.plugins[Xx("0x85")](Xx("0x29")).me,i=t.model[Xx("0x86")][Xx("0x77")].getChanges(),x=Array.from(t[Xx("0x7a")][Xx("0x86")].differ.getChangedMarkers())[Xx("0x14")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x51")](t);return Xx("0x55")==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x7e")]}));for(const t of i){if(Xx("0x1c")!=t[Xx("0x8e")]||Xx("0xe")!=t[Xx("0x91")]||1!=t.length)continue;const n=e[Xx("0x33")](t[Xx("0x6e")],t.position.getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x47")][Xx("0x1a")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x9e")](o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x86")][Xx("0x96")]((e=>{let o=!1;const s=t[Xx("0x36")].get("Users").me,r=n[Xx("0x7")]().filter((t=>t.isInContent&&t[Xx("0x75")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x8c")==t[Xx("0x19")])for(const e of t[Xx("0x9d")]()){const n=e.getRange()[Xx("0x89")]();if(n)if(n.is(Xx("0x7d"),Xx("0xe"))&&Zx(n)){t[Xx("0x4b")](e[Xx("0x91")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xx("0x3")],a=s&&s.is(Xx("0x7d"),"tableCellSuggestion"),c=r&&r.is(Xx("0x7d"),Xx("0xe"));a&&!i[Xx("0x71")](s)&&x.add(s),c&&!i.has(r)&&x[Xx("0x92")](r)}else n.is(Xx("0x7d"),Xx("0x6f"))&&n.isEmpty&&(t.removeMarker(e[Xx("0x91")]),o=!0)}else if("tablePasteCell"==t[Xx("0x19")]){if(!t[Xx("0x5")]||!t[Xx("0x5")][Xx("0x57")])continue;const e=t[Xx("0x5")][Xx("0x8d")];if(e&&Object[Xx("0x1b")](e)[Xx("0x50")])continue;const n=t[Xx("0x5")][Xx("0x57")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x19")][Xx("0x4e")](Xx("0x8c"))){if(!e[Xx("0x5")][Xx("0x57")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5")][Xx("0x57")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x78")](t);for(const t of x)e[Xx("0x8a")](t);return o})),t[Xx("0x23")].for(Xx("0x62"))[Xx("0x17")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Xx("0x5e")](Xx("0x48"))[Xx("0x17")]({model:Xx("0x5c"),view:(t,e)=>e[Xx("0x3f")][Xx("0x94")]?l(t,!1):null,converterPriority:Xx("0x16")});const d=t[Xx("0x65")][Xx("0x56")];this[Xx("0x99")](d[Xx("0x86")],Xx("0xa"),((t,e)=>{const n=[];for(const t of d[Xx("0xb")](e[Xx("0x43")]).getItems())t.is(Xx("0x7d"),Xx("0x7c"))&&n[Xx("0x28")](t);d[Xx("0x63")]((t=>{for(const e of n)t[Xx("0x2a")](t[Xx("0xb")](e),t.createPositionBefore(e)),t[Xx("0x78")](e)}))}))}}function Zx(t){if(t[Xx("0x46")])return!0;const e=t[Xx("0x18")](0);return e.is(Xx("0x7d"),Xx("0x6f"))&&e[Xx("0x46")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x74")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","formatBlock","getSuggestionCallback","resizeTableWidth","model","_suggestionFactory","discard","handleResizeTableWidthCommand","tableWidth","columnWidths","enableCommand","registerCustomCallback","getColumnGroupElement","plugins","resizeColumnWidths","locale","editor","subType","Users","getAttribute","handleSuggestionDescription","bind","getSuggestions","getSelectedElement","document","registerDescriptionCallback","selection","change","TrackChangesEditing","getContainedElement","TableColumnResizeEditing","resizeTable","getTableColumnsWidths"];var ea,na;ea=ta,na=201,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("0xd")][oa("0xa")].has(oa("0x1b")))return;const t=this[oa("0xd")][oa("0xa")].get(oa("0x19"));t[oa("0x7")](oa("0x0"),this[oa("0x4")][oa("0x12")](this)),t.enableCommand(oa("0xb"),this[oa("0x4")][oa("0x12")](this)),t[oa("0x2")][oa("0x8")]("formatBlock",oa("0x1c"),"accept",t[oa("0x2")][oa("0x20")](oa("0x1f"),null,oa("0x3"))),t._suggestionFactory[oa("0x8")](oa("0x1f"),oa("0x1c"),"discard",t[oa("0x2")][oa("0x20")]("formatBlock",null,"accept")),t._descriptionFactory[oa("0x16")](this[oa("0x11")][oa("0x12")](this))}[oa("0x4")](t,e){const n=this[oa("0xd")][oa("0xa")][oa("0x1e")]("TrackChangesEditing"),o=this[oa("0xd")][oa("0xa")][oa("0x1e")]("TableColumnResizeEditing"),s=e.table||this[oa("0xd")][oa("0x1")][oa("0x15")][oa("0x17")][oa("0x14")]();this[oa("0xd")][oa("0x1")][oa("0x18")]((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x1d")](r):null,x=s[oa("0x10")]("tableWidth")||null;const a=e[oa("0x5")]||x,c=e[oa("0x6")]||i,l=this.editor.plugins[oa("0x1e")](oa("0xf")).me;for(const t of n[oa("0x13")]()){const e=t[oa("0x1a")]();if(oa("0x1c")===t[oa("0xe")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t.data.commandParams;x=e[0][oa("0x5")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x0"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1c")},[],oa("0x1c"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1c")===e.formatGroupId){const t="*Format:* resize table";return{type:"format",content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["Template","afterInit","get","has","enableCommand","insertTemplate","editor","TrackChangesEditing","plugins"];var ia,xa;ia=ra,xa=337,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x2")];t[aa("0x4")][aa("0x8")](aa("0x5"))&&t[aa("0x4")][aa("0x7")](aa("0x3"))[aa("0x0")](aa("0x1"))}}const la=["afterInit","insertTableOfContents","locale","plugins","get","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","editor","commands","TrackChangesEditing"];var da,ua;da=la,ua=466,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x1")];if(!t[ga("0x2")][ga("0x8")]("insertTableOfContents"))return;t[ga("0x7")][ga("0x8")](ga("0x3")).enableCommand(ga("0x5"));const e=t.plugins[ga("0x8")]("TrackChangesEditing"),n=t[ga("0x6")];e._descriptionFactory[ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0x0"),t)))}}const fa=["Title","isCollapsed","locale","_descriptionFactory","nodeBefore","element","title-content","getChangedMarkers","get","end","schema","suggestion","updateMarker","model","registerElementLabel","document","plugins","_splitMarkerName","isEqual","registerPostFixer","has","start","newRange","getNearestSelectionRange"];var ha,pa;ha=fa,pa=108,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this.editor;if(!t[ba("0x4")][ba("0x8")](ba("0xc")))return;const e=t[ba("0x4")][ba("0x14")]("TrackChangesEditing");e[ba("0xf")][ba("0x2")](ba("0x12"),(()=>Yo(t[ba("0xe")],"ELEMENT_TITLE"))),t[ba("0x1")][ba("0x3")][ba("0x7")]((n=>{let o=!1;const s=Array.from(t[ba("0x1")][ba("0x3")].differ[ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x5")](r);if(ba("0x17")!==s||!i[ba("0xa")])continue;const x=i[ba("0xa")],a=x[ba("0x15")][ba("0x10")];if(!a||!a.is(ba("0x11"),ba("0x12")))continue;if(!x[ba("0x9")].isTouching(x[ba("0x15")]))continue;const c=t.model[ba("0x16")][ba("0xb")](x.end,"forward");if(c&&c[ba("0xd")]){const t=n.createRange(x[ba("0x9")],c[ba("0x9")]);t[ba("0x6")](x)||(n[ba("0x0")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["afterInit","editor","TrackChangesEditing","undo","UndoEditing","plugins","redo","enableCommand"];var Ta,Ca;Ta=_a,Ca=389,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x3")](){const t=this[ya("0x4")],e=t[ya("0x0")].get(ya("0x5"));t[ya("0x0")].has(ya("0x7"))&&(e[ya("0x2")](ya("0x6")),e[ya("0x2")](ya("0x1")))}}const Aa=["has","toggleTableCaption","get","afterInit","TrackChangesEditing","plugins","requires","TableCaptionEditing","enableCommand"];var va,Ra;va=Aa,Ra=232,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x8")](){return[Mx]}[Sa("0x5")](){const t=this.editor;t[Sa("0x7")][Sa("0x2")](Sa("0x0"))&&t[Sa("0x7")][Sa("0x4")](Sa("0x6"))[Sa("0x1")](Sa("0x3"))}}const La=["document","get","listStyle","listType","DocumentListPropertiesUtils","enableCommand","toUpperCase","DocumentListUtils","replace","bind","getAttribute","push","_getSuggestionBlocks","handleListReversedCommand","startIndex","plugins","listReversed","_descriptionFactory","getSelectedBlocks","_getTranslationKeyForListStyle","selection","editor","type","markMultiRangeBlockFormat","*Change to:* %0","commandParams","model","*Format:* set order to regular","styles","listStart","expandListBlocksToCompleteList","change","numbered","registerDescriptionCallback","config","list.properties","format","DocumentListPropertiesEditing","from","ELEMENT_","reversed","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","TrackChangesEditing","_LIST_","isListItemBlock","handleDescriptions","handleListStartCommand","isFirstBlockOfListItem"];var Na,wa;Na=La,wa=233,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[Ma("0x21")][Ma("0x1b")].has(Ma("0x0")))return;const t=this[Ma("0x21")][Ma("0x2e")][Ma("0xd")](Ma("0x2f")),e=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x6"));t[Ma("0x28")]&&e[Ma("0x11")](Ma("0xe"),this.handleListStyleCommand[Ma("0x15")](this)),t.reversed&&e[Ma("0x11")](Ma("0x1c"),this[Ma("0x19")][Ma("0x15")](this)),t[Ma("0x1a")]&&e[Ma("0x11")](Ma("0x29"),this.handleListStartCommand[Ma("0x15")](this)),e[Ma("0x1d")][Ma("0x2d")](this[Ma("0x9")].bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[Ma("0x1b")].get(Ma("0x6")),o=this[Ma("0x5")]();this.editor[Ma("0x26")][Ma("0x2b")]((()=>{n[Ma("0x23")](o,{commandName:Ma("0xe"),commandParams:[{type:e[Ma("0x22")]}],formatGroupId:Ma("0xe")})}))}[Ma("0x19")](t,e={}){const n=this[Ma("0x21")][Ma("0x1b")][Ma("0xd")](Ma("0x6")),o=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13")),s=this[Ma("0x18")]((t=>o[Ma("0x8")](t)&&"numbered"===t[Ma("0x16")](Ma("0xf"))));null!==s&&this[Ma("0x21")][Ma("0x26")][Ma("0x2b")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x1c"),commandParams:[{reversed:e[Ma("0x3")]}],formatGroupId:Ma("0x1c")})}))}[Ma("0xa")](t,e={}){const n=this.editor[Ma("0x1b")][Ma("0xd")](Ma("0x6")),o=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13")),s=this[Ma("0x18")]((t=>o[Ma("0x8")](t)&&Ma("0x2c")===t[Ma("0x16")]("listType")));null!==s&&this.editor.model[Ma("0x2b")]((()=>{n[Ma("0x23")](s,{commandName:Ma("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ma("0x29")})}))}[Ma("0x9")](t){const e=this[Ma("0x21")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ma("0xe"):o=Ma("0x24"),s={type:Ma("0x30"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x25")][0][Ma("0x22")])))};break;case"listReversed":o=n[Ma("0x25")][0].reversed?"*Format:* set order to reversed":Ma("0x27"),s={type:Ma("0x30"),content:Yo(e,o)};break;case Ma("0x29"):o=Ma("0x4"),s={type:Ma("0x30"),content:Yo(e,o,n[Ma("0x25")][0].startIndex)}}return s}[Ma("0x5")](){const t=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13"));let e=Array[Ma("0x1")](this[Ma("0x21")][Ma("0x26")][Ma("0xc")].selection[Ma("0x1e")]());return e.push(...t[Ma("0x2a")](e)),e=[...new Set(e)],e}[Ma("0x18")](t){const e=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13"));let n=Array[Ma("0x1")](this[Ma("0x21")][Ma("0x26")][Ma("0xc")][Ma("0x20")][Ma("0x1e")]()).filter(t);if(!n.length)return null;n=e[Ma("0x2a")](n);const o=[];for(const t of n)e[Ma("0xb")](t)&&o[Ma("0x17")](t);return o}[Ma("0x1f")](t){return Ma("0x2")+this[Ma("0x21")].plugins.get(Ma("0x10")).getListTypeFromListStyleType(t)[Ma("0x12")]()+Ma("0x7")+t.toUpperCase()[Ma("0x14")](/-/g,"_")}}const Fa=["getFirstPosition","format","_getSuggestion","nodeAfter","registerDescriptionCallback","discard","enableCommand","tableAlignment","getSuggestionCallback","tableBackgroundColor","tableBorderColor","removeAttribute","locale","_handlePropertyChange","tableProperties","tableCellProperties","table","document","registerCustomCallback","data","tableCellBorderStyle","tableCellVerticalAlignment","setAttribute","tableCellPadding","batch","_suggestionFactory","markBlockFormat","tableHeight","selection","has","tableWidth","getContainedElement","tableCellBorderColor","tableCellBorderWidth","enqueueChange","get","formatBlock","_descriptionFactory","plugins","getAttribute","editor","join","TableUtils","handleDiscardAction","*Format:* change table properties","accept","findAncestor","TableCellPropertiesEditing","tableCellHeight","start","model","tableBorderStyle","subType"];var Pa,Da;Pa=Fa,Da=250,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.tableProperties=[Ba("0x19"),Ba("0xd"),"tableBorderWidth",Ba("0x16"),Ba("0x2d"),Ba("0x2a"),Ba("0x18")],this[Ba("0x1e")]=[Ba("0x2f"),Ba("0x23"),Ba("0x30"),Ba("0x26"),"tableCellWidth",Ba("0xa"),"tableCellBackgroundColor","tableCellHorizontalAlignment",Ba("0x24")]}static get pluginName(){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x2")][Ba("0x0")][Ba("0x32")]("TrackChangesEditing");if(this[Ba("0x2")][Ba("0x0")][Ba("0x2c")]("TablePropertiesEditing")){for(const e of this.tableProperties)t[Ba("0x15")](e,((t,n)=>{const o=this[Ba("0x2")][Ba("0xc")][Ba("0x20")][Ba("0x2b")][Ba("0xf")]()[Ba("0x8")](Ba("0x1f"));this._handlePropertyChange(e,[o],this[Ba("0x1d")],Ba("0x1d"),t,n)}));t._suggestionFactory[Ba("0x21")](Ba("0x33"),Ba("0x1d"),"accept",t[Ba("0x28")][Ba("0x17")](Ba("0x33"),null,"discard")),t._suggestionFactory[Ba("0x21")]("formatBlock",Ba("0x1d"),"discard",((t,e)=>this[Ba("0x5")](this.tableProperties,t,e))),t._suggestionFactory.registerCustomCallback(Ba("0x33"),Ba("0x1d"),"join",(()=>!1))}if(this[Ba("0x2")][Ba("0x0")][Ba("0x2c")](Ba("0x9"))){for(const e of this[Ba("0x1e")])t[Ba("0x15")](e,((t,n)=>{const o=this.editor[Ba("0x0")][Ba("0x32")](Ba("0x4")).getSelectionAffectedTableCells(this.editor.model[Ba("0x20")][Ba("0x2b")]);this[Ba("0x1c")](e,o,this.tableCellProperties,Ba("0x1e"),t,n)}));t._suggestionFactory[Ba("0x21")]("formatBlock",Ba("0x1e"),Ba("0x7"),t._suggestionFactory[Ba("0x17")]("formatBlock",null,"discard")),t[Ba("0x28")].registerCustomCallback("formatBlock",Ba("0x1e"),Ba("0x14"),((t,e)=>this[Ba("0x5")](this[Ba("0x1e")],t,e))),t[Ba("0x28")].registerCustomCallback("formatBlock",Ba("0x1e"),Ba("0x3"),(()=>!1))}t[Ba("0x34")][Ba("0x13")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x1c")](t,e,n,o,s,r){const i=this[Ba("0x2")].plugins[Ba("0x32")]("TrackChangesEditing");this[Ba("0x2")][Ba("0xc")][Ba("0x31")](r[Ba("0x27")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x29")](t,{commandParams:[e]},[],o)}}))}[Ba("0x5")](t,e,n){const o=e[0][Ba("0xb")][Ba("0x12")],s=n.commandParams[0];this[Ba("0x2")][Ba("0xc")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x25")](n,s[n],o):e[Ba("0x1a")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x22")])switch(t[Ba("0xe")]){case Ba("0x1d"):return{type:Ba("0x10"),content:Yo(this[Ba("0x2")][Ba("0x1b")],Ba("0x6"))};case Ba("0x1e"):return{type:Ba("0x10"),content:Yo(this[Ba("0x2")][Ba("0x1b")],"*Format:* change table cell properties")}}}[Ba("0x11")](t,e){const n=this[Ba("0x2")][Ba("0x0")][Ba("0x32")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x2e")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["item","isInContent","isAtEnd","isEqual","discardSuggestion","track-changes-suggestion-data-mismatch","getChangedMarkers","sort","accept","markInlineFormat","ck-suggestion-marker-","formatBlock:","removed","document","isRemovable","oldRange","registerPostFixer","getRanges","suggestion-type","markers","_joinSuggestions","change:data","external:","options","_mergeNestedSuggestions","isAtStart","from","markerToHighlight","delete","join","getSuggestions","group","getWalker","forceDefaultExecution","end","getIntersection","dataReady","trackChanges","getFirstRange","_getAuthorFromId","detach","elementEnd","editor","after","insertion:accept","hasComments","addSuggestionData","getRange","_breakSuggestionMarker","suggestion:","parent","catch","getItems","for","CommentsRepository","addMarkerName","_handleNewSuggestionMarker","splitPosition","writer","chain","discardSelectedSuggestions","_suggestions","filter","isInsideObject","ready","highest","toViewElement","isMultiRange","setAttribute","getFirstMarker","commands","addMarker","data-suggestion","getAncestors","isBlock","addSuggestion","_createSuggestion","removeMarkers","add","change:_saved","updateMarker","update:suggestion","high","isAfter","formatBlock:chain","formatBlock","targetPosition","_setSuggestionRange","refresh","subType","forward","_descriptionFactory","addCommentThread","remove","formatBlock:discard","insertion","config","isCollapsed","isNextTo","isExternal","getSuggestion","_checkSuggestionCorrectness","data","acceptSuggestion","removeClass","trackChanges.trackFormatChanges","newRange","hasSuggestion","getShiftedBy","documentSelection","markerReady","getAllAdjacentSuggestions","stop","creator","isBefore","formatInline:join","position","PENDING_ACTION_SUGGESTION","substr","range","showSuggestionHighlights","split","isObject","containsItem","createPositionAfter","isDocumentOperation","hasCommentThread","_suggestionState","getNearestSelectionRange","isOwn","formatBlock:join","resolve","createRange","attributes","updateSuggestion","markBlockFormat","_getSuggestionData","set","isSelectable","TrackChangesEditing","fromRange","suggestion","length","push","open","normal","start","notReady","skipNestingCheck","_removeSuggestion","previous","enableCommand","root","_updateSuggestionData","conversion","get","formatInline","_addSuggestionMarker","default","fetchCommentThread","applyOperation","nodeBefore","then","_commentsRepository","fire","element","listenTo","elementToElement","commandName","getDifference","isUndo","_customCallbacks","change","size","_saved","splice","some","getAttribute","activeMarkers","addRange","lowest","setSelection","includes","markMultiRangeInsertion","_isForcedDefaultExecutionBlock","getMarkers","getSuggestionCallback","removeAttribute","adapter","trackChangesCommand","formatGroupId","track-changes-suggestion-not-found","authoredAt","createdAt","_suggestionFactory","addClass","$graveyard","_registerDefaultCallbacks","acceptAllSuggestions","addHighlight","getLastMatchingPosition","error-saving-suggestion-data-suggestion-discarded","rootName","formatInline:discard","addComment","addUser","editingDowncast","editing","originalSuggestionId","rethrowUnexpectedError","type","discard","nodeAfter","deletion:","formatInline:","_trackFormatChanges","consumable","createPositionAt","track-changes-user-not-found","marker-count","rejected","backward","insertion:join","insertion:","setTo","acceptSelectedSuggestions","PendingActions","deletion:chain","_editor","widget","trackChanges.mergeNestedSuggestions","name","getUser","markerName","author","_adapter","_enabledCommands","suggestionChanged","model","_findSuggestions","enableReadOnlyMode","formatBlock:accept","schema","getCustomProperty","ck-suggestion-marker","has","formatInline:chain","value","_refreshSuggestionsChain","bindElementToMarker","define","enqueueChange","upcast","markerNameToElements","multi","containsRangeInObject","isLimit","$marker","$textProxy","batch","removeMarker","insertContent","markerToData","createElement","addMarker:suggestion","track-changes-adapter-missing-getsuggestion","plugins","moveTargetPosition","consume","containsRange","always","deletion","values","deletion:discard","markDeletion","toJSON","move","suggestionLoaded","createPositionBefore","_cutOutSuggestionMarker","collaboration.channelId","_splitMarkerName","@external","never","markInsertion","deleteContent","multipleBlocks","_defaultCallbacks","containsPosition","execute","track-changes-adapter-already-set","mapper","removeComment","addMarker:suggestion:formatBlock","dataToMarker","accepted","init","howMany","every","map","getMultiRangeId","next","ck-suggestion-marker--active","_onDiscard","_addThreadToSuggestion","authorName","locale","low","commentThread","createSelection","_rangeIsInLocalUserInsertion","_model","Users","dataDowncast","selection","_setSuggestionData","differ","insertion:chain","discardAllSuggestions"];var Ga,Ha;Ga=Ua,Ha=256,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Va=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[Va("0x75"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return Va("0xca")}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}super(t),this.set(Va("0xf1"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Va("0x37")][Va("0xeb")]((()=>{for(const e of[...s,...o])this[Va("0x37")][Va("0x52")][Va("0x134")](e)&&t[Va("0x10e")].reconvertMarker(e)}))})),this[Va("0x9a")]=new ss(this.editor[Va("0x12d")].schema,this[Va("0x69")][Va("0x32")]),this[Va("0x12a")]=null,this[Va("0x101")]=new za(this[Va("0x69")]),this._suggestions=new Map,this[Va("0xe2")]=t[Va("0xa")].get("CommentsRepository"),this[Va("0x12b")]=new Set,this[Va("0x37")]=this[Va("0x69")][Va("0x12d")],this._suggestionState=new WeakMap,this[Va("0xf7")]=!1,t.config[Va("0x139")](Va("0xa8"),Va("0xdd")),this[Va("0x116")]=t[Va("0x9f")][Va("0xda")](Va("0xa8")),t[Va("0x9f")].define(Va("0x125"),!0),this._mergeNestedSuggestions=t[Va("0x9f")][Va("0xda")](Va("0x125")),this[Va("0xfc")]=new u(t,this[Va("0x12b")]),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,54,53,54])}[Va("0x28")](){const t=this.editor;t[Va("0xd9")].for(Va("0x10d"))[Va("0x5a")]({model:Va("0xcc"),view:t=>{const{id:e,type:n}=this[Va("0x19")](t[Va("0x128")]),o=[Va("0x133"),Va("0x49")+n];let s=3e3;return this[Va("0xf1")][Va("0xf5")](t.markerName)&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Va("0xd9")].for(Va("0x39"))[Va("0x8d")]((e=>{e.on(Va("0x8"),((e,n,o)=>{if(!o[Va("0x56")][Va("0xb7")])return;const s=n[Va("0x3f")];if(!s)return;const r=o.mapper[Va("0x81")](s);t[Va("0x12d")].schema.isObject(s)&&r&&!r[Va("0x132")](Va("0x124"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[Va("0x79")])}),{priority:Va("0x91")})})),t[Va("0xd9")][Va("0x74")]("dataDowncast")[Va("0x5a")]({model:Va("0xcc"),view:(t,e)=>{if(!e[Va("0x56")][Va("0xb7")])return null;const{type:n}=this[Va("0x19")](t[Va("0x128")]);return{classes:[Va("0x133"),Va("0x49")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Va("0x3f")])return;if(o[Va("0x3f")].is(Va("0x3a")))return void s[Va("0x117")][Va("0xc")](o.item,n[Va("0x126")]);const r=s[Va("0x23")][Va("0x81")](o[Va("0x3f")]);if(!o[Va("0x3f")].is(Va("0xe4"))||!t[Va("0x12d")][Va("0x131")][Va("0x89")](o[Va("0x3f")])||r[Va("0x132")](Va("0x106")))return;const{id:i}=this._splitMarkerName(o.markerName);s[Va("0x79")][Va("0x102")]([Va("0x133"),"ck-suggestion-marker-formatBlock"],r),s[Va("0x79")][Va("0x83")]("data-suggestion",i,r),s[Va("0x23")][Va("0x138")](r,o.markerName),e&&(this.activeMarkers.includes(o[Va("0x128")])?s.writer[Va("0x102")](Va("0x2e"),r):s[Va("0x79")][Va("0xa7")](Va("0x2e"),r));for(const e of t[Va("0x12d")].createRangeIn(o[Va("0x3f")])[Va("0x73")]())s[Va("0x117")][Va("0xc")](e,n[Va("0x126")]);s[Va("0x117")][Va("0xc")](o.item,n[Va("0x126")])};t[Va("0xd9")][Va("0x74")](Va("0x39"))[Va("0x8d")]((t=>{t.on(Va("0x25"),((t,e,o)=>{o[Va("0x56")][Va("0xb7")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Va("0x80")})})),t.conversion[Va("0x74")](Va("0x39"))[Va("0x6")]({model:Va("0xcc"),view:(t,e)=>e[Va("0x56")][Va("0xb7")]?null:{group:Va("0xcc"),name:t[Va("0xb5")](11)}}),t[Va("0xd9")][Va("0x74")](Va("0x13b"))[Va("0xe6")]({view:{name:Va("0xcc"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Va("0x70")+t[Va("0xf0")](Va("0x51"))+":"+t[Va("0xf0")]("id");return t[Va("0xf0")](Va("0x11a"))&&(n+=":"+t.getAttribute("marker-count")),e[Va("0x7")](Va("0x1"),{"data-name":n})}}),t[Va("0xd9")][Va("0x74")](Va("0x13b"))[Va("0x26")]({view:Va("0xcc")}),t.conversion[Va("0x74")](Va("0x10d")).add((t=>{t.on(Va("0x25"),n(),{priority:Va("0x91")})})),t[Va("0xd9")][Va("0x74")](Va("0x10d"))[Va("0x8d")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[Va("0x13c")](e[Va("0x128")]);if(o)for(const t of o)t[Va("0x132")]("addHighlight")||(n[Va("0x79")].removeClass([Va("0x133"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Va("0x79")][Va("0xfa")](Va("0x87"),t),n[Va("0x23")].unbindElementFromMarkerName(t,e[Va("0x128")]))}),{priority:Va("0x91")})})),t[Va("0x12d")][Va("0x4c")].registerPostFixer((e=>{let n=!1;const o=Array[Va("0x59")](t[Va("0x12d")][Va("0x4c")][Va("0x3c")][Va("0x45")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Va("0x19")](x);if("suggestion"!==o)continue;const d=this[Va("0x7c")].get(l);if(null!=a.newRange)if(Va("0xdb")==c&&(n=n||Xa(a[Va("0xa9")],x,e,t[Va("0x12d")][Va("0x131")])),a.newRange[Va("0xa0")]||"$graveyard"==a.newRange[Va("0xd7")][Va("0x109")]||Va("0x94")==c&&!Ja(a[Va("0xa9")])||Va("0xf")==c&&(qa(i=a[Va("0xa9")])||(r=i)[Va("0xd1")].parent==r.end[Va("0xe0")]&&r[Va("0xd1")][Va("0x41")]))e[Va("0x4")](x),n=!0;else{if(!d||!d[Va("0x40")])continue;s.add(d)}}var r,i;return s[Va("0xec")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Va("0x12d")][Va("0x4c")][Va("0x4f")]((e=>{let n=!1;for(const o of t[Va("0x12d")][Va("0x4c")][Va("0x3c")].getChanges()){if("insert"!=o[Va("0x111")])continue;const s=o[Va("0xb3")].getShiftedBy(o.length);if(s.isAtEnd)for(const r of this[Va("0x7c")][Va("0x10")]()){if(r.isMultiRange||!r[Va("0x40")])continue;if("formatBlock"!=r[Va("0x111")])continue;const i=r[Va("0x65")]();if(i[Va("0xd1")].parent!=i[Va("0x61")][Va("0x71")]&&i[Va("0x61")].isEqual(o[Va("0xb3")])){const o=t.model[Va("0xc3")](i[Va("0xd1")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Va("0x12d")].markers.on(Va("0x90"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Va("0x126")]),n=this[Va("0x7c")][Va("0xda")](t);n&&n[Va("0x76")](e[Va("0x126")])}})),t[Va("0x12d")][Va("0x4c")].on(Va("0x54"),(()=>{const e=Array[Va("0x59")](t.model[Va("0x4c")].differ[Va("0x45")]())[Va("0x7d")]((t=>Va("0xcc")===this[Va("0x19")](t[Va("0x126")])[Va("0x5e")]));if(0===e.length)return;e[Va("0x46")](((t,e)=>{const n=t[Va("0xa5")][Va("0x4e")],o=e.data[Va("0x4e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Va("0xd1")][Va("0xb1")](o[Va("0xd1")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Va("0x19")](t);if(null===s.oldRange){const e=this._handleNewSuggestionMarker(t);o.add(e)}else{const t=this[Va("0x7c")][Va("0xda")](e);null!==s.newRange||t[Va("0x40")]?(n[Va("0x8d")](t.head),o[Va("0x8d")](t)):this[Va("0xd4")](t)}}o[Va("0xec")]>0&&this[Va("0x137")](o);for(const t of n)this.fire("suggestionChanged",t)})),t[Va("0x12d")].on(Va("0xdf"),((e,n)=>{const o=n[0];if(!this[Va("0x7c")][Va("0xec")])return;if(!o[Va("0xbc")])return;if(o[Va("0x3")][Va("0xe9")]||!o[Va("0x3")].isLocal)return;let s,r;switch(o[Va("0x111")]){case"insert":s=t[Va("0x12d")][Va("0x118")](o[Va("0xb3")]),r=s[Va("0xab")](o[Va("0x29")]);break;case Va("0xb8"):s=t.model[Va("0x118")](o[Va("0x78")]),r=t[Va("0x12d")].createPositionAt(o[Va("0xb")]);break;case Va("0x14"):s=t.model[Va("0x118")](o[Va("0x95")]),r=s[Va("0xab")](o.howMany);break;default:return}const i=t[Va("0x12d")].createRange(s,r);t[Va("0x12d")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Va("0x82")])continue;if("formatInline"==t[Va("0x111")])continue;const n=t.data&&t[Va("0xa5")][Va("0x1e")];(Va("0x94")!=t[Va("0x111")]||Va("0xb8")==o.type&&!n)&&(e[Va("0x13e")]||Va("0x9e")==t.type&&e[Va("0xc0")]||t[Va("0x65")]()[Va("0xd")](i)&&this[Va("0x6f")](t,s,r))}}))}),{priority:Va("0xf3")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[Va("0xf7")])return;if(!this[Va("0xfc")].value)return;if(o.isCollapsed)return;const r=t.model[Va("0x131")],{start:i,end:x}=o[Va("0x65")](),a=i[Va("0x113")]&&r[Va("0x0")](i[Va("0x113")])?null:r[Va("0xbf")](i,Va("0x99")),c=x[Va("0xe0")]&&r[Va("0x0")](x.nodeBefore)?null:r[Va("0xbf")](x,Va("0x11c")),l=t[Va("0x12d")].createRange(a?a.start:i,c?c[Va("0x61")]:x);t[Va("0x12d")][Va("0xeb")]((e=>{this[Va("0x12")](l);const n=t[Va("0x12d")][Va("0x131")][Va("0xbf")](l[Va("0xd1")]);o.is(Va("0xac"))?e.setSelection(n):o[Va("0x11f")](n)})),e[Va("0xaf")]()}),{priority:e.priorities[Va("0xd0")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Va("0xcd")]-1];o&&o[Va("0x60")]||this[Va("0xf7")]||this[Va("0xfc")][Va("0x136")]&&(t[Va("0x12d")].change((()=>{let o=t[Va("0x12d")][Va("0x5")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o[Va("0x61")].nodeBefore,r=t[Va("0x12d")].schema;s&&r[Va("0x89")](s)&&!r.isObject(s)&&(o=t[Va("0x12d")][Va("0xc3")](o[Va("0xd1")],t[Va("0x12d")][Va("0x118")](s,Va("0x61")))),this[Va("0x1c")](o)})),e[Va("0xaf")]())}),{priority:Va("0x91")}),this[Va("0x69")][Va("0x85")][Va("0x8d")]("trackChanges",this[Va("0xfc")]),this[Va("0xd6")](Va("0x64"));const o=new p(t,this[Va("0x7c")]);t.commands.add(Va("0xa6"),o),this[Va("0xd6")](Va("0xa6"));const s=new C(t,this[Va("0x7c")]);t[Va("0x85")][Va("0x8d")](Va("0x43"),s),this[Va("0xd6")](Va("0x43")),t[Va("0x85")][Va("0x8d")](Va("0x105"),new F(t,o,this[Va("0x7c")])),this[Va("0xd6")](Va("0x105")),t.commands[Va("0x8d")](Va("0x3e"),new F(t,s,this[Va("0x7c")])),this[Va("0xd6")]("discardAllSuggestions"),t.commands[Va("0x8d")](Va("0x120"),new U(t,o,this[Va("0x7c")])),this[Va("0xd6")](Va("0x120")),t[Va("0x85")][Va("0x8d")](Va("0x7b"),new U(t,s,this[Va("0x7c")])),this[Va("0xd6")](Va("0x7b"));const r=t[Va("0xa")].get(Va("0x75"));this[Va("0xe5")](r,Va("0x10b"),((t,{threadId:e})=>{const n=this[Va("0x7c")][Va("0xda")](e);n&&n.commentThread&&1===n[Va("0x34")][Va("0xcd")]&&this[Va("0xd8")](e,{hasComments:!0})}),{priority:"low"}),this[Va("0xe5")](r,Va("0x24"),((t,{threadId:e})=>{const n=this[Va("0x7c")][Va("0xda")](e);n&&n[Va("0x34")]&&!n[Va("0x34")][Va("0xcd")]&&this[Va("0xd8")](e,{hasComments:!1})}),{priority:Va("0x33")})}set[Va("0xfb")](t){if(this[Va("0x12a")])throw new e.CKEditorError(Va("0x22"),this);this._adapter=t}get[Va("0xfb")](){return this[Va("0x12a")]}[Va("0x5d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Va("0x10")]())t&&!e[Va("0x40")]||n.push(e);return e?n[Va("0x2b")]((t=>t[Va("0x13")]())):n}[Va("0xa3")](t){const n=this[Va("0x7c")][Va("0xda")](t);if(!n)throw new e.CKEditorError(Va("0xfe"),this);return n}[Va("0xaa")](t){return this[Va("0x7c")][Va("0x134")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Va("0x111")][Va("0xb8")](":"),i=this[Va("0x7c")][Va("0xda")](n)||this[Va("0x8b")](s,r,n,e,o);if(this[Va("0x30")](i),this[Va("0xa4")](i,s,r||null,e),i.createdAt=t[Va("0x100")],o&&o[Va("0x1a")]){const t=o["@external"],e=this._getExternalAuthor(t[Va("0x31")]);i[Va("0xff")]=t[Va("0x100")],i.author=e,i[Va("0xa2")]=!0}else i[Va("0xff")]=t[Va("0x100")];switch(t.data&&(i[Va("0xa5")]=t[Va("0xa5")]),t.attributes&&(i.attributes=t.attributes),this[Va("0x12a")]&&this[Va("0x12a")][Va("0x8a")]||(i[Va("0xed")]=!0),this[Va("0xbe")][Va("0xda")](i)){case Va("0xd2"):this._suggestionState[Va("0xc8")](i,Va("0x63"));break;case"markerReady":i[Va("0x40")]?(this._suggestionState[Va("0xc8")](i,Va("0x7f")),this.fire(Va("0x15"),i)):this[Va("0xbe")][Va("0xc8")](i,Va("0x4b"))}return i}[Va("0xa6")](t){this[Va("0x60")]((()=>{this[Va("0x69")][Va("0x12d")][Va("0xeb")]((()=>{for(const e of t[Va("0xae")]())e[Va("0x47")]()}))}))}[Va("0x43")](t){this[Va("0x60")]((()=>{this[Va("0x69")].model.change((()=>{for(const e of t[Va("0xae")]())e[Va("0x112")]()}))}))}enableCommand(t,n){const o=this[Va("0x69")][Va("0x85")][Va("0xda")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands[Va("0x8d")](o),n&&o.on("execute",((t,e)=>{this[Va("0xfc")][Va("0x136")]&&(this[Va("0xf7")]||e[Va("0xcd")]>0&&e[e[Va("0xcd")]-1]&&e[e[Va("0xcd")]-1].forceDefaultExecution||(n(((...t)=>o[Va("0x21")](...t,{forceDefaultExecution:!0})),...e),t[Va("0xaf")]()))}),{priority:"high"})}[Va("0x60")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Va("0xf7")]=!1),o&&e.CKEditorError[Va("0x110")](o,this),n}[Va("0x1c")](t,n=null,o={}){if(t[Va("0xa0")])return null;const s=this[Va("0x69")][Va("0xa")].get(Va("0x38")).me;for(const{suggestion:e,meta:o}of this[Va("0x12e")](t,Va("0x9e")))if(o[Va("0xc0")]){if(!o[Va("0xa1")]){if(!this._mergeNestedSuggestions&&o[Va("0x13e")])continue;return e}if(n==e.subType){const n=e[Va("0x65")]();return n.start[Va("0x42")](t[Va("0x61")])?this[Va("0x96")](e,this[Va("0x37")][Va("0xc3")](t[Va("0xd1")],n[Va("0x61")])):this[Va("0x96")](e,this._model[Va("0xc3")](n.start,t[Va("0x61")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Va("0x9e"),a=this[Va("0x3b")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Va("0xdc")](x,r,i,t),a}[Va("0xf6")](t,n="multi",o={}){const s=this[Va("0x69")][Va("0xa")][Va("0xda")](Va("0x38")).me,r=this[Va("0x101")][Va("0xf9")](Va("0x9e"),n,Va("0x5c"));for(const e of this[Va("0x5d")]())if(e[Va("0x129")].id==s.id&&"insertion"==e[Va("0x111")]&&e[Va("0x98")]==n&&(r(e[Va("0x50")](),t)||r(t,e[Va("0x50")]()))){for(const n of t)e[Va("0xf2")](n);return e}if(this[Va("0x57")])for(const e of t)for(const{suggestion:n,meta:o}of this[Va("0x12e")](e,Va("0x9e"))){if(!o[Va("0xc0")])continue;let e=!0;for(const o of n[Va("0x50")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Va("0x11e")+n,c=this[Va("0x3b")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Va("0xdc")](a,i,x,e,Zo[Va("0x2c")]());return c}[Va("0x48")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(Va("0x1b")===this[Va("0x116")]){const e=this[Va("0x101")][Va("0xf9")](Va("0xdb"),o,Va("0x47"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this.editor[Va("0xa")][Va("0xda")](Va("0x38")).me,i=[];if(Va("0xe")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,"insertion"))n.isOwn&&!n[Va("0x7e")]&&i[Va("0xce")](...e[Va("0x50")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Va("0x62")](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[Va("0xcd")];){const o=n[e][Va("0xe8")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[Va("0xcd")]&&this._model[Va("0xeb")]((()=>{for(const t of x){const e=this._suggestionFactory[Va("0xf9")](Va("0xdb"),o,Va("0x47"));this[Va("0x60")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Va("0xd1")],a=t[Va("0x61")];for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0xdb"))){if(!n.isOwn)continue;if(e[Va("0x98")]!=o)continue;const s=e[Va("0x65")]();if(s[Va("0xd")](t,!0))return null;x=x.isBefore(s[Va("0xd1")])?x:s.start,a=a[Va("0x92")](s[Va("0x61")])?a:s.end,i?s[Va("0xd1")][Va("0xb1")](i[Va("0x65")]()[Va("0xd1")])?(i.removeMarkers(),i=e):e[Va("0x8c")]():i=e}const c=this[Va("0x37")][Va("0xc3")](x,a);if(i)this[Va("0x96")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Va("0x3b")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Va("0xdc")](Va("0x115")+o,t,i,c)}}return null}[Va("0xc6")](t,n,o=[],s=null,r={}){n[Va("0xfd")]||(n[Va("0xfd")]=n[Va("0xe7")]),n[Va("0x1e")]=t.is(Va("0xb6")),s=s||$a(n);const i=o[Va("0x2b")]((t=>Qa(t,this[Va("0x37")]))),x=t.is(Va("0xb6"))?t:Qa(t,this._model);if("never"===this[Va("0x116")]){const t=this[Va("0x101")][Va("0xf9")](Va("0x94"),s,"accept");return this[Va("0x60")]((()=>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&&"always"!==this[Va("0x116")]){const t=this._suggestionFactory[Va("0xf9")](Va("0x94"),s,Va("0x47"));return this[Va("0x60")]((()=>t([x],n,r))),null}let c=null,l=x[Va("0xd1")],d=x[Va("0x61")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e.isOwn||e.isNextTo||e[Va("0x13e")]||e[Va("0x7e")])continue;if(t[Va("0xa5")].formatGroupId!=n[Va("0xfd")])continue;const o=t[Va("0x65")]();if(t[Va("0x98")]==s){if(o[Va("0xd")](x,!0))return null;l=l[Va("0xb1")](o[Va("0xd1")])?l:o.start,d=d.isAfter(o[Va("0x61")])?d:o[Va("0x61")],c?o[Va("0xd1")][Va("0xb1")](c.getFirstRange()[Va("0xd1")])?(c[Va("0x8c")](),c=t):t[Va("0x8c")]():c=t}else{const e=x[Va("0x62")](o);this[Va("0x17")](t,e)}}const u=this.editor[Va("0xa")].get(Va("0x38")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Va("0x96")](c,this._model.createRange(l,d)),c;{const t=this[Va("0x3b")]({id:g,type:Va("0x4a")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Va("0xdc")](Va("0x4a")+s,g,m,this[Va("0x37")].createRange(l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[Va("0xfd")]||(n[Va("0xfd")]=n.commandName);const i=t[0];n[Va("0x1e")]=i.is(Va("0xb6")),s=s||$a(n);const x=o.map((t=>Qa(t,this[Va("0x37")]))),a=i.is(Va("0xb6"))?t:t.map((t=>Qa(t,this[Va("0x37")])));if(Va("0x1b")===this[Va("0x116")]){const t=this[Va("0x101")][Va("0xf9")](Va("0x94"),s,Va("0x47"));return this[Va("0x60")]((()=>t(a,n,r))),null}x[Va("0xce")](...a);let c=!0;for(const t of x)if(!this[Va("0x36")](t)){c=!1;break}if(c&&Va("0xe")!==this[Va("0x116")]){const t=this[Va("0x101")].getSuggestionCallback(Va("0x94"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Va("0x69")].plugins[Va("0xda")]("Users").me;for(const t of this[Va("0x5d")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[Va("0x111")]||t[Va("0xa5")].formatGroupId!=n[Va("0xfd")])continue;const e=t[Va("0x98")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Va("0xf8")]()){const r=s[Va("0x6e")]();if(o[Va("0x42")](r)){e?(a[Va("0xee")](n,1),n--):t[Va("0x4")](s[Va("0x126")]);break}}}}if(0==a[Va("0xcd")])return null;const d=this._suggestionFactory[Va("0xf9")](Va("0x94"),s,Va("0x5c"));for(const t of this[Va("0x5d")]())if(t[Va("0x129")].id==l.id&&"formatBlock"==t[Va("0x111")]&&t[Va("0xa5")][Va("0xfd")]==n.formatGroupId&&t[Va("0x98")]==s&&(d(t.getRanges(),a)||d(a,t[Va("0x50")]()))){for(const e of a)t[Va("0xf2")](e);return t}const u=(0,e.uid)(),g=l.id,m=Va("0x4a")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Va("0xdc")](m,u,g,t,Zo[Va("0x2c")]());return f}[Va("0x12")](t,n=null,o={}){if(t[Va("0xa0")])return null;const s=this[Va("0x69")][Va("0xa")].get(Va("0x38")).me,r=new i.LiveRange(t[Va("0xd1")],t[Va("0x61")]);for(const{suggestion:t,meta:e}of this[Va("0x12e")](r,Va("0x9e")))if(e.isOwn&&!e[Va("0xa1")])if(t[Va("0x82")]){const e=t[Va("0x50")]()[Va("0x7d")]((t=>"$graveyard"!=t[Va("0xd7")][Va("0x109")]));if(e[Va("0x2a")]((t=>r.containsRange(t,!0)))&&t[Va("0x112")](),e[Va("0xef")]((t=>t.containsRange(r,!0)))){const t=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,Va("0x47"));return this[Va("0x60")]((()=>t([r],null,o))),null}}else{const e=r[Va("0x62")](t[Va("0x65")]());null!==e&&t[Va("0x2f")]([e],null,o)}if(r[Va("0x67")](),r[Va("0xa0")]||"$graveyard"==r.root[Va("0x109")])return null;let x=null,a=r[Va("0xd1")],c=r.end;for(const{suggestion:t,meta:e}of this[Va("0x12e")](r,Va("0xf")))if(e[Va("0xc0")])if(t[Va("0x82")]&&this[Va("0x57")]){let e=!0;for(const n of t[Va("0x50")]()){if(n[Va("0xd")](r,!0))return t;r[Va("0xd")](n)||(e=!1)}e&&t[Va("0x112")]()}else{const n=t[Va("0x65")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[Va("0xb1")](n[Va("0xd1")])?a:n[Va("0xd1")],c=c.isAfter(n[Va("0x61")])?c:n[Va("0x61")],x?n.start[Va("0xb1")](x[Va("0x65")]().start)?(x[Va("0x8c")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this._model[Va("0xc3")](a,c)),x;{const t=(0,e.uid)(),r=this[Va("0x37")][Va("0xc3")](a,c),i=s.id,x=n?Va("0x114")+n:Va("0xf"),l=this[Va("0x3b")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}markMultiRangeDeletion(t,n=Va("0x13d"),o={}){const s=this[Va("0x69")][Va("0xa")][Va("0xda")]("Users").me,r=t.map((t=>new i.LiveRange(t[Va("0xd1")],t[Va("0x61")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0x9e")))n[Va("0xc0")]&&!n[Va("0xa1")]&&x[Va("0x8d")](e);for(const e of x)if(e[Va("0x82")]){const s=e.getRanges();if((!e[Va("0xc4")]||!e[Va("0xc4")][Va("0xd3")])&&s[Va("0x2a")]((t=>r[Va("0xef")]((e=>e[Va("0xd")](t,!0)))))&&e[Va("0x112")](),r[Va("0x2a")]((t=>s[Va("0xef")]((e=>e[Va("0xd")](t,!0)))))){const e=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,Va("0x47"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Va("0x65")]();if(r.some((e=>e[Va("0xd")](t,!0)))&&e[Va("0x112")](),r[Va("0x2a")]((e=>t[Va("0xd")](e,!0)))){const t=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,"accept");return this[Va("0x60")]((()=>t(r,null,o))),null}}const a=this[Va("0x101")][Va("0xf9")]("deletion",n,Va("0x5c"));let c=null;for(const t of this[Va("0x5d")]())if(t[Va("0x129")].id==s.id&&t.isInContent&&Va("0xf")==t[Va("0x111")]&&t[Va("0x98")]==n&&(a(t[Va("0x50")](),r)||a(r,t.getRanges())))if(c){if(t[Va("0x34")]&&t[Va("0x34")].length)continue;for(const e of t[Va("0x50")]())c.isIntersectingWithRange(e)||c[Va("0xf2")](e);t[Va("0x8c")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Va("0xf2")](e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0xf")))n[Va("0xc0")]&&x.add(e);for(const t of x){const e=t[Va("0x50")]();if((!o||!o[Va("0xd3")])&&r.every((t=>e[Va("0xef")]((e=>e.containsRange(t,!0))))))return t;(!t[Va("0xc4")]||!t[Va("0xc4")][Va("0xd3")])&&e[Va("0x2a")]((t=>r[Va("0xef")]((e=>e.containsRange(t,!0)))))&&t[Va("0x112")]()}const l=(0,e.uid)(),d=s.id,u=Va("0x114")+n,g=this[Va("0x3b")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Va("0xa0")]||Va("0x103")==t[Va("0xd7")][Va("0x109")]||this[Va("0xdc")](u,l,d,t,Zo[Va("0x2c")]());return g}[Va("0x96")](t,e){const n=t[Va("0x84")]();this[Va("0x37")][Va("0xeb")]((t=>{t.updateMarker(n,{range:e})}))}[Va("0x30")](t){const e=t.id,n=this[Va("0x69")][Va("0x9f")][Va("0xda")](Va("0x18"));this[Va("0xe2")][Va("0xbd")](e)||this[Va("0xe2")][Va("0x9b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Va("0xe2")].getCommentThread(e);o.unbind(Va("0x4d")),o.isRemovable=!1,t[Va("0x34")]=o}[Va("0xa4")](t,n,o,s){if(t[Va("0x111")]!=n||t[Va("0x98")]!=o||t[Va("0xb0")].id!=s)throw this[Va("0x69")][Va("0x12f")](Va("0x44")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Va("0x17")](t,n){const o=t[Va("0x65")]();if(n[Va("0x42")](o))t.removeMarkers();else if(o[Va("0xd")](n)){const s=this[Va("0x37")][Va("0x118")](n[Va("0xd1")][Va("0xe0")],Va("0x61"));this._setSuggestionRange(t,this._model[Va("0xc3")](o[Va("0xd1")],s));const r=(0,e.uid)(),i=t[Va("0xb0")].id,x=t[Va("0x111")]+":"+t[Va("0x98")];this[Va("0x3b")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Va("0xa5")],attributes:t[Va("0xc4")]});const a=this[Va("0x37")][Va("0x118")](n.end[Va("0x71")],Va("0x6a")),c=this[Va("0x37")][Va("0xc3")](a,o[Va("0x61")]);this[Va("0xdc")](x,r,i,c)}else if(o[Va("0x20")](n[Va("0xd1")])){const e=this[Va("0x37")][Va("0x118")](n.start.nodeBefore,"end");this[Va("0x96")](t,this[Va("0x37")].createRange(o[Va("0xd1")],e))}else{const e=this[Va("0x37")][Va("0x118")](n[Va("0x61")][Va("0x71")],Va("0x6a"));this[Va("0x96")](t,this[Va("0x37")][Va("0xc3")](e,o[Va("0x61")]))}}[Va("0x36")](t){for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,"insertion")){if(!n.isOwn)continue;const o=e[Va("0x50")]();for(const e of o)if(!t[Va("0xe8")](e)[Va("0xcd")])return!0}return!1}[Va("0x66")](t){const n=this.editor[Va("0xa")][Va("0xda")](Va("0x38"))[Va("0x127")](t);if(!n)throw new e.CKEditorError(Va("0x119"),this);return n}_getExternalAuthor(t){const e=this[Va("0x69")][Va("0xa")].get(Va("0x38")),n=(0,r.hashObject)(Va("0x55")+t);return e[Va("0x127")](n)||e[Va("0x10c")]({id:n,name:t})}[Va("0x8b")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Va("0x101")].buildSuggestion(t,e,n,r,s,(t=>this[Va("0xd8")](n,{attributes:t})));return this[Va("0xe5")](i,Va("0x47"),(()=>{this[Va("0xd8")](n,{state:Va("0x27")})}),{priority:Va("0x91")}),this[Va("0xe5")](i,Va("0x112"),(()=>{this._updateSuggestionData(n,{state:Va("0x11b")})}),{priority:Va("0x91")}),this[Va("0x7c")][Va("0xc8")](n,i),this._suggestionState.set(i,"notReady"),i}[Va("0x19")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[Va("0xcd")]<5?e[2]:e[3],authorId:e[Va("0xcd")]<5?e[3]:e[4],markerCount:6==e[Va("0xcd")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[Va("0x65")](),r=s[Va("0xd1")],i=s.end;this[Va("0x96")](t,this[Va("0x37")][Va("0xc3")](r,n));const x=(0,e.uid)(),a=t[Va("0xb0")].id,c=t[Va("0x111")]+(t[Va("0x98")]?":"+t.subType:"");this[Va("0x3b")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[Va("0xa5")]}),Va("0x94")==t[Va("0x111")]&&(o=this[Va("0x37")][Va("0x16")](o[Va("0x71")])),this[Va("0xdc")](c,x,a,this[Va("0x37")][Va("0xc3")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[Va("0x37")].schema,s=this.editor.plugins[Va("0xda")](Va("0x38")).me;for(const r of this[Va("0x5d")]())if(r[Va("0x40")]&&(!e||r[Va("0x111")]==e))for(const e of r[Va("0x50")]()){const i=t[Va("0xd1")][Va("0x42")](e[Va("0x61")])||t[Va("0x61")][Va("0x42")](e.start);if(i||t[Va("0x62")](e)){const x=t[Va("0xd")](e)&&Ka(o,e.start,t),a=e.containsRange(t)&&Ka(o,t.start,e);n[Va("0xce")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Va("0xdc")](t,e,n,o,s){this[Va("0x37")][Va("0xeb")]((r=>{let i=Va("0x70")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Va("0x86")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Va("0xd4")](t){const e=t.previous,n=t[Va("0x2d")];t[Va("0xd5")]=null,null!=e&&(e[Va("0x2d")]=null),t[Va("0x2d")]=null,null!=n&&(n[Va("0xd5")]=null),"ready"==this[Va("0xbe")][Va("0xda")](t)&&(this[Va("0xbe")][Va("0xc8")](t,Va("0x4b")),this[Va("0xe3")]("suggestionUnloaded",t,e,n))}[Va("0x3b")](t){const n=t.id,o=this[Va("0x6d")](t);if(this._adapter&&this[Va("0x12a")][Va("0x8a")]){const s=this[Va("0x69")][Va("0xa")][Va("0xda")](Va("0x121")),r=o.hasComments,i=o.subType?o[Va("0x111")]+":"+o[Va("0x98")]:o[Va("0x111")],x=this[Va("0x69")].locale,a=s[Va("0x8d")](Yo(x,Va("0xb4"))),c={id:n,type:i,hasComments:r,data:t[Va("0xa5")]||null,originalSuggestionId:t[Va("0x10f")]||null,attributes:o.attributes};this[Va("0x12a")].addSuggestion(c).then((t=>{o[Va("0xed")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions[Va("0xda")](n)[Va("0x100")]=t.createdAt)}))[Va("0x72")]((t=>{throw(0,e.logWarning)(Va("0x108")),this[Va("0x69")].model[Va("0x13a")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[Va("0x7c")][Va("0x5b")](o.id),this._suggestionState[Va("0x5b")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Va("0xa")][Va("0xda")](Va("0x121")),o=this[Va("0xa3")](t);if(this._adapter&&this._adapter[Va("0xc5")])if(o[Va("0xed")]){const o=n.add(Yo(this.editor[Va("0x32")],"PENDING_ACTION_SUGGESTION"));this._adapter[Va("0xc5")](t,e)[Va("0xe1")]((()=>{n[Va("0x9c")](o)}))}else o.on(Va("0x8e"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[Va("0x12a")][Va("0xa3")])throw new e.CKEditorError(Va("0x9"),this);return this[Va("0x12a")][Va("0xa3")](t)}[Va("0x77")](t){const{id:e,type:n,subType:o,authorId:s}=this[Va("0x19")](t),r=this._suggestions[Va("0xda")](e)||this[Va("0x8b")](n,o,e,s,{});switch(this[Va("0xa4")](r,n,o,s),this[Va("0xbe")][Va("0xda")](r)){case Va("0xd2"):this[Va("0xc7")](e)[Va("0xe1")]((t=>{let n=Promise[Va("0xc2")]();t[Va("0x6c")]&&(n=this[Va("0xe2")][Va("0xde")]({channelId:this[Va("0x69")].config[Va("0xda")]("collaboration.channelId"),threadId:e})),n[Va("0xe1")]((()=>{this.addSuggestionData(t)[Va("0xed")]=!0}))})),this[Va("0xbe")].set(r,Va("0xad"));break;case Va("0x4b"):this[Va("0xd8")](e,{state:Va("0xcf")});case"dataReady":this[Va("0xbe")][Va("0xc8")](r,Va("0x7f")),this.fire("suggestionLoaded",r);break;case Va("0x7f"):this[Va("0xe3")](Va("0x12c"),r)}return r[Va("0x76")](t),r}[Va("0x137")](t){const e=Array.from(t)[Va("0x7d")]((t=>!t[Va("0x82")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[Va("0x82")])),o=n.filter((e=>!t[Va("0x134")](e))),s=new Map(n[Va("0x2b")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[Va("0x111")],t.subType,Va("0x7a"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Va("0xcd")];t++)a(e[t],o,0);for(let t=0;t<e[Va("0xcd")];t++){const n=e[t];!x.has(n)&&n[Va("0xd5")]&&(n[Va("0xd5")].next===n&&(n[Va("0xd5")].next=null),n.previous=null),!i.has(n)&&n[Va("0x2d")]&&(n.next.previous===n&&(n[Va("0x2d")][Va("0xd5")]=null),n[Va("0x2d")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Va("0x2d")]=n[1],n[1][Va("0xd5")]=n[0],i[Va("0x8d")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Va("0x129")].id!==e[Va("0x129")].id)return null;const n=s[Va("0xda")](t)(t,e,r.get(t),r[Va("0xda")](e));return n&&s[Va("0xda")](e)(t,e,r[Va("0xda")](t),r.get(e))?n[1].commentThread&&n[1][Va("0x34")][Va("0xcd")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Va("0x59")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Va("0x7d")]((e=>!t[Va("0x134")](e))),s=new Map(e[Va("0x2b")]((t=>[t,this._suggestionFactory[Va("0xf9")](t[Va("0x111")],t[Va("0x98")],Va("0x5c"))]))),r=new Map(n[Va("0x2b")]((t=>[t,t[Va("0x50")]()])));for(let t=0;t<e[Va("0xcd")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Va("0xcd")];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[Va("0x111")]!==e.type||o.author.id!==e.author.id||o.subType!==e[Va("0x98")])continue;const x=s[Va("0xda")](e),a=r.get(e),c=r[Va("0xda")](o),l=e[Va("0x34")]&&e[Va("0x34")][Va("0xcd")],d=o[Va("0x34")]&&o.commentThread.length;if(!l&&x(c,a))return t[Va("0x53")](o,e),r[Va("0x5b")](e),!0;if(!d&&x(a,c))return t[Va("0x53")](e,o),r[Va("0x5b")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Va("0x82")])for(const n of e[Va("0x50")]())t[Va("0xf2")](n);else{const n=e[Va("0x65")]()[Va("0x61")];this._setSuggestionRange(t,this[Va("0x37")].createRange(t.getFirstRange()[Va("0xd1")],n))}e[Va("0x8c")]()}}class za{constructor(t){this[Va("0x123")]=t,this[Va("0x37")]=t[Va("0x12d")],this[Va("0xea")]=new Map,this[Va("0x1f")]=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Va("0x37")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Va("0x47"))(...n),onDiscard:(...n)=>this[Va("0xf9")](t,e,Va("0x112"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Va("0xea")].set(s,o)}[Va("0xf9")](t,e,n){const o=t+":"+e+":"+n;return this[Va("0xea")][Va("0xda")](o)||this[Va("0x1f")][Va("0xda")](t+":"+n)}[Va("0x104")](){const t=()=>{},e=t=>{t[Va("0x46")](((t,e)=>t[Va("0xd1")][Va("0xb1")](e[Va("0xd1")])?1:-1)),this[Va("0x37")][Va("0xeb")]((e=>{for(const n of t){let t;t=n[Va("0x61")][Va("0x41")]&&n[Va("0x61")][Va("0x71")]==n[Va("0xd1")][Va("0x113")]?e[Va("0x35")](n.start[Va("0x113")],"on"):e[Va("0x35")](n),this[Va("0x37")][Va("0x1d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Va("0x37")][Va("0xeb")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Va("0x2b")]((t=>(qa(t)&&(t=this[Va("0x37")][Va("0xc3")](t[Va("0x61")])),t)))[Va("0x7d")]((t=>Va("0x103")!==t[Va("0xd7")][Va("0x109")]));if(r[Va("0xcd")]<1)return;const x=Array[Va("0x59")](this[Va("0x37")].document[Va("0x3a")][Va("0x50")]())[Va("0x2b")]((t=>i.LiveRange[Va("0xcb")](t)));n[Va("0xf4")](r);for(const t of this._editor.commands[Va("0x85")]())t[Va("0x97")]();s[Va("0xce")]({forceDefaultExecution:!0}),this[Va("0x123")][Va("0x21")](o,...s);const a=x[Va("0x7d")]((t=>Va("0x103")!=t.root[Va("0x109")]));a[Va("0xcd")]>0&&n[Va("0xf4")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Va("0xcd")]&&1==e.length&&t[0][Va("0x61")][Va("0x42")](e[0][Va("0xd1")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Va("0x37")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[Va("0x1f")][Va("0xc8")](Va("0x6b"),t),this[Va("0x1f")].set("insertion:discard",e),this[Va("0x1f")][Va("0xc8")](Va("0x11d"),o),this[Va("0x1f")][Va("0xc8")](Va("0x3d"),s),this[Va("0x1f")][Va("0xc8")]("deletion:accept",e),this[Va("0x1f")][Va("0xc8")](Va("0x11"),t),this[Va("0x1f")][Va("0xc8")]("deletion:join",o),this._defaultCallbacks[Va("0xc8")](Va("0x122"),s),this._defaultCallbacks[Va("0xc8")]("formatInline:accept",n),this[Va("0x1f")][Va("0xc8")](Va("0x10a"),t),this[Va("0x1f")].set(Va("0xb2"),o),this._defaultCallbacks[Va("0xc8")](Va("0x135"),t),this._defaultCallbacks[Va("0xc8")](Va("0x130"),n),this[Va("0x1f")][Va("0xc8")](Va("0x9d"),t),this[Va("0x1f")].set(Va("0xc1"),o),this[Va("0x1f")][Va("0xc8")](Va("0x93"),t)}}function Ka(t,e,n){for(const o of e[Va("0x71")][Va("0x88")]({includeSelf:!0,parentFirst:!0})){if(o[Va("0xd7")]==o)return!1;if(!n[Va("0xba")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function qa(t){return t[Va("0x61")][Va("0x71")]==t[Va("0xd1")].nodeAfter&&t[Va("0x61")][Va("0x58")]}function Xa(t,e,n,o){const s=t=>!t[Va("0x3f")].is(Va("0x2"))&&!o[Va("0xb9")](t.item),r=t.start[Va("0x107")](s),i=t.end[Va("0x107")](s,{direction:"backward"});return!(t.start[Va("0x42")](r)&&t[Va("0x61")].isEqual(i)||(r[Va("0xb1")](i)?n[Va("0x8f")](e,{range:n[Va("0xc3")](r,i)}):n[Va("0x4")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Va("0xd1")][Va("0x113")];return e&&e.is("element")}function Qa(t,e){const n=e[Va("0x131")][Va("0xb9")](t)||e[Va("0x131")][Va("0xc9")](t);return e.createRange(e.createPositionAt(t,"before"),n?e[Va("0xbb")](t):e.createPositionAt(t,Va("0x61")))}function Za(t,e,n,o,s){if(n[Va("0x61")][Va("0x42")](o[Va("0xd1")]))return!0;if(t[Va("0x111")]!=e[Va("0x111")])return!1;if(!n[Va("0x61")].isTouching(o[Va("0xd1")]))return!1;const r=s[Va("0xc3")](n[Va("0x61")],o[Va("0xd1")])[Va("0x5f")]();for(const t of r)if(["elementStart",Va("0x68")][Va("0xf5")](t[Va("0x111")])&&s[Va("0x131")][Va("0x0")](t[Va("0x3f")]))return!1;return!0}const Ya=["getRanges","acceptSuggestion","_pendingAction","PENDING_ACTION_SUGGESTION","_removePendingAction","isEnabled","canDiscard","unbind","commentThreadController","locale","add","_acceptCommand","discardSuggestion","execute","_discardCommand","commands","destroy","model","canAccept","get","canEditAt","plugins","view","_editor","_setPendingAction","isDirty","listenTo","PendingActions","bind"];var tc,ec;tc=Ya,ec=210,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xa")]=e,this[nc("0xf")]=n,this[nc("0x1")]=o,this[nc("0x10")]=t,this._acceptCommand=t[nc("0x8")][nc("0xc")]("acceptSuggestion"),this._discardCommand=t.commands.get("discardSuggestion"),this[nc("0xf")].bind(nc("0x1b")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0xf")][nc("0x15")]("canAccept").to(this._acceptCommand,nc("0x1b"),(t=>t&&this[nc("0x10")].model[nc("0xd")](e[nc("0x16")]()))),this.view[nc("0x15")](nc("0x1c")).to(this._discardCommand,nc("0x1b"),(t=>t&&this[nc("0x10")].model.canEditAt(e[nc("0x16")]()))),this[nc("0x18")]=null,n[nc("0x12")]&&this[nc("0x11")](),this[nc("0x13")](n,nc("0x17"),(()=>this[nc("0x17")]())),this[nc("0x13")](n,nc("0x5"),(()=>this[nc("0x5")]())),this[nc("0x13")](n,"change:isDirty",(()=>{n[nc("0x12")]?this[nc("0x11")]():this._removePendingAction()}))}[nc("0x17")](){this[nc("0x4")][nc("0x6")](this[nc("0xa")].id)}[nc("0x5")](){this[nc("0x7")][nc("0x6")](this[nc("0xa")].id)}[nc("0x9")](){this.view[nc("0x0")]("isEnabled"),this[nc("0xf")][nc("0x0")](nc("0xb")),this.view[nc("0x0")](nc("0x1c")),this.stopListening(),this[nc("0x1")].destroy(),this[nc("0x18")]&&this[nc("0x1a")]()}_setPendingAction(){const t=Yo(this[nc("0x10")][nc("0x2")],nc("0x19"));this[nc("0x18")]=this[nc("0x10")].plugins[nc("0xc")](nc("0x14"))[nc("0x3")](t)}_removePendingAction(){null!==this[nc("0x18")]&&this[nc("0x10")][nc("0xe")].get(nc("0x14")).remove(this[nc("0x18")]),this._pendingAction=null}}const sc=["editor","canDiscard","focus","removeComment","updateComment","canAccept","descriptionParts","isDirty","delegate","commentsListView","set","value","_model","fire","locale","_config","submit","assign","element","isReadOnly","addComment","setData","disabledSubmit","authoredAt","bind","hasDirtyComment","length","isActive","showInput","commentThreadInputView","editorConfig","_localUser","destroy","_createCommentThreadInputView","commentThread","_createCommentViews","cancel"];var rc,ic;rc=sc,ic=405,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x1f")]=null,this.set(xc("0x1d"),!1),this[xc("0xc")](xc("0x19"),e[xc("0x19")]),this[xc("0x1a")](xc("0x19")).to(e),this[xc("0xc")](xc("0x8"),[]),this[xc("0xc")]("isDirty",!1),this[xc("0xc")]("isEnabled",!1),this.set(xc("0x7"),!1),this[xc("0xc")](xc("0x3"),!1),this._model=e,this._localUser=n,this[xc("0x11")]=o,o.disableComments?this.set(xc("0x1c"),1):this[xc("0x0")]()}focus(){this[xc("0x14")][xc("0x4")]()}destroy(){this[xc("0xb")]&&this.commentsListView.destroy(),this[xc("0x1f")]&&this.commentThreadInputView[xc("0x22")](),super.destroy()}[xc("0x0")](){const{CommentsListView:t}=this[xc("0x11")];this[xc("0xb")]=new t(this[xc("0x10")],this[xc("0xe")].commentThread,Object[xc("0x13")]({CommentView:this[xc("0x11")].CommentView},this._config)),this[xc("0xb")][xc("0xa")](xc("0x5")).to(this),this[xc("0xb")].delegate(xc("0x6")).to(this),this.commentsListView[xc("0x1a")]("isActive").to(this),this.set(xc("0x1c"),this[xc("0xb")][xc("0x1c")]+1),this[xc("0x1a")](xc("0x1c")).to(this.commentsListView,xc("0x1c"),(t=>t+1)),this.commentThreadInputView=this[xc("0x23")](),this.on(xc("0x5"),(()=>this[xc("0x4")]())),this[xc("0x1a")](xc("0x9")).to(this[xc("0xb")],xc("0x1b"),this[xc("0x1f")].commentInputView,xc("0xd"),((t,e)=>t||!!e))}[xc("0x23")](){const{CommentThreadInputView:t}=this[xc("0x11")],e=new t(this[xc("0x10")],this[xc("0x21")],this._config[xc("0x20")]),n=e.commentInputView;return e.bind(xc("0x1e")).to(this,xc("0x1d"),this[xc("0xe")][xc("0x24")],xc("0x15"),n,xc("0xd"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x12"),((t,e)=>{this[xc("0xf")](xc("0x16"),e),n[xc("0x2")][xc("0x17")]("")})),n.on(xc("0x1"),(()=>this[xc("0x4")]())),n[xc("0x1a")](xc("0x18")).to(this[xc("0xe")][xc("0x24")],xc("0x15")),e}}const cc=["ck-suggestion__main","@external","render","Accept suggestion","ck-suggestion-wrapper","ck-comment__external","commentThreadInputView","isEnabled","disableComments","ck-suggestion__info-name","value",'" title="',"canDiscard","getUserViewNotificationText","isExternal","discardButton","map","setTemplate","</p>","getTemplate","ck-annotation","author","ck-suggestion__info","<p>","EXTERNAL_SUGGESTION","title","ck-suggestion-wrapper--active","ck-suggestion--accept","_descriptionElement","ck-annotation__info-time","children","fire","commentsListView","isActive","extendTemplate","ck-suggestion--discard","_config",'<span class="ck-suggestion-type">',"content","ck-annotation__user","getExternalSuggestionNote",'"></span>',"innerText","source","ck-annotation__content-wrapper","type","canAccept","name","bind","Discard suggestion","creator","userView","description","createElement","delegate","innerHTML","attributes","_createButton","element","locale","color","span","ck-annotation__main","set","change:description","split","querySelector","push","acceptButton","editorReady","ck-suggestion","EXTERNAL_IMPORT_WORD_AVATAR","bindTemplate","execute","div",".ck-annotation__content-wrapper","formatDateTime","_model","EXTERNAL_AVATAR","ck-comment__info-time","authoredAt","descriptionParts","ck-annotation__info","time","editorDestroyed","join"];var lc,dc;lc=cc,dc=187,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x30")](uc("0x1e"),""),this[uc("0x21")](uc("0x1e")).to(this,uc("0x42"),(t=>t&&t[0]?t[0][uc("0x1e")]:"")),this[uc("0x21")](uc("0x25")).to(this,"descriptionParts",this,uc("0x12"),((t,e)=>{let n="";for(const e of t)n+=uc("0x8")+mc(e[uc("0x17")],e[uc("0x2d")])+uc("0x3");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0xd")]=null,this.acceptButton=this._createButton(Yo(e,uc("0x4a")),t.icons.check,uc("0xc"),"acceptSuggestion","sw"),this[uc("0x35")][uc("0x21")](uc("0x4e")).to(this,uc("0x1f")),this[uc("0x0")]=this[uc("0x2a")](Yo(e,uc("0x22")),t.icons.cancel,uc("0x14"),"discardSuggestion","sw"),this[uc("0x0")].bind(uc("0x4e")).to(this,uc("0x53")),this.userView=new r.UserView(e,this[uc("0x3e")][uc("0x6")],this[uc("0x54")]()),this.userView[uc("0x13")]({attributes:{class:["ck-suggestion__user",uc("0x18")]}}),this[uc("0x2")](this[uc("0x4")]())}getTemplate(){const t=this[uc("0x39")],e=[{tag:uc("0x3b"),attributes:{class:[uc("0x7"),uc("0x43")]},children:[{tag:uc("0x2e"),children:[{text:this[uc("0x24")][uc("0x20")]}],attributes:{class:[uc("0x50"),"ck-annotation__info-name"]}},{tag:uc("0x44"),attributes:{datetime:t.to(uc("0x41")),class:[uc("0x40"),uc("0xe")]},children:[{text:t.to(uc("0x41"),(t=>this[uc("0x15")][uc("0x3d")](t)))}]}]},{tag:uc("0x3b"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this[uc("0x35")],this.discardButton]},{tag:"div",attributes:{class:[uc("0x1d")]}}];this[uc("0x3e")][uc("0x55")]&&e[uc("0x34")]({tag:uc("0x3b"),attributes:{class:[uc("0x4c")]},children:[{text:this[uc("0x19")]()}]});const n={tag:uc("0x3b"),attributes:{class:[uc("0x4b"),t.if("isActive",uc("0xb")),t.to(uc("0x1e"),(t=>"ck-suggestion-"+t)),this[uc("0x15")][uc("0x4f")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x3e")].id,"data-thread-id":this[uc("0x3e")].commentThread.id,"data-author-id":this[uc("0x3e")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x37"),uc("0x5")]},children:[this[uc("0x24")],{tag:uc("0x3b"),attributes:{class:[uc("0x47"),uc("0x2f")]},children:e}]}]};return this[uc("0x11")]&&this[uc("0x4d")]&&(n[uc("0xf")][uc("0x34")](this[uc("0x11")],this[uc("0x4d")]),this.commentsListView[uc("0x27")](uc("0x36")).to(this),this.commentsListView[uc("0x27")](uc("0x45")).to(this),this.commentThreadInputView.delegate("editorReady").to(this),this[uc("0x4d")][uc("0x27")]("editorDestroyed").to(this)),n}[uc("0x49")](){super[uc("0x49")](),this._descriptionElement=this[uc("0x2b")][uc("0x33")](uc("0x3c")),this[uc("0xd")][uc("0x28")]=this[uc("0x25")],this.on(uc("0x31"),((t,e,n)=>{this[uc("0xd")][uc("0x28")]=n}))}[uc("0x2a")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x2c")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x13")]({attributes:{class:n}}),i.on(uc("0x3a"),(()=>{this[uc("0x10")](o,this[uc("0x3e")].id)})),i}[uc("0x19")](){return"importWord"===this[uc("0x3e")][uc("0x29")][uc("0x48")][uc("0x1c")]?Yo(this[uc("0x2c")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,uc("0x9"))}[uc("0x54")](){return this._model[uc("0x55")]?"importWord"===this._model[uc("0x29")][uc("0x48")][uc("0x1c")]?Yo(this[uc("0x2c")],uc("0x38"),this[uc("0x3e")][uc("0x23")].name):Yo(this[uc("0x2c")],uc("0x3f"),this._model[uc("0x23")][uc("0x20")]):null}}function mc(t,e){let n="";return n+=t[uc("0x32")]("*")[uc("0x1")](((t,e)=>e%2!=0?uc("0x16")+fc(t)+"</span>":fc(t)))[uc("0x46")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[uc("0x51")]+uc("0x52")+e[uc("0xa")]+uc("0x1a")),n}function fc(t){const e=document[uc("0x26")](uc("0x2e"));return e[uc("0x1b")]=t,e[uc("0x28")]}const hc=["_destroyController","from","_refreshActiveMarkers","comments.maxThreadTotalWeight","value","acceptButton","componentFactory","clear","arrowView","acceptSelectedSuggestions","createCommentThreadController","CommentsRepository","Track changes","map","suggestionUnloaded","_handleSuggestionControllerDelayed","plugins","_descriptionFactory","activeMarkers","registerAnnotation","suggestionChanged","Annotations","delete","CommentsUI","addSourceCollector","Accept all suggestions","filter","values","previous","commands","activeAnnotations","refreshSelectedViews","hasSuggestion","destroy","trackChanges","_suggestionToController","_viewToController","requires","length","head","isInContent","comments.maxCommentsWhenCollapsed","get","mainView","discardAllSuggestions","_updateController","separator","editor","keys","model","type","has","unbind","set","_initializeController","isOn","descriptionParts","source","discardSelectedSuggestions","size","define","createAnnotationView","isDirty","getJoined","buttonView","discardButton","view","comments.maxCommentCharsWhenCollapsed","change:previous","actionView","reduce","push","config","isEnabled","_disableComments","focus","commandName","getDescriptions","Discard all selected suggestions","_annotationViews","SuggestionThreadView","switchbutton","suggestion-","getMarkers","_createUIButton","trackChanges.disableComments","listenTo","trackChanges.SuggestionThreadView","button","locale","Accept all selected suggestions","add","remove","bind","_handleControllerBuffer","getByInnerView","_bindAnnotationToEditors","Discard all suggestions","EditorAnnotations","isMultiRange","getAllAdjacentSuggestions","editing","TrackChangesEditing","execute"];var pc,bc;pc=hc,bc=107,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x22")](){return[Wa,r.Users,Ec("0x8"),Ec("0x12"),"EditorAnnotations"]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x20")]=new Map,this[Ec("0x21")]=new Map,this[Ec("0x4c")]=new Map,this[Ec("0x5b")]=new Map;const e=this[Ec("0x2c")][Ec("0x45")];e[Ec("0x39")](Ec("0x54"),gc),e[Ec("0x39")](Ec("0x52"),!1),this[Ec("0x47")]=e.get(Ec("0x52"))}[Ec("0xc")](t,e){0===this[Ec("0x5b")][Ec("0x38")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x5b")]){const n=this[Ec("0x20")][Ec("0x30")](t);n||e?n&&e&&this[Ec("0x65")](t):this[Ec("0x33")](t)}this[Ec("0x2c")][Ec("0xd")][Ec("0x27")](Ec("0x5f"))[Ec("0x1c")](),this._refreshActiveMarkers(),this[Ec("0x5b")][Ec("0x4")]()}),10),this[Ec("0x5b")][Ec("0x32")](t,e)}init(){const t=this[Ec("0x2c")],e=t.plugins.get(Ec("0x63")),n=t[Ec("0xd")][Ec("0x27")](Ec("0x12")),o=t[Ec("0xd")][Ec("0x27")](Ec("0x5f")),s=t[Ec("0xd")][Ec("0x27")]("CommentsRepository");t.ui[Ec("0x3")].add("trackChanges",(t=>this[Ec("0x51")](t))),o[Ec("0x15")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Ec("0x61")](),s=[];for(const t of o){if(!t[Ec("0x25")])continue;if(t[Ec("0x60")]){s[Ec("0x44")](...t.getRanges());continue}const e=t.getFirstRange();if(s[Ec("0x23")]>0){const t=s[0][Ec("0x3c")](e);if(t){s[0]=t;continue}}s[Ec("0x44")](e)}t.push([n[Ec("0x3f")],s])}return t})),this[Ec("0x53")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x2a")](s.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x2a")](o[Ec("0x24")]),this[Ec("0xc")](e,!0)))})),null===e[Ec("0x19")]?this[Ec("0xc")](e,!1):this[Ec("0x2a")](e[Ec("0x24")])})),this[Ec("0x53")](e,Ec("0xb"),((t,e,n)=>{this.stopListening(e,Ec("0x41")),this[Ec("0x5b")][Ec("0x13")](e);const o=n?n[Ec("0x24")]:e,s=this[Ec("0x20")].get(o);null!==n&&this[Ec("0x2a")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x53")](e,Ec("0x11"),((t,e)=>{this[Ec("0x2a")](e)})),this[Ec("0x53")](n,"change:activeAnnotations",(()=>{this[Ec("0x67")]()})),this[Ec("0x53")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x1d")](n))return;const s=e.getSuggestion(n);this[Ec("0x20")][Ec("0x27")](s)[Ec("0x3f")][Ec("0x48")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Ec("0x2c")].plugins[Ec("0x27")](Ec("0x12")),e=this.editor[Ec("0xd")][Ec("0x27")](Ec("0x63")),n=Array[Ec("0x66")](t[Ec("0x1b")],(t=>t.innerView)).filter((t=>this[Ec("0x21")][Ec("0x30")](t))),o=[];for(const t of n){const e=this[Ec("0x21")][Ec("0x27")](t)[Ec("0x2e")].getAllAdjacentSuggestions();o[Ec("0x44")](...e[Ec("0x43")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}[Ec("0x51")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x2c")][Ec("0x1a")][Ec("0x27")](Ec("0x1f")),r=Yo(t,Ec("0x9"));n.buttonView[Ec("0x32")]({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.buttonView[Ec("0x5a")](Ec("0x34")).to(o,Ec("0x1")),n[Ec("0x3d")].on(Ec("0x64"),(()=>{o[Ec("0x64")](),this[Ec("0x2c")][Ec("0x62")][Ec("0x3f")][Ec("0x48")]()}));const i=new e.Collection,x=[{type:Ec("0x4e"),model:{withText:!0,label:r,commandName:Ec("0x1f")}},{type:Ec("0x2b")},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:"acceptAllSuggestions"}},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x57")),commandName:Ec("0x6")}},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x5e")),commandName:Ec("0x29")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x4b")),commandName:Ec("0x37")}}];for(const t of x){let e={type:Ec("0x2b")};if(t[Ec("0x2e")]){const n=new s.Model(t[Ec("0x2e")]),o=this.editor[Ec("0x1a")][Ec("0x27")](n[Ec("0x49")]);n.bind(Ec("0x34"),Ec("0x46")).to(o,Ec("0x1"),Ec("0x46")),e={type:t[Ec("0x2f")],model:n}}i[Ec("0x58")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x17")]((t=>null!=t.model))[Ec("0xa")]((t=>this[Ec("0x2c")][Ec("0x1a")].get(t.model[Ec("0x49")]))),c=n[Ec("0x3d")];return c[Ec("0x42")][Ec("0x31")](Ec("0x46")),c[Ec("0x5")][Ec("0x31")](Ec("0x46")),c[Ec("0x42")][Ec("0x5a")](Ec("0x46")).to(o,Ec("0x46")),c[Ec("0x5")][Ec("0x5a")](Ec("0x46")).toMany(a,Ec("0x46"),((...t)=>t.some((t=>t)))),n.on("execute",(t=>{this[Ec("0x2c")].execute(t[Ec("0x36")][Ec("0x49")]),this[Ec("0x2c")].editing.view.focus()})),n}_initializeController(t){const e=this[Ec("0x2c")],n=e[Ec("0x45")],o=e[Ec("0xd")][Ec("0x27")]("Annotations"),s=e.plugins[Ec("0x27")](Ec("0x8")),i=e[Ec("0xd")][Ec("0x27")]("EditorAnnotations"),x=e[Ec("0xd")].get(r.Users).me,a=n[Ec("0x27")](Ec("0x1f"))[Ec("0x4d")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xd")][Ec("0x27")](Ec("0x14"));let d,u;this[Ec("0x4c")][Ec("0x30")](t.id)?(u=this[Ec("0x4c")][Ec("0x27")](t.id),d=u[Ec("0x28")]):(d=new a(e[Ec("0x56")],t,x,{disableComments:this[Ec("0x47")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x27")](Ec("0x26")),maxThreadTotalWeight:n[Ec("0x27")](Ec("0x0")),maxCommentCharsWhenCollapsed:n.get(Ec("0x40")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x27")](Ec("0x56"))),CommentView:n[Ec("0x27")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2")].on("execute",(()=>{e[Ec("0x62")][Ec("0x3f")][Ec("0x48")]()})),d[Ec("0x3e")].on(Ec("0x64"),(()=>{e[Ec("0x62")].view[Ec("0x48")]()})),u=o[Ec("0x3a")](this[Ec("0x2c")][Ec("0x56")],d),u[Ec("0x5a")](Ec("0x3b")).to(d,Ec("0x3b")),u.bind(Ec("0x23")).to(d),u[Ec("0x5a")](Ec("0x2f")).to(d,Ec("0x2f"),(t=>Ec("0x4f")+t)),this[Ec("0x4c")][Ec("0x32")](t.id,u));const g=s[Ec("0x7")](t.commentThread,d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x17")]((t=>t[Ec("0x25")]));d[Ec("0x35")]=e[Ec("0xd")][Ec("0x27")](Ec("0x63"))._descriptionFactory[Ec("0x4a")](f),this[Ec("0x20")].set(t,m),this._viewToController.set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x61")]()[Ec("0x17")]((t=>t.isInContent));for(const t of o)n[Ec("0x44")](...t[Ec("0x50")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x62")],n)},type:()=>Ec("0x4f")+m.view[Ec("0x2f")]});s[Ec("0x5d")](d,h),o[Ec("0x58")](h),i[Ec("0x10")](h)}[Ec("0x65")](t){const e=this[Ec("0x2c")].plugins[Ec("0x27")](Ec("0x12")),n=this[Ec("0x20")][Ec("0x27")](t),o=n[Ec("0x3f")],s=e[Ec("0x5c")](o);s&&e[Ec("0x59")](s),this[Ec("0x20")].delete(t),this._viewToController[Ec("0x13")](o),n[Ec("0x1e")]()}[Ec("0x2a")](t){if(!t[Ec("0x25")]||!this[Ec("0x20")][Ec("0x30")](t))return;const e=this[Ec("0x2c")][Ec("0xd")].get(Ec("0x63")),n=this[Ec("0x20")][Ec("0x27")](t),o=t[Ec("0x61")]();n.view.descriptionParts=e[Ec("0xe")][Ec("0x4a")](o)}destroy(){for(const t of this[Ec("0x20")][Ec("0x2d")]())this[Ec("0x65")](t);for(const t of this[Ec("0x4c")][Ec("0x18")]())t[Ec("0x28")][Ec("0x1e")]();super[Ec("0x1e")]()}}var Tc,Cc,yc=["editor","TrackChanges","adapter","addSuggestion","getSuggestion","get","requires","plugins","getSuggestions","addSuggestionData"];Tc=yc,Cc=197,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x9")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x4")}set[kc("0x5")](t){this[kc("0x3")][kc("0x0")].get(Wa).adapter=t}get[kc("0x5")](){return this[kc("0x3")][kc("0x0")][kc("0x8")](Wa)[kc("0x5")]}[kc("0x6")](t){return this[kc("0x3")].plugins[kc("0x8")](Wa)[kc("0x2")](t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[kc("0x0")][kc("0x8")](Wa)[kc("0x1")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x3")][kc("0x0")][kc("0x8")](Wa)[kc("0x7")](t)}}const vc=["editorCreator","model","track-changes-data-invalid-editor-creator","name","TrackChangesDataGetter","define","end","addUser","reduce","addSuggestionData","CommentsRepository","_adapter","pluginName","push","create","acceptAllSuggestions","result","createElement","discardAllSuggestions","getRootNames","plugins","getSuggestions","get","useAnonymousUser","getUser","config","trackChangesData.editorCreator","Pagination","div","constructor","init","getRootsAttributes","getDataWithDiscardedSuggestions","trackChangesData","data","rootsAttributes","Users","TrackChangesEditing","set","execute","editor","requires","getDataWithAcceptedSuggestions","getFullData","users"];var Rc,Sc;Rc=vc,Sc=136,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1a")];class Nc extends t.Plugin{static get[Ic("0x28")](){return[Wa]}static get[Ic("0xb")](){return"TrackChangesData"}init(){const t=this[Ic("0x27")];if(t[Ic("0x18")][Ic("0x4")](Ic("0x19"),(e=>{const n=t[Ic("0x0")].document[Ic("0x12")]()[Ic("0x7")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x1c")][Ic("0xd")](n,e)})),"function"!=typeof t[Ic("0x18")].get(Ic("0x20"))[Ic("0x2c")])throw new e.CKEditorError(Ic("0x1"))}[Ic("0x29")](t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x1f")](t){return Oc(this[Ic("0x27")],!1,t)}}class wc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x3")}constructor(t){super(t),this[Ic("0xf")]=Ic("0x5")}[Ic("0x1d")](){this[Ic("0x27")][Ic("0x13")][Ic("0x15")](Ic("0x9"))[Ic("0xa")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x27")].plugins[Ic("0x15")]("TrackChangesEditing")._adapter=null}}function Mc(t){return void 0!==t[Ic("0x1e")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x13")][Ic("0xc")](Wa,wc),o[Ic("0x22")]=Mc(t)?t[Ic("0x1e")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x18")][Ic("0x15")]("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Ic("0x10")](Ic("0x1b"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Ic("0x0")].document[Ic("0x12")]()[Ic("0x7")](((e,n)=>(e[n]=t[Ic("0x21")][Ic("0x15")]({rootName:n}),e)),{}),o=t.plugins[Ic("0x15")](Ic("0x23"))[Ic("0x2b")].map((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t.plugins[Ic("0x15")](Ic("0x24"))[Ic("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x15")](Ic("0x23")),i=e[Ic("0x13")][Ic("0x15")](Ic("0x24"));for(const t of o)r[Ic("0x17")](t.id)||r[Ic("0x6")](t);r.me||r[Ic("0x16")]();for(const t of s)i[Ic("0x8")](t);e.data[Ic("0x25")](n)}(t,x),x[Ic("0x26")](Ic(e?"0xe":"0x11"));const a=Mc(x)?x[Ic("0x2a")](n):x[Ic("0x21")][Ic("0x15")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","_enabledCommands","_enableCommands","_disableUnsupportedCommands","affectsData","has","value","_isEnabledBasedOnSelection","commands","TrackChangesCommand","execute","forceDisabled"];var c,l;c=a,l=497,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x8")]=e,this[d("0x1")]=!1,this.refresh(),this[d("0x2")]=!1}refresh(){this.isEnabled=!0}[d("0x5")](){this[d("0x1")]=!this[d("0x1")],this[d("0x1")]?this._disableUnsupportedCommands():this[d("0x9")]()}[d("0xa")](){for(const t of this[d("0x7")][d("0x3")][d("0x3")]())t[d("0xb")]&&!this._enabledCommands[d("0x0")](t)&&t[d("0x6")](d("0x4"))}[d("0x9")](){for(const t of this.editor[d("0x3")].commands())t[d("0xb")]&&!this[d("0x8")][d("0x0")](t)&&t.clearForceDisabled(d("0x4"))}}const g=["get","canEditAt","refresh","getRanges","plugins","_isEnabledBasedOnSelection","execute","TrackChangesEditing","track-changes-accept-suggestion-not-found","model","_suggestions"];var m,f;m=g,f=124,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0xa")](),this[h("0x2")]=!1}refresh(){this.isEnabled=!0}[h("0x3")](t){const n=this._suggestions[h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x0")]();this.editor[h("0x6")][h("0x9")](o)&&this.editor[h("0x1")].get(h("0x4")).acceptSuggestion(n)}}const b=["TrackChangesEditing","execute","_isEnabledBasedOnSelection","canEditAt","refresh","plugins","discardSuggestion","get","getRanges","_suggestions","model"];var E,_;E=b,_=101,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x7")]=e,this[T("0x2")](),this[T("0x0")]=!1}[T("0x2")](){this.isEnabled=!0}[T("0xa")](t){const n=this[T("0x7")][T("0x5")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x6")]();this.editor[T("0x8")][T("0x1")](o)&&this.editor[T("0x3")][T("0x5")](T("0x9"))[T("0x4")](n)}}const y=["change","getRanges","isTouching","value","content"," [color ","end","type","deletion","map","isMultiRange","isArray","replace","splice","start","createPositionBefore","isCollapsed","isInContent","createRange","color","createPositionAfter","createPositionAt"];var k,A;k=y,A=300,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("0x10")==t[v("0xf")]&&v("0x10")!=e[v("0xf")]?-1:v("0x10")!=t[v("0xf")]&&v("0x10")==e[v("0xf")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x1")](i)),I(e,i,x)||(s.push(e[v("0x4")](n,r.isObject(i)?e[v("0x6")](i):e[v("0x7")](i,v("0xe")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x6")](e),s=t.createPositionBefore(n);return o.isTouching(s)}function L(t,e,n){for(;n.length;){const o=n[v("0x15")](0,100);t[v("0x8")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["getRanges","_command","values","editor","refresh","isEnabled","execute","_suggestions","_isEnabledBasedOnSelection","some","from","model","isInContent"];var M,w;M=N,w=258,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[O("0x9")]=n,this[O("0x6")](),this[O("0xa")]=!1}[O("0x6")](){const t=Array.from(this[O("0x9")].values())[O("0xb")]((t=>t[O("0x1")]));this[O("0x7")]=this[O("0x3")][O("0x7")]&&t}[O("0x8")](){const t=R(Array[O("0xc")](this[O("0x9")][O("0x4")]()));for(const e of t){const t=e[O("0x2")]();if(!this.editor[O("0x0")].canEditAt(t))return}L(this[O("0x5")][O("0x0")],this[O("0x3")],t)}}const P=["_selectedSuggestions","values","from","size","canEditAt","_command","model","editor","refresh","_suggestions","getRanges","execute","isEnabled"];var D,B;D=P,B=471,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x2")]=e,this[j("0x6")]=n,this[j("0xa")]=new Set,this[j("0x5")](),this._isEnabledBasedOnSelection=!1}[j("0x5")](){const t=this[j("0x4")][j("0x3")].document.selection,e=Array[j("0xc")](this[j("0x6")][j("0xb")]());this[j("0xa")]=function(t,e){const n=Array.from(t[v("0x9")]()),o=new Set;for(const s of e)if(s[v("0x3")])for(const e of n)for(const n of s.getMarkers()){const r=n.getRange();(e.isIntersecting(r)||t[v("0x2")]&&!s[v("0x12")]&&s.next&&r[v("0xe")][v("0xa")](e[v("0x0")]))&&o.add(s)}return o}(t,e),this[j("0x9")]=this._command[j("0x9")]&&!!this[j("0xa")][j("0x0")]}[j("0x8")](){const t=R(Array[j("0xc")](this[j("0xa")]));for(const e of t){const t=e[j("0x7")]();if(!this.editor.model[j("0x1")](t))return}L(this[j("0x4")][j("0x3")],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 z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["clear","createdAt","_onAccept","discard","getAllAdjacentSuggestions","isIntersectingWithRange","delete","addMarkerName","head","creator","toJSON","removeMarkers","onDiscard","getFirstRange","removeMarker","add","getFirstMarker","getRanges","isInContent","nodeAfter","previous","get","getItems","markers","_markerNames","end","onAccept","getContainedElement","attributes","_onAttributesChange","_onDiscard","filter","data","getMarkers","type","substr","set","getMarkerNames","nodeBefore","_saved","accept","change","length","getRange","isMultiRange","suggestion:","map","hasComments","setAttribute","commentThread","subType","@external","size","onAttributesChange","_model","author","reduce"];var $o,Jo;$o=Xo,Jo=278,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x29")],this[Qo("0x0")]=e.subType||null,this.author=e[Qo("0x5")],this[Qo("0x10")]=e[Qo("0x10")]||e[Qo("0x5")],this.isExternal=Boolean(e.attributes&&e[Qo("0x23")][Qo("0x1")]),this[Qo("0x27")]=null,this._model=t,this[Qo("0x9")]=e[Qo("0x21")],this[Qo("0x25")]=e[Qo("0x13")],this._onAttributesChange=e[Qo("0x3")],this[Qo("0x1f")]=new Set,this[Qo("0x8")]=null,this.set("authoredAt",null),this.set(Qo("0x23"),e[Qo("0x23")]||{}),this[Qo("0x2b")](Qo("0x1b"),null),this[Qo("0x2b")]("next",null),this[Qo("0x2b")](Qo("0x38"),null),this[Qo("0x2b")](Qo("0x2e"),!1),this.decorate(Qo("0x2f")),this.decorate(Qo("0xa"))}get[Qo("0xf")](){let t=this;for(;t[Qo("0x1b")];)t=t[Qo("0x1b")];return t}get hasComments(){return!!this.commentThread&&this[Qo("0x38")][Qo("0x31")]>0}get[Qo("0x33")](){return 0!=this[Qo("0x1f")][Qo("0x2")]&&6==Array.from(this._markerNames)[0].split(":")[Qo("0x31")]}get[Qo("0x19")](){return null!==this[Qo("0x17")]()}[Qo("0xe")](t){this[Qo("0x1f")][Qo("0x16")](t)}[Qo("0x2c")](){return Array.from(this[Qo("0x1f")])}getMarkers(){return this[Qo("0x2c")]()[Qo("0x35")]((t=>this[Qo("0x4")][Qo("0x1e")][Qo("0x1c")](t)))[Qo("0x26")]((t=>t))}[Qo("0x17")](){return this[Qo("0x28")]()[0]||null}[Qo("0x12")](){this[Qo("0x4")].change((t=>{for(const e of this[Qo("0x28")]())t[Qo("0x15")](e)})),this[Qo("0x1f")][Qo("0x7")]()}[Qo("0x15")](t){this[Qo("0x4")][Qo("0x30")]((e=>{e[Qo("0x15")](t)})),this[Qo("0x1f")][Qo("0xd")](t)}addRange(t){const e=Qo("0x34")+this[Qo("0x29")]+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this[Qo("0xe")](e),this[Qo("0x4")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0xc")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Qo("0x18")](){return this[Qo("0x28")]().map((t=>t.getRange()))}[Qo("0x1d")](){return this[Qo("0x18")]()[Qo("0x6")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x14")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x32")]())||null}[Qo("0x22")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start[Qo("0x1a")],o=e[Qo("0x20")][Qo("0x2d")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2f")](){this[Qo("0x9")](this.getRanges(),this.data,this[Qo("0x23")]),this[Qo("0x12")]()}[Qo("0xa")](){this[Qo("0x25")](this[Qo("0x18")](),this.data,this[Qo("0x23")]),this.removeMarkers()}[Qo("0xb")](){const t=[];let e=this[Qo("0xf")];for(;e;)t.push(e),e=e.next;return t}[Qo("0x37")](t,e){const n=eo(this[Qo("0x23")]);_o(n,t,e),Go(n,this[Qo("0x23")])||(this[Qo("0x23")]=n,this[Qo("0x24")](n))}removeAttribute(t){const e=eo(this[Qo("0x23")]);qo(e,t),Go(e,this[Qo("0x23")])||(this[Qo("0x23")]=e,this._onAttributesChange(this[Qo("0x23")]))}[Qo("0x11")](){return{id:this.id,type:this[Qo("0x0")]?this[Qo("0x29")]+":"+this[Qo("0x0")]:this[Qo("0x29")],authorId:this.creator.id,createdAt:this[Qo("0x8")],hasComments:this[Qo("0x36")],data:this[Qo("0x27")],attributes:this[Qo("0x23")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x2a")](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=["REPLACE_TEXT","_itemLabels","$1 $2","Object","Container","name","type","remove","_resolveDescriptionItems","registerElementLabel","elementStart","isEqual","indexOf","softBreak","text","getItemLabel","push","skip","_customCallbacks","pop","normal","addEmptyContainer","getFirstRange","_locale","insertion","removeEmptyContainer","_schema","add","nextSibling","match","label","addObject","ELEMENT_SPACE","_addDescriptionItems","previousSibling","replace","*Remove:* %0","item","*Insert:* %0","set","quantity","addContainer","*Merge:* %0","data","removeContainer","*Split:* %0","removeObject","isEmpty","checkChild","$textProxy","deletion","element","EmptyContainer","get","_itemLabelsCallbacks","isObject","elementEnd","length"];var es,ns;es=ts,ns=295,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("0xd")]=[],this[os("0x36")]=new Map,this[os("0x31")]=[],this._schema=t,this[os("0x12")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0x34")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0xd")]){const n=t(o);if(n){"type"in n&&e[os("0xb")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x11")]().end[os("0x6")](s[os("0x11")]().start)){const t=e[e[os("0x34")]-1],n=os("0x13")==o[os("0x1")]?"add":os("0x2");t&&"text"==t[os("0x1")]&&(t[n]+="\n")}}}return this[os("0x3")](e)}registerDescriptionCallback(t){this[os("0xd")][os("0xb")](t)}[os("0x4")](t,n,o=e.priorities[os("0xf")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x31")],{matchingCallback:t,label:n,priority:o}):this[os("0x36")][os("0x22")](t,n)}getItemLabel(t,e=1){let n;for(const e of this[os("0x31")])if(e.matchingCallback(t)){n=e[os("0x19")];break}return n||(n=this._itemLabels[os("0x30")](t[os("0x0")])),n?n(e):1!==e?e+" "+t[os("0x0")]+"s":""+t.name}[os("0x1c")](t,e){const n=e[os("0x11")]().getWalker(),o=os("0x13")==e[os("0x1")]?"add":os("0x2");for(const e of n){const s=e[os("0x20")],r=t[t[os("0x34")]-1];if(s.is(os("0x2c")))r&&r[os("0x1")][os("0x7")](os("0x39"))>-1&&t[os("0xe")](),r&&os("0x9")==r[os("0x1")]?r[o]+=s.data:t[os("0xb")]({type:"text",add:"add"==o?s[os("0x26")]:"",remove:"remove"==o?s[os("0x26")]:""});else if(this._schema[os("0x32")](s)){const i=s;if(r&&r[os("0x1")].indexOf(os("0x39"))>-1&&t[os("0xe")](),os("0x33")==e.type)continue;r&&r[os("0x1")]==o+os("0x38")&&r[os("0x2e")].name==i[os("0x0")]?r.quantity++:t[os("0xb")]({type:o+os("0x38"),element:i,quantity:1}),n[os("0xc")]((t=>!("elementEnd"==t[os("0x1")]&&t.item==s)))}else if(this[os("0x15")][os("0x2b")](s,"$text")||s.is("element",os("0x8"))){const n=s;if(os("0x16")==o&&os("0x5")==e[os("0x1")]||"remove"==o&&os("0x33")==e[os("0x1")])continue;if(r&&-1==r[os("0x1")][os("0x7")](os("0x39"))){os("0x9")==r[os("0x1")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x17")]&&!this[os("0x15")][os("0x32")](n[os("0x17")])?n[os("0x17")]:null:n[os("0x1d")]&&!this[os("0x15")][os("0x32")](n[os("0x1d")])?n[os("0x1d")]:null,n[os("0x2a")]||i&&i[os("0x2a")]){const e=i&&i[os("0x2a")]?i:n;r&&r[os("0x1")]==o+os("0x2f")&&r[os("0x2e")][os("0x0")]==e[os("0x0")]?r[os("0x23")]++:t[os("0xb")]({type:o+os("0x2f"),element:e,quantity:1})}else t[os("0xb")]({type:o+os("0x39"),element:n})}}}[os("0x3")](t){const e=this[os("0x12")],n=[];for(const o of t){switch(o[os("0x1")]){case"text":if(o[os("0x16")]=o[os("0x16")][os("0x1e")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x1e")](/\u000A/g,""),o[os("0x2")]=o[os("0x2")][os("0x1e")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x1e")](/\u000A/g,""),""!=o[os("0x16")]&&""!=o[os("0x2")]){n.push({type:os("0x1e"),content:Yo(e,os("0x35"),['"'+o[os("0x2")]+'"','"'+o[os("0x16")]+'"'])});continue}if(null!=o[os("0x16")][os("0x18")](/^ +$/)){n[os("0xb")]({type:os("0x13"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o[os("0x16")][os("0x34")]))});continue}if(null!=o[os("0x2")][os("0x18")](/^ +$/)){n[os("0xb")]({type:os("0x2d"),content:Yo(e,os("0x1f"),Yo(e,os("0x1b"),o[os("0x2")][os("0x34")]))});continue}if(""!=o.add){n[os("0xb")]({type:"insertion",content:Yo(e,"*Insert:* %0",'"'+o[os("0x16")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x1f"),'"'+o[os("0x2")]+'"')});continue;case os("0x10"):case os("0x1a"):n[os("0xb")]({type:os("0x13"),content:Yo(e,os("0x21"),this[os("0xa")](o.element,o.quantity))});continue;case os("0x14"):case os("0x29"):n[os("0xb")]({type:os("0x2d"),content:Yo(e,"*Remove:* %0",this.getItemLabel(o[os("0x2e")],o.quantity))});continue;case os("0x24"):n.push({type:os("0x13"),content:Yo(e,os("0x28"),this.getItemLabel(o[os("0x2e")],o.quantity))});continue;case os("0x27"):n[os("0xb")]({type:os("0x2d"),content:Yo(e,os("0x25"),this[os("0xa")](o[os("0x2e")],o[os("0x23")]))});continue}n.push(o)}return n}}const rs=["contentLanguageDirection","selection","registerDescriptionCallback","FORMAT_ALIGN_TO_CENTER","checkAttribute","_descriptionFactory","afterInit","getAttribute","*Format:* %0","FORMAT_ALIGN_TO_LEFT","markBlockFormat","locale","commandParams","model","AlignmentEditing","alignment","center","document","ltr","has","plugins","filter","FORMAT_ALIGN_TO_RIGHT","right","editor","get","value","left","TrackChangesEditing"];var is,xs;is=rs,xs=475,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x18")](){const t=this[as("0xd")],e=t[as("0x0")];if(!t[as("0x9")][as("0x8")](as("0x3")))return;const n=t[as("0x9")][as("0xe")](as("0x11"));n.enableCommand(as("0x4"),((e,o={})=>{let s=o.value;o[as("0xf")]||(s=as("0x7")===t[as("0x0")][as("0x12")]?as("0x10"):"right");const r=Array.from(this[as("0xd")][as("0x2")][as("0x6")][as("0x13")].getSelectedBlocks())[as("0xa")]((t=>function(t,e,n){const o=t[as("0x19")](as("0x4"))||null;return e[as("0x16")](t,as("0x4"))&&n!=o}(t,this[as("0xd")].model.schema,s)));t.model.change((()=>{for(const t of r)n[as("0x1c")](t,{commandName:as("0x4"),commandParams:[{value:s}]})}))})),n[as("0x17")][as("0x14")]((t=>{const{data:n}=t;if(n&&as("0x4")==n.commandName){const t=n[as("0x1")][0].value;return{type:"format",content:Yo(e,as("0x1a"),function(t){switch(t){case as("0x10"):return Yo(e,as("0x1b"));case as("0xc"):return Yo(e,as("0xb"));case as("0x5"):return Yo(e,as("0x15"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["listItem","test","nextSibling","addHighlight","elementEnd","model","hasAttribute","element","isAtEnd","insert","addClass","writer","ck-suggestion-marker--active","isBlock","listIndent","schema","getItems","ck-suggestion-marker-","isLimit","markerRange","span","toViewElement","get","push","getAttribute","start","getWalker","toViewPosition","mapper","previousPosition","plugins","markerName","type","parent","name","getCustomProperty","bindElementToMarker","consumable","createRangeOn","activeMarkers"];var ds,us;ds=ls,us=274,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x16")]())s[gs("0xc")](t)&&o.push(n[gs("0x4")](s));return o}function fs(t){const e=[];if(t.is("element",gs("0x6"))){let n=t[gs("0x8")];for(;n&&n.is(gs("0xd"),gs("0x6"))&&n[gs("0x1e")](gs("0x14"))>0;)e[gs("0x1d")](n),n=n[gs("0x8")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x24")][gs("0x1c")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x3")][gs("0x7")](r[gs("0x19")],s[gs("0x0")]))return;const x=r[gs("0x19")][gs("0x20")](),a=r[gs("0x19")][gs("0x1f")],c=t[gs("0xb")][gs("0x15")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c.isContent(e);const n=i.mapper[gs("0x1b")](e);if(n&&n[gs("0x1")](gs("0x9")))return;gs("0xa")==t[gs("0x26")]&&c[gs("0x13")](e)&&!c[gs("0x18")](e)&&(e[gs("0x8")]||a[gs("0xe")]?l&&l[gs("0x27")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x23")])}function m(t){const s=i[gs("0x11")].createUIElement(gs("0x1a"),{class:gs("0x17")+e}),x=i[gs("0x22")][gs("0x21")](t);n&&o[gs("0x5")].includes(r[gs("0x25")])&&i[gs("0x11")][gs("0x10")](gs("0x12"),s),i[gs("0x11")][gs("0xf")](x,s),i[gs("0x22")][gs("0x2")](s,r.markerName)}u||g||!d||m(d)}}const ps=["TrackChangesEditing","registerDescriptionCallback","change","has","format","StrikethroughEditing","superscript","subscript","FORMAT_STRIKETHROUGH","get","selection","FORMAT_CODE","plugins","FORMAT_UNDERLINE","*Format:* %0","ItalicEditing","CodeEditing","model","getRanges","FORMAT_SUPERSCRIPT","from","commandParams","italic","afterInit","isCollapsed","FORMAT_BOLD","code","bold","enableCommand","forceValue","toLowerCase","strikethrough","slice","editor","UnderlineEditing","SuperscriptEditing","SubscriptEditing","commands","_descriptionFactory"];var bs,Es;bs=ps,Es=423,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=["BoldEditing",_s("0x15"),_s("0x1"),_s("0x16"),_s("0xb"),_s("0x3"),_s("0x2")];class Cs extends t.Plugin{[_s("0x1d")](){const t=this[_s("0x0")],e=t[_s("0x17")],n=t[_s("0x12")].get(_s("0x6")),o=t.locale;for(const o of Ts){if(!t[_s("0x12")][_s("0x9")](o))continue;const s=o[_s("0x26")](0,-7)[_s("0x24")](),r=t[_s("0x4")][_s("0xf")](s);n[_s("0x22")](s,((t,o={})=>{const i=e.document[_s("0x10")];if(i[_s("0x1e")])return void t(o);const x=void 0!==o[_s("0x23")]?o[_s("0x23")]:!r.value;e[_s("0x8")]((()=>{const t=Array[_s("0x1a")](i[_s("0x18")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x5")][_s("0x7")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1b")][0][_s("0x23")]?{type:_s("0xa"),content:Yo(o,_s("0x14"),e)}:{type:_s("0xa"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x21"),Yo(o,_s("0x1f"))),s(_s("0x1c"),Yo(o,"FORMAT_ITALIC")),s("underline",Yo(o,_s("0x13"))),s(_s("0x20"),Yo(o,_s("0x11"))),s(_s("0x25"),Yo(o,_s("0xe"))),s(_s("0xd"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0xc"),Yo(o,_s("0x19")))}}const ys=["from","ELEMENT_BLOCK_QUOTE","forceValue","afterInit","format","locale","filter","_descriptionFactory","editor","enableCommand","plugins","parent","commandName","BlockQuoteEditing","model","checkChild","change","*Remove format:* %0","markBlockFormat","blockQuote","document","value","name","schema","commands","get","$root","commandParams"];var ks,As;ks=ys,As=221,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x6")](){const t=this[vs("0xb")],e=t[vs("0x8")];if(!t[vs("0xd")].has(vs("0x10")))return;const n=t[vs("0xd")][vs("0x0")]("TrackChangesEditing"),o=this[vs("0xb")][vs("0x1b")][vs("0x0")](vs("0x16"));n[vs("0xc")]("blockQuote",((e,s={})=>{const r=this[vs("0xb")].model[vs("0x17")].selection,i=s&&void 0!==s[vs("0x5")]?s[vs("0x5")]:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0x3")](r.getSelectedBlocks())[vs("0x9")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t[vs("0xe")],vs("0x16")),o=e[vs("0x12")]([vs("0x1"),vs("0x16")],t);return n&&o}(t,this[vs("0xb")][vs("0x11")][vs("0x1a")])));x=S(e,t[vs("0x11")])}else{const e=Array[vs("0x3")](r.getSelectedBlocks())[vs("0x9")]((t=>Ss(t)));x=S(e,t.model)}t.model[vs("0x13")]((()=>{for(const t of x)n[vs("0x15")](t,{commandName:vs("0x16"),commandParams:[{forceValue:i}]})}))})),n[vs("0xa")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x16")==n[vs("0xf")]){const t=Yo(e,vs("0x4"));return n[vs("0x2")][0][vs("0x5")]?{type:vs("0x7"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x7"),content:Yo(e,vs("0x14"),t)}}}))}}function Ss(t){return vs("0x16")==t.parent[vs("0x19")]}const Is=["get","ckbox","editor","afterInit","commands"];var Ls,Ns;Ls=Is,Ns=430,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x2")];t[Ms("0x4")][Ms("0x0")](Ms("0x1"))&&t.plugins[Ms("0x0")]("TrackChangesEditing").enableCommand(Ms("0x1"))}}const Os=["*Format:* %0","from","getSelectedBlocks","config","isLimit","enableCommand","*Remove format:* %0","get","schema","find","value","commands","ELEMENT_CODE_BLOCK","language","CodeBlock","_descriptionFactory","filter","formatBlock","checkChild","commandParams","forceValue","codeBlock","document","blockName","registerElementLabel","editor","plugins","afterInit","commandName","model","outdentCodeBlock","locale","TrackChangesEditing","languages","registerDescriptionCallback","has","format","indentCodeBlock","markBlockFormat"];var Fs,Ps;Fs=Os,Ps=179,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x4")](){const t=this[Ds("0x2")];if(!t[Ds("0x3")][Ds("0xc")](Ds("0x1e")))return;const e=t[Ds("0x3")].get(Ds("0x9")),n=t[Ds("0x8")],o=t[Ds("0x13")][Ds("0x17")](Ds("0x25"))[Ds("0xa")],s=t[Ds("0x1b")][Ds("0x17")](Ds("0x25"));e[Ds("0x15")](Ds("0xe")),e[Ds("0x15")](Ds("0x7")),e[Ds("0x15")](Ds("0x25"),((n,r={})=>{const i=t[Ds("0x6")],x=t[Ds("0x6")][Ds("0x26")].selection,a=r&&void 0!==r.forceValue?r[Ds("0x24")]:!s[Ds("0x1a")];let c;r.language||(r[Ds("0x1d")]=o[0][Ds("0x1d")]),c=a?Array[Ds("0x11")](x.getSelectedBlocks())[Ds("0x20")]((t=>{return js(t)||(e=t,n=i[Ds("0x18")],!e.is("rootElement")&&!n[Ds("0x14")](e)&&n[Ds("0x22")](e.parent,Ds("0x25")));var e,n})):Array[Ds("0x11")](x[Ds("0x12")]())[Ds("0x20")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0xf")](t,{commandName:Ds("0x25"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x0")})}))})),e._descriptionFactory[Ds("0x1")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x1f")][Ds("0xb")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x21")==s&&r&&"codeBlock"==r[Ds("0x5")]){const t=r[Ds("0x23")][0][Ds("0x1d")],s=e(o[Ds("0x19")]((e=>e[Ds("0x1d")]===t)).label);return r[Ds("0x23")][0][Ds("0x24")]?{type:"format",content:Yo(n,Ds("0x10"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0xd"),content:Yo(n,Ds("0x16"),Yo(n,Ds("0x1c"),1))}}}))}}function js(t){return Ds("0x25")==t.name}const Us=["enableCommand","TrackChangesEditing","addCommentThread","CommentsEditing","has","afterInit","editor","plugins"];var Gs,Hs;Gs=Us,Hs=269,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x0")](){const t=this[zs("0x1")];t[zs("0x2")][zs("0x7")](zs("0x6"))&&t[zs("0x2")].get(zs("0x4"))[zs("0x3")](zs("0x5"))}}var Vs=n(181);const Ks=["TrackChangesEditing","getFirstRange","remove","mapper","unbindElementFromMarkerName","addMarker:suggestion:deletion","document","model","markerNameToElements","init","editing","fromRange","end","createRange","unlock","selection","enableCommand","batch","showSuggestionHighlights","delete","modifySelection","forward","downcastDispatcher","merge","buffer","writer","data","removeMarker:suggestion:deletion","setSelection","$graveyard","unit","enqueueChange","high","markerName","plugins","root","deleteForward","requires","lock","start","commands","createSelection"];var qs,Xs;qs=Ks,Xs=419,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x26")](){return[Vs.Delete]}[$s("0xa")](){const t=this.editor,e=t[$s("0x23")].get($s("0x1"));e.enableCommand($s("0x14"));const n=t[$s("0x29")].get($s("0x25"));e[$s("0x11")]($s("0x25"),((e,o={})=>{const s=t.model[$s("0x0")](t[$s("0x8")][$s("0x7")][$s("0x10")]);s.isCollapsed&&t[$s("0x8")][$s("0x15")](s,{direction:$s("0x16"),unit:o[$s("0x1f")]});const r=s[$s("0x2")](),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x1e")==x[$s("0x24")].rootName?t.model.createRange(r.start):t[$s("0x8")][$s("0xe")](x[$s("0x28")],x[$s("0xd")]),x.detach(),t[$s("0x8")][$s("0x20")](n.buffer[$s("0x12")],(t=>{n[$s("0x19")][$s("0x27")](),t[$s("0x1d")](t[$s("0xe")](a[$s("0xd")])),n.buffer[$s("0xf")]()}))})),t[$s("0xb")].downcastDispatcher.on($s("0x6"),hs(t,"merge"),{priority:$s("0x21")}),t[$s("0x1b")][$s("0x17")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[$s("0x13")]&&hs(t,$s("0x18"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:$s("0x21")}),t.editing[$s("0x17")].on($s("0x1c"),((t,e,n)=>{const o=n[$s("0x4")][$s("0x9")](e[$s("0x22")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x4")][$s("0x5")](t,e[$s("0x22")]),n[$s("0x1a")][$s("0x3")](t))}),{priority:$s("0x21")})}}const Qs=["*Change to:* %0","after","mergeListItemForward","ELEMENT_LIST_ITEM","splitListItemBefore","value","model","execute","parent","listIndent","map","registerCustomCallback","_descriptionFactory","has","format","deletion","slice","commandParams","expandListBlocksToCompleteList","*Format:* remove from %0","createRange","createPositionAt","nextSibling","next","editor","hasAttribute","documentList","getFirstRange","numberedList","*Indent:* %0","toUpperCase","*Merge:* %0","*Outdent:* %0","get","ELEMENT_BULLETED_LIST","schema","afterInit","selection","mergeListItemBackward","splitListItemAfter","DocumentListEditing","plugins","markMultiRangeBlockFormat","listType","add","getSelectedBlocks","containsItem","length","_LIST","from","before","listItemId","start","setSelection","indentList","isFirstBlockOfListItem","ELEMENT_","end","commands","change","locale","registerElementLabel","getAttribute","refresh","multipleBlocks","bulletedList","enableCommand","*Format:* insert into %0","forceValue","push","accept","formatBlock","document","markBlockFormat","nodeAfter","detach","commandName","DocumentListUtils","isObject"];var Zs,Ys;Zs=Qs,Ys=403,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x10")];if(!t[tr("0x21")][tr("0x5")](tr("0x20")))return;const e=t[tr("0x34")],n=t[tr("0x21")][tr("0x19")]("TrackChangesEditing"),o=t[tr("0x21")].get(tr("0x45"));function s(e){return()=>{const s=t.commands[tr("0x19")](e);let r=Array[tr("0x29")](t[tr("0x4d")][tr("0x40")][tr("0x1d")].getSelectedBlocks());if(a(e)){r=o[tr("0xa")](r);const t=[];for(const e of r)o[tr("0x2f")](e)&&t[tr("0x3d")](e);r=t}t.model[tr("0x33")]((()=>{n[tr("0x22")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x4c")]}],formatGroupId:tr("0x23")},[],tr("0x12"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x11")](tr("0x2b"))));return n>-1&&(e=e[tr("0x8")](0,n)),e}(t.model[tr("0x40")].selection[tr("0x25")]()),s=o[o[tr("0x27")]-1],r=t.model[tr("0x1b")][tr("0x46")](s)?tr("0x48"):tr("0x31"),i=t.model[tr("0xc")](t[tr("0x4d")][tr("0xd")](o[0],tr("0x2a")),t[tr("0x4d")][tr("0xd")](s,r));t.model[tr("0x33")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x23")},function(t){const e=new Set;for(const n of t){let t=n[tr("0xe")];for(;t&&t[tr("0x36")](tr("0x1"))>n[tr("0x36")](tr("0x1"));)e[tr("0x24")](t),t=t[tr("0xe")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x40")][tr("0x1d")][tr("0x25")]()[tr("0xf")]().value,s=t.model[tr("0xd")](o,tr("0x2a")),r=t[tr("0x4d")][tr("0xd")](o,0),i=t[tr("0x4d")].createRange(s,r);t[tr("0x4d")][tr("0x33")]((()=>{n[tr("0x41")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x23")})}))}}function a(e){const n=t[tr("0x32")].get("bulletedList").value,o=t.commands[tr("0x19")](tr("0x14"))[tr("0x4c")];return tr("0x14")===e?n:o}n[tr("0x3a")](tr("0x14"),s(tr("0x14"))),n.enableCommand(tr("0x39"),s(tr("0x39"))),n[tr("0x3a")](tr("0x2e"),r(tr("0x2e"))),n[tr("0x3a")]("outdentList",r("outdentList")),n[tr("0x3a")](tr("0x1f"),x(tr("0x1f"))),n[tr("0x3a")](tr("0x4b"),x(tr("0x4b"))),n[tr("0x4")][tr("0x35")]((function(e){const n=!t[tr("0x4d")][tr("0x1b")][tr("0x46")](e),o=e.previousSibling,s=e[tr("0xe")],r=e[tr("0x36")](tr("0x2b")),i=!o||o[tr("0x36")](tr("0x2b"))!==r,x=!s||s[tr("0x36")](tr("0x2b"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x4a"),t))),n._descriptionFactory.registerDescriptionCallback((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x44")]){case tr("0x39"):r=n[tr("0x9")][0][tr("0x3c")],i=a(n.commandName),o=r?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=tr("0x47")),s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x1a")))};break;case tr("0x14"):r=n[tr("0x9")][0][tr("0x3c")],i=a(n[tr("0x44")]),o=tr(r?"0x3b":"0xb"),i&&(o=tr("0x47")),s={type:tr("0x6"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x2e"):o=tr("0x15"),s={type:tr("0x6"),content:Yo(e,o,Yo(e,tr("0x4a")))};break;case"outdentList":o=function(t){const e=t[tr("0x13")]();let n=e[tr("0x2c")][tr("0x42")];for(;n&&e[tr("0x26")](n);){if(n[tr("0x36")](tr("0x1"))>0)return!1;n=n[tr("0xe")]}return!0}(t)?Yo(e,tr("0xb"),Yo(e,function(t){const e=t[tr("0x13")]()[tr("0x2c")].nodeAfter;return tr("0x30")+e[tr("0x36")]("listType")[tr("0x16")]()+tr("0x28")}(t))):Yo(e,tr("0x18"),Yo(e,tr("0x4a"))),s={type:tr("0x6"),content:o};break;case tr("0x1e"):case tr("0x49"):!1===n[tr("0x38")]&&(o=tr("0x17"),s={type:tr("0x7"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n._suggestionFactory[tr("0x3")](tr("0x3f"),tr("0x12"),tr("0x3e"),(function(e,n){const o=[];for(let n of e)n[tr("0x2c")][tr("0x42")]===n[tr("0x31")][tr("0x0")]&&(n=t.model[tr("0xc")](t[tr("0x4d")][tr("0xd")](n[tr("0x2c")][tr("0x42")],0))),o[tr("0x3d")](n);t.model[tr("0x33")]((e=>{const s=t[tr("0x4d")][tr("0x40")][tr("0x1d")],r=Array[tr("0x29")](s.getRanges())[tr("0x2")]((t=>i.LiveRange.fromRange(t)));e[tr("0x2d")](o),t.commands[tr("0x19")](n[tr("0x44")])[tr("0x37")](),n[tr("0x9")][tr("0x3d")]({forceDefaultExecution:!0}),t[tr("0x4e")](n.commandName,...n[tr("0x9")]),e[tr("0x2d")](r);for(const t of r)t[tr("0x43")]()}))}))}}var nr=n(331);const or=["commands","enter","detach","enableCommand","addMarker:suggestion:insertion","createRange","markInsertion","getFirstPosition","downcastDispatcher","change","createPositionAt","init","bind","fire","editing","mapper","writer","nextSibling","enterBlock","editor","remove","markerName","requires","unbindElementFromMarkerName","split","options","ck-suggestion-marker-split","TrackChangesEditing","selection","getFirstRange","document","model","high","fromRange","get"];var sr,rr;sr=or,rr=390,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("0x11")](){return[nr.Enter]}[ir("0x6")](){const t=this[ir("0xe")],e=t.plugins[ir("0x1d")](ir("0x16")),n=t[ir("0x1e")][ir("0x1d")](ir("0x1f"));e[ir("0x21")]("enter",(()=>{t.model[ir("0x4")]((o=>{const s=t[ir("0x1a")][ir("0x19")][ir("0x17")],r=s[ir("0x2")](),x=i.LiveRange[ir("0x1c")](s[ir("0x18")]());if(n[ir("0xd")](o)){const n=t.model[ir("0x5")](r.parent[ir("0xc")],0),s=o[ir("0x0")](r,n);e[ir("0x1")](s)}else o.setSelection(o.createRange(x.end));x[ir("0x20")](),n[ir("0x8")]("afterExecute",{writer:o})}))})),t[ir("0x9")][ir("0x3")].on("addMarker:suggestion:insertion",hs(t,ir("0x13")),{priority:ir("0x1b")}),t.editing[ir("0x3")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[ir("0xa")].markerNameToElements(e[ir("0x10")]);if(o)for(const t of o)t.hasClass(ir("0x15"))&&(n[ir("0xa")][ir("0x12")](t,e.markerName),n[ir("0xb")][ir("0xf")](t))}),{priority:"high"}),t.data[ir("0x3")].on(ir("0x22"),((e,n,o)=>{o[ir("0x14")].showSuggestionHighlights&&hs(t,ir("0x13"),{showActiveMarker:!1})[ir("0x7")](this)(e,n,o)}),{priority:ir("0x1b")})}}const ar=["findByTextCallback","find","FindAndReplaceEditing","enableCommand","editor","plugins","TrackChangesEditing","getMarkersGroup","_isInDeletionRange","findNext","getIntersection","createRange","bind","afterInit","filter","suggestion:deletion","has","getRange","string","replaceAll","model"];var cr,lr;cr=ar,lr=347,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x2")](){if(!this[dr("0xe")][dr("0xf")][dr("0x5")](dr("0xc")))return;const t=this[dr("0xe")].plugins.get(dr("0x10"));t[dr("0xd")](dr("0xb"),this.handleFindCommand[dr("0x1")](this)),t.enableCommand(dr("0x13")),t[dr("0xd")]("findPrevious"),t[dr("0xd")]("replace"),t[dr("0xd")](dr("0x8"))}handleFindCommand(t,e,n={}){const o=this[dr("0xe")].plugins.get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x7")==typeof e?o[dr("0xa")](e,n):e)(t)[dr("0x3")]((e=>!1===this[dr("0x12")](e,t.item)))),n)}_isInDeletionRange(t,e){const n=this[dr("0xe")][dr("0x9")][dr("0x0")](this[dr("0xe")][dr("0x9")].createPositionAt(e,t.start),this[dr("0xe")][dr("0x9")].createPositionAt(e,t.end));for(const t of this.editor[dr("0x9")].markers[dr("0x11")](dr("0x4")))if(null!==n[dr("0x14")](t[dr("0x6")]()))return!0;return!1}}const gr=["has","editor","get","commandName","title","fontSize.options","from","_enableCommand","fontBackgroundColor.colors","selection","format","trim","TrackChangesEditing","fontColor","normalizeSizeOptions","find","document","FontSize","label","fontBackgroundColor","markInlineFormat","commandParams","fontSize","*Reset font family*","FontBackgroundColorEditing","*Reset font background color*","FontColorEditing","*Set font color:* %0","config","registerDescriptionCallback","change","_descriptionFactory","toLowerCase","fontFamily","*Reset font color*","*Set font background color:* %0","isCollapsed","value","model","*Set font family:* %0","plugins","enableCommand","fontColor.colors"];var mr,fr;mr=gr,fr=346,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0x14")},{pluginName:"FontFamilyEditing",commandName:hr("0x1f")},{pluginName:hr("0x18"),commandName:hr("0xb")},{pluginName:hr("0x16"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{afterInit(){const t=this[hr("0x2a")].locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x26")][hr("0x29")](t)&&this[hr("0x5")](e);this[hr("0x2a")].plugins.get(hr("0xa"))[hr("0x1d")][hr("0x1b")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x14")==o[hr("0x1")]){const e=o[hr("0x13")][0][hr("0x23")];if(e){const o=n(this[hr("0x2a")][hr("0x26")][hr("0x0")](hr("0xf"))[hr("0xc")](this[hr("0x2a")][hr("0x1a")][hr("0x0")](hr("0x3")))[hr("0xd")]((t=>t.model==e))[hr("0x2")])[hr("0x1e")]();return{type:hr("0x8"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x8"),content:Yo(t,"*Reset font size*")}}if(hr("0x1f")==o[hr("0x1")]){const e=o[hr("0x13")][0][hr("0x23")];return e?{type:hr("0x8"),content:Yo(t,hr("0x25"),e)}:{type:hr("0x8"),content:Yo(t,hr("0x15"))}}if(hr("0xb")==o[hr("0x1")]){const e=o[hr("0x13")][0][hr("0x23")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2a")][hr("0x1a")][hr("0x0")](hr("0x28")))[hr("0xd")]((t=>t[hr("0x24")]==e));let r=e,i="";return o&&(r=o[hr("0x10")],i=n(r)[hr("0x1e")]()),{type:hr("0x8"),content:Yo(t,hr("0x19"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x20"))}}if(hr("0x11")==o[hr("0x1")]){const e=o[hr("0x13")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x2a")][hr("0x1a")].get(hr("0x6"))).find((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x1e")]()),{type:"format",content:Yo(t,hr("0x21"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x8"),content:Yo(t,hr("0x17"))}}}}))}[hr("0x5")](t){const e=this[hr("0x2a")];e.plugins[hr("0x0")](hr("0xa"))[hr("0x27")](t,((n,o={})=>{const s=e.model[hr("0xe")][hr("0x7")],r=o[hr("0x23")];s[hr("0x22")]?n(o):e.model[hr("0x1c")]((()=>{const n=Array[hr("0x4")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x24")]);for(const o of n)e.plugins[hr("0x0")](hr("0xa"))[hr("0x12")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["charAt","modifySelection","backward","registerDescriptionCallback","copyFormat","join","config","getRanges","boolean","change","*Remove all formatting*","isFormatting","entries","push","*Set format to:* %0","getItems","TrackChangesEditing","pasteFormat","fontColor.colors","split","slice","_descriptionFactory","editor","forward","format","commandParams","title","schema","locale","selection","fontSize","commandName","getSelectedBlocks","find","enableCommand","isBlock","toLowerCase","getFirstPosition","word","fontSize.options","get","label","normalizeSizeOptions","isCollapsed","length","model","fontBackgroundColor","commands","markInlineFormat","plugins"];var _r,Tr;_r=Er,Tr=372,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0x0")],n=t[Cr("0x17")],o=n.document[Cr("0x7")],s=t[Cr("0x1b")].get("TrackChangesEditing"),r=t[Cr("0x6")],i=t[Cr("0x19")][Cr("0x12")](Cr("0x20")),x=t[Cr("0x19")][Cr("0x12")](Cr("0x2d"));i&&x&&(s[Cr("0xc")](Cr("0x2d"),((t,r={})=>{const i=r;n[Cr("0x25")]((()=>{const t=Array.from(o.getRanges()),r=o[Cr("0x15")]?[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.getAttributeProperties(n);t&&t[Cr("0x27")]&&(yield n)}}(t,n));for(const e of t[Cr("0x23")]())for(const t of e[Cr("0x2b")]())!n[Cr("0xd")](t)&&o(t)&&(yield t);for(const e of t[Cr("0xa")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x5")]))||0!==Object.keys(i).length)for(const t of r)s[Cr("0x1a")](t,{commandName:Cr("0x2d"),commandParams:[i]})}))})),s[Cr("0x31")][Cr("0x1f")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x9")]){const e=[],o=n[Cr("0x3")][0];for(const[n,s]of Object[Cr("0x28")](o))e[Cr("0x29")](Ar(t,n,s));return e[Cr("0x16")]?{type:Cr("0x2"),content:Yo(r,Cr("0x2a"),e[Cr("0x21")](", "))}:{type:"format",content:Yo(r,Cr("0x26"))}}})),t[Cr("0x1b")][Cr("0x12")](Cr("0x2c"))[Cr("0xc")]("copyFormat"))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1d")](n,{unit:Cr("0x10"),direction:Cr("0x1e")});const o=n[Cr("0xf")]();t.modifySelection(n,{unit:Cr("0x10"),direction:Cr("0x1")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x6")].t,r=e[Cr("0x2f")](/(?=[A-Z])/)[Cr("0x21")](" "),i=o(r[Cr("0x1c")](0).toUpperCase()+r[Cr("0x30")](1))[Cr("0xe")]();if(Cr("0x24")==typeof n)return i;if("fontColor"===e||Cr("0x18")===e){const e=(0,s.normalizeColorOptions)(t.config.get(Cr("0x2e")))[Cr("0xb")]((t=>t[Cr("0x17")]==n));return i+" ("+(e?o(e[Cr("0x13")])[Cr("0xe")]():n)+")"}if(Cr("0x8")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1b")][Cr("0x12")]("FontSize")[Cr("0x14")](t[Cr("0x22")].get(Cr("0x11")))[Cr("0xb")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x4")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["formatBlock","match","model","TrackChangesEditing","*Change to:* %0","enableCommand","editor","get","schema","_descriptionFactory","ELEMENT_HEADING_CUSTOM","ELEMENT_HEADING","commandName","config","title","afterInit","format","name","heading.options","HeadingEditing","has","plugins","registerDescriptionCallback","isObject","find","from","heading","commandParams","change","blockName","document","value"];var Rr,Sr;Rr=vr,Sr=105,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x6")](){const t=this[Ir("0x1d")],e=t.locale,n=t[Ir("0x4")][Ir("0x1e")](Ir("0x9"));if(!t[Ir("0xc")][Ir("0xb")](Ir("0xa")))return;const o=t.plugins[Ir("0x1e")](Ir("0x1a"));o[Ir("0x1c")](Ir("0x11"),((e,n)=>{const s=n[Ir("0x16")],r=Array[Ir("0x10")](this[Ir("0x1d")][Ir("0x19")][Ir("0x15")].selection.getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this[Ir("0x1d")].model[Ir("0x1f")]).checkChild(e.parent,n)&&!o[Ir("0xe")](e)&&e[Ir("0x8")]!=n;var e,n,o}));t[Ir("0x19")][Ir("0x13")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x14")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x19")]&&o[Ir("0x0")].registerElementLabel(t.model,(e=>{const n=Nr(t[Ir("0x19")]);return null!==n?s(e,n):r(e,t[Ir("0x5")])}));function s(t,n){return Yo(e,Ir("0x2"),[t,n])}function r(t,n){return Yo(e,Ir("0x1"),[t,n])}o._descriptionFactory[Ir("0xd")]((t=>{const{type:o,data:i}=t;if(Ir("0x17")==o&&i&&Ir("0x11")==i[Ir("0x3")]){const t=i[Ir("0x12")][0][Ir("0x16")],o=Nr(t);if(null!==o)return{type:Ir("0x7"),content:Yo(e,Ir("0x1b"),s(1,o))};const x=n[Ir("0xf")]((e=>e[Ir("0x19")]===t))[Ir("0x5")];return{type:Ir("0x7"),content:Yo(e,Ir("0x1b"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x18")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["color","editor","*Remove highlight*","hasAttribute","selection","FORMAT_HIGHLIGHT","enableCommand","find","getRanges","_descriptionFactory","isCollapsed","commandParams","plugins","title","get","createRange","value","format","push","locale","TrackChangesEditing","highlight","highlight.options","item","markInlineFormat","model","change","afterInit"];var wr,Or;wr=Mr,Or=324,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0xb")](){const t=this[Fr("0xd")];if(!t.plugins.has("HighlightEditing"))return;const e=t[Fr("0x18")].get(Fr("0x4"));e[Fr("0x12")](Fr("0x5"),((n,o={})=>{const s=t.model.document[Fr("0x10")],r=s.getAttribute(Fr("0x5"));let i=o.value,x=[];if(s[Fr("0x16")]){const e=s.getFirstPosition();if(!s[Fr("0xf")](Fr("0x5")))return void n(o);{const n=t=>t[Fr("0x7")].getAttribute(Fr("0x5"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x1b")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x14")]())i?x.push(e):x[Fr("0x2")](...ms(Fr("0x5"),e,t[Fr("0x9")]));t.model[Fr("0xa")]((()=>{for(const t of x)e[Fr("0x8")](t,{commandName:Fr("0x5"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x3")];e[Fr("0x15")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s.commandName){const e=n.t,o=s[Fr("0x17")][0][Fr("0x0")];if(o){const s=t.config[Fr("0x1a")](Fr("0x6"))[Fr("0x13")]((t=>t[Fr("0x9")]==o)),r=e(s[Fr("0x19")]).toLowerCase();return{type:Fr("0x1"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s[Fr("0xc")],title:s[Fr("0x19")]}}}return{type:Fr("0x1"),content:Yo(n,Fr("0xe"),Yo(n,Fr("0x11")))}}}))}}const Dr=["insert","get","createPositionAt","_descriptionFactory","conversion","addClass","div","TrackChangesEditing","has","createContainerElement","registerElementLabel","plugins","ck-horizontal-line","for","afterInit","high","enableCommand","editor","elementToStructure","horizontalLine","dataDowncast","showSuggestionHighlights"];var Br,jr;Br=Dr,jr=400,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xa")](){const t=this[Ur("0xd")];if(!t[Ur("0x7")][Ur("0x4")]("HorizontalLineEditing"))return;t.plugins[Ur("0x13")](Ur("0x3"))[Ur("0xc")](Ur("0xf"));const e=t[Ur("0x7")][Ur("0x13")]("TrackChangesEditing"),n=t.locale;e[Ur("0x15")][Ur("0x6")](Ur("0xf"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x0")][Ur("0x9")](Ur("0x10"))[Ur("0xe")]({model:Ur("0xf"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x11")])return null;const o=e[Ur("0x5")](Ur("0x2")),s=e.createEmptyElement("hr");return e[Ur("0x1")](Ur("0x8"),o),e[Ur("0x12")](e[Ur("0x14")](o,0),s),o},converterPriority:Ur("0xb")})}}const Hr=["rawHtmlApi","document","plugins","HtmlEmbed","registerDescriptionCallback","htmlEmbed","markBlockFormat","getAttribute","afterInit","getCustomProperty","rawHtml","has","view","selection","editor","ELEMENT_HTML_EMBED","format","_descriptionFactory","editing","cancel","element","registerElementLabel","locale","getSelectedElement","enableCommand","commandName","TrackChangesEditing"];var zr,Wr;zr=Hr,Wr=276,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x8")];if(!t[Vr("0x17")][Vr("0x5")](Vr("0x18")))return;const e=t.plugins.get(Vr("0x14")),n=t[Vr("0x10")],o=t[Vr("0xc")][Vr("0x6")][Vr("0x16")][Vr("0x7")];e._descriptionFactory[Vr("0xf")]("rawHtml",(t=>Yo(n,Vr("0x9"),t))),t[Vr("0x17")].get(Vr("0x14"))[Vr("0x12")]("htmlEmbed",((n,s)=>{const r=t.model,i=r[Vr("0x16")][Vr("0x7")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0xe"),Vr("0x4"))?t[Vr("0x11")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x1")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0x0")](t,{commandName:Vr("0x1a"),commandParams:[s]}),o[Vr("0x11")]()[Vr("0x3")](Vr("0x15"))[Vr("0xd")]())}))})),e[Vr("0xb")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&Vr("0x1a")==e[Vr("0x13")]){const t=Yo(n,Vr("0x9"));return{type:Vr("0xa"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["get","nodeBefore","getFirstRange","has","hasAttribute","toNext","ImageBlockEditing","removeObject","ImageStyleEditing","*Set image text alternative:* %0","_suggestionFactory","value","uploadImage","getAttribute","imageCaption","commandParams","find","isEqual","name","forEach","getContainedElement","suggestion","ImageInlineEditing","forward","filter","afterInit","getSuggestion","imageTypeBlock","isBefore","discardSuggestion","length","ImageTextAlternativeEditing","getChangedMarkers","chain","shouldConvertImageType","TrackChangesEditing","_descriptionFactory","element","Inline image to block image","fromPosition","createRangeOn","convertInlineImageToBlock","head","imageStyle","_splitMarkerName","newValue","start","accept","commands","nodeAfter","backward","formatInline","author","newRange","registerPostFixer","addObject","selection","Users","getClosestSelectedImageElement","registerDescriptionCallback","format","subType","hasSuggestion","ELEMENT_INLINE_IMAGE","imageTextAlternative","*Format:* %0","convertBlockImageToInline","ELEMENT_CAPTION","getCaptionFromImageModelElement","*Set image width:* %0","imageStylePostApply","join","next","ImageResize","side","Block image to inline image","isBlockImage","change","ImageUtils","isIntersecting","resizeImage","toggleImageCaption","caption","plugins","imageTypeInline","markBlockFormat","*Reset image width*","getSuggestions","isOwn","type","enableCommand","isInContent","commandName","getSuggestionCallback","formatBlock","discard","refresh","schema","width","model","findIndex","toLowerCase","insertion","registerCustomCallback","imageBlock","markInsertion","imageInline","*Remove image text alternative*","ImageEditing","toPrevious","isCollapsed","document","previous","ImageCaptionEditing","title","createRange","ELEMENT_IMAGE","registerElementLabel","imageStylePreApply","end"];var Xr,$r;Xr=qr,$r=149,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x74")](){const t=this.editor;if(!t[Jr("0x36")][Jr("0x5e")](Jr("0x4f")))return;const n=t[Jr("0x36")][Jr("0x5b")](Jr("0x6")),o=t[Jr("0x36")][Jr("0x5b")](Jr("0x31")),s={},r=t.locale;if(n[Jr("0x3d")]("insertImage"),n[Jr("0x7")][Jr("0x58")](Jr("0x4b"),(t=>Yo(r,Jr("0x57"),t))),n[Jr("0x7")][Jr("0x58")](Jr("0x4d"),(t=>Yo(r,Jr("0x22"),t))),n[Jr("0x7")].registerElementLabel("caption",(()=>Yo(r,Jr("0x26")))),t[Jr("0x36")][Jr("0x5e")]("ImageUploadEditing")&&n[Jr("0x3d")](Jr("0x67")),t[Jr("0x36")][Jr("0x5e")](Jr("0x61"))&&t.plugins.has(Jr("0x71"))&&(n[Jr("0x3d")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x1d")](t.model[Jr("0x52")][Jr("0x1b")]);t[Jr("0x46")].change((()=>{n[Jr("0x38")](r,{commandName:Jr("0x37"),commandParams:[s]},[],Jr("0x25"))}))})),n.enableCommand(Jr("0x76"),((e,s)=>{t.model[Jr("0x30")]((r=>{let x=o[Jr("0x1d")](t.model[Jr("0x52")][Jr("0x1b")]),a=r[Jr("0xb")](x);const c=i.LivePosition[Jr("0xa")](a[Jr("0x11")],Jr("0x50")),l=i.LivePosition.fromPosition(a.end,Jr("0x60"));n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x1d")](t[Jr("0x46")][Jr("0x52")][Jr("0x1b")]),a=r[Jr("0xb")](x);const d=r.createRange(c,l);c.detach(),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x37"),commandParams:[]},[],Jr("0xc")),d[Jr("0x11")][Jr("0x77")](a[Jr("0x11")])&&n[Jr("0x4c")](r.createRange(d.start,a[Jr("0x11")]),Jr("0xc")),a[Jr("0x5a")][Jr("0x77")](d[Jr("0x5a")])&&n[Jr("0x4c")](r[Jr("0x56")](a[Jr("0x5a")],d.end),Jr("0xc"))}))})),n[Jr("0x65")][Jr("0x4a")]("formatBlock",Jr("0xc"),Jr("0x2a"),(()=>{})),n[Jr("0x65")][Jr("0x4a")](Jr("0x41"),Jr("0xc"),Jr("0x12"),(()=>{})),n[Jr("0x65")][Jr("0x4a")](Jr("0x41"),"convertInlineImageToBlock","discard",n[Jr("0x65")][Jr("0x40")](Jr("0x41"),"",Jr("0x12"))),n[Jr("0x65")][Jr("0x4a")](Jr("0x49"),Jr("0xc"),"join",(()=>{})),n[Jr("0x65")][Jr("0x4a")](Jr("0x49"),"convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x65")][Jr("0x40")]("insertion","",Jr("0x42"));let s=e[Jr("0x11")],r=e[Jr("0x5a")];const i=t.model[Jr("0x44")].getNearestSelectionRange(s,Jr("0x15")),x=t.model[Jr("0x44")].getNearestSelectionRange(r,Jr("0x72"));i.isCollapsed&&(s=i[Jr("0x11")]),x[Jr("0x51")]&&(r=x[Jr("0x5a")]),o([t[Jr("0x46")][Jr("0x56")](s,r)])})),n[Jr("0x65")].registerCustomCallback(Jr("0x41"),Jr("0xc"),Jr("0x4"),c),n[Jr("0x65")][Jr("0x4a")](Jr("0x49"),"convertInlineImageToBlock",Jr("0x4"),c)),t.plugins.has(Jr("0x54"))&&(n[Jr("0x3d")](Jr("0x34"),((e,s)=>{const r=t[Jr("0x36")].get("ImageCaptionUtils");let i=o[Jr("0x1d")](t.model.document[Jr("0x1b")]),x=r[Jr("0x27")](i);t[Jr("0x46")][Jr("0x30")]((()=>{if(x)return void n.markDeletion(t[Jr("0x46")][Jr("0xb")](x));const a=o[Jr("0x2f")](i);e(s),i=o[Jr("0x1d")](t.model[Jr("0x52")][Jr("0x1b")]),x=r[Jr("0x27")](i),n[Jr("0x4c")](t[Jr("0x46")][Jr("0xb")](x),a?null:Jr("0x69"))}))})),n[Jr("0x65")].registerCustomCallback(Jr("0x49"),Jr("0x69"),"chain",c)),t[Jr("0x36")][Jr("0x5e")](Jr("0x63"))){n[Jr("0x3d")]("imageStyle",((s,r)=>{const i=t[Jr("0x36")][Jr("0x5b")](Jr("0x1c")).me,x=t[Jr("0x13")][Jr("0x5b")](Jr("0xe"));let a=o[Jr("0x1d")](t[Jr("0x46")].document[Jr("0x1b")]),c=t.model[Jr("0xb")](a),l=x[Jr("0x66")];if(l==r[Jr("0x66")])return;const d={commandName:Jr("0xe"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x46")].change((()=>{if(n[Jr("0x3a")]()[Jr("0x73")]((t=>t[Jr("0x3e")]&&i==t[Jr("0x17")]&&(Jr("0x41")==t[Jr("0x3c")]||"formatInline"==t.type)&&(Jr("0x59")==t[Jr("0x20")]||"imageStylePostApply"==t[Jr("0x20")])&&t[Jr("0x5d")]()[Jr("0x6c")](c)))[Jr("0x6e")]((t=>n[Jr("0x0")](t[Jr("0xd")]))),a=o[Jr("0x1d")](t[Jr("0x46")].document[Jr("0x1b")]),c=t[Jr("0x46")].createRangeOn(a),x[Jr("0x43")](),t[Jr("0x13")][Jr("0x5b")](Jr("0x37"))[Jr("0x43")](),t.commands[Jr("0x5b")](Jr("0x76")).refresh(),l=x.value,l!=r[Jr("0x66")])return o.isInlineImage(a)&&x[Jr("0x5")](r.value,a)?(s(r),a=o[Jr("0x1d")](t[Jr("0x46")][Jr("0x52")][Jr("0x1b")]),void n[Jr("0x38")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x59"))):void(o[Jr("0x2f")](a)?n[Jr("0x38")](a,d,[],Jr("0x29")):n.markInlineFormat(c,d,Jr("0x29")))}))}));for(const e of t[Jr("0x36")][Jr("0x5b")](Jr("0x63")).normalizedStyles)s[e[Jr("0x6d")]]=e[Jr("0x55")][Jr("0x48")]();n[Jr("0x65")][Jr("0x4a")](Jr("0x41"),Jr("0x59"),"join",(()=>{})),n[Jr("0x65")].registerCustomCallback(Jr("0x41"),Jr("0x29"),"join",(()=>{})),n[Jr("0x65")][Jr("0x4a")](Jr("0x16"),Jr("0x29"),Jr("0x2a"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x41"),Jr("0x59"),Jr("0x12"),(()=>{})),n._suggestionFactory[Jr("0x4a")]("formatBlock","imageStylePreApply",Jr("0x42"),((t,e)=>{n[Jr("0x65")][Jr("0x40")]("formatBlock","",Jr("0x12"))(t,{commandName:e[Jr("0x3f")],commandParams:e.commandReversedParams})})),n[Jr("0x65")].registerCustomCallback("formatBlock",Jr("0x59"),Jr("0x4"),c)}const x=[{type:Jr("0x41"),subType:Jr("0x59")},{type:Jr("0x49"),subType:Jr("0x69")},{type:Jr("0x41"),subType:Jr("0xc")},{type:Jr("0x49"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x47")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x20")]==n)),r=x[Jr("0x47")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x20")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x5d")](),a=e[Jr("0x5d")]();if((0==s||1==s)&&2==r&&i[Jr("0x32")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,Jr("0x49")).filter((({suggestion:t,meta:e})=>e[Jr("0x3b")]&&Jr("0xc")==t[Jr("0x20")]));if(t[Jr("0x1")]>1&&a.end[Jr("0x6c")](i[Jr("0x11")]))return!0;if(1==t.length&&(i[Jr("0x11")].isEqual(a[Jr("0x5a")])||i.end[Jr("0x6c")](a[Jr("0x11")])))return!0}if(3==s&&3==r&&i.start[Jr("0x77")](a[Jr("0x11")])){const t=i[Jr("0x5a")][Jr("0x14")],e=a[Jr("0x11")][Jr("0x5c")];return o[Jr("0x2f")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x46")][Jr("0x52")][Jr("0x19")]((()=>{let e=!1;const s=Array.from(t[Jr("0x46")][Jr("0x52")].differ[Jr("0x3")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0xf")](t);if(Jr("0x70")==s&&n[Jr("0x21")](a)){if(Jr("0x41")==i&&(Jr("0x59")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t.getFirstRange()[Jr("0x6f")]();if(o[Jr("0x2f")](s))continue;n[Jr("0x0")](t),e=!0}}if("insertion"==i&&Jr("0x69")==x&&!r[Jr("0x18")]){const t=n[Jr("0x75")](a);t[Jr("0x2b")]&&t[Jr("0x2b")][Jr("0x3e")]&&(n[Jr("0x0")](t.next),e=!0)}}}return e})),t[Jr("0x36")].has(Jr("0x2c"))&&n.enableCommand(Jr("0x33"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x46")].document[Jr("0x1b")]);r[Jr("0x68")](Jr("0x45"))!=s[Jr("0x45")]&&t[Jr("0x46")].change((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x36")].has(Jr("0x2"))&&n[Jr("0x3d")]("imageTextAlternative",((e,s)=>{const r=o.getClosestSelectedImageElement(t.model[Jr("0x52")][Jr("0x1b")]);(r[Jr("0x5f")]("alt")?r.getAttribute("alt"):"")!=s[Jr("0x10")]&&t[Jr("0x46")][Jr("0x30")]((()=>{n[Jr("0x38")](r,{commandName:Jr("0x23"),commandParams:[s]})}))})),n[Jr("0x7")][Jr("0x1e")]((t=>{if(x[Jr("0x6b")]((({type:e,subType:n})=>t[Jr("0x3c")]==e&&t[Jr("0x20")]==n)))return t[Jr("0x53")]?{}:void 0})),n._descriptionFactory[Jr("0x1e")]((t=>{if(Jr("0x49")==t[Jr("0x3c")]||"deletion"==t[Jr("0x3c")]){const e=t[Jr("0x6f")]();if(e&&e.is(Jr("0x8"),Jr("0x35")))return{type:Jr("0x49")==t.type?Jr("0x1a"):Jr("0x62"),element:e,quantity:1}}})),n[Jr("0x7")].registerDescriptionCallback((t=>"formatBlock"==t[Jr("0x3c")]&&Jr("0xc")==t[Jr("0x20")]?{type:Jr("0x1f"),content:Jr("0x9")}:"formatBlock"==t[Jr("0x3c")]&&Jr("0x25")==t[Jr("0x20")]?{type:Jr("0x1f"),content:Jr("0x2e")}:void 0)),n[Jr("0x7")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0xe")==e[Jr("0x3f")]){const t=e[Jr("0x6a")][0][Jr("0x66")];return n=Jr("0x2d")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x1f"),content:Yo(r,Jr("0x24"),n)}}if(Jr("0x23")==e[Jr("0x3f")]){const t=e[Jr("0x6a")][0][Jr("0x10")];return t?{type:Jr("0x1f"),content:Yo(r,Jr("0x64"),'"'+t+'"')}:{type:Jr("0x1f"),content:Yo(r,Jr("0x4e"))}}if("resizeImage"==e[Jr("0x3f")]){const t=e[Jr("0x6a")][0].width;return t?{type:"format",content:Yo(r,Jr("0x28"),t)}:{type:Jr("0x1f"),content:Yo(r,Jr("0x39"))}}}var n}))}}const Zr=["replaceImageSource","model","commandParams","_suggestionFactory","registerCustomCallback","get","getSuggestions","enableCommand","formatBlock","source","handleSuggestionDescription","getSuggestionCallback","locale","*Format:* replace image URL","ImageEditing","discard","accept","plugins","editor","getContainedElement","_descriptionFactory","markBlockFormat","author","afterInit","change","has","commandName","selection","handleReplaceImageCommand","getAttribute","format","src","TrackChangesEditing"];var Yr,ti;Yr=Zr,ti=115,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x7")](){if(!this.editor[ei("0x1")][ei("0x9")](ei("0x1f")))return;const t=this.editor[ei("0x1")][ei("0x16")](ei("0x10"));t[ei("0x18")](ei("0x11"),((t,e)=>this[ei("0xc")](t,e))),t[ei("0x14")][ei("0x15")](ei("0x19"),ei("0x11"),"accept",t[ei("0x14")][ei("0x1c")](ei("0x19"),null,ei("0x20"))),t._suggestionFactory[ei("0x15")](ei("0x19"),ei("0x11"),ei("0x20"),t._suggestionFactory[ei("0x1c")](ei("0x19"),null,ei("0x0"))),t[ei("0x4")].registerDescriptionCallback((t=>this[ei("0x1b")](t)))}handleReplaceImageCommand(t,e){const n=this[ei("0x2")][ei("0x1")][ei("0x16")](ei("0x10")),o=this[ei("0x2")].model.document[ei("0xb")].getSelectedElement();this.editor[ei("0x12")][ei("0x8")]((()=>{let s=o[ei("0xd")](ei("0xf"));const r=this[ei("0x2")][ei("0x1")][ei("0x16")]("Users").me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x3")]();if(ei("0x11")===t.subType&&e===o){t[ei("0x6")]!==r&&t[ei("0x20")](),s=t.data[ei("0x13")][0][ei("0x1a")];break}}t(e),n[ei("0x5")](o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0x1b")](t){const{data:e}=t;if(e&&ei("0x11")===e[ei("0xa")]){const t=ei("0x1e");return{type:ei("0xe"),content:Yo(this[ei("0x2")][ei("0x1d")],t)}}}}const oi=["collaboration_features","_trackChangesExecuted","_handleImportedData","listenTo","importWord","bind","plugins","get","execute","lowest","value","commands","TrackChangesEditing","trackChanges","_setSuggestionData","Users","dataInsert","enableCommand","editor","_trackChangesValueDuringImport"];var si,ri;si=oi,ri=350,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("0x9")]=!1,this[ii("0xb")]=!1}afterInit(){const t=this[ii("0x8")],e=t[ii("0x1")][ii("0x11")](ii("0xe")),n=t.commands[ii("0x11")](ii("0x3"));e&&(e.on(ii("0x12"),((t,[,e])=>{this[ii("0x9")]=n[ii("0x0")],e[ii("0xa")].track_changes=!this[ii("0x9")]}),{priority:"high"}),this[ii("0xd")](e,ii("0x6"),this._handleImportedData[ii("0xf")](this)),this[ii("0xd")](e,ii("0x6"),(()=>{this[ii("0xb")]&&(n[ii("0x12")](),this._trackChangesExecuted=!1)}),{priority:ii("0x13")}),t[ii("0x10")][ii("0x11")](ii("0x2"))[ii("0x7")]("importWord"))}[ii("0xc")](t,e){const{suggestions:n}=e,o=this[ii("0x8")][ii("0x1")].get(ii("0x3")),s=o[ii("0x0")];this[ii("0x9")]!==s&&(o[ii("0x12")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x8")][ii("0x10")].get(ii("0x5")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x8")].plugins[ii("0x11")](ii("0x2"))[ii("0x4")](s)}))}}const ai=["indent","format","registerDescriptionCallback","model","document","editor","locale","*Outdent:* %0","blockIndent","plugins","_descriptionFactory","selection","IndentBlock","commandName","outdentBlock","*Indent:* %0","getItems","schema","indentBlock","IndentEditing","enableCommand","has","getSelectedBlocks","filter","markBlockFormat","change","afterInit"];var ci,li;ci=ai,li=324,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x1a")](){const t=this[di("0x5")],e=t[di("0x9")].get("TrackChangesEditing");t[di("0x9")][di("0x15")](di("0x13"))&&(e[di("0x14")](di("0x0")),e.enableCommand("outdent"));const n=t[di("0x6")];if(t.plugins[di("0x15")](di("0xc"))){for(const n of[di("0x12"),"outdentBlock"])e[di("0x14")](n,(()=>{const o=Array.from(this[di("0x5")][di("0x3")][di("0x4")][di("0xb")][di("0x16")]())[di("0x17")]((t=>this[di("0x5")][di("0x3")][di("0x11")].checkAttribute(t,di("0x8"))));t[di("0x3")][di("0x19")]((()=>{for(const t of o)e[di("0x18")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x12")})}))}));e[di("0xa")][di("0x2")]((t=>{const{data:o}=t;if(!o)return;if(di("0x12")!=o[di("0xd")]&&di("0xe")!=o[di("0xd")])return;const s=t[di("0x10")]()[0],r=e._descriptionFactory.getItemLabel(s);return"indentBlock"==o.commandName?{type:di("0x1"),content:Yo(n,di("0xf"),r)}:"outdentBlock"==o[di("0xd")]?{type:di("0x1"),content:Yo(n,di("0x7"),r)}:void 0}))}}}var gi,mi,fi=["editor","plugins","input","init","TrackChangesEditing"];gi=fi,mi=220,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x3")](){this[hi("0x0")][hi("0x1")].get(hi("0x4")).enableCommand(hi("0x2"))}}const bi=["document","plugins","format","getRanges","model","getAttribute","get","commandParams","_descriptionFactory","*Set link:* %0","has","locale","change","linkHref","hasAttribute","*Remove link*","LinkEditing","getFirstRange","getFirstPosition","from","link","editor","unlink","selection","registerDescriptionCallback","commandName","enableCommand"];var Ei,_i;Ei=bi,_i=281,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0xa")];if(!t[Ti("0x11")][Ti("0x1a")](Ti("0x5")))return;const e=t[Ti("0x11")][Ti("0x16")]("TrackChangesEditing");e[Ti("0xf")](Ti("0x9"),((n,o)=>{const s=t.model[Ti("0x10")][Ti("0xc")];let r=[];if(s.isCollapsed){if(!s[Ti("0x3")](Ti("0x2")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x7")](),"linkHref",s.getAttribute(Ti("0x2")),t[Ti("0x14")]);r=[e]}}else r=Array[Ti("0x8")](s[Ti("0x13")]());t.model[Ti("0x1")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x9"),commandParams:[o]})}))})),e[Ti("0xf")](Ti("0xb"),(()=>{const n=this[Ti("0xa")][Ti("0x14")],o=n[Ti("0x10")][Ti("0xc")];n.change((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x7")](),Ti("0x2"),o[Ti("0x15")](Ti("0x2")),t[Ti("0x14")])]:ms("linkHref",o[Ti("0x6")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0xb"),commandParams:[]})}))})),e[Ti("0x18")][Ti("0xd")]((e=>{const{data:n}=e,o=t[Ti("0x0")];if(n){if(Ti("0x9")==n[Ti("0xe")]){const t=n[Ti("0x17")][0];return{type:Ti("0x12"),content:Yo(o,Ti("0x19"),'"'+t+'"')}}return Ti("0xb")==n[Ti("0xe")]?{type:"format",content:Yo(o,Ti("0x4"))}:void 0}}))}}const yi=["name","add","previousSibling","getAttribute","selection","editor","listIndent","bulleted","plugins","length","has","before","commandParams","commands","checkTodoList","createPositionAt","bulletedList","registerElementLabel","outdentList","value","locale","document","get","change","element","blockName","*Change to:* %0","checkChild","listType","filter","commandName","replace","todoList","format","*Uncheck item*","ELEMENT_NUMBERED_LIST","ELEMENT_LIST_ITEM","execute","_descriptionFactory","enableCommand","numbered","indentList","todoListChecked","nextSibling","*Check item*","model","slice","afterInit","from","getSelectedBlocks","listItem","markBlockFormat","createRange","List","ELEMENT_TODO_LIST","parent","ListEditing","schema","numberedList"];var ki,Ai;ki=yi,Ai=164,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x1")](){const t=this[vi("0x12")],e=t[vi("0x21")];if(!t[vi("0x15")][vi("0x17")](vi("0xa")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[vi("0x15")][vi("0x17")]("TodoListEditing");function s(e){return()=>{const o=t.model[vi("0x22")][vi("0x11")],s=t[vi("0x1a")][vi("0x23")](e);if(s[vi("0x20")])return void t[vi("0x32")]("paragraph",{});const r=e[vi("0x0")](0,-4),i=function(t,e,n){let o=Array[vi("0x2")](t)[vi("0x2a")]((t=>{return e=t,(o=n)[vi("0x28")](e[vi("0x9")],vi("0x4"))&&!o.isObject(e);var e,o}));o=o[vi("0x2a")]((t=>!t.is("element",vi("0x4"))||t[vi("0x10")](vi("0x29"))!=e));const s=new Set;for(const t of o)t.is("element",vi("0x4"))?s[vi("0xe")](Si(t)):s[vi("0xe")](t);return Array[vi("0x2")](s)}(o[vi("0x3")](),r,t[vi("0x3a")][vi("0xb")]);t[vi("0x3a")][vi("0x24")]((()=>{for(const t of i)n[vi("0x5")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x26")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x2")](t);const n=e.findIndex((t=>vi("0x4")!=t[vi("0xd")]));return n>-1&&(e=e[vi("0x0")](0,n)),e}(t[vi("0x3a")].document.selection[vi("0x3")]()),s=t[vi("0x3a")][vi("0x6")](t[vi("0x3a")][vi("0x1c")](o[0],vi("0x18")),t.model.createPositionAt(o[o[vi("0x16")]-1],"end"));t.model[vi("0x24")]((()=>{n[vi("0x5")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x13")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x38")];for(;t&&t[vi("0x10")](vi("0x13"))>n.getAttribute(vi("0x13"));)e[vi("0xe")](t),t=t[vi("0x38")]}return Array.from(e)}(o))}))}}n[vi("0x34")](vi("0xc"),s(vi("0xc"))),n[vi("0x34")](vi("0x1d"),s(vi("0x1d"))),o&&n[vi("0x34")](vi("0x2d"),s(vi("0x2d"))),n[vi("0x34")](vi("0x36"),r(vi("0x36"))),n[vi("0x34")]("outdentList",r("outdentList")),o&&n[vi("0x34")]("checkTodoList",(()=>{const e=t.commands[vi("0x23")](vi("0x1b")),o=Array.from(e._selectedElements);o.filter((t=>t[vi("0x10")](vi("0x37"))!=e[vi("0x20")])),t[vi("0x3a")][vi("0x24")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1b"),commandParams:[{forceValue:!e.value}]})}))})),n[vi("0x33")][vi("0x1e")](vi("0x4"),(t=>Yo(e,vi("0x31"),t))),n[vi("0x33")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0xc")==n.commandName||vi("0x1d")==n[vi("0x2b")]||vi("0x2d")==n[vi("0x2b")])switch(n.commandName[vi("0x2c")](vi("0x7"),"")){case vi("0x14"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x35"):return o(Yo(e,vi("0x30")));case"todo":return o(Yo(e,vi("0x8")))}if("indentList"==n[vi("0x2b")])return{type:"format",content:Yo(e,"*Indent:* %0",Yo(e,vi("0x31")))};if(vi("0x1f")==n[vi("0x2b")])return{type:vi("0x2e"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x31")))};if(vi("0x1b")==n.commandName)return n[vi("0x19")][0].forceValue?{type:vi("0x2e"),content:Yo(e,vi("0x39"))}:{type:vi("0x2e"),content:Yo(e,vi("0x2f"))}}function o(t){return{type:vi("0x2e"),content:Yo(e,vi("0x27"),t)}}}))}}function Si(t){const e=t[vi("0x10")](vi("0x13"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xf")].is("element","listItem");){const o=t.previousSibling[vi("0x10")](vi("0x13"));if(o==e)n=t[vi("0xf")];else if(o<e)break;t=t[vi("0xf")]}return n}function Ii(t){const e=[];if(t.is(vi("0x25"),vi("0x4"))&&t[vi("0x10")](vi("0x13"))>0){let n=t[vi("0x38")];for(;n&&vi("0x4")==n[vi("0xd")]&&n[vi("0x10")](vi("0x13"))==t[vi("0x10")](vi("0x13"));)e.push(n),n=n[vi("0x38")]}return e}const Li=["createPositionAt","listStart","listType","model","has","startIndex","registerDescriptionCallback","forward","change","listItem","filter","element","enableCommand","listReversed","map","_getSuggestionBlocks","getSiblingNodes","numbered","_getSuggestionBlocksForListStyle","config","backward","selection","ListPropertiesEditing","handleListStartCommand","afterInit","length","flat","plugins","getListTypeFromListStyleType","commandParams","markMultiRangeBlockFormat","getFirstPosition","replace","before","bind","reversed","listStyle","*Format:* set order to reversed","getAttribute","_descriptionFactory","unshift","from","handleDescriptions","document","handleListReversedCommand","_getTranslationKeyForListStyle","type","commandName","parent","createRange","format","editor","getSelectedBlocks","toUpperCase","*Format:* set start index to %0","ListUtils","get","TrackChangesEditing"];var Ni,Mi;Ni=Li,Mi=289,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x19")](){if(!this[wi("0x34")][wi("0x1c")][wi("0x5")](wi("0x17")))return;const t=this[wi("0x34")][wi("0x14")].get("list.properties"),e=this[wi("0x34")][wi("0x1c")].get("TrackChangesEditing");t.styles&&e[wi("0xd")](wi("0x25"),this.handleListStyleCommand.bind(this)),t.reversed&&e[wi("0xd")]("listReversed",this[wi("0x2d")].bind(this)),t[wi("0x6")]&&e.enableCommand(wi("0x2"),this.handleListStartCommand.bind(this)),e[wi("0x28")][wi("0x7")](this.handleDescriptions[wi("0x23")](this))}handleListStyleCommand(t,e={}){const n=this.editor.plugins.get("TrackChangesEditing"),o=this[wi("0x13")]();this.editor[wi("0x4")][wi("0x9")]((()=>{n[wi("0x1f")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x2f")]}],formatGroupId:wi("0x25")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x34")].plugins[wi("0x39")]("TrackChangesEditing"),o=this[wi("0x10")]((t=>t.is(wi("0xc"),"listItem")&&"numbered"===t[wi("0x27")](wi("0x3"))));if(o[wi("0x1a")]<1)return;const s=o[wi("0xf")]((t=>this[wi("0x34")][wi("0x4")][wi("0x32")](this[wi("0x34")][wi("0x4")][wi("0x1")](t,wi("0x22")),this[wi("0x34")][wi("0x4")][wi("0x1")](t,0))));this[wi("0x34")].model[wi("0x9")]((()=>{n[wi("0x1f")](s,{commandName:wi("0xe"),commandParams:[{reversed:e[wi("0x24")]}],formatGroupId:wi("0xe")})}))}[wi("0x18")](t,e={}){const n=this[wi("0x34")][wi("0x1c")][wi("0x39")](wi("0x0")),o=this[wi("0x10")]((t=>t.is(wi("0xc"),wi("0xa"))&&wi("0x12")===t[wi("0x27")](wi("0x3"))));if(o[wi("0x1a")]<1)return;const s=o[wi("0xf")]((t=>this[wi("0x34")][wi("0x4")][wi("0x32")](this[wi("0x34")][wi("0x4")].createPositionAt(t,"before"),this[wi("0x34")][wi("0x4")][wi("0x1")](t,0))));this[wi("0x34")][wi("0x4")][wi("0x9")]((()=>{n[wi("0x1f")](s,{commandName:wi("0x2"),commandParams:[{startIndex:e[wi("0x6")]}],formatGroupId:wi("0x2")})}))}[wi("0x2b")](t){const e=this[wi("0x34")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x30")]){case wi("0x25"):o="*Change to:* %0",s={type:wi("0x33"),content:Yo(e,o,Yo(e,this[wi("0x2e")](n[wi("0x1e")][0][wi("0x2f")])))};break;case"listReversed":o=n[wi("0x1e")][0][wi("0x24")]?wi("0x26"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wi("0x2"):o=wi("0x37"),s={type:wi("0x33"),content:Yo(e,o,n[wi("0x1e")][0][wi("0x6")])}}return s}[wi("0x13")](){var t,e,n,o;const s=this[wi("0x34")][wi("0x1c")][wi("0x39")](wi("0x38"));let r=Array[wi("0x2a")](this[wi("0x34")][wi("0x4")][wi("0x2c")][wi("0x16")][wi("0x35")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0xc"),wi("0xa")))&&r[wi("0x29")](...s[wi("0x11")](this.editor.model.document[wi("0x16")][wi("0x20")](),wi("0x15"))),(null===(e=r[r[wi("0x1a")]-1])||void 0===e?void 0:e.is("element",wi("0xa")))&&r.push(...s.getSiblingNodes(this[wi("0x34")][wi("0x4")][wi("0x2c")][wi("0x16")].getLastPosition(),wi("0x8"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x34")][wi("0x4")][wi("0x2c")][wi("0x16")][wi("0x20")]())||void 0===n?void 0:n[wi("0x31")])||void 0===o?void 0:o.is(wi("0xc"),"listItem"))&&(r=r[wi("0xb")]((t=>t.is(wi("0xc"),wi("0xa"))))),r}[wi("0x10")](t){const e=this[wi("0x34")].plugins.get(wi("0x38"));let n=Array[wi("0x2a")](this.editor.model[wi("0x2c")][wi("0x16")][wi("0x35")]()).filter(t)[wi("0xf")]((t=>{const n=this.editor[wi("0x4")][wi("0x1")](t,0);return[...e.getSiblingNodes(n,wi("0x15")),...e.getSiblingNodes(n,"forward")]}))[wi("0x1b")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wi("0x34")].plugins[wi("0x39")]("ListUtils")[wi("0x1d")](t)[wi("0x36")]()+"_LIST_"+t[wi("0x36")]()[wi("0x21")](/-/g,"_")}}const Fi=["_descriptionFactory","dataDowncast","conversion","registerElementLabel","high","mediaEmbed","ELEMENT_MEDIA","plugins","stop","options","showSuggestionHighlights","elementToElement","enableCommand","TrackChangesEditing","MediaEmbedEditing","media","for","editor","afterInit","get"];var Pi,Di;Pi=Fi,Di=199,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x13")](){const t=this[Bi("0x12")];if(!t.plugins.has(Bi("0xf")))return;const e=t[Bi("0x8")][Bi("0x0")](Bi("0xe")),n=t.locale;e[Bi("0xd")](Bi("0x6")),e[Bi("0x1")][Bi("0x4")](Bi("0x10"),(t=>Yo(n,Bi("0x7"),t))),t[Bi("0x3")][Bi("0x11")](Bi("0x2"))[Bi("0xc")]({model:Bi("0x10"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xb")])return e.createEmptyElement("div")},converterPriority:Bi("0x5")}),t.data.downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0xa")].showSuggestionHighlights&&t[Bi("0x9")]()}),{priority:Bi("0x5")})}}const Ui=["plugins","get","enableCommand","afterInit","editor","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=301,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this[zi("0x3")];t[zi("0x5")].has(zi("0x4"))&&t[zi("0x5")][zi("0x0")]("TrackChangesEditing")[zi("0x1")]("mention")}}const Vi=["enableCommand","pageBreak","locale","_descriptionFactory","registerElementLabel","get","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","editor","afterInit","plugins"];var Ki,qi;Ki=Vi,qi=270,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x4")](){const t=this[Xi("0x3")];if(!t[Xi("0x5")].has(Xi("0x1")))return;t[Xi("0x5")][Xi("0xb")]("TrackChangesEditing")[Xi("0x6")](Xi("0x7"));const e=t[Xi("0x5")][Xi("0xb")](Xi("0x2")),n=t[Xi("0x8")];e[Xi("0x9")][Xi("0xa")](Xi("0x7"),(t=>Yo(n,Xi("0x0"),t)))}}const Ji=["downcastDispatcher","isObject","editor","model","markerRange","commandName","from","blockName","nodeAfter","activeMarkers","editing","highest","ELEMENT_PARAGRAPH","filter","start","isTouching","addClass","writer","plugins","createUIElement","markerName","name","span","$text","includes","end","*Insert:* %0","ck-suggestion-marker--active","_descriptionFactory","getSelectedBlocks","schema","insertParagraph","isLimit","isBlock","consumable","locale","insertion","TrackChangesEditing","type","get","format","change","checkChild","insert","ck-suggestion-marker-split","getFirstRange","paragraph","data","addMarker:suggestion:insertion","selection","registerDescriptionCallback","enableCommand","options","*Change to:* %0","mapper","Paragraph","toViewPosition","markBlockFormat","consume"];var Qi,Zi;Qi=Ji,Zi=439,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("0x23")];if(!t[Yi("0x33")].has(Yi("0x1d")))return;const e=t[Yi("0x9")],n=t[Yi("0x33")][Yi("0xd")](Yi("0xb"));n[Yi("0x2")].registerElementLabel("paragraph",(t=>Yo(e,Yi("0x2d"),t))),n.enableCommand("paragraph",((e,o={})=>{const s=t[Yi("0x24")].document,r=o[Yi("0x17")]||s.selection,i=Array[Yi("0x27")](r[Yi("0x3")]())[Yi("0x2e")]((t=>{return e=t,(n=this.editor[Yi("0x24")][Yi("0x4")])[Yi("0x10")](e.parent,Yi("0x14"))&&!n[Yi("0x22")](e)&&Yi("0x14")!=e.name;var e,n}));t[Yi("0x24")][Yi("0xf")]((()=>{for(const t of i)n[Yi("0x1f")](t,{commandName:Yi("0x14"),commandParams:[],formatGroupId:Yi("0x28")},fs(t))}))})),n[Yi("0x2")][Yi("0x18")]((t=>{const{data:n}=t;if(n&&Yi("0x14")==n[Yi("0x26")])return{type:Yi("0xe"),content:Yo(e,Yi("0x1b"),Yo(e,Yi("0x2d")))}})),n[Yi("0x19")](Yi("0x5")),t[Yi("0x2b")][Yi("0x21")].on(Yi("0x16"),ex(t),{priority:Yi("0x2c")}),t[Yi("0x15")][Yi("0x21")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x1a")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x2")];o[Yi("0x18")]((n=>{if(Yi("0xa")!==n[Yi("0xc")])return;const{start:s,end:r}=n[Yi("0x13")]();if(!s[Yi("0x30")](r)||!s[Yi("0x29")])return;const i=t[Yi("0x24")][Yi("0x4")],x=s[Yi("0x29")];return i[Yi("0x7")](x)&&!i[Yi("0x6")](x)&&i.checkChild(x,Yi("0x38"))?{type:Yi("0xa"),content:Yo(e,Yi("0x0"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x33")].get("TrackChangesEditing"),i=o[Yi("0x25")][Yi("0x2f")],x=o.markerRange[Yi("0x3a")],a=t.model.schema;if(!i[Yi("0x30")](x)||!i[Yi("0x29")])return;const c=i[Yi("0x29")];if(a[Yi("0x7")](c)&&!a[Yi("0x6")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x8")][Yi("0x20")](o[Yi("0x25")],n[Yi("0x36")]))return;const t=s[Yi("0x32")][Yi("0x34")](Yi("0x37"),{class:Yi("0x12")}),i=s[Yi("0x1c")][Yi("0x1e")](x);e&&r[Yi("0x2a")][Yi("0x39")](o.markerName)&&s.writer[Yi("0x31")](Yi("0x1"),t),s[Yi("0x32")][Yi("0x11")](i,t),s[Yi("0x1c")].bindElementToMarker(t,o[Yi("0x35")])}}}const nx=["plugins","selection","document","TrackChangesEditing","has","editor","removeFormat","change","*Remove all formatting*","model","isCollapsed","commandName","schema","afterInit","locale","createRangeOn","registerDescriptionCallback","getAttributes","_descriptionFactory","RemoveFormatEditing","getItems"];var ox,sx;ox=nx,sx=424,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("0x1")];if(!t.plugins[rx("0x0")](rx("0xf")))return;const e=t[rx("0x11")].get(rx("0x14"));e.enableCommand(rx("0x2"),(n=>{const o=t[rx("0x5")][rx("0x13")][rx("0x12")];o[rx("0x6")]?n():t[rx("0x5")][rx("0x3")]((()=>{const n=Array.from(o.getRanges());for(const o of n)for(const n of o[rx("0x10")]())xx(n,t.model[rx("0x8")])&&e.markInlineFormat(t[rx("0x5")][rx("0xb")](n),{commandName:rx("0x2"),commandParams:[]})}))})),e[rx("0xe")][rx("0xc")]((e=>{const{data:n}=e;if(n&&rx("0x2")==n[rx("0x7")])return{type:"format",content:Yo(t[rx("0xa")],rx("0x4"))}}))}}function xx(t,e){for(const[n]of t[rx("0xd")]()){const t=e.getAttributeProperties(n);if(t&&t.isFormatting)return!0}return!1}const ax=["has","goToNextRestrictedEditingException","discardAllSuggestions","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","enableCommand","acceptSuggestion","discardSuggestion","RestrictedEditingModeEditing","get","acceptAllSuggestions","discardSelectedSuggestions","afterInit","editor","plugins"];var cx,lx;cx=ax,lx=247,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x5")](){const t=this[dx("0x6")];if(!t[dx("0x7")][dx("0x8")](dx("0x1")))return;const e=t[dx("0x7")][dx("0x2")]("TrackChangesEditing");e[dx("0xd")](dx("0xc")),e[dx("0xd")](dx("0x9"));const n=t[dx("0x7")][dx("0x2")](dx("0x1"));n[dx("0xd")]("trackChanges"),n[dx("0xd")](dx("0xe")),n[dx("0xd")](dx("0x0")),n.enableCommand(dx("0x3")),n.enableCommand(dx("0xa")),n.enableCommand(dx("0xb")),n.enableCommand(dx("0x4"))}}const gx=["softBreak","createUIElement","deletion","markerName","name","enableCommand","downcastDispatcher","merge","get","bindElementToMarker","init","activeMarkers","toViewPosition","editor","markerRange","high","locale","TrackChangesEditing","ck-suggestion-marker-","editing","shiftEnter","data","test","split","plugins","writer","createPositionBefore","model","addMarker:suggestion:deletion","addClass","addMarker:suggestion:insertion","ELEMENT_LINE_BREAK","includes","span","consumable"];var mx,fx;mx=gx,fx=249,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]}[hx("0x6")](){const t=this[hx("0x9")],e=t[hx("0x14")][hx("0x4")](hx("0xd"));e[hx("0x1")](hx("0x10")),t[hx("0xf")][hx("0x2")].on(hx("0x1a"),bx(t),{priority:hx("0xb")}),t[hx("0xf")][hx("0x2")].on(hx("0x18"),bx(t),{priority:hx("0xb")}),t[hx("0x11")].downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel(hx("0x1f"),(e=>Yo(t[hx("0xc")],hx("0x1b"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x4")]("TrackChangesEditing");if(!s[hx("0x1e")][hx("0x12")](o[hx("0xa")],n[hx("0x0")]))return;const i=t[hx("0x17")];for(const t of o[hx("0xa")].getItems()){if(!t.is("element",hx("0x1f")))continue;const n=hx("0x21")==o[hx("0x22")][hx("0x13")](":")[1]?hx("0x3"):hx("0x13"),x=s[hx("0x15")][hx("0x20")](hx("0x1d"),{class:hx("0xe")+n}),a=s.mapper[hx("0x8")](i[hx("0x16")](t));e&&r[hx("0x7")][hx("0x1c")](o[hx("0x22")])&&s[hx("0x15")][hx("0x19")]("ck-suggestion-marker--active",x),s[hx("0x15")].insert(a,x),s.mapper[hx("0x5")](x,o.markerName)}}}const Ex=["format","plugins","_descriptionFactory","has","FORMAT_RESTRICTED_DISABLED","forceValue","StandardEditingModeEditing","get","locale","TrackChangesEditing","registerDescriptionCallback","getRanges","FORMAT_RESTRICTED_ENABLED","document","markInlineFormat","restrictedEditingException","selection","from","model","afterInit","commandName"];var _x,Tx;_x=Ex,Tx=412,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x6")](){const t=this.editor,e=t[Cx("0x5")],n=t[Cx("0x10")];if(!t[Cx("0x9")][Cx("0xb")](Cx("0xe")))return;const o=t[Cx("0x9")][Cx("0xf")](Cx("0x11")),s=Cx("0x2"),r=t.commands[Cx("0xf")](s);o.enableCommand(s,((t,n={})=>{const i=e[Cx("0x0")][Cx("0x3")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0xd")]?n[Cx("0xd")]:!r.value;e.change((()=>{const t=Array[Cx("0x4")](i[Cx("0x13")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xa")][Cx("0x12")]((t=>{const{data:e}=t;if(e&&e[Cx("0x7")]==s)return e.commandParams[0][Cx("0xd")]?{type:Cx("0x8"),content:Yo(n,Cx("0x14"))}:{type:Cx("0x8"),content:Yo(n,Cx("0xc"))}}))}}const kx=["getRanges","getItems","locale","change","createRangeOn","enableCommand","style","editor","styleName","*Remove format:* %0","toLowerCase","from","normalizeConfig","_getStyleDefinition","document","markInlineFormat","_getRangesWithClasses","modelElements","value","name","format","push","element","_descriptionFactory","getAncestors","block","every","isBlock","style:","plugins","classes","style.definitions","TrackChangesEditing","forceValue","has","inline","registerDescriptionCallback","includes","isCollapsed","get","*Format:* %0","model","commandParams"];var Ax,vx;Ax=kx,vx=178,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x1")];if(!t[Rx("0x17")][Rx("0x1c")]("Style"))return;const e=t.commands.get("style"),n=t[Rx("0x17")][Rx("0x21")](Rx("0x1a")),o=t[Rx("0x27")],s=t[Rx("0x17")][Rx("0x21")]("DataSchema"),r=t[Rx("0x17")][Rx("0x21")]("StyleUtils")[Rx("0x6")](s,t.config[Rx("0x21")](Rx("0x19")));n[Rx("0x2a")](Rx("0x0"),((o,{styleName:i})=>{const x=t[Rx("0x23")][Rx("0x8")].selection,a=this[Rx("0x7")](i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x[Rx("0x20")]&&!a[Rx("0x15")])return void o({styleName:i});const c=!e[Rx("0xc")][Rx("0x1f")](a[Rx("0xd")]);if(a[Rx("0x15")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x12")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x1f")](o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0xb")]);t[Rx("0x23")][Rx("0x28")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x16")+i})}))}else{let e=Array.from(x[Rx("0x25")]());if(!c){const n=Array[Rx("0x5")](s.getDefinitionsForView(a[Rx("0x10")],!1))[0][Rx("0x23")],o=[];for(const s of e){const e=this[Rx("0xa")](t[Rx("0x23")],s,a[Rx("0x18")],n);o[Rx("0xf")](...e)}e=o}t.model.change((()=>{for(const t of e)n[Rx("0x9")](t,{commandName:Rx("0x0"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x11")][Rx("0x1e")]((t=>{const{data:e}=t;if(e&&"style"===e.commandName)return e.commandParams[0][Rx("0x1b")]?{type:Rx("0xe"),content:Yo(o,Rx("0x22"),e[Rx("0x24")][0][Rx("0x2")][Rx("0x4")]())}:{type:Rx("0xe"),content:Yo(o,Rx("0x3"),e.commandParams[0][Rx("0x2")][Rx("0x4")]())}}))}[Rx("0x7")](t,e){let n=e[Rx("0x13")].find((e=>e[Rx("0xd")]===t));return n||(n=e[Rx("0x1d")].find((e=>e.name===t))),n}[Rx("0xa")](t,e,n,o){const s=[];for(const r of e[Rx("0x26")]()){const e=r.getAttribute(o);e&&n[Rx("0x14")]((t=>e[Rx("0x18")][Rx("0x1f")](t)))&&s[Rx("0xf")](t[Rx("0x29")](r))}return s}}const Ix=["from","MIN_SAFE_INTEGER","_getSuggestionCoords","addMarker:suggestion","insertTableColumnLeft","maxRow","change:data","isInContent","ELEMENT_TABLE_COLUMN_WITH_TEXT","$graveyard","ELEMENT_TABLE_WITH_TEXT","tableColumn","getCellLocation","tableCell","TableEditing","nodeAfter","options","editor","getChangedMarkers","minColumn","registerElementLabel","min","data","ELEMENT_TABLE_COLUMN","ELEMENT_TABLE_ROW_WITH_TEXT","enqueueChange","getChanges","getSuggestion","ELEMENT_TABLE","forceValue","insertTableColumnRight","addClass","deletion","*Insert:* %0","values","_acceptFormatSuggestionCallbackFactory","every","insertion","downcastDispatcher","markMultiRangeInsertion","mapper","selectTableRow","insertTableRowBelow","maxColumn","type","name","includes","model","hasAttribute","getRowIndexes","length","removeClass","markMultiRangeDeletion","last","registerDescriptionCallback","removeTableColumn","rowspan","map","registerPostFixer","tableRow","oldRange","batch","end","accept","MAX_SAFE_INTEGER","plugins","change","getColumnIndexes","substr","*Remove:* %0","minRow","enableCommand","getChildren","_getCoordsForCells","getAttribute","_tableSuggestions","item","_tablePostFixingSubtypes","createTableWalker","isIntersectingWithRange","ELEMENT_TABLE_ROW","tablePaste","differ","addRange","setSelection","_descriptionFactory","getFirstRange","TrackChangesEditing","filter","removeTableRow","getSelectionAffectedTableCells","get","toViewElement","subType","isTouching","selection","_splitMarkerName","createRangeOn","rootName","some","fromRange","table","commands","getRanges","cell","left","add","TableUtils","isEqual","low","has","join","toLowerCase","discard","max","afterInit","classes","registerCustomCallback","above","showSuggestionHighlights","execute","suggestion","highest","root","colspan","_suggestionFactory","$textProxy","findAncestor","writer","order","position","getItems","push","start","locale","nodeBefore","first","document","isArray","detach","span"];var Lx,Nx;Lx=Ix,Nx=483,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("0x8c"),Mx("0x5c")],this[Mx("0xf")]=new Set}[Mx("0x37")](){const t=this[Mx("0x62")],e=t[Mx("0x80")][Mx("0x4d")][Mx("0x23")];if(!t.plugins[Mx("0x32")](Mx("0x5f")))return;const n=t[Mx("0x4a")],o=t[Mx("0x5")][Mx("0x1f")](Mx("0x1b")),s=t[Mx("0x5")][Mx("0x1f")](Mx("0x2f"));o._descriptionFactory[Mx("0x65")](Mx("0x29"),(t=>Yo(n,Mx("0x6d"),t))),this._setupColumnsRowsFixing(),o[Mx("0xb")]("insertTable"),o[Mx("0xb")](Mx("0x7a")),o[Mx("0xb")]("selectTableColumn");for(const n of["insertTableRowAbove",Mx("0x7b")]){const r=t[Mx("0x2a")][Mx("0x1f")](n);o.enableCommand(n,(n=>{t.model.change((t=>{n();const i=Mx("0x3a")===r.order,x=s[Mx("0x1e")](e),a=s[Mx("0x82")](x),c=i?a.first-1:a[Mx("0x86")]+1,l=x[0][Mx("0x43")](Mx("0x29")),d=s[Mx("0x12")](l,{startRow:c,endRow:c}),u=Array[Mx("0x51")](d)[Mx("0x8a")]((e=>t.createRangeOn(e[Mx("0x2c")])));o.markMultiRangeInsertion(u,Mx("0x8c"))}))}))}for(const n of[Mx("0x55"),Mx("0x6f")]){const r=t.commands[Mx("0x1f")](n);o[Mx("0xb")](n,(n=>{t[Mx("0x80")][Mx("0x6")]((t=>{n();const i=Mx("0x2d")===r[Mx("0x45")],x=s[Mx("0x1e")](e),a=s[Mx("0x7")](x),c=i?a.first-1:a[Mx("0x86")]+1,l=x[0][Mx("0x43")](Mx("0x29")),d=s[Mx("0x12")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d)[Mx("0x8a")]((e=>t[Mx("0x25")](e[Mx("0x2c")])));o[Mx("0x78")](u,"tableColumn")}))}))}for(const n of[Mx("0x1d"),"removeTableColumn"]){const r=n[Mx("0x8")](11),i=r[Mx("0x34")](),x=i.substr(0,3)+Mx("0x50"),a="table"+r,c=Mx("0x66")+r,l="max"+r;o.enableCommand(n,(()=>{t[Mx("0x80")][Mx("0x6")]((t=>{const r=s[Mx("0x1e")](e),d=r[0][Mx("0x43")](Mx("0x29"));let u;if("removeTableRow"==n){const t=s[Mx("0x82")](r);u={startRow:t[Mx("0x4c")],endRow:t[Mx("0x86")],includeAllSlots:!0}}else{const t=s[Mx("0x7")](r);u={startColumn:t[Mx("0x4c")],endColumn:t[Mx("0x86")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x51")](g)[Mx("0x8a")]((({cell:t})=>t)),f=Ox(m[Mx("0x1c")]((t=>t.hasAttribute(x)))),h=Ox(m.filter((t=>!t.hasAttribute(x))))[Mx("0x8a")]((e=>t[Mx("0x25")](e))),p=o[Mx("0x85")](h,a);if(p&&("tableRow"==p[Mx("0x21")]||Mx("0x5c")==p[Mx("0x21")])){const e=this[Mx("0x53")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x5d")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x17")](o)}}}))}))}function r(n){const o=Array[Mx("0x51")](e.getRanges())[Mx("0x8a")]((t=>i.LiveRange[Mx("0x28")](t)));t[Mx("0x80")][Mx("0x6")]((e=>{const s=e[Mx("0x1")];n=n[Mx("0x1c")]((t=>Mx("0x5a")!=t[Mx("0x3f")].rootName)),e[Mx("0x18")](n),t[Mx("0x2a")][Mx("0x1f")](Mx("0x1d")).refresh(),t[Mx("0x3c")](Mx("0x1d"),{forceDefaultExecution:!0}),t[Mx("0x80")].enqueueChange((()=>{t[Mx("0x80")][Mx("0x6a")](s,(t=>{const e=o[Mx("0x1c")]((t=>Mx("0x5a")!=t.root[Mx("0x26")]));e[Mx("0x83")]>0&&t[Mx("0x18")](e);for(const t of o)t[Mx("0x4f")]()}))}))}))}function a(n){t[Mx("0x80")][Mx("0x6")]((o=>{const s=Array.from(e[Mx("0x2b")]())[Mx("0x8a")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x48")](e);for(const e of r)Mx("0x5a")!=e[Mx("0x3f")][Mx("0x26")]&&(o.setSelection(o.createPositionAt(e,0)),t[Mx("0x2a")][Mx("0x1f")](Mx("0x88")).refresh(),t[Mx("0x3c")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x5a")!=t[Mx("0x3f")][Mx("0x26")]));x.length>0&&o[Mx("0x18")](x);for(const t of s)t[Mx("0x4f")]()}))}function c(t,e){return e[Mx("0x75")]((e=>t[Mx("0x27")]((t=>t[Mx("0x2")].isEqual(e[Mx("0x49")])||e[Mx("0x2")][Mx("0x30")](t[Mx("0x49")])))))}function l(t,e){return t[Mx("0x27")]((t=>e[Mx("0x27")]((e=>t[Mx("0x2")][Mx("0x22")](e[Mx("0x49")])))))}t[Mx("0x67")][Mx("0x77")].on(Mx("0x54"),((t,e,n)=>{if(!n[Mx("0x61")][Mx("0x3b")])return;const o=e[Mx("0x10")];if(!o)return;const s=n[Mx("0x79")][Mx("0x20")](o);function r(t){return Array[Mx("0x4e")](t)?t:[t]}s&&Mx("0x5e")===o[Mx("0x7e")]&&(0,x.setHighlightHandling)(s,n[Mx("0x44")],((t,e,n)=>n[Mx("0x70")](r(e[Mx("0x38")]),t)),((t,e,n)=>n[Mx("0x84")](r(e[Mx("0x38")]),t)))}),{priority:Mx("0x3e")}),o[Mx("0x19")][Mx("0x87")]((t=>{if(Mx("0x76")!=t[Mx("0x7d")]&&Mx("0x71")!=t[Mx("0x7d")])return;const e=t.getContainedElement();if(null!=e&&e.is("element","table")){if("insertion"==t[Mx("0x7d")]){const e=t[Mx("0x47")]()[Mx("0x1c")]((t=>t.is(Mx("0x42"))))[Mx("0x8a")]((t=>t[Mx("0x67")]));if(e.length)return{type:"insertion",content:Yo(n,Mx("0x72"),Yo(n,Mx("0x5b"),'"'+e[Mx("0x33")](" ")+'"'))}}if(Mx("0x71")==t[Mx("0x7d")]){const e=t[Mx("0x47")]().filter((t=>t.is(Mx("0x42")))).map((t=>t.data));if(e[Mx("0x83")])return{type:Mx("0x71"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x5b"),'"'+e.join(" ")+'"'))}}}})),o[Mx("0x19")][Mx("0x87")]((t=>{if("tableRow"==t.subType){const e=t[Mx("0x47")]()[Mx("0x1c")]((t=>t.is(Mx("0x42"))))[Mx("0x8a")]((t=>t.data)),o=this[Mx("0x53")](t),s=o[Mx("0x56")]-o[Mx("0xa")]+1;if(Mx("0x76")==t[Mx("0x7d")])return e.length?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x69"),[s,'"'+e[Mx("0x33")](" ")+'"']))}:{type:Mx("0x76"),content:Yo(n,Mx("0x72"),Yo(n,Mx("0x14"),s))};if(Mx("0x71")==t[Mx("0x7d")])return e[Mx("0x83")]?{type:Mx("0x71"),content:Yo(n,Mx("0x9"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x33")](" ")+'"']))}:{type:Mx("0x71"),content:Yo(n,Mx("0x9"),Yo(n,Mx("0x14"),s))}}if(Mx("0x5c")==t.subType){const e=t[Mx("0x47")]().filter((t=>t.is(Mx("0x42"))))[Mx("0x8a")]((t=>t[Mx("0x67")])),o=this._getSuggestionCoords(t),s=o[Mx("0x7c")]-o[Mx("0x64")]+1;if(Mx("0x76")==t[Mx("0x7d")])return e.length?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x59"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x76"),content:Yo(n,Mx("0x72"),Yo(n,Mx("0x68"),s))};if(Mx("0x71")==t[Mx("0x7d")])return e[Mx("0x83")]?{type:Mx("0x71"),content:Yo(n,Mx("0x9"),Yo(n,Mx("0x59"),[s,'"'+e[Mx("0x33")](" ")+'"']))}:{type:Mx("0x71"),content:Yo(n,Mx("0x9"),Yo(n,Mx("0x68"),s))}}})),o[Mx("0x41")][Mx("0x39")](Mx("0x76"),Mx("0x8c"),Mx("0x35"),r),o[Mx("0x41")][Mx("0x39")](Mx("0x71"),Mx("0x8c"),Mx("0x3"),r),o[Mx("0x41")][Mx("0x39")]("insertion","tableColumn",Mx("0x35"),a),o._suggestionFactory[Mx("0x39")]("deletion",Mx("0x5c"),Mx("0x3"),a),o[Mx("0x41")][Mx("0x39")]("insertion",Mx("0x5c"),Mx("0x33"),c),o[Mx("0x41")][Mx("0x39")](Mx("0x71"),Mx("0x5c"),"join",c),o[Mx("0x41")][Mx("0x39")](Mx("0x76"),Mx("0x8c"),Mx("0x33"),l),o._suggestionFactory[Mx("0x39")]("deletion",Mx("0x8c"),Mx("0x33"),l)}[Mx("0x74")](){const t=this[Mx("0x62")],e=t.model[Mx("0x4d")][Mx("0x23")];return(n,o)=>{t[Mx("0x80")][Mx("0x6")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x2")][Mx("0x4b")];x&&x[0]&&!1===x[0][Mx("0x6e")]&&(a=n[0].start[Mx("0x60")]);const c=s.createRangeIn(a);if(Mx("0x5a")==c[Mx("0x3f")][Mx("0x26")])return;const l=Array.from(e[Mx("0x2b")]())[Mx("0x8a")]((t=>i.LiveRange[Mx("0x28")](t)));s[Mx("0x18")](c),t[Mx("0x2a")][Mx("0x1f")](r).refresh(),x[Mx("0x48")]({forceDefaultExecution:!0}),t[Mx("0x3c")](r,...x);const d=l[Mx("0x1c")]((t=>Mx("0x5a")!=t[Mx("0x3f")][Mx("0x26")]));d.length>0&&s[Mx("0x18")](d);for(const t of l)t[Mx("0x4f")]()}))}}[Mx("0xd")](t){const e=this.editor[Mx("0x5")].get(Mx("0x2f"));let n=Number[Mx("0x4")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x4")],r=Number[Mx("0x52")];for(const i of t){if(Mx("0x5a")==i[Mx("0x3f")][Mx("0x26")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i.hasAttribute(Mx("0x89"))?i[Mx("0xe")](Mx("0x89"))-1:0,c=i[Mx("0x81")](Mx("0x40"))?i[Mx("0xe")](Mx("0x40"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x62")],e=t[Mx("0x5")].get(Mx("0x1b")),n=t.plugins.get(Mx("0x2f"));t.model[Mx("0x4d")].on(Mx("0x57"),(()=>{const n=Array[Mx("0x51")](t.model.document[Mx("0x16")][Mx("0x63")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x24")](t);if(Mx("0x3d")!=n)continue;if(null!=o[Mx("0x0")])continue;const i=e[Mx("0x6c")](s);this[Mx("0x11")][Mx("0x7f")](r)&&this[Mx("0xf")][Mx("0x2e")](i)}}),{priority:Mx("0x31")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x25")](t),r=t[Mx("0x43")](Mx("0x29")),i=n.getCellLocation(t);for(const e of this[Mx("0xf")]){const n=e[Mx("0x21")],x=n.startsWith(Mx("0x15")),a=n[Mx("0x8")](x?10:5),c=a.toLowerCase(),l=c.substr(0,3)+Mx("0x50"),d=Mx("0x66")+a,u=Mx("0x36")+a;if(!e[Mx("0x58")])continue;if(r!=e[Mx("0x1a")]()[Mx("0x49")][Mx("0x43")](Mx("0x29")))continue;if(e[Mx("0x13")](s))continue;const g=t[Mx("0x81")](l)?t[Mx("0xe")](l)-1:0,m=this[Mx("0x53")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x80")][Mx("0x4d")][Mx("0x8b")]((e=>{let n=!1;for(const s of t[Mx("0x80")][Mx("0x4d")][Mx("0x16")][Mx("0x6b")]())if("insert"==s[Mx("0x7d")])if(Mx("0x8c")==s[Mx("0x7e")])for(const t of s.position[Mx("0x60")][Mx("0xc")]())n=n||o(t,e);else"tableCell"==s[Mx("0x7e")]&&(n=n||o(s[Mx("0x46")].nodeAfter,e));return n}))}[Mx("0x53")](t){return this[Mx("0xd")](t[Mx("0x2b")]()[Mx("0x8a")]((t=>t.start.nodeAfter)))}}function Ox(t){return Array[Mx("0x51")](new Set(t)[Mx("0x73")]())}const Fx=["commands","subType","cell","fromRange","change","type","table","_tablePostFixingSubtypes","root","get","findAncestor","has","execute","markMultiRangeBlockFormat","model","editor","stop","mergeTableCells","isEnabled","TableUtils","splitTableCellHorizontally","_acceptFormatSuggestionCallbackFactory","rootName","map","markBlockFormat","deletion","value","trackChanges","*Split cell:* vertically","detach","horizontally","document","$graveyard","getFirstPosition","createTableWalker","_areMergableCells","requires","size","refresh","_isForcedDefaultExecutionBlock","mergeTableCellDown","enableCommand","length","*Merge cells*","_suggestionFactory","format","_areSelectedCellsMergable","from","isInContent","*Split cell:* horizontally","splitTableCellVertically","highest","mergeTableCellUp","accept","getSelectionAffectedTableCells","registerCustomCallback","containsRange","getAncestors","element","set:isEnabled","selection","setSelection","commandName","TrackChangesEditing","createRangeOn","formatBlock","mergeTableCellRight","mergeTableCellLeft","find","plugins","author","registerDescriptionCallback","getSuggestions","add","_descriptionFactory","direction","tableCell","insertion","locale"];var Px,Dx;Px=Fx,Dx=256,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("0x11")](){return[wx]}afterInit(){const t=this.editor,e=t[Bx("0x4a")].document[Bx("0x29")],n=t[Bx("0x3b")];if(!t[Bx("0x32")].has("TableEditing"))return;const o=t.plugins.get("TrackChangesEditing"),s=t[Bx("0x32")].get(Bx("0x0")),r=t[Bx("0x32")][Bx("0x45")](wx);r[Bx("0x43")].push(Bx("0x4d")),o[Bx("0x16")](Bx("0x4d"),(()=>{const e=s[Bx("0x23")](t[Bx("0x4a")][Bx("0xc")][Bx("0x29")]);t[Bx("0x4a")].change((()=>{o[Bx("0x49")](e,{commandName:Bx("0x4d"),commandParams:[]},[],Bx("0x4d"))}))})),t[Bx("0x3c")][Bx("0x45")](Bx("0x4d")).on(Bx("0x48"),((e,n)=>{t[Bx("0x3c")][Bx("0x45")](Bx("0x8"))[Bx("0x7")]&&(n.length>0&&n[n.length-1]&&n[n[Bx("0x17")]-1].forceDefaultExecution||o[Bx("0x14")]||this[Bx("0x1b")]()||e.stop())}),{priority:Bx("0x20")});for(const e of[Bx("0x21"),Bx("0x2f"),Bx("0x15"),Bx("0x30")]){const n=t[Bx("0x3c")][Bx("0x45")](e);o[Bx("0x16")](e,(()=>{const e=t[Bx("0x4a")].document[Bx("0x29")][Bx("0xe")]()[Bx("0x26")]()[Bx("0x31")]((t=>t.is(Bx("0x27"),"tableCell"))),s=n[Bx("0x7")];t[Bx("0x4a")][Bx("0x40")]((()=>{o[Bx("0x49")]([e,s],{commandName:Bx("0x4d"),commandParams:[]},[],Bx("0x4d"))}))}))}for(const e of[Bx("0x1f"),Bx("0x1")]){const n=t[Bx("0x3c")].get(e);o[Bx("0x16")](e,(()=>{const r=s[Bx("0x23")](t.model.document[Bx("0x29")])[0],i=r[Bx("0x46")](Bx("0x42")),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0xb")==n[Bx("0x38")]){const t=s[Bx("0xf")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1c")](t)[Bx("0x4")]((t=>t[Bx("0x3e")]))}else{const t=s[Bx("0xf")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1c")](t)[Bx("0x4")]((t=>t[Bx("0x3e")]))}t[Bx("0x4a")][Bx("0x40")]((t=>{o[Bx("0x5")](t[Bx("0x2d")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x37")][Bx("0x34")]((t=>{const{data:e}=t;if(e)return Bx("0x4d")==e[Bx("0x2b")]?{type:Bx("0x1a"),content:Yo(n,Bx("0x18"))}:void 0})),o[Bx("0x37")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x2b")]?{type:Bx("0x1a"),content:Yo(n,Bx("0x9"))}:Bx("0x1")==e[Bx("0x2b")]?{type:Bx("0x1a"),content:Yo(n,Bx("0x1e"))}:void 0}));const x=r[Bx("0x2")]();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x15"),Bx("0x30")])o._suggestionFactory[Bx("0x24")](Bx("0x2e"),t,Bx("0x22"),x);for(const t of[Bx("0x1f"),Bx("0x1")])o._suggestionFactory[Bx("0x24")](Bx("0x2e"),t,Bx("0x22"),x);o[Bx("0x19")].registerCustomCallback(Bx("0x2e"),Bx("0x4d"),Bx("0x22"),(n=>{t.model.change((o=>{const s=Array.from(e.getRanges())[Bx("0x4")]((t=>i.LiveRange[Bx("0x3f")](t)));o.setSelection(n),t.commands[Bx("0x45")]("mergeTableCells")[Bx("0x13")](),t[Bx("0x48")](Bx("0x4d"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0xd")!=t[Bx("0x44")][Bx("0x3")]));r.length>0&&o[Bx("0x2a")](r);for(const t of s)t[Bx("0xa")]()}))}));for(const e of["mergeTableCellUp",Bx("0x15"),"mergeTableCellLeft",Bx("0x2f")]){const n=t[Bx("0x3c")][Bx("0x45")](e);n.on(Bx("0x28"),((e,o,s)=>{if(s){const o=t.model[Bx("0xc")].selection.getFirstPosition()[Bx("0x26")]()[Bx("0x31")]((t=>t.is("element",Bx("0x39"))));this[Bx("0x10")](n[Bx("0x7")],o)||(e.return=!1,e[Bx("0x4c")]())}}),{priority:"low"})}}[Bx("0x1b")](){const t=this[Bx("0x4b")][Bx("0x3c")][Bx("0x45")]("mergeTableCells"),e=this[Bx("0x4b")][Bx("0x32")][Bx("0x45")]("TableUtils");if(!t[Bx("0x4e")])return!1;const n=e[Bx("0x23")](this.editor[Bx("0x4a")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x10")](t,e))return!1;return!0}[Bx("0x10")](t,e){const n=this[Bx("0x4b")][Bx("0x32")][Bx("0x45")](Bx("0x2c")),o=this[Bx("0x4b")][Bx("0x4a")][Bx("0x2d")](t),s=this[Bx("0x4b")][Bx("0x4a")][Bx("0x2d")](e),r=new Set,i=new Set;for(const t of n[Bx("0x35")]())if((Bx("0x3a")==t[Bx("0x41")]||Bx("0x6")==t.type||Bx("0x4d")==t[Bx("0x3d")])&&t[Bx("0x1d")])for(const e of t.getRanges())e[Bx("0x25")](o,!0)&&r[Bx("0x36")](t[Bx("0x41")]+":"+t.author.id),e[Bx("0x25")](s,!0)&&i[Bx("0x36")](t[Bx("0x41")]+":"+t[Bx("0x33")].id);if(r[Bx("0x12")]!=i[Bx("0x12")])return!1;for(const t of r)if(!i[Bx("0x47")](t))return!1;return!0}}const Ux=["has","editing","markerRange","highest","downcastDispatcher","registerDescriptionCallback","commandParams","document","change","table","plugins","setTableColumnHeader","first","data","markBlockFormat","writer","mapper","cell","getRowIndexes","createTableWalker","getSuggestion","activeMarkers","getColumnIndexes","createPositionAfter","forceValue","consume","from","locale","registerCustomCallback","ck-suggestion-marker--active","ck-suggestion-marker-","markerNameToElements","*Format:* %0","editor","addMarker:suggestion","end","last","options","addClass","get","commandName","start","createRange","includes","unbindElementFromMarkerName","formatBlock","FORMAT_REGULAR_COLUMN","stop","TableUtils","TableEditing","setTableRowHeader","headingColumns","item","getSelectionAffectedTableCells","accept","getAttribute","requires","removeClass","bindElementToMarker","format","value","findAncestor","removeMarker:suggestion","index","FORMAT_HEADER_COLUMN","nodeBefore","_suggestionFactory","getChild","FORMAT_HEADER_ROW","consumable","TrackChangesEditing","createPositionBefore","parent","markerName","getCellLocation","enableCommand","FORMAT_REGULAR_ROW","selection","model","commands"];var Gx,Hx;Gx=Ux,Hx=148,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("0x44")](){return[wx]}afterInit(){const t=this[zx("0x2d")];if(!t[zx("0x16")][zx("0xc")](zx("0x3d")))return;const e=t[zx("0x27")],n=t.plugins[zx("0x33")](zx("0x2")),o=t[zx("0x16")][zx("0x33")]("TableUtils"),s=t[zx("0x16")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x5")]),c=n.getSuggestion(a);if(!c[zx("0x19")]||zx("0x17")!=c[zx("0x19")][zx("0x34")])return;if(r[zx("0x40")])return void s[zx("0x3b")]();if(!i[zx("0x1")][zx("0x25")](r[zx("0xe")],s.name))return;const l=r.markerRange[zx("0x35")].nodeAfter,d=r.markerRange[zx("0x2f")][zx("0x4d")],u=l.parent[zx("0x4")],{column:g}=o.getCellLocation(l),{column:m}=o[zx("0x6")](d);for(let s=g;s<=m;s++){const c=o[zx("0x1f")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i.mapper.toViewElement(s);i[zx("0x1b")][zx("0x32")](zx("0x2a")+x,c),e&&i.writer.setAttribute("data-suggestion",a,c),i[zx("0x1c")][zx("0x46")](c,r[zx("0x5")]),t&&(n[zx("0x21")][zx("0x37")](r[zx("0x5")])?i[zx("0x1b")][zx("0x32")](zx("0x29"),c):i.writer[zx("0x45")]("ck-suggestion-marker--active",c))}}}}n[zx("0x7")](zx("0x3e"),((e,s)=>{const r=o[zx("0x41")](t.model[zx("0x13")][zx("0x9")]),i=o[zx("0x1e")](r),x=r[0][zx("0x49")](zx("0x15")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x24")]?s[zx("0x24")]:!t[zx("0xb")][zx("0x33")]("setTableRowHeader")[zx("0x48")],l=c?i[zx("0x30")]:i[zx("0x18")],d=x[zx("0x4f")](l);let u;if(c){const e=x[zx("0x4f")](a);if(d[zx("0x4b")]<e.index)return;u=t[zx("0xa")][zx("0x36")](t.model[zx("0x3")](e[zx("0x4f")](0)),t.model[zx("0x23")](d.getChild(d.childCount-1)))}else{const e=x[zx("0x4f")](a-1);if(!e)return;u=t.model.createRange(t.model.createPositionBefore(d[zx("0x4f")](0)),t[zx("0xa")][zx("0x23")](e[zx("0x4f")](e.childCount-1)))}t[zx("0xa")][zx("0x14")]((()=>{n[zx("0x1a")](u,{commandName:zx("0x3e"),commandParams:[{forceValue:c}]},[],zx("0x3e"))}))})),n[zx("0x7")]("setTableColumnHeader",((e,o)=>{const s=t.plugins[zx("0x33")](zx("0x3c")),r=s[zx("0x41")](t.model.document[zx("0x9")]),i=s[zx("0x22")](r),x=r[0][zx("0x49")]("table"),a=x[zx("0x43")](zx("0x3f"))||0,c=o&&null!==o[zx("0x24")]?o[zx("0x24")]:!t[zx("0xb")][zx("0x33")](zx("0x17")).value;let l;const d=x.getChild(0),u=c?i.last:i.first,g=s[zx("0x1f")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x26")](g)[0][zx("0x1d")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t.model[zx("0x36")](t.model[zx("0x3")](e),t[zx("0xa")].createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0xa")][zx("0x36")](t[zx("0xa")][zx("0x3")](m),t[zx("0xa")][zx("0x23")](e))}t.model[zx("0x14")]((()=>{n[zx("0x1a")](l,{commandName:zx("0x17"),commandParams:[{forceValue:c}]},[],zx("0x17"))}))})),t.editing[zx("0x10")].on(zx("0x2e"),r(),{priority:zx("0xf")}),t.data[zx("0x10")].on(zx("0x2e"),((t,e,n)=>{n[zx("0x31")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0xf")}),t[zx("0xd")].downcastDispatcher.on(zx("0x4a"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e.markerName),i=n[zx("0x20")](r);if(!i[zx("0x19")]||zx("0x17")!=i[zx("0x19")].commandName)return;const x=o[zx("0x1c")][zx("0x2b")](e[zx("0x5")]);if(x)for(const t of x)o.writer.removeClass(zx("0x2a")+s,t),o[zx("0x1b")][zx("0x45")](zx("0x29"),t),o[zx("0x1b")].removeAttribute("data-suggestion",t),o[zx("0x1c")][zx("0x38")](t,e[zx("0x5")])}),{priority:zx("0xf")}),n._descriptionFactory[zx("0x11")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x34")]){const t=n[zx("0x12")][0][zx("0x24")];return o(Yo(e,zx(t?"0x0":"0x8")))}if(zx("0x17")==n.commandName){const t=n[zx("0x12")][0][zx("0x24")];return o(Yo(e,zx(t?"0x4c":"0x3a")))}}function o(t){return{type:zx("0x47"),content:Yo(e,zx("0x2c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[zx("0x4e")].registerCustomCallback(zx("0x39"),"setTableRowHeader",zx("0x42"),i),n._suggestionFactory[zx("0x28")](zx("0x39"),zx("0x17"),zx("0x42"),i)}}const Vx=["getSuggestionCallback","reduce","showSuggestionHighlights","find","getSelectionAffectedTableCells","previous","commands","newRange","getRange","push","getMarkers","tableCellBorderStyle","tablePasteColumn","author","registerCustomCallback","getChildren","$graveyard","insertion","forceDefaultExecution","getChanges","accept","requires","last","options","has","_suggestionFactory","tablePasteRow","first","_tablePostFixingSubtypes","insertRows","*Replace table cells*","previousSibling","getContainedElement","nextSibling","listenTo","insertContent","tablePaste","tableCellBorderWidth","_getCoordsForCells","suggestion-td","differ","getChild","registerPostFixer","_isForcedDefaultExecutionBlock","map","_descriptionFactory","unwrap","deletion","rowInsertionRanges","hasSuggestion","markerAttributes","from","every","add","paragraph","isEqual","high","stop","isEmpty","trackChanges","content","selection","row","wrap","attributes","suggestion:formatBlock:tablePasteCell","end","rowInsertionIndexes","includes","markMultiRangeBlockFormat","createRangeOn","document","schema","startsWith","markers","getRows","createRangeIn","getShiftedBy","plugins","markMultiRangeInsertion","insert","tableCellBorderColor","cells","filter","tableCellVerticalAlignment","containsRange","root","value","getRowIndexes","TableClipboard","change","remove","tableCellHorizontalAlignment","getAttributes","getRanges","tableCell","oldRange","removeMarkers","TrackChangesEditing","subType","markMultiRangeDeletion","nodeAfter","discard","formatBlock","locale","_replaceTableSlotCell","endColumn","fill","createRange","join","conversion","rootName","markerName","entries","rows","start","name","getAllAdjacentSuggestions","ck-suggestion-marker--active","length","tableCellPadding","isInContent","TableUtils","setAttribute","endRow","tablePasteCell","removeRows","type","removeMarker","suggestionLoaded","columns","columnInsertionIndexes","registerDescriptionCallback","return","position","findAncestor","_splitMarkerName","table","_createdBatches","editor","tableCellSuggestion","for","batch","getColumnIndexes","fromEntries","model","ck-suggestion-marker-insertion","suggestion","clipboardOutput","dataDowncast","get","set","afterInit","low","insertColumns","tablePasteChainId","Users","createElement","redo","getSuggestions","element","createTableWalker","activeMarkers"];var Kx,qx;Kx=Vx,qx=108,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5c"),Xx("0x88"),Xx("0x42"),Xx("0x93"),Xx("0x8b"),"tableCellBackgroundColor",Xx("0xc")],Jx=Object[Xx("0x24")]($x[Xx("0x63")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x4c")](){return[wx]}[Xx("0x2c")](){const t=this[Xx("0x1f")];if(!t[Xx("0x85")][Xx("0x4f")](Xx("0x90")))return;const n=t[Xx("0x85")].get(Xx("0x99")),o=t[Xx("0x85")][Xx("0x2a")](Xx("0xe")),s=t[Xx("0x85")][Xx("0x2a")](wx),r=t[Xx("0x85")][Xx("0x2a")](Xx("0x90"));s[Xx("0x53")][Xx("0x40")]("tablePasteRow",Xx("0x43")),t.model[Xx("0x7f")].register(Xx("0x20"),{allowIn:"tableCell",allowContentOf:Xx("0x96"),isLimit:!0}),t[Xx("0x2")].elementToElement({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t[Xx("0x25")].on(Xx("0x5a"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0xb")]-1];l&&l[Xx("0x49")]||n[Xx("0x62")]||this[Xx("0x1f")][Xx("0x3d")][Xx("0x2a")](Xx("0x72"))[Xx("0x8e")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x3b")](n.document[Xx("0x74")]);if(!i[Xx("0xb")])return!1;const x=i[0].findAncestor(Xx("0x1d")),a=o[Xx("0x8f")](i),c=o[Xx("0x23")](i),l={startRow:a.first,endRow:a[Xx("0x4d")],startColumn:c[Xx("0x52")],endColumn:c[Xx("0x4d")]};return 1==i.length&&(l[Xx("0x10")]+=o[Xx("0x82")](r)-1,l[Xx("0xa1")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x25")],o,r)&&(s[Xx("0x70")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x25")][Xx("0x91")]((()=>{t.model[Xx("0x5a")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0xb")]&&n[Xx("0x86")](s,Xx("0x51"),{tablePasteChainId:o}),r.length&&n[Xx("0x86")](r,Xx("0x43"),{tablePasteChainId:o}),a[Xx("0xb")]&&n[Xx("0x86")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x9b")](c,Xx("0x5b"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x7c")](l[Xx("0x63")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x11"),{tablePasteChainId:o});if(d){const e=d[Xx("0x41")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e.find((t=>t[Xx("0x3f")]()[Xx("0x6e")](r)));i&&n[Xx("0x40")]([i[Xx("0x8")],s])}n[Xx("0xb")]&&d[Xx("0xf")]("markerAttributes",Object[Xx("0x24")](n))}i=null})))}),{priority:e.priorities[Xx("0x6f")]+10}),t[Xx("0x85")][Xx("0x2a")](Xx("0x90")).on(Xx("0xa0"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x70")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x19")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x92")](r[Xx("0x60")](0));for(const t of Array[Xx("0x6a")](x.getChildren()))s[Xx("0x87")](t,r,Xx("0x79"));const t=i.rowInsertionIndexes[Xx("0x7b")](n[Xx("0x75")]),e=i.columnInsertionIndexes[Xx("0x7b")](n.column);t||e||(l=s[Xx("0x83")](r))}else c&&!a&&(d=s[Xx("0x83")](r));else{const t=s.createElement(Xx("0x20")),e=s[Xx("0x31")](Xx("0x20"));s[Xx("0x76")](s[Xx("0x83")](r),e),s[Xx("0x87")](t,r,0);for(const e of Array[Xx("0x6a")](x[Xx("0x46")]()))s.insert(e,t,"end");l=s[Xx("0x7d")](t),d=s.createRangeOn(e)}const u=Array.from(x[Xx("0x94")]()).filter((([t])=>$x[Xx("0x7b")](t)));i[Xx("0x89")][Xx("0x40")]({element:r,attributes:u[Xx("0xb")]?Object[Xx("0x24")](u):null}),l&&i.insertionRanges.push(l),d&&i.deletionRanges[Xx("0x40")](d)}),{priority:Xx("0x6f")}),o.on(Xx("0x2e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x16")]||1;i[Xx("0x17")]=new Array(a)[Xx("0xa2")](x)[Xx("0x63")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x35")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[Xx("0x40")](t.model[Xx("0x7d")](e))}),{priority:Xx("0x2d")}),o.on(Xx("0x54"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x6")]||1;i[Xx("0x7a")]=new Array(a)[Xx("0xa2")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x67")].push(t.model[Xx("0x7d")](e))}),{priority:Xx("0x2d")}),n[Xx("0x64")][Xx("0x18")]((e=>{if(e.subType&&e.subType[Xx("0x80")]("tablePaste"))return e[Xx("0x3c")]?{}:{type:Xx("0x48"),content:Yo(t[Xx("0x9f")],Xx("0x55"))}}));const x=()=>{};for(const t of[Xx("0x5b"),Xx("0x43"),Xx("0x51"),Xx("0x11")])n._suggestionFactory[Xx("0x45")](Xx("0x48"),t,Xx("0x1"),x),n._suggestionFactory[Xx("0x45")](Xx("0x66"),t,"join",x);n._suggestionFactory[Xx("0x45")](Xx("0x9e"),"tablePasteCell",Xx("0x9d"),x),n[Xx("0x50")][Xx("0x45")]("formatBlock",Xx("0x11"),Xx("0x4b"),((e,n,o)=>{const s=e[Xx("0x63")]((t=>t[Xx("0x57")]()))[Xx("0x8a")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x89")])e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x5")](o[Xx("0x69")])){const o=t[Xx("0x25")][Xx("0x81")][Xx("0x2a")](e),s=o?o[Xx("0x3f")]()[Xx("0x57")]():null;s&&r[Xx("0x2b")](s,n)}t.model[Xx("0x91")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x45")](e,Xx("0x5b"),o,((s,r,i)=>{t[Xx("0x25")][Xx("0x91")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x7")][Xx("0x9c")];e.is("element",Xx("0x20"))&&x[Xx("0x40")](e)}n[Xx("0x50")][Xx("0x37")](e,null,o)(s,r,i);for(const e of x)Xx("0x47")!=e[Xx("0x8d")][Xx("0x3")]&&t[Xx("0x65")](e)}))}))};a("insertion",Xx("0x4b")),a(Xx("0x48"),Xx("0x9d")),a(Xx("0x66"),Xx("0x4b")),a("deletion",Xx("0x9d")),n[Xx("0x50")][Xx("0x45")](Xx("0x48"),"tablePasteRow","discard",(t=>{const e=t[Xx("0x63")]((t=>t.getContainedElement())),n=e[0][Xx("0x1b")]("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x12")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x45")](Xx("0x48"),"tablePasteColumn",Xx("0x9d"),(t=>{const e=t.map((t=>t[Xx("0x57")]())),n=e[0][Xx("0x1b")]("table"),{minColumn:r,maxColumn:i}=s[Xx("0x5d")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x9a")]||!e[Xx("0x9a")][Xx("0x80")]("tablePaste"))return;const o=e[Xx("0x77")][Xx("0x2f")],s=n[Xx("0x33")]()[Xx("0x8a")]((t=>t[Xx("0xd")]&&t[Xx("0x77")]&&t[Xx("0x77")][Xx("0x2f")]==o));s[Xx("0xb")]&&e[Xx("0x9")]().length!=s[Xx("0xb")]&&s[Xx("0x38")](((t,e)=>(t.next=e,e[Xx("0x3c")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x1c")](t[Xx("0x4")]),s=["ck-suggestion-marker",Xx("0x26")],r=n[Xx("0x36")][Xx("0x7b")](t[Xx("0x4")]);return r&&s[Xx("0x40")](Xx("0xa")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x15"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Xx("0x25")][Xx("0x7e")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x6a")](t.model[Xx("0x7e")][Xx("0x5f")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x1c")](s);if(Xx("0x27")!=o||"deletion"!=i||r[Xx("0x97")])continue;if(!n[Xx("0x68")](x))continue;const a=n.getSuggestion(x)[Xx("0x95")](),c=t.plugins[Xx("0x2a")](Xx("0x30")).me;for(const t of n[Xx("0x33")]())if(t[Xx("0xd")]&&t[Xx("0x44")]==c&&Xx("0x9e")==t[Xx("0x13")]&&Xx("0x11")==t.subType&&t[Xx("0x95")]()[Xx("0x6b")]((t=>a.some((e=>e[Xx("0x8c")](t,!0))))))for(const n of t[Xx("0x9")]())n[Xx("0xd")]&&(n[Xx("0x9d")](),e=!0)}return e})),t[Xx("0x25")][Xx("0x7e")][Xx("0x61")]((e=>{const o=t[Xx("0x3d")][Xx("0x2a")](Xx("0x32"));if(!o||!o[Xx("0x1e")][Xx("0x4f")](e[Xx("0x22")]))return!1;let s=!1;const r=t.plugins[Xx("0x2a")]("Users").me,i=t[Xx("0x25")][Xx("0x7e")][Xx("0x5f")][Xx("0x4a")](),x=Array[Xx("0x6a")](t.model[Xx("0x7e")][Xx("0x5f")].getChangedMarkers())[Xx("0x8a")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x1c")](t);return Xx("0x27")==o&&Xx("0x5b")==s&&i==r.id&&!e[Xx("0x97")]}));for(const t of i){if("insert"!=t.type||Xx("0x20")!=t.name||1!=t[Xx("0xb")])continue;const n=e[Xx("0x0")](t[Xx("0x1a")],t[Xx("0x1a")][Xx("0x84")](1));if(!x[Xx("0x3a")]((({data:t})=>t[Xx("0x3e")][Xx("0x6e")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x8c")](o[Xx("0x3e")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[Xx("0x25")].document[Xx("0x61")]((e=>{let o=!1;const s=t[Xx("0x85")][Xx("0x2a")](Xx("0x30")).me,r=n[Xx("0x33")]()[Xx("0x8a")]((t=>t[Xx("0xd")]&&t[Xx("0x44")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x5b")==t[Xx("0x9a")])for(const e of t[Xx("0x41")]()){const n=e.getRange()[Xx("0x57")]();if(n)if(n.is(Xx("0x34"),"tableCellSuggestion")&&Zx(n)){t[Xx("0x14")](e[Xx("0x8")]),i[Xx("0x6c")](n),o=!0;const s=n[Xx("0x58")],r=n[Xx("0x56")],a=s&&s.is(Xx("0x34"),"tableCellSuggestion"),c=r&&r.is(Xx("0x34"),Xx("0x20"));a&&!i[Xx("0x4f")](s)&&x[Xx("0x6c")](s),c&&!i.has(r)&&x[Xx("0x6c")](r)}else n.is(Xx("0x34"),Xx("0x6d"))&&n[Xx("0x71")]&&(t[Xx("0x14")](e[Xx("0x8")]),o=!0)}else if("tablePasteCell"==t[Xx("0x9a")]){if(!t[Xx("0x77")]||!t[Xx("0x77")][Xx("0x2f")])continue;const e=t[Xx("0x77")][Xx("0x69")];if(e&&Object.keys(e)[Xx("0xb")])continue;const n=t[Xx("0x77")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e.subType[Xx("0x80")]("tablePaste")){if(!e[Xx("0x77")][Xx("0x2f")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x77")][Xx("0x2f")]==n){s=!1;break}}i&&s&&(t[Xx("0x98")](),o=!0)}for(const t of i)e[Xx("0x92")](t);for(const t of x)e[Xx("0x65")](t);return o})),t[Xx("0x2")].for("editingDowncast").markerToHighlight({model:Xx("0x78"),view:(t,e)=>l(t),converterPriority:Xx("0x6f")}),t.conversion[Xx("0x21")](Xx("0x29")).markerToHighlight({model:Xx("0x78"),view:(t,e)=>e[Xx("0x4e")][Xx("0x39")]?l(t,!1):null,converterPriority:"high"});const d=t.editing.view;this[Xx("0x59")](d.document,Xx("0x28"),((t,e)=>{const n=[];for(const t of d[Xx("0x83")](e[Xx("0x73")]).getItems())t.is(Xx("0x34"),Xx("0x5e"))&&n[Xx("0x40")](t);d.change((t=>{for(const e of n)t.move(t[Xx("0x83")](e),t.createPositionBefore(e)),t[Xx("0x92")](e)}))}))}}function Zx(t){if(t[Xx("0x71")])return!0;const e=t[Xx("0x60")](0);return e.is(Xx("0x34"),Xx("0x6d"))&&e.isEmpty}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=["data","getSuggestionCallback","editor","getSelectedElement","enableCommand","locale","registerDescriptionCallback","author","getAttribute","registerCustomCallback","handleSuggestionDescription","commandParams","resizeTable","handleResizeTableWidthCommand","resizeColumnWidths","bind","change","plugins","tableWidth","Users","format","resizeTableWidth","formatBlock","formatGroupId","subType","columnWidths","markBlockFormat","getTableColumnsWidths","has","get","getContainedElement","getSuggestions","_suggestionFactory","_descriptionFactory","model","TrackChangesEditing","accept","table","TableColumnResizeEditing","selection","discard"];var ea,na;ea=ta,na=141,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("0x19")][oa("0x28")][oa("0xa")](oa("0x14")))return;const t=this[oa("0x19")].plugins[oa("0xb")](oa("0x11"));t[oa("0x1b")](oa("0x3"),this.handleResizeTableWidthCommand.bind(this)),t.enableCommand(oa("0x25"),this[oa("0x24")].bind(this)),t[oa("0xe")][oa("0x20")](oa("0x4"),oa("0x23"),oa("0x12"),t._suggestionFactory.getSuggestionCallback(oa("0x4"),null,oa("0x16"))),t[oa("0xe")][oa("0x20")](oa("0x4"),oa("0x23"),oa("0x16"),t[oa("0xe")][oa("0x18")](oa("0x4"),null,oa("0x12"))),t[oa("0xf")][oa("0x1d")](this[oa("0x21")][oa("0x26")](this))}[oa("0x24")](t,e){const n=this.editor.plugins[oa("0xb")](oa("0x11")),o=this.editor[oa("0x28")][oa("0xb")](oa("0x14")),s=e[oa("0x13")]||this.editor[oa("0x10")].document[oa("0x15")][oa("0x1a")]();this[oa("0x19")][oa("0x10")][oa("0x27")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[oa("0x9")](r):null,x=s[oa("0x1f")](oa("0x0"))||null;const a=e[oa("0x0")]||x,c=e[oa("0x7")]||i,l=this.editor[oa("0x28")][oa("0xb")](oa("0x1")).me;for(const t of n[oa("0xd")]()){const e=t[oa("0xc")]();if("resizeTable"===t[oa("0x6")]&&e===s){t[oa("0x1e")]!==l&&t[oa("0x16")]();const e=t[oa("0x17")][oa("0x22")];x=e[0][oa("0x0")],i=e[0][oa("0x7")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x8")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x23"))}))}[oa("0x21")](t){const{data:e}=t;if(e&&oa("0x23")===e[oa("0x5")]){const t="*Format:* resize table";return{type:oa("0x2"),content:Yo(this[oa("0x19")][oa("0x1c")],t)}}}}const ra=["insertTemplate","plugins","get","enableCommand","editor","TrackChangesEditing","has"];var ia,xa;ia=ra,xa=344,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("0x3")];t[aa("0x0")][aa("0x5")]("Template")&&t[aa("0x0")][aa("0x1")](aa("0x4"))[aa("0x2")](aa("0x6"))}}const la=["locale","_descriptionFactory","editor","commands","plugins","get","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","afterInit","TrackChangesEditing","registerElementLabel","enableCommand"];var da,ua;da=la,ua=353,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x3")](){const t=this[ga("0x9")];if(!t[ga("0xa")][ga("0x0")](ga("0x2")))return;t[ga("0xb")][ga("0x0")](ga("0x4"))[ga("0x6")](ga("0x2"));const e=t[ga("0xb")][ga("0x0")](ga("0x4")),n=t[ga("0x7")];e[ga("0x8")][ga("0x5")]("tableOfContents",(t=>Yo(n,ga("0x1"),t)))}}const fa=["createRange","isTouching","isCollapsed","ELEMENT_TITLE","schema","updateMarker","document","getChangedMarkers","title-content","suggestion","isEqual","TrackChangesEditing","afterInit","Title","locale","removeMarker","registerElementLabel","nodeBefore","plugins","has","get","newRange","from","start","end","editor","differ","model"];var ha,pa;ha=fa,pa=196,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xc")](){const t=this[ba("0x19")];if(!t[ba("0x12")][ba("0x13")](ba("0xd")))return;const e=t[ba("0x12")][ba("0x14")](ba("0xb"));e._descriptionFactory[ba("0x10")]("title-content",(()=>Yo(t[ba("0xe")],ba("0x3")))),t[ba("0x1b")][ba("0x6")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x16")](t[ba("0x1b")][ba("0x6")][ba("0x1a")][ba("0x7")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x9")!==s||!i[ba("0x15")])continue;const x=i.newRange,a=x[ba("0x18")][ba("0x11")];if(!a||!a.is("element",ba("0x8")))continue;if(!x.start[ba("0x1")](x[ba("0x18")]))continue;const c=t[ba("0x1b")][ba("0x4")].getNearestSelectionRange(x[ba("0x18")],"forward");if(c&&c[ba("0x2")]){const t=n[ba("0x0")](x.start,c[ba("0x17")]);t[ba("0xa")](x)||(n[ba("0x5")](r,{range:t}),o=!0)}o||(n[ba("0xf")](r),o=!0)}return o}))}}const _a=["plugins","afterInit","enableCommand","undo","UndoEditing","has","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=333,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this.editor,e=t.plugins.get(ya("0x2"));t[ya("0x3")][ya("0x1")](ya("0x0"))&&(e[ya("0x5")](ya("0x6")),e[ya("0x5")]("redo"))}}const Aa=["requires","plugins","afterInit","enableCommand","has","TrackChangesEditing","editor"];var va,Ra;va=Aa,Ra=259,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("0x0")](){return[wx]}[Sa("0x2")](){const t=this[Sa("0x6")];t.plugins[Sa("0x4")]("TableCaptionEditing")&&t[Sa("0x1")].get(Sa("0x5"))[Sa("0x3")]("toggleTableCaption")}}const La=["length","DocumentListUtils","_getSuggestionBlocksForListStyle","TrackChangesEditing","DocumentListPropertiesUtils","isFirstBlockOfListItem","from","list.properties","change","isListItemBlock","get","push","ELEMENT_","afterInit","listStart","*Format:* set order to regular","commandName","*Format:* set order to reversed","expandListBlocksToCompleteList","config","_getSuggestionBlocks","styles","editor","has","startIndex","listType","handleListReversedCommand","listStyle","type","markMultiRangeBlockFormat","format","_descriptionFactory","bind","getSelectedBlocks","getAttribute","model","toUpperCase","_getTranslationKeyForListStyle","handleListStyleCommand","reversed","locale","selection","*Format:* set start index to %0","commandParams","replace","registerDescriptionCallback","enableCommand","handleListStartCommand","plugins","document","handleDescriptions","filter","listReversed"];var Na,Ma;Na=La,Ma=354,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1e")](){if(!this[wa("0x27")].plugins[wa("0x28")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x27")][wa("0x24")][wa("0x1b")](wa("0x18")),e=this[wa("0x27")][wa("0xc")][wa("0x1b")](wa("0x14"));t[wa("0x26")]&&e[wa("0xa")](wa("0x2c"),this[wa("0x2")][wa("0x31")](this)),t.reversed&&e[wa("0xa")](wa("0x10"),this[wa("0x2b")][wa("0x31")](this)),t[wa("0x29")]&&e[wa("0xa")](wa("0x1f"),this[wa("0xb")].bind(this)),e[wa("0x30")][wa("0x9")](this[wa("0xe")][wa("0x31")](this))}[wa("0x2")](t,e={}){const n=this[wa("0x27")][wa("0xc")][wa("0x1b")](wa("0x14")),o=this._getSuggestionBlocksForListStyle();this.editor.model[wa("0x19")]((()=>{n[wa("0x2e")](o,{commandName:wa("0x2c"),commandParams:[{type:e[wa("0x2d")]}],formatGroupId:wa("0x2c")})}))}[wa("0x2b")](t,e={}){const n=this.editor[wa("0xc")][wa("0x1b")]("TrackChangesEditing"),o=this[wa("0x27")].plugins[wa("0x1b")](wa("0x12")),s=this[wa("0x25")]((t=>o[wa("0x1a")](t)&&"numbered"===t.getAttribute("listType")));null!==s&&this.editor[wa("0x34")][wa("0x19")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x10"),commandParams:[{reversed:e[wa("0x3")]}],formatGroupId:"listReversed"})}))}[wa("0xb")](t,e={}){const n=this[wa("0x27")][wa("0xc")].get(wa("0x14")),o=this[wa("0x27")].plugins[wa("0x1b")](wa("0x12")),s=this[wa("0x25")]((t=>o[wa("0x1a")](t)&&"numbered"===t[wa("0x33")](wa("0x2a"))));null!==s&&this.editor[wa("0x34")][wa("0x19")]((()=>{n[wa("0x2e")](s,{commandName:"listStart",commandParams:[{startIndex:e[wa("0x29")]}],formatGroupId:wa("0x1f")})}))}[wa("0xe")](t){const e=this[wa("0x27")][wa("0x4")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x21")]){case wa("0x2c"):o="*Change to:* %0",s={type:wa("0x2f"),content:Yo(e,o,Yo(e,this[wa("0x1")](n.commandParams[0][wa("0x2d")])))};break;case wa("0x10"):o=n.commandParams[0][wa("0x3")]?wa("0x22"):wa("0x20"),s={type:wa("0x2f"),content:Yo(e,o)};break;case wa("0x1f"):o=wa("0x6"),s={type:wa("0x2f"),content:Yo(e,o,n[wa("0x7")][0].startIndex)}}return s}[wa("0x13")](){const t=this[wa("0x27")][wa("0xc")].get(wa("0x12"));let e=Array.from(this[wa("0x27")].model[wa("0xd")][wa("0x5")][wa("0x32")]());return e[wa("0x1c")](...t[wa("0x23")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[wa("0xc")][wa("0x1b")](wa("0x12"));let n=Array[wa("0x17")](this[wa("0x27")][wa("0x34")][wa("0xd")][wa("0x5")][wa("0x32")]())[wa("0xf")](t);if(!n[wa("0x11")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x16")](t)&&o[wa("0x1c")](t);return o}[wa("0x1")](t){return wa("0x1d")+this[wa("0x27")].plugins[wa("0x1b")](wa("0x15")).getListTypeFromListStyleType(t)[wa("0x0")]()+"_LIST_"+t[wa("0x0")]()[wa("0x8")](/-/g,"_")}}const Fa=["tableHeight","enqueueChange","locale","has","change","TableCellPropertiesEditing","data","registerCustomCallback","tableCellProperties","_handlePropertyChange","TablePropertiesEditing","batch","tableBorderStyle","get","model","format","document","plugins","getAttribute","tableWidth","commandParams","tableBackgroundColor","enableCommand","markBlockFormat","accept","selection","subType","tableBorderWidth","*Format:* change table cell properties","table","tableCellBackgroundColor","tableProperties","findAncestor","TrackChangesEditing","handleDiscardAction","tableCellVerticalAlignment","tableBorderColor","editor","afterInit","discard","_getSuggestion","tableAlignment","tableCellHeight","join","tableCellBorderStyle","tableCellBorderWidth","getSuggestionCallback","removeAttribute","getContainedElement","tableCellBorderColor","handleSuggestionDescription","start","_descriptionFactory","_suggestionFactory","formatBlock"];var Pa,Da;Pa=Fa,Da=357,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("0x4")]=[Ba("0x9"),Ba("0x28"),Ba("0x0"),Ba("0xe"),Ba("0x2f"),Ba("0x1c"),Ba("0x31")],this[Ba("0x24")]=[Ba("0x16"),Ba("0x11"),Ba("0x12"),"tableCellPadding","tableCellWidth",Ba("0xf"),Ba("0x3"),"tableCellHorizontalAlignment",Ba("0x8")]}static get pluginName(){return"TrackChangesTableProperties"}[Ba("0xb")](){const t=this[Ba("0xa")].plugins[Ba("0x29")](Ba("0x6"));if(this[Ba("0xa")][Ba("0x2d")][Ba("0x1f")](Ba("0x26"))){for(const e of this[Ba("0x4")])t[Ba("0x32")](e,((t,n)=>{const o=this.editor[Ba("0x2a")][Ba("0x2c")][Ba("0x35")].getFirstPosition()[Ba("0x5")](Ba("0x2"));this[Ba("0x25")](e,[o],this[Ba("0x4")],Ba("0x4"),t,n)}));t[Ba("0x1a")][Ba("0x23")](Ba("0x1b"),"tableProperties",Ba("0x34"),t[Ba("0x1a")].getSuggestionCallback(Ba("0x1b"),null,Ba("0xc"))),t[Ba("0x1a")][Ba("0x23")](Ba("0x1b"),Ba("0x4"),"discard",((t,e)=>this[Ba("0x7")](this.tableProperties,t,e))),t[Ba("0x1a")].registerCustomCallback(Ba("0x1b"),"tableProperties",Ba("0x10"),(()=>!1))}if(this[Ba("0xa")].plugins.has(Ba("0x21"))){for(const e of this[Ba("0x24")])t[Ba("0x32")](e,((t,n)=>{const o=this[Ba("0xa")].plugins.get("TableUtils").getSelectionAffectedTableCells(this[Ba("0xa")][Ba("0x2a")][Ba("0x2c")][Ba("0x35")]);this[Ba("0x25")](e,o,this[Ba("0x24")],Ba("0x24"),t,n)}));t._suggestionFactory[Ba("0x23")](Ba("0x1b"),Ba("0x24"),"accept",t[Ba("0x1a")][Ba("0x13")](Ba("0x1b"),null,Ba("0xc"))),t[Ba("0x1a")][Ba("0x23")]("formatBlock",Ba("0x24"),Ba("0xc"),((t,e)=>this[Ba("0x7")](this[Ba("0x24")],t,e))),t[Ba("0x1a")][Ba("0x23")](Ba("0x1b"),Ba("0x24"),"join",(()=>!1))}t[Ba("0x19")].registerDescriptionCallback((t=>this[Ba("0x17")](t)))}[Ba("0x25")](t,e,n,o,s,r){const i=this[Ba("0xa")][Ba("0x2d")].get(Ba("0x6"));this[Ba("0xa")][Ba("0x2a")][Ba("0x1d")](r[Ba("0x27")],(()=>{for(const t of e)if(this[Ba("0xd")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2e")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x33")](t,{commandParams:[e]},[],o)}}))}[Ba("0x7")](t,e,n){const o=e[0][Ba("0x18")].nodeAfter,s=n[Ba("0x30")][0];this.editor[Ba("0x2a")][Ba("0x20")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x14")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x22")])switch(t[Ba("0x36")]){case Ba("0x4"):return{type:Ba("0x2b"),content:Yo(this[Ba("0xa")].locale,"*Format:* change table properties")};case Ba("0x24"):return{type:"format",content:Yo(this.editor[Ba("0x1e")],Ba("0x1"))}}}[Ba("0xd")](t,e){const n=this[Ba("0xa")].plugins[Ba("0x29")](Ba("0x6"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x15")]();if(o[Ba("0x36")]===e&&n===t)return o}return null}}const Ua=["trackChanges.mergeNestedSuggestions","isSelectable","$graveyard","editingDowncast","add","isAtStart","getMultiRangeId","suggestion-type","getCommentThread","removed","getSuggestionCallback","newRange","createPositionAt","track-changes-command-not-found","isCollapsed","authoredAt","markers","commandName","formatBlock","get","fetchCommentThread","forward","stop","deletion:join","change:activeMarkers","from","_isForcedDefaultExecutionBlock","registerCustomCallback","deleteContent","plugins","addCommentThread","group","markerNameToElements","containsRange","change:_saved","fire","previous","discardSuggestion","unbindElementFromMarkerName","map","type","formatInline:","_splitMarkerName","consume","formatGroupId","track-changes-suggestion-data-mismatch","removeAttribute","markMultiRangeInsertion","formatBlock:join","mapper","createRange","_setSuggestionRange","insertContent","nodeBefore","change","getAncestors","ready","_createSuggestion","substr","start","error-saving-suggestion-data-suggestion-discarded","markDeletion","delete","insertion:","isLimit","isEqual","high","removeClass","trackChangesCommand","split","pluginName","catch","some","track-changes-suggestion-not-found","createElement","editor","deletion","addMarkerName","isExternal","_rangeIsInLocalUserInsertion","$marker","getSuggestion","toViewElement","isObject","commentThread","getLastMatchingPosition","batch","ck-suggestion-marker--active","_commentsRepository","_suggestionFactory","change:data","getAllAdjacentSuggestions","commands","forceDefaultExecution","acceptSelectedSuggestions","_getSuggestionData","_saved","TrackChangesEditing","ck-suggestion-marker","isBlock","markInsertion","containsItem","addMarker:suggestion","isOwn","enableReadOnlyMode","end","push","track-changes-adapter-missing-getsuggestion","fromRange","selection","suggestion:","_checkSuggestionCorrectness","markBlockFormat","differ","return","_defaultCallbacks","getRange","join","createSelection","getRanges","isMultiRange","getItems","CommentsRepository","isNextTo","editing","after","data","rejected","howMany","suggestion","_customCallbacks","init","_adapter","getCustomProperty","getShiftedBy","element","parent","getWalker","insertion:discard","multipleBlocks","ck-suggestion-marker-formatBlock","skipNestingCheck","_registerDefaultCallbacks","consumable","containsRangeInObject","_model","markerToHighlight","schema","bindElementToMarker","markerName","@external","_suggestions","insertion:join","toJSON","_onDiscard","accept","markInlineFormat","isLocal","addHighlight","range","length","discardAllSuggestions","config","_trackFormatChanges","formatBlock:accept","dataDowncast","markMultiRangeDeletion","collaboration.channelId","stopListening","deletion:chain","_addSuggestionMarker","containsPosition","isAfter","locale","_addThreadToSuggestion","detach","isInsideObject","_descriptionFactory","addSuggestion","suggestionLoaded","discardSelectedSuggestions","suggestionChanged","addSuggestionData","then","authorName","removeComment","lowest","document","markMultiRangeBlockFormat","enableCommand","Users","creator","getFirstRange","default","_editor","formatBlock:chain","activeMarkers","PendingActions","_removeSuggestion","every","getAttribute","value","addRange","addClass","getChanges","addUser","updateSuggestion","createPositionBefore","dataToMarker","data-suggestion","accepted","formatInline:chain","root","acceptAllSuggestions","adapter","_cutOutSuggestionMarker","size","_joinSuggestions","removeMarker:suggestion:formatBlock","formatInline:join","track-changes-user-not-found","_findSuggestions","getIntersection","attributes","PENDING_ACTION_SUGGESTION","trackChanges.trackFormatChanges","upcast","update:suggestion","author","originalSuggestionId","formatBlock:discard","getChangedMarkers","_suggestionState","position","nodeAfter","oldRange","execute","getFirstMarker","createdAt","createPositionAfter","highest","isDocumentOperation","isIntersectingWithRange","listenTo","formatInline","addMarker:suggestion:formatBlock","updateMarker","isTouching","item","suggestionUnloaded","setTo","values","_enabledCommands","name","_joinWithAdjacentSuggestions","getUser","_getExternalAuthor","hasComments","buildSuggestion","notReady","filter","insertion","set","multi","move","next","isUndo","setAttribute","elementToElement","showSuggestionHighlights","getNearestSelectionRange","splitPosition","for","elementEnd","subType","markerReady","documentSelection","never","formatBlock:","options","define","isAtEnd","formatInline:accept","has","_handleNewSuggestionMarker","rootName","conversion","writer","deletion:discard","model","acceptSuggestion","dataReady","applyOperation","addComment","_refreshSuggestionsChain","isRemovable","insert","backward","ck-suggestion-marker-","discard","removeMarkers","low","_setSuggestionData","$textProxy","removeMarker","isInContent","marker-count","isBefore","_getAuthorFromId","fromCharCode","_mergeNestedSuggestions","external:","_updateSuggestionData","insertion:chain","getDifference","includes","clone","markerToData","getSuggestions","trackChanges","normal","head","unbind"];var Ga,Ha;Ga=Ua,Ha=351,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[za("0x5e"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x2a")](){return za("0x45")}constructor(t){function e(t){return t[za("0xb")]((t=>String[za("0x119")](t))).join("")}super(t),this[za("0xea")](za("0xa8"),[]),this.on(za("0x13f"),((e,n,o,s)=>{this[za("0x75")][za("0x1a")]((()=>{for(const e of[...s,...o])this._model[za("0x137")].has(e)&&t[za("0x60")].reconvertMarker(e)}))})),this[za("0x95")]=new ss(this[za("0x2f")][za("0x105")][za("0x77")],this[za("0x2f")][za("0x91")]),this._adapter=null,this[za("0x3d")]=new Va(this.editor),this._suggestions=new Map,this[za("0x3c")]=t[za("0x1")][za("0x13a")](za("0x5e")),this[za("0xe0")]=new Set,this[za("0x75")]=this[za("0x2f")][za("0x105")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0x86")][za("0xfc")](za("0xc5"),za("0xa5")),this[za("0x87")]=t[za("0x86")][za("0x13a")](za("0xc5")),t[za("0x86")][za("0xfc")](za("0x127"),!0),this[za("0x11a")]=t.config[za("0x13a")]("trackChanges.mergeNestedSuggestions"),this[za("0x28")]=new u(t,this[za("0xe0")]),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,54,53,56])}[za("0x67")](){const t=this[za("0x2f")];t.conversion.for(za("0x12a")).markerToHighlight({model:za("0x65"),view:t=>{const{id:e,type:n}=this[za("0xe")](t[za("0x79")]),o=["ck-suggestion-marker",za("0x10e")+n];let s=3e3;return this[za("0xa8")][za("0x11f")](t[za("0x79")])&&(o[za("0x4e")](za("0x3b")),s=3010),za("0x30")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x102")][za("0xf4")](za("0x89")).add((e=>{e.on(za("0x4a"),((e,n,o)=>{if(!o.options[za("0xf1")])return;const s=n.item;if(!s)return;const r=o[za("0x15")][za("0x36")](s);t.model.schema[za("0x37")](s)&&r&&!r[za("0x69")]("widget")&&r.is("containerElement")&&(0,x.toWidget)(r,o.writer)}),{priority:"high"})})),t[za("0x102")].for("dataDowncast")[za("0x76")]({model:za("0x65"),view:(t,e)=>{if(!e[za("0xfb")][za("0xf1")])return null;const{type:n}=this[za("0xe")](t.markerName);return{classes:[za("0x46"),za("0x10e")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xdc")])return;if(o[za("0xdc")].is(za("0x51")))return void s.consumable[za("0xf")](o[za("0xdc")],n[za("0xe1")]);const r=s[za("0x15")][za("0x36")](o.item);if(!o[za("0xdc")].is("element")||!t[za("0x105")][za("0x77")][za("0x47")](o.item)||r[za("0x69")](za("0x82")))return;const{id:i}=this[za("0xe")](o.markerName);s[za("0x103")][za("0xaf")]([za("0x46"),za("0x70")],r),s[za("0x103")][za("0xef")](za("0xb5"),i,r),s.mapper[za("0x78")](r,o[za("0x79")]),e&&(this[za("0xa8")].includes(o.markerName)?s[za("0x103")][za("0xaf")](za("0x3b"),r):s[za("0x103")][za("0x27")](za("0x3b"),r));for(const e of t[za("0x105")].createRangeIn(o[za("0xdc")])[za("0x5d")]())s[za("0x73")].consume(e,n.name);s[za("0x73")][za("0xf")](o[za("0xdc")],n[za("0xe1")])};t[za("0x102")][za("0xf4")](za("0x89"))[za("0x12b")]((t=>{t.on(za("0xd9"),((t,e,o)=>{o[za("0xfb")][za("0xf1")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xd4")})})),t[za("0x102")][za("0xf4")](za("0x89"))[za("0x121")]({model:za("0x65"),view:(t,e)=>e[za("0xfb")].showSuggestionHighlights?null:{group:za("0x65"),name:t[za("0x1e")](11)}}),t[za("0x102")][za("0xf4")](za("0xc6"))[za("0xf0")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x52")+t[za("0xac")](za("0x12e"))+":"+t[za("0xac")]("id");return t[za("0xac")](za("0x116"))&&(n+=":"+t.getAttribute(za("0x116"))),e[za("0x2e")](za("0x34"),{"data-name":n})}}),t[za("0x102")][za("0xf4")]("upcast")[za("0xb4")]({view:za("0x65")}),t[za("0x102")][za("0xf4")](za("0x12a"))[za("0x12b")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x26")})})),t[za("0x102")][za("0xf4")](za("0x12a"))[za("0x12b")]((t=>{t.on(za("0xbe"),((t,e,n)=>{const o=n[za("0x15")][za("0x4")](e.markerName);if(o)for(const t of o)t[za("0x69")](za("0x82"))||(n[za("0x103")].removeClass([za("0x46"),za("0x70"),za("0x3b")],t),n[za("0x103")][za("0x12")](za("0xb5"),t),n[za("0x15")][za("0xa")](t,e[za("0x79")]))}),{priority:za("0x26")})})),t.model.document.registerPostFixer((e=>{let n=!1;const o=Array[za("0x140")](t[za("0x105")][za("0x9f")][za("0x55")].getChangedMarkers()),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 d=this[za("0x7b")][za("0x13a")](l);if(null!=a[za("0x132")])if("formatInline"==c&&(n=n||Xa(a[za("0x132")],x,e,t[za("0x105")][za("0x77")])),a[za("0x132")].isCollapsed||za("0x129")==a.newRange[za("0xb8")][za("0x101")]||za("0x139")==c&&!Ja(a[za("0x132")])||za("0x30")==c&&(qa(i=a[za("0x132")])||(r=i)[za("0x1f")][za("0x6c")]==r.end[za("0x19")]&&r[za("0x1f")][za("0xfd")]))e.removeMarker(x),n=!0;else{if(!d||!d[za("0x115")])continue;s[za("0x12b")](d)}}var r,i;return s[za("0xbc")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[za("0x105")][za("0x9f")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0x105")][za("0x9f")][za("0x55")][za("0xb0")]()){if(za("0x10c")!=o[za("0xc")])continue;const s=o[za("0xcd")][za("0x6a")](o.length);if(s.isAtEnd)for(const r of this._suggestions[za("0xdf")]()){if(r[za("0x5c")]||!r[za("0x115")])continue;if(za("0x139")!=r[za("0xc")])continue;const i=r[za("0xa4")]();if(i[za("0x1f")][za("0x6c")]!=i[za("0x4d")][za("0x6c")]&&i[za("0x4d")][za("0x25")](o[za("0xcd")])){const o=t[za("0x105")][za("0x16")](i[za("0x1f")],s);e[za("0xda")](r[za("0xd1")](),{range:o}),n=!0}}}return n})),t[za("0x105")][za("0x137")].on(za("0xc7"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xe")](e[za("0xe1")]),n=this[za("0x7b")][za("0x13a")](t);n&&n[za("0x31")](e.name)}})),t[za("0x105")][za("0x9f")].on(za("0x3e"),(()=>{const e=Array[za("0x140")](t[za("0x105")][za("0x9f")][za("0x55")][za("0xcb")]())[za("0xe8")]((t=>za("0x65")===this[za("0xe")](t[za("0xe1")])[za("0x3")]));if(0===e[za("0x84")])return;e.sort(((t,e)=>{const n=t[za("0x62")].oldRange,o=e[za("0x62")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[za("0x117")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[za("0xcf")]){const e=this[za("0x100")](t);o[za("0x12b")](e)}else{const t=this[za("0x7b")][za("0x13a")](e);null!==s[za("0x132")]||t[za("0x115")]?(n.add(t[za("0x125")]),o.add(t)):this[za("0xaa")](t)}}o[za("0xbc")]>0&&this[za("0x10a")](o);for(const t of n)this[za("0x7")](za("0x99"),t)})),t[za("0x105")].on(za("0x108"),((e,n)=>{const o=n[0];if(!this[za("0x7b")][za("0xbc")])return;if(!o[za("0xd5")])return;if(o[za("0x3a")][za("0xee")]||!o[za("0x3a")][za("0x81")])return;let s,r;switch(o[za("0xc")]){case"insert":s=t[za("0x105")].createPositionAt(o[za("0xcd")]),r=s[za("0x6a")](o[za("0x64")]);break;case za("0x29"):s=t[za("0x105")][za("0x133")](o[za("0xf3")]),r=t[za("0x105")][za("0x133")](o.moveTargetPosition);break;case za("0xec"):s=t[za("0x105")][za("0x133")](o.targetPosition),r=s.getShiftedBy(o[za("0x64")]);break;default:return}const i=t[za("0x105")][za("0x16")](s,r);t.model[za("0x1a")]((()=>{for(const{suggestion:t,meta:e}of this[za("0xc1")](i)){if(t[za("0x5c")])continue;if(za("0xd8")==t[za("0xc")])continue;const n=t[za("0x62")]&&t.data[za("0x6f")];(za("0x139")!=t[za("0xc")]||za("0x29")==o.type&&!n)&&(e.containsRangeInObject||za("0xe9")==t[za("0xc")]&&e[za("0x4b")]||t.getFirstRange()[za("0x5")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0x9e")}),t.model.on(za("0x0"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x41")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0x28")].value)return;if(o[za("0x135")])return;const r=t[za("0x105")][za("0x77")],{start:i,end:x}=o[za("0xa4")](),a=i[za("0xce")]&&r.isLimit(i[za("0xce")])?null:r[za("0xf2")](i,za("0x13c")),c=x[za("0x19")]&&r[za("0x24")](x[za("0x19")])?null:r.getNearestSelectionRange(x,za("0x10d")),l=t.model.createRange(a?a[za("0x1f")]:i,c?c[za("0x4d")]:x);t[za("0x105")][za("0x1a")]((e=>{this.markDeletion(l);const n=t.model[za("0x77")].getNearestSelectionRange(l.start);o.is(za("0xf8"))?e.setSelection(n):o[za("0xde")](n)})),e.stop()}),{priority:e.priorities[za("0x124")]+10}),t[za("0x105")].on(za("0x18"),((e,n)=>{const o=n[n[za("0x84")]-1];o&&o[za("0x41")]||this._isForcedDefaultExecutionBlock||this[za("0x28")][za("0xad")]&&(t[za("0x105")][za("0x1a")]((()=>{let o=t.model[za("0x18")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x56")]=o[za("0x120")]();const s=o[za("0x4d")][za("0x19")],r=t[za("0x105")][za("0x77")];s&&r[za("0x47")](s)&&!r.isObject(s)&&(o=t[za("0x105")][za("0x16")](o[za("0x1f")],t[za("0x105")][za("0x133")](s,"end"))),this[za("0x48")](o)})),e.stop())}),{priority:za("0x26")}),this[za("0x2f")][za("0x40")].add(za("0x123"),this.trackChangesCommand),this.enableCommand("trackChanges");const o=new p(t,this[za("0x7b")]);t[za("0x40")][za("0x12b")](za("0x106"),o),this[za("0xa1")](za("0x106"));const s=new C(t,this[za("0x7b")]);t[za("0x40")][za("0x12b")]("discardSuggestion",s),this[za("0xa1")]("discardSuggestion"),t[za("0x40")][za("0x12b")](za("0xb9"),new F(t,o,this[za("0x7b")])),this[za("0xa1")](za("0xb9")),t[za("0x40")][za("0x12b")](za("0x85"),new F(t,s,this[za("0x7b")])),this[za("0xa1")](za("0x85")),t.commands[za("0x12b")]("acceptSelectedSuggestions",new U(t,o,this[za("0x7b")])),this[za("0xa1")](za("0x42")),t.commands[za("0x12b")](za("0x98"),new U(t,s,this[za("0x7b")])),this[za("0xa1")](za("0x98"));const r=t[za("0x1")][za("0x13a")](za("0x5e"));this[za("0xd7")](r,za("0x109"),((t,{threadId:e})=>{const n=this._suggestions[za("0x13a")](e);n&&n[za("0x38")]&&1===n[za("0x38")][za("0x84")]&&this[za("0x11c")](e,{hasComments:!0})}),{priority:"low"}),this[za("0xd7")](r,za("0x9d"),((t,{threadId:e})=>{const n=this._suggestions[za("0x13a")](e);n&&n.commentThread&&!n[za("0x38")][za("0x84")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0x111")})}set adapter(t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[za("0xba")](){return this[za("0x68")]}[za("0x122")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x7b")][za("0xdf")]())t&&!e[za("0x115")]||n[za("0x4e")](e);return e?n[za("0xb")]((t=>t[za("0x7d")]())):n}[za("0x35")](t){const n=this[za("0x7b")][za("0x13a")](t);if(!n)throw new e.CKEditorError(za("0x2d"),this);return n}hasSuggestion(t){return this[za("0x7b")][za("0xff")](t)}[za("0x9a")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[za("0x7b")][za("0x13a")](n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[za("0x53")](i,s,r||null,e),i.createdAt=t.createdAt,o&&o[za("0x7a")]){const t=o[za("0x7a")],e=this._getExternalAuthor(t[za("0x9c")]);i.authoredAt=t.createdAt,i[za("0xc8")]=e,i[za("0x32")]=!0}else i[za("0x136")]=t[za("0xd2")];switch(t[za("0x62")]&&(i[za("0x62")]=t[za("0x62")]),t.attributes&&(i[za("0xc3")]=t[za("0xc3")]),this[za("0x68")]&&this[za("0x68")][za("0x96")]||(i[za("0x44")]=!0),this[za("0xcc")].get(i)){case za("0xe7"):this[za("0xcc")][za("0xea")](i,"dataReady");break;case za("0xf7"):i[za("0x115")]?(this[za("0xcc")][za("0xea")](i,za("0x1c")),this.fire("suggestionLoaded",i)):this[za("0xcc")][za("0xea")](i,za("0x130"))}return i}[za("0x106")](t){this[za("0x41")]((()=>{this.editor[za("0x105")].change((()=>{for(const e of t[za("0x3f")]())e[za("0x7f")]()}))}))}[za("0x9")](t){this[za("0x41")]((()=>{this.editor[za("0x105")][za("0x1a")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}[za("0xa1")](t,n){const o=this[za("0x2f")][za("0x40")][za("0x13a")](t);if(!o)throw new e.CKEditorError(za("0x134"),this,{commandName:t});this[za("0xe0")].add(o),n&&o.on(za("0xd0"),((t,e)=>{this[za("0x28")][za("0xad")]&&(this[za("0x141")]||e[za("0x84")]>0&&e[e[za("0x84")]-1]&&e[e[za("0x84")]-1][za("0x41")]||(n(((...t)=>o[za("0xd0")](...t,{forceDefaultExecution:!0})),...e),t[za("0x13d")]()))}),{priority:"high"})}[za("0x41")](t){let n,o;const s=this[za("0x141")];this[za("0x141")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x141")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x135")])return null;const s=this.editor[za("0x1")][za("0x13a")](za("0xa2")).me;for(const{suggestion:e,meta:o}of this[za("0xc1")](t,za("0xe9")))if(o[za("0x4b")]){if(!o[za("0x5f")]){if(!this[za("0x11a")]&&o[za("0x74")])continue;return e}if(n==e[za("0xf6")]){const n=e[za("0xa4")]();return n.start[za("0x25")](t[za("0x4d")])?this[za("0x17")](e,this[za("0x75")][za("0x16")](t.start,n[za("0x4d")])):this[za("0x17")](e,this[za("0x75")][za("0x16")](n[za("0x1f")],t[za("0x4d")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x23")+n:za("0xe9"),a=this[za("0x112")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8e")](x,r,i,t),a}[za("0x13")](t,n=za("0xeb"),o={}){const s=this[za("0x2f")].plugins[za("0x13a")](za("0xa2")).me,r=this[za("0x3d")].getSuggestionCallback(za("0xe9"),n,za("0x59"));for(const e of this.getSuggestions())if(e[za("0xc8")].id==s.id&&za("0xe9")==e[za("0xc")]&&e.subType==n&&(r(e.getRanges(),t)||r(t,e.getRanges()))){for(const n of t)e.addRange(n);return e}if(this[za("0x11a")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xc1")](e,za("0xe9"))){if(!o[za("0x4b")])continue;let e=!0;for(const o of n[za("0x5b")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this[za("0x112")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x8e")](a,i,x,e,Zo[za("0x12d")]());return c}[za("0x80")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x135")])return null;if("never"===this[za("0x87")]){const e=this._suggestionFactory[za("0x131")](za("0xd8"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this.editor[za("0x1")][za("0x13a")]("Users").me,i=[];if("always"!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0xc1")](t,za("0xe9")))n.isOwn&&!n[za("0x94")]&&i.push(...e[za("0x5b")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xc2")](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.length;){const o=n[e][za("0x11e")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[za("0x84")]&&this[za("0x75")][za("0x1a")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback(za("0xd8"),o,za("0x7f"));this[za("0x41")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x4d")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xd8"))){if(!n[za("0x4b")])continue;if(e[za("0xf6")]!=o)continue;const s=e.getFirstRange();if(s[za("0x5")](t,!0))return null;x=x[za("0x117")](s[za("0x1f")])?x:s[za("0x1f")],a=a[za("0x90")](s[za("0x4d")])?a:s[za("0x4d")],i?s[za("0x1f")][za("0x117")](i[za("0xa4")]()[za("0x1f")])?(i.removeMarkers(),i=e):e[za("0x110")]():i=e}const c=this[za("0x75")][za("0x16")](x,a);if(i)this[za("0x17")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x112")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0xd")+o,t,i,c)}}return null}[za("0x54")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x10")]=n[za("0x138")]),n[za("0x6f")]=t.is(za("0x83")),s=s||$a(n);const i=o[za("0xb")]((t=>Qa(t,this._model))),x=t.is("range")?t:Qa(t,this[za("0x75")]);if(za("0xf9")===this._trackFormatChanges){const t=this._suggestionFactory[za("0x131")](za("0x139"),s,za("0x7f"));return this[za("0x41")]((()=>t([x],n,r))),null}i[za("0x4e")](x);let a=!0;for(const t of i)if(!this[za("0x33")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x131")]("formatBlock",s,za("0x7f"));return this[za("0x41")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[za("0x4d")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0x139"))){if(!e.isOwn||e[za("0x5f")]||e[za("0x74")]||e[za("0x94")])continue;if(t[za("0x62")][za("0x10")]!=n[za("0x10")])continue;const o=t[za("0xa4")]();if(t[za("0xf6")]==s){if(o[za("0x5")](x,!0))return null;l=l[za("0x117")](o[za("0x1f")])?l:o[za("0x1f")],d=d[za("0x90")](o[za("0x4d")])?d:o[za("0x4d")],c?o[za("0x1f")][za("0x117")](c[za("0xa4")]()[za("0x1f")])?(c.removeMarkers(),c=t):t[za("0x110")]():c=t}else{const e=x[za("0xc2")](o);this[za("0xbb")](t,e)}}const u=this[za("0x2f")][za("0x1")][za("0x13a")](za("0xa2")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x17")](c,this[za("0x75")][za("0x16")](l,d)),c;{const t=this[za("0x112")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x8e")]("formatBlock:"+s,g,m,this[za("0x75")][za("0x16")](l,d)),t}}[za("0xa0")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0x10")]=n.commandName);const i=t[0];n[za("0x6f")]=i.is(za("0x83")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0x75")]))),a=i.is(za("0x83"))?t:t[za("0xb")]((t=>Qa(t,this._model)));if(za("0xf9")===this[za("0x87")]){const t=this[za("0x3d")][za("0x131")](za("0x139"),s,za("0x7f"));return this[za("0x41")]((()=>t(a,n,r))),null}x[za("0x4e")](...a);let c=!0;for(const t of x)if(!this[za("0x33")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x131")]("formatBlock",s,za("0x7f"));return this[za("0x41")]((()=>t(a,n,r))),null}const l=this[za("0x2f")][za("0x1")][za("0x13a")](za("0xa2")).me;for(const t of this[za("0x122")]()){if(t[za("0xc8")].id!=l.id)continue;if("formatBlock"!=t[za("0xc")]||t[za("0x62")][za("0x10")]!=n[za("0x10")])continue;const e=t.subType==s;for(let n=0;n<a[za("0x84")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0x58")]();if(o[za("0x25")](r)){e?(a.splice(n,1),n--):t[za("0x114")](s[za("0xe1")]);break}}}}if(0==a[za("0x84")])return null;const d=this[za("0x3d")][za("0x131")](za("0x139"),s,"join");for(const t of this.getSuggestions())if(t[za("0xc8")].id==l.id&&za("0x139")==t[za("0xc")]&&t[za("0x62")][za("0x10")]==n.formatGroupId&&t.subType==s&&(d(t[za("0x5b")](),a)||d(a,t[za("0x5b")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xfa")+s,f=this[za("0x112")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x8e")](m,u,g,t,Zo[za("0x12d")]());return f}[za("0x21")](t,n=null,o={}){if(t[za("0x135")])return null;const s=this[za("0x2f")][za("0x1")][za("0x13a")](za("0xa2")).me,r=new i.LiveRange(t[za("0x1f")],t[za("0x4d")]);for(const{suggestion:t,meta:e}of this[za("0xc1")](r,za("0xe9")))if(e.isOwn&&!e[za("0x5f")])if(t.isMultiRange){const e=t[za("0x5b")]()[za("0xe8")]((t=>za("0x129")!=t[za("0xb8")][za("0x101")]));if(e[za("0xab")]((t=>r[za("0x5")](t,!0)))&&t[za("0x10f")](),e.some((t=>t[za("0x5")](r,!0)))){const t=this[za("0x3d")][za("0x131")](za("0x30"),n,za("0x7f"));return this[za("0x41")]((()=>t([r],null,o))),null}}else{const e=r[za("0xc2")](t[za("0xa4")]());null!==e&&t[za("0x7e")]([e],null,o)}if(r[za("0x93")](),r[za("0x135")]||za("0x129")==r[za("0xb8")][za("0x101")])return null;let x=null,a=r.start,c=r[za("0x4d")];for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x30")))if(e[za("0x4b")])if(t[za("0x5c")]&&this[za("0x11a")]){let e=!0;for(const n of t[za("0x5b")]()){if(n[za("0x5")](r,!0))return t;r[za("0x5")](n)||(e=!1)}e&&t[za("0x10f")]()}else{const n=t[za("0xa4")]();if(n[za("0x5")](r,!0)){if(!this[za("0x11a")]&&e.containsRangeInObject)continue;return t}a=a[za("0x117")](n[za("0x1f")])?a:n[za("0x1f")],c=c[za("0x90")](n[za("0x4d")])?c:n[za("0x4d")],x?n[za("0x1f")][za("0x117")](x[za("0xa4")]()[za("0x1f")])?(x[za("0x110")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[za("0x75")][za("0x16")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x75")][za("0x16")](a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x8e")](x,t,i,r),l}}[za("0x8a")](t,n=za("0xeb"),o={}){const s=this[za("0x2f")][za("0x1")][za("0x13a")](za("0xa2")).me,r=t[za("0xb")]((t=>new i.LiveRange(t.start,t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xe9")))n[za("0x4b")]&&!n.isNextTo&&x[za("0x12b")](e);for(const e of x)if(e[za("0x5c")]){const s=e[za("0x5b")]();if((!e[za("0xc3")]||!e[za("0xc3")].skipNestingCheck)&&s.every((t=>r[za("0x2c")]((e=>e[za("0x5")](t,!0)))))&&e[za("0x10f")](),r[za("0xab")]((t=>s.some((e=>e[za("0x5")](t,!0)))))){const e=this[za("0x3d")][za("0x131")](za("0x30"),n,"accept");return this[za("0x41")]((()=>e(t,null,o))),null}}else{const t=e[za("0xa4")]();if(r[za("0x2c")]((e=>e.containsRange(t,!0)))&&e[za("0x10f")](),r[za("0xab")]((e=>t[za("0x5")](e,!0)))){const t=this._suggestionFactory[za("0x131")]("deletion",n,"accept");return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[za("0x3d")][za("0x131")](za("0x30"),n,za("0x59"));let c=null;for(const t of this[za("0x122")]())if(t[za("0xc8")].id==s.id&&t[za("0x115")]&&"deletion"==t[za("0xc")]&&t[za("0xf6")]==n&&(a(t[za("0x5b")](),r)||a(r,t[za("0x5b")]())))if(c){if(t.commentThread&&t[za("0x38")][za("0x84")])continue;for(const e of t[za("0x5b")]())c[za("0xd6")](e)||c[za("0xae")](e);t[za("0x110")]()}else{c=t;for(const e of r)t[za("0xd6")](e)||t.addRange(e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x30")))n[za("0x4b")]&&x[za("0x12b")](e);for(const t of x){const e=t[za("0x5b")]();if((!o||!o[za("0x71")])&&r[za("0xab")]((t=>e[za("0x2c")]((e=>e[za("0x5")](t,!0))))))return t;(!t[za("0xc3")]||!t[za("0xc3")][za("0x71")])&&e[za("0xab")]((t=>r.some((e=>e.containsRange(t,!0)))))&&t[za("0x10f")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x112")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[za("0x135")]||za("0x129")==t[za("0xb8")][za("0x101")]||this[za("0x8e")](u,l,d,t,Zo[za("0x12d")]());return g}_setSuggestionRange(t,e){const n=t[za("0xd1")]();this[za("0x75")][za("0x1a")]((t=>{t[za("0xda")](n,{range:e})}))}[za("0x92")](t){const e=t.id,n=this[za("0x2f")][za("0x86")].get(za("0x8b"));this[za("0x3c")].hasCommentThread(e)||this[za("0x3c")][za("0x2")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x3c")][za("0x12f")](e);o[za("0x126")](za("0x10b")),o[za("0x10b")]=!1,t[za("0x38")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0xc")]!=n||t[za("0xf6")]!=o||t[za("0xa3")].id!=s)throw this[za("0x2f")][za("0x4c")](za("0x11")),new e.CKEditorError(za("0x11"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n.isEqual(o))t.removeMarkers();else if(o[za("0x5")](n)){const s=this._model.createPositionAt(n.start[za("0x19")],za("0x4d"));this[za("0x17")](t,this[za("0x75")][za("0x16")](o[za("0x1f")],s));const r=(0,e.uid)(),i=t[za("0xa3")].id,x=t[za("0xc")]+":"+t[za("0xf6")];this[za("0x112")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x62")],attributes:t.attributes});const a=this._model[za("0x133")](n[za("0x4d")][za("0x6c")],za("0x61")),c=this[za("0x75")][za("0x16")](a,o[za("0x4d")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x8f")](n[za("0x1f")])){const e=this[za("0x75")][za("0x133")](n[za("0x1f")].nodeBefore,za("0x4d"));this[za("0x17")](t,this[za("0x75")][za("0x16")](o.start,e))}else{const e=this._model[za("0x133")](n[za("0x4d")][za("0x6c")],za("0x61"));this[za("0x17")](t,this._model.createRange(e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xe9"))){if(!n[za("0x4b")])continue;const o=e[za("0x5b")]();for(const e of o)if(!t[za("0x11e")](e)[za("0x84")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x2f")][za("0x1")].get(za("0xa2")).getUser(t);if(!n)throw new e.CKEditorError(za("0xc0"),this);return n}[za("0xe4")](t){const e=this[za("0x2f")][za("0x1")].get("Users"),n=(0,r.hashObject)(za("0x11b")+t);return e[za("0xe3")](n)||e[za("0xb1")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x118")](o),i=this[za("0x3d")][za("0xe6")](t,e,n,r,s,(t=>this[za("0x11c")](n,{attributes:t})));return this[za("0xd7")](i,"accept",(()=>{this._updateSuggestionData(n,{state:za("0xb6")})}),{priority:"high"}),this[za("0xd7")](i,za("0x10f"),(()=>{this[za("0x11c")](n,{state:za("0x63")})}),{priority:za("0x26")}),this._suggestions[za("0xea")](n,i),this[za("0xcc")][za("0xea")](i,za("0xe7")),i}[za("0xe")](t){const e=t[za("0x29")](":");return{group:e[0],type:e[1],subType:e[za("0x84")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x84")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[za("0x1f")],i=s.end;this[za("0x17")](t,this._model[za("0x16")](r,n));const x=(0,e.uid)(),a=t[za("0xa3")].id,c=t[za("0xc")]+(t[za("0xf6")]?":"+t[za("0xf6")]:"");this[za("0x112")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xc3")],data:t[za("0x62")]}),za("0x139")==t[za("0xc")]&&(o=this[za("0x75")][za("0xb3")](o[za("0x6c")])),this[za("0x8e")](c,x,a,this[za("0x75")][za("0x16")](o,i))}[za("0xc1")](t,e=null){const n=[],o=this._model.schema,s=this[za("0x2f")][za("0x1")].get("Users").me;for(const r of this.getSuggestions())if(r[za("0x115")]&&(!e||r[za("0xc")]==e))for(const e of r[za("0x5b")]()){const i=t[za("0x1f")].isEqual(e[za("0x4d")])||t[za("0x4d")][za("0x25")](e.start);if(i||t.getIntersection(e)){const x=t[za("0x5")](e)&&Ka(o,e[za("0x1f")],t),a=e[za("0x5")](t)&&Ka(o,t[za("0x1f")],e);n.push({suggestion:r,meta:{isOwn:s==r[za("0xc8")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x8e")](t,e,n,o,s){this[za("0x75")][za("0x1a")]((r=>{let i=za("0x52")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xaa")](t){const e=t[za("0x8")],n=t.next;t[za("0x8")]=null,null!=e&&(e[za("0xed")]=null),t[za("0xed")]=null,null!=n&&(n[za("0x8")]=null),"ready"==this._suggestionState[za("0x13a")](t)&&(this[za("0xcc")][za("0xea")](t,za("0x130")),this.fire(za("0xdd"),t,e,n))}[za("0x112")](t){const n=t.id,o=this[za("0x9a")](t);if(this[za("0x68")]&&this[za("0x68")][za("0x96")]){const s=this.editor[za("0x1")].get(za("0xa9")),r=o.hasComments,i=o.subType?o[za("0xc")]+":"+o[za("0xf6")]:o[za("0xc")],x=this[za("0x2f")].locale,a=s[za("0x12b")](Yo(x,za("0xc4"))),c={id:n,type:i,hasComments:r,data:t[za("0x62")]||null,originalSuggestionId:t[za("0xc9")]||null,attributes:o[za("0xc3")]};this[za("0x68")][za("0x96")](c)[za("0x9b")]((t=>{o[za("0x44")]=!0,s.remove(a),t&&t[za("0xd2")]&&(this[za("0x7b")].get(n).createdAt=t[za("0xd2")])}))[za("0x2b")]((t=>{throw(0,e.logWarning)(za("0x20")),this[za("0x2f")].model.enqueueChange({isUndoable:!1},(()=>{o[za("0x10f")]()})),o[za("0x8c")](),this[za("0x7b")].delete(o.id),this[za("0xcc")].delete(o),t}))}return o}[za("0x11c")](t,e){const n=this.editor[za("0x1")].get("PendingActions"),o=this[za("0x35")](t);if(this[za("0x68")]&&this[za("0x68")][za("0xb2")])if(o[za("0x44")]){const o=n[za("0x12b")](Yo(this[za("0x2f")][za("0x91")],za("0xc4")));this[za("0x68")][za("0xb2")](t,e)[za("0x9b")]((()=>{n.remove(o)}))}else o.on(za("0x6"),(()=>{this[za("0x11c")](t,e)}))}_getSuggestionData(t){if(!this[za("0x68")]||!this._adapter[za("0x35")])throw new e.CKEditorError(za("0x4f"),this);return this[za("0x68")][za("0x35")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[za("0x7b")][za("0x13a")](e)||this[za("0x1d")](n,o,e,s,{});switch(this[za("0x53")](r,n,o,s),this[za("0xcc")][za("0x13a")](r)){case za("0xe7"):this[za("0x43")](e)[za("0x9b")]((t=>{let n=Promise.resolve();t[za("0xe5")]&&(n=this[za("0x3c")][za("0x13b")]({channelId:this[za("0x2f")][za("0x86")][za("0x13a")](za("0x8b")),threadId:e})),n[za("0x9b")]((()=>{this[za("0x9a")](t)[za("0x44")]=!0}))})),this[za("0xcc")][za("0xea")](r,za("0xf7"));break;case za("0x130"):this._updateSuggestionData(e,{state:"open"});case za("0x107"):this[za("0xcc")][za("0xea")](r,za("0x1c")),this[za("0x7")](za("0x97"),r);break;case za("0x1c"):this.fire(za("0x99"),r)}return r[za("0x31")](t),r}_refreshSuggestionsChain(t){const e=Array.from(t)[za("0xe8")]((t=>!t[za("0x5c")])),n=this[za("0x122")]({skipNotAttached:!0})[za("0xe8")]((t=>!t[za("0x5c")])),o=n[za("0xe8")]((e=>!t.has(e))),s=new Map(n[za("0xb")]((t=>[t,this[za("0x3d")][za("0x131")](t[za("0xc")],t[za("0xf6")],"chain")]))),r=new Map(n[za("0xb")]((t=>[t,t[za("0xa4")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x84")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xff")](n)&&n.previous&&(n[za("0x8")][za("0xed")]===n&&(n[za("0x8")][za("0xed")]=null),n[za("0x8")]=null),!i[za("0xff")](n)&&n[za("0xed")]&&(n[za("0xed")][za("0x8")]===n&&(n[za("0xed")][za("0x8")]=null),n[za("0xed")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x84")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][za("0x8")]=n[0],i[za("0x12b")](n[0]),x[za("0x12b")](n[1]))}}function c(t,e){if(t[za("0xc8")].id!==e[za("0xc8")].id)return null;const n=s[za("0x13a")](t)(t,e,r[za("0x13a")](t),r.get(e));return n&&s.get(e)(t,e,r[za("0x13a")](t),r[za("0x13a")](e))?n[1].commentThread&&n[1].commentThread[za("0x84")]?null:n:null}}[za("0xe2")](t){const e=Array[za("0x140")](t),n=this[za("0x122")]({skipNotAttached:!0}),o=n[za("0xe8")]((e=>!t[za("0xff")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory[za("0x131")](t[za("0xc")],t[za("0xf6")],za("0x59"))]))),r=new Map(n[za("0xb")]((t=>[t,t[za("0x5b")]()])));for(let t=0;t<e[za("0x84")];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("0x84")];i++){const o=n[i];if(o[za("0xc")]!==e[za("0xc")]||o[za("0xc8")].id!==e[za("0xc8")].id||o[za("0xf6")]!==e[za("0xf6")])continue;const x=s.get(e),a=r[za("0x13a")](e),c=r.get(o),l=e[za("0x38")]&&e.commentThread[za("0x84")],d=o[za("0x38")]&&o[za("0x38")][za("0x84")];if(!l&&x(c,a))return t[za("0xbd")](o,e),r[za("0x22")](e),!0;if(!d&&x(a,c))return t[za("0xbd")](e,o),r[za("0x22")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0x5c")])for(const n of e.getRanges())t[za("0xae")](n);else{const n=e[za("0xa4")]()[za("0x4d")];this._setSuggestionRange(t,this[za("0x75")][za("0x16")](t[za("0xa4")]()[za("0x1f")],n))}e[za("0x110")]()}}class Va{constructor(t){this[za("0xa6")]=t,this[za("0x75")]=t[za("0x105")],this[za("0x66")]=new Map,this[za("0x57")]=new Map,this[za("0x72")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x75")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x7f"))(...n),onDiscard:(...n)=>this[za("0x131")](t,e,za("0x10f"))(...n)})}[za("0x142")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x66")][za("0xea")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x13a")](o)||this._defaultCallbacks[za("0x13a")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0x1f")][za("0x117")](e[za("0x1f")])?1:-1)),this[za("0x75")].change((e=>{for(const n of t){let t;t=n.end[za("0xfd")]&&n.end.parent==n[za("0x1f")][za("0xce")]?e[za("0x5a")](n.start[za("0xce")],"on"):e[za("0x5a")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x75")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xb")]((t=>(qa(t)&&(t=this[za("0x75")][za("0x16")](t.end)),t)))[za("0xe8")]((t=>za("0x129")!==t[za("0xb8")][za("0x101")]));if(r[za("0x84")]<1)return;const x=Array[za("0x140")](this[za("0x75")].document[za("0x51")][za("0x5b")]())[za("0xb")]((t=>i.LiveRange[za("0x50")](t)));n.setSelection(r);for(const t of this[za("0xa6")][za("0x40")][za("0x40")]())t.refresh();s[za("0x4e")]({forceDefaultExecution:!0}),this[za("0xa6")][za("0xd0")](o,...s);const a=x.filter((t=>za("0x129")!=t[za("0xb8")][za("0x101")]));a[za("0x84")]>0&&n.setSelection(a);for(const t of x)t[za("0x93")]()}))},o=(t,e)=>1==t[za("0x84")]&&1==e[za("0x84")]&&t[0][za("0x4d")].isEqual(e[0][za("0x1f")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x75")])?[t,e]:Za(e,t,o,n,this[za("0x75")])?[e,t]:null;this[za("0x57")][za("0xea")]("insertion:accept",t),this[za("0x57")][za("0xea")](za("0x6e"),e),this._defaultCallbacks.set(za("0x7c"),o),this[za("0x57")][za("0xea")](za("0x11d"),s),this[za("0x57")][za("0xea")]("deletion:accept",e),this[za("0x57")].set(za("0x104"),t),this._defaultCallbacks[za("0xea")](za("0x13e"),o),this[za("0x57")][za("0xea")](za("0x8d"),s),this[za("0x57")][za("0xea")](za("0xfe"),n),this[za("0x57")][za("0xea")]("formatInline:discard",t),this[za("0x57")].set(za("0xbf"),o),this[za("0x57")][za("0xea")](za("0xb7"),t),this[za("0x57")][za("0xea")](za("0x88"),n),this[za("0x57")][za("0xea")](za("0xca"),t),this[za("0x57")][za("0xea")](za("0x14"),o),this[za("0x57")][za("0xea")](za("0xa7"),t)}}function Ka(t,e,n){for(const o of e[za("0x6c")][za("0x1b")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xb8")]==o)return!1;if(!n[za("0x49")](o))return!1;if(t.isObject(o)||t[za("0x24")](o))return!0}return!1}function qa(t){return t[za("0x4d")][za("0x6c")]==t[za("0x1f")][za("0xce")]&&t.end[za("0x12c")]}function Xa(t,e,n,o){const s=t=>!t[za("0xdc")].is(za("0x113"))&&!o[za("0x37")](t.item),r=t[za("0x1f")][za("0x39")](s),i=t[za("0x4d")][za("0x39")](s,{direction:za("0x10d")});return!(t[za("0x1f")][za("0x25")](r)&&t[za("0x4d")][za("0x25")](i)||(r[za("0x117")](i)?n.updateMarker(e,{range:n[za("0x16")](r,i)}):n[za("0x114")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x1f")][za("0xce")];return e&&e.is(za("0x6b"))}function Qa(t,e){const n=e[za("0x77")][za("0x37")](t)||e.schema[za("0x128")](t);return e.createRange(e.createPositionAt(t,"before"),n?e[za("0xd3")](t):e.createPositionAt(t,za("0x4d")))}function Za(t,e,n,o,s){if(n.end.isEqual(o[za("0x1f")]))return!0;if(t.type!=e[za("0xc")])return!1;if(!n[za("0x4d")][za("0xdb")](o[za("0x1f")]))return!1;const r=s.createRange(n.end,o[za("0x1f")])[za("0x6d")]();for(const t of r)if(["elementStart",za("0xf5")][za("0x11f")](t[za("0xc")])&&s.schema.isLimit(t[za("0xdc")]))return!1;return!0}const Ya=["_pendingAction","canAccept","stopListening","PENDING_ACTION_SUGGESTION","get","model","getRanges","bind","canEditAt","isDirty","isEnabled","_discardCommand","commentThreadController","discardSuggestion","canDiscard","commands","unbind","_acceptCommand","PendingActions","listenTo","destroy","plugins","_removePendingAction","execute","add","locale","acceptSuggestion","remove","view","_editor","_setPendingAction"];var tc,ec;tc=Ya,ec=257,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this[nc("0x13")]=n,this[nc("0x3")]=o,this._editor=t,this[nc("0x8")]=t[nc("0x6")][nc("0x1a")](nc("0x11")),this._discardCommand=t[nc("0x6")][nc("0x1a")](nc("0x4")),this[nc("0x13")][nc("0x1d")]("isEnabled").to(this._acceptCommand,this[nc("0x2")],((t,e)=>t||e)),this[nc("0x13")][nc("0x1d")]("canAccept").to(this[nc("0x8")],nc("0x1"),(t=>t&&this._editor.model[nc("0x1e")](e[nc("0x1c")]()))),this[nc("0x13")][nc("0x1d")](nc("0x5")).to(this[nc("0x2")],"isEnabled",(t=>t&&this[nc("0x14")][nc("0x1b")][nc("0x1e")](e[nc("0x1c")]()))),this._pendingAction=null,n[nc("0x0")]&&this[nc("0x15")](),this[nc("0xa")](n,nc("0x11"),(()=>this[nc("0x11")]())),this.listenTo(n,nc("0x4"),(()=>this.discardSuggestion())),this[nc("0xa")](n,"change:isDirty",(()=>{n[nc("0x0")]?this[nc("0x15")]():this._removePendingAction()}))}[nc("0x11")](){this[nc("0x8")].execute(this[nc("0x1b")].id)}[nc("0x4")](){this._discardCommand[nc("0xe")](this[nc("0x1b")].id)}[nc("0xb")](){this.view[nc("0x7")](nc("0x1")),this.view.unbind(nc("0x17")),this[nc("0x13")][nc("0x7")](nc("0x5")),this[nc("0x18")](),this[nc("0x3")][nc("0xb")](),this._pendingAction&&this[nc("0xd")]()}[nc("0x15")](){const t=Yo(this._editor[nc("0x10")],nc("0x19"));this[nc("0x16")]=this[nc("0x14")][nc("0xc")][nc("0x1a")](nc("0x9"))[nc("0xf")](t)}[nc("0xd")](){null!==this[nc("0x16")]&&this[nc("0x14")][nc("0xc")].get(nc("0x9"))[nc("0x12")](this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["hasDirtyComment","removeComment","isReadOnly","descriptionParts","commentThreadInputView","_localUser","CommentView","authoredAt","commentsListView","canDiscard","showInput","canAccept","focus","locale","delegate","cancel","value","bind","disabledSubmit","_createCommentThreadInputView","fire","isDirty","editorConfig","updateComment","isActive","isEnabled","assign","destroy","editor","commentInputView","setData","_model","length","commentThread","addComment","element","_config","set"];var rc,ic;rc=sc,ic=104,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x12")]=null,this.commentThreadInputView=null,this[xc("0x9")](xc("0x22"),!1),this.set(xc("0x11"),e[xc("0x11")]),this[xc("0x1b")](xc("0x11")).to(e),this[xc("0x9")](xc("0xd"),[]),this[xc("0x9")](xc("0x1f"),!1),this[xc("0x9")](xc("0x23"),!1),this[xc("0x9")](xc("0x15"),!1),this[xc("0x9")](xc("0x13"),!1),this[xc("0x3")]=e,this[xc("0xf")]=n,this[xc("0x8")]=o,o.disableComments?this[xc("0x9")]("length",1):this._createCommentViews()}focus(){this[xc("0x7")][xc("0x16")]()}[xc("0x25")](){this[xc("0x12")]&&this[xc("0x12")][xc("0x25")](),this[xc("0xe")]&&this[xc("0xe")][xc("0x25")](),super[xc("0x25")]()}_createCommentViews(){const{CommentsListView:t}=this[xc("0x8")];this[xc("0x12")]=new t(this[xc("0x17")],this[xc("0x3")][xc("0x5")],Object[xc("0x24")]({CommentView:this[xc("0x8")][xc("0x10")]},this[xc("0x8")])),this[xc("0x12")][xc("0x18")]("removeComment").to(this),this[xc("0x12")][xc("0x18")](xc("0x21")).to(this),this[xc("0x12")].bind(xc("0x22")).to(this),this[xc("0x9")]("length",this[xc("0x12")][xc("0x4")]+1),this[xc("0x1b")](xc("0x4")).to(this.commentsListView,"length",(t=>t+1)),this[xc("0xe")]=this[xc("0x1d")](),this.on(xc("0xb"),(()=>this[xc("0x16")]())),this[xc("0x1b")]("isDirty").to(this[xc("0x12")],xc("0xa"),this[xc("0xe")][xc("0x1")],xc("0x1a"),((t,e)=>t||!!e))}[xc("0x1d")](){const{CommentThreadInputView:t}=this[xc("0x8")],e=new t(this[xc("0x17")],this._localUser,this[xc("0x8")][xc("0x20")]),n=e[xc("0x1")];return e[xc("0x1b")](xc("0x14")).to(this,xc("0x22"),this[xc("0x3")][xc("0x5")],xc("0xc"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x1e")](xc("0x6"),e),n[xc("0x0")][xc("0x2")]("")})),n.on(xc("0x19"),(()=>this[xc("0x16")]())),n.bind(xc("0x1c")).to(this._model.commentThread,xc("0xc")),e}}const cc=["source","@external","span","value","discardButton","commentThread","attributes","delegate","ck-suggestion-wrapper--active","innerText","isExternal","formatDateTime",'"></span>',"ck-suggestion__user","content","ck-comment__external","setTemplate","importWord","render","extendTemplate","locale","createElement","Accept suggestion","change:description","ck-suggestion","isActive","_createButton","_model","ck-annotation__main","EXTERNAL_SUGGESTION","ck-annotation__info-name","ck-suggestion__actions","push","getUserViewNotificationText","EXTERNAL_IMPORT_WORD_SUGGESTION","Discard suggestion","EXTERNAL_AVATAR","time","commentThreadInputView","innerHTML","ck-annotation","disableComments","acceptSuggestion","ck-suggestion-","ck-suggestion__info-name","getExternalSuggestionNote","ck-suggestion-wrapper","div","canAccept","bind","isEnabled","color","map","bindTemplate","acceptButton","discardSuggestion","<p>","_descriptionElement","_config","name","</p>","editorReady","authoredAt","execute","ck-annotation__content-wrapper","</span>","set","editorDestroyed","fire","author","ck-annotation__actions",'<span class="ck-suggestion-color" style="background-color: ',"commentsListView","descriptionParts","userView","description","ck-suggestion--discard","getTemplate","ck-annotation__user","type"];var lc,dc;lc=cc,dc=269,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x25")](uc("0x32"),""),this[uc("0x14")](uc("0x32")).to(this,uc("0x2c"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x14")](uc("0x2e")).to(this,uc("0x2c"),this,uc("0x4c"),((t,e)=>{let n="";for(const e of t)n+=uc("0x1b")+mc(e[uc("0x41")],e[uc("0x16")])+uc("0x1f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x1c")]=null,this[uc("0x19")]=this[uc("0x4d")](Yo(e,uc("0x49")),t.icons.check,"ck-suggestion--accept",uc("0xd"),"sw"),this.acceptButton[uc("0x14")](uc("0x15")).to(this,uc("0x13")),this[uc("0x37")]=this._createButton(Yo(e,uc("0x6")),t.icons.cancel,uc("0x2f"),uc("0x1a"),"sw"),this[uc("0x37")][uc("0x14")](uc("0x15")).to(this,"canDiscard"),this[uc("0x2d")]=new r.UserView(e,this[uc("0x4e")][uc("0x28")],this[uc("0x4")]()),this[uc("0x2d")].extendTemplate({attributes:{class:[uc("0x40"),uc("0x31")]}}),this[uc("0x43")](this[uc("0x30")]())}[uc("0x30")](){const t=this[uc("0x18")],e=[{tag:uc("0x12"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:uc("0x35"),children:[{text:this[uc("0x2d")][uc("0x1e")]}],attributes:{class:[uc("0xf"),uc("0x1")]}},{tag:uc("0x8"),attributes:{datetime:t.to(uc("0x21")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to(uc("0x21"),(t=>this._config[uc("0x3e")](t)))}]}]},{tag:uc("0x12"),attributes:{class:[uc("0x2"),uc("0x29")]},children:[this.acceptButton,this[uc("0x37")]]},{tag:uc("0x12"),attributes:{class:[uc("0x23")]}}];this[uc("0x4e")][uc("0x3d")]&&e[uc("0x3")]({tag:uc("0x12"),attributes:{class:[uc("0x42")]},children:[{text:this[uc("0x10")]()}]});const n={tag:uc("0x12"),attributes:{class:[uc("0x11"),t.if(uc("0x4c"),uc("0x3b")),t.to(uc("0x32"),(t=>uc("0xe")+t)),this[uc("0x1d")][uc("0xc")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x4e")].id,"data-thread-id":this[uc("0x4e")][uc("0x38")].id,"data-author-id":this[uc("0x4e")][uc("0x28")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x4b"),uc("0xb")]},children:[this.userView,{tag:uc("0x12"),attributes:{class:["ck-suggestion__main",uc("0x4f")]},children:e}]}]};return this[uc("0x2b")]&&this[uc("0x9")]&&(n.children[uc("0x3")](this.commentsListView,this[uc("0x9")]),this[uc("0x2b")].delegate(uc("0x20")).to(this),this.commentsListView[uc("0x3a")](uc("0x26")).to(this),this[uc("0x9")][uc("0x3a")](uc("0x20")).to(this),this[uc("0x9")][uc("0x3a")](uc("0x26")).to(this)),n}[uc("0x45")](){super[uc("0x45")](),this[uc("0x1c")]=this.element.querySelector(".ck-annotation__content-wrapper"),this._descriptionElement[uc("0xa")]=this[uc("0x2e")],this.on(uc("0x4a"),((t,e,n)=>{this._descriptionElement[uc("0xa")]=n}))}[uc("0x4d")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x47")]);return i[uc("0x25")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x46")]({attributes:{class:n}}),i.on(uc("0x22"),(()=>{this[uc("0x27")](o,this[uc("0x4e")].id)})),i}[uc("0x10")](){return uc("0x44")===this[uc("0x4e")][uc("0x39")][uc("0x34")].source?Yo(this.locale,uc("0x5")):Yo(this[uc("0x47")],uc("0x0"))}[uc("0x4")](){return this[uc("0x4e")][uc("0x3d")]?uc("0x44")===this[uc("0x4e")][uc("0x39")][uc("0x34")][uc("0x33")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x4e")].creator[uc("0x1e")]):Yo(this[uc("0x47")],uc("0x7"),this[uc("0x4e")].creator[uc("0x1e")]):null}}function mc(t,e){let n="";return n+=t.split("*")[uc("0x17")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x24"):fc(t))).join(""),e&&(n+=uc("0x2a")+e[uc("0x36")]+'" title="'+e.title+uc("0x3f")),n}function fc(t){const e=document[uc("0x48")](uc("0x35"));return e[uc("0x3c")]=t,e.innerHTML}const hc=["button","createAnnotationView","CommentsRepository","change:activeAnnotations","init","_descriptionFactory","_createUIButton","buttonView","_disableComments","registerAnnotation","head","bind","trackChanges.disableComments","set","_viewToController","push","unbind","activeMarkers","actionView","TrackChangesUI","Discard all selected suggestions","editor","getMarkers","activeAnnotations","isDirty","_handleControllerBuffer","values","requires","createCommentThreadController","separator","config","change:previous","_refreshActiveMarkers","suggestionUnloaded","getJoined","get","commentThread","isOn","comments.maxCommentCharsWhenCollapsed","locale","suggestionLoaded","Accept all selected suggestions","descriptionParts","delete","CommentView","toMany","_annotationViews","add","filter","discardButton","from","map","commands","TrackChangesEditing","Accept all suggestions","size","value","Track changes","view","acceptAllSuggestions","comments.editorConfig","reduce","Discard all suggestions","source","Annotations","destroy","length","suggestion-","acceptButton","_destroyController","suggestionChanged","comments","EditorAnnotations","execute","trackChanges.SuggestionThreadView","plugins","_bindAnnotationToEditors","_handleSuggestionControllerDelayed","remove","arrowView","isInContent","refreshSelectedViews","comments.maxCommentsWhenCollapsed","_initializeController","model","_updateController","trackChanges","getFirstRange","previous","switchbutton","clear","getAllAdjacentSuggestions","acceptSelectedSuggestions","define","getSuggestion","discardAllSuggestions","focus","lowest","type","mainView","editing","has","keys","_suggestionToController","innerView","CommentsUI","commandName","listenTo","componentFactory","getMarkerNames","isEnabled"];var pc,bc;pc=hc,bc=322,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x26")](){return[Wa,r.Users,Ec("0xd"),Ec("0x4b"),Ec("0x53")]}static get pluginName(){return Ec("0x1e")}constructor(t){super(t),this[Ec("0x3")]=new Map,this[Ec("0x19")]=new Map,this[Ec("0x39")]=new Map,this[Ec("0x24")]=new Map;const e=this.editor[Ec("0x29")];e[Ec("0x68")](Ec("0x55"),gc),e.define(Ec("0x17"),!1),this[Ec("0x13")]=e[Ec("0x2e")]("trackChanges.disableComments")}[Ec("0x58")](t,e){0===this[Ec("0x24")][Ec("0x42")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x24")]){const n=this[Ec("0x3")].has(t);n||e?n&&e&&this[Ec("0x50")](t):this[Ec("0x5e")](t)}this[Ec("0x20")].plugins[Ec("0x2e")](Ec("0x53"))[Ec("0x5c")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Ec("0x65")]()}),10),this[Ec("0x24")][Ec("0x18")](t,e)}[Ec("0xf")](){const t=this.editor,e=t[Ec("0x56")][Ec("0x2e")](Ec("0x40")),n=t[Ec("0x56")][Ec("0x2e")]("Annotations"),o=t[Ec("0x56")][Ec("0x2e")](Ec("0x53")),s=t[Ec("0x56")][Ec("0x2e")](Ec("0xd"));t.ui[Ec("0x8")][Ec("0x3a")](Ec("0x61"),(t=>this[Ec("0x11")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Ec("0x3d")](this._suggestionToController)){const o=e[Ec("0x66")](),s=[];for(const t of o){if(!t[Ec("0x5b")])continue;if(t.isMultiRange){s.push(...t.getRanges());continue}const e=t[Ec("0x62")]();if(s[Ec("0x4d")]>0){const t=s[0][Ec("0x2d")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x1a")]([n[Ec("0x45")],s])}return t})),this[Ec("0x7")](e,Ec("0x33"),((t,e)=>{this.listenTo(e,Ec("0x2a"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x60")](s[Ec("0x15")]),this[Ec("0x58")](e,!1)):(this[Ec("0x60")](o[Ec("0x15")]),this[Ec("0x58")](e,!0)))})),null===e[Ec("0x63")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x60")](e[Ec("0x15")])})),this[Ec("0x7")](e,Ec("0x2c"),((t,e,n)=>{this.stopListening(e,Ec("0x2a")),this._handleControllerBuffer[Ec("0x36")](e);const o=n?n.head:e,s=this._suggestionToController[Ec("0x2e")](o);null!==n&&this[Ec("0x60")](o),null===n&&s&&this[Ec("0x50")](e)})),this[Ec("0x7")](e,Ec("0x51"),((t,e)=>{this._updateController(e)})),this[Ec("0x7")](n,Ec("0xe"),(()=>{this._refreshActiveMarkers()})),this[Ec("0x7")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Ec("0x69")](n);this[Ec("0x3")][Ec("0x2e")](s)[Ec("0x45")][Ec("0x6b")]()}),{priority:Ec("0x6c")})}[Ec("0x2b")](){const t=this[Ec("0x20")][Ec("0x56")][Ec("0x2e")](Ec("0x4b")),e=this[Ec("0x20")].plugins[Ec("0x2e")]("TrackChangesEditing"),n=Array[Ec("0x3d")](t[Ec("0x22")],(t=>t[Ec("0x4")])).filter((t=>this[Ec("0x19")][Ec("0x1")](t))),o=[];for(const t of n){const e=this[Ec("0x19")][Ec("0x2e")](t)[Ec("0x5f")].getAllAdjacentSuggestions();o.push(...e[Ec("0x48")](((t,e)=>[...t,...e[Ec("0x9")]()]),[]))}e[Ec("0x1c")]=o}[Ec("0x11")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x20")][Ec("0x3f")][Ec("0x2e")](Ec("0x61")),r=Yo(t,Ec("0x44"));n[Ec("0x12")][Ec("0x18")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x12")][Ec("0x16")](Ec("0x30")).to(o,Ec("0x43")),n[Ec("0x12")].on(Ec("0x54"),(()=>{o.execute(),this[Ec("0x20")][Ec("0x0")][Ec("0x45")].focus()}));const i=new e.Collection,x=[{type:Ec("0x64"),model:{withText:!0,label:r,commandName:Ec("0x61")}},{type:Ec("0x28")},{type:Ec("0xb"),model:{withText:!0,label:Yo(t,Ec("0x41")),commandName:Ec("0x46")}},{type:Ec("0xb"),model:{withText:!0,label:Yo(t,Ec("0x34")),commandName:Ec("0x67")}},{type:Ec("0xb"),model:{withText:!0,label:Yo(t,Ec("0x49")),commandName:Ec("0x6a")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1f")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x28")};if(t[Ec("0x5f")]){const n=new s.Model(t[Ec("0x5f")]),o=this[Ec("0x20")][Ec("0x3f")][Ec("0x2e")](n[Ec("0x6")]);n.bind("isOn","isEnabled").to(o,Ec("0x43"),Ec("0xa")),e={type:t[Ec("0x6d")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x3b")]((t=>null!=t[Ec("0x5f")]))[Ec("0x3e")]((t=>this.editor[Ec("0x3f")][Ec("0x2e")](t.model[Ec("0x6")]))),c=n[Ec("0x12")];return c[Ec("0x1d")][Ec("0x1b")]("isEnabled"),c[Ec("0x5a")][Ec("0x1b")](Ec("0xa")),c.actionView.bind("isEnabled").to(o,Ec("0xa")),c[Ec("0x5a")][Ec("0x16")](Ec("0xa"))[Ec("0x38")](a,Ec("0xa"),((...t)=>t.some((t=>t)))),n.on("execute",(t=>{this[Ec("0x20")][Ec("0x54")](t[Ec("0x4a")].commandName),this[Ec("0x20")][Ec("0x0")][Ec("0x45")][Ec("0x6b")]()})),n}_initializeController(t){const e=this[Ec("0x20")],n=e[Ec("0x29")],o=e[Ec("0x56")][Ec("0x2e")]("Annotations"),s=e.plugins[Ec("0x2e")](Ec("0xd")),i=e[Ec("0x56")].get(Ec("0x53")),x=e[Ec("0x56")].get(r.Users).me,a=n.get(Ec("0x61")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x56")][Ec("0x2e")](Ec("0x5"));let d,u;this._annotationViews.has(t.id)?(u=this[Ec("0x39")][Ec("0x2e")](t.id),d=u[Ec("0x6e")]):(d=new a(e[Ec("0x32")],t,x,{disableComments:this[Ec("0x13")],editorConfig:n[Ec("0x2e")](Ec("0x47")),maxCommentsWhenCollapsed:n.get(Ec("0x5d")),maxThreadTotalWeight:n[Ec("0x2e")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x2e")](Ec("0x31")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x32"))),CommentView:n[Ec("0x2e")](Ec("0x52"))[Ec("0x37")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x4f")].on(Ec("0x54"),(()=>{e[Ec("0x0")][Ec("0x45")][Ec("0x6b")]()})),d[Ec("0x3c")].on("execute",(()=>{e[Ec("0x0")][Ec("0x45")][Ec("0x6b")]()})),u=o[Ec("0xc")](this[Ec("0x20")][Ec("0x32")],d),u[Ec("0x16")](Ec("0x23")).to(d,"isDirty"),u[Ec("0x16")](Ec("0x4d")).to(d),u[Ec("0x16")](Ec("0x6d")).to(d,"type",(t=>Ec("0x4e")+t)),this[Ec("0x39")][Ec("0x18")](t.id,u));const g=s[Ec("0x27")](t[Ec("0x2f")],d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x3b")]((t=>t[Ec("0x5b")]));d.descriptionParts=e[Ec("0x56")].get(Ec("0x40"))[Ec("0x10")].getDescriptions(f),this[Ec("0x3")].set(t,m),this[Ec("0x19")].set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Ec("0x3b")]((t=>t.isInContent));for(const t of o)n[Ec("0x1a")](...t[Ec("0x21")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x0")],n)},type:()=>"suggestion-"+m[Ec("0x45")].type});s[Ec("0x57")](d,h),o[Ec("0x3a")](h),i[Ec("0x14")](h)}[Ec("0x50")](t){const e=this.editor[Ec("0x56")][Ec("0x2e")](Ec("0x4b")),n=this[Ec("0x3")][Ec("0x2e")](t),o=n.view,s=e.getByInnerView(o);s&&e[Ec("0x59")](s),this[Ec("0x3")][Ec("0x36")](t),this[Ec("0x19")].delete(o),n[Ec("0x4c")]()}[Ec("0x60")](t){if(!t[Ec("0x5b")]||!this[Ec("0x3")].has(t))return;const e=this[Ec("0x20")][Ec("0x56")].get("TrackChangesEditing"),n=this._suggestionToController[Ec("0x2e")](t),o=t[Ec("0x66")]();n[Ec("0x45")][Ec("0x35")]=e[Ec("0x10")].getDescriptions(o)}[Ec("0x4c")](){for(const t of this[Ec("0x3")][Ec("0x2")]())this._destroyController(t);for(const t of this[Ec("0x39")][Ec("0x25")]())t[Ec("0x6e")][Ec("0x4c")]();super[Ec("0x4c")]()}}var Tc,Cc,yc=["getSuggestions","plugins","Comments","addSuggestion","TrackChanges","getSuggestion","editor","get","adapter","requires"];Tc=yc,Cc=110,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x9")](){return[Wa,_c,kc("0x2")]}static get pluginName(){return kc("0x4")}set adapter(t){this.editor[kc("0x1")][kc("0x7")](Wa)[kc("0x8")]=t}get[kc("0x8")](){return this.editor[kc("0x1")].get(Wa).adapter}[kc("0x3")](t){return this[kc("0x6")][kc("0x1")][kc("0x7")](Wa).addSuggestionData(t)}[kc("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x6")][kc("0x1")].get(Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x5")](t){return this[kc("0x6")].plugins[kc("0x7")](Wa).getSuggestion(t)}}const vc=["name","addSuggestionData","editor","destroy","model","function","div","getRootsAttributes","editorCreator","result","users","appendChild","rootsAttributes","end","push","config","map","plugins","TrackChangesData","trackChangesData.editorCreator","reduce","TrackChangesEditing","define","get","addUser","useAnonymousUser","getFullData","discardAllSuggestions","execute","pluginName","CommentsRepository","createDocumentFragment","TrackChangesDataGetter","getSuggestions","data","document","init","set","Users","track-changes-data-invalid-editor-creator","getDataWithAcceptedSuggestions","getRootNames"];var Rc,Sc;Rc=vc,Sc=474,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0x11")](){return Ic("0x6")}[Ic("0x18")](){const t=this[Ic("0x20")];if(t[Ic("0x3")][Ic("0xa")](Ic("0x7"),(e=>{const n=t[Ic("0x22")][Ic("0x17")][Ic("0x1d")]()[Ic("0x8")](((t,e)=>(t[e]="",t)),{});return t.constructor.create(n,e)})),Ic("0x23")!=typeof t[Ic("0x3")][Ic("0xb")]("trackChangesData")[Ic("0x26")])throw new e.CKEditorError(Ic("0x1b"))}[Ic("0x1c")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x20")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x11")](){return Ic("0x14")}constructor(t){super(t),this[Ic("0x27")]=Ic("0x1")}init(){this.editor.plugins[Ic("0xb")](Ic("0x12"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x20")][Ic("0x5")][Ic("0xb")](Ic("0x9"))._adapter=null}}function wc(t){return void 0!==t[Ic("0x25")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x5")][Ic("0x2")](Wa,Mc),o[Ic("0x0")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x13")](),i=t.config[Ic("0xb")]("trackChangesData")[Ic("0x26")],x=await i(o,(()=>function(t){const e=document.createElement(Ic("0x24"));return t[Ic("0x29")](e),e}(s)));!function(t,e){const n=t[Ic("0x22")][Ic("0x17")].getRootNames()[Ic("0x8")](((e,n)=>(e[n]=t[Ic("0x16")][Ic("0xb")]({rootName:n}),e)),{}),o=t[Ic("0x5")][Ic("0xb")](Ic("0x1a"))[Ic("0x28")][Ic("0x4")]((t=>({id:t.id,name:t[Ic("0x1e")]}))),s=t[Ic("0x5")][Ic("0xb")]("TrackChangesEditing")[Ic("0x15")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(Ic("0x1a")),i=e[Ic("0x5")].get(Ic("0x9"));for(const t of o)r.getUser(t.id)||r[Ic("0xc")](t);r.me||r[Ic("0xd")]();for(const t of s)i[Ic("0x1f")](t);e.data[Ic("0x19")](n)}(t,x),x[Ic("0x10")](e?"acceptAllSuggestions":Ic("0xf"));const a=wc(x)?x[Ic("0xe")](n):x.data[Ic("0xb")](n);return await x[Ic("0x21")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|