@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230812.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:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","refresh","value","commands","TrackChangesCommand","_disableUnsupportedCommands","_enableCommands","_enabledCommands","has","affectsData","clearForceDisabled","_isEnabledBasedOnSelection"];var c,l;c=a,l=384,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("0x7")]=e,this[d("0x2")]=!1,this[d("0x1")](),this[d("0xb")]=!1}[d("0x1")](){this.isEnabled=!0}execute(){this.value=!this.value,this.value?this[d("0x5")]():this[d("0x6")]()}[d("0x5")](){for(const t of this[d("0x0")][d("0x3")][d("0x3")]())t.affectsData&&!this._enabledCommands.has(t)&&t.forceDisabled(d("0x4"))}[d("0x6")](){for(const t of this[d("0x0")].commands[d("0x3")]())t[d("0x9")]&&!this[d("0x7")][d("0x8")](t)&&t[d("0xa")]("TrackChangesCommand")}}const g=["model","acceptSuggestion","TrackChangesEditing","_suggestions","editor","plugins","execute","get","refresh"];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("0x8")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x4")](){this.isEnabled=!0}[h("0x2")](t){const n=this._suggestions[h("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this.editor[h("0x5")].canEditAt(o)&&this[h("0x0")][h("0x1")].get(h("0x7"))[h("0x6")](n)}}const b=["track-changes-discard-suggestion-not-found","refresh","execute","isEnabled","_suggestions","_isEnabledBasedOnSelection","get","plugins","editor","discardSuggestion"];var E,_;E=b,_=304,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x7")](),this[T("0x1")]=!1}refresh(){this[T("0x9")]=!0}[T("0x8")](t){const n=this[T("0x0")][T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n.getRanges();this[T("0x4")].model.canEditAt(o)&&this[T("0x4")][T("0x3")][T("0x2")]("TrackChangesEditing")[T("0x5")](n)}}const y=["push","start","createPositionAt","schema","join","isMultiRange","deletion","createPositionBefore","content","createPositionAfter","createRange","type","getRanges","isObject","isCollapsed","replace","sort","map","length","isInContent","from","getMarkers","end","execute","isIntersecting"];var k,A;k=y,A=235,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x6")](((t,e)=>"deletion"==t[v("0x1")]&&"deletion"!=e[v("0x1")]?-1:v("0x15")!=t[v("0x1")]&&v("0x15")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x12")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x16")](i)),S(e,i,x)||(s[v("0xf")](e[v("0x0")](n,r[v("0x3")](i)?e[v("0x18")](i):e[v("0x11")](i,v("0xc")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x16")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x8")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[v("0x9")]&&e[v("0xd")](t.id)}))}}const N=["canEditAt","from","values","_isEnabledBasedOnSelection","isInContent","getRanges","editor","model","_command","isEnabled","_suggestions","some","refresh"];var M,w;M=N,w=210,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("0x6")]=e,this[O("0x8")]=n,this[O("0xa")](),this[O("0x1")]=!1}[O("0xa")](){const t=Array[O("0xc")](this[O("0x8")][O("0x0")]())[O("0x9")]((t=>t[O("0x2")]));this[O("0x7")]=this[O("0x6")][O("0x7")]&&t}execute(){const t=R(Array[O("0xc")](this[O("0x8")].values()));for(const e of t){const t=e[O("0x3")]();if(!this.editor[O("0x5")][O("0xb")](t))return}L(this[O("0x4")][O("0x5")],this[O("0x6")],t)}}const P=["values","from","getRanges","_suggestions","_selectedSuggestions","editor","model","refresh","execute","canEditAt","isEnabled","_command","selection","document","_isEnabledBasedOnSelection"];var D,B;D=P,B=390,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("0xb")]=e,this[j("0x3")]=n,this[j("0x4")]=new Set,this.refresh(),this[j("0xe")]=!1}[j("0x7")](){const t=this.editor[j("0x6")][j("0xd")][j("0xc")],e=Array[j("0x1")](this[j("0x3")][j("0x0")]());this[j("0x4")]=function(t,e){const n=Array[v("0xa")](t[v("0x2")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0xb")]()){const r=n.getRange();(e[v("0xe")](r)||t[v("0x4")]&&!s[v("0x14")]&&s.next&&r[v("0xc")].isTouching(e[v("0x10")]))&&o.add(s)}return o}(t,e),this[j("0xa")]=this[j("0xb")][j("0xa")]&&!!this[j("0x4")].size}[j("0x8")](){const t=R(Array.from(this[j("0x4")]));for(const e of t){const t=e[j("0x2")]();if(!this[j("0x5")][j("0x6")][j("0x9")](t))return}L(this.editor[j("0x6")],this[j("0xb")],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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.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=W,$.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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(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 Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const Xt=function(t,e){var n=Vt(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=Wt,$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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):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 Ve=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 We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(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,We,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 In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const 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 Vn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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=In(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?We: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 Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=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=Io;case"[object Set]":var a=1&o;if(x||(x=So),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:In(t),c=x?Po:In(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 Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["substr","onDiscard","accept","creator","reduce","isInContent","isIntersectingWithRange","decorate","_onDiscard","getFirstMarker","clear","split","getFirstRange","removeMarkers","map","change","data","nodeAfter","length","@external","_onAttributesChange","getItems","getAllAdjacentSuggestions","getMarkers","add","get","onAccept","authoredAt","author","toJSON","previous","getMultiRangeId","delete","getRanges","push","from","_onAccept","isIntersecting","set","getMarkerNames","size","subType","next","createdAt","_saved","_model","_markerNames","getRange","type","removeAttribute","attributes","commentThread","onAttributesChange","removeMarker","end","setAttribute","start","nodeBefore","filter","addMarkerName","isExternal","suggestion:","hasComments"];var $o,Jo;$o=Xo,Jo=288,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("0xc")]=e[Qo("0xc")],this[Qo("0x5")]=e[Qo("0x5")]||null,this[Qo("0x37")]=e[Qo("0x37")],this[Qo("0x1e")]=e.creator||e[Qo("0x37")],this[Qo("0x18")]=Boolean(e[Qo("0xe")]&&e[Qo("0xe")][Qo("0x2e")]),this[Qo("0x2b")]=null,this[Qo("0x9")]=t,this[Qo("0x0")]=e[Qo("0x35")],this[Qo("0x23")]=e[Qo("0x1c")],this[Qo("0x2f")]=e[Qo("0x10")],this._markerNames=new Set,this[Qo("0x7")]=null,this.set(Qo("0x36"),null),this[Qo("0x2")](Qo("0xe"),e[Qo("0xe")]||{}),this.set("previous",null),this[Qo("0x2")](Qo("0x6"),null),this[Qo("0x2")](Qo("0xf"),null),this[Qo("0x2")](Qo("0x8"),!1),this[Qo("0x22")]("accept"),this.decorate("discard")}get head(){let t=this;for(;t[Qo("0x39")];)t=t[Qo("0x39")];return t}get[Qo("0x1a")](){return!!this[Qo("0xf")]&&this.commentThread[Qo("0x2d")]>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x4")]&&6==Array.from(this[Qo("0xa")])[0][Qo("0x26")](":")[Qo("0x2d")]}get[Qo("0x20")](){return null!==this.getFirstMarker()}[Qo("0x17")](t){this[Qo("0xa")][Qo("0x33")](t)}[Qo("0x3")](){return Array[Qo("0x3e")](this[Qo("0xa")])}[Qo("0x32")](){return this.getMarkerNames()[Qo("0x29")]((t=>this[Qo("0x9")].markers[Qo("0x34")](t)))[Qo("0x16")]((t=>t))}[Qo("0x24")](){return this[Qo("0x32")]()[0]||null}[Qo("0x28")](){this[Qo("0x9")][Qo("0x2a")]((t=>{for(const e of this[Qo("0x32")]())t[Qo("0x11")](e)})),this[Qo("0xa")][Qo("0x25")]()}[Qo("0x11")](t){this[Qo("0x9")][Qo("0x2a")]((e=>{e.removeMarker(t)})),this._markerNames[Qo("0x3b")](t)}addRange(t){const e=Qo("0x19")+this[Qo("0xc")]+":"+this.subType+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x3a")]();this[Qo("0x17")](e),this._model[Qo("0x2a")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x21")](t){for(const e of this[Qo("0x3c")]())if(e[Qo("0x1")](t))return!0;return!1}[Qo("0x3c")](){return this[Qo("0x32")]()[Qo("0x29")]((t=>t.getRange()))}getItems(){return this[Qo("0x3c")]()[Qo("0x1f")](((t,e)=>[...t,...e[Qo("0x30")]()]),[])}[Qo("0x27")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0xb")]())||null}getContainedElement(){const t=this.getRanges();if(1!=t[Qo("0x2d")])return null;const e=t[0],n=e[Qo("0x14")][Qo("0x2c")],o=e[Qo("0x12")][Qo("0x15")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1d")](){this[Qo("0x0")](this[Qo("0x3c")](),this[Qo("0x2b")],this[Qo("0xe")]),this[Qo("0x28")]()}discard(){this[Qo("0x23")](this[Qo("0x3c")](),this[Qo("0x2b")],this[Qo("0xe")]),this[Qo("0x28")]()}[Qo("0x31")](){const t=[];let e=this.head;for(;e;)t[Qo("0x3d")](e),e=e.next;return t}[Qo("0x13")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0xe")]=n,this[Qo("0x2f")](n))}[Qo("0xd")](t){const e=eo(this[Qo("0xe")]);qo(e,t),Go(e,this[Qo("0xe")])||(this.attributes=e,this._onAttributesChange(this[Qo("0xe")]))}[Qo("0x38")](){return{id:this.id,type:this[Qo("0x5")]?this.type+":"+this[Qo("0x5")]:this.type,authorId:this.creator.id,createdAt:this[Qo("0x7")],hasComments:this[Qo("0x1a")],data:this[Qo("0x2b")],attributes:this.attributes}}static[Qo("0x3a")](){return(0,e.uid)()[Qo("0x1b")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["getItemLabel","_schema","_addDescriptionItems","length","_locale","$1 $2","text","indexOf","type","addObject","isEqual","set","replace","deletion","removeContainer","getFirstRange","isEmpty","addEmptyContainer","_itemLabels","pop","data","getDescriptions","element","previousSibling","match","start","insertion","normal","ELEMENT_SPACE","label","addContainer","elementEnd","Object","elementStart","getWalker","name","EmptyContainer","isObject","removeEmptyContainer","nextSibling","*Split:* %0","$text","matchingCallback","item","function","*Remove:* %0","_customCallbacks","_resolveDescriptionItems","registerDescriptionCallback","add","skip","push","_itemLabelsCallbacks","quantity","registerElementLabel","remove","*Insert:* %0","Container"];var es,ns;es=ts,ns=221,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("0x39")]=[],this[os("0x1d")]=new Map,this[os("0x5")]=[],this[os("0xc")]=t,this[os("0xf")]=e}[os("0x20")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x13")in n&&e.push(n),s=!0;break}}if(!s){this[os("0xd")](e,o);const s=t[n+1];if(s&&!o[os("0x1a")]().end[os("0x15")](s[os("0x1a")]()[os("0x24")])){const t=e[e[os("0xe")]-1],n=os("0x25")==o[os("0x13")]?os("0x2"):"remove";t&&os("0x11")==t[os("0x13")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1")](t){this._customCallbacks[os("0x4")](t)}[os("0x7")](t,n,o=e.priorities[os("0x26")]){os("0x37")==typeof t?(0,e.insertToPriorityArray)(this[os("0x5")],{matchingCallback:t,label:n,priority:o}):this[os("0x1d")][os("0x16")](t,n)}[os("0xb")](t,e=1){let n;for(const e of this[os("0x5")])if(e[os("0x35")](t)){n=e[os("0x28")];break}return n||(n=this._itemLabels.get(t.name)),n?n(e):1!==e?e+" "+t[os("0x2e")]+"s":""+t[os("0x2e")]}[os("0xd")](t,e){const n=e.getFirstRange()[os("0x2d")](),o=os("0x25")==e[os("0x13")]?os("0x2"):os("0x8");for(const e of n){const s=e[os("0x36")],r=t[t.length-1];if(s.is("$textProxy"))r&&r.type.indexOf(os("0xa"))>-1&&t[os("0x1e")](),r&&os("0x11")==r[os("0x13")]?r[o]+=s.data:t[os("0x4")]({type:"text",add:os("0x2")==o?s[os("0x1f")]:"",remove:os("0x8")==o?s[os("0x1f")]:""});else if(this[os("0xc")].isObject(s)){const i=s;if(r&&r[os("0x13")][os("0x12")](os("0xa"))>-1&&t[os("0x1e")](),"elementEnd"==e.type)continue;r&&r.type==o+"Object"&&r.element[os("0x2e")]==i[os("0x2e")]?r.quantity++:t[os("0x4")]({type:o+os("0x2b"),element:i,quantity:1}),n[os("0x3")]((t=>!(os("0x2a")==t[os("0x13")]&&t[os("0x36")]==s)))}else if(this[os("0xc")].checkChild(s,os("0x34"))||s.is(os("0x21"),"softBreak")){const n=s;if(os("0x2")==o&&os("0x2c")==e.type||os("0x8")==o&&os("0x2a")==e[os("0x13")])continue;if(r&&-1==r.type[os("0x12")]("Container")){"text"==r.type&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x32")]&&!this[os("0xc")][os("0x30")](n[os("0x32")])?n[os("0x32")]:null:n.previousSibling&&!this[os("0xc")][os("0x30")](n.previousSibling)?n[os("0x22")]:null,n[os("0x1b")]||i&&i.isEmpty){const e=i&&i[os("0x1b")]?i:n;r&&r[os("0x13")]==o+os("0x2f")&&r[os("0x21")][os("0x2e")]==e[os("0x2e")]?r[os("0x6")]++:t[os("0x4")]({type:o+os("0x2f"),element:e,quantity:1})}else t[os("0x4")]({type:o+os("0xa"),element:n})}}}[os("0x0")](t){const e=this[os("0xf")],n=[];for(const o of t){switch(o[os("0x13")]){case os("0x11"):if(o[os("0x2")]=o.add[os("0x17")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x17")](/\u000A/g,""),o[os("0x8")]=o.remove[os("0x17")](/(\S)\u000A+(\S)/g,os("0x10"))[os("0x17")](/\u000A/g,""),""!=o[os("0x2")]&&""!=o[os("0x8")]){n[os("0x4")]({type:os("0x17"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x8")]+'"','"'+o[os("0x2")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x4")]({type:os("0x25"),content:Yo(e,os("0x9"),Yo(e,os("0x27"),o[os("0x2")].length))});continue}if(null!=o[os("0x8")][os("0x23")](/^ +$/)){n.push({type:os("0x18"),content:Yo(e,os("0x38"),Yo(e,os("0x27"),o[os("0x8")].length))});continue}if(""!=o[os("0x2")]){n.push({type:os("0x25"),content:Yo(e,os("0x9"),'"'+o[os("0x2")]+'"')});continue}n[os("0x4")]({type:os("0x18"),content:Yo(e,os("0x38"),'"'+o[os("0x8")]+'"')});continue;case os("0x1c"):case os("0x14"):n[os("0x4")]({type:os("0x25"),content:Yo(e,os("0x9"),this[os("0xb")](o[os("0x21")],o.quantity))});continue;case os("0x31"):case"removeObject":n[os("0x4")]({type:os("0x18"),content:Yo(e,"*Remove:* %0",this[os("0xb")](o[os("0x21")],o[os("0x6")]))});continue;case os("0x29"):n.push({type:os("0x25"),content:Yo(e,os("0x33"),this[os("0xb")](o[os("0x21")],o[os("0x6")]))});continue;case os("0x19"):n[os("0x4")]({type:os("0x18"),content:Yo(e,"*Merge:* %0",this[os("0xb")](o.element,o[os("0x6")]))});continue}n[os("0x4")](o)}return n}}const rs=["AlignmentEditing","checkAttribute","markBlockFormat","getAttribute","contentLanguageDirection","get","justify","editor","FORMAT_ALIGN_TO_LEFT","document","ltr","_descriptionFactory","model","locale","filter","value","FORMAT_ALIGN_TO_CENTER","center","FORMAT_JUSTIFY_TEXT","change","commandName","registerDescriptionCallback","format","enableCommand","alignment","*Format:* %0","right","afterInit","schema","left","commandParams","selection","TrackChangesEditing","getSelectedBlocks","plugins","FORMAT_ALIGN_TO_RIGHT"];var is,xs;is=rs,xs=400,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x17")](){const t=this[as("0x3")],e=t[as("0x9")];if(!t.plugins.has(as("0x20")))return;const n=t[as("0x1e")][as("0x1")](as("0x1c"));n[as("0x13")](as("0x14"),((e,o={})=>{let s=o[as("0xb")];o[as("0xb")]||(s=as("0x6")===t[as("0x9")][as("0x0")]?as("0x19"):as("0x16"));const r=Array.from(this[as("0x3")][as("0x8")][as("0x5")][as("0x1b")][as("0x1d")]())[as("0xa")]((t=>function(t,e,n){const o=t[as("0x23")](as("0x14"))||null;return e[as("0x21")](t,as("0x14"))&&n!=o}(t,this.editor.model[as("0x18")],s)));t[as("0x8")][as("0xf")]((()=>{for(const t of r)n[as("0x22")](t,{commandName:as("0x14"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x11")]((t=>{const{data:n}=t;if(n&&as("0x14")==n[as("0x10")]){const t=n[as("0x1a")][0][as("0xb")];return{type:as("0x12"),content:Yo(e,as("0x15"),function(t){switch(t){case"left":return Yo(e,as("0x4"));case"right":return Yo(e,as("0x1f"));case as("0xd"):return Yo(e,as("0xc"));case as("0x2"):return Yo(e,as("0xe"))}}(t))}}}))}}const ls=["createRangeOn","addHighlight","ck-suggestion-marker-","mapper","markerName","toViewPosition","get","span","hasAttribute","parent","isContent","activeMarkers","schema","isAtEnd","toViewElement","getCustomProperty","writer","nextSibling","element","listIndent","push","TrackChangesEditing","getItems","test","getAttribute","start","name","previousPosition","markerRange","insert","includes","consumable","ck-suggestion-marker--active","listItem"];var ds,us;ds=ls,us=309,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("0x13")]())s[gs("0x5")](t)&&o[gs("0x11")](n[gs("0x1f")](s));return o}function fs(t){const e=[];if(t.is(gs("0xf"),gs("0x1e"))){let n=t.nextSibling;for(;n&&n.is(gs("0xf"),gs("0x1e"))&&n[gs("0x15")](gs("0x10"))>0;)e[gs("0x11")](n),n=n[gs("0xe")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x3")](gs("0x12"));return(s,r,i)=>{if(!i[gs("0x1c")][gs("0x14")](r[gs("0x19")],s[gs("0x17")]))return;const x=r[gs("0x19")].getWalker(),a=r[gs("0x19")][gs("0x16")],c=t.model[gs("0x9")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x7")](e);const n=i[gs("0x0")][gs("0xb")](e);if(n&&n[gs("0xc")](gs("0x20")))return;"elementEnd"==t.type&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0xe")]||a[gs("0xa")]?l&&l[gs("0x6")]==e||(l=e,m(t[gs("0x18")]),g=!0):d=d||t[gs("0x18")])}function m(t){const s=i[gs("0xd")].createUIElement(gs("0x4"),{class:gs("0x21")+e}),x=i[gs("0x0")][gs("0x2")](t);n&&o[gs("0x8")][gs("0x1b")](r[gs("0x1")])&&i[gs("0xd")].addClass(gs("0x1d"),s),i[gs("0xd")][gs("0x1a")](x,s),i.mapper.bindElementToMarker(s,r[gs("0x1")])}u||g||!d||m(d)}}const ps=["enableCommand","FORMAT_CODE","FORMAT_STRIKETHROUGH","strikethrough","forceValue","change","ItalicEditing","get","FORMAT_SUBSCRIPT","toLowerCase","subscript","commandName","isCollapsed","underline","registerDescriptionCallback","model","FORMAT_ITALIC","TrackChangesEditing","has","document","from","UnderlineEditing","italic","BoldEditing","bold","StrikethroughEditing","FORMAT_UNDERLINE","format","plugins","FORMAT_BOLD","CodeEditing","commandParams","*Format:* %0","superscript","selection","code","markInlineFormat","_descriptionFactory","afterInit"];var bs,Es;bs=ps,Es=462,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1d"),_s("0xc"),_s("0x1b"),_s("0x24"),_s("0x1f"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x5")](){const t=this.editor,e=t[_s("0x15")],n=t[_s("0x22")][_s("0xd")](_s("0x17")),o=t.locale;for(const o of Ts){if(!t.plugins[_s("0x18")](o))continue;const s=o.slice(0,-7)[_s("0xf")](),r=t.commands[_s("0xd")](s);n[_s("0x6")](s,((t,o={})=>{const i=e[_s("0x19")][_s("0x1")];if(i[_s("0x12")])return void t(o);const x=void 0!==o[_s("0xa")]?o[_s("0xa")]:!r.value;e[_s("0xb")]((()=>{const t=Array[_s("0x1a")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x4")][_s("0x14")]((n=>{const{data:s}=n;if(s&&s[_s("0x11")]===t)return s[_s("0x25")][0][_s("0xa")]?{type:_s("0x21"),content:Yo(o,_s("0x26"),e)}:{type:_s("0x21"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x1e"),Yo(o,_s("0x23"))),s(_s("0x1c"),Yo(o,_s("0x16"))),s(_s("0x13"),Yo(o,_s("0x20"))),s(_s("0x2"),Yo(o,_s("0x7"))),s(_s("0x9"),Yo(o,_s("0x8"))),s(_s("0x10"),Yo(o,_s("0xe"))),s(_s("0x0"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const ys=["from","editor","get","commandName","model","commands","filter","*Remove format:* %0","blockQuote","$root","checkChild","commandParams","markBlockFormat","format","_descriptionFactory","plugins","TrackChangesEditing","parent","selection","BlockQuoteEditing","value","forceValue","afterInit","registerDescriptionCallback","*Format:* %0","getSelectedBlocks","schema","enableCommand","name","change"];var ks,As;ks=ys,As=416,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x1a")](){const t=this[vs("0x5")],e=t.locale;if(!t[vs("0x13")].has(vs("0x17")))return;const n=t[vs("0x13")][vs("0x6")](vs("0x14")),o=this[vs("0x5")][vs("0x9")][vs("0x6")]("blockQuote");n[vs("0x1")](vs("0xc"),((e,s={})=>{const r=this.editor[vs("0x8")].document[vs("0x16")],i=s&&void 0!==s.forceValue?s.forceValue:!o[vs("0x18")];let x=[];if(i){const e=Array[vs("0x4")](r[vs("0x1d")]())[vs("0xa")]((t=>Is(t)||function(t,e){const n=e[vs("0xe")](t[vs("0x15")],vs("0xc")),o=e[vs("0xe")]([vs("0xd"),vs("0xc")],t);return n&&o}(t,this[vs("0x5")].model[vs("0x0")])));x=I(e,t[vs("0x8")])}else{const e=Array[vs("0x4")](r.getSelectedBlocks())[vs("0xa")]((t=>Is(t)));x=I(e,t[vs("0x8")])}t.model[vs("0x3")]((()=>{for(const t of x)n[vs("0x10")](t,{commandName:vs("0xc"),commandParams:[{forceValue:i}]})}))})),n[vs("0x12")][vs("0x1b")]((t=>{const{data:n}=t;if(n&&vs("0xc")==n[vs("0x7")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0xf")][0][vs("0x19")]?{type:vs("0x11"),content:Yo(e,vs("0x1c"),t)}:{type:vs("0x11"),content:Yo(e,vs("0xb"),t)}}}))}}function Is(t){return vs("0xc")==t[vs("0x15")][vs("0x2")]}const Ss=["TrackChangesEditing","get","editor","enableCommand","commands","ckbox"];var Ls,Ns;Ls=Ss,Ns=148,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ms("0x4")];t[Ms("0x0")][Ms("0x3")](Ms("0x1"))&&t.plugins.get(Ms("0x2"))[Ms("0x5")]("ckbox")}}const Os=["TrackChangesEditing","rootElement","model","getSelectedBlocks","forceValue","isLimit","selection","from","commandName","codeBlock","*Remove format:* %0","outdentCodeBlock","markBlockFormat","has","get","commandParams","language","checkChild","registerElementLabel","enableCommand","schema","filter","languages","name","label","locale","config","ELEMENT_CODE_BLOCK","indentCodeBlock","format","parent","change","value","_descriptionFactory","CodeBlock","commands"];var Fs,Ps;Fs=Os,Ps=393,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.editor;if(!t.plugins[Ds("0x10")](Ds("0x1")))return;const e=t.plugins[Ds("0x11")](Ds("0x3")),n=t[Ds("0x1c")],o=t[Ds("0x1d")][Ds("0x11")](Ds("0xc"))[Ds("0x19")],s=t[Ds("0x2")].get("codeBlock");e.enableCommand(Ds("0x1f")),e[Ds("0x16")](Ds("0xe")),e[Ds("0x16")](Ds("0xc"),((n,r={})=>{const i=t[Ds("0x5")],x=t[Ds("0x5")].document[Ds("0x9")],a=r&&void 0!==r.forceValue?r[Ds("0x7")]:!s[Ds("0x23")];let c;r[Ds("0x13")]||(r[Ds("0x13")]=o[0].language),c=a?Array[Ds("0xa")](x[Ds("0x6")]())[Ds("0x18")]((t=>{return js(t)||(e=t,n=i[Ds("0x17")],!e.is(Ds("0x4"))&&!n[Ds("0x8")](e)&&n[Ds("0x14")](e[Ds("0x21")],"codeBlock"));var e,n})):Array[Ds("0xa")](x[Ds("0x6")]())[Ds("0x18")]((t=>js(t)));const l=I(c,i);i[Ds("0x22")]((()=>{for(const t of l)e[Ds("0xf")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Ds("0x15")](Ds("0xc"),(t=>Yo(n,Ds("0x1e"),t))),e[Ds("0x0")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Ds("0xc")==r[Ds("0xb")]){const t=r[Ds("0x12")][0].language,s=e(o.find((e=>e[Ds("0x13")]===t))[Ds("0x1b")]);return r.commandParams[0].forceValue?{type:Ds("0x20"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x1e"),1)+" ("+s+")")}:{type:Ds("0x20"),content:Yo(n,Ds("0xd"),Yo(n,Ds("0x1e"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x1a")]}const Us=["TrackChangesEditing","enableCommand","get","CommentsEditing","plugins","afterInit"];var Gs,Hs;Gs=Us,Hs=462,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x5")](){const t=this.editor;t[zs("0x4")].has(zs("0x3"))&&t[zs("0x4")][zs("0x2")](zs("0x0"))[zs("0x1")]("addCommentThread")}}var Ws=n(181);const Ks=["end","markerNameToElements","TrackChangesEditing","document","editing","enableCommand","enqueueChange","commands","requires","setSelection","removeMarker:suggestion:deletion","buffer","forward","data","addMarker:suggestion:deletion","createSelection","lock","fromRange","selection","high","unlock","editor","createRange","merge","model","mapper","bind","root","showSuggestionHighlights","start","get","unit","options","batch","remove","plugins","$graveyard","deleteForward","uiElement","downcastDispatcher"];var qs,Xs;qs=Ks,Xs=341,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("0x1b")](){return[Ws.Delete]}init(){const t=this[$s("0x0")],e=t[$s("0xe")][$s("0x9")]($s("0x15"));e[$s("0x18")]("delete");const n=t[$s("0x1a")][$s("0x9")]($s("0x10"));e[$s("0x18")]($s("0x10"),((e,o={})=>{const s=t[$s("0x3")][$s("0x22")](t[$s("0x3")][$s("0x16")][$s("0x25")]);s.isCollapsed&&t[$s("0x3")].modifySelection(s,{direction:$s("0x1f"),unit:o[$s("0xa")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0x24")](r);let a;e(o),a=$s("0xf")==x[$s("0x6")].rootName?t[$s("0x3")].createRange(r[$s("0x8")]):t[$s("0x3")][$s("0x1")](x.start,x[$s("0x13")]),x.detach(),t[$s("0x3")][$s("0x19")](n.buffer[$s("0xc")],(t=>{n.buffer[$s("0x23")](),t[$s("0x1c")](t.createRange(a.end)),n[$s("0x1e")][$s("0x27")]()}))})),t[$s("0x17")][$s("0x12")].on($s("0x21"),hs(t,$s("0x2")),{priority:$s("0x26")}),t[$s("0x20")][$s("0x12")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0xb")][$s("0x7")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x5")](this)(e,n,o)}),{priority:$s("0x26")}),t.editing[$s("0x12")].on($s("0x1d"),((t,e,n)=>{const o=n[$s("0x4")][$s("0x14")](e.markerName);if(o)for(const t of o)t.is($s("0x11"))&&(n[$s("0x4")].unbindElementFromMarkerName(t,e.markerName),n.writer[$s("0xd")](t))}),{priority:$s("0x26")})}}const Qs=["start","documentList","setSelection","findIndex","value","listIndent","markMultiRangeBlockFormat","end","slice","parent","refresh","detach","length","deletion","change","outdentList","ELEMENT_","numberedList","getAttribute","getRanges","splitListItemBefore","createPositionAt","from","document","mergeListItemForward","markBlockFormat","model","getSelectedBlocks","toUpperCase","commands","multipleBlocks","commandParams","forceValue","listType","isFirstBlockOfListItem","getFirstRange","*Outdent:* %0","ELEMENT_NUMBERED_LIST","nextSibling","DocumentListUtils","isObject","commandName","formatBlock","editor","plugins","format","selection","*Format:* insert into %0","schema","before","containsItem","TrackChangesEditing","indentList","bulletedList","execute","hasAttribute","*Change to:* %0","nodeAfter","*Format:* remove from %0","map","enableCommand","registerDescriptionCallback","_LIST","next","ELEMENT_LIST_ITEM","after","has","DocumentListEditing","*Merge:* %0","push","afterInit","get","mergeListItemBackward","previousSibling","createRange","*Indent:* %0","accept","fromRange","splitListItemAfter","listItemId","ELEMENT_BULLETED_LIST"];var Zs,Ys;Zs=Qs,Ys=330,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x40")](){const t=this[tr("0x25")];if(!t.plugins[tr("0x3c")](tr("0x3d")))return;const e=t.locale,n=t[tr("0x26")].get(tr("0x2d")),o=t[tr("0x26")].get(tr("0x21"));function s(e){return()=>{const s=t[tr("0x17")][tr("0x41")](e);let r=Array.from(t[tr("0x14")][tr("0x11")][tr("0x28")][tr("0x15")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o[tr("0x1c")](e)&&t[tr("0x3f")](e);r=t}t[tr("0x14")].change((()=>{n[tr("0x0")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x4f")]}],formatGroupId:tr("0x1b")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x10")](t);const n=e[tr("0x4e")]((t=>!t[tr("0x31")](tr("0x49"))));return n>-1&&(e=e[tr("0x2")](0,n)),e}(t[tr("0x14")][tr("0x11")].selection[tr("0x15")]()),s=o[o[tr("0x6")]-1],r=t[tr("0x14")][tr("0x2a")][tr("0x22")](s)?tr("0x3b"):tr("0x1"),i=t.model[tr("0x44")](t[tr("0x14")].createPositionAt(o[0],tr("0x2b")),t.model[tr("0xf")](s,r));t[tr("0x14")][tr("0x8")]((()=>{n[tr("0x13")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0xc")](tr("0x50"))>n[tr("0xc")](tr("0x50"));)e.add(t),t=t[tr("0x20")]}return Array[tr("0x10")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x11")][tr("0x28")][tr("0x15")]()[tr("0x39")]()[tr("0x4f")],s=t[tr("0x14")][tr("0xf")](o,"before"),r=t[tr("0x14")].createPositionAt(o,0),i=t.model.createRange(s,r);t[tr("0x14")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x1b")})}))}}function a(e){const n=t[tr("0x17")][tr("0x41")](tr("0x2f"))[tr("0x4f")],o=t[tr("0x17")][tr("0x41")]("numberedList")[tr("0x4f")];return tr("0xb")===e?n:o}n.enableCommand(tr("0xb"),s(tr("0xb"))),n.enableCommand(tr("0x2f"),s(tr("0x2f"))),n[tr("0x36")]("indentList",r("indentList")),n[tr("0x36")]("outdentList",r(tr("0x9"))),n[tr("0x36")]("splitListItemAfter",x(tr("0x48"))),n.enableCommand("splitListItemBefore",x(tr("0xe"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[tr("0x14")][tr("0x2a")].isObject(e),o=e[tr("0x43")],s=e[tr("0x20")],r=e[tr("0xc")](tr("0x49")),i=!o||o[tr("0xc")](tr("0x49"))!==r,x=!s||s[tr("0xc")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0x37")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x23")]){case tr("0x2f"):r=n[tr("0x19")][0].forceValue,i=a(n.commandName),o=r?tr("0x29"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),s={type:tr("0x27"),content:Yo(e,o,Yo(e,tr("0x4a")))};break;case tr("0xb"):r=n[tr("0x19")][0][tr("0x1a")],i=a(n[tr("0x23")]),o=tr(r?"0x29":"0x34"),i&&(o=tr("0x32")),s={type:tr("0x27"),content:Yo(e,o,Yo(e,tr("0x1f")))};break;case tr("0x2e"):o=tr("0x45"),s={type:tr("0x27"),content:Yo(e,o,Yo(e,tr("0x3a")))};break;case tr("0x9"):o=function(t){const e=t[tr("0x1d")]();let n=e[tr("0x4b")][tr("0x33")];for(;n&&e[tr("0x2c")](n);){if(n[tr("0xc")](tr("0x50"))>0)return!1;n=n[tr("0x20")]}return!0}(t)?Yo(e,tr("0x34"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x4b")].nodeAfter;return tr("0xa")+e.getAttribute(tr("0x1b"))[tr("0x16")]()+tr("0x38")}(t))):Yo(e,tr("0x1e"),Yo(e,tr("0x3a"))),s={type:tr("0x27"),content:o};break;case tr("0x42"):case tr("0x12"):!1===n[tr("0x18")]&&(o=tr("0x3e"),s={type:tr("0x7"),content:Yo(e,o,Yo(e,tr("0x3a")))})}return s})),n._suggestionFactory.registerCustomCallback(tr("0x24"),tr("0x4c"),tr("0x46"),(function(e,n){const o=[];for(let n of e)n[tr("0x4b")].nodeAfter===n[tr("0x1")][tr("0x3")]&&(n=t.model[tr("0x44")](t[tr("0x14")][tr("0xf")](n.start[tr("0x33")],0))),o[tr("0x3f")](n);t.model[tr("0x8")]((e=>{const s=t.model.document[tr("0x28")],r=Array.from(s[tr("0xd")]())[tr("0x35")]((t=>i.LiveRange[tr("0x47")](t)));e[tr("0x4d")](o),t[tr("0x17")][tr("0x41")](n[tr("0x23")])[tr("0x4")](),n[tr("0x19")][tr("0x3f")]({forceDefaultExecution:!0}),t[tr("0x30")](n[tr("0x23")],...n.commandParams),e[tr("0x4d")](r);for(const t of r)t[tr("0x5")]()}))}))}}var nr=n(331);const or=["selection","createRange","createPositionAt","getFirstPosition","bind","mapper","hasClass","get","remove","plugins","init","downcastDispatcher","document","enableCommand","end","split","parent","editing","options","fire","high","data","model","detach","editor","enter","addMarker:suggestion:insertion","markerNameToElements","TrackChangesEditing","fromRange","afterExecute","removeMarker:suggestion:insertion","unbindElementFromMarkerName","enterBlock","markInsertion","nextSibling","change","markerName"];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 requires(){return[nr.Enter]}[ir("0xd")](){const t=this[ir("0x1b")],e=t[ir("0xc")][ir("0xa")](ir("0x1f")),n=t.commands[ir("0xa")]("enter");e[ir("0x10")](ir("0x1c"),(()=>{t[ir("0x19")][ir("0x1")]((o=>{const s=t.model[ir("0xf")][ir("0x3")],r=s[ir("0x6")](),x=i.LiveRange[ir("0x20")](s.getFirstRange());if(n[ir("0x24")](o)){const n=t.model[ir("0x5")](r[ir("0x13")][ir("0x0")],0),s=o[ir("0x4")](r,n);e[ir("0x25")](s)}else o.setSelection(o[ir("0x4")](x[ir("0x11")]));x[ir("0x1a")](),n[ir("0x16")](ir("0x21"),{writer:o})}))})),t[ir("0x14")][ir("0xe")].on(ir("0x1d"),hs(t,ir("0x12")),{priority:"high"}),t[ir("0x14")][ir("0xe")].on(ir("0x22"),((t,e,n)=>{const o=n[ir("0x8")][ir("0x1e")](e[ir("0x2")]);if(o)for(const t of o)t[ir("0x9")]("ck-suggestion-marker-split")&&(n[ir("0x8")][ir("0x23")](t,e[ir("0x2")]),n.writer[ir("0xb")](t))}),{priority:ir("0x17")}),t[ir("0x18")][ir("0xe")].on(ir("0x1d"),((e,n,o)=>{o[ir("0x15")].showSuggestionHighlights&&hs(t,"split",{showActiveMarker:!1})[ir("0x7")](this)(e,n,o)}),{priority:ir("0x17")})}}const ar=["item","model","end","enableCommand","start","createPositionAt","findPrevious","findByTextCallback","findNext","getIntersection","markers","editor","suggestion:deletion","string","filter","plugins","handleFindCommand","afterInit","replaceAll","get","_isInDeletionRange","getRange","find","FindAndReplaceEditing"];var cr,lr;cr=ar,lr=410,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xf")](){if(!this.editor[dr("0xd")].has(dr("0x15")))return;const t=this[dr("0x9")][dr("0xd")].get("TrackChangesEditing");t[dr("0x1")](dr("0x14"),this[dr("0xe")].bind(this)),t[dr("0x1")](dr("0x6")),t.enableCommand(dr("0x4")),t[dr("0x1")]("replace"),t[dr("0x1")](dr("0x10"))}handleFindCommand(t,e,n={}){const o=this[dr("0x9")][dr("0xd")][dr("0x11")]("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0xb")==typeof e?o[dr("0x5")](e,n):e)(t)[dr("0xc")]((e=>!1===this[dr("0x12")](e,t[dr("0x16")])))),n)}[dr("0x12")](t,e){const n=this[dr("0x9")].model.createRange(this[dr("0x9")][dr("0x17")][dr("0x3")](e,t[dr("0x2")]),this[dr("0x9")].model[dr("0x3")](e,t[dr("0x0")]));for(const t of this.editor.model[dr("0x8")].getMarkersGroup(dr("0xa")))if(null!==n[dr("0x7")](t[dr("0x13")]()))return!0;return!1}}const gr=["fontBackgroundColor.colors","*Reset font size*","getRanges","FontColorEditing","value","commandName","fontColor","registerDescriptionCallback","has","format","*Set font background color:* %0","*Set font color:* %0","*Set font family:* %0","plugins","markInlineFormat","change","fontColor.colors","config","isCollapsed","from","label","document","trim","_enableCommand","fontFamily","fontSize.options","editor","find","fontSize","commandParams","toLowerCase","TrackChangesEditing","get","model","FontSizeEditing","fontBackgroundColor","locale","*Reset font color*","*Reset font family*"];var mr,fr;mr=gr,fr=295,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0xc"),commandName:hr("0x6")},{pluginName:"FontFamilyEditing",commandName:hr("0x2")},{pluginName:hr("0x14"),commandName:hr("0x17")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0xd")}];class br extends t.Plugin{afterInit(){const t=this[hr("0x4")][hr("0xe")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x4")][hr("0x1e")][hr("0x19")](t)&&this[hr("0x1")](e);this.editor[hr("0x1e")].get(hr("0x9"))._descriptionFactory[hr("0x18")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x16")]){const e=o.commandParams[0][hr("0x15")];if(e){const o=n(this[hr("0x4")][hr("0x1e")].get("FontSize").normalizeSizeOptions(this[hr("0x4")][hr("0x22")].get(hr("0x3")))[hr("0x5")]((t=>t.model==e)).title)[hr("0x8")]();return{type:hr("0x1a"),content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x1a"),content:Yo(t,hr("0x12"))}}if(hr("0x2")==o[hr("0x16")]){const e=o[hr("0x7")][0][hr("0x15")];return e?{type:"format",content:Yo(t,hr("0x1d"),e)}:{type:hr("0x1a"),content:Yo(t,hr("0x10"))}}if(hr("0x17")==o[hr("0x16")]){const e=o[hr("0x7")][0][hr("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x4")].config[hr("0xa")](hr("0x21")))[hr("0x5")]((t=>t[hr("0xb")]==e));let r=e,i="";return o&&(r=o[hr("0x25")],i=n(r)[hr("0x8")]()),{type:hr("0x1a"),content:Yo(t,hr("0x1c"),i)[hr("0x0")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,hr("0xf"))}}if("fontBackgroundColor"==o.commandName){const e=o[hr("0x7")][0][hr("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this.editor.config[hr("0xa")](hr("0x11"))).find((t=>t[hr("0xb")]==e));let r=e,i="";return o&&(r=o[hr("0x25")],i=n(r).toLowerCase()),{type:hr("0x1a"),content:Yo(t,hr("0x1b"),i)[hr("0x0")](),color:{value:e,title:i||r}}}return{type:hr("0x1a"),content:Yo(t,"*Reset font background color*")}}}}))}_enableCommand(t){const e=this[hr("0x4")];e[hr("0x1e")][hr("0xa")](hr("0x9")).enableCommand(t,((n,o={})=>{const s=e.model[hr("0x26")].selection,r=o[hr("0x15")];s[hr("0x23")]?n(o):e.model[hr("0x20")]((()=>{const n=Array[hr("0x24")](s[hr("0x13")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xb")]);for(const o of n)e[hr("0x1e")][hr("0xa")](hr("0x9"))[hr("0x1f")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["fontSize.options","title","split","getSelectedBlocks","fontBackgroundColor","fontColor","pasteFormat","normalizeSizeOptions","toLowerCase","*Remove all formatting*","model","schema","keys","TrackChangesEditing","plugins","editor","FontSize","config","toUpperCase","getAttributeProperties","modifySelection","format","commandName","createRange","commandParams","label","slice","charAt","isCollapsed","*Set format to:* %0","join","copyFormat","document","word","get","isFormatting","getFirstPosition","enableCommand","backward","find","locale","createSelection","getRanges","isBlock","_descriptionFactory","fontColor.colors","getAttributes","forward","getItems","fontSize","selection","commands"];var _r,Tr;_r=Er,Tr=432,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("0x33")],n=t[Cr("0x2e")],o=n[Cr("0x10")][Cr("0x22")],s=t[Cr("0x32")][Cr("0x12")](Cr("0x31")),r=t[Cr("0x18")],i=t[Cr("0x23")][Cr("0x12")]("copyFormat"),x=t[Cr("0x23")][Cr("0x12")](Cr("0x2a"));i&&x&&(s[Cr("0x15")](Cr("0x2a"),((t,r={})=>{const i=r;n.change((()=>{const t=Array.from(o[Cr("0x1a")]()),r=o[Cr("0xc")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x1e")]()){const t=e[Cr("0x3")](n);t&&t[Cr("0x13")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1a")]())for(const t of e[Cr("0x20")]())!n[Cr("0x1b")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x27")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x2f")]))||0!==Object[Cr("0x30")](i).length)for(const t of r)s.markInlineFormat(t,{commandName:Cr("0x2a"),commandParams:[i]})}))})),s[Cr("0x1c")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x6")]){const e=[],o=n[Cr("0x8")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e.length?{type:Cr("0x5"),content:Yo(r,Cr("0xd"),e[Cr("0xe")](", "))}:{type:Cr("0x5"),content:Yo(r,Cr("0x2d"))}}})),t[Cr("0x32")].get(Cr("0x31"))[Cr("0x15")](Cr("0xf")))}}function kr(t,e){const n=t[Cr("0x19")](e);t[Cr("0x4")](n,{unit:Cr("0x11"),direction:Cr("0x16")});const o=n[Cr("0x14")]();t[Cr("0x4")](n,{unit:Cr("0x11"),direction:Cr("0x1f")});const s=n.getLastPosition();return t[Cr("0x7")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x26")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0xb")](0)[Cr("0x2")]()+r[Cr("0xa")](1))[Cr("0x2c")]();if("boolean"==typeof n)return i;if(Cr("0x29")===e||Cr("0x28")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x12")](Cr("0x1d")))[Cr("0x17")]((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x9")]).toLowerCase():n)+")"}if(Cr("0x21")===e&&isNaN(parseFloat(n))){const e=t.plugins.get(Cr("0x0"))[Cr("0x2b")](t[Cr("0x1")][Cr("0x12")](Cr("0x24"))).find((t=>t[Cr("0x2e")]==n));return i+" ("+(e?o(e[Cr("0x25")])[Cr("0x2c")]():n)+")"}return i+" ("+n+")"}const vr=["_descriptionFactory","filter","has","plugins","heading","TrackChangesEditing","format","document","afterInit","registerElementLabel","checkChild","model","selection","commandParams","markBlockFormat","*Change to:* %0","editor","find","match","commandName","heading.options","name","enableCommand","locale","title","config","ELEMENT_HEADING_CUSTOM","get","registerDescriptionCallback","HeadingEditing","ELEMENT_HEADING"];var Rr,Ir;Rr=vr,Ir=393,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x12")](){const t=this[Sr("0x1a")],e=t[Sr("0x2")],n=t[Sr("0x4")][Sr("0x6")](Sr("0x1e"));if(!t[Sr("0xd")][Sr("0xc")](Sr("0x8")))return;const o=t[Sr("0xd")].get(Sr("0xf"));o[Sr("0x1")](Sr("0xe"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Sr("0x15")][Sr("0x11")][Sr("0x16")].getSelectedBlocks())[Sr("0xb")]((t=>{return e=t,n=s,(o=this.editor.model.schema)[Sr("0x14")](e.parent,n)&&!o.isObject(e)&&e[Sr("0x0")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Sr("0x18")](t,{commandName:Sr("0xe"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0x15")]&&o._descriptionFactory[Sr("0x13")](t[Sr("0x15")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Sr("0x3")])}));function s(t,n){return Yo(e,Sr("0x9"),[t,n])}function r(t,n){return Yo(e,Sr("0x5"),[t,n])}o[Sr("0xa")][Sr("0x7")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Sr("0xe")==i[Sr("0x1d")]){const t=i[Sr("0x17")][0].value,o=Nr(t);if(null!==o)return{type:Sr("0x10"),content:Yo(e,Sr("0x19"),s(1,o))};const x=n[Sr("0x1b")]((e=>e[Sr("0x15")]===t))[Sr("0x3")];return{type:Sr("0x10"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Sr("0x1c")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["FORMAT_HIGHLIGHT","getFirstPosition","HighlightEditing","getLastMatchingPosition","TrackChangesEditing","has","format","item","getRanges","selection","backward","formatInline","enableCommand","hasAttribute","model","*Set highlight:* %0","locale","title","highlight","commandName","find","getAttribute","document","color","*Remove highlight*","isCollapsed","value","get","config","plugins","_descriptionFactory","registerDescriptionCallback"];var wr,Or;wr=Mr,Or=293,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Fr("0x18")][Fr("0x0")](Fr("0x1d")))return;const e=t[Fr("0x18")][Fr("0x16")](Fr("0x1f"));e[Fr("0x7")]("highlight",((n,o={})=>{const s=t.model[Fr("0x11")][Fr("0x4")],r=s[Fr("0x10")](Fr("0xd"));let i=o.value,x=[];if(s[Fr("0x14")]){const e=s[Fr("0x1c")]();if(!s[Fr("0x8")]("highlight"))return void n(o);{const n=t=>t[Fr("0x2")][Fr("0x10")](Fr("0xd"))===r,o=e[Fr("0x1e")](n,{direction:Fr("0x5")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x9")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x3")]())i?x.push(e):x.push(...ms(Fr("0xd"),e,t[Fr("0x9")]));t[Fr("0x9")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fr("0xd"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xb")];e[Fr("0x19")][Fr("0x1a")]((e=>{const{type:o,data:s}=e;if(Fr("0x6")==o&&s&&Fr("0xd")==s[Fr("0xe")]){const e=n.t,o=s.commandParams[0][Fr("0x15")];if(o){const s=t[Fr("0x17")][Fr("0x16")]("highlight.options")[Fr("0xf")]((t=>t.model==o)),r=e(s[Fr("0xc")]).toLowerCase();return{type:"format",content:Yo(n,Fr("0xa"),r),color:{value:s[Fr("0x12")],title:s.title}}}return{type:Fr("0x1"),content:Yo(n,Fr("0x13"),Yo(n,Fr("0x1b")))}}}))}}const Dr=["elementToStructure","get","high","for","afterInit","conversion","plugins","createPositionAt","ck-horizontal-line","editor","enableCommand","createEmptyElement","TrackChangesEditing","has","ELEMENT_HORIZONTAL_LINE","addClass","insert","locale","horizontalLine"];var Br,jr;Br=Dr,jr=262,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("0xd")];if(!t.plugins[Ur("0x11")]("HorizontalLineEditing"))return;t[Ur("0xa")][Ur("0x5")]("TrackChangesEditing")[Ur("0xe")](Ur("0x3"));const e=t[Ur("0xa")][Ur("0x5")](Ur("0x10")),n=t[Ur("0x2")];e._descriptionFactory.registerElementLabel(Ur("0x3"),(t=>Yo(n,Ur("0x12"),t))),t[Ur("0x9")][Ur("0x7")]("dataDowncast")[Ur("0x4")]({model:Ur("0x3"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e.createContainerElement("div"),s=e[Ur("0xf")]("hr");return e[Ur("0x0")](Ur("0xc"),o),e[Ur("0x1")](e[Ur("0xb")](o,0),s),o},converterPriority:Ur("0x6")})}}const Hr=["rawHtmlApi","HtmlEmbed","change","registerElementLabel","element","editor","editing","cancel","getSelectedElement","getCustomProperty","registerDescriptionCallback","_descriptionFactory","value","rawHtml","markBlockFormat","htmlEmbed","model","plugins","selection","ELEMENT_HTML_EMBED","has","get","*Change %0 content*","document","commandName","TrackChangesEditing"];var zr,Vr;zr=Hr,Vr=488,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Wr("0xb")];if(!t.plugins[Wr("0x0")](Wr("0x7")))return;const e=t[Wr("0x17")][Wr("0x1")](Wr("0x5")),n=t.locale,o=t[Wr("0xc")].view[Wr("0x3")][Wr("0x18")];e[Wr("0x11")][Wr("0x9")](Wr("0x13"),(t=>Yo(n,Wr("0x19"),t))),t[Wr("0x17")][Wr("0x1")](Wr("0x5")).enableCommand(Wr("0x15"),((n,s)=>{const r=t[Wr("0x16")],i=r[Wr("0x3")].selection;r[Wr("0x8")]((()=>{const t=function(t){const e=t[Wr("0xe")]();return e&&e.is(Wr("0xa"),Wr("0x13"))?t[Wr("0xe")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Wr("0x12"))||"";void 0!==s&&s!==r&&(e[Wr("0x14")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Wr("0xe")]()[Wr("0xf")](Wr("0x6"))[Wr("0xd")]())}))})),e[Wr("0x11")][Wr("0x10")]((t=>{const{data:e}=t;if(e&&Wr("0x15")==e[Wr("0x4")]){const t=Yo(n,Wr("0x19"));return{type:"format",content:Yo(n,Wr("0x2"),t)}}}))}}const qr=["commandName","registerDescriptionCallback","getFirstRange","ImageCaptionUtils","_suggestionFactory","end","getSuggestion","getContainedElement","ELEMENT_IMAGE","imageCaption","_descriptionFactory","ImageTextAlternativeEditing","hasAttribute","suggestion","insertion","resizeImage","isIntersecting","insertImage","*Set image text alternative:* %0","alt","toggleImageCaption","isInContent","filter","ImageStyleEditing","length","schema","createRange","isBefore","markBlockFormat","*Remove image text alternative*","getAttribute","imageStylePreApply","selection","model","getSuggestionCallback","imageTextAlternative","fromPosition","toPrevious","imageTypeInline","_splitMarkerName","format","nodeAfter","find","type","newRange","isBlockImage","toLowerCase","convertInlineImageToBlock","findIndex","discard","forEach","backward","previous","Users","markInlineFormat","plugins","imageTypeBlock","next","enableCommand","get","editor","getCaptionFromImageModelElement","commandParams","isCollapsed","getChangedMarkers","markInsertion","ImageCaptionEditing","ELEMENT_CAPTION","convertBlockImageToInline","registerCustomCallback","imageInline","getNearestSelectionRange","value","change","commandReversedParams","_findSuggestions","uploadImage","registerElementLabel","formatInline","discardSuggestion","imageStylePostApply","FORMAT_SIDE_IMAGE","isEqual","normalizedStyles","subType","hasSuggestion","refresh","width","addObject","toNext","chain","ImageBlockEditing","getClosestSelectedImageElement","afterInit","element","ImageResize","deletion","registerPostFixer","createRangeOn","formatBlock","join","imageStyle","*Reset image width*","ImageEditing","ImageUtils","has","caption","document","accept","differ","newValue","removeObject","ImageUploadEditing","from","forceDefaultExecution","*Format:* %0","start","detach"];var Xr,$r;Xr=qr,$r=422,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x19")](){const t=this[Jr("0x6e")];if(!t[Jr("0x69")].has(Jr("0x23")))return;const n=t.plugins[Jr("0x6d")]("TrackChangesEditing"),o=t[Jr("0x69")][Jr("0x6d")](Jr("0x24")),s={},r=t.locale;if(n[Jr("0x6c")](Jr("0x43")),n[Jr("0x3c")].registerElementLabel("imageBlock",(t=>Yo(r,Jr("0x3a"),t))),n[Jr("0x3c")].registerElementLabel(Jr("0x2"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[Jr("0x9")](Jr("0x26"),(()=>Yo(r,Jr("0x75")))),t[Jr("0x69")][Jr("0x25")](Jr("0x2c"))&&n.enableCommand(Jr("0x8")),t[Jr("0x69")][Jr("0x25")](Jr("0x17"))&&t.plugins.has("ImageInlineEditing")&&(n[Jr("0x6c")](Jr("0x58"),((e,s)=>{const r=o[Jr("0x18")](t[Jr("0x53")].document[Jr("0x52")]);t[Jr("0x53")][Jr("0x5")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],Jr("0x0"))}))})),n[Jr("0x6c")](Jr("0x6a"),((e,s)=>{t[Jr("0x53")][Jr("0x5")]((r=>{let x=o[Jr("0x18")](t[Jr("0x53")][Jr("0x27")][Jr("0x52")]),a=r[Jr("0x1e")](x);const c=i.LivePosition[Jr("0x56")](a[Jr("0x30")],Jr("0x57")),l=i.LivePosition[Jr("0x56")](a[Jr("0x37")],Jr("0x15"));n[Jr("0x2e")]((()=>e(s))),x=o[Jr("0x18")](t[Jr("0x53")][Jr("0x27")][Jr("0x52")]),a=r.createRangeOn(x);const d=r[Jr("0x4c")](c,l);c[Jr("0x31")](),l[Jr("0x31")](),n[Jr("0x4e")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x61")),d.start[Jr("0x4d")](a[Jr("0x30")])&&n[Jr("0x73")](r[Jr("0x4c")](d.start,a[Jr("0x30")]),Jr("0x61")),a[Jr("0x37")][Jr("0x4d")](d.end)&&n[Jr("0x73")](r[Jr("0x4c")](a[Jr("0x37")],d[Jr("0x37")]),Jr("0x61"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x1f"),"convertInlineImageToBlock",Jr("0x20"),(()=>{})),n[Jr("0x36")][Jr("0x1")]("formatBlock","convertInlineImageToBlock",Jr("0x28"),(()=>{})),n[Jr("0x36")][Jr("0x1")]("formatBlock","convertInlineImageToBlock",Jr("0x63"),n._suggestionFactory.getSuggestionCallback(Jr("0x1f"),"",Jr("0x28"))),n[Jr("0x36")][Jr("0x1")]("insertion",Jr("0x61"),Jr("0x20"),(()=>{})),n[Jr("0x36")].registerCustomCallback(Jr("0x40"),Jr("0x61"),Jr("0x63"),(([e])=>{const o=n[Jr("0x36")].getSuggestionCallback(Jr("0x40"),"",Jr("0x63"));let s=e[Jr("0x30")],r=e[Jr("0x37")];const i=t.model[Jr("0x4b")][Jr("0x3")](s,Jr("0x65")),x=t[Jr("0x53")][Jr("0x4b")][Jr("0x3")](r,"forward");i.isCollapsed&&(s=i[Jr("0x30")]),x[Jr("0x71")]&&(r=x[Jr("0x37")]),o([t[Jr("0x53")][Jr("0x4c")](s,r)])})),n[Jr("0x36")][Jr("0x1")]("formatBlock",Jr("0x61"),Jr("0x16"),c),n[Jr("0x36")].registerCustomCallback(Jr("0x40"),"convertInlineImageToBlock",Jr("0x16"),c)),t[Jr("0x69")][Jr("0x25")](Jr("0x74"))&&(n[Jr("0x6c")](Jr("0x46"),((e,s)=>{const r=t[Jr("0x69")][Jr("0x6d")](Jr("0x35"));let i=o[Jr("0x18")](t.model[Jr("0x27")].selection),x=r[Jr("0x6f")](i);t[Jr("0x53")][Jr("0x5")]((()=>{if(x)return void n.markDeletion(t[Jr("0x53")][Jr("0x1e")](x));const a=o[Jr("0x5f")](i);e(s),i=o[Jr("0x18")](t[Jr("0x53")].document.selection),x=r.getCaptionFromImageModelElement(i),n[Jr("0x73")](t[Jr("0x53")][Jr("0x1e")](x),a?null:Jr("0x3b"))}))})),n._suggestionFactory[Jr("0x1")](Jr("0x40"),Jr("0x3b"),Jr("0x16"),c)),t[Jr("0x69")][Jr("0x25")]("ImageStyleEditing")){n[Jr("0x6c")]("imageStyle",((s,r)=>{const i=t[Jr("0x69")][Jr("0x6d")](Jr("0x67")).me,x=t.commands[Jr("0x6d")](Jr("0x21"));let a=o[Jr("0x18")](t.model[Jr("0x27")].selection),c=t[Jr("0x53")][Jr("0x1e")](a),l=x[Jr("0x4")];if(l==r[Jr("0x4")])return;const d={commandName:Jr("0x21"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x53")][Jr("0x5")]((()=>{if(n.getSuggestions()[Jr("0x48")]((t=>t[Jr("0x47")]&&i==t.author&&("formatBlock"==t[Jr("0x5d")]||Jr("0xa")==t[Jr("0x5d")])&&(Jr("0x51")==t[Jr("0x10")]||"imageStylePostApply"==t.subType)&&t[Jr("0x34")]()[Jr("0xe")](c)))[Jr("0x64")]((t=>n[Jr("0xb")](t.head))),a=o[Jr("0x18")](t[Jr("0x53")][Jr("0x27")][Jr("0x52")]),c=t[Jr("0x53")].createRangeOn(a),x.refresh(),t.commands[Jr("0x6d")](Jr("0x58"))[Jr("0x12")](),t.commands[Jr("0x6d")](Jr("0x6a"))[Jr("0x12")](),l=x.value,l!=r[Jr("0x4")])return o.isInlineImage(a)&&x.shouldConvertImageType(r[Jr("0x4")],a)?(s(r),a=o[Jr("0x18")](t[Jr("0x53")].document[Jr("0x52")]),void n[Jr("0x4e")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x51"))):void(o[Jr("0x5f")](a)?n[Jr("0x4e")](a,d,[],"imageStylePostApply"):n[Jr("0x68")](c,d,"imageStylePostApply"))}))}));for(const e of t.plugins[Jr("0x6d")](Jr("0x49"))[Jr("0xf")])s[e.name]=e.title[Jr("0x60")]();n[Jr("0x36")][Jr("0x1")]("formatBlock","imageStylePreApply",Jr("0x20"),(()=>{})),n[Jr("0x36")].registerCustomCallback(Jr("0x1f"),Jr("0xc"),Jr("0x20"),(()=>{})),n[Jr("0x36")][Jr("0x1")](Jr("0xa"),Jr("0xc"),Jr("0x20"),(()=>{})),n[Jr("0x36")][Jr("0x1")](Jr("0x1f"),Jr("0x51"),Jr("0x28"),(()=>{})),n[Jr("0x36")][Jr("0x1")](Jr("0x1f"),Jr("0x51"),Jr("0x63"),((t,e)=>{n._suggestionFactory[Jr("0x54")](Jr("0x1f"),"",Jr("0x28"))(t,{commandName:e[Jr("0x32")],commandParams:e[Jr("0x6")]})})),n[Jr("0x36")][Jr("0x1")]("formatBlock","imageStylePreApply",Jr("0x16"),c)}const x=[{type:Jr("0x1f"),subType:Jr("0x51")},{type:Jr("0x40"),subType:Jr("0x3b")},{type:Jr("0x1f"),subType:Jr("0x61")},{type:Jr("0x40"),subType:Jr("0x61")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x5d")]==e&&t.subType==n)),r=x[Jr("0x62")]((({type:t,subType:n})=>e[Jr("0x5d")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x34")](),a=e[Jr("0x34")]();if((0==s||1==s)&&2==r&&i[Jr("0x42")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x7")](i,Jr("0x40"))[Jr("0x48")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x61")==t[Jr("0x10")]));if(t[Jr("0x4a")]>1&&a[Jr("0x37")][Jr("0xe")](i[Jr("0x30")]))return!0;if(1==t[Jr("0x4a")]&&(i.start[Jr("0xe")](a[Jr("0x37")])||i[Jr("0x37")][Jr("0xe")](a[Jr("0x30")])))return!0}if(3==s&&3==r&&i[Jr("0x30")].isBefore(a[Jr("0x30")])){const t=i[Jr("0x37")][Jr("0x5b")],e=a[Jr("0x30")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x53")][Jr("0x27")][Jr("0x1d")]((()=>{let e=!1;const s=Array[Jr("0x2d")](t[Jr("0x53")][Jr("0x27")][Jr("0x29")][Jr("0x72")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x59")](t);if(Jr("0x3f")==s&&n[Jr("0x11")](a)){if(Jr("0x1f")==i&&(Jr("0x51")==x||Jr("0xc")==x)){const t=n[Jr("0x38")](a);if(r.newRange){const s=t[Jr("0x34")]()[Jr("0x39")]();if(o[Jr("0x5f")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x40")==i&&Jr("0x3b")==x&&!r[Jr("0x5e")]){const t=n.getSuggestion(a);t[Jr("0x6b")]&&t[Jr("0x6b")][Jr("0x47")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t.plugins.has(Jr("0x1b"))&&n.enableCommand("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x53")].document[Jr("0x52")]);r[Jr("0x50")](Jr("0x13"))!=s.width&&t.model[Jr("0x5")]((()=>{n[Jr("0x4e")](r,{commandName:Jr("0x41"),commandParams:[s]})}))})),t[Jr("0x69")].has(Jr("0x3d"))&&n[Jr("0x6c")](Jr("0x55"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x53")].document[Jr("0x52")]);(r[Jr("0x3e")](Jr("0x45"))?r[Jr("0x50")]("alt"):"")!=s.newValue&&t[Jr("0x53")][Jr("0x5")]((()=>{n[Jr("0x4e")](r,{commandName:Jr("0x55"),commandParams:[s]})}))})),n[Jr("0x3c")][Jr("0x33")]((t=>{if(x[Jr("0x5c")]((({type:e,subType:n})=>t[Jr("0x5d")]==e&&t[Jr("0x10")]==n)))return t[Jr("0x66")]?{}:void 0})),n._descriptionFactory[Jr("0x33")]((t=>{if("insertion"==t.type||Jr("0x1c")==t[Jr("0x5d")]){const e=t[Jr("0x39")]();if(e&&e.is(Jr("0x1a"),Jr("0x26")))return{type:Jr("0x40")==t[Jr("0x5d")]?Jr("0x14"):Jr("0x2b"),element:e,quantity:1}}})),n[Jr("0x3c")][Jr("0x33")]((t=>Jr("0x1f")==t[Jr("0x5d")]&&Jr("0x61")==t[Jr("0x10")]?{type:"format",content:"Inline image to block image"}:Jr("0x1f")==t[Jr("0x5d")]&&"convertBlockImageToInline"==t[Jr("0x10")]?{type:Jr("0x5a"),content:"Block image to inline image"}:void 0)),n[Jr("0x3c")][Jr("0x33")]((t=>{const{data:e}=t;if(e){if(Jr("0x21")==e[Jr("0x32")]){const t=e[Jr("0x70")][0].value;return n="side"===t?Yo(r,Jr("0xd")):s[t]||t,{type:Jr("0x5a"),content:Yo(r,Jr("0x2f"),n)}}if(Jr("0x55")==e[Jr("0x32")]){const t=e[Jr("0x70")][0][Jr("0x2a")];return t?{type:Jr("0x5a"),content:Yo(r,Jr("0x44"),'"'+t+'"')}:{type:"format",content:Yo(r,Jr("0x4f"))}}if(Jr("0x41")==e[Jr("0x32")]){const t=e[Jr("0x70")][0][Jr("0x13")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:"format",content:Yo(r,Jr("0x22"))}}}var n}))}}const Zr=["getSelectedElement","selection","data","format","source","src","_descriptionFactory","editor","document","markBlockFormat","locale","formatBlock","subType","commandParams","plugins","getSuggestions","handleSuggestionDescription","Users","has","change","discard","getContainedElement","registerCustomCallback","handleReplaceImageCommand","replaceImageSource","registerDescriptionCallback","get","TrackChangesEditing","author","enableCommand","ImageEditing","getSuggestionCallback","getAttribute","_suggestionFactory","accept","afterInit"];var Yr,ti;Yr=Zr,ti=252,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x23")](){if(!this.editor[ei("0xe")][ei("0x12")](ei("0x1e")))return;const t=this[ei("0x7")][ei("0xe")][ei("0x1a")](ei("0x1b"));t[ei("0x1d")]("replaceImageSource",((t,e)=>this[ei("0x17")](t,e))),t[ei("0x21")][ei("0x16")](ei("0xb"),ei("0x18"),ei("0x22"),t[ei("0x21")][ei("0x1f")]("formatBlock",null,ei("0x14"))),t[ei("0x21")][ei("0x16")](ei("0xb"),ei("0x18"),ei("0x14"),t._suggestionFactory.getSuggestionCallback(ei("0xb"),null,ei("0x22"))),t[ei("0x6")][ei("0x19")]((t=>this[ei("0x10")](t)))}[ei("0x17")](t,e){const n=this.editor.plugins[ei("0x1a")](ei("0x1b")),o=this[ei("0x7")].model[ei("0x8")][ei("0x1")][ei("0x0")]();this[ei("0x7")].model[ei("0x13")]((()=>{let s=o[ei("0x20")](ei("0x5"));const r=this.editor[ei("0xe")][ei("0x1a")](ei("0x11")).me;for(const t of n[ei("0xf")]({skipNotAttached:!0})){const e=t[ei("0x15")]();if(ei("0x18")===t[ei("0xc")]&&e===o){t[ei("0x1c")]!==r&&t[ei("0x14")](),s=t[ei("0x2")][ei("0xd")][0][ei("0x4")];break}}t(e),n[ei("0x9")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x18"))}))}[ei("0x10")](t){const{data:e}=t;if(e&&ei("0x18")===e.commandName){const t="*Format:* replace image URL";return{type:ei("0x3"),content:Yo(this[ei("0x7")][ei("0xa")],t)}}}}const oi=["_trackChangesExecuted","enableCommand","bind","_setSuggestionData","editor","value","execute","dataInsert","high","get","listenTo","_handleImportedData","plugins","afterInit","commands","track_changes","importWord","trackChanges","_trackChangesValueDuringImport","TrackChangesEditing","lowest","Users","forEach"];var si,ri;si=oi,ri=490,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("0xb")]=!1,this[ii("0x10")]=!1}[ii("0x6")](){const t=this[ii("0x14")],e=t[ii("0x7")][ii("0x2")](ii("0x9")),n=t[ii("0x7")][ii("0x2")](ii("0xa"));e&&(e.on(ii("0x16"),((t,[,e])=>{this[ii("0xb")]=n[ii("0x15")],e.collaboration_features[ii("0x8")]=!this[ii("0xb")]}),{priority:ii("0x1")}),this[ii("0x3")](e,ii("0x0"),this[ii("0x4")][ii("0x12")](this)),this[ii("0x3")](e,ii("0x0"),(()=>{this[ii("0x10")]&&(n[ii("0x16")](),this[ii("0x10")]=!1)}),{priority:ii("0xd")}),t[ii("0x5")][ii("0x2")]("TrackChangesEditing")[ii("0x11")](ii("0x9")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this[ii("0x14")][ii("0x7")][ii("0x2")](ii("0xa")),s=o[ii("0x15")];this[ii("0xb")]!==s&&(o[ii("0x16")](),this[ii("0x10")]=!0),n&&n[ii("0xf")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x14")][ii("0x5")][ii("0x2")](ii("0xe")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x9")}}};this[ii("0x14")][ii("0x5")].get(ii("0xc"))[ii("0x13")](s)}))}}const ai=["indent","enableCommand","indentBlock","model","get","locale","editor","getSelectedBlocks","getItemLabel","afterInit","checkAttribute","format","has","IndentBlock","change","filter","markBlockFormat","registerDescriptionCallback","document","_descriptionFactory","commandName","outdentBlock","selection","plugins","*Indent:* %0","from"];var ci,li;ci=ai,li=102,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xb")](){const t=this[di("0x8")],e=t[di("0x19")][di("0x6")]("TrackChangesEditing");t[di("0x19")][di("0xe")]("IndentEditing")&&(e[di("0x3")](di("0x2")),e[di("0x3")]("outdent"));const n=t[di("0x7")];if(t.plugins[di("0xe")](di("0xf"))){for(const n of[di("0x4"),di("0x17")])e.enableCommand(n,(()=>{const o=Array[di("0x1")](this[di("0x8")].model[di("0x14")][di("0x18")][di("0x9")]())[di("0x11")]((t=>this[di("0x8")][di("0x5")].schema[di("0xc")](t,"blockIndent")));t.model[di("0x10")]((()=>{for(const t of o)e[di("0x12")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[di("0x13")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x16")]&&"outdentBlock"!=o.commandName)return;const s=t.getItems()[0],r=e[di("0x15")][di("0xa")](s);return di("0x4")==o[di("0x16")]?{type:di("0xd"),content:Yo(n,di("0x0"),r)}:di("0x17")==o[di("0x16")]?{type:di("0xd"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["input","init","enableCommand","plugins","get","editor"];gi=fi,mi=160,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[Ws.Input]}[hi("0x3")](){this[hi("0x1")][hi("0x5")][hi("0x0")]("TrackChangesEditing")[hi("0x4")](hi("0x2"))}}const bi=["model","markInlineFormat","linkHref","plugins","has","from","change","LinkEditing","selection","link","getAttribute","isCollapsed","editor","getFirstPosition","commandName","*Set link:* %0","locale","registerDescriptionCallback","enableCommand","unlink","getFirstRange","_descriptionFactory","document","TrackChangesEditing","afterInit"];var Ei,_i;Ei=bi,_i=412,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x0")];if(!t[Ti("0x10")][Ti("0x11")](Ti("0x14")))return;const e=t[Ti("0x10")].get(Ti("0xb"));e[Ti("0x6")](Ti("0x16"),((n,o)=>{const s=t.model[Ti("0xa")][Ti("0x15")];let r=[];if(s[Ti("0x18")]){if(!s.hasAttribute(Ti("0xf")))return void n(o);{const e=(0,Ws.findAttributeRange)(s.getFirstPosition(),Ti("0xf"),s.getAttribute(Ti("0xf")),t[Ti("0xd")]);r=[e]}}else r=Array[Ti("0x12")](s.getRanges());t[Ti("0xd")][Ti("0x13")]((()=>{for(const t of r)e[Ti("0xe")](t,{commandName:"link",commandParams:[o]})}))})),e[Ti("0x6")](Ti("0x7"),(()=>{const n=this[Ti("0x0")][Ti("0xd")],o=n[Ti("0xa")][Ti("0x15")];n[Ti("0x13")]((()=>{let n=[];n=o[Ti("0x18")]?[(0,Ws.findAttributeRange)(o[Ti("0x1")](),Ti("0xf"),o[Ti("0x17")]("linkHref"),t[Ti("0xd")])]:ms("linkHref",o[Ti("0x8")](),t.model);for(const t of n)e[Ti("0xe")](t,{commandName:Ti("0x7"),commandParams:[]})}))})),e[Ti("0x9")][Ti("0x5")]((e=>{const{data:n}=e,o=t[Ti("0x4")];if(n){if("link"==n[Ti("0x2")]){const t=n.commandParams[0];return{type:"format",content:Yo(o,Ti("0x3"),'"'+t+'"')}}return Ti("0x7")==n[Ti("0x2")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["outdentList","_descriptionFactory","isObject","name","enableCommand","commandParams","previousSibling","format","ELEMENT_NUMBERED_LIST","ListEditing","getSelectedBlocks","slice","document","commandName","has","listType","ELEMENT_BULLETED_LIST","checkTodoList","editor","commands","parent","numberedList","todo","from","selection","List","registerDescriptionCallback","blockName","markBlockFormat","length","before","change","plugins","createPositionAt","add","listItem","checkChild","replace","forceValue","ELEMENT_LIST_ITEM","filter","nextSibling","TodoListEditing","*Uncheck item*","*Check item*","todoListChecked","value","findIndex","indentList","registerElementLabel","push","locale","listIndent","createRange","getAttribute","_selectedElements","get","element","end","model","numbered","todoList"];var ki,Ai;ki=yi,Ai=388,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x2")],e=t[vi("0x23")];if(!t[vi("0x10")].has(vi("0x37")))return;const n=t.plugins[vi("0x28")]("TrackChangesEditing"),o=t[vi("0x10")][vi("0x3c")](vi("0x1a"));function s(e){return()=>{const o=t[vi("0x2b")][vi("0x3a")][vi("0x8")],s=t[vi("0x3")][vi("0x28")](e);if(s.value)return void t.execute("paragraph",{});const r=e[vi("0x39")](0,-4),i=function(t,e,n){let o=Array[vi("0x7")](t)[vi("0x18")]((t=>{return e=t,(o=n)[vi("0x14")](e[vi("0x4")],"listItem")&&!o[vi("0x30")](e);var e,o}));o=o.filter((t=>!t.is("element",vi("0x13"))||t[vi("0x26")](vi("0x3d"))!=e));const s=new Set;for(const t of o)t.is("element",vi("0x13"))?s[vi("0x12")](Ii(t)):s.add(t);return Array[vi("0x7")](s)}(o.getSelectedBlocks(),r,t[vi("0x2b")].schema);t[vi("0x2b")][vi("0xf")]((()=>{for(const t of i)n[vi("0xc")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x1e")]}],formatGroupId:vi("0xb")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x7")](t);const n=e[vi("0x1f")]((t=>vi("0x13")!=t[vi("0x31")]));return n>-1&&(e=e.slice(0,n)),e}(t.model[vi("0x3a")][vi("0x8")][vi("0x38")]()),s=t.model[vi("0x25")](t[vi("0x2b")].createPositionAt(o[0],vi("0xe")),t[vi("0x2b")][vi("0x11")](o[o[vi("0xd")]-1],vi("0x2a")));t.model.change((()=>{n[vi("0xc")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x24")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x19")];for(;t&&t.getAttribute(vi("0x24"))>n[vi("0x26")](vi("0x24"));)e[vi("0x12")](t),t=t[vi("0x19")]}return Array[vi("0x7")](e)}(o))}))}}n[vi("0x32")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[vi("0x32")](vi("0x2d"),s(vi("0x2d"))),n[vi("0x32")](vi("0x20"),r(vi("0x20"))),n[vi("0x32")](vi("0x2e"),r(vi("0x2e"))),o&&n[vi("0x32")](vi("0x1"),(()=>{const e=t.commands[vi("0x28")](vi("0x1")),o=Array.from(e[vi("0x27")]);o.filter((t=>t[vi("0x26")](vi("0x1d"))!=e[vi("0x1e")])),t[vi("0x2b")][vi("0xf")]((()=>{for(const t of o)n[vi("0xc")](t,{commandName:vi("0x1"),commandParams:[{forceValue:!e[vi("0x1e")]}]})}))})),n._descriptionFactory[vi("0x21")](vi("0x13"),(t=>Yo(e,vi("0x17"),t))),n[vi("0x2f")][vi("0xa")]((t=>{const{data:n}=t;if(n){if(vi("0x5")==n.commandName||"bulletedList"==n.commandName||"todoList"==n[vi("0x3b")])switch(n[vi("0x3b")][vi("0x15")](vi("0x9"),"")){case"bulleted":return o(Yo(e,vi("0x0")));case vi("0x2c"):return o(Yo(e,vi("0x36")));case vi("0x6"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x20")==n.commandName)return{type:vi("0x35"),content:Yo(e,"*Indent:* %0",Yo(e,vi("0x17")))};if("outdentList"==n[vi("0x3b")])return{type:vi("0x35"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x17")))};if(vi("0x1")==n[vi("0x3b")])return n[vi("0x33")][0][vi("0x16")]?{type:vi("0x35"),content:Yo(e,vi("0x1c"))}:{type:vi("0x35"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:"format",content:Yo(e,"*Change to:* %0",t)}}}))}}function Ii(t){const e=t[vi("0x26")]("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x34")]&&t[vi("0x34")].is("element","listItem");){const o=t[vi("0x34")][vi("0x26")]("listIndent");if(o==e)n=t[vi("0x34")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(vi("0x29"),"listItem")&&t.getAttribute(vi("0x24"))>0){let n=t[vi("0x19")];for(;n&&vi("0x13")==n[vi("0x31")]&&n[vi("0x26")]("listIndent")==t[vi("0x26")](vi("0x24"));)e[vi("0x22")](n),n=n[vi("0x19")]}return e}const Li=["numbered","before","ListUtils","markMultiRangeBlockFormat","document","getSelectedBlocks","push","_getSuggestionBlocksForListStyle","*Format:* set order to reversed","bind","backward","listStyle","element","handleListStyleCommand","change","listReversed","_getTranslationKeyForListStyle","getFirstPosition","ELEMENT_","startIndex","commandParams","filter","TrackChangesEditing","model","toUpperCase","reversed","createRange","handleListReversedCommand","from","styles","*Format:* set order to regular","type","enableCommand","afterInit","_getSuggestionBlocks","listType","ListPropertiesEditing","listItem","getAttribute","map","getLastPosition","commandName","forward","parent","get","locale","editor","_LIST_","handleDescriptions","plugins","selection","listStart","getListTypeFromListStyleType","registerDescriptionCallback","format","handleListStartCommand","getSiblingNodes","createPositionAt"];var Ni,Mi;Ni=Li,Mi=435,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x4")](){if(!this.editor[wi("0x14")].has(wi("0x7")))return;const t=this.editor.config[wi("0xf")]("list.properties"),e=this[wi("0x11")][wi("0x14")][wi("0xf")](wi("0x33"));t[wi("0x0")]&&e.enableCommand(wi("0x28"),this.handleListStyleCommand.bind(this)),t[wi("0x36")]&&e[wi("0x3")](wi("0x2c"),this[wi("0x38")][wi("0x26")](this)),t[wi("0x30")]&&e.enableCommand(wi("0x16"),this[wi("0x1a")][wi("0x26")](this)),e._descriptionFactory[wi("0x18")](this.handleDescriptions[wi("0x26")](this))}[wi("0x2a")](t,e={}){const n=this[wi("0x11")].plugins[wi("0xf")]("TrackChangesEditing"),o=this[wi("0x24")]();this.editor[wi("0x34")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[wi("0x38")](t,e={}){const n=this[wi("0x11")][wi("0x14")].get(wi("0x33")),o=this[wi("0x5")]((t=>t.is(wi("0x29"),wi("0x8"))&&wi("0x1d")===t[wi("0x9")](wi("0x6"))));if(o.length<1)return;const s=o[wi("0xa")]((t=>this.editor[wi("0x34")].createRange(this[wi("0x11")][wi("0x34")][wi("0x1c")](t,wi("0x1e")),this[wi("0x11")][wi("0x34")][wi("0x1c")](t,0))));this[wi("0x11")][wi("0x34")][wi("0x2b")]((()=>{n[wi("0x20")](s,{commandName:wi("0x2c"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x2c")})}))}[wi("0x1a")](t,e={}){const n=this[wi("0x11")][wi("0x14")].get(wi("0x33")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x8"))&&wi("0x1d")===t[wi("0x9")]("listType")));if(o.length<1)return;const s=o[wi("0xa")]((t=>this.editor[wi("0x34")][wi("0x37")](this[wi("0x11")][wi("0x34")][wi("0x1c")](t,wi("0x1e")),this[wi("0x11")][wi("0x34")][wi("0x1c")](t,0))));this[wi("0x11")][wi("0x34")][wi("0x2b")]((()=>{n[wi("0x20")](s,{commandName:wi("0x16"),commandParams:[{startIndex:e[wi("0x30")]}],formatGroupId:wi("0x16")})}))}[wi("0x13")](t){const e=this[wi("0x11")][wi("0x10")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0xc")]){case wi("0x28"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[wi("0x2d")](n[wi("0x31")][0][wi("0x2")])))};break;case wi("0x2c"):o=n[wi("0x31")][0][wi("0x36")]?wi("0x25"):wi("0x1"),s={type:"format",content:Yo(e,o)};break;case wi("0x16"):o="*Format:* set start index to %0",s={type:wi("0x19"),content:Yo(e,o,n[wi("0x31")][0][wi("0x30")])}}return s}[wi("0x24")](){var t,e,n,o;const s=this.editor.plugins[wi("0xf")](wi("0x1f"));let r=Array[wi("0x39")](this[wi("0x11")].model.document.selection[wi("0x22")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x8")))&&r.unshift(...s[wi("0x1b")](this[wi("0x11")].model[wi("0x21")][wi("0x15")][wi("0x2e")](),"backward")),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x29"),wi("0x8")))&&r[wi("0x23")](...s[wi("0x1b")](this[wi("0x11")][wi("0x34")][wi("0x21")][wi("0x15")][wi("0xb")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x11")][wi("0x34")][wi("0x21")][wi("0x15")][wi("0x2e")]())||void 0===n?void 0:n[wi("0xe")])||void 0===o?void 0:o.is(wi("0x29"),wi("0x8")))&&(r=r[wi("0x32")]((t=>t.is(wi("0x29"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[wi("0x11")][wi("0x14")].get(wi("0x1f"));let n=Array[wi("0x39")](this[wi("0x11")][wi("0x34")][wi("0x21")][wi("0x15")][wi("0x22")]()).filter(t).map((t=>{const n=this[wi("0x11")][wi("0x34")][wi("0x1c")](t,0);return[...e[wi("0x1b")](n,wi("0x27")),...e.getSiblingNodes(n,wi("0xd"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x2f")+this[wi("0x11")].plugins.get("ListUtils")[wi("0x17")](t)[wi("0x35")]()+wi("0x12")+t[wi("0x35")]().replace(/-/g,"_")}}const Fi=["stop","media","afterInit","MediaEmbedEditing","div","locale","data","TrackChangesEditing","createEmptyElement","for","high","elementToElement","attribute:url:media","ELEMENT_MEDIA","get","plugins","dataDowncast","_descriptionFactory","showSuggestionHighlights","has"];var Pi,Di;Pi=Fi,Di=224,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x12")](){const t=this.editor;if(!t[Bi("0xb")][Bi("0xf")](Bi("0x13")))return;const e=t.plugins[Bi("0xa")](Bi("0x3")),n=t[Bi("0x1")];e.enableCommand("mediaEmbed"),e[Bi("0xd")].registerElementLabel(Bi("0x11"),(t=>Yo(n,Bi("0x9"),t))),t.conversion[Bi("0x5")](Bi("0xc"))[Bi("0x7")]({model:Bi("0x11"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xe")])return e[Bi("0x4")](Bi("0x0"))},converterPriority:Bi("0x6")}),t[Bi("0x2")].downcastDispatcher.on(Bi("0x8"),((t,e,n)=>{n.options[Bi("0xe")]&&t[Bi("0x10")]()}),{priority:Bi("0x6")})}}const Ui=["mention","MentionEditing","editor","enableCommand","has","TrackChangesEditing","afterInit","get","plugins"];var Gi,Hi;Gi=Ui,Hi=316,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x1")];t.plugins[zi("0x3")](zi("0x0"))&&t[zi("0x7")][zi("0x6")](zi("0x4"))[zi("0x2")](zi("0x8"))}}const Wi=["has","get","ELEMENT_PAGE_BREAK","PageBreakEditing","afterInit","enableCommand","editor","locale","plugins","TrackChangesEditing","pageBreak"];var Ki,qi;Ki=Wi,qi=212,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[Xi("0x1")](){const t=this[Xi("0x3")];if(!t.plugins[Xi("0x8")](Xi("0x0")))return;t[Xi("0x5")].get(Xi("0x6"))[Xi("0x2")](Xi("0x7"));const e=t[Xi("0x5")][Xi("0x9")](Xi("0x6")),n=t[Xi("0x4")];e._descriptionFactory.registerElementLabel("pageBreak",(t=>Yo(n,Xi("0xa"),t)))}}const Ji=["schema","addMarker:suggestion:insertion","_descriptionFactory","createUIElement","document","nodeAfter","format","has","highest","checkChild","ck-suggestion-marker--active","name","locale","writer","$text","isBlock","isLimit","plugins","registerDescriptionCallback","enableCommand","getFirstRange","from","filter","get","blockName","afterInit","getSelectedBlocks","getItemLabel","span","markBlockFormat","insert","markerRange","*Insert:* %0","markerName","commandName","registerElementLabel","activeMarkers","selection","model","addClass","toViewPosition","editor","ELEMENT_PARAGRAPH","mapper","consumable","downcastDispatcher","TrackChangesEditing","editing","start","isTouching","consume","*Change to:* %0","insertion","options","paragraph","change"];var Qi,Zi;Qi=Ji,Zi=382,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x23")](){const t=this[Yi("0x33")];if(!t.plugins[Yi("0x11")]("Paragraph"))return;const e=t[Yi("0x16")],n=t[Yi("0x1b")][Yi("0x21")](Yi("0x0"));n[Yi("0xc")][Yi("0x2d")]("paragraph",(t=>Yo(e,Yi("0x34"),t))),n[Yi("0x1d")]("paragraph",((e,o={})=>{const s=t[Yi("0x30")][Yi("0xe")],r=o[Yi("0x2f")]||s[Yi("0x2f")],i=Array[Yi("0x1f")](r[Yi("0x24")]())[Yi("0x20")]((t=>{return e=t,(n=this[Yi("0x33")][Yi("0x30")][Yi("0xa")])[Yi("0x13")](e.parent,Yi("0x8"))&&!n.isObject(e)&&"paragraph"!=e.name;var e,n}));t[Yi("0x30")][Yi("0x9")]((()=>{for(const t of i)n[Yi("0x27")](t,{commandName:Yi("0x8"),commandParams:[],formatGroupId:Yi("0x22")},fs(t))}))})),n._descriptionFactory[Yi("0x1c")]((t=>{const{data:n}=t;if(n&&Yi("0x8")==n[Yi("0x2c")])return{type:Yi("0x10"),content:Yo(e,Yi("0x5"),Yo(e,Yi("0x34")))}})),n.enableCommand("insertParagraph"),t[Yi("0x1")].downcastDispatcher.on(Yi("0xb"),ex(t),{priority:Yi("0x12")}),t.data[Yi("0x37")].on(Yi("0xb"),((e,n,o)=>{o[Yi("0x7")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n._descriptionFactory;o[Yi("0x1c")]((n=>{if(Yi("0x6")!==n.type)return;const{start:s,end:r}=n[Yi("0x1e")]();if(!s[Yi("0x3")](r)||!s[Yi("0xf")])return;const i=t[Yi("0x30")][Yi("0xa")],x=s.nodeAfter;return i[Yi("0x19")](x)&&!i[Yi("0x1a")](x)&&i[Yi("0x13")](x,"$text")?{type:Yi("0x6"),content:Yo(e,Yi("0x2a"),o[Yi("0x25")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1b")][Yi("0x21")](Yi("0x0")),i=o[Yi("0x29")][Yi("0x2")],x=o.markerRange.end,a=t[Yi("0x30")][Yi("0xa")];if(!i[Yi("0x3")](x)||!i[Yi("0xf")])return;const c=i[Yi("0xf")];if(a.isBlock(c)&&!a[Yi("0x1a")](c)&&a[Yi("0x13")](c,Yi("0x18"))){if(!s[Yi("0x36")][Yi("0x4")](o[Yi("0x29")],n[Yi("0x15")]))return;const t=s[Yi("0x17")][Yi("0xd")](Yi("0x26"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x35")][Yi("0x32")](x);e&&r[Yi("0x2e")].includes(o.markerName)&&s[Yi("0x17")][Yi("0x31")](Yi("0x14"),t),s[Yi("0x17")][Yi("0x28")](i,t),s[Yi("0x35")].bindElementToMarker(t,o[Yi("0x2b")])}}}const nx=["getAttributes","enableCommand","plugins","isFormatting","locale","*Remove all formatting*","registerDescriptionCallback","schema","RemoveFormatEditing","commandName","from","getItems","TrackChangesEditing","createRangeOn","getRanges","isCollapsed","has","format","change","removeFormat","document","afterInit","editor","markInlineFormat","model"];var ox,sx;ox=nx,sx=244,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x2")](){const t=this[rx("0x3")];if(!t[rx("0x8")][rx("0x16")](rx("0xe")))return;const e=t.plugins.get(rx("0x12"));e[rx("0x7")]("removeFormat",(n=>{const o=t[rx("0x5")][rx("0x1")].selection;o[rx("0x15")]?n():t[rx("0x5")][rx("0x18")]((()=>{const n=Array[rx("0x10")](o[rx("0x14")]());for(const o of n)for(const n of o[rx("0x11")]())xx(n,t[rx("0x5")][rx("0xd")])&&e[rx("0x4")](t.model[rx("0x13")](n),{commandName:rx("0x0"),commandParams:[]})}))})),e._descriptionFactory[rx("0xc")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0xf")])return{type:rx("0x17"),content:Yo(t[rx("0xa")],rx("0xb"))}}))}}function xx(t,e){for(const[n]of t[rx("0x6")]()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x9")])return!0}return!1}const ax=["discardAllSuggestions","RestrictedEditingModeEditing","afterInit","enableCommand","discardSelectedSuggestions","plugins","has","editor","TrackChangesEditing","goToNextRestrictedEditingException","acceptSuggestion","acceptAllSuggestions","goToPreviousRestrictedEditingException","acceptSelectedSuggestions","trackChanges"];var cx,lx;cx=ax,lx=360,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x2")](){const t=this[dx("0x7")];if(!t[dx("0x5")][dx("0x6")](dx("0x1")))return;const e=t[dx("0x5")].get(dx("0x8"));e[dx("0x3")](dx("0xc")),e[dx("0x3")](dx("0x9"));const n=t[dx("0x5")].get(dx("0x1"));n[dx("0x3")](dx("0xe")),n.enableCommand(dx("0xa")),n[dx("0x3")]("discardSuggestion"),n.enableCommand(dx("0xb")),n[dx("0x3")](dx("0x0")),n[dx("0x3")](dx("0xd")),n[dx("0x3")](dx("0x4"))}}const gx=["enableCommand","options","name","mapper","toViewPosition","split","markerName","shiftEnter","activeMarkers","createUIElement","_descriptionFactory","data","ck-suggestion-marker-","addMarker:suggestion:deletion","bindElementToMarker","addMarker:suggestion:insertion","softBreak","locale","element","writer","insert","init","TrackChangesEditing","plugins","get","consumable","markerRange","downcastDispatcher","editing","editor","test","registerElementLabel","span","requires","merge","high","includes"];var mx,fx;mx=gx,fx=488,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("0x1a")](){return[nr.ShiftEnter]}[hx("0xe")](){const t=this[hx("0x16")],e=t[hx("0x10")][hx("0x11")](hx("0xf"));e[hx("0x1e")](hx("0x0")),t[hx("0x15")][hx("0x14")].on(hx("0x8"),bx(t),{priority:hx("0x1c")}),t[hx("0x15")][hx("0x14")].on(hx("0x6"),bx(t),{priority:hx("0x1c")}),t[hx("0x4")][hx("0x14")].on("addMarker:suggestion",((e,n,o)=>{o[hx("0x1f")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x3")][hx("0x18")](hx("0x9"),(e=>Yo(t[hx("0xa")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[hx("0x11")](hx("0xf"));if(!s[hx("0x12")][hx("0x17")](o[hx("0x13")],n[hx("0x20")]))return;const i=t.model;for(const t of o[hx("0x13")].getItems()){if(!t.is(hx("0xb"),hx("0x9")))continue;const n="deletion"==o[hx("0x24")][hx("0x23")](":")[1]?hx("0x1b"):hx("0x23"),x=s[hx("0xc")][hx("0x2")](hx("0x19"),{class:hx("0x5")+n}),a=s.mapper[hx("0x22")](i.createPositionBefore(t));e&&r[hx("0x1")][hx("0x1d")](o[hx("0x24")])&&s[hx("0xc")].addClass("ck-suggestion-marker--active",x),s[hx("0xc")][hx("0xd")](a,x),s[hx("0x21")][hx("0x7")](x,o[hx("0x24")])}}}const Ex=["change","value","enableCommand","FORMAT_RESTRICTED_DISABLED","selection","afterInit","document","markInlineFormat","format","has","commands","editor","plugins","TrackChangesEditing","from","restrictedEditingException","commandParams","forceValue","StandardEditingModeEditing","registerDescriptionCallback","FORMAT_RESTRICTED_ENABLED"];var _x,Tx;_x=Ex,Tx=481,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x7")](){const t=this[Cx("0xd")],e=t.model,n=t.locale;if(!t[Cx("0xe")][Cx("0xb")](Cx("0x14")))return;const o=t[Cx("0xe")].get(Cx("0xf")),s=Cx("0x11"),r=t[Cx("0xc")].get(s);o[Cx("0x4")](s,((t,n={})=>{const i=e[Cx("0x8")][Cx("0x6")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n.forceValue:!r[Cx("0x3")];e[Cx("0x2")]((()=>{const t=Array[Cx("0x10")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x9")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x0")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x12")][0][Cx("0x13")]?{type:Cx("0xa"),content:Yo(n,Cx("0x1"))}:{type:"format",content:Yo(n,Cx("0x5"))}}))}}const kx=["config","editor","push","Style","*Format:* %0","_getStyleDefinition","getAncestors","get","getSelectedBlocks","classes","toLowerCase","afterInit","commands","plugins","markInlineFormat","element","forceValue","getItems","style:","isBlock","commandName","name","normalizeConfig","has","locale","from","getAttribute","modelElements","change","every","_getRangesWithClasses","document","style","value","includes","enableCommand","styleName","add","TrackChangesEditing","markBlockFormat","commandParams","model","style.definitions","format","inline"];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 Ix extends t.Plugin{[Rx("0x1f")](){const t=this[Rx("0x15")];if(!t[Rx("0x21")][Rx("0x2b")](Rx("0x17")))return;const e=t[Rx("0x20")][Rx("0x1b")](Rx("0x7")),n=t.plugins[Rx("0x1b")](Rx("0xd")),o=t[Rx("0x2c")],s=t.plugins[Rx("0x1b")]("DataSchema"),r=t[Rx("0x21")].get("StyleUtils")[Rx("0x2a")](s,t[Rx("0x14")].get(Rx("0x11")));n[Rx("0xa")]("style",((o,{styleName:i})=>{const x=t.model[Rx("0x6")].selection,a=this._getStyleDefinition(i,r);if(!a)return;if(!e.enabledStyles.includes(i))return;if(x.isCollapsed&&!a[Rx("0x27")])return void o({styleName:i});const c=!e[Rx("0x8")][Rx("0x9")](a[Rx("0x29")]);if(a[Rx("0x27")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x1a")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x9")](o[Rx("0x29")])){n[Rx("0xc")](o);break}}return n}(x[Rx("0x1c")](),a[Rx("0x2")]);t[Rx("0x10")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0xe")](t,{commandName:Rx("0x7"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x26")+i})}))}else{let e=Array[Rx("0x0")](x.getRanges());if(!c){const n=Array.from(s.getDefinitionsForView(a[Rx("0x23")],!1))[0][Rx("0x10")],o=[];for(const s of e){const e=this[Rx("0x5")](t[Rx("0x10")],s,a.classes,n);o[Rx("0x16")](...e)}e=o}t[Rx("0x10")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0x22")](t,{commandName:Rx("0x7"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x28")])return e[Rx("0xf")][0][Rx("0x24")]?{type:Rx("0x12"),content:Yo(o,Rx("0x18"),e.commandParams[0][Rx("0xb")][Rx("0x1e")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0xf")][0][Rx("0xb")].toLowerCase())}}))}[Rx("0x19")](t,e){let n=e.block.find((e=>e[Rx("0x29")]===t));return n||(n=e[Rx("0x13")].find((e=>e[Rx("0x29")]===t))),n}[Rx("0x5")](t,e,n,o){const s=[];for(const r of e[Rx("0x25")]()){const e=r[Rx("0x1")](o);e&&n[Rx("0x4")]((t=>e[Rx("0x1d")][Rx("0x9")](t)))&&s.push(t.createRangeOn(r))}return s}}const Sx=["push","deletion","cell","differ","insertTableRowAbove","insert","insertTableRowBelow","get","TrackChangesEditing","downcastDispatcher","position","_getCoordsForCells","table","subType","registerCustomCallback","insertTableColumnRight","*Remove:* %0","isArray","join","MIN_SAFE_INTEGER","_descriptionFactory","_suggestionFactory","editor","removeTableColumn","root","accept","filter","markMultiRangeInsertion","end","tableRow","$textProxy","TableEditing","*Insert:* %0","ELEMENT_TABLE_COLUMN","enqueueChange","above","batch","startsWith","getCellLocation","addClass","last","ELEMENT_TABLE_COLUMN_WITH_TEXT","getContainedElement","enableCommand","removeClass","ELEMENT_TABLE_ROW","getItems","start","removeTableRow","addRange","rowspan","findAncestor","isTouching","commands","substr","getRowIndexes","map","hasAttribute","fromRange","order","getChildren","type","item","minRow","span","insertion","_acceptFormatSuggestionCallbackFactory","classes","element","colspan","_tablePostFixingSubtypes","registerPostFixer","rootName","createTableWalker","getAttribute","_tableSuggestions","execute","_getSuggestionCoords","model","nodeBefore","first","insertTableColumnLeft","writer","ELEMENT_TABLE_WITH_TEXT","getRanges","selectTableColumn","toViewElement","getChanges","forceValue","length","some","afterInit","change","setSelection","_setupColumnsRowsFixing","createRangeOn","name","refresh","data","min","TableUtils","createRangeIn","createPositionAt","plugins","tableColumn","ELEMENT_TABLE_ROW_WITH_TEXT","document","detach","$graveyard","ELEMENT_TABLE","getSelectionAffectedTableCells","max","isEqual","toLowerCase","showSuggestionHighlights","change:data","options","isInContent","from","getColumnIndexes","highest","nodeAfter","discard","tableCell","selectTableRow","addMarker:suggestion","includes","selection"];var Lx,Nx;Lx=Sx,Nx=150,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x30")]=[Mx("0x7"),Mx("0x52")],this[Mx("0x35")]=new Set}[Mx("0x45")](){const t=this.editor,e=t[Mx("0x38")][Mx("0x54")][Mx("0x69")];if(!t[Mx("0x51")].has(Mx("0x9")))return;const n=t.locale,o=t.plugins[Mx("0x71")](Mx("0x72")),s=t[Mx("0x51")].get(Mx("0x4e"));o[Mx("0x7e")].registerElementLabel(Mx("0x76"),(t=>Yo(n,Mx("0x57"),t))),this[Mx("0x48")](),o.enableCommand("insertTable"),o[Mx("0x15")](Mx("0x66")),o.enableCommand(Mx("0x3f"));for(const n of[Mx("0x6e"),Mx("0x70")]){const r=t[Mx("0x1f")].get(n);o[Mx("0x15")](n,(n=>{t[Mx("0x38")][Mx("0x46")]((t=>{n();const i=Mx("0xd")===r[Mx("0x25")],x=s[Mx("0x58")](e),a=s[Mx("0x21")](x),c=i?a[Mx("0x3a")]-1:a.last+1,l=x[0].findAncestor(Mx("0x76")),d=s[Mx("0x33")](l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x22")]((e=>t[Mx("0x49")](e[Mx("0x6c")])));o[Mx("0x5")](u,Mx("0x7"))}))}))}for(const n of[Mx("0x3b"),Mx("0x79")]){const r=t[Mx("0x1f")][Mx("0x71")](n);o[Mx("0x15")](n,(n=>{t[Mx("0x38")][Mx("0x46")]((t=>{n();const i="left"===r[Mx("0x25")],x=s[Mx("0x58")](e),a=s[Mx("0x61")](x),c=i?a[Mx("0x3a")]-1:a[Mx("0x12")]+1,l=x[0][Mx("0x1d")]("table"),d=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d)[Mx("0x22")]((e=>t[Mx("0x49")](e[Mx("0x6c")])));o[Mx("0x5")](u,Mx("0x52"))}))}))}for(const n of["removeTableRow",Mx("0x1")]){const r=n[Mx("0x20")](11),i=r[Mx("0x5b")](),x=i[Mx("0x20")](0,3)+"span",a=Mx("0x76")+r,c=Mx("0x4d")+r,l=Mx("0x59")+r;o.enableCommand(n,(()=>{t.model[Mx("0x46")]((t=>{const r=s[Mx("0x58")](e),d=r[0][Mx("0x1d")](Mx("0x76"));let u;if(Mx("0x1a")==n){const t=s[Mx("0x21")](r);u={startRow:t[Mx("0x3a")],endRow:t[Mx("0x12")],includeAllSlots:!0}}else{const t=s[Mx("0x61")](r);u={startColumn:t[Mx("0x3a")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x33")](d,u),m=Array[Mx("0x60")](g)[Mx("0x22")]((({cell:t})=>t)),f=Ox(m[Mx("0x4")]((t=>t[Mx("0x23")](x)))),h=Ox(m[Mx("0x4")]((t=>!t[Mx("0x23")](x)))).map((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x7")==p[Mx("0x77")]||Mx("0x52")==p.subType)){const e=this[Mx("0x37")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x10")](n),a=n[Mx("0x34")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x60")](e[Mx("0x3e")]())[Mx("0x22")]((t=>i.LiveRange[Mx("0x24")](t)));t[Mx("0x38")][Mx("0x46")]((e=>{const s=e[Mx("0xe")];n=n[Mx("0x4")]((t=>Mx("0x56")!=t[Mx("0x2")][Mx("0x32")])),e.setSelection(n),t[Mx("0x1f")][Mx("0x71")](Mx("0x1a")).refresh(),t[Mx("0x36")]("removeTableRow",{forceDefaultExecution:!0}),t[Mx("0x38")][Mx("0xc")]((()=>{t[Mx("0x38")][Mx("0xc")](s,(t=>{const e=o[Mx("0x4")]((t=>Mx("0x56")!=t[Mx("0x2")][Mx("0x32")]));e.length>0&&t[Mx("0x47")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Mx("0x60")](e[Mx("0x3e")]()).map((t=>i.LiveRange[Mx("0x24")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x6a")](e);for(const e of r)Mx("0x56")!=e[Mx("0x2")][Mx("0x32")]&&(o[Mx("0x47")](o[Mx("0x50")](e,0)),t[Mx("0x1f")][Mx("0x71")]("removeTableColumn")[Mx("0x4b")](),t.execute(Mx("0x1"),{forceDefaultExecution:!0}));const x=s[Mx("0x4")]((t=>Mx("0x56")!=t[Mx("0x2")][Mx("0x32")]));x[Mx("0x43")]>0&&o[Mx("0x47")](x);for(const t of s)t.detach()}))}function c(t,e){return e.every((e=>t[Mx("0x44")]((t=>t[Mx("0x6")][Mx("0x5a")](e[Mx("0x19")])||e.end[Mx("0x5a")](t[Mx("0x19")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Mx("0x6")][Mx("0x1e")](e.start)))))}t[Mx("0x4c")][Mx("0x73")].on(Mx("0x67"),((t,e,n)=>{if(!n[Mx("0x5e")][Mx("0x5c")])return;const o=e[Mx("0x28")];if(!o)return;const s=n.mapper[Mx("0x40")](o);function r(t){return Array[Mx("0x7b")](t)?t:[t]}s&&Mx("0x65")===o[Mx("0x4a")]&&(0,x.setHighlightHandling)(s,n[Mx("0x3c")],((t,e,n)=>n[Mx("0x11")](r(e.classes),t)),((t,e,n)=>n[Mx("0x16")](r(e[Mx("0x2d")]),t)))}),{priority:Mx("0x62")}),o[Mx("0x7e")].registerDescriptionCallback((t=>{if(Mx("0x2b")!=t[Mx("0x27")]&&"deletion"!=t[Mx("0x27")])return;const e=t[Mx("0x14")]();if(null!=e&&e.is(Mx("0x2e"),Mx("0x76"))){if(Mx("0x2b")==t[Mx("0x27")]){const e=t[Mx("0x18")]().filter((t=>t.is("$textProxy")))[Mx("0x22")]((t=>t[Mx("0x4c")]));if(e[Mx("0x43")])return{type:Mx("0x2b"),content:Yo(n,Mx("0xa"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if("deletion"==t[Mx("0x27")]){const e=t.getItems()[Mx("0x4")]((t=>t.is(Mx("0x8"))))[Mx("0x22")]((t=>t[Mx("0x4c")]));if(e[Mx("0x43")])return{type:"deletion",content:Yo(n,Mx("0x7a"),Yo(n,Mx("0x3d"),'"'+e[Mx("0x7c")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if("tableRow"==t[Mx("0x77")]){const e=t[Mx("0x18")]()[Mx("0x4")]((t=>t.is(Mx("0x8")))).map((t=>t[Mx("0x4c")])),o=this[Mx("0x37")](t),s=o.maxRow-o[Mx("0x29")]+1;if(Mx("0x2b")==t.type)return e[Mx("0x43")]?{type:Mx("0x2b"),content:Yo(n,Mx("0xa"),Yo(n,Mx("0x53"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x17"),s))};if(Mx("0x6b")==t.type)return e[Mx("0x43")]?{type:Mx("0x6b"),content:Yo(n,Mx("0x7a"),Yo(n,Mx("0x53"),[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x7a"),Yo(n,Mx("0x17"),s))}}if(Mx("0x52")==t[Mx("0x77")]){const e=t[Mx("0x18")]()[Mx("0x4")]((t=>t.is(Mx("0x8"))))[Mx("0x22")]((t=>t[Mx("0x4c")])),o=this[Mx("0x37")](t),s=o.maxColumn-o.minColumn+1;if(Mx("0x2b")==t[Mx("0x27")])return e[Mx("0x43")]?{type:"insertion",content:Yo(n,Mx("0xa"),Yo(n,Mx("0x13"),[s,'"'+e[Mx("0x7c")](" ")+'"']))}:{type:Mx("0x2b"),content:Yo(n,Mx("0xa"),Yo(n,Mx("0xb"),s))};if("deletion"==t.type)return e[Mx("0x43")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x6b"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0xb"),s))}}})),o[Mx("0x7f")][Mx("0x78")](Mx("0x2b"),Mx("0x7"),Mx("0x64"),r),o[Mx("0x7f")].registerCustomCallback(Mx("0x6b"),Mx("0x7"),Mx("0x3"),r),o[Mx("0x7f")].registerCustomCallback(Mx("0x2b"),Mx("0x52"),"discard",a),o[Mx("0x7f")][Mx("0x78")](Mx("0x6b"),"tableColumn","accept",a),o[Mx("0x7f")][Mx("0x78")](Mx("0x2b"),"tableColumn",Mx("0x7c"),c),o._suggestionFactory[Mx("0x78")]("deletion",Mx("0x52"),Mx("0x7c"),c),o[Mx("0x7f")][Mx("0x78")](Mx("0x2b"),Mx("0x7"),"join",l),o[Mx("0x7f")].registerCustomCallback(Mx("0x6b"),Mx("0x7"),Mx("0x7c"),l)}[Mx("0x2c")](){const t=this[Mx("0x0")],e=t[Mx("0x38")].document[Mx("0x69")];return(n,o)=>{t[Mx("0x38")][Mx("0x46")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x39")];x&&x[0]&&!1===x[0][Mx("0x42")]&&(a=n[0][Mx("0x19")][Mx("0x63")]);const c=s[Mx("0x4f")](a);if("$graveyard"==c[Mx("0x2")][Mx("0x32")])return;const l=Array[Mx("0x60")](e[Mx("0x3e")]())[Mx("0x22")]((t=>i.LiveRange[Mx("0x24")](t)));s[Mx("0x47")](c),t.commands[Mx("0x71")](r)[Mx("0x4b")](),x[Mx("0x6a")]({forceDefaultExecution:!0}),t[Mx("0x36")](r,...x);const d=l[Mx("0x4")]((t=>Mx("0x56")!=t[Mx("0x2")][Mx("0x32")]));d[Mx("0x43")]>0&&s[Mx("0x47")](d);for(const t of l)t[Mx("0x55")]()}))}}[Mx("0x75")](t){const e=this[Mx("0x0")][Mx("0x51")][Mx("0x71")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x7d")];for(const i of t){if("$graveyard"==i[Mx("0x2")][Mx("0x32")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x23")]("rowspan")?i[Mx("0x34")](Mx("0x1c"))-1:0,c=i.hasAttribute(Mx("0x2f"))?i[Mx("0x34")](Mx("0x2f"))-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("0x0")],e=t[Mx("0x51")][Mx("0x71")]("TrackChangesEditing"),n=t[Mx("0x51")][Mx("0x71")](Mx("0x4e"));t.model.document.on(Mx("0x5d"),(()=>{const n=Array[Mx("0x60")](t[Mx("0x38")].document[Mx("0x6d")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x30")][Mx("0x68")](r)&&this[Mx("0x35")].add(i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x49")](t),r=t[Mx("0x1d")](Mx("0x76")),i=n[Mx("0x10")](t);for(const e of this._tableSuggestions){const n=e[Mx("0x77")],x=n[Mx("0xf")]("tablePaste"),a=n[Mx("0x20")](x?10:5),c=a[Mx("0x5b")](),l=c[Mx("0x20")](0,3)+Mx("0x2a"),d=Mx("0x4d")+a,u=Mx("0x59")+a;if(!e[Mx("0x5f")])continue;if(r!=e.getFirstRange()[Mx("0x19")][Mx("0x1d")]("table"))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Mx("0x23")](l)?t[Mx("0x34")](l)-1:0,m=this[Mx("0x37")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x1b")](s),o=!0)}return o};t[Mx("0x38")][Mx("0x54")][Mx("0x31")]((e=>{let n=!1;for(const s of t[Mx("0x38")][Mx("0x54")][Mx("0x6d")][Mx("0x41")]())if(Mx("0x6f")==s.type)if("tableRow"==s[Mx("0x4a")])for(const t of s[Mx("0x74")][Mx("0x63")][Mx("0x26")]())n=n||o(t,e);else Mx("0x65")==s[Mx("0x4a")]&&(n=n||o(s[Mx("0x74")].nodeAfter,e));return n}))}[Mx("0x37")](t){return this[Mx("0x75")](t[Mx("0x3e")]()[Mx("0x22")]((t=>t.start.nodeAfter)))}}function Ox(t){return Array[Mx("0x60")](new Set(t).values())}const Fx=["accept","add","direction","mergeTableCellLeft","commands","plugins","get","_tablePostFixingSubtypes","mergeTableCellUp","splitTableCellVertically","requires","cell","model","registerDescriptionCallback","getSuggestions","detach","commandName","subType","registerCustomCallback","document","trackChanges","markBlockFormat","deletion","mergeTableCellRight","type","_areSelectedCellsMergable","getFirstPosition","*Merge cells*","_suggestionFactory","getCellLocation","locale","createTableWalker","isInContent","forceDefaultExecution","insertion","from","editor","enableCommand","_isForcedDefaultExecutionBlock","change","size","markMultiRangeBlockFormat","$graveyard","TableUtils","selection","length","refresh","isEnabled","createRangeOn","_areMergableCells","formatBlock","mergeTableCells","push","has","getAncestors","format","_descriptionFactory","author","mergeTableCellDown","*Split cell:* vertically","findAncestor","TrackChangesEditing","filter","root","fromRange","*Split cell:* horizontally","map","splitTableCellHorizontally","getRanges","containsRange","set:isEnabled","getSelectionAffectedTableCells","value","stop","find","TableEditing","_acceptFormatSuggestionCallbackFactory","setSelection","rootName"];var Px,Dx;Px=Fx,Dx=258,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("0x44")](){return[wx]}afterInit(){const t=this[Bx("0xf")],e=t[Bx("0x46")][Bx("0x4d")][Bx("0x17")],n=t[Bx("0x9")];if(!t[Bx("0x3f")][Bx("0x20")](Bx("0x36")))return;const o=t.plugins[Bx("0x40")](Bx("0x28")),s=t[Bx("0x3f")].get(Bx("0x16")),r=t[Bx("0x3f")][Bx("0x40")](wx);r[Bx("0x41")][Bx("0x1f")](Bx("0x1e")),o[Bx("0x10")]("mergeTableCells",(()=>{const e=s[Bx("0x32")](t[Bx("0x46")][Bx("0x4d")][Bx("0x17")]);t[Bx("0x46")][Bx("0x12")]((()=>{o[Bx("0x14")](e,{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))})),t[Bx("0x3e")][Bx("0x40")](Bx("0x1e")).on("execute",((e,n)=>{t[Bx("0x3e")][Bx("0x40")](Bx("0x4e"))[Bx("0x33")]&&(n.length>0&&n[n[Bx("0x18")]-1]&&n[n[Bx("0x18")]-1][Bx("0xc")]||o[Bx("0x11")]||this[Bx("0x4")]()||e[Bx("0x34")]())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x2"),Bx("0x25"),Bx("0x3d")]){const n=t[Bx("0x3e")][Bx("0x40")](e);o[Bx("0x10")](e,(()=>{const e=t[Bx("0x46")][Bx("0x4d")].selection[Bx("0x5")]()[Bx("0x21")]().find((t=>t.is("element","tableCell"))),s=n.value;t[Bx("0x46")].change((()=>{o[Bx("0x14")]([e,s],{commandName:Bx("0x1e"),commandParams:[]},[],Bx("0x1e"))}))}))}for(const e of[Bx("0x43"),Bx("0x2e")]){const n=t[Bx("0x3e")][Bx("0x40")](e);o.enableCommand(e,(()=>{const r=s[Bx("0x32")](t[Bx("0x46")][Bx("0x4d")].selection)[0],i=r[Bx("0x27")]("table"),{column:x,row:a}=s[Bx("0x8")](r);let c=[];if("horizontally"==n[Bx("0x3c")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x2d")]((t=>t[Bx("0x45")]))}else{const t=s[Bx("0xa")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x2d")]((t=>t[Bx("0x45")]))}t.model[Bx("0x12")]((t=>{o[Bx("0x0")](t[Bx("0x1b")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x23")][Bx("0x47")]((t=>{const{data:e}=t;if(e)return Bx("0x1e")==e.commandName?{type:Bx("0x22"),content:Yo(n,Bx("0x6"))}:void 0})),o[Bx("0x23")][Bx("0x47")]((t=>{const{data:e}=t;if(e)return Bx("0x43")==e[Bx("0x4a")]?{type:Bx("0x22"),content:Yo(n,Bx("0x26"))}:Bx("0x2e")==e.commandName?{type:Bx("0x22"),content:Yo(n,Bx("0x2c"))}:void 0}));const x=r[Bx("0x37")]();for(const t of["mergeTableCellUp",Bx("0x2"),Bx("0x25"),Bx("0x3d")])o._suggestionFactory[Bx("0x4c")](Bx("0x1d"),t,"accept",x);for(const t of[Bx("0x43"),"splitTableCellHorizontally"])o[Bx("0x7")].registerCustomCallback(Bx("0x1d"),t,Bx("0x3a"),x);o[Bx("0x7")].registerCustomCallback(Bx("0x1d"),Bx("0x1e"),Bx("0x3a"),(n=>{t[Bx("0x46")][Bx("0x12")]((o=>{const s=Array[Bx("0xe")](e[Bx("0x2f")]()).map((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x38")](n),t.commands[Bx("0x40")]("mergeTableCells")[Bx("0x19")](),t.execute(Bx("0x1e"),{forceDefaultExecution:!0});const r=s[Bx("0x29")]((t=>Bx("0x15")!=t[Bx("0x2a")][Bx("0x39")]));r.length>0&&o.setSelection(r);for(const t of s)t[Bx("0x49")]()}))}));for(const e of[Bx("0x42"),Bx("0x25"),"mergeTableCellLeft",Bx("0x2")]){const n=t[Bx("0x3e")][Bx("0x40")](e);n.on(Bx("0x31"),((e,o,s)=>{if(s){const o=t.model[Bx("0x4d")][Bx("0x17")].getFirstPosition()[Bx("0x21")]()[Bx("0x35")]((t=>t.is("element","tableCell")));this._areMergableCells(n[Bx("0x33")],o)||(e.return=!1,e[Bx("0x34")]())}}),{priority:"low"})}}[Bx("0x4")](){const t=this[Bx("0xf")][Bx("0x3e")][Bx("0x40")](Bx("0x1e")),e=this[Bx("0xf")][Bx("0x3f")].get(Bx("0x16"));if(!t[Bx("0x1a")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0xf")].model[Bx("0x4d")][Bx("0x17")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1c")](t,e))return!1;return!0}[Bx("0x1c")](t,e){const n=this[Bx("0xf")][Bx("0x3f")][Bx("0x40")](Bx("0x28")),o=this.editor[Bx("0x46")][Bx("0x1b")](t),s=this[Bx("0xf")].model[Bx("0x1b")](e),r=new Set,i=new Set;for(const t of n[Bx("0x48")]())if((Bx("0xd")==t.type||Bx("0x1")==t[Bx("0x3")]||Bx("0x1e")==t[Bx("0x4b")])&&t[Bx("0xb")])for(const e of t[Bx("0x2f")]())e[Bx("0x30")](o,!0)&&r[Bx("0x3b")](t[Bx("0x3")]+":"+t[Bx("0x24")].id),e[Bx("0x30")](s,!0)&&i[Bx("0x3b")](t[Bx("0x3")]+":"+t[Bx("0x24")].id);if(r.size!=i[Bx("0x13")])return!1;for(const t of r)if(!i[Bx("0x20")](t))return!1;return!0}}const Ux=["cell","commandParams","get","headingRows","*Format:* %0","removeClass","commandName","markBlockFormat","setTableRowHeader","item","_splitMarkerName","data","markerName","has","nodeBefore","FORMAT_REGULAR_COLUMN","commands","editing","downcastDispatcher","getSuggestion","getSelectionAffectedTableCells","createTableWalker","consume","TableEditing","stop","forceValue","selection","childCount","_suggestionFactory","TrackChangesEditing","accept","FORMAT_HEADER_ROW","formatBlock","findAncestor","plugins","getColumnIndexes","createPositionBefore","name","change","last","toViewElement","isBefore","setTableColumnHeader","data-suggestion","_descriptionFactory","getRowIndexes","ck-suggestion-marker--active","first","FORMAT_REGULAR_ROW","enableCommand","removeMarker:suggestion","headingColumns","format","document","addClass","getCellLocation","value","nodeAfter","registerCustomCallback","table","writer","getChild","afterInit","bindElementToMarker","getAttribute","unbindElementFromMarkerName","addMarker:suggestion","index","setAttribute","registerDescriptionCallback","markerRange","removeAttribute","requires","createPositionAfter","locale","FORMAT_HEADER_COLUMN","activeMarkers","highest","markerNameToElements","_acceptFormatSuggestionCallbackFactory","parent","model","TableUtils","ck-suggestion-marker-","createRange","mapper"];var Gx,Hx;Gx=Ux,Hx=457,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get[zx("0x2d")](){return[wx]}[zx("0x23")](){const t=this.editor;if(!t.plugins[zx("0x48")](zx("0x52")))return;const e=t[zx("0x2f")],n=t[zx("0x7")][zx("0x3d")](zx("0x2")),o=t[zx("0x7")].get(zx("0x37")),s=t[zx("0x7")][zx("0x3d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x45")](r[zx("0x47")]),c=n[zx("0x4e")](a);if(!c[zx("0x46")]||zx("0xf")!=c[zx("0x46")][zx("0x41")])return;if(r[zx("0x44")])return void s[zx("0x53")]();if(!i.consumable[zx("0x51")](r.markerRange,s[zx("0xa")]))return;const l=r[zx("0x2b")].start[zx("0x1e")],d=r[zx("0x2b")].end[zx("0x49")],u=l.parent[zx("0x35")],{column:g}=o[zx("0x1c")](l),{column:m}=o[zx("0x1c")](d);for(let s=g;s<=m;s++){const c=o[zx("0x50")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x3b")],c=i[zx("0x3a")][zx("0xd")](s);i.writer[zx("0x1b")](zx("0x38")+x,c),e&&i[zx("0x21")][zx("0x29")](zx("0x10"),a,c),i[zx("0x3a")][zx("0x24")](c,r.markerName),t&&(n[zx("0x31")].includes(r[zx("0x47")])?i[zx("0x21")].addClass(zx("0x13"),c):i.writer.removeClass(zx("0x13"),c))}}}}n[zx("0x16")](zx("0x43"),((e,s)=>{const r=o[zx("0x4f")](t[zx("0x36")][zx("0x1a")].selection),i=o[zx("0x12")](r),x=r[0][zx("0x6")](zx("0x20")),a=x[zx("0x25")](zx("0x3e"))||0,c=s&&null!==s[zx("0x54")]?s[zx("0x54")]:!t[zx("0x4b")][zx("0x3d")](zx("0x43"))[zx("0x1d")],l=c?i[zx("0xc")]:i[zx("0x14")],d=x[zx("0x22")](l);let u;if(c){const e=x[zx("0x22")](a);if(d[zx("0x28")]<e.index)return;u=t[zx("0x36")][zx("0x39")](t.model.createPositionBefore(e[zx("0x22")](0)),t[zx("0x36")][zx("0x2e")](d.getChild(d[zx("0x0")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t.model[zx("0x39")](t.model.createPositionBefore(d.getChild(0)),t[zx("0x36")][zx("0x2e")](e.getChild(e[zx("0x0")]-1)))}t[zx("0x36")][zx("0xb")]((()=>{n.markBlockFormat(u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x16")](zx("0xf"),((e,o)=>{const s=t[zx("0x7")][zx("0x3d")](zx("0x37")),r=s[zx("0x4f")](t.model[zx("0x1a")][zx("0x55")]),i=s[zx("0x8")](r),x=r[0].findAncestor("table"),a=x[zx("0x25")](zx("0x18"))||0,c=o&&null!==o[zx("0x54")]?o[zx("0x54")]:!t[zx("0x4b")][zx("0x3d")](zx("0xf"))[zx("0x1d")];let l;const d=x.getChild(0),u=c?i[zx("0xc")]:i[zx("0x14")],g=s[zx("0x50")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0].cell;if(c){const e=d.getChild(a);if(m[zx("0xe")](e))return;l=t[zx("0x36")][zx("0x39")](t[zx("0x36")][zx("0x9")](e),t[zx("0x36")][zx("0x2e")](m))}else{const e=d[zx("0x22")](a-1);if(!e)return;l=t[zx("0x36")][zx("0x39")](t[zx("0x36")][zx("0x9")](m),t[zx("0x36")][zx("0x2e")](e))}t.model[zx("0xb")]((()=>{n[zx("0x42")](l,{commandName:zx("0xf"),commandParams:[{forceValue:c}]},[],zx("0xf"))}))})),t.editing[zx("0x4d")].on(zx("0x27"),r(),{priority:zx("0x32")}),t[zx("0x46")][zx("0x4d")].on("addMarker:suggestion",((t,e,n)=>{n.options.showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x32")}),t[zx("0x4c")][zx("0x4d")].on(zx("0x17"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x45")](e[zx("0x47")]),i=n[zx("0x4e")](r);if(!i.data||zx("0xf")!=i.data[zx("0x41")])return;const x=o.mapper[zx("0x33")](e[zx("0x47")]);if(x)for(const t of x)o[zx("0x21")][zx("0x40")](zx("0x38")+s,t),o[zx("0x21")].removeClass(zx("0x13"),t),o[zx("0x21")][zx("0x2c")](zx("0x10"),t),o[zx("0x3a")][zx("0x26")](t,e[zx("0x47")])}),{priority:"highest"}),n[zx("0x11")][zx("0x2a")]((t=>{const{data:n}=t;if(n){if(zx("0x43")==n[zx("0x41")]){const t=n[zx("0x3c")][0].forceValue;return o(Yo(e,zx(t?"0x4":"0x15")))}if(zx("0xf")==n[zx("0x41")]){const t=n[zx("0x3c")][0][zx("0x54")];return o(Yo(e,zx(t?"0x30":"0x4a")))}}function o(t){return{type:zx("0x19"),content:Yo(e,zx("0x3f"),t)}}}));const i=s[zx("0x34")]();n[zx("0x1")][zx("0x1f")](zx("0x5"),zx("0x43"),zx("0x3"),i),n[zx("0x1")][zx("0x1f")](zx("0x5"),zx("0xf"),zx("0x3"),i)}}const Wx=["rows","fill","getSelectionAffectedTableCells","position","getMarkers","attributes","filter","tableCellHorizontalAlignment","registerCustomCallback","next","editingDowncast","suggestion:formatBlock:tablePasteCell","change","columnInsertionIndexes","entries","schema","clipboardOutput","join","removeColumns","trackChanges","getSuggestion","createRangeOn","insertContent","ck-suggestion-marker","setAttribute","table","plugins","Users","oldRange","insertColumns","cell","length","tablePaste","map","_createdBatches","getChildren","remove","find","move","deletion","get","push","from","getChanges","getContainedElement","createRangeIn","isEmpty","_getCoordsForCells","containsRange","markers","every","tableCellBackgroundColor","dataDowncast","insertRows","rowInsertionIndexes","some","markerToHighlight","differ","_splitMarkerName","_tablePostFixingSubtypes","removeRows","has","$graveyard","conversion","createElement","tableCell","TableUtils","columns","selection","cells","suggestionLoaded","deletionRanges","keys","previous","getRows","hasSuggestion","previousSibling","commands","tableCellBorderStyle","getChild","editor","add","startsWith","tablePasteColumn","insert","isInContent","_replaceTableSlotCell","high","batch","model","getColumns","view","first","start","type","_descriptionFactory","tablePasteRow","suggestionUnloaded","author","low","createRange","TableClipboard","createPositionBefore","getItems","getTableIfOnlyTableInContent","getChangedMarkers","formatBlock","tablePasteChainId","registerDescriptionCallback","unwrap","activeMarkers","listenTo","removeMarker","showSuggestionHighlights","isEqual","tableCellVerticalAlignment","element","set","_suggestionFactory","getRanges","newRange","getAllAdjacentSuggestions","markMultiRangeBlockFormat","updateMarker","getSuggestionCallback","getSuggestions","name","createTableWalker","documentSelection","insertion","markerName","fromEntries","root","_isForcedDefaultExecutionBlock","paragraph","getAttributes","last","tablePasteCell","suggestion-td","TrackChangesEditing","includes","accept","discard","suggestion","return","getRange","insertionRanges","afterInit","rowInsertionRanges","document","findAncestor","markMultiRangeInsertion","nodeAfter","elementToElement","markerAttributes","getShiftedBy","rootName","registerPostFixer","getColumnIndexes","endColumn","getRowIndexes","editing","end","redo","subType","tableCellSuggestion","register","ck-suggestion-marker--active"];var Kx,qx;Kx=Wx,qx=173,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Wx[t-=0]},$x=["tableCellBorderWidth","tableCellBorderColor",Xx("0x49"),Xx("0x2"),Xx("0x6e"),Xx("0x2e"),"tableCellPadding"],Jx=Object[Xx("0x7e")]($x[Xx("0x1c")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[Xx("0x8e")](){const t=this[Xx("0x4b")];if(!t[Xx("0x15")][Xx("0x38")](Xx("0x60")))return;const n=t[Xx("0x15")][Xx("0x23")](Xx("0x86")),o=t.plugins[Xx("0x23")](Xx("0x3d")),s=t[Xx("0x15")].get(wx),r=t[Xx("0x15")].get("TableClipboard");s[Xx("0x36")][Xx("0x24")](Xx("0x5b"),Xx("0x4e")),t.model[Xx("0xa")][Xx("0xa1")](Xx("0xa0"),{allowIn:Xx("0x3c"),allowContentOf:Xx("0x3c"),isLimit:!0}),t.conversion[Xx("0x94")]({model:Xx("0xa0"),view:Xx("0x85")});let i=null;t[Xx("0x54")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x[Xx("0x1a")]-1];l&&l.forceDefaultExecution||n[Xx("0x80")]||this[Xx("0x4b")][Xx("0x48")][Xx("0x23")](Xx("0xe")).value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x7b")))return!1;const r=s[Xx("0x63")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xa5")](n[Xx("0x90")][Xx("0x3f")]);if(!i[Xx("0x1a")])return!1;const x=i[0][Xx("0x91")](Xx("0x14")),a=o[Xx("0x9b")](i),c=o[Xx("0x99")](i),l={startRow:a.first,endRow:a.last,startColumn:c[Xx("0x57")],endColumn:c[Xx("0x83")]};return 1==i.length&&(l.endRow+=o[Xx("0x45")](r)-1,l[Xx("0x9a")]+=o[Xx("0x55")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x54")][Xx("0x7")]((()=>{t[Xx("0x54")][Xx("0x11")](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("0x1a")]&&n.markMultiRangeInsertion(s,Xx("0x5b"),{tablePasteChainId:o}),r[Xx("0x1a")]&&n[Xx("0x92")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Xx("0x1a")]&&n.markMultiRangeInsertion(a,Xx("0x1b"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,Xx("0x1b"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x75")](l[Xx("0x1c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x84"),{tablePasteChainId:o});if(d){const e=d[Xx("0xa7")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x54")][Xx("0x10")](o),i=e[Xx("0x20")]((t=>t[Xx("0x8c")]()[Xx("0x6d")](r)));i&&n[Xx("0x24")]([i.name,s])}n[Xx("0x1a")]&&d[Xx("0x13")](Xx("0x95"),Object[Xx("0x7e")](n))}i=null})))}),{priority:e.priorities.high+10}),t[Xx("0x15")][Xx("0x23")](Xx("0x60")).on(Xx("0x51"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x19")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x8b")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x4a")](0));for(const t of Array[Xx("0x25")](x[Xx("0x1e")]()))s[Xx("0x4f")](t,r,Xx("0x9d"));const t=i[Xx("0x31")][Xx("0x87")](n.row),e=i.columnInsertionIndexes[Xx("0x87")](n.column);t||e||(l=s[Xx("0x28")](r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s[Xx("0x3b")](Xx("0xa0")),e=s[Xx("0x3b")](Xx("0xa0"));s.wrap(s[Xx("0x28")](r),e),s[Xx("0x4f")](t,r,0);for(const e of Array[Xx("0x25")](x[Xx("0x1e")]()))s[Xx("0x4f")](e,t,Xx("0x9d"));l=s[Xx("0x10")](t),d=s[Xx("0x10")](e)}const u=Array[Xx("0x25")](x[Xx("0x82")]())[Xx("0x1")]((([t])=>$x[Xx("0x87")](t)));i[Xx("0x40")].push({element:r,attributes:u[Xx("0x1a")]?Object[Xx("0x7e")](u):null}),l&&i[Xx("0x8d")].push(l),d&&i[Xx("0x42")][Xx("0x24")](d)}),{priority:"high"}),o.on(Xx("0x18"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x3e")]||1;i[Xx("0x8")]=new Array(a)[Xx("0xa4")](x)[Xx("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x7a")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[Xx("0x24")](t[Xx("0x54")][Xx("0x10")](e))}),{priority:Xx("0x5e")}),o.on(Xx("0x30"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0xa3")]||1;i[Xx("0x31")]=new Array(a)[Xx("0xa4")](x)[Xx("0x1c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x8f")][Xx("0x24")](t[Xx("0x54")][Xx("0x10")](e))}),{priority:Xx("0x5e")}),n[Xx("0x5a")][Xx("0x67")]((e=>{if(e[Xx("0x9f")]&&e[Xx("0x9f")][Xx("0x4d")](Xx("0x1b")))return e[Xx("0x44")]?{}:{type:Xx("0x7c"),content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x1b"),Xx("0x4e"),Xx("0x5b"),"tablePasteCell"])n._suggestionFactory[Xx("0x3")]("insertion",t,"join",x),n[Xx("0x71")].registerCustomCallback(Xx("0x22"),t,Xx("0xc"),x);n._suggestionFactory[Xx("0x3")](Xx("0x65"),Xx("0x84"),"discard",x),n[Xx("0x71")][Xx("0x3")](Xx("0x65"),Xx("0x84"),Xx("0x88"),((e,n,o)=>{const s=e[Xx("0x1c")]((t=>t[Xx("0x27")]()))[Xx("0x1")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x40")])e&&r[Xx("0x70")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x9")](o[Xx("0x95")])){const o=t[Xx("0x54")][Xx("0x2c")][Xx("0x23")](e),s=o?o[Xx("0x8c")]()[Xx("0x27")]():null;s&&r.set(s,n)}t.model[Xx("0x7")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x71")][Xx("0x3")](e,Xx("0x1b"),o,((s,r,i)=>{t[Xx("0x54")][Xx("0x7")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x58")][Xx("0x93")];e.is("element",Xx("0xa0"))&&x.push(e)}n[Xx("0x71")][Xx("0x77")](e,null,o)(s,r,i);for(const e of x)Xx("0x39")!=e[Xx("0x7f")][Xx("0x97")]&&t.unwrap(e)}))}))};a(Xx("0x7c"),Xx("0x88")),a("insertion",Xx("0x89")),a(Xx("0x22"),"accept"),a(Xx("0x22"),"discard"),n._suggestionFactory[Xx("0x3")](Xx("0x7c"),Xx("0x5b"),Xx("0x89"),(t=>{const e=t.map((t=>t[Xx("0x27")]())),n=e[0][Xx("0x91")](Xx("0x14")),{minRow:r,maxRow:i}=s[Xx("0x2a")](e);o[Xx("0x37")](n,{at:r,rows:i-r+1})})),n[Xx("0x71")][Xx("0x3")](Xx("0x7c"),Xx("0x4e"),Xx("0x89"),(t=>{const e=t[Xx("0x1c")]((t=>t[Xx("0x27")]())),n=e[0][Xx("0x91")](Xx("0x14")),{minColumn:r,maxColumn:i}=s[Xx("0x2a")](e);o[Xx("0xd")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x9f")]||!e[Xx("0x9f")][Xx("0x4d")]("tablePaste"))return;const o=e[Xx("0x0")].tablePasteChainId,s=n.getSuggestions()[Xx("0x1")]((t=>t[Xx("0x50")]&&t.attributes&&t[Xx("0x0")][Xx("0x66")]==o));s[Xx("0x1a")]&&e[Xx("0x74")]().length!=s.length&&s.reduce(((t,e)=>(t[Xx("0x4")]=e,e[Xx("0x44")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x7d")]),s=[Xx("0x12"),"ck-suggestion-marker-insertion"],r=n[Xx("0x69")].includes(t[Xx("0x7d")]);return r&&s[Xx("0x24")](Xx("0xa2")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x41"),c,{priority:Xx("0x52")}),n.on(Xx("0x5c"),c,{priority:Xx("0x52")}),t[Xx("0x54")][Xx("0x90")][Xx("0x98")]((()=>{let e=!1;const o=Array[Xx("0x25")](t[Xx("0x54")][Xx("0x90")][Xx("0x34")][Xx("0x64")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if("suggestion"!=o||Xx("0x22")!=i||r[Xx("0x17")])continue;if(!n[Xx("0x46")](x))continue;const a=n[Xx("0xf")](x)[Xx("0x72")](),c=t[Xx("0x15")][Xx("0x23")]("Users").me;for(const t of n[Xx("0x78")]())if(t[Xx("0x50")]&&t[Xx("0x5d")]==c&&Xx("0x65")==t[Xx("0x59")]&&Xx("0x84")==t[Xx("0x9f")]&&t[Xx("0x72")]()[Xx("0x2d")]((t=>a[Xx("0x32")]((e=>e[Xx("0x2b")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Xx("0x50")]&&(n[Xx("0x89")](),e=!0)}return e})),t[Xx("0x54")][Xx("0x90")][Xx("0x98")]((e=>{const o=t[Xx("0x48")].get(Xx("0x9e"));if(!o||!o[Xx("0x1d")].has(e[Xx("0x53")]))return!1;let s=!1;const r=t.plugins[Xx("0x23")]("Users").me,i=t[Xx("0x54")][Xx("0x90")].differ[Xx("0x26")](),x=Array[Xx("0x25")](t[Xx("0x54")][Xx("0x90")][Xx("0x34")][Xx("0x64")]())[Xx("0x1")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x35")](t);return Xx("0x8a")==o&&Xx("0x1b")==s&&i==r.id&&!e[Xx("0x17")]}));for(const t of i){if(Xx("0x4f")!=t[Xx("0x59")]||Xx("0xa0")!=t[Xx("0x79")]||1!=t.length)continue;const n=e[Xx("0x5f")](t[Xx("0xa6")],t.position[Xx("0x96")](1));if(!x[Xx("0x20")]((({data:t})=>t[Xx("0x73")][Xx("0x6d")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x2b")](o.newRange)){e[Xx("0x76")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x90")][Xx("0x98")]((e=>{let o=!1;const s=t[Xx("0x15")].get(Xx("0x16")).me,r=n.getSuggestions()[Xx("0x1")]((t=>t[Xx("0x50")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x1b")==t[Xx("0x9f")])for(const e of t.getMarkers()){const n=e[Xx("0x8c")]()[Xx("0x27")]();if(n)if(n.is(Xx("0x6f"),Xx("0xa0"))&&Zx(n)){t[Xx("0x6b")](e[Xx("0x79")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xx("0x47")],a=s&&s.is(Xx("0x6f"),"tableCellSuggestion"),c=r&&r.is(Xx("0x6f"),Xx("0xa0"));a&&!i[Xx("0x38")](s)&&x.add(s),c&&!i[Xx("0x38")](r)&&x[Xx("0x4c")](r)}else n.is(Xx("0x6f"),Xx("0x81"))&&n[Xx("0x29")]&&(t.removeMarker(e.name),o=!0)}else if(Xx("0x84")==t.subType){if(!t.attributes||!t.attributes[Xx("0x66")])continue;const e=t.attributes.markerAttributes;if(e&&Object[Xx("0x43")](e).length)continue;const n=t[Xx("0x0")][Xx("0x66")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x9f")]&&e[Xx("0x9f")][Xx("0x4d")]("tablePaste")){if(!e.attributes.tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x0")][Xx("0x66")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x1f")](t);for(const t of x)e[Xx("0x68")](t);return o})),t.conversion.for(Xx("0x5")).markerToHighlight({model:Xx("0x6"),view:(t,e)=>l(t),converterPriority:Xx("0x52")}),t[Xx("0x3a")].for(Xx("0x2f"))[Xx("0x33")]({model:Xx("0x6"),view:(t,e)=>e.options[Xx("0x6c")]?l(t,!1):null,converterPriority:Xx("0x52")});const d=t[Xx("0x9c")][Xx("0x56")];this[Xx("0x6a")](d[Xx("0x90")],Xx("0xb"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content)[Xx("0x62")]())t.is(Xx("0x6f"),Xx("0x85"))&&n[Xx("0x24")](t);d[Xx("0x7")]((t=>{for(const e of n)t[Xx("0x21")](t[Xx("0x28")](e),t[Xx("0x61")](e)),t[Xx("0x1f")](e)}))}))}}function Zx(t){if(t[Xx("0x29")])return!0;const e=t[Xx("0x4a")](0);return e.is(Xx("0x6f"),"paragraph")&&e[Xx("0x29")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x7a")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["markBlockFormat","resizeTableWidth","tableWidth","_descriptionFactory","document","handleSuggestionDescription","subType","handleResizeTableWidthCommand","bind","registerDescriptionCallback","accept","table","enableCommand","registerCustomCallback","data","_suggestionFactory","resizeColumnWidths","formatBlock","getAttribute","editor","getSuggestionCallback","has","TableColumnResizeEditing","getContainedElement","commandParams","columnWidths","plugins","getSelectedElement","TrackChangesEditing","author","format","model","getColumnGroupElement","getTableColumnsWidths","resizeTable","change","get","afterInit"];var ea,na;ea=ta,na=161,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x1c")](){if(!this[oa("0xa")][oa("0x11")][oa("0xc")](oa("0xd")))return;const t=this[oa("0xa")][oa("0x11")][oa("0x1b")](oa("0x13"));t.enableCommand(oa("0x1e"),this[oa("0x24")][oa("0x25")](this)),t[oa("0x3")](oa("0x7"),this[oa("0x24")].bind(this)),t._suggestionFactory.registerCustomCallback("formatBlock",oa("0x19"),"accept",t[oa("0x6")][oa("0xb")]("formatBlock",null,"discard")),t._suggestionFactory[oa("0x4")](oa("0x8"),oa("0x19"),"discard",t[oa("0x6")][oa("0xb")](oa("0x8"),null,oa("0x1"))),t[oa("0x20")][oa("0x0")](this[oa("0x22")][oa("0x25")](this))}[oa("0x24")](t,e){const n=this[oa("0xa")][oa("0x11")].get(oa("0x13")),o=this[oa("0xa")].plugins[oa("0x1b")](oa("0xd")),s=e[oa("0x2")]||this[oa("0xa")][oa("0x16")][oa("0x21")].selection[oa("0x12")]();this.editor[oa("0x16")][oa("0x1a")]((()=>{const r=o[oa("0x17")](s);let i=r?o[oa("0x18")](r):null,x=s[oa("0x9")](oa("0x1f"))||null;const a=e.tableWidth||x,c=e[oa("0x10")]||i,l=this[oa("0xa")][oa("0x11")].get("Users").me;for(const t of n.getSuggestions()){const e=t[oa("0xe")]();if(oa("0x19")===t[oa("0x23")]&&e===s){t[oa("0x14")]!==l&&t.discard();const e=t[oa("0x5")][oa("0xf")];x=e[0][oa("0x1f")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1d")](s,{commandName:oa("0x1e"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x19")},[],oa("0x19"))}))}[oa("0x22")](t){const{data:e}=t;if(e&&oa("0x19")===e.formatGroupId){const t="*Format:* resize table";return{type:oa("0x15"),content:Yo(this[oa("0xa")].locale,t)}}}}const ra=["has","Template","get","enableCommand","plugins","TrackChangesEditing","editor"];var ia,xa;ia=ra,xa=316,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("0x5")];t[aa("0x3")][aa("0x6")](aa("0x0"))&&t[aa("0x3")][aa("0x1")](aa("0x4"))[aa("0x2")]("insertTemplate")}}const la=["commands","insertTableOfContents","registerElementLabel","plugins","editor","_descriptionFactory","tableOfContents","afterInit","locale","get"];var da,ua;da=la,ua=249,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x8")](){const t=this[ga("0x5")];if(!t[ga("0x1")].get(ga("0x2")))return;t[ga("0x4")][ga("0x0")]("TrackChangesEditing").enableCommand(ga("0x2"));const e=t[ga("0x4")][ga("0x0")]("TrackChangesEditing"),n=t[ga("0x9")];e[ga("0x6")][ga("0x3")](ga("0x7"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["afterInit","document","isTouching","ELEMENT_TITLE","getChangedMarkers","locale","_splitMarkerName","removeMarker","title-content","schema","createRange","nodeBefore","isEqual","updateMarker","end","isCollapsed","suggestion","newRange","has","getNearestSelectionRange","get","start","TrackChangesEditing","editor","model","plugins"];var ha,pa;ha=fa,pa=185,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x17")](){const t=this[ba("0x14")];if(!t[ba("0x16")][ba("0xf")]("Title"))return;const e=t[ba("0x16")][ba("0x11")](ba("0x13"));e._descriptionFactory.registerElementLabel(ba("0x5"),(()=>Yo(t[ba("0x2")],ba("0x0")))),t[ba("0x15")][ba("0x18")].registerPostFixer((n=>{let o=!1;const s=Array.from(t[ba("0x15")][ba("0x18")].differ[ba("0x1")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x3")](r);if(ba("0xd")!==s||!i[ba("0xe")])continue;const x=i[ba("0xe")],a=x[ba("0xb")][ba("0x8")];if(!a||!a.is("element","title-content"))continue;if(!x[ba("0x12")][ba("0x19")](x[ba("0xb")]))continue;const c=t[ba("0x15")][ba("0x6")][ba("0x10")](x[ba("0xb")],"forward");if(c&&c[ba("0xc")]){const t=n[ba("0x7")](x[ba("0x12")],c[ba("0x12")]);t[ba("0x9")](x)||(n[ba("0xa")](r,{range:t}),o=!0)}o||(n[ba("0x4")](r),o=!0)}return o}))}}const _a=["UndoEditing","redo","enableCommand","plugins","editor","afterInit","undo"];var Ta,Ca;Ta=_a,Ca=392,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x4")],e=t.plugins.get("TrackChangesEditing");t[ya("0x3")].has(ya("0x0"))&&(e[ya("0x2")](ya("0x6")),e[ya("0x2")](ya("0x1")))}}const Aa=["get","toggleTableCaption","enableCommand","TrackChangesEditing","plugins","requires","TableCaptionEditing","editor"];var va,Ra;va=Aa,Ra=466,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x3")](){return[wx]}afterInit(){const t=this[Ia("0x5")];t[Ia("0x2")].has(Ia("0x4"))&&t[Ia("0x2")][Ia("0x6")](Ia("0x1"))[Ia("0x0")](Ia("0x7"))}}const La=["DocumentListUtils","locale","getListTypeFromListStyleType","_descriptionFactory","model","DocumentListPropertiesUtils","handleDescriptions","*Format:* set order to regular","editor","format","_LIST_","type","from","numbered","TrackChangesEditing","markMultiRangeBlockFormat","*Change to:* %0","list.properties","*Format:* set start index to %0","bind","_getSuggestionBlocks","*Format:* set order to reversed","listStyle","_getTranslationKeyForListStyle","filter","listReversed","toUpperCase","commandParams","replace","handleListStartCommand","push","isFirstBlockOfListItem","handleListReversedCommand","listType","isListItemBlock","enableCommand","DocumentListPropertiesEditing","_getSuggestionBlocksForListStyle","getSelectedBlocks","listStart","startIndex","commandName","reversed","registerDescriptionCallback","get","config","has","styles","afterInit","selection","handleListStyleCommand","document","plugins"];var Na,Ma;Na=La,Ma=235,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x19")](){if(!this[wa("0x26")][wa("0x1d")][wa("0x17")](wa("0xd")))return;const t=this[wa("0x26")][wa("0x16")][wa("0x15")](wa("0x2f")),e=this.editor[wa("0x1d")][wa("0x15")]("TrackChangesEditing");t[wa("0x18")]&&e.enableCommand("listStyle",this[wa("0x1b")][wa("0x31")](this)),t.reversed&&e[wa("0xc")](wa("0x2"),this[wa("0x9")][wa("0x31")](this)),t[wa("0x11")]&&e.enableCommand("listStart",this[wa("0x6")][wa("0x31")](this)),e[wa("0x21")][wa("0x14")](this.handleDescriptions[wa("0x31")](this))}[wa("0x1b")](t,e={}){const n=this.editor.plugins[wa("0x15")](wa("0x2c")),o=this._getSuggestionBlocksForListStyle();this[wa("0x26")][wa("0x22")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x34"),commandParams:[{type:e.type}],formatGroupId:wa("0x34")})}))}[wa("0x9")](t,e={}){const n=this[wa("0x26")][wa("0x1d")][wa("0x15")]("TrackChangesEditing"),o=this[wa("0x26")][wa("0x1d")][wa("0x15")](wa("0x1e")),s=this._getSuggestionBlocks((t=>o[wa("0xb")](t)&&wa("0x2b")===t.getAttribute(wa("0xa"))));null!==s&&this[wa("0x26")][wa("0x22")].change((()=>{n[wa("0x2d")](s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0x13")]}],formatGroupId:wa("0x2")})}))}[wa("0x6")](t,e={}){const n=this[wa("0x26")][wa("0x1d")].get("TrackChangesEditing"),o=this.editor.plugins[wa("0x15")]("DocumentListUtils"),s=this[wa("0x32")]((t=>o[wa("0xb")](t)&&wa("0x2b")===t.getAttribute(wa("0xa"))));null!==s&&this[wa("0x26")].model.change((()=>{n[wa("0x2d")](s,{commandName:wa("0x10"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x24")](t){const e=this[wa("0x26")][wa("0x1f")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x12")]){case wa("0x34"):o=wa("0x2e"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x0")](n[wa("0x4")][0][wa("0x29")])))};break;case wa("0x2"):o=n[wa("0x4")][0][wa("0x13")]?wa("0x33"):wa("0x25"),s={type:"format",content:Yo(e,o)};break;case wa("0x10"):o=wa("0x30"),s={type:wa("0x27"),content:Yo(e,o,n[wa("0x4")][0][wa("0x11")])}}return s}[wa("0xe")](){const t=this[wa("0x26")][wa("0x1d")].get(wa("0x1e"));let e=Array.from(this[wa("0x26")].model[wa("0x1c")][wa("0x1a")][wa("0xf")]());return e[wa("0x7")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[wa("0x1d")].get(wa("0x1e"));let n=Array[wa("0x2a")](this.editor.model[wa("0x1c")][wa("0x1a")][wa("0xf")]())[wa("0x1")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x8")](t)&&o[wa("0x7")](t);return o}[wa("0x0")](t){return"ELEMENT_"+this[wa("0x26")][wa("0x1d")][wa("0x15")](wa("0x23"))[wa("0x20")](t)[wa("0x3")]()+wa("0x28")+t[wa("0x3")]()[wa("0x5")](/-/g,"_")}}const Fa=["TrackChangesEditing","tableBackgroundColor","tableAlignment","tableBorderWidth","tableCellBackgroundColor","join","commandParams","accept","tableBorderStyle","locale","tableProperties","get","_suggestionFactory","tableCellWidth","tableCellProperties","data","change","*Format:* change table properties","TableUtils","handleSuggestionDescription","selection","tableCellHeight","setAttribute","tableHeight","markBlockFormat","getSuggestionCallback","nodeAfter","getContainedElement","tableCellVerticalAlignment","tableBorderColor","tableCellHorizontalAlignment","tableWidth","tableCellPadding","tableCellBorderStyle","handleDiscardAction","format","start","discard","editor","removeAttribute","TableCellPropertiesEditing","_handlePropertyChange","getFirstPosition","registerCustomCallback","has","enqueueChange","batch","table","getSelectionAffectedTableCells","findAncestor","_getSuggestion","document","getAttribute","model","getSuggestions","subType","formatBlock","afterInit","pluginName","plugins"];var Pa,Da;Pa=Fa,Da=341,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("0x30"),Ba("0x1b"),Ba("0x16"),Ba("0x15"),Ba("0x32"),Ba("0x2a"),Ba("0x14")],this[Ba("0x21")]=["tableCellBorderColor",Ba("0x34"),"tableCellBorderWidth",Ba("0x33"),Ba("0x20"),Ba("0x28"),Ba("0x17"),Ba("0x31"),Ba("0x2f")]}static get[Ba("0x11")](){return"TrackChangesTableProperties"}[Ba("0x10")](){const t=this.editor[Ba("0x12")][Ba("0x1e")](Ba("0x13"));if(this[Ba("0x39")][Ba("0x12")][Ba("0x3")]("TablePropertiesEditing")){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x39")].model.document[Ba("0x27")][Ba("0x1")]()[Ba("0x8")](Ba("0x6"));this._handlePropertyChange(e,[o],this.tableProperties,Ba("0x1d"),t,n)}));t[Ba("0x1f")].registerCustomCallback(Ba("0xf"),"tableProperties",Ba("0x1a"),t._suggestionFactory[Ba("0x2c")](Ba("0xf"),null,"discard")),t[Ba("0x1f")][Ba("0x2")](Ba("0xf"),Ba("0x1d"),Ba("0x38"),((t,e)=>this[Ba("0x35")](this[Ba("0x1d")],t,e))),t[Ba("0x1f")].registerCustomCallback(Ba("0xf"),Ba("0x1d"),"join",(()=>!1))}if(this[Ba("0x39")][Ba("0x12")].has(Ba("0x3b"))){for(const e of this[Ba("0x21")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x39")].plugins.get(Ba("0x25"))[Ba("0x7")](this.editor.model[Ba("0xa")][Ba("0x27")]);this[Ba("0x0")](e,o,this[Ba("0x21")],Ba("0x21"),t,n)}));t._suggestionFactory[Ba("0x2")]("formatBlock",Ba("0x21"),Ba("0x1a"),t[Ba("0x1f")].getSuggestionCallback(Ba("0xf"),null,Ba("0x38"))),t[Ba("0x1f")][Ba("0x2")](Ba("0xf"),Ba("0x21"),Ba("0x38"),((t,e)=>this[Ba("0x35")](this[Ba("0x21")],t,e))),t[Ba("0x1f")].registerCustomCallback("formatBlock",Ba("0x21"),Ba("0x18"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x26")](t)))}[Ba("0x0")](t,e,n,o,s,r){const i=this[Ba("0x39")].plugins[Ba("0x1e")](Ba("0x13"));this[Ba("0x39")][Ba("0xc")][Ba("0x4")](r[Ba("0x5")],(()=>{for(const t of e)if(this[Ba("0x9")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0xb")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x2b")](t,{commandParams:[e]},[],o)}}))}[Ba("0x35")](t,e,n){const o=e[0][Ba("0x37")][Ba("0x2d")],s=n[Ba("0x19")][0];this.editor[Ba("0xc")][Ba("0x23")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x29")](n,s[n],o):e[Ba("0x3a")](n,o)}))}[Ba("0x26")](t){if(t[Ba("0x22")])switch(t[Ba("0xe")]){case Ba("0x1d"):return{type:Ba("0x36"),content:Yo(this.editor[Ba("0x1c")],Ba("0x24"))};case Ba("0x21"):return{type:"format",content:Yo(this[Ba("0x39")][Ba("0x1c")],"*Format:* change table cell properties")}}}_getSuggestion(t,e){const n=this[Ba("0x39")][Ba("0x12")][Ba("0x1e")]("TrackChangesEditing");for(const o of n[Ba("0xd")]({skipNotAttached:!0})){const n=o[Ba("0x2e")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["ck-suggestion-marker","getLastMatchingPosition","createSelection","formatInline:chain","authoredAt","_handleNewSuggestionMarker","addMarkerName","formatInline:","_mergeNestedSuggestions","_updateSuggestionData","start","track-changes-suggestion-data-mismatch","head","isObject","getCommentThread","editingDowncast","acceptSuggestion","_suggestionState","attributes","updateSuggestion","_getSuggestionData","some","widget","model","insertion:discard","length","getAllAdjacentSuggestions","insertion:chain","default","buildSuggestion","markerName","parent","isBefore","hasSuggestion","suggestion-type","_isForcedDefaultExecutionBlock","_refreshSuggestionsChain","deletion:join","_suggestionFactory","type","markMultiRangeDeletion","change:data","rootName","PendingActions","commands","_suggestions","batch","substr","insertion:join","change:activeMarkers","registerCustomCallback","size","getCustomProperty","trackChangesCommand","suggestion:","trackChanges.trackFormatChanges","containsPosition","getMultiRangeId","_editor","deleteContent","howMany","_model","containsRange","name","has","listenTo","_findSuggestions","formatGroupId","isNextTo","data-suggestion","discardAllSuggestions","selection","markerToHighlight","pluginName","applyOperation","getMarkers","elementEnd","setAttribute","external:","isCollapsed","_adapter","value","_getAuthorFromId","position","addClass","init","_breakSuggestionMarker","return","set","data","elementStart","@external","detach","_enabledCommands","insertContent","join","isEqual","toViewElement","root","skipNestingCheck","creator","commentThread","isInsideObject","hasCommentThread","_splitMarkerName","before","_getExternalAuthor","_joinSuggestions","markerReady","execute","addHighlight","trackChanges","open","formatInline","isSelectable","isLocal","trackChanges.mergeNestedSuggestions","isRemovable","addComment","multipleBlocks","_saved","sort","end","addSuggestionData","_removeSuggestion","_customCallbacks","editor","fire","addUser","unbind","getAttribute","high","formatBlock:discard","markDeletion","getIntersection","removeComment","_setSuggestionData","lowest","markers","formatInline:accept","from","includes","setSelection","deletion","remove","track-changes-command-not-found","getSuggestions","multi","isOwn","clear","isBlock","suggestionLoaded","ck-suggestion-marker--active","isMultiRange","config","nodeBefore","createPositionAt","range","isIntersectingWithRange","insertion:","acceptAllSuggestions","newRange","_cutOutSuggestionMarker","item","suggestion","update:suggestion","element","getItems","insertion:accept","markMultiRangeInsertion","getChangedMarkers","_checkSuggestionCorrectness","marker-count","containsItem","ck-suggestion-marker-formatBlock","ready","deletion:accept","after","isUndo","adapter","removeMarkers","formatBlock:chain","rejected","plugins","markInsertion","PENDING_ACTION_SUGGESTION","schema","authorName","_rangeIsInLocalUserInsertion","isInContent","moveTargetPosition","values","createRangeIn","CommentsRepository","nodeAfter","addRange","isLimit","track-changes-adapter-missing-getsuggestion","_defaultCallbacks","insertion","getRange","always","createPositionBefore","getChanges","insert","$marker","author","elementToElement","formatBlock","getNearestSelectionRange","removeAttribute","getRanges","catch","discardSelectedSuggestions","mapper","getDifference","createdAt","addSuggestion","getWalker","Users","for","consumable","push","formatBlock:","consume","showSuggestionHighlights","get","fetchCommentThread","isExternal","subType","containsRangeInObject","discardSuggestion","getSuggestion","_addSuggestionMarker","dataDowncast","stop","suggestionChanged","change","getFirstRange","$graveyard","removed","discard","forceDefaultExecution","updateMarker","addCommentThread","oldRange","rethrowUnexpectedError","deletion:discard","getUser","acceptSelectedSuggestions","ck-suggestion-marker-","suggestionUnloaded","split","track-changes-user-not-found","formatBlock:accept","getSuggestionCallback","isAfter","options","writer","define","collaboration.channelId","activeMarkers","splice","enqueueChange","_commentsRepository","createRange","getShiftedBy","splitPosition","then","fromRange","accept","resolve","change:_saved","_trackFormatChanges","track-changes-adapter-already-set","map","never","previous","differ","isAtEnd","isAtStart","backward","filter","stopListening","requires","documentSelection","formatBlock:join","every","isDocumentOperation","next","add","conversion","removeMarker:suggestion:formatBlock","_setSuggestionRange","_addThreadToSuggestion","registerPostFixer","markerNameToElements","_registerDefaultCallbacks","low","dataReady","removeMarker","track-changes-suggestion-not-found","notReady","deletion:","hasComments","originalSuggestionId","normal","locale","_createSuggestion","clone","markInlineFormat","commandName","delete","_joinWithAdjacentSuggestions","enableCommand","document","upcast","error-saving-suggestion-data-suggestion-discarded"];var Ga,Ha;Ga=Ua,Ha=136,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0x94")](){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Vi,$i,tx,ix,ux,px,yx,Ix,wx,jx,Vx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xff")](){return"TrackChangesEditing"}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t)))[za("0x115")]("")}super(t),this.set(za("0x7d"),[]),this.on(za("0xe7"),((e,n,o,s)=>{this[za("0xf3")][za("0x65")]((()=>{for(const e of[...s,...o])this._model[za("0x2")][za("0xf6")](e)&&t.editing.reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x134")][za("0xcd")][za("0x32")],this[za("0x134")][za("0xab")]),this[za("0x106")]=null,this[za("0xdc")]=new Wa(this[za("0x134")]),this[za("0xe3")]=new Map,this[za("0x80")]=t[za("0x2f")].get("CommentsRepository"),this[za("0x113")]=new Set,this[za("0xf3")]=this[za("0x134")][za("0xcd")],this._suggestionState=new WeakMap,this[za("0xd9")]=!1,t[za("0x12")][za("0x7b")](za("0xed"),za("0xd2")),this[za("0x89")]=t[za("0x12")][za("0x5a")]("trackChanges.trackFormatChanges"),t[za("0x12")][za("0x7b")](za("0x12a"),!0),this._mergeNestedSuggestions=t.config.get(za("0x12a")),this[za("0xeb")]=new u(t,this[za("0x113")]),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,50,48])}[za("0x10b")](){const t=this[za("0x134")];t[za("0x9b")].for(za("0xc5")).markerToHighlight({model:za("0x1c"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0xd4")]),o=[za("0xb6"),za("0x72")+n];let s=3e3;return this[za("0x7d")][za("0x5")](t.markerName)&&(o[za("0x56")](za("0x10")),s=3010),za("0x7")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x9b")][za("0x54")](za("0x62")).add((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[za("0x79")][za("0x59")])return;const s=n[za("0x1b")];if(!s)return;const r=o.mapper.toViewElement(s);t.model.schema[za("0xc3")](s)&&r&&!r[za("0xea")](za("0xcc"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[za("0x7a")])}),{priority:"high"})})),t[za("0x9b")].for(za("0x62"))[za("0xfe")]({model:za("0x1c"),view:(t,e)=>{if(!e[za("0x79")][za("0x59")])return null;const{type:n}=this[za("0x11e")](t[za("0xd4")]);return{classes:[za("0xb6"),za("0x72")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x1b")])return;if(o[za("0x1b")].is(za("0xfd")))return void s[za("0x55")][za("0x58")](o[za("0x1b")],n.name);const r=s[za("0x4e")][za("0x117")](o[za("0x1b")]);if(!o[za("0x1b")].is(za("0x1e"))||!t.model[za("0x32")][za("0xe")](o[za("0x1b")])||r.getCustomProperty(za("0x124")))return;const{id:i}=this[za("0x11e")](o.markerName);s[za("0x7a")][za("0x10a")]([za("0xb6"),za("0x26")],r),s[za("0x7a")][za("0x103")](za("0xfb"),i,r),s.mapper.bindElementToMarker(r,o.markerName),e&&(this[za("0x7d")][za("0x5")](o.markerName)?s[za("0x7a")][za("0x10a")](za("0x10"),r):s[za("0x7a")].removeClass(za("0x10"),r));for(const e of t[za("0xcd")][za("0x38")](o[za("0x1b")])[za("0x1f")]())s[za("0x55")][za("0x58")](e,n.name);s[za("0x55")][za("0x58")](o.item,n[za("0xf5")])};t[za("0x9b")].for("dataDowncast")[za("0x9a")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x79")][za("0x59")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x9b")][za("0x54")]("dataDowncast").markerToData({model:za("0x1c"),view:(t,e)=>e[za("0x79")].showSuggestionHighlights?null:{group:za("0x1c"),name:t[za("0xe5")](11)}}),t[za("0x9b")][za("0x54")](za("0xb4"))[za("0x47")]({view:{name:za("0x1c"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0x138")](za("0xd8"))+":"+t[za("0x138")]("id");return t[za("0x138")](za("0x24"))&&(n+=":"+t[za("0x138")](za("0x24"))),e.createElement(za("0x45"),{"data-name":n})}}),t.conversion[za("0x54")]("upcast").dataToMarker({view:za("0x1c")}),t[za("0x9b")].for("editingDowncast").add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x139")})})),t[za("0x9b")][za("0x54")]("editingDowncast")[za("0x9a")]((t=>{t.on(za("0x9c"),((t,e,n)=>{const o=n[za("0x4e")][za("0xa0")](e[za("0xd4")]);if(o)for(const t of o)t[za("0xea")](za("0x124"))||(n[za("0x7a")].removeClass([za("0xb6"),za("0x26"),"ck-suggestion-marker--active"],t),n[za("0x7a")][za("0x4a")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[za("0xd4")]))}),{priority:za("0x139")})})),t[za("0xcd")][za("0xb3")][za("0x9f")]((e=>{let n=!1;const o=Array[za("0x4")](t[za("0xcd")][za("0xb3")].differ[za("0x22")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x11e")](x);if(za("0x1c")!==o)continue;const d=this[za("0xe3")][za("0x5a")](l);if(null!=a[za("0x19")])if(za("0x127")==c&&(n=n||Xa(a[za("0x19")],x,e,t[za("0xcd")][za("0x32")])),a[za("0x19")].isCollapsed||"$graveyard"==a[za("0x19")].root.rootName||za("0x48")==c&&!Ja(a[za("0x19")])||"deletion"==c&&(qa(i=a.newRange)||(r=i)[za("0xc0")][za("0xd5")]==r[za("0x130")][za("0x13")]&&r[za("0xc0")][za("0x8f")]))e[za("0xa4")](x),n=!0;else{if(!d||!d.isInContent)continue;s[za("0x9a")](d)}}var r,i;return s.size>0&&(n=!!this[za("0xb1")](s)||n),n})),t[za("0xcd")][za("0xb3")][za("0x9f")]((e=>{let n=!1;for(const o of t[za("0xcd")][za("0xb3")][za("0x8e")][za("0x43")]()){if(za("0x44")!=o[za("0xdd")])continue;const s=o[za("0x109")][za("0x82")](o[za("0xcf")]);if(s.isAtEnd)for(const r of this[za("0xe3")][za("0x37")]()){if(r[za("0x11")]||!r[za("0x35")])continue;if(za("0x48")!=r.type)continue;const i=r[za("0x66")]();if(i[za("0xc0")][za("0xd5")]!=i[za("0x130")][za("0xd5")]&&i.end.isEqual(o.position)){const o=t[za("0xcd")][za("0x81")](i[za("0xc0")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0xcd")].markers.on(za("0x1d"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0x11e")](e[za("0xf5")]),n=this._suggestions[za("0x5a")](t);n&&n[za("0xbc")](e[za("0xf5")])}})),t[za("0xcd")][za("0xb3")].on(za("0xdf"),(()=>{const e=Array.from(t[za("0xcd")][za("0xb3")][za("0x8e")][za("0x22")]()).filter((t=>za("0x1c")===this._splitMarkerName(t.name).group));if(0===e[za("0xcf")])return;e[za("0x12f")](((t,e)=>{const n=t.data[za("0x6d")],o=e[za("0x10f")][za("0x6d")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xc0")][za("0xd6")](o[za("0xc0")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x11e")](t);if(null===s[za("0x6d")]){const e=this[za("0xbb")](t);o[za("0x9a")](e)}else{const t=this._suggestions[za("0x5a")](e);null!==s[za("0x19")]||t[za("0x35")]?(n.add(t[za("0xc2")]),o.add(t)):this._removeSuggestion(t)}}o[za("0xe9")]>0&&this[za("0xda")](o);for(const t of n)this[za("0x135")](za("0x64"),t)})),t[za("0xcd")].on(za("0x100"),((e,n)=>{const o=n[0];if(!this[za("0xe3")][za("0xe9")])return;if(!o[za("0x98")])return;if(o[za("0xe4")][za("0x2a")]||!o[za("0xe4")][za("0x129")])return;let s,r;switch(o[za("0xdd")]){case za("0x44"):s=t[za("0xcd")][za("0x14")](o[za("0x109")]),r=s.getShiftedBy(o[za("0xf2")]);break;case"split":s=t[za("0xcd")][za("0x14")](o[za("0x83")]),r=t[za("0xcd")][za("0x14")](o[za("0x36")]);break;case"move":s=t.model[za("0x14")](o.targetPosition),r=s[za("0x82")](o.howMany);break;default:return}const i=t[za("0xcd")].createRange(s,r);t.model.change((()=>{for(const{suggestion:t,meta:e}of this[za("0xf8")](i)){if(t[za("0x11")])continue;if("formatInline"==t[za("0xdd")])continue;const n=t[za("0x10f")]&&t.data[za("0x12d")];("formatBlock"!=t[za("0xdd")]||za("0x74")==o[za("0xdd")]&&!n)&&(e[za("0x5e")]||za("0x3f")==t[za("0xdd")]&&e[za("0xc")]||t.getFirstRange()[za("0xf4")](i)&&this[za("0x10c")](t,s,r))}}))}),{priority:za("0x1")}),t.model.on(za("0xf1"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x6a")])return;if(this[za("0xd9")])return;if(!this[za("0xeb")][za("0x107")])return;if(o[za("0x105")])return;const r=t[za("0xcd")][za("0x32")],{start:i,end:x}=o[za("0x66")](),a=i[za("0x3a")]&&r[za("0x3c")](i[za("0x3a")])?null:r.getNearestSelectionRange(i,"forward"),c=x[za("0x13")]&&r[za("0x3c")](x[za("0x13")])?null:r[za("0x49")](x,za("0x91")),l=t.model.createRange(a?a[za("0xc0")]:i,c?c.end:x);t.model[za("0x65")]((e=>{this[za("0x13b")](l);const n=t[za("0xcd")][za("0x32")].getNearestSelectionRange(l[za("0xc0")]);o.is(za("0x95"))?e[za("0x6")](n):o.setTo(n)})),e[za("0x63")]()}),{priority:e.priorities[za("0xaa")]+10}),t[za("0xcd")].on(za("0x114"),((e,n)=>{const o=n[n[za("0xcf")]-1];o&&o[za("0x6a")]||this[za("0xd9")]||this[za("0xeb")][za("0x107")]&&(t[za("0xcd")][za("0x65")]((()=>{let o=t.model[za("0x114")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x10d")]=o[za("0xad")]();const s=o[za("0x130")][za("0x13")],r=t[za("0xcd")][za("0x32")];s&&r[za("0xe")](s)&&!r[za("0xc3")](s)&&(o=t.model.createRange(o[za("0xc0")],t[za("0xcd")][za("0x14")](s,za("0x130")))),this[za("0x30")](o)})),e[za("0x63")]())}),{priority:"high"}),this[za("0x134")][za("0xe2")].add(za("0x125"),this[za("0xeb")]),this[za("0xb2")](za("0x125"));const o=new p(t,this[za("0xe3")]);t.commands[za("0x9a")](za("0xc6"),o),this.enableCommand(za("0xc6"));const s=new C(t,this[za("0xe3")]);t.commands[za("0x9a")](za("0x5f"),s),this.enableCommand(za("0x5f")),t.commands[za("0x9a")](za("0x18"),new F(t,o,this[za("0xe3")])),this[za("0xb2")](za("0x18")),t[za("0xe2")][za("0x9a")]("discardAllSuggestions",new F(t,s,this[za("0xe3")])),this[za("0xb2")](za("0xfc")),t.commands[za("0x9a")]("acceptSelectedSuggestions",new U(t,o,this[za("0xe3")])),this[za("0xb2")](za("0x71")),t.commands.add(za("0x4d"),new U(t,s,this[za("0xe3")])),this[za("0xb2")](za("0x4d"));const r=t[za("0x2f")][za("0x5a")](za("0x39"));this[za("0xf7")](r,za("0x12c"),((t,{threadId:e})=>{const n=this[za("0xe3")][za("0x5a")](e);n&&n[za("0x11b")]&&1===n.commentThread[za("0xcf")]&&this[za("0xbf")](e,{hasComments:!0})}),{priority:"low"}),this[za("0xf7")](r,za("0x13d"),((t,{threadId:e})=>{const n=this._suggestions[za("0x5a")](e);n&&n[za("0x11b")]&&!n.commentThread[za("0xcf")]&&this[za("0xbf")](e,{hasComments:!1})}),{priority:za("0xa2")})}set[za("0x2b")](t){if(this[za("0x106")])throw new e.CKEditorError(za("0x8a"),this);this[za("0x106")]=t}get[za("0x2b")](){return this[za("0x106")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0xe3")].values())t&&!e[za("0x35")]||n[za("0x56")](e);return e?n[za("0x8b")]((t=>t.toJSON())):n}getSuggestion(t){const n=this._suggestions[za("0x5a")](t);if(!n)throw new e.CKEditorError(za("0xa5"),this);return n}[za("0xd7")](t){return this[za("0xe3")][za("0xf6")](t)}[za("0x131")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xdd")][za("0x74")](":"),i=this[za("0xe3")].get(n)||this[za("0xac")](s,r,n,e,o);if(this[za("0x9e")](i),this[za("0x23")](i,s,r||null,e),i.createdAt=t.createdAt,o&&o[za("0x111")]){const t=o[za("0x111")],e=this._getExternalAuthor(t[za("0x33")]);i.authoredAt=t.createdAt,i[za("0x46")]=e,i[za("0x5c")]=!0}else i[za("0xba")]=t[za("0x50")];switch(t.data&&(i[za("0x10f")]=t[za("0x10f")]),t.attributes&&(i[za("0xc8")]=t.attributes),this[za("0x106")]&&this[za("0x106")][za("0x51")]||(i[za("0x12e")]=!0),this[za("0xc7")][za("0x5a")](i)){case za("0xa6"):this._suggestionState.set(i,"dataReady");break;case za("0x122"):i[za("0x35")]?(this[za("0xc7")].set(i,za("0x27")),this[za("0x135")](za("0xf"),i)):this._suggestionState.set(i,za("0x68"))}return i}acceptSuggestion(t){this[za("0x6a")]((()=>{this[za("0x134")][za("0xcd")][za("0x65")]((()=>{for(const e of t[za("0xd0")]())e[za("0x86")]()}))}))}[za("0x5f")](t){this[za("0x6a")]((()=>{this[za("0x134")][za("0xcd")][za("0x65")]((()=>{for(const e of t[za("0xd0")]())e[za("0x69")]()}))}))}enableCommand(t,n){const o=this[za("0x134")][za("0xe2")].get(t);if(!o)throw new e.CKEditorError(za("0x9"),this,{commandName:t});this[za("0x113")][za("0x9a")](o),n&&o.on(za("0x123"),((t,e)=>{this.trackChangesCommand.value&&(this[za("0xd9")]||e[za("0xcf")]>0&&e[e[za("0xcf")]-1]&&e[e.length-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[za("0x63")]()))}),{priority:za("0x139")})}[za("0x6a")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0xd9")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xd9")]=!1),o&&e.CKEditorError[za("0x6e")](o,this),n}[za("0x30")](t,n=null,o={}){if(t[za("0x105")])return null;const s=this[za("0x134")][za("0x2f")][za("0x5a")]("Users").me;for(const{suggestion:e,meta:o}of this[za("0xf8")](t,"insertion"))if(o[za("0xc")]){if(!o[za("0xfa")]){if(!this[za("0xbe")]&&o[za("0x5e")])continue;return e}if(n==e.subType){const n=e.getFirstRange();return n[za("0xc0")][za("0x116")](t.end)?this[za("0x9d")](e,this._model.createRange(t[za("0xc0")],n[za("0x130")])):this[za("0x9d")](e,this[za("0xf3")][za("0x81")](n[za("0xc0")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x17")+n:za("0x3f"),a=this[za("0x0")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0x21")](t,n=za("0xb"),o={}){const s=this[za("0x134")][za("0x2f")][za("0x5a")](za("0x53")).me,r=this[za("0xdc")].getSuggestionCallback(za("0x3f"),n,za("0x115"));for(const e of this[za("0xa")]())if(e.author.id==s.id&&za("0x3f")==e[za("0xdd")]&&e[za("0x5d")]==n&&(r(e.getRanges(),t)||r(t,e[za("0x4b")]()))){for(const n of t)e[za("0x3b")](n);return e}if(this[za("0xbe")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0xf8")](e,"insertion")){if(!o[za("0xc")])continue;let e=!0;for(const o of n[za("0x4b")]())for(const n of t)if(!o[za("0xf4")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x17")+n,c=this[za("0x0")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x61")](a,i,x,e,Zo.getMultiRangeId());return c}[za("0xae")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x105")])return null;if("never"===this[za("0x89")]){const e=this[za("0xdc")][za("0x77")](za("0x127"),o,za("0x86"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x134")][za("0x2f")][za("0x5a")](za("0x53")).me,i=[];if(za("0x41")!==this[za("0x89")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x3f")))n[za("0xc")]&&!n.isInsideObject&&i[za("0x56")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x13c")](o);e&&n[za("0x56")](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].getDifference(t);n[za("0x7e")](e,1,...o),e+=o[za("0xcf")]}}return n}(t,i);x[za("0xcf")]&&this._model[za("0x65")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x77")]("formatInline",o,za("0x86"));this[za("0x6a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[za("0x130")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x127"))){if(!n.isOwn)continue;if(e[za("0x5d")]!=o)continue;const s=e[za("0x66")]();if(s[za("0xf4")](t,!0))return null;x=x[za("0xd6")](s[za("0xc0")])?x:s[za("0xc0")],a=a[za("0x78")](s[za("0x130")])?a:s[za("0x130")],i?s.start[za("0xd6")](i[za("0x66")]()[za("0xc0")])?(i[za("0x2c")](),i=e):e[za("0x2c")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0x9d")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x0")]({id:t,type:za("0xbd")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x61")](za("0xbd")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xf9")]||(n[za("0xf9")]=n[za("0xaf")]),n[za("0x12d")]=t.is("range"),s=s||$a(n);const i=o[za("0x8b")]((t=>Qa(t,this._model))),x=t.is(za("0x15"))?t:Qa(t,this[za("0xf3")]);if("never"===this[za("0x89")]){const t=this[za("0xdc")][za("0x77")](za("0x48"),s,za("0x86"));return this[za("0x6a")]((()=>t([x],n,r))),null}i[za("0x56")](x);let a=!0;for(const t of i)if(!this[za("0x34")](t)){a=!1;break}if(a&&za("0x41")!==this[za("0x89")]){const t=this[za("0xdc")].getSuggestionCallback(za("0x48"),s,za("0x86"));return this[za("0x6a")]((()=>t([x],n,r))),null}let c=null,l=x[za("0xc0")],d=x[za("0x130")];for(const{suggestion:t,meta:e}of this[za("0xf8")](x,za("0x48"))){if(!e[za("0xc")]||e[za("0xfa")]||e[za("0x5e")]||e[za("0x11c")])continue;if(t[za("0x10f")][za("0xf9")]!=n.formatGroupId)continue;const o=t[za("0x66")]();if(t[za("0x5d")]==s){if(o[za("0xf4")](x,!0))return null;l=l.isBefore(o[za("0xc0")])?l:o[za("0xc0")],d=d[za("0x78")](o[za("0x130")])?d:o.end,c?o[za("0xc0")][za("0xd6")](c[za("0x66")]().start)?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x[za("0x13c")](o);this[za("0x1a")](t,e)}}const u=this.editor[za("0x2f")][za("0x5a")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x9d")](c,this[za("0xf3")][za("0x81")](l,d)),c;{const t=this[za("0x0")]({id:g,type:za("0x57")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x61")](za("0x57")+s,g,m,this[za("0xf3")][za("0x81")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0xf9")]||(n.formatGroupId=n.commandName);const i=t[0];n[za("0x12d")]=i.is("range"),s=s||$a(n);const x=o.map((t=>Qa(t,this._model))),a=i.is(za("0x15"))?t:t.map((t=>Qa(t,this[za("0xf3")])));if(za("0x8c")===this[za("0x89")]){const t=this[za("0xdc")][za("0x77")]("formatBlock",s,za("0x86"));return this[za("0x6a")]((()=>t(a,n,r))),null}x[za("0x56")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x41")!==this[za("0x89")]){const t=this[za("0xdc")][za("0x77")]("formatBlock",s,za("0x86"));return this[za("0x6a")]((()=>t(a,n,r))),null}const l=this.editor[za("0x2f")].get("Users").me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(za("0x48")!=t[za("0xdd")]||t[za("0x10f")][za("0xf9")]!=n.formatGroupId)continue;const e=t[za("0x5d")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0x101")]()){const r=s[za("0x40")]();if(o.isEqual(r)){e?(a[za("0x7e")](n,1),n--):t[za("0xa4")](s[za("0xf5")]);break}}}}if(0==a.length)return null;const d=this[za("0xdc")].getSuggestionCallback(za("0x48"),s,za("0x115"));for(const t of this[za("0xa")]())if(t[za("0x46")].id==l.id&&za("0x48")==t[za("0xdd")]&&t[za("0x10f")][za("0xf9")]==n[za("0xf9")]&&t[za("0x5d")]==s&&(d(t.getRanges(),a)||d(a,t[za("0x4b")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x57")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x61")](m,u,g,t,Zo[za("0xef")]());return f}[za("0x13b")](t,n=null,o={}){if(t[za("0x105")])return null;const s=this[za("0x134")][za("0x2f")][za("0x5a")](za("0x53")).me,r=new i.LiveRange(t[za("0xc0")],t[za("0x130")]);for(const{suggestion:t,meta:e}of this[za("0xf8")](r,"insertion"))if(e[za("0xc")]&&!e[za("0xfa")])if(t[za("0x11")]){const e=t[za("0x4b")]()[za("0x92")]((t=>"$graveyard"!=t[za("0x118")][za("0xe0")]));if(e[za("0x97")]((t=>r[za("0xf4")](t,!0)))&&t[za("0x69")](),e[za("0xcb")]((t=>t[za("0xf4")](r,!0)))){const t=this[za("0xdc")][za("0x77")](za("0x7"),n,za("0x86"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x13c")](t[za("0x66")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x112")](),r[za("0x105")]||za("0x67")==r.root[za("0xe0")])return null;let x=null,a=r[za("0xc0")],c=r.end;for(const{suggestion:t,meta:e}of this._findSuggestions(r,"deletion"))if(e[za("0xc")])if(t.isMultiRange&&this[za("0xbe")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xf4")](r,!0))return t;r[za("0xf4")](n)||(e=!1)}e&&t[za("0x69")]()}else{const n=t.getFirstRange();if(n[za("0xf4")](r,!0)){if(!this._mergeNestedSuggestions&&e[za("0x5e")])continue;return t}a=a[za("0xd6")](n[za("0xc0")])?a:n[za("0xc0")],c=c[za("0x78")](n[za("0x130")])?c:n[za("0x130")],x?n[za("0xc0")][za("0xd6")](x[za("0x66")]().start)?(x[za("0x2c")](),x=t):t.removeMarkers():x=t}if(x)return this[za("0x9d")](x,this[za("0xf3")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0xf3")][za("0x81")](a,c),i=s.id,x=n?za("0xa7")+n:za("0x7"),l=this[za("0x0")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0xde")](t,n=za("0xb"),o={}){const s=this[za("0x134")].plugins[za("0x5a")](za("0x53")).me,r=t[za("0x8b")]((t=>new i.LiveRange(t.start,t[za("0x130")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xf8")](t,za("0x3f")))n[za("0xc")]&&!n.isNextTo&&x[za("0x9a")](e);for(const e of x)if(e.isMultiRange){const s=e[za("0x4b")]();if((!e.attributes||!e[za("0xc8")].skipNestingCheck)&&s[za("0x97")]((t=>r.some((e=>e[za("0xf4")](t,!0)))))&&e[za("0x69")](),r[za("0x97")]((t=>s[za("0xcb")]((e=>e[za("0xf4")](t,!0)))))){const e=this._suggestionFactory[za("0x77")](za("0x7"),n,za("0x86"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x66")]();if(r[za("0xcb")]((e=>e.containsRange(t,!0)))&&e.discard(),r[za("0x97")]((e=>t[za("0xf4")](e,!0)))){const t=this[za("0xdc")][za("0x77")]("deletion",n,za("0x86"));return this[za("0x6a")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory.getSuggestionCallback(za("0x7"),n,za("0x115"));let c=null;for(const t of this[za("0xa")]())if(t.author.id==s.id&&t[za("0x35")]&&za("0x7")==t.type&&t[za("0x5d")]==n&&(a(t[za("0x4b")](),r)||a(r,t[za("0x4b")]())))if(c){if(t[za("0x11b")]&&t[za("0x11b")][za("0xcf")])continue;for(const e of t[za("0x4b")]())c[za("0x16")](e)||c[za("0x3b")](e);t[za("0x2c")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0x3b")](e)}if(c)return c;x[za("0xd")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xf8")](t,za("0x7")))n[za("0xc")]&&x[za("0x9a")](e);for(const t of x){const e=t[za("0x4b")]();if((!o||!o[za("0x119")])&&r[za("0x97")]((t=>e[za("0xcb")]((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[za("0xc8")].skipNestingCheck)&&e[za("0x97")]((t=>r.some((e=>e[za("0xf4")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0xa7")+n,g=this[za("0x0")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x112")](),t[za("0x105")]||za("0x67")==t[za("0x118")][za("0xe0")]||this[za("0x61")](u,l,d,t,Zo[za("0xef")]());return g}[za("0x9d")](t,e){const n=t.getFirstMarker();this._model[za("0x65")]((t=>{t.updateMarker(n,{range:e})}))}[za("0x9e")](t){const e=t.id,n=this[za("0x134")][za("0x12")].get(za("0x7c"));this[za("0x80")][za("0x11d")](e)||this[za("0x80")][za("0x6c")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x80")][za("0xc4")](e);o[za("0x137")](za("0x12b")),o.isRemovable=!1,t.commentThread=o}[za("0x23")](t,n,o,s){if(t.type!=n||t[za("0x5d")]!=o||t.creator.id!=s)throw this[za("0x134")].enableReadOnlyMode(za("0xc1")),new e.CKEditorError(za("0xc1"),this)}[za("0x1a")](t,n){const o=t[za("0x66")]();if(n[za("0x116")](o))t[za("0x2c")]();else if(o[za("0xf4")](n)){const s=this[za("0xf3")][za("0x14")](n[za("0xc0")][za("0x13")],za("0x130"));this[za("0x9d")](t,this[za("0xf3")][za("0x81")](o.start,s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[za("0x5d")];this[za("0x0")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x10f")],attributes:t[za("0xc8")]});const a=this[za("0xf3")][za("0x14")](n[za("0x130")][za("0xd5")],za("0x29")),c=this[za("0xf3")][za("0x81")](a,o.end);this[za("0x61")](x,r,i,c)}else if(o[za("0xee")](n[za("0xc0")])){const e=this[za("0xf3")].createPositionAt(n[za("0xc0")][za("0x13")],za("0x130"));this[za("0x9d")](t,this._model.createRange(o[za("0xc0")],e))}else{const e=this[za("0xf3")][za("0x14")](n[za("0x130")].parent,za("0x29"));this[za("0x9d")](t,this._model[za("0x81")](e,o.end))}}[za("0x34")](t){for(const{suggestion:e,meta:n}of this[za("0xf8")](t,za("0x3f"))){if(!n[za("0xc")])continue;const o=e[za("0x4b")]();for(const e of o)if(!t[za("0x4f")](e).length)return!0}return!1}[za("0x108")](t){const n=this[za("0x134")][za("0x2f")].get(za("0x53"))[za("0x70")](t);if(!n)throw new e.CKEditorError(za("0x75"),this);return n}[za("0x120")](t){const e=this[za("0x134")][za("0x2f")][za("0x5a")]("Users"),n=(0,r.hashObject)(za("0x104")+t);return e[za("0x70")](n)||e[za("0x136")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x108")](o),i=this[za("0xdc")][za("0xd3")](t,e,n,r,s,(t=>this[za("0xbf")](n,{attributes:t})));return this[za("0xf7")](i,za("0x86"),(()=>{this[za("0xbf")](n,{state:"accepted"})}),{priority:za("0x139")}),this[za("0xf7")](i,za("0x69"),(()=>{this._updateSuggestionData(n,{state:za("0x2e")})}),{priority:za("0x139")}),this._suggestions[za("0x10e")](n,i),this[za("0xc7")].set(i,"notReady"),i}[za("0x11e")](t){const e=t[za("0x74")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0xcf")]<5?e[2]:e[3],authorId:e[za("0xcf")]<5?e[3]:e[4],markerCount:6==e[za("0xcf")]?e[5]:null}}[za("0x10c")](t,n,o){const s=t[za("0x66")](),r=s[za("0xc0")],i=s.end;this._setSuggestionRange(t,this._model[za("0x81")](r,n));const x=(0,e.uid)(),a=t[za("0x11a")].id,c=t[za("0xdd")]+(t[za("0x5d")]?":"+t[za("0x5d")]:"");this[za("0x0")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xc8")],data:t[za("0x10f")]}),za("0x48")==t[za("0xdd")]&&(o=this._model[za("0x42")](o[za("0xd5")])),this._addSuggestionMarker(c,x,a,this[za("0xf3")][za("0x81")](o,i))}[za("0xf8")](t,e=null){const n=[],o=this[za("0xf3")].schema,s=this[za("0x134")].plugins.get(za("0x53")).me;for(const r of this[za("0xa")]())if(r.isInContent&&(!e||r.type==e))for(const e of r.getRanges()){const i=t[za("0xc0")][za("0x116")](e[za("0x130")])||t.end[za("0x116")](e.start);if(i||t[za("0x13c")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xc0")],t),a=e[za("0xf4")](t)&&Ka(o,t[za("0xc0")],e);n.push({suggestion:r,meta:{isOwn:s==r[za("0x46")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x61")](t,e,n,o,s){this[za("0xf3")][za("0x65")]((r=>{let i=za("0xec")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x132")](t){const e=t[za("0x8d")],n=t.next;t.previous=null,null!=e&&(e[za("0x99")]=null),t[za("0x99")]=null,null!=n&&(n[za("0x8d")]=null),za("0x27")==this[za("0xc7")].get(t)&&(this[za("0xc7")][za("0x10e")](t,za("0x68")),this[za("0x135")](za("0x73"),t,e,n))}[za("0x0")](t){const n=t.id,o=this[za("0x131")](t);if(this._adapter&&this._adapter[za("0x51")]){const s=this[za("0x134")][za("0x2f")][za("0x5a")](za("0xe1")),r=o[za("0xa8")],i=o[za("0x5d")]?o[za("0xdd")]+":"+o[za("0x5d")]:o[za("0xdd")],x=this[za("0x134")][za("0xab")],a=s.add(Yo(x,za("0x31"))),c={id:n,type:i,hasComments:r,data:t[za("0x10f")]||null,originalSuggestionId:t[za("0xa9")]||null,attributes:o[za("0xc8")]};this[za("0x106")][za("0x51")](c).then((t=>{o[za("0x12e")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions[za("0x5a")](n)[za("0x50")]=t[za("0x50")])}))[za("0x4c")]((t=>{throw(0,e.logWarning)(za("0xb5")),this[za("0x134")][za("0xcd")][za("0x7f")]({isUndoable:!1},(()=>{o.discard()})),o[za("0x93")](),this[za("0xe3")][za("0xb0")](o.id),this[za("0xc7")][za("0xb0")](o),t}))}return o}[za("0xbf")](t,e){const n=this[za("0x134")][za("0x2f")].get(za("0xe1")),o=this[za("0x60")](t);if(this._adapter&&this[za("0x106")][za("0xc9")])if(o[za("0x12e")]){const o=n[za("0x9a")](Yo(this[za("0x134")].locale,za("0x31")));this._adapter[za("0xc9")](t,e)[za("0x84")]((()=>{n[za("0x8")](o)}))}else o.on(za("0x88"),(()=>{this[za("0xbf")](t,e)}))}[za("0xca")](t){if(!this[za("0x106")]||!this[za("0x106")][za("0x60")])throw new e.CKEditorError(za("0x3d"),this);return this._adapter.getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x11e")](t),r=this[za("0xe3")][za("0x5a")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[za("0xc7")].get(r)){case za("0xa6"):this[za("0xca")](e)[za("0x84")]((t=>{let n=Promise[za("0x87")]();t[za("0xa8")]&&(n=this._commentsRepository[za("0x5b")]({channelId:this[za("0x134")][za("0x12")][za("0x5a")]("collaboration.channelId"),threadId:e})),n[za("0x84")]((()=>{this[za("0x131")](t)[za("0x12e")]=!0}))})),this[za("0xc7")][za("0x10e")](r,za("0x122"));break;case"removed":this[za("0xbf")](e,{state:za("0x126")});case za("0xa3"):this._suggestionState[za("0x10e")](r,"ready"),this[za("0x135")](za("0xf"),r);break;case za("0x27"):this[za("0x135")](za("0x64"),r)}return r[za("0xbc")](t),r}_refreshSuggestionsChain(t){const e=Array.from(t).filter((t=>!t[za("0x11")])),n=this[za("0xa")]({skipNotAttached:!0})[za("0x92")]((t=>!t.isMultiRange)),o=n[za("0x92")]((e=>!t[za("0xf6")](e))),s=new Map(n.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0xdd")],t.subType,"chain")]))),r=new Map(n[za("0x8b")]((t=>[t,t[za("0x66")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xcf")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xcf")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0xf6")](n)&&n[za("0x8d")]&&(n[za("0x8d")].next===n&&(n[za("0x8d")].next=null),n.previous=null),!i[za("0xf6")](n)&&n.next&&(n[za("0x99")][za("0x8d")]===n&&(n[za("0x99")][za("0x8d")]=null),n[za("0x99")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xcf")];o++){const n=c(t,e[o]);n&&(n[0][za("0x99")]=n[1],n[1].previous=n[0],i[za("0x9a")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[za("0x46")].id)return null;const n=s[za("0x5a")](t)(t,e,r.get(t),r[za("0x5a")](e));return n&&s[za("0x5a")](e)(t,e,r.get(t),r[za("0x5a")](e))?n[1].commentThread&&n[1][za("0x11b")][za("0xcf")]?null:n:null}}[za("0xb1")](t){const e=Array.from(t),n=this[za("0xa")]({skipNotAttached:!0}),o=n[za("0x92")]((e=>!t[za("0xf6")](e))),s=new Map(e[za("0x8b")]((t=>[t,this._suggestionFactory[za("0x77")](t.type,t[za("0x5d")],za("0x115"))]))),r=new Map(n[za("0x8b")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0xcf")];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("0xcf")];i++){const o=n[i];if(o[za("0xdd")]!==e[za("0xdd")]||o[za("0x46")].id!==e[za("0x46")].id||o[za("0x5d")]!==e.subType)continue;const x=s[za("0x5a")](e),a=r[za("0x5a")](e),c=r[za("0x5a")](o),l=e.commentThread&&e[za("0x11b")].length,d=o[za("0x11b")]&&o[za("0x11b")][za("0xcf")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r.delete(e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[za("0xb0")](o),!0}return!1}}[za("0x121")](t,e){if(t[za("0x11")])for(const n of e[za("0x4b")]())t[za("0x3b")](n);else{const n=e[za("0x66")]()[za("0x130")];this[za("0x9d")](t,this[za("0xf3")][za("0x81")](t[za("0x66")]()[za("0xc0")],n))}e.removeMarkers()}}class Wa{constructor(t){this._editor=t,this[za("0xf3")]=t[za("0xcd")],this[za("0x133")]=new Map,this[za("0x3e")]=new Map,this._registerDefaultCallbacks()}[za("0xd3")](t,e,n,o,s,r){return new Zo(this[za("0xf3")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x77")](t,e,za("0x86"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,za("0x69"))(...n)})}[za("0xe8")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x133")][za("0x10e")](s,o)}[za("0x77")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x133")][za("0x5a")](o)||this[za("0x3e")][za("0x5a")](t+":"+n)}[za("0xa1")](){const t=()=>{},e=t=>{t[za("0x12f")](((t,e)=>t[za("0xc0")].isBefore(e[za("0xc0")])?1:-1)),this._model[za("0x65")]((e=>{for(const n of t){let t;t=n[za("0x130")].isAtEnd&&n.end.parent==n[za("0xc0")][za("0x3a")]?e[za("0xb8")](n.start[za("0x3a")],"on"):e[za("0xb8")](n),this[za("0xf3")][za("0xf1")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0x65")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x8b")]((t=>(qa(t)&&(t=this[za("0xf3")][za("0x81")](t[za("0x130")])),t))).filter((t=>za("0x67")!==t.root[za("0xe0")]));if(r.length<1)return;const x=Array[za("0x4")](this[za("0xf3")].document[za("0xfd")].getRanges())[za("0x8b")]((t=>i.LiveRange[za("0x85")](t)));n[za("0x6")](r);for(const t of this[za("0xf0")][za("0xe2")].commands())t.refresh();s.push({forceDefaultExecution:!0}),this[za("0xf0")][za("0x123")](o,...s);const a=x[za("0x92")]((t=>za("0x67")!=t.root[za("0xe0")]));a[za("0xcf")]>0&&n[za("0x6")](a);for(const t of x)t[za("0x112")]()}))},o=(t,e)=>1==t[za("0xcf")]&&1==e.length&&t[0].end[za("0x116")](e[0][za("0xc0")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xf3")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x3e")][za("0x10e")](za("0x20"),t),this[za("0x3e")].set(za("0xce"),e),this[za("0x3e")][za("0x10e")](za("0xe6"),o),this[za("0x3e")][za("0x10e")](za("0xd1"),s),this[za("0x3e")].set(za("0x28"),e),this._defaultCallbacks.set(za("0x6f"),t),this[za("0x3e")][za("0x10e")](za("0xdb"),o),this[za("0x3e")][za("0x10e")]("deletion:chain",s),this._defaultCallbacks[za("0x10e")](za("0x3"),n),this[za("0x3e")].set("formatInline:discard",t),this[za("0x3e")][za("0x10e")]("formatInline:join",o),this[za("0x3e")][za("0x10e")](za("0xb9"),t),this._defaultCallbacks[za("0x10e")](za("0x76"),n),this[za("0x3e")][za("0x10e")](za("0x13a"),t),this[za("0x3e")][za("0x10e")](za("0x96"),o),this._defaultCallbacks[za("0x10e")](za("0x2d"),t)}}function Ka(t,e,n){for(const o of e[za("0xd5")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x118")]==o)return!1;if(!n[za("0x25")](o))return!1;if(t[za("0xc3")](o)||t[za("0x3c")](o))return!0}return!1}function qa(t){return t[za("0x130")][za("0xd5")]==t.start.nodeAfter&&t[za("0x130")][za("0x90")]}function Xa(t,e,n,o){const s=t=>!t[za("0x1b")].is("$textProxy")&&!o[za("0xc3")](t[za("0x1b")]),r=t.start.getLastMatchingPosition(s),i=t.end[za("0xb7")](s,{direction:za("0x91")});return!(t[za("0xc0")][za("0x116")](r)&&t[za("0x130")].isEqual(i)||(r[za("0xd6")](i)?n[za("0x6b")](e,{range:n[za("0x81")](r,i)}):n[za("0xa4")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xc0")][za("0x3a")];return e&&e.is(za("0x1e"))}function Qa(t,e){const n=e[za("0x32")].isObject(t)||e[za("0x32")][za("0x128")](t);return e[za("0x81")](e[za("0x14")](t,za("0x11f")),n?e.createPositionAfter(t):e.createPositionAt(t,za("0x130")))}function Za(t,e,n,o,s){if(n.end[za("0x116")](o[za("0xc0")]))return!0;if(t.type!=e[za("0xdd")])return!1;if(!n[za("0x130")].isTouching(o.start))return!1;const r=s[za("0x81")](n[za("0x130")],o[za("0xc0")])[za("0x52")]();for(const t of r)if([za("0x110"),za("0x102")][za("0x5")](t[za("0xdd")])&&s[za("0x32")][za("0x3c")](t[za("0x1b")]))return!1;return!0}const Ya=["commands","destroy","_setPendingAction","bind","commentThreadController","listenTo","canAccept","get","isDirty","plugins","locale","_removePendingAction","change:isDirty","getRanges","_pendingAction","add","execute","_acceptCommand","remove","model","stopListening","canDiscard","_discardCommand","acceptSuggestion","view","discardSuggestion","_editor","PENDING_ACTION_SUGGESTION","PendingActions","isEnabled"];var tc,ec;tc=Ya,ec=112,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("0x2")]=n,this[nc("0xc")]=o,this[nc("0x4")]=t,this[nc("0x19")]=t[nc("0x8")][nc("0xf")](nc("0x1")),this[nc("0x0")]=t[nc("0x8")][nc("0xf")](nc("0x3")),this[nc("0x2")][nc("0xb")](nc("0x7")).to(this[nc("0x19")],this._discardCommand,((t,e)=>t||e)),this[nc("0x2")].bind("canAccept").to(this[nc("0x19")],nc("0x7"),(t=>t&&this[nc("0x4")][nc("0x1b")].canEditAt(e[nc("0x15")]()))),this.view[nc("0xb")](nc("0x1d")).to(this[nc("0x0")],nc("0x7"),(t=>t&&this[nc("0x4")][nc("0x1b")].canEditAt(e[nc("0x15")]()))),this[nc("0x16")]=null,n[nc("0x10")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[nc("0x1")]())),this[nc("0xd")](n,nc("0x3"),(()=>this.discardSuggestion())),this[nc("0xd")](n,nc("0x14"),(()=>{n[nc("0x10")]?this[nc("0xa")]():this[nc("0x13")]()}))}[nc("0x1")](){this._acceptCommand.execute(this[nc("0x1b")].id)}[nc("0x3")](){this[nc("0x0")][nc("0x18")](this[nc("0x1b")].id)}[nc("0x9")](){this[nc("0x2")].unbind(nc("0x7")),this[nc("0x2")].unbind(nc("0xe")),this[nc("0x2")].unbind(nc("0x1d")),this[nc("0x1c")](),this[nc("0xc")].destroy(),this[nc("0x16")]&&this._removePendingAction()}_setPendingAction(){const t=Yo(this[nc("0x4")][nc("0x12")],nc("0x5"));this[nc("0x16")]=this._editor[nc("0x11")][nc("0xf")]("PendingActions")[nc("0x17")](t)}[nc("0x13")](){null!==this._pendingAction&&this._editor[nc("0x11")][nc("0xf")](nc("0x6"))[nc("0x1a")](this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["bind","destroy","isDirty","focus","_model","canDiscard","set","commentInputView","isActive","commentThreadInputView","authoredAt","updateComment","value","_createCommentThreadInputView","isReadOnly","cancel","_localUser","length","isEnabled","CommentView","delegate","locale","commentThread","editor","_createCommentViews","disableComments","descriptionParts","canAccept","_config","hasDirtyComment","commentsListView","setData","assign"];var rc,ic;rc=sc,ic=151,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("0xb")]=null,this.commentThreadInputView=null,this[xc("0x14")]("isActive",!1),this[xc("0x14")](xc("0x18"),e[xc("0x18")]),this[xc("0xe")](xc("0x18")).to(e),this[xc("0x14")](xc("0x7"),[]),this[xc("0x14")](xc("0x10"),!1),this.set(xc("0x20"),!1),this[xc("0x14")](xc("0x8"),!1),this[xc("0x14")](xc("0x13"),!1),this._model=e,this[xc("0x1e")]=n,this._config=o,o[xc("0x6")]?this.set(xc("0x1f"),1):this._createCommentViews()}focus(){this.element[xc("0x11")]()}[xc("0xf")](){this[xc("0xb")]&&this[xc("0xb")][xc("0xf")](),this.commentThreadInputView&&this[xc("0x17")][xc("0xf")](),super[xc("0xf")]()}[xc("0x5")](){const{CommentsListView:t}=this[xc("0x9")];this[xc("0xb")]=new t(this.locale,this._model.commentThread,Object[xc("0xd")]({CommentView:this._config[xc("0x0")]},this[xc("0x9")])),this.commentsListView.delegate("removeComment").to(this),this.commentsListView[xc("0x1")](xc("0x19")).to(this),this[xc("0xb")][xc("0xe")]("isActive").to(this),this.set(xc("0x1f"),this.commentsListView.length+1),this[xc("0xe")]("length").to(this[xc("0xb")],"length",(t=>t+1)),this[xc("0x17")]=this[xc("0x1b")](),this.on("removeComment",(()=>this[xc("0x11")]())),this.bind("isDirty").to(this[xc("0xb")],xc("0xa"),this[xc("0x17")][xc("0x15")],xc("0x1a"),((t,e)=>t||!!e))}[xc("0x1b")](){const{CommentThreadInputView:t}=this[xc("0x9")],e=new t(this[xc("0x2")],this[xc("0x1e")],this[xc("0x9")].editorConfig),n=e.commentInputView;return e[xc("0xe")]("showInput").to(this,xc("0x16"),this[xc("0x12")].commentThread,xc("0x1c"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this.fire("addComment",e),n[xc("0x4")][xc("0xc")]("")})),n.on(xc("0x1d"),(()=>this[xc("0x11")]())),n.bind("disabledSubmit").to(this[xc("0x12")][xc("0x3")],xc("0x1c")),e}}const cc=["ck-suggestion__info-name","extendTemplate","isExternal","innerHTML","change:description","getTemplate","Discard suggestion","div","ck-suggestion__main","importWord","setTemplate","creator","editorReady","bind","descriptionParts","map","render","ck-annotation__info-time",'<span class="ck-suggestion-type">',"innerText","author","createElement","acceptSuggestion","ck-annotation__info","ck-suggestion-wrapper","_config","type","isActive","isEnabled","userView","@external","ck-annotation__main","execute","children","discardSuggestion","discardButton",'" title="',"ck-annotation__actions","ck-annotation__content-wrapper","acceptButton","getExternalSuggestionNote","commentThread","canAccept","_createButton","color","set","check","name","ck-suggestion__actions","title","bindTemplate","description","ck-annotation__info-name","canDiscard","editorDestroyed","ck-suggestion__info","ck-suggestion-",".ck-annotation__content-wrapper",'"></span>',"span","split","EXTERNAL_IMPORT_WORD_AVATAR","ck-comment__info-time","ck-comment__external","</p>","content","formatDateTime","getUserViewNotificationText","delegate","ck-suggestion--accept","commentsListView","Accept suggestion","_descriptionElement","authoredAt","locale","EXTERNAL_SUGGESTION","EXTERNAL_IMPORT_WORD_SUGGESTION","attributes","commentThreadInputView","_model","<p>","fire","ck-suggestion"];var lc,dc;lc=cc,dc=373,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("0x4")]("type",""),this[uc("0x37")]("type").to(this,uc("0x38"),(t=>t&&t[0]?t[0][uc("0x44")]:"")),this.bind(uc("0xa")).to(this,"descriptionParts",this,uc("0x45"),((t,e)=>{let n="";for(const e of t)n+=uc("0x27")+mc(e[uc("0x18")],e[uc("0x3")])+uc("0x17");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x1f")]=null,this[uc("0x51")]=this[uc("0x2")](Yo(e,uc("0x1e")),t.icons[uc("0x5")],uc("0x1c"),uc("0x40"),"sw"),this[uc("0x51")].bind(uc("0x46")).to(this,uc("0x1")),this[uc("0x4d")]=this._createButton(Yo(e,uc("0x30")),t.icons.cancel,"ck-suggestion--discard",uc("0x4c"),"sw"),this[uc("0x4d")][uc("0x37")](uc("0x46")).to(this,uc("0xc")),this.userView=new r.UserView(e,this[uc("0x26")][uc("0x3e")],this[uc("0x1a")]()),this[uc("0x47")][uc("0x2b")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[uc("0x34")](this[uc("0x2f")]())}[uc("0x2f")](){const t=this[uc("0x9")],e=[{tag:uc("0x31"),attributes:{class:[uc("0xe"),uc("0x41")]},children:[{tag:uc("0x12"),children:[{text:this[uc("0x47")][uc("0x6")]}],attributes:{class:[uc("0x2a"),uc("0xb")]}},{tag:"time",attributes:{datetime:t.to(uc("0x20")),class:[uc("0x15"),uc("0x3b")]},children:[{text:t.to(uc("0x20"),(t=>this[uc("0x43")][uc("0x19")](t)))}]}]},{tag:uc("0x31"),attributes:{class:[uc("0x7"),uc("0x4f")]},children:[this[uc("0x51")],this[uc("0x4d")]]},{tag:"div",attributes:{class:[uc("0x50")]}}];this[uc("0x26")][uc("0x2c")]&&e.push({tag:uc("0x31"),attributes:{class:[uc("0x16")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:uc("0x31"),attributes:{class:[uc("0x42"),t.if(uc("0x45"),"ck-suggestion-wrapper--active"),t.to(uc("0x44"),(t=>uc("0xf")+t)),this._config.disableComments&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x26")].id,"data-thread-id":this[uc("0x26")][uc("0x0")].id,"data-author-id":this[uc("0x26")].author.id,tabindex:-1},children:[{tag:uc("0x31"),attributes:{class:[uc("0x29"),"ck-annotation"]},children:[this[uc("0x47")],{tag:uc("0x31"),attributes:{class:[uc("0x32"),uc("0x49")]},children:e}]}]};return this[uc("0x1d")]&&this.commentThreadInputView&&(n[uc("0x4b")].push(this[uc("0x1d")],this[uc("0x25")]),this[uc("0x1d")][uc("0x1b")](uc("0x36")).to(this),this[uc("0x1d")].delegate(uc("0xd")).to(this),this[uc("0x25")].delegate(uc("0x36")).to(this),this[uc("0x25")][uc("0x1b")](uc("0xd")).to(this)),n}render(){super[uc("0x3a")](),this._descriptionElement=this.element.querySelector(uc("0x10")),this[uc("0x1f")].innerHTML=this[uc("0xa")],this.on(uc("0x2e"),((t,e,n)=>{this._descriptionElement[uc("0x2d")]=n}))}[uc("0x2")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x21")]);return i[uc("0x4")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x2b")]({attributes:{class:n}}),i.on(uc("0x4a"),(()=>{this[uc("0x28")](o,this[uc("0x26")].id)})),i}[uc("0x52")](){return uc("0x33")===this[uc("0x26")][uc("0x24")][uc("0x48")].source?Yo(this[uc("0x21")],uc("0x23")):Yo(this[uc("0x21")],uc("0x22"))}[uc("0x1a")](){return this[uc("0x26")][uc("0x2c")]?uc("0x33")===this[uc("0x26")].attributes[uc("0x48")].source?Yo(this[uc("0x21")],uc("0x14"),this._model.creator.name):Yo(this[uc("0x21")],"EXTERNAL_AVATAR",this[uc("0x26")][uc("0x35")][uc("0x6")]):null}}function mc(t,e){let n="";return n+=t[uc("0x13")]("*")[uc("0x39")](((t,e)=>e%2!=0?uc("0x3c")+fc(t)+"</span>":fc(t))).join(""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+uc("0x4e")+e[uc("0x8")]+uc("0x11")),n}function fc(t){const e=document[uc("0x3f")](uc("0x12"));return e[uc("0x3d")]=t,e[uc("0x2d")]}const hc=["hasSuggestion","EditorAnnotations","registerAnnotation","toMany","commandName","get","descriptionParts","commentThread","getAllAdjacentSuggestions","button","bind","suggestionUnloaded","filter","trackChanges","_refreshActiveMarkers","refreshSelectedViews","CommentView","separator","_viewToController","pluginName","config","suggestionChanged","listenTo","isDirty","lowest","focus","arrowView","change:activeAnnotations","size","Discard all suggestions","isMultiRange","_disableComments","model","commands","isEnabled","previous","change:previous","TrackChangesUI","delete","getMarkers","type","_createUIButton","stopListening","activeAnnotations","CommentsRepository","_annotationViews","innerView","acceptAllSuggestions","SuggestionThreadView","push","add","Annotations","buttonView","actionView","locale","comments.maxCommentsWhenCollapsed","define","_updateController","acceptButton","comments.maxThreadTotalWeight","trackChanges.SuggestionThreadView","_initializeController","suggestion-","comments.maxCommentCharsWhenCollapsed","destroy","clear","remove","some","_handleSuggestionControllerDelayed","_handleControllerBuffer","execute","getFirstRange","isInContent","isOn","discardButton","TrackChangesEditing","getByInnerView","Accept all suggestions","editor","head","getDescriptions","view","mainView","has","value","length","addSourceCollector","_destroyController","plugins","source","from","discardAllSuggestions","discardSelectedSuggestions","set","_suggestionToController","trackChanges.disableComments","createCommentThreadController","getRanges","unbind","acceptSelectedSuggestions","CommentsUI","editing","values","getSuggestion","Discard all selected suggestions","componentFactory"];var pc,bc;pc=hc,bc=456,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get requires(){return[Va,r.Users,"CommentsRepository",Ec("0x13"),"EditorAnnotations"]}static get[Ec("0x5d")](){return Ec("0x5")}constructor(t){super(t),this[Ec("0x3e")]=new Map,this._viewToController=new Map,this[Ec("0xd")]=new Map,this[Ec("0x25")]=new Map;const e=this[Ec("0x2e")][Ec("0x5e")];e[Ec("0x18")](Ec("0x1c"),gc),e[Ec("0x18")](Ec("0x3f"),!1),this._disableComments=e[Ec("0x4f")](Ec("0x3f"))}[Ec("0x24")](t,e){0===this._handleControllerBuffer[Ec("0x66")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x25")]){const n=this[Ec("0x3e")][Ec("0x33")](t);n||e?n&&e&&this[Ec("0x37")](t):this[Ec("0x1d")](t)}this[Ec("0x2e")][Ec("0x38")][Ec("0x4f")](Ec("0x4b"))[Ec("0x59")](),this._refreshActiveMarkers(),this[Ec("0x25")][Ec("0x21")]()}),10),this[Ec("0x25")][Ec("0x3d")](t,e)}init(){const t=this[Ec("0x2e")],e=t.plugins[Ec("0x4f")]("TrackChangesEditing"),n=t[Ec("0x38")][Ec("0x4f")](Ec("0x13")),o=t[Ec("0x38")].get(Ec("0x4b")),s=t[Ec("0x38")].get(Ec("0xc"));t.ui[Ec("0x49")][Ec("0x12")](Ec("0x57"),(t=>this._createUIButton(t))),o[Ec("0x36")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x3a")](this[Ec("0x3e")])){const o=e[Ec("0x52")](),s=[];for(const t of o){if(!t[Ec("0x28")])continue;if(t[Ec("0x68")]){s.push(...t[Ec("0x41")]());continue}const e=t[Ec("0x27")]();if(s[Ec("0x35")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s[Ec("0x11")](e)}t[Ec("0x11")]([n.view,s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this[Ec("0x60")](e,Ec("0x4"),((t,n,o,s)=>{e[Ec("0x28")]&&(null==o?(this[Ec("0x19")](s[Ec("0x2f")]),this[Ec("0x24")](e,!1)):(this[Ec("0x19")](o[Ec("0x2f")]),this[Ec("0x24")](e,!0)))})),null===e[Ec("0x3")]?this[Ec("0x24")](e,!1):this._updateController(e.head)})),this.listenTo(e,Ec("0x55"),((t,e,n)=>{this[Ec("0xa")](e,Ec("0x4")),this._handleControllerBuffer[Ec("0x6")](e);const o=n?n[Ec("0x2f")]:e,s=this[Ec("0x3e")][Ec("0x4f")](o);null!==n&&this[Ec("0x19")](o),null===n&&s&&this._destroyController(e)})),this.listenTo(e,Ec("0x5f"),((t,e)=>{this[Ec("0x19")](e)})),this[Ec("0x60")](n,Ec("0x65"),(()=>{this[Ec("0x58")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x4a")](n))return;const s=e[Ec("0x47")](n);this[Ec("0x3e")][Ec("0x4f")](s)[Ec("0x31")].focus()}),{priority:Ec("0x62")})}[Ec("0x58")](){const t=this[Ec("0x2e")][Ec("0x38")][Ec("0x4f")]("Annotations"),e=this.editor[Ec("0x38")][Ec("0x4f")](Ec("0x2b")),n=Array.from(t[Ec("0xb")],(t=>t[Ec("0xe")]))[Ec("0x56")]((t=>this[Ec("0x5c")][Ec("0x33")](t))),o=[];for(const t of n){const e=this[Ec("0x5c")][Ec("0x4f")](t)[Ec("0x0")][Ec("0x52")]();o[Ec("0x11")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Ec("0x9")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x2e")][Ec("0x1")].get(Ec("0x57")),r=Yo(t,"Track changes");n.buttonView[Ec("0x3d")]({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("0x14")][Ec("0x54")](Ec("0x29")).to(o,Ec("0x34")),n[Ec("0x14")].on(Ec("0x26"),(()=>{o[Ec("0x26")](),this[Ec("0x2e")][Ec("0x45")][Ec("0x31")][Ec("0x63")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x57")}},{type:Ec("0x5b")},{type:Ec("0x53"),model:{withText:!0,label:Yo(t,Ec("0x2d")),commandName:Ec("0xf")}},{type:Ec("0x53"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ec("0x43")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x67")),commandName:Ec("0x3b")}},{type:Ec("0x53"),model:{withText:!0,label:Yo(t,Ec("0x48")),commandName:Ec("0x3c")}}];for(const t of x){let e={type:Ec("0x5b")};if(t[Ec("0x0")]){const n=new s.Model(t[Ec("0x0")]),o=this[Ec("0x2e")].commands.get(n[Ec("0x4e")]);n[Ec("0x54")](Ec("0x29"),Ec("0x2")).to(o,"value",Ec("0x2")),e={type:t.type,model:n}}i[Ec("0x12")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x0")])).map((t=>this[Ec("0x2e")][Ec("0x1")][Ec("0x4f")](t[Ec("0x0")][Ec("0x4e")]))),c=n[Ec("0x14")];return c[Ec("0x15")].unbind("isEnabled"),c[Ec("0x64")][Ec("0x42")](Ec("0x2")),c[Ec("0x15")][Ec("0x54")]("isEnabled").to(o,Ec("0x2")),c[Ec("0x64")].bind("isEnabled")[Ec("0x4d")](a,Ec("0x2"),((...t)=>t[Ec("0x23")]((t=>t)))),n.on(Ec("0x26"),(t=>{this[Ec("0x2e")][Ec("0x26")](t[Ec("0x39")].commandName),this[Ec("0x2e")][Ec("0x45")][Ec("0x31")].focus()})),n}[Ec("0x1d")](t){const e=this.editor,n=e[Ec("0x5e")],o=e.plugins[Ec("0x4f")]("Annotations"),s=e[Ec("0x38")][Ec("0x4f")](Ec("0xc")),i=e.plugins[Ec("0x4f")](Ec("0x4b")),x=e[Ec("0x38")][Ec("0x4f")](r.Users).me,a=n[Ec("0x4f")](Ec("0x57"))[Ec("0x10")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x38")].get(Ec("0x44"));let d,u;this[Ec("0xd")][Ec("0x33")](t.id)?(u=this[Ec("0xd")][Ec("0x4f")](t.id),d=u.mainView):(d=new a(e[Ec("0x16")],t,x,{disableComments:this[Ec("0x69")],editorConfig:n[Ec("0x4f")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x4f")](Ec("0x17")),maxThreadTotalWeight:n[Ec("0x4f")](Ec("0x1b")),maxCommentCharsWhenCollapsed:n[Ec("0x4f")](Ec("0x1f")),formatDateTime:(0,r.getDateTimeFormatter)(n.get("locale")),CommentView:n[Ec("0x4f")]("comments")[Ec("0x5a")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x1a")].on(Ec("0x26"),(()=>{e[Ec("0x45")][Ec("0x31")][Ec("0x63")]()})),d[Ec("0x2a")].on(Ec("0x26"),(()=>{e.editing[Ec("0x31")][Ec("0x63")]()})),u=o.createAnnotationView(this[Ec("0x2e")].locale,d),u[Ec("0x54")](Ec("0x61")).to(d,Ec("0x61")),u[Ec("0x54")]("length").to(d),u[Ec("0x54")](Ec("0x8")).to(d,"type",(t=>Ec("0x1e")+t)),this[Ec("0xd")].set(t.id,u));const g=s[Ec("0x40")](t[Ec("0x51")],d),m=new oc(e,t,d,g),f=t[Ec("0x52")]()[Ec("0x56")]((t=>t.isInContent));d[Ec("0x50")]=e.plugins[Ec("0x4f")]("TrackChangesEditing")._descriptionFactory[Ec("0x30")](f),this._suggestionToController[Ec("0x3d")](t,m),this[Ec("0x5c")].set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x52")]()[Ec("0x56")]((t=>t.isInContent));for(const t of o)n[Ec("0x11")](...t[Ec("0x7")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x45")],n)},type:()=>Ec("0x1e")+m[Ec("0x31")][Ec("0x8")]});s._bindAnnotationToEditors(d,h),o[Ec("0x12")](h),i[Ec("0x4c")](h)}_destroyController(t){const e=this[Ec("0x2e")][Ec("0x38")][Ec("0x4f")](Ec("0x13")),n=this[Ec("0x3e")][Ec("0x4f")](t),o=n.view,s=e[Ec("0x2c")](o);s&&e[Ec("0x22")](s),this[Ec("0x3e")][Ec("0x6")](t),this._viewToController[Ec("0x6")](o),n[Ec("0x20")]()}[Ec("0x19")](t){if(!t[Ec("0x28")]||!this[Ec("0x3e")].has(t))return;const e=this[Ec("0x2e")][Ec("0x38")][Ec("0x4f")](Ec("0x2b")),n=this[Ec("0x3e")][Ec("0x4f")](t),o=t[Ec("0x52")]();n[Ec("0x31")].descriptionParts=e._descriptionFactory[Ec("0x30")](o)}[Ec("0x20")](){for(const t of this[Ec("0x3e")].keys())this[Ec("0x37")](t);for(const t of this[Ec("0xd")][Ec("0x46")]())t[Ec("0x32")].destroy();super[Ec("0x20")]()}}var Tc,Cc,yc=["requires","pluginName","adapter","editor","getSuggestion","get","plugins","getSuggestions","TrackChanges","Comments"];Tc=yc,Cc=290,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("0x0")](){return[Va,_c,kc("0x9")]}static get[kc("0x1")](){return kc("0x8")}set[kc("0x2")](t){this[kc("0x3")].plugins.get(Va)[kc("0x2")]=t}get[kc("0x2")](){return this[kc("0x3")][kc("0x6")][kc("0x5")](Va).adapter}addSuggestion(t){return this.editor[kc("0x6")][kc("0x5")](Va).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x3")][kc("0x6")][kc("0x5")](Va)[kc("0x7")]({skipNotAttached:t,toJSON:e})}[kc("0x4")](t){return this[kc("0x3")][kc("0x6")][kc("0x5")](Va)[kc("0x4")](t)}}const vc=["getDataWithDiscardedSuggestions","data","getDataWithAcceptedSuggestions","useAnonymousUser","appendChild","end","document","editor","getRootsAttributes","Users","discardAllSuggestions","createElement","execute","map","div","plugins","create","reduce","result","TrackChangesDataGetter","model","get","config","getFullData","set","CommentsRepository","trackChangesData","getRootNames","getSuggestions","rootsAttributes","track-changes-data-invalid-editor-creator","_adapter","Pagination","trackChangesData.editorCreator","name","push","pluginName","users","addSuggestionData","editorCreator","TrackChangesEditing","init","define"];var Rc,Ic;Rc=vc,Ic=133,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=[Sc("0x1c")];class Nc extends t.Plugin{static get requires(){return[Va]}static get[Sc("0x20")](){return"TrackChangesData"}[Sc("0x25")](){const t=this.editor;if(t[Sc("0x12")][Sc("0x26")](Sc("0x1d"),(e=>{const n=t[Sc("0x10")][Sc("0x2")][Sc("0x17")]()[Sc("0xd")](((t,e)=>(t[e]="",t)),{});return t.constructor[Sc("0xc")](n,e)})),"function"!=typeof t.config[Sc("0x11")](Sc("0x16"))[Sc("0x23")])throw new e.CKEditorError(Sc("0x1a"))}[Sc("0x29")](t){return Oc(this[Sc("0x3")],!0,t)}[Sc("0x27")](t){return Oc(this[Sc("0x3")],!1,t)}}class Mc extends t.Plugin{static get[Sc("0x20")](){return Sc("0xf")}constructor(t){super(t),this[Sc("0xe")]=Sc("0x1")}[Sc("0x25")](){this.editor[Sc("0xb")][Sc("0x11")](Sc("0x15"))[Sc("0x1b")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Sc("0xb")][Sc("0x11")](Sc("0x24"))[Sc("0x1b")]=null}}function wc(t){return void 0!==t[Sc("0x4")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0xb")][Sc("0x1f")](Va,Mc),o[Sc("0x19")]=wc(t)?t.getRootsAttributes():void 0;const s=document.createDocumentFragment(),i=t[Sc("0x12")][Sc("0x11")](Sc("0x16")).editorCreator,x=await i(o,(()=>function(t){const e=document[Sc("0x7")](Sc("0xa"));return t[Sc("0x0")](e),e}(s)));!function(t,e){const n=t.model[Sc("0x2")][Sc("0x17")]()[Sc("0xd")](((e,n)=>(e[n]=t.data[Sc("0x11")]({rootName:n}),e)),{}),o=t[Sc("0xb")][Sc("0x11")](Sc("0x5"))[Sc("0x21")][Sc("0x9")]((t=>({id:t.id,name:t[Sc("0x1e")]}))),s=t[Sc("0xb")].get("TrackChangesEditing")[Sc("0x18")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Sc("0x11")]("Users"),i=e[Sc("0xb")].get(Sc("0x24"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r[Sc("0x2a")]();for(const t of s)i[Sc("0x22")](t);e[Sc("0x28")][Sc("0x14")](n)}(t,x),x[Sc("0x8")](e?"acceptAllSuggestions":Sc("0x6"));const a=wc(x)?x[Sc("0x13")](n):x[Sc("0x28")][Sc("0x11")](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=["_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","has","refresh","value","affectsData","execute","clearForceDisabled","editor","commands","_disableUnsupportedCommands","forceDisabled","isEnabled"];var c,l;c=a,l=438,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this.refresh(),this[u("0xb")]=!1}[u("0x0")](){this[u("0x9")]=!0}[u("0x3")](){this[u("0x1")]=!this.value,this[u("0x1")]?this[u("0x7")]():this[u("0xa")]()}[u("0x7")](){for(const t of this[u("0x5")].commands[u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x8")](u("0xc"))}[u("0xa")](){for(const t of this[u("0x5")][u("0x6")][u("0x6")]())t[u("0x2")]&&!this._enabledCommands[u("0xd")](t)&&t[u("0x4")](u("0xc"))}}const g=["getRanges","acceptSuggestion","TrackChangesEditing","editor","plugins","_suggestions","model","_isEnabledBasedOnSelection","canEditAt","isEnabled","execute","refresh"];var m,f;m=g,f=376,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0x7")](),this[h("0x3")]=!1}[h("0x7")](){this[h("0x5")]=!0}[h("0x6")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x8")]();this[h("0xb")][h("0x2")][h("0x4")](o)&&this.editor[h("0x0")].get(h("0xa"))[h("0x9")](n)}}const b=["isEnabled","editor","TrackChangesEditing","execute","getRanges","get","_suggestions","model","track-changes-discard-suggestion-not-found","refresh","_isEnabledBasedOnSelection","canEditAt","discardSuggestion"];var E,_;E=b,_=465,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this[T("0xc")](),this[T("0x0")]=!1}[T("0xc")](){this[T("0x3")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x8")](t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x4")][T("0xa")][T("0x1")](o)&&this[T("0x4")].plugins[T("0x8")](T("0x5"))[T("0x2")](n)}}const y=["start","length","createPositionAfter","change","schema","isArray","map","replace","getRange","isTouching","value","createPositionAt","isInContent","end","createRange"," [color ","isMultiRange","push","type","createPositionBefore","isObject","splice","getMarkers","from","deletion","isIntersecting"];var k,A;k=y,A=171,function(t){for(;--t;)k.push(k.shift())}(++A);const R=function(t,e){return y[t-=0]};function v(t){return t.sort(((t,e)=>R("0x9")==t[R("0x3")]&&R("0x9")!=e[R("0x3")]?-1:R("0x9")!=t[R("0x3")]&&R("0x9")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[R("0xf")];for(;o<t[R("0xc")];){const i=t[o],x=t[o+1];n||(n=e[R("0x4")](i)),S(e,i,x)||(s[R("0x2")](e[R("0x19")](n,r[R("0x5")](i)?e[R("0xd")](i):e[R("0x16")](i,R("0x18")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[R("0xd")](e),s=t[R("0x4")](n);return o.isTouching(s)}function L(t,e,n){for(;n[R("0xc")];){const o=n[R("0x6")](0,100);t[R("0xe")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["canEditAt","values","_suggestions","_command","isEnabled","execute","_isEnabledBasedOnSelection","editor","model","refresh","isInContent","getRanges"];var M,w;M=N,w=404,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("0x7")]=e,this[O("0x6")]=n,this[O("0x1")](),this[O("0xa")]=!1}[O("0x1")](){const t=Array.from(this._suggestions[O("0x5")]()).some((t=>t[O("0x2")]));this[O("0x8")]=this[O("0x7")].isEnabled&&t}[O("0x9")](){const t=v(Array.from(this[O("0x6")][O("0x5")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0xb")][O("0x0")][O("0x4")](t))return}L(this.editor[O("0x0")],this[O("0x7")],t)}}const P=["_command","from","document","execute","isEnabled","selection","refresh","editor","model","values","getRanges","_suggestions","_selectedSuggestions","size"];var D,B;D=P,B=345,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x5")]=e,this[j("0x2")]=n,this._selectedSuggestions=new Set,this[j("0xb")](),this._isEnabledBasedOnSelection=!1}[j("0xb")](){const t=this[j("0xc")][j("0xd")][j("0x7")][j("0xa")],e=Array.from(this._suggestions[j("0x0")]());this._selectedSuggestions=function(t,e){const n=Array[R("0x8")](t.getRanges()),o=new Set;for(const s of e)if(s[R("0x17")])for(const e of n)for(const n of s[R("0x7")]()){const r=n[R("0x13")]();(e[R("0xa")](r)||t.isCollapsed&&!s[R("0x1")]&&s.next&&r[R("0x18")][R("0x14")](e[R("0xb")]))&&o.add(s)}return o}(t,e),this.isEnabled=this._command[j("0x9")]&&!!this[j("0x3")][j("0x4")]}[j("0x8")](){const t=v(Array[j("0x6")](this[j("0x3")]));for(const e of t){const t=e[j("0x1")]();if(!this[j("0xc")][j("0xd")].canEditAt(t))return}L(this.editor[j("0xd")],this[j("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,Rt=kt.hasOwnProperty,vt=RegExp("^"+At.call(Rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?vt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,ve=Re&&Re.exports===Ae&&et.process;const Ie=function(){try{var t=Re&&Re.require&&Re.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var 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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),Rn=Tt(hn),vn=gt;(gn&&vn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&vn(new Nt)!=pn||mn&&vn(mn.resolve())!=bn||fn&&vn(new fn)!=En||hn&&vn(new hn)!=_n)&&(vn=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 Rn:return _n}return e});const In=vn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const 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]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Ro=function(t,e){return t.has(e)};const vo=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!Ro(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=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=Io;case"[object Set]":var a=1&o;if(x||(x=So),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=vo(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?vo(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["push","getContainedElement","subType","start","removeAttribute","onAccept","getMarkerNames","getFirstRange","filter","add","commentThread","accept","_markerNames","decorate","onDiscard","nodeAfter","getMultiRangeId","onAttributesChange","getMarkers","attributes","from","_saved","getItems","author","delete","markers","size","_model","substr","getFirstMarker","isInContent","authoredAt","isIntersectingWithRange","next","@external","addMarkerName","getRanges","_onAttributesChange","head","previous","map","_onDiscard","addRange","removeMarker","createdAt","isExternal","get","hasComments","nodeBefore","getAllAdjacentSuggestions","change","getRange","type","removeMarkers","length","discard","creator","setAttribute","set","_onAccept"];var $o,Jo;$o=Xo,Jo=132,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("0x28")]=e.type,this[Qo("0x32")]=e.subType||null,this[Qo("0xb")]=e[Qo("0xb")],this[Qo("0x2c")]=e[Qo("0x2c")]||e.author,this[Qo("0x21")]=Boolean(e.attributes&&e[Qo("0x7")][Qo("0x16")]),this.data=null,this[Qo("0xf")]=t,this._onAccept=e[Qo("0x35")],this[Qo("0x1d")]=e[Qo("0x2")],this[Qo("0x19")]=e[Qo("0x5")],this._markerNames=new Set,this[Qo("0x20")]=null,this[Qo("0x2e")](Qo("0x13"),null),this.set("attributes",e.attributes||{}),this[Qo("0x2e")](Qo("0x1b"),null),this[Qo("0x2e")](Qo("0x15"),null),this[Qo("0x2e")]("commentThread",null),this.set(Qo("0x9"),!1),this[Qo("0x1")]("accept"),this[Qo("0x1")](Qo("0x2b"))}get[Qo("0x1a")](){let t=this;for(;t[Qo("0x1b")];)t=t[Qo("0x1b")];return t}get[Qo("0x23")](){return!!this[Qo("0x3a")]&&this[Qo("0x3a")][Qo("0x2a")]>0}get isMultiRange(){return 0!=this[Qo("0x0")][Qo("0xe")]&&6==Array[Qo("0x8")](this[Qo("0x0")])[0].split(":")[Qo("0x2a")]}get[Qo("0x12")](){return null!==this.getFirstMarker()}[Qo("0x17")](t){this[Qo("0x0")][Qo("0x39")](t)}[Qo("0x36")](){return Array[Qo("0x8")](this[Qo("0x0")])}[Qo("0x6")](){return this[Qo("0x36")]()[Qo("0x1c")]((t=>this[Qo("0xf")][Qo("0xd")][Qo("0x22")](t)))[Qo("0x38")]((t=>t))}[Qo("0x11")](){return this[Qo("0x6")]()[0]||null}[Qo("0x29")](){this[Qo("0xf")].change((t=>{for(const e of this[Qo("0x6")]())t[Qo("0x1f")](e)})),this[Qo("0x0")].clear()}[Qo("0x1f")](t){this._model[Qo("0x26")]((e=>{e.removeMarker(t)})),this[Qo("0x0")][Qo("0xc")](t)}[Qo("0x1e")](t){const e="suggestion:"+this[Qo("0x28")]+":"+this[Qo("0x32")]+":"+this.id+":"+this[Qo("0x2c")].id+":"+Zo[Qo("0x4")]();this.addMarkerName(e),this[Qo("0xf")][Qo("0x26")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x14")](t){for(const e of this[Qo("0x18")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x18")](){return this[Qo("0x6")]().map((t=>t[Qo("0x27")]()))}[Qo("0xa")](){return this[Qo("0x18")]().reduce(((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x37")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x27")]())||null}[Qo("0x31")](){const t=this.getRanges();if(1!=t[Qo("0x2a")])return null;const e=t[0],n=e[Qo("0x33")][Qo("0x3")],o=e.end[Qo("0x24")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x3b")](){this[Qo("0x2f")](this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x2b")](){this._onDiscard(this[Qo("0x18")](),this.data,this.attributes),this[Qo("0x29")]()}[Qo("0x25")](){const t=[];let e=this[Qo("0x1a")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x15")];return t}[Qo("0x2d")](t,e){const n=eo(this[Qo("0x7")]);_o(n,t,e),Go(n,this[Qo("0x7")])||(this.attributes=n,this[Qo("0x19")](n))}[Qo("0x34")](t){const e=eo(this[Qo("0x7")]);qo(e,t),Go(e,this[Qo("0x7")])||(this[Qo("0x7")]=e,this[Qo("0x19")](this.attributes))}toJSON(){return{id:this.id,type:this.subType?this[Qo("0x28")]+":"+this.subType:this[Qo("0x28")],authorId:this[Qo("0x2c")].id,createdAt:this.createdAt,hasComments:this[Qo("0x23")],data:this.data,attributes:this.attributes}}static[Qo("0x4")](){return(0,e.uid)()[Qo("0x10")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["getDescriptions","_customCallbacks","elementStart","Container","removeEmptyContainer","Object","_itemLabelsCallbacks","pop","end","removeObject","_itemLabels","addContainer","isEqual","$textProxy","remove","insertion","*Remove:* %0","registerElementLabel","get","getItemLabel","getFirstRange","softBreak","isEmpty","ELEMENT_SPACE","addObject","skip","_schema","quantity","replace","checkChild","type","text","$text","name","isObject","push","addEmptyContainer","indexOf","data","_addDescriptionItems","EmptyContainer","length","function","nextSibling","elementEnd","item","add","_locale","previousSibling","element","REPLACE_TEXT","_resolveDescriptionItems","*Merge:* %0","$1 $2","label","registerDescriptionCallback","set","*Insert:* %0","deletion"];var es,ns;es=ts,ns=434,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("0x27")]=[],this[os("0x30")]=new Map,this[os("0x2c")]=[],this[os("0x5")]=t,this[os("0x1a")]=e}[os("0x26")](t){const e=[];for(let n=0;n<t[os("0x14")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this[os("0x27")]){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x3a")]()[os("0x2e")][os("0x32")](s.getFirstRange().start)){const t=e[e.length-1],n=os("0x35")==o[os("0x9")]?os("0x19"):os("0x34");t&&os("0xa")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x22")](t){this._customCallbacks.push(t)}[os("0x37")](t,n,o=e.priorities.normal){os("0x15")==typeof t?(0,e.insertToPriorityArray)(this[os("0x2c")],{matchingCallback:t,label:n,priority:o}):this[os("0x30")][os("0x23")](t,n)}[os("0x39")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x21")];break}return n||(n=this._itemLabels[os("0x38")](t[os("0xc")])),n?n(e):1!==e?e+" "+t[os("0xc")]+"s":""+t[os("0xc")]}[os("0x12")](t,e){const n=e[os("0x3a")]().getWalker(),o=os("0x35")==e.type?os("0x19"):os("0x34");for(const e of n){const s=e[os("0x18")],r=t[t[os("0x14")]-1];if(s.is(os("0x33")))r&&r[os("0x9")][os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),r&&os("0xa")==r[os("0x9")]?r[o]+=s.data:t[os("0xe")]({type:"text",add:os("0x19")==o?s.data:"",remove:os("0x34")==o?s[os("0x11")]:""});else if(this[os("0x5")][os("0xd")](s)){const i=s;if(r&&r.type[os("0x10")](os("0x29"))>-1&&t[os("0x2d")](),os("0x17")==e[os("0x9")])continue;r&&r.type==o+os("0x2b")&&r[os("0x1c")].name==i.name?r[os("0x6")]++:t[os("0xe")]({type:o+"Object",element:i,quantity:1}),n[os("0x4")]((t=>!(os("0x17")==t[os("0x9")]&&t[os("0x18")]==s)))}else if(this._schema[os("0x8")](s,os("0xb"))||s.is(os("0x1c"),os("0x0"))){const n=s;if(os("0x19")==o&&os("0x28")==e[os("0x9")]||os("0x34")==o&&os("0x17")==e.type)continue;if(r&&-1==r[os("0x9")].indexOf("Container")){os("0xa")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x19")==o?n[os("0x16")]&&!this[os("0x5")][os("0xd")](n[os("0x16")])?n[os("0x16")]:null:n[os("0x1b")]&&!this[os("0x5")][os("0xd")](n[os("0x1b")])?n[os("0x1b")]:null,n[os("0x1")]||i&&i.isEmpty){const e=i&&i[os("0x1")]?i:n;r&&r[os("0x9")]==o+os("0x13")&&r[os("0x1c")][os("0xc")]==e.name?r[os("0x6")]++:t[os("0xe")]({type:o+os("0x13"),element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[os("0x1e")](t){const e=this[os("0x1a")],n=[];for(const o of t){switch(o[os("0x9")]){case"text":if(o.add=o[os("0x19")][os("0x7")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),o[os("0x34")]=o.remove.replace(/(\S)\u000A+(\S)/g,os("0x20"))[os("0x7")](/\u000A/g,""),""!=o[os("0x19")]&&""!=o[os("0x34")]){n[os("0xe")]({type:os("0x7"),content:Yo(e,os("0x1d"),['"'+o.remove+'"','"'+o[os("0x19")]+'"'])});continue}if(null!=o[os("0x19")].match(/^ +$/)){n.push({type:os("0x35"),content:Yo(e,os("0x24"),Yo(e,os("0x2"),o[os("0x19")][os("0x14")]))});continue}if(null!=o.remove.match(/^ +$/)){n.push({type:os("0x25"),content:Yo(e,os("0x36"),Yo(e,os("0x2"),o[os("0x34")][os("0x14")]))});continue}if(""!=o[os("0x19")]){n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),'"'+o[os("0x19")]+'"')});continue}n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x36"),'"'+o[os("0x34")]+'"')});continue;case os("0xf"):case os("0x3"):n[os("0xe")]({type:os("0x35"),content:Yo(e,os("0x24"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue;case os("0x2a"):case os("0x2f"):n[os("0xe")]({type:"deletion",content:Yo(e,os("0x36"),this.getItemLabel(o[os("0x1c")],o.quantity))});continue;case os("0x31"):n[os("0xe")]({type:os("0x35"),content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x1c")],o[os("0x6")]))});continue;case"removeContainer":n[os("0xe")]({type:os("0x25"),content:Yo(e,os("0x1f"),this[os("0x39")](o[os("0x1c")],o[os("0x6")]))});continue}n[os("0xe")](o)}return n}}const rs=["justify","TrackChangesEditing","center","getSelectedBlocks","getAttribute","locale","ltr","left","value","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","has","commandName","plugins","enableCommand","change","filter","alignment","*Format:* %0","editor","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","from","_descriptionFactory","right","AlignmentEditing","markBlockFormat","model","selection","format"];var is,xs;is=rs,xs=457,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x6")][as("0x4")](as("0x12")))return;const n=t[as("0x6")].get(as("0x18"));n[as("0x7")](as("0xa"),((e,o={})=>{let s=o[as("0x1")];o[as("0x1")]||(s=as("0x1d")===t[as("0x1c")].contentLanguageDirection?"left":as("0x11"));const r=Array[as("0xf")](this[as("0xc")][as("0x14")].document[as("0x15")][as("0x1a")]())[as("0x9")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0xa"))||null;return e.checkAttribute(t,as("0xa"))&&n!=o}(t,this.editor[as("0x14")].schema,s)));t[as("0x14")][as("0x8")]((()=>{for(const t of r)n[as("0x13")](t,{commandName:as("0xa"),commandParams:[{value:s}]})}))})),n[as("0x10")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"alignment"==n[as("0x5")]){const t=n.commandParams[0].value;return{type:as("0x16"),content:Yo(e,as("0xb"),function(t){switch(t){case as("0x0"):return Yo(e,as("0x2"));case as("0x11"):return Yo(e,as("0x3"));case as("0x19"):return Yo(e,as("0xd"));case as("0x17"):return Yo(e,as("0xe"))}}(t))}}}))}}const ls=["start","toViewElement","TrackChangesEditing","getCustomProperty","consumable","previousPosition","model","type","listItem","span","hasAttribute","plugins","markerRange","isLimit","toViewPosition","writer","getItems","push","createRangeOn","bindElementToMarker","get","elementEnd","mapper","isBlock","markerName","addHighlight","getWalker","item","listIndent","nextSibling","insert","addClass","element"];var us,ds;us=ls,ds=403,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0x3")](t)&&o[gs("0xa")](n[gs("0xb")](s));return o}function fs(t){const e=[];if(t.is(gs("0x19"),gs("0x1"))){let n=t[gs("0x16")];for(;n&&n.is(gs("0x19"),gs("0x1"))&&n.getAttribute(gs("0x15"))>0;)e[gs("0xa")](n),n=n[gs("0x16")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0xd")](gs("0x1c"));return(s,r,i)=>{if(!i[gs("0x1e")].test(r.markerRange,s.name))return;const x=r.markerRange[gs("0x13")](),a=r[gs("0x5")][gs("0x1a")],c=t[gs("0x20")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x14")];d=d||c.isContent(e);const n=i[gs("0xf")][gs("0x1b")](e);if(n&&n[gs("0x1d")](gs("0x12")))return;gs("0xe")==t[gs("0x0")]&&c[gs("0x10")](e)&&!c[gs("0x6")](e)&&(e[gs("0x16")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[gs("0x1f")]),g=!0):u=u||t[gs("0x1f")])}function m(t){const s=i[gs("0x8")].createUIElement(gs("0x2"),{class:"ck-suggestion-marker-"+e}),x=i[gs("0xf")][gs("0x7")](t);n&&o.activeMarkers.includes(r.markerName)&&i[gs("0x8")][gs("0x18")]("ck-suggestion-marker--active",s),i[gs("0x8")][gs("0x17")](x,s),i[gs("0xf")][gs("0xc")](s,r[gs("0x11")])}d||g||!u||m(u)}}const ps=["getRanges","_descriptionFactory","locale","FORMAT_BOLD","UnderlineEditing","commandName","*Format:* %0","toLowerCase","FORMAT_UNDERLINE","selection","code","has","SubscriptEditing","subscript","forceValue","*Remove format:* %0","from","model","strikethrough","document","plugins","FORMAT_SUPERSCRIPT","afterInit","registerDescriptionCallback","format","TrackChangesEditing","FORMAT_STRIKETHROUGH","CodeEditing","BoldEditing","get","change","markInlineFormat","editor","SuperscriptEditing","StrikethroughEditing","value","enableCommand","italic","superscript"];var bs,Es;bs=ps,Es=358,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x15"),"ItalicEditing",_s("0x24"),_s("0x14"),_s("0x1b"),_s("0x5"),_s("0x1a")];class Cs extends t.Plugin{[_s("0xf")](){const t=this[_s("0x19")],e=t[_s("0xa")],n=t.plugins[_s("0x16")](_s("0x12")),o=t[_s("0x22")];for(const o of Ts){if(!t[_s("0xd")][_s("0x4")](o))continue;const s=o.slice(0,-7)[_s("0x0")](),r=t.commands[_s("0x16")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0xc")][_s("0x2")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x7")]?o[_s("0x7")]:!r[_s("0x1c")];e[_s("0x17")]((()=>{const t=Array[_s("0x9")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x18")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x21")][_s("0x10")]((n=>{const{data:s}=n;if(s&&s[_s("0x25")]===t)return s.commandParams[0][_s("0x7")]?{type:"format",content:Yo(o,_s("0x26"),e)}:{type:_s("0x11"),content:Yo(o,_s("0x8"),e)}}))}s("bold",Yo(o,_s("0x23"))),s(_s("0x1e"),Yo(o,"FORMAT_ITALIC")),s("underline",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,"FORMAT_CODE")),s(_s("0xb"),Yo(o,_s("0x13"))),s(_s("0x6"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0x1f"),Yo(o,_s("0xe")))}}const ys=["blockQuote","locale","document","schema","commands","registerDescriptionCallback","getSelectedBlocks","afterInit","editor","filter","plugins","model","selection","parent","forceValue","$root","_descriptionFactory","ELEMENT_BLOCK_QUOTE","from","TrackChangesEditing","checkChild","commandParams","markBlockFormat","BlockQuoteEditing","get","value","enableCommand","commandName","*Remove format:* %0"];var ks,As;ks=ys,As=290,function(t){for(;--t;)ks.push(ks.shift())}(++As);const Rs=function(t,e){return ys[t-=0]};class vs extends t.Plugin{[Rs("0x7")](){const t=this.editor,e=t[Rs("0x1")];if(!t[Rs("0xa")].has(Rs("0x17")))return;const n=t[Rs("0xa")][Rs("0x18")](Rs("0x13")),o=this[Rs("0x8")][Rs("0x4")][Rs("0x18")](Rs("0x0"));n[Rs("0x1a")]("blockQuote",((e,s={})=>{const r=this[Rs("0x8")][Rs("0xb")][Rs("0x2")][Rs("0xc")],i=s&&void 0!==s[Rs("0xe")]?s[Rs("0xe")]:!o[Rs("0x19")];let x=[];if(i){const e=Array[Rs("0x12")](r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,Rs("0x0")),o=e[Rs("0x14")]([Rs("0xf"),Rs("0x0")],t);return n&&o}(t,this[Rs("0x8")][Rs("0xb")][Rs("0x3")])));x=I(e,t[Rs("0xb")])}else{const e=Array.from(r[Rs("0x6")]())[Rs("0x9")]((t=>Is(t)));x=I(e,t[Rs("0xb")])}t.model.change((()=>{for(const t of x)n[Rs("0x16")](t,{commandName:Rs("0x0"),commandParams:[{forceValue:i}]})}))})),n[Rs("0x10")][Rs("0x5")]((t=>{const{data:n}=t;if(n&&Rs("0x0")==n[Rs("0x1b")]){const t=Yo(e,Rs("0x11"));return n[Rs("0x15")][0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,Rs("0x1c"),t)}}}))}}function Is(t){return Rs("0x0")==t[Rs("0xd")].name}const Ss=["get","commands","enableCommand","ckbox"];var Ls,Ns;Ls=Ss,Ns=460,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x1")][Ms("0x0")]("ckbox")&&t.plugins[Ms("0x0")]("TrackChangesEditing")[Ms("0x2")](Ms("0x3"))}}const Os=["formatBlock","value","parent","config","ELEMENT_CODE_BLOCK","editor","change","label","language","_descriptionFactory","isLimit","document","has","registerDescriptionCallback","CodeBlock","getSelectedBlocks","TrackChangesEditing","afterInit","get","indentCodeBlock","enableCommand","model","name","outdentCodeBlock","selection","codeBlock","format","find","commandName","commandParams","forceValue","*Remove format:* %0","from","filter","plugins","languages"];var Fs,Ps;Fs=Os,Ps=242,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1b")](){const t=this[Ds("0xf")];if(!t[Ds("0x8")][Ds("0x16")](Ds("0x18")))return;const e=t[Ds("0x8")][Ds("0x1c")](Ds("0x1a")),n=t.locale,o=t[Ds("0xd")][Ds("0x1c")](Ds("0x23"))[Ds("0x9")],s=t.commands[Ds("0x1c")](Ds("0x23"));e[Ds("0x1e")](Ds("0x1d")),e[Ds("0x1e")](Ds("0x21")),e[Ds("0x1e")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1f")],x=t[Ds("0x1f")][Ds("0x15")][Ds("0x22")],a=r&&void 0!==r.forceValue?r[Ds("0x4")]:!s[Ds("0xb")];let c;r.language||(r[Ds("0x12")]=o[0][Ds("0x12")]),c=a?Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>{return js(t)||(e=t,n=i.schema,!e.is("rootElement")&&!n[Ds("0x14")](e)&&n.checkChild(e[Ds("0xc")],Ds("0x23")));var e,n})):Array[Ds("0x6")](x[Ds("0x19")]())[Ds("0x7")]((t=>js(t)));const l=I(c,i);i[Ds("0x10")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x23"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x23"),(t=>Yo(n,Ds("0xe"),t))),e._descriptionFactory[Ds("0x17")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xa")==s&&r&&Ds("0x23")==r[Ds("0x2")]){const t=r[Ds("0x3")][0][Ds("0x12")],s=e(o[Ds("0x1")]((e=>e[Ds("0x12")]===t))[Ds("0x11")]);return r[Ds("0x3")][0][Ds("0x4")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Ds("0xe"),1)+" ("+s+")")}:{type:Ds("0x0"),content:Yo(n,Ds("0x5"),Yo(n,Ds("0xe"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x20")]}const Us=["has","get","plugins","addCommentThread","CommentsEditing","enableCommand","editor"];var Gs,Hs;Gs=Us,Hs=471,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x4")];t.plugins[zs("0x5")](zs("0x2"))&&t[zs("0x0")][zs("0x6")]("TrackChangesEditing")[zs("0x3")](zs("0x1"))}}var Vs=n(181);const Ks=["unit","init","document","enableCommand","$graveyard","data","writer","fromRange","root","modifySelection","remove","rootName","TrackChangesEditing","commands","start","deleteForward","markerNameToElements","markerName","mapper","addMarker:suggestion:deletion","isCollapsed","setSelection","buffer","forward","removeMarker:suggestion:deletion","bind","createRange","showSuggestionHighlights","model","end","editor","high","merge","requires","detach","downcastDispatcher","batch","selection"];var qs,Xs;qs=Ks,Xs=489,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("0x0")](){return[Vs.Delete]}[$s("0x6")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x11"));e[$s("0x8")]("delete");const n=t[$s("0x12")].get($s("0x14"));e[$s("0x8")]("deleteForward",((e,o={})=>{const s=t[$s("0x21")].createSelection(t[$s("0x21")][$s("0x7")][$s("0x4")]);s[$s("0x19")]&&t[$s("0x21")][$s("0xe")](s,{direction:$s("0x1c"),unit:o[$s("0x5")]});const r=s.getFirstRange(),x=i.LiveRange[$s("0xc")](r);let a;e(o),a=$s("0x9")==x[$s("0xd")][$s("0x10")]?t[$s("0x21")].createRange(r[$s("0x13")]):t[$s("0x21")].createRange(x[$s("0x13")],x[$s("0x22")]),x[$s("0x1")](),t[$s("0x21")].enqueueChange(n[$s("0x1b")][$s("0x3")],(t=>{n.buffer.lock(),t[$s("0x1a")](t[$s("0x1f")](a[$s("0x22")])),n[$s("0x1b")].unlock()}))})),t.editing[$s("0x2")].on("addMarker:suggestion:deletion",hs(t,$s("0x25")),{priority:$s("0x24")}),t[$s("0xa")][$s("0x2")].on($s("0x18"),((e,n,o)=>{o.options[$s("0x20")]&&hs(t,$s("0x25"),{showActiveMarker:!1})[$s("0x1e")](this)(e,n,o)}),{priority:"high"}),t.editing[$s("0x2")].on($s("0x1d"),((t,e,n)=>{const o=n[$s("0x17")][$s("0x15")](e[$s("0x16")]);if(o)for(const t of o)t.is("uiElement")&&(n[$s("0x17")].unbindElementFromMarkerName(t,e[$s("0x16")]),n[$s("0xb")][$s("0xf")](t))}),{priority:"high"})}}const Qs=["execute","createPositionAt","isFirstBlockOfListItem","plugins","documentList","forceValue","outdentList","getAttribute","document","ELEMENT_BULLETED_LIST","ELEMENT_LIST_ITEM","*Change to:* %0","indentList","value","splitListItemBefore","has","commands","add","listItemId","deletion","listIndent","model","ELEMENT_NUMBERED_LIST","createRange","numberedList","getFirstRange","commandName","formatBlock","_LIST","*Merge:* %0","mergeListItemBackward","*Format:* insert into %0","setSelection","end","next","accept","registerDescriptionCallback","change","start","nodeAfter","multipleBlocks","DocumentListEditing","selection","from","listType","expandListBlocksToCompleteList","fromRange","markBlockFormat","_suggestionFactory","afterInit","schema","commandParams","toUpperCase","previousSibling","detach","get","splitListItemAfter","push","DocumentListUtils","*Format:* remove from %0","getSelectedBlocks","bulletedList","isObject","enableCommand","markMultiRangeBlockFormat","before","registerCustomCallback","containsItem","editor","after","format","*Outdent:* %0","mergeListItemForward","nextSibling","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=471,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1c")](){const t=this[tr("0x2f")];if(!t.plugins[tr("0x45")](tr("0x14")))return;const e=t.locale,n=t.plugins[tr("0x22")]("TrackChangesEditing"),o=t[tr("0x39")][tr("0x22")](tr("0x25"));function s(e){return()=>{const s=t[tr("0x46")][tr("0x22")](e);let r=Array[tr("0x16")](t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]());if(a(e)){r=o[tr("0x18")](r);const t=[];for(const e of r)o[tr("0x38")](e)&&t.push(e);r=t}t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x2b")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x43")]}],formatGroupId:"listType"},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x16")](t);const n=e.findIndex((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x0")][tr("0x3e")].selection[tr("0x27")]()),s=o[o.length-1],r=t[tr("0x0")][tr("0x1d")][tr("0x29")](s)?tr("0x30"):tr("0xc"),i=t.model.createRange(t[tr("0x0")][tr("0x37")](o[0],"before"),t[tr("0x0")][tr("0x37")](s,r));t[tr("0x0")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x34")];for(;t&&t.getAttribute("listIndent")>n[tr("0x3d")](tr("0x4a"));)e[tr("0x47")](t),t=t[tr("0x34")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x0")][tr("0x3e")][tr("0x15")][tr("0x27")]()[tr("0xd")]()[tr("0x43")],s=t[tr("0x0")][tr("0x37")](o,tr("0x2c")),r=t[tr("0x0")].createPositionAt(o,0),i=t.model[tr("0x2")](s,r);t[tr("0x0")][tr("0x10")]((()=>{n[tr("0x1a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x17")})}))}}function a(e){const n=t[tr("0x46")][tr("0x22")](tr("0x28"))[tr("0x43")],o=t.commands[tr("0x22")]("numberedList")[tr("0x43")];return tr("0x3")===e?n:o}n.enableCommand(tr("0x3"),s(tr("0x3"))),n[tr("0x2a")](tr("0x28"),s(tr("0x28"))),n.enableCommand("indentList",r(tr("0x42"))),n[tr("0x2a")](tr("0x3c"),r(tr("0x3c"))),n[tr("0x2a")](tr("0x23"),x("splitListItemAfter")),n[tr("0x2a")](tr("0x44"),x("splitListItemBefore")),n[tr("0x35")].registerElementLabel((function(e){const n=!t[tr("0x0")].schema[tr("0x29")](e),o=e[tr("0x20")],s=e[tr("0x34")],r=e[tr("0x3d")]("listItemId"),i=!o||o[tr("0x3d")](tr("0x48"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x40"),t))),n._descriptionFactory[tr("0xf")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x5")]){case tr("0x28"):r=n[tr("0x1e")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x26"),i&&(o=tr("0x41")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x3f")))};break;case tr("0x3"):r=n[tr("0x1e")][0][tr("0x3b")],i=a(n[tr("0x5")]),o=r?tr("0xa"):"*Format:* remove from %0",i&&(o=tr("0x41")),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x1")))};break;case tr("0x42"):o="*Indent:* %0",s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x40")))};break;case tr("0x3c"):o=function(t){const e=t[tr("0x4")]();let n=e[tr("0x11")][tr("0x12")];for(;n&&e[tr("0x2e")](n);){if(n[tr("0x3d")]("listIndent")>0)return!1;n=n[tr("0x34")]}return!0}(t)?Yo(e,tr("0x26"),Yo(e,"ELEMENT_"+t.getFirstRange()[tr("0x11")][tr("0x12")][tr("0x3d")](tr("0x17"))[tr("0x1f")]()+tr("0x7"))):Yo(e,tr("0x32"),Yo(e,tr("0x40"))),s={type:tr("0x31"),content:o};break;case tr("0x9"):case tr("0x33"):!1===n[tr("0x13")]&&(o=tr("0x8"),s={type:tr("0x49"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x1b")][tr("0x2d")](tr("0x6"),tr("0x3a"),tr("0xe"),(function(e,n){const o=[];for(let n of e)n[tr("0x11")][tr("0x12")]===n[tr("0xc")].parent&&(n=t[tr("0x0")].createRange(t[tr("0x0")][tr("0x37")](n[tr("0x11")][tr("0x12")],0))),o[tr("0x24")](n);t[tr("0x0")][tr("0x10")]((e=>{const s=t.model[tr("0x3e")][tr("0x15")],r=Array[tr("0x16")](s.getRanges()).map((t=>i.LiveRange[tr("0x19")](t)));e[tr("0xb")](o),t[tr("0x46")][tr("0x22")](n[tr("0x5")]).refresh(),n[tr("0x1e")][tr("0x24")]({forceDefaultExecution:!0}),t[tr("0x36")](n[tr("0x5")],...n[tr("0x1e")]),e[tr("0xb")](r);for(const t of r)t[tr("0x21")]()}))}))}}var nr=n(331);const or=["enter","requires","markerName","removeMarker:suggestion:insertion","fire","showSuggestionHighlights","writer","remove","editing","markInsertion","detach","bind","options","split","end","editor","high","enableCommand","nextSibling","hasClass","fromRange","addMarker:suggestion:insertion","markerNameToElements","get","model","setSelection","afterExecute","ck-suggestion-marker-split","getFirstRange","init","createRange","data","createPositionAt","downcastDispatcher","mapper","unbindElementFromMarkerName","selection","parent"];var sr,rr;sr=or,rr=296,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("0x9")](){return[nr.Enter]}[ir("0x25")](){const t=this[ir("0x17")],e=t.plugins[ir("0x1f")]("TrackChangesEditing"),n=t.commands[ir("0x1f")](ir("0x8"));e[ir("0x19")](ir("0x8"),(()=>{t[ir("0x20")].change((o=>{const s=t[ir("0x20")].document[ir("0x6")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x1c")](s[ir("0x24")]());if(n.enterBlock(o)){const n=t[ir("0x20")][ir("0x2")](r[ir("0x7")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0x11")](s)}else o[ir("0x21")](o[ir("0x0")](x[ir("0x16")]));x[ir("0x12")](),n[ir("0xc")](ir("0x22"),{writer:o})}))})),t[ir("0x10")][ir("0x3")].on(ir("0x1d"),hs(t,ir("0x15")),{priority:ir("0x18")}),t[ir("0x10")][ir("0x3")].on(ir("0xb"),((t,e,n)=>{const o=n.mapper[ir("0x1e")](e.markerName);if(o)for(const t of o)t[ir("0x1b")](ir("0x23"))&&(n[ir("0x4")][ir("0x5")](t,e[ir("0xa")]),n[ir("0xe")][ir("0xf")](t))}),{priority:ir("0x18")}),t[ir("0x1")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x14")][ir("0xd")]&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0x13")](this)(e,n,o)}),{priority:ir("0x18")})}}const ar=["replace","findByTextCallback","bind","afterInit","plugins","replaceAll","string","model","getIntersection","editor","end","enableCommand","FindAndReplaceUtils","TrackChangesEditing","findNext","start","item","has","getMarkersGroup","createPositionAt","markers","handleFindCommand","_isInDeletionRange","findPrevious","getRange","get","find"];var cr,lr;cr=ar,lr=134,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0x4")](){if(!this[ur("0xa")][ur("0x5")][ur("0x12")]("FindAndReplaceEditing"))return;const t=this[ur("0xa")][ur("0x5")][ur("0x1a")](ur("0xe"));t[ur("0xc")](ur("0x0"),this[ur("0x16")][ur("0x3")](this)),t[ur("0xc")](ur("0xf")),t.enableCommand(ur("0x18")),t[ur("0xc")](ur("0x1")),t[ur("0xc")](ur("0x6"))}handleFindCommand(t,e,n={}){const o=this[ur("0xa")][ur("0x5")].get(ur("0xd"));void 0!==n&&t((t=>(ur("0x7")==typeof e?o[ur("0x2")](e,n):e)(t).filter((e=>!1===this[ur("0x17")](e,t[ur("0x11")])))),n)}[ur("0x17")](t,e){const n=this.editor[ur("0x8")].createRange(this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0x10")]),this[ur("0xa")][ur("0x8")][ur("0x14")](e,t[ur("0xb")]));for(const t of this[ur("0xa")][ur("0x8")][ur("0x15")][ur("0x13")]("suggestion:deletion"))if(null!==n[ur("0x9")](t[ur("0x19")]()))return!0;return!1}}const gr=["document","*Reset font color*","*Set font background color:* %0","fontColor","locale","config","get","_enableCommand","fontFamily","FontSize","find","FontSizeEditing","*Set font family:* %0","value","*Reset font background color*","FontFamilyEditing","*Reset font family*","TrackChangesEditing","toLowerCase","fontSize.options","*Set font color:* %0","markInlineFormat","from","trim","fontSize","commandName","format","fontBackgroundColor.colors","normalizeSizeOptions","commandParams","_descriptionFactory","title","afterInit","model","registerDescriptionCallback","getRanges","enableCommand","plugins","editor","FontColorEditing","fontBackgroundColor","fontColor.colors","label"];var mr,fr;mr=gr,fr=418,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x17"),commandName:hr("0x24")},{pluginName:hr("0x1b"),commandName:hr("0x14")},{pluginName:hr("0x8"),commandName:hr("0xf")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x1")](){const t=this.editor[hr("0x10")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x7")][hr("0x6")].has(t)&&this[hr("0x13")](e);this[hr("0x7")].plugins[hr("0x12")](hr("0x1d"))[hr("0x2a")][hr("0x3")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=n(this[hr("0x7")].plugins[hr("0x12")](hr("0x15"))[hr("0x28")](this[hr("0x7")][hr("0x11")].get(hr("0x1f")))[hr("0x16")]((t=>t[hr("0x2")]==e))[hr("0x0")]).toLowerCase();return{type:hr("0x26"),content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x14")==o.commandName){const e=o[hr("0x29")][0].value;return e?{type:hr("0x26"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x1c"))}}if("fontColor"==o.commandName){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")].config.get(hr("0xa")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0x20"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,hr("0xd"))}}if(hr("0x9")==o[hr("0x25")]){const e=o[hr("0x29")][0][hr("0x19")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x7")][hr("0x11")].get(hr("0x27")))[hr("0x16")]((t=>t[hr("0x2")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r)[hr("0x1e")]()),{type:hr("0x26"),content:Yo(t,hr("0xe"),i)[hr("0x23")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x1a"))}}}}))}_enableCommand(t){const e=this.editor;e[hr("0x6")][hr("0x12")](hr("0x1d"))[hr("0x5")](t,((n,o={})=>{const s=e[hr("0x2")][hr("0xc")].selection,r=o.value;s.isCollapsed?n(o):e.model.change((()=>{const n=Array[hr("0x22")](s[hr("0x4")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x2")]);for(const o of n)e[hr("0x6")].get(hr("0x1d"))[hr("0x21")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["config","get","enableCommand","from","selection","length","join","modifySelection","_descriptionFactory","fontBackgroundColor","*Set format to:* %0","fontSize.options","find","normalizeSizeOptions","getSelectedBlocks","commandParams","copyFormat","slice","word","plugins","pasteFormat","charAt","title","format","toUpperCase","toLowerCase","getRanges","fontColor.colors","FontSize","label","registerDescriptionCallback","fontColor","change","afterInit","isBlock","schema","*Remove all formatting*","model","createSelection","keys","document","getAttributes","markInlineFormat","isCollapsed","fontSize","getAttributeProperties","boolean","TrackChangesEditing","getFirstPosition","forward","isFormatting","commands"];var _r,Tr;_r=Er,Tr=166,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x17")](){const t=this.editor,n=t[Cr("0x1b")],o=n[Cr("0x1e")][Cr("0x2e")],s=t[Cr("0x9")][Cr("0x2b")](Cr("0x25")),r=t.locale,i=t.commands[Cr("0x2b")](Cr("0x6")),x=t[Cr("0x29")][Cr("0x2b")](Cr("0xa"));i&&x&&(s[Cr("0x2c")]("pasteFormat",((t,r={})=>{const i=r;n[Cr("0x16")]((()=>{const t=Array[Cr("0x2d")](o[Cr("0x10")]()),r=o[Cr("0x21")]?[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("0x1f")]()){const t=e[Cr("0x23")](n);t&&t[Cr("0x28")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e.getItems())!n[Cr("0x18")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x4")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x19")]))||0!==Object[Cr("0x1d")](i)[Cr("0x2f")])for(const t of r)s[Cr("0x20")](t,{commandName:Cr("0xa"),commandParams:[i]})}))})),s[Cr("0x32")][Cr("0x14")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e[Cr("0x2f")]?{type:Cr("0xd"),content:Yo(r,Cr("0x0"),e[Cr("0x30")](", "))}:{type:Cr("0xd"),content:Yo(r,Cr("0x1a"))}}})),t[Cr("0x9")].get("TrackChangesEditing")[Cr("0x2c")](Cr("0x6")))}}function kr(t,e){const n=t[Cr("0x1c")](e);t.modifySelection(n,{unit:Cr("0x8"),direction:"backward"});const o=n[Cr("0x26")]();t[Cr("0x31")](n,{unit:Cr("0x8"),direction:Cr("0x27")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Cr("0x30")](" "),i=o(r[Cr("0xb")](0)[Cr("0xe")]()+r[Cr("0x7")](1))[Cr("0xf")]();if(Cr("0x24")==typeof n)return i;if(Cr("0x15")===e||Cr("0x33")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2a")][Cr("0x2b")](Cr("0x11"))).find((t=>t[Cr("0x1b")]==n));return i+" ("+(e?o(e[Cr("0x13")])[Cr("0xf")]():n)+")"}if(Cr("0x22")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x2b")](Cr("0x12"))[Cr("0x3")](t[Cr("0x2a")][Cr("0x2b")](Cr("0x1")))[Cr("0x2")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0xc")])[Cr("0xf")]():n)+")"}return i+" ("+n+")"}const Rr=["has","_descriptionFactory","from","locale","commandName","registerElementLabel","commandParams","value","blockName","config","editor","ELEMENT_HEADING","get","title","enableCommand","getSelectedBlocks","format","ELEMENT_HEADING_CUSTOM","selection","plugins","heading","*Change to:* %0","filter","markBlockFormat","model","registerDescriptionCallback","document","find","formatBlock"];var vr,Ir;vr=Rr,Ir=302,function(t){for(;--t;)vr.push(vr.shift())}(++Ir);const Sr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Sr("0x1b")],e=t[Sr("0x14")],n=t[Sr("0x1a")][Sr("0x0")]("heading.options");if(!t.plugins[Sr("0x11")]("HeadingEditing"))return;const o=t[Sr("0x7")][Sr("0x0")]("TrackChangesEditing");o[Sr("0x2")](Sr("0x8"),((e,n)=>{const s=n[Sr("0x18")],r=Array[Sr("0x13")](this.editor.model[Sr("0xe")][Sr("0x6")][Sr("0x3")]())[Sr("0xa")]((t=>{return e=t,n=s,(o=this[Sr("0x1b")][Sr("0xc")].schema).checkChild(e.parent,n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t[Sr("0xc")].change((()=>{for(const t of r)o[Sr("0xb")](t,{commandName:"heading",commandParams:[n],formatGroupId:Sr("0x19")},fs(t))}))}));for(const t of n)"paragraph"!=t[Sr("0xc")]&&o[Sr("0x12")][Sr("0x16")](t[Sr("0xc")],(e=>{const n=Nr(t[Sr("0xc")]);return null!==n?s(e,n):r(e,t[Sr("0x1")])}));function s(t,n){return Yo(e,Sr("0x1c"),[t,n])}function r(t,n){return Yo(e,Sr("0x5"),[t,n])}o[Sr("0x12")][Sr("0xd")]((t=>{const{type:o,data:i}=t;if(Sr("0x10")==o&&i&&Sr("0x8")==i[Sr("0x15")]){const t=i[Sr("0x17")][0][Sr("0x18")],o=Nr(t);if(null!==o)return{type:Sr("0x4"),content:Yo(e,Sr("0x9"),s(1,o))};const x=n[Sr("0xf")]((e=>e[Sr("0xc")]===t))[Sr("0x1")];return{type:Sr("0x4"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["highlight.options","config","getAttribute","editor","commandName","toLowerCase","*Set highlight:* %0","HighlightEditing","item","_descriptionFactory","highlight","model","*Remove highlight*","afterInit","registerDescriptionCallback","push","format","TrackChangesEditing","has","isCollapsed","get","value","locale","getLastMatchingPosition","backward","plugins","FORMAT_HIGHLIGHT","markInlineFormat","formatInline","change","color","title","document","getFirstPosition","getRanges","createRange","enableCommand"];var wr,Or;wr=Mr,Or=106,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x12")](){const t=this[Fr("0x8")];if(!t.plugins[Fr("0x17")](Fr("0xc")))return;const e=t[Fr("0x1e")][Fr("0x19")](Fr("0x16"));e[Fr("0x4")](Fr("0xf"),((n,o={})=>{const s=t[Fr("0x10")][Fr("0x0")].selection,r=s[Fr("0x7")]("highlight");let i=o[Fr("0x1a")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1")]();if(!s.hasAttribute("highlight"))return void n(o);{const n=t=>t[Fr("0xd")][Fr("0x7")](Fr("0xf"))===r,o=e[Fr("0x1c")](n,{direction:Fr("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x10")][Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x2")]())i?x[Fr("0x14")](e):x.push(...ms(Fr("0xf"),e,t.model));t[Fr("0x10")][Fr("0x22")]((()=>{for(const t of x)e[Fr("0x20")](t,{commandName:Fr("0xf"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0xe")][Fr("0x13")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0xf")==s[Fr("0x9")]){const e=n.t,o=s.commandParams[0][Fr("0x1a")];if(o){const s=t[Fr("0x6")][Fr("0x19")](Fr("0x5")).find((t=>t[Fr("0x10")]==o)),r=e(s[Fr("0x24")])[Fr("0xa")]();return{type:Fr("0x15"),content:Yo(n,Fr("0xb"),r),color:{value:s[Fr("0x23")],title:s.title}}}return{type:Fr("0x15"),content:Yo(n,Fr("0x11"),Yo(n,Fr("0x1f")))}}}))}}const Dr=["for","ELEMENT_HORIZONTAL_LINE","get","editor","enableCommand","afterInit","elementToStructure","_descriptionFactory","createContainerElement","locale","TrackChangesEditing","horizontalLine","dataDowncast","plugins","registerElementLabel","createEmptyElement"];var Br,jr;Br=Dr,jr=233,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0xc")](){const t=this[Ur("0xa")];if(!t[Ur("0x4")].has("HorizontalLineEditing"))return;t[Ur("0x4")][Ur("0x9")](Ur("0x1"))[Ur("0xb")](Ur("0x2"));const e=t[Ur("0x4")][Ur("0x9")](Ur("0x1")),n=t[Ur("0x0")];e[Ur("0xe")][Ur("0x5")](Ur("0x2"),(t=>Yo(n,Ur("0x8"),t))),t.conversion[Ur("0x7")](Ur("0x3"))[Ur("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x6")]("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["format","value","commandName","plugins","locale","enableCommand","selection","ELEMENT_HTML_EMBED","HtmlEmbed","getAttribute","registerDescriptionCallback","has","rawHtmlApi","editing","_descriptionFactory","getCustomProperty","view","change","htmlEmbed","get","afterInit","element","TrackChangesEditing","model","document","rawHtml","getSelectedElement","cancel","registerElementLabel"];var zr,Wr;zr=Hr,Wr=188,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this.editor;if(!t[Vr("0x12")][Vr("0x1a")](Vr("0x17")))return;const e=t[Vr("0x12")][Vr("0x5")](Vr("0x8")),n=t[Vr("0x13")],o=t[Vr("0x1c")][Vr("0x2")][Vr("0xa")][Vr("0x15")];e._descriptionFactory[Vr("0xe")](Vr("0xb"),(t=>Yo(n,Vr("0x16"),t))),t[Vr("0x12")][Vr("0x5")](Vr("0x8"))[Vr("0x14")](Vr("0x4"),((n,s)=>{const r=t[Vr("0x9")],i=r.document[Vr("0x15")];r[Vr("0x3")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x7"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x18")](Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x4"),commandParams:[s]}),o.getSelectedElement()[Vr("0x1")](Vr("0x1b"))[Vr("0xd")]())}))})),e[Vr("0x0")][Vr("0x19")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x11")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0xf"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["convertBlockImageToInline","previous","ImageUtils","format","width","ImageEditing","filter","caption","backward","from","author","registerDescriptionCallback","detach","toPrevious","isEqual","getFirstRange","markBlockFormat","ImageUploadEditing","ImageInlineEditing","imageTypeInline","registerPostFixer","discardSuggestion","resizeImage","end","findIndex","deletion","*Remove image text alternative*","markInlineFormat","FORMAT_SIDE_IMAGE","isOwn","imageStylePostApply","head","formatInline","ELEMENT_IMAGE","insertImage","fromPosition","hasSuggestion","getAttribute","imageTypeBlock","refresh","getCaptionFromImageModelElement","newValue","isBefore","imageCaption","length","Block image to inline image","start","discard","editor","schema","selection","*Set image text alternative:* %0","Inline image to block image","type","getSuggestionCallback","has","side","getClosestSelectedImageElement","createRange","change","getSuggestion","_suggestionFactory","_descriptionFactory","commandName","join","commandParams","get","_splitMarkerName","markInsertion","Users","value","name","plugins","document","next","imageStylePreApply","ImageStyleEditing","commandReversedParams","imageBlock","imageStyle","ELEMENT_CAPTION","isBlockImage","ELEMENT_INLINE_IMAGE","newRange","element","getNearestSelectionRange","_findSuggestions","isIntersecting","getChangedMarkers","commands","convertInlineImageToBlock","toggleImageCaption","chain","suggestion","insertion","alt","getSuggestions","forceDefaultExecution","toLowerCase","isInContent","subType","markDeletion","imageTextAlternative","registerElementLabel","shouldConvertImageType","formatBlock","createRangeOn","getContainedElement","ImageResize","*Set image width:* %0","accept","isInlineImage","model","registerCustomCallback","enableCommand"];var Xr,$r;Xr=qr,$r=469,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x27")];if(!t[Jr("0x3f")][Jr("0x2e")](Jr("0x6f")))return;const n=t[Jr("0x3f")].get("TrackChangesEditing"),o=t.plugins[Jr("0x39")](Jr("0x6c")),s={},r=t.locale;if(n.enableCommand(Jr("0x19")),n._descriptionFactory[Jr("0x5e")](Jr("0x45"),(t=>Yo(r,Jr("0x18"),t))),n[Jr("0x35")][Jr("0x5e")]("imageInline",(t=>Yo(r,Jr("0x49"),t))),n._descriptionFactory[Jr("0x5e")](Jr("0x71"),(()=>Yo(r,Jr("0x47")))),t[Jr("0x3f")].has(Jr("0x8"))&&n[Jr("0x69")]("uploadImage"),t[Jr("0x3f")][Jr("0x2e")]("ImageBlockEditing")&&t[Jr("0x3f")][Jr("0x2e")](Jr("0x9"))&&(n[Jr("0x69")]("imageTypeInline",((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document[Jr("0x29")]);t.model[Jr("0x32")]((()=>{n.markBlockFormat(r,{commandName:Jr("0xa"),commandParams:[s]},[],Jr("0x6a"))}))})),n[Jr("0x69")](Jr("0x1d"),((e,s)=>{t.model[Jr("0x32")]((r=>{let x=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),a=r[Jr("0x61")](x);const c=i.LivePosition[Jr("0x1a")](a.start,Jr("0x4")),l=i.LivePosition[Jr("0x1a")](a.end,"toNext");n[Jr("0x58")]((()=>e(s))),x=o[Jr("0x30")](t.model.document[Jr("0x29")]),a=r[Jr("0x61")](x);const u=r[Jr("0x31")](c,l);c[Jr("0x3")](),l.detach(),n[Jr("0x7")](x,{commandName:Jr("0xa"),commandParams:[]},[],Jr("0x51")),u[Jr("0x25")][Jr("0x21")](a[Jr("0x25")])&&n[Jr("0x3b")](r.createRange(u[Jr("0x25")],a.start),Jr("0x51")),a[Jr("0xe")].isBefore(u.end)&&n.markInsertion(r[Jr("0x31")](a[Jr("0xe")],u[Jr("0xe")]),Jr("0x51"))}))})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),"convertInlineImageToBlock","accept",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x51"),"discard",n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"","accept")),n[Jr("0x34")].registerCustomCallback("insertion",Jr("0x51"),Jr("0x37"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x55"),"convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x34")][Jr("0x2d")]("insertion","",Jr("0x26"));let s=e.start,r=e[Jr("0xe")];const i=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](s,Jr("0x72")),x=t[Jr("0x67")][Jr("0x28")][Jr("0x4c")](r,"forward");i.isCollapsed&&(s=i.start),x.isCollapsed&&(r=x[Jr("0xe")]),o([t[Jr("0x67")].createRange(s,r)])})),n[Jr("0x34")][Jr("0x68")]("formatBlock",Jr("0x51"),Jr("0x53"),c),n._suggestionFactory[Jr("0x68")]("insertion","convertInlineImageToBlock",Jr("0x53"),c)),t[Jr("0x3f")].has("ImageCaptionEditing")&&(n.enableCommand(Jr("0x52"),((e,s)=>{const r=t[Jr("0x3f")][Jr("0x39")]("ImageCaptionUtils");let i=o[Jr("0x30")](t.model[Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i);t[Jr("0x67")][Jr("0x32")]((()=>{if(x)return void n[Jr("0x5c")](t.model[Jr("0x61")](x));const a=o[Jr("0x48")](i);e(s),i=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),x=r[Jr("0x1f")](i),n[Jr("0x3b")](t[Jr("0x67")][Jr("0x61")](x),a?null:Jr("0x22"))}))})),n._suggestionFactory[Jr("0x68")](Jr("0x55"),"imageCaption",Jr("0x53"),c)),t.plugins[Jr("0x2e")](Jr("0x43"))){n.enableCommand(Jr("0x46"),((s,r)=>{const i=t[Jr("0x3f")][Jr("0x39")](Jr("0x3c")).me,x=t[Jr("0x50")][Jr("0x39")](Jr("0x46"));let a=o[Jr("0x30")](t.model[Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),l=x[Jr("0x3d")];if(l==r.value)return;const u={commandName:Jr("0x46"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x67")][Jr("0x32")]((()=>{if(n[Jr("0x57")]().filter((t=>t[Jr("0x5a")]&&i==t[Jr("0x1")]&&(Jr("0x60")==t[Jr("0x2c")]||Jr("0x17")==t[Jr("0x2c")])&&(Jr("0x42")==t[Jr("0x5b")]||Jr("0x15")==t[Jr("0x5b")])&&t[Jr("0x6")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[Jr("0x16")]))),a=o[Jr("0x30")](t[Jr("0x67")][Jr("0x40")].selection),c=t[Jr("0x67")][Jr("0x61")](a),x[Jr("0x1e")](),t[Jr("0x50")][Jr("0x39")](Jr("0xa"))[Jr("0x1e")](),t[Jr("0x50")].get(Jr("0x1d"))[Jr("0x1e")](),l=x.value,l!=r.value)return o[Jr("0x66")](a)&&x[Jr("0x5f")](r[Jr("0x3d")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x67")][Jr("0x40")][Jr("0x29")]),void n[Jr("0x7")](a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x48")](a)?n[Jr("0x7")](a,u,[],Jr("0x15")):n[Jr("0x12")](c,u,Jr("0x15")))}))}));for(const e of t.plugins.get(Jr("0x43")).normalizedStyles)s[e[Jr("0x3e")]]=e.title[Jr("0x59")]();n[Jr("0x34")][Jr("0x68")](Jr("0x60"),Jr("0x42"),"join",(()=>{})),n[Jr("0x34")][Jr("0x68")](Jr("0x60"),"imageStylePostApply","join",(()=>{})),n[Jr("0x34")].registerCustomCallback("formatInline","imageStylePostApply",Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x68")](Jr("0x60"),Jr("0x42"),Jr("0x65"),(()=>{})),n[Jr("0x34")].registerCustomCallback(Jr("0x60"),"imageStylePreApply",Jr("0x26"),((t,e)=>{n._suggestionFactory[Jr("0x2d")](Jr("0x60"),"",Jr("0x65"))(t,{commandName:e[Jr("0x36")],commandParams:e[Jr("0x44")]})})),n._suggestionFactory[Jr("0x68")]("formatBlock",Jr("0x42"),Jr("0x53"),c)}const x=[{type:"formatBlock",subType:Jr("0x42")},{type:"insertion",subType:Jr("0x22")},{type:Jr("0x60"),subType:Jr("0x51")},{type:Jr("0x55"),subType:Jr("0x51")}];function a(t,e){const s=x[Jr("0xf")]((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t.subType==n)),r=x[Jr("0xf")]((({type:t,subType:n})=>e[Jr("0x2c")]==t&&e[Jr("0x5b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x6")]();if((0==s||1==s)&&2==r&&i[Jr("0x4e")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x4d")](i,"insertion")[Jr("0x70")]((({suggestion:t,meta:e})=>e[Jr("0x14")]&&Jr("0x51")==t[Jr("0x5b")]));if(t[Jr("0x23")]>1&&a[Jr("0xe")][Jr("0x5")](i[Jr("0x25")]))return!0;if(1==t[Jr("0x23")]&&(i[Jr("0x25")].isEqual(a[Jr("0xe")])||i[Jr("0xe")][Jr("0x5")](a[Jr("0x25")])))return!0}if(3==s&&3==r&&i[Jr("0x25")].isBefore(a[Jr("0x25")])){const t=i[Jr("0xe")].nodeAfter,e=a[Jr("0x25")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x67")][Jr("0x40")][Jr("0xb")]((()=>{let e=!1;const s=Array[Jr("0x0")](t[Jr("0x67")].document.differ[Jr("0x4f")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x3a")](t);if(Jr("0x54")==s&&n[Jr("0x1b")](a)){if("formatBlock"==i&&(Jr("0x42")==x||Jr("0x15")==x)){const t=n.getSuggestion(a);if(r.newRange){const s=t[Jr("0x6")]()[Jr("0x62")]();if(o.isBlockImage(s))continue;n[Jr("0xc")](t),e=!0}}if("insertion"==i&&Jr("0x22")==x&&!r[Jr("0x4a")]){const t=n[Jr("0x33")](a);t[Jr("0x41")]&&t[Jr("0x41")][Jr("0x5a")]&&(n[Jr("0xc")](t[Jr("0x41")]),e=!0)}}}return e})),t[Jr("0x3f")][Jr("0x2e")](Jr("0x63"))&&n[Jr("0x69")](Jr("0xd"),((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document.selection);r[Jr("0x1c")]("width")!=s[Jr("0x6e")]&&t[Jr("0x67")][Jr("0x32")]((()=>{n[Jr("0x7")](r,{commandName:Jr("0xd"),commandParams:[s]})}))})),t[Jr("0x3f")][Jr("0x2e")]("ImageTextAlternativeEditing")&&n[Jr("0x69")](Jr("0x5d"),((e,s)=>{const r=o[Jr("0x30")](t[Jr("0x67")].document.selection);(r.hasAttribute(Jr("0x56"))?r.getAttribute("alt"):"")!=s[Jr("0x20")]&&t[Jr("0x67")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x5d"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x2")]((t=>{if(x.find((({type:e,subType:n})=>t[Jr("0x2c")]==e&&t[Jr("0x5b")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x35")][Jr("0x2")]((t=>{if(Jr("0x55")==t[Jr("0x2c")]||Jr("0x10")==t[Jr("0x2c")]){const e=t[Jr("0x62")]();if(e&&e.is(Jr("0x4b"),Jr("0x71")))return{type:"insertion"==t[Jr("0x2c")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x2")]((t=>Jr("0x60")==t[Jr("0x2c")]&&Jr("0x51")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x2b")}:Jr("0x60")==t[Jr("0x2c")]&&Jr("0x6a")==t[Jr("0x5b")]?{type:Jr("0x6d"),content:Jr("0x24")}:void 0)),n[Jr("0x35")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x46")==e[Jr("0x36")]){const t=e.commandParams[0][Jr("0x3d")];return n=Jr("0x2f")===t?Yo(r,Jr("0x13")):s[t]||t,{type:Jr("0x6d"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x5d")==e[Jr("0x36")]){const t=e[Jr("0x38")][0][Jr("0x20")];return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x2a"),'"'+t+'"')}:{type:Jr("0x6d"),content:Yo(r,Jr("0x11"))}}if(Jr("0xd")==e[Jr("0x36")]){const t=e.commandParams[0].width;return t?{type:Jr("0x6d"),content:Yo(r,Jr("0x64"),t)}:{type:Jr("0x6d"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","TrackChangesEditing","handleSuggestionDescription","handleReplaceImageCommand","_descriptionFactory","source","model","data","editor","replaceImageSource","_suggestionFactory","enableCommand","get","format","change","discard","getSelectedElement","has","getSuggestionCallback","plugins","ImageEditing","getAttribute","document","registerDescriptionCallback","getSuggestions","accept","formatBlock","author","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=108,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("0x10")].plugins[ei("0x19")](ei("0x1c")))return;const t=this[ei("0x10")][ei("0x1b")][ei("0x14")](ei("0x9"));t[ei("0x13")](ei("0x11"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")].registerCustomCallback(ei("0x5"),ei("0x11"),ei("0x4"),t[ei("0x12")][ei("0x1a")](ei("0x5"),null,ei("0x17"))),t[ei("0x12")][ei("0x7")](ei("0x5"),"replaceImageSource",ei("0x17"),t[ei("0x12")][ei("0x1a")]("formatBlock",null,ei("0x4"))),t[ei("0xc")][ei("0x2")]((t=>this[ei("0xa")](t)))}[ei("0xb")](t,e){const n=this[ei("0x10")].plugins[ei("0x14")](ei("0x9")),o=this[ei("0x10")][ei("0xe")][ei("0x1")].selection[ei("0x18")]();this[ei("0x10")][ei("0xe")][ei("0x16")]((()=>{let s=o[ei("0x0")]("src");const r=this[ei("0x10")][ei("0x1b")][ei("0x14")]("Users").me;for(const t of n[ei("0x3")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x11")===t.subType&&e===o){t[ei("0x6")]!==r&&t[ei("0x17")](),s=t[ei("0xf")].commandParams[0][ei("0xd")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0xa")](t){const{data:e}=t;if(e&&ei("0x11")===e.commandName){const t="*Format:* replace image URL";return{type:ei("0x15"),content:Yo(this[ei("0x10")][ei("0x8")],t)}}}}const oi=["collaboration_features","TrackChangesEditing","dataInsert","track_changes","trackChanges","execute","high","Users","importWord","get","_trackChangesExecuted","lowest","value","_trackChangesValueDuringImport","enableCommand","editor","forEach","_handleImportedData","afterInit","plugins","commands"];var si,ri;si=oi,ri=412,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("0x0")]=!1,this._trackChangesExecuted=!1}[ii("0x5")](){const t=this[ii("0x2")],e=t[ii("0x7")][ii("0x11")]("importWord"),n=t[ii("0x7")][ii("0x11")]("trackChanges");e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x0")]=n[ii("0x14")],e[ii("0x8")][ii("0xb")]=!this[ii("0x0")]}),{priority:ii("0xe")}),this.listenTo(e,ii("0xa"),this[ii("0x4")].bind(this)),this.listenTo(e,ii("0xa"),(()=>{this._trackChangesExecuted&&(n.execute(),this[ii("0x12")]=!1)}),{priority:ii("0x13")}),t[ii("0x6")].get(ii("0x9"))[ii("0x1")](ii("0x10")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this[ii("0x2")][ii("0x7")][ii("0x11")](ii("0xc")),s=o.value;this[ii("0x0")]!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x2")][ii("0x6")].get(ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x10")}}};this.editor[ii("0x6")][ii("0x11")](ii("0x9"))._setSuggestionData(s)}))}}const ai=["schema","model","outdentBlock","outdent","from","registerDescriptionCallback","filter","blockIndent","commandName","indent","locale","IndentBlock","getItemLabel","has","getSelectedBlocks","selection","plugins","change","format","editor","_descriptionFactory","*Indent:* %0","document","indentBlock","enableCommand","afterInit","*Outdent:* %0"];var ci,li;ci=ai,li=479,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0x5")](){const t=this.editor,e=t[ui("0x17")].get("TrackChangesEditing");t[ui("0x17")][ui("0x14")]("IndentEditing")&&(e[ui("0x4")](ui("0x10")),e.enableCommand(ui("0xa")));const n=t[ui("0x11")];if(t[ui("0x17")][ui("0x14")](ui("0x12"))){for(const n of["indentBlock",ui("0x9")])e[ui("0x4")](n,(()=>{const o=Array[ui("0xb")](this[ui("0x1a")].model[ui("0x2")][ui("0x16")][ui("0x15")]())[ui("0xd")]((t=>this[ui("0x1a")][ui("0x8")][ui("0x7")].checkAttribute(t,ui("0xe"))));t[ui("0x8")][ui("0x18")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x3")})}))}));e._descriptionFactory[ui("0xc")]((t=>{const{data:o}=t;if(!o)return;if(ui("0x3")!=o[ui("0xf")]&&ui("0x9")!=o[ui("0xf")])return;const s=t.getItems()[0],r=e[ui("0x0")][ui("0x13")](s);return"indentBlock"==o[ui("0xf")]?{type:ui("0x19"),content:Yo(n,ui("0x1"),r)}:"outdentBlock"==o[ui("0xf")]?{type:"format",content:Yo(n,ui("0x6"),r)}:void 0}))}}}var gi,mi,fi=["editor","TrackChangesEditing","get","plugins","input","enableCommand"];gi=fi,mi=385,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}init(){this[hi("0x5")][hi("0x2")][hi("0x1")](hi("0x0"))[hi("0x4")](hi("0x3"))}}const bi=["afterInit","getAttribute","getFirstRange","_descriptionFactory","TrackChangesEditing","plugins","linkHref","enableCommand","isCollapsed","markInlineFormat","LinkEditing","getRanges","model","*Remove link*","unlink","editor","link","commandName","document","change","get","*Set link:* %0","commandParams","format","from"];var Ei,_i;Ei=bi,_i=310,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xf")](){const t=this[Ti("0x5")];if(!t[Ti("0x14")].has(Ti("0x0")))return;const e=t[Ti("0x14")][Ti("0xa")](Ti("0x13"));e[Ti("0x16")](Ti("0x6"),((n,o)=>{const s=t[Ti("0x2")].document.selection;let r=[];if(s[Ti("0x17")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0x15"),s[Ti("0x10")]("linkHref"),t[Ti("0x2")]);r=[e]}}else r=Array[Ti("0xe")](s[Ti("0x1")]());t[Ti("0x2")][Ti("0x9")]((()=>{for(const t of r)e[Ti("0x18")](t,{commandName:Ti("0x6"),commandParams:[o]})}))})),e[Ti("0x16")]("unlink",(()=>{const n=this.editor[Ti("0x2")],o=n[Ti("0x8")].selection;n[Ti("0x9")]((()=>{let n=[];n=o[Ti("0x17")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0x15"),o.getAttribute(Ti("0x15")),t.model)]:ms(Ti("0x15"),o[Ti("0x11")](),t[Ti("0x2")]);for(const t of n)e[Ti("0x18")](t,{commandName:Ti("0x4"),commandParams:[]})}))})),e[Ti("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x6")==n[Ti("0x7")]){const t=n[Ti("0xc")][0];return{type:"format",content:Yo(o,Ti("0xb"),'"'+t+'"')}}return Ti("0x4")==n[Ti("0x7")]?{type:Ti("0xd"),content:Yo(o,Ti("0x3"))}:void 0}}))}}const yi=["previousSibling","TodoListEditing","*Uncheck item*","markBlockFormat","*Indent:* %0","*Change to:* %0","*Outdent:* %0","numbered","value","numberedList","_selectedElements","length","commandParams","listType","getSelectedBlocks","blockName","editor","model","execute","outdentList","TrackChangesEditing","document","listItem","selection","slice","registerDescriptionCallback","from","ListEditing","registerElementLabel","ELEMENT_BULLETED_LIST","_descriptionFactory","listIndent","replace","checkTodoList","afterInit","schema","format","change","List","getAttribute","get","filter","element","createPositionAt","paragraph","ELEMENT_LIST_ITEM","commandName","before","indentList","todoList","bulleted","*Check item*","push","enableCommand","plugins","name","locale","forceValue","nextSibling","add","todoListChecked","has"];var ki,Ai;ki=yi,Ai=402,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const Ri=function(t,e){return yi[t-=0]};class vi extends t.Plugin{[Ri("0x4")](){const t=this[Ri("0x30")],e=t[Ri("0x1a")];if(!t.plugins[Ri("0x1f")](Ri("0x3b")))return;const n=t[Ri("0x18")][Ri("0xa")](Ri("0x34")),o=t.plugins[Ri("0x1f")](Ri("0x21"));function s(e){return()=>{const o=t[Ri("0x31")][Ri("0x35")][Ri("0x37")],s=t.commands.get(e);if(s[Ri("0x28")])return void t[Ri("0x32")](Ri("0xe"),{});const r=e[Ri("0x38")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n).checkChild(e.parent,Ri("0x36"))&&!o.isObject(e);var e,o}));o=o.filter((t=>!t.is(Ri("0xc"),Ri("0x36"))||t[Ri("0x9")](Ri("0x2d"))!=e));const s=new Set;for(const t of o)t.is(Ri("0xc"),Ri("0x36"))?s.add(Ii(t)):s.add(t);return Array[Ri("0x3a")](s)}(o[Ri("0x2e")](),r,t[Ri("0x31")][Ri("0x5")]);t[Ri("0x31")][Ri("0x7")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ri("0x28")]}],formatGroupId:Ri("0x2f")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ri("0x3a")](t);const n=e.findIndex((t=>"listItem"!=t.name));return n>-1&&(e=e[Ri("0x38")](0,n)),e}(t[Ri("0x31")].document[Ri("0x37")][Ri("0x2e")]()),s=t.model.createRange(t[Ri("0x31")][Ri("0xd")](o[0],Ri("0x11")),t[Ri("0x31")][Ri("0xd")](o[o[Ri("0x2b")]-1],"end"));t[Ri("0x31")][Ri("0x7")]((()=>{n[Ri("0x23")](s,{commandName:e,commandParams:[],formatGroupId:Ri("0x1")},function(t){const e=new Set;for(const n of t){let t=n[Ri("0x1c")];for(;t&&t[Ri("0x9")]("listIndent")>n[Ri("0x9")](Ri("0x1"));)e[Ri("0x1d")](t),t=t[Ri("0x1c")]}return Array[Ri("0x3a")](e)}(o))}))}}n[Ri("0x17")]("numberedList",s("numberedList")),n.enableCommand("bulletedList",s("bulletedList")),o&&n[Ri("0x17")](Ri("0x13"),s("todoList")),n.enableCommand(Ri("0x12"),r(Ri("0x12"))),n[Ri("0x17")](Ri("0x33"),r(Ri("0x33"))),o&&n[Ri("0x17")](Ri("0x3"),(()=>{const e=t.commands[Ri("0xa")]("checkTodoList"),o=Array.from(e[Ri("0x2a")]);o[Ri("0xb")]((t=>t.getAttribute(Ri("0x1e"))!=e[Ri("0x28")])),t.model.change((()=>{for(const t of o)n[Ri("0x23")](t,{commandName:Ri("0x3"),commandParams:[{forceValue:!e[Ri("0x28")]}]})}))})),n[Ri("0x0")][Ri("0x3c")]("listItem",(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Ri("0x0")][Ri("0x39")]((t=>{const{data:n}=t;if(n){if(Ri("0x29")==n.commandName||"bulletedList"==n.commandName||Ri("0x13")==n[Ri("0x10")])switch(n.commandName[Ri("0x2")](Ri("0x8"),"")){case Ri("0x14"):return o(Yo(e,Ri("0x3d")));case Ri("0x27"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ri("0x12")==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x24"),Yo(e,Ri("0xf")))};if("outdentList"==n[Ri("0x10")])return{type:Ri("0x6"),content:Yo(e,Ri("0x26"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ri("0x3")==n[Ri("0x10")])return n[Ri("0x2c")][0][Ri("0x1b")]?{type:Ri("0x6"),content:Yo(e,Ri("0x15"))}:{type:Ri("0x6"),content:Yo(e,Ri("0x22"))}}function o(t){return{type:Ri("0x6"),content:Yo(e,Ri("0x25"),t)}}}))}}function Ii(t){const e=t[Ri("0x9")](Ri("0x1"));if(0==e)return t;let n=t;for(;t[Ri("0x20")]&&t[Ri("0x20")].is(Ri("0xc"),Ri("0x36"));){const o=t[Ri("0x20")].getAttribute(Ri("0x1"));if(o==e)n=t[Ri("0x20")];else if(o<e)break;t=t.previousSibling}return n}function Si(t){const e=[];if(t.is(Ri("0xc"),Ri("0x36"))&&t[Ri("0x9")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ri("0x36")==n[Ri("0x19")]&&n.getAttribute(Ri("0x1"))==t[Ri("0x9")]("listIndent");)e[Ri("0x16")](n),n=n[Ri("0x1c")]}return e}const Li=["reversed","getListTypeFromListStyleType","*Format:* set order to reversed","handleDescriptions","editor","plugins","document","listStart","createPositionAt","flat","change","forward","get","_getSuggestionBlocksForListStyle","ListPropertiesEditing","unshift","startIndex","replace","createRange","ELEMENT_","listReversed","_getTranslationKeyForListStyle","bind","length","backward","listStyle","commandParams","listItem","model","*Format:* set order to regular","locale","markMultiRangeBlockFormat","selection","*Format:* set start index to %0","getAttribute","_getSuggestionBlocks","getSelectedBlocks","getFirstPosition","handleListStyleCommand","before","element","TrackChangesEditing","map","_descriptionFactory","handleListReversedCommand","getSiblingNodes","handleListStartCommand","from","getLastPosition","styles","_LIST_","numbered","toUpperCase","format","ListUtils","type","push","enableCommand"];var Ni,Mi;Ni=Li,Mi=195,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x29")].plugins.has(wi("0x33")))return;const t=this.editor.config.get("list.properties"),e=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x14"));t[wi("0x1c")]&&e.enableCommand(wi("0x4"),this[wi("0x11")].bind(this)),t[wi("0x25")]&&e[wi("0x24")]("listReversed",this[wi("0x17")][wi("0x1")](this)),t[wi("0x35")]&&e[wi("0x24")]("listStart",this[wi("0x19")].bind(this)),e[wi("0x16")].registerDescriptionCallback(this[wi("0x28")][wi("0x1")](this))}[wi("0x11")](t,e={}){const n=this.editor[wi("0x2a")][wi("0x31")](wi("0x14")),o=this[wi("0x32")]();this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x22")]}],formatGroupId:"listStyle"})}))}[wi("0x17")](t,e={}){const n=this.editor.plugins[wi("0x31")](wi("0x14")),o=this[wi("0xe")]((t=>t.is("element","listItem")&&wi("0x1e")===t[wi("0xd")]("listType")));if(o.length<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")][wi("0x7")][wi("0x2d")](t,wi("0x12")),this[wi("0x29")].model[wi("0x2d")](t,0))));this[wi("0x29")].model[wi("0x2f")]((()=>{n[wi("0xa")](s,{commandName:wi("0x39"),commandParams:[{reversed:e[wi("0x25")]}],formatGroupId:wi("0x39")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x29")][wi("0x2a")][wi("0x31")]("TrackChangesEditing"),o=this[wi("0xe")]((t=>t.is(wi("0x13"),wi("0x6"))&&"numbered"===t[wi("0xd")]("listType")));if(o[wi("0x2")]<1)return;const s=o[wi("0x15")]((t=>this[wi("0x29")][wi("0x7")][wi("0x37")](this[wi("0x29")].model.createPositionAt(t,wi("0x12")),this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0))));this[wi("0x29")][wi("0x7")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:wi("0x2c")})}))}[wi("0x28")](t){const e=this[wi("0x29")][wi("0x9")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:wi("0x20"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x5")][0].type)))};break;case wi("0x39"):o=n[wi("0x5")][0][wi("0x25")]?wi("0x27"):wi("0x8"),s={type:"format",content:Yo(e,o)};break;case"listStart":o=wi("0xc"),s={type:wi("0x20"),content:Yo(e,o,n[wi("0x5")][0][wi("0x35")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[wi("0x29")][wi("0x2a")][wi("0x31")](wi("0x21"));let r=Array.from(this[wi("0x29")][wi("0x7")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x13"),wi("0x6")))&&r[wi("0x34")](...s[wi("0x18")](this[wi("0x29")][wi("0x7")].document[wi("0xb")][wi("0x10")](),wi("0x3"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is("element",wi("0x6")))&&r[wi("0x23")](...s[wi("0x18")](this.editor[wi("0x7")][wi("0x2b")][wi("0xb")][wi("0x1b")](),wi("0x30"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0x10")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x13"),wi("0x6")))&&(r=r.filter((t=>t.is(wi("0x13"),wi("0x6"))))),r}[wi("0xe")](t){const e=this[wi("0x29")].plugins.get(wi("0x21"));let n=Array[wi("0x1a")](this[wi("0x29")][wi("0x7")][wi("0x2b")].selection[wi("0xf")]()).filter(t).map((t=>{const n=this[wi("0x29")][wi("0x7")][wi("0x2d")](t,0);return[...e[wi("0x18")](n,wi("0x3")),...e[wi("0x18")](n,wi("0x30"))]}))[wi("0x2e")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x38")+this[wi("0x29")][wi("0x2a")][wi("0x31")]("ListUtils")[wi("0x26")](t)[wi("0x1f")]()+wi("0x1d")+t.toUpperCase()[wi("0x36")](/-/g,"_")}}const Fi=["editor","media","get","dataDowncast","MediaEmbedEditing","elementToElement","has","data","high","plugins","mediaEmbed","stop","registerElementLabel","locale","options","downcastDispatcher","ELEMENT_MEDIA","showSuggestionHighlights","conversion","div"];var Pi,Di;Pi=Fi,Di=417,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x3")];if(!t.plugins[Bi("0x9")](Bi("0x7")))return;const e=t[Bi("0xc")][Bi("0x5")]("TrackChangesEditing"),n=t[Bi("0x10")];e.enableCommand(Bi("0xd")),e._descriptionFactory[Bi("0xf")](Bi("0x4"),(t=>Yo(n,Bi("0x13"),t))),t[Bi("0x1")].for(Bi("0x6"))[Bi("0x8")]({model:Bi("0x4"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x0")])return e.createEmptyElement(Bi("0x2"))},converterPriority:Bi("0xb")}),t[Bi("0xa")][Bi("0x12")].on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0x0")]&&t[Bi("0xe")]()}),{priority:Bi("0xb")})}}const Ui=["get","afterInit","mention","MentionEditing","enableCommand","plugins"];var Gi,Hi;Gi=Ui,Hi=367,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t[zi("0x4")].has(zi("0x2"))&&t.plugins[zi("0x5")]("TrackChangesEditing")[zi("0x3")](zi("0x1"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","plugins","_descriptionFactory","PageBreakEditing","enableCommand","has","get","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=205,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x2")];if(!t[Xi("0x4")][Xi("0x8")](Xi("0x6")))return;t[Xi("0x4")][Xi("0x0")](Xi("0x1"))[Xi("0x7")]("pageBreak");const e=t[Xi("0x4")][Xi("0x0")](Xi("0x1")),n=t.locale;e[Xi("0x5")].registerElementLabel("pageBreak",(t=>Yo(n,Xi("0x3"),t)))}}const Ji=["consume","isObject","nodeAfter","start","activeMarkers","blockName","has","writer","enableCommand","editing","format","afterInit","registerDescriptionCallback","getItemLabel","*Change to:* %0","getFirstRange","ck-suggestion-marker--active","editor","getSelectedBlocks","type","insertParagraph","checkChild","isLimit","filter","schema","data","parent","markerName","registerElementLabel","createUIElement","end","downcastDispatcher","span","selection","addClass","_descriptionFactory","name","showSuggestionHighlights","paragraph","markerRange","mapper","plugins","ck-suggestion-marker-split","$text","highest","isTouching","from","model","locale","insertion","get","TrackChangesEditing","consumable","isBlock","addMarker:suggestion:insertion"];var Qi,Zi;Qi=Ji,Zi=478,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1c")](){const t=this.editor;if(!t.plugins[Yi("0x17")]("Paragraph"))return;const e=t[Yi("0xa")],n=t[Yi("0x3")][Yi("0xc")]("TrackChangesEditing");n[Yi("0x34")][Yi("0x2d")](Yi("0x0"),(t=>Yo(e,"ELEMENT_PARAGRAPH",t))),n[Yi("0x19")](Yi("0x0"),((e,o={})=>{const s=t[Yi("0x9")].document,r=o.selection||s[Yi("0x32")],i=Array[Yi("0x8")](r[Yi("0x23")]())[Yi("0x28")]((t=>{return e=t,(n=this[Yi("0x22")][Yi("0x9")].schema)[Yi("0x26")](e[Yi("0x2b")],"paragraph")&&!n[Yi("0x12")](e)&&Yi("0x0")!=e[Yi("0x35")];var e,n}));t[Yi("0x9")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x16")},fs(t))}))})),n[Yi("0x34")][Yi("0x1d")]((t=>{const{data:n}=t;if(n&&Yi("0x0")==n.commandName)return{type:Yi("0x1b"),content:Yo(e,Yi("0x1f"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n.enableCommand(Yi("0x25")),t[Yi("0x1a")][Yi("0x30")].on(Yi("0x10"),ex(t),{priority:"highest"}),t[Yi("0x2a")].downcastDispatcher.on(Yi("0x10"),((e,n,o)=>{o.options[Yi("0x36")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x34")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x24")])return;const{start:s,end:r}=n[Yi("0x20")]();if(!s.isTouching(r)||!s[Yi("0x13")])return;const i=t[Yi("0x9")].schema,x=s[Yi("0x13")];return i[Yi("0xf")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x5"))?{type:Yi("0xb"),content:Yo(e,"*Insert:* %0",o[Yi("0x1e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Yi("0xc")](Yi("0xd")),i=o.markerRange[Yi("0x14")],x=o[Yi("0x1")][Yi("0x2f")],a=t[Yi("0x9")][Yi("0x29")];if(!i[Yi("0x7")](x)||!i[Yi("0x13")])return;const c=i[Yi("0x13")];if(a[Yi("0xf")](c)&&!a[Yi("0x27")](c)&&a[Yi("0x26")](c,Yi("0x5"))){if(!s[Yi("0xe")][Yi("0x11")](o.markerRange,n.name))return;const t=s[Yi("0x18")][Yi("0x2e")](Yi("0x31"),{class:Yi("0x4")}),i=s[Yi("0x2")].toViewPosition(x);e&&r[Yi("0x15")].includes(o[Yi("0x2c")])&&s[Yi("0x18")][Yi("0x33")](Yi("0x21"),t),s.writer.insert(i,t),s[Yi("0x2")].bindElementToMarker(t,o[Yi("0x2c")])}}}const nx=["selection","schema","model","get","isFormatting","getAttributeProperties","from","registerDescriptionCallback","isCollapsed","commandName","editor","*Remove all formatting*","document","getAttributes","has","removeFormat","TrackChangesEditing","locale","_descriptionFactory","getRanges","plugins","createRangeOn","afterInit"];var ox,sx;ox=nx,sx=472,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0xa")](){const t=this[rx("0x15")];if(!t[rx("0x8")][rx("0x2")]("RemoveFormatEditing"))return;const e=t[rx("0x8")][rx("0xe")](rx("0x4"));e.enableCommand(rx("0x3"),(n=>{const o=t.model[rx("0x0")][rx("0xb")];o[rx("0x13")]?n():t[rx("0xd")].change((()=>{const n=Array[rx("0x11")](o[rx("0x7")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xd")][rx("0xc")])&&e.markInlineFormat(t[rx("0xd")][rx("0x9")](n),{commandName:rx("0x3"),commandParams:[]})}))})),e[rx("0x6")][rx("0x12")]((e=>{const{data:n}=e;if(n&&rx("0x3")==n[rx("0x14")])return{type:"format",content:Yo(t[rx("0x5")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x1")]()){const t=e[rx("0x10")](n);if(t&&t[rx("0xf")])return!0}return!1}const ax=["trackChanges","plugins","RestrictedEditingModeEditing","discardAllSuggestions","has","enableCommand","acceptSuggestion","get","afterInit","acceptSelectedSuggestions","editor"];var cx,lx;cx=ax,lx=404,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x0")](){const t=this[ux("0x2")];if(!t[ux("0x4")][ux("0x7")](ux("0x5")))return;const e=t[ux("0x4")][ux("0xa")]("TrackChangesEditing");e[ux("0x8")]("goToPreviousRestrictedEditingException"),e[ux("0x8")]("goToNextRestrictedEditingException");const n=t[ux("0x4")].get(ux("0x5"));n.enableCommand(ux("0x3")),n[ux("0x8")](ux("0x9")),n.enableCommand("discardSuggestion"),n[ux("0x8")]("acceptAllSuggestions"),n[ux("0x8")](ux("0x6")),n[ux("0x8")](ux("0x1")),n[ux("0x8")]("discardSelectedSuggestions")}}const gx=["bindElementToMarker","markerName","_descriptionFactory","editing","TrackChangesEditing","showSuggestionHighlights","split","createUIElement","test","plugins","high","addMarker:suggestion:insertion","softBreak","data","shiftEnter","ck-suggestion-marker-","addMarker:suggestion","addClass","insert","writer","locale","createPositionBefore","registerElementLabel","editor","consumable","ELEMENT_LINE_BREAK","enableCommand","mapper","merge","downcastDispatcher","init","markerRange","get","includes","element","model","span","name","ck-suggestion-marker--active","getItems"];var mx,fx;mx=gx,fx=184,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("0x27")],e=t[hx("0x19")][hx("0x8")](hx("0x14"));e[hx("0x2")](hx("0x1e")),t[hx("0x13")][hx("0x5")].on(hx("0x1b"),bx(t),{priority:hx("0x1a")}),t.editing[hx("0x5")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1a")}),t[hx("0x1d")].downcastDispatcher.on(hx("0x20"),((e,n,o)=>{o.options[hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x12")][hx("0x26")](hx("0x1c"),(e=>Yo(t[hx("0x24")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x19")][hx("0x8")](hx("0x14"));if(!s[hx("0x0")][hx("0x18")](o[hx("0x7")],n[hx("0xd")]))return;const i=t[hx("0xb")];for(const t of o.markerRange[hx("0xf")]()){if(!t.is(hx("0xa"),hx("0x1c")))continue;const n="deletion"==o[hx("0x11")].split(":")[1]?hx("0x4"):hx("0x16"),x=s[hx("0x23")][hx("0x17")](hx("0xc"),{class:hx("0x1f")+n}),a=s[hx("0x3")].toViewPosition(i[hx("0x25")](t));e&&r.activeMarkers[hx("0x9")](o[hx("0x11")])&&s[hx("0x23")][hx("0x21")](hx("0xe"),x),s.writer[hx("0x22")](a,x),s[hx("0x3")][hx("0x10")](x,o[hx("0x11")])}}}const Ex=["model","TrackChangesEditing","plugins","afterInit","registerDescriptionCallback","getRanges","get","change","has","commandParams","format","selection","_descriptionFactory","forceValue","locale","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","FORMAT_RESTRICTED_DISABLED","value","markInlineFormat","commandName","commands"];var _x,Tx;_x=Ex,Tx=459,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("0x3")],n=t[Cx("0x11")];if(!t[Cx("0x5")][Cx("0xb")](Cx("0x12")))return;const o=t[Cx("0x5")][Cx("0x9")](Cx("0x4")),s="restrictedEditingException",r=t[Cx("0x2")][Cx("0x9")](s);o.enableCommand(s,((t,n={})=>{const i=e.document[Cx("0xe")];if(i.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Cx("0x10")]:!r[Cx("0x15")];e[Cx("0xa")]((()=>{const t=Array.from(i[Cx("0x8")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0xf")][Cx("0x7")]((t=>{const{data:e}=t;if(e&&e[Cx("0x1")]==s)return e[Cx("0xc")][0][Cx("0x10")]?{type:Cx("0xd"),content:Yo(n,Cx("0x13"))}:{type:Cx("0xd"),content:Yo(n,Cx("0x14"))}}))}}const kx=["plugins","DataSchema","style","_descriptionFactory","getItems","getSelectedBlocks","createRangeOn","getDefinitionsForView","value","config","push","styleName","*Format:* %0","from","toLowerCase","element","enabledStyles","inline","name","commandParams","style.definitions","_getRangesWithClasses","includes","format","commandName","afterInit","isBlock","getAttribute","get","model","style:","editor","classes","enableCommand","Style","forceValue","modelElements","document","_getStyleDefinition","change","markInlineFormat","commands","find","registerDescriptionCallback","TrackChangesEditing","StyleUtils"];var Ax,Rx;Ax=kx,Rx=111,function(t){for(;--t;)Ax.push(Ax.shift())}(++Rx);const vx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[vx("0x6")](){const t=this[vx("0xc")];if(!t[vx("0x1b")].has(vx("0xf")))return;const e=t[vx("0x16")][vx("0x9")](vx("0x1d")),n=t[vx("0x1b")][vx("0x9")](vx("0x19")),o=t.locale,s=t[vx("0x1b")][vx("0x9")](vx("0x1c")),r=t.plugins.get(vx("0x1a")).normalizeConfig(s,t[vx("0x24")].get(vx("0x1")));n[vx("0xe")]("style",((o,{styleName:i})=>{const x=t[vx("0xa")][vx("0x12")].selection,a=this[vx("0x13")](i,r);if(!a)return;if(!e[vx("0x2b")][vx("0x3")](i))return;if(x.isCollapsed&&!a[vx("0x7")])return void o({styleName:i});const c=!e[vx("0x23")][vx("0x3")](a[vx("0x2d")]);if(a[vx("0x7")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[vx("0x3")](o[vx("0x2d")])){n.add(o);break}}return n}(x[vx("0x20")](),a[vx("0x11")]);t[vx("0xa")][vx("0x14")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:vx("0x1d"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:vx("0xb")+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array[vx("0x28")](s[vx("0x22")](a[vx("0x2a")],!1))[0][vx("0xa")],o=[];for(const s of e){const e=this[vx("0x2")](t.model,s,a[vx("0xd")],n);o[vx("0x25")](...e)}e=o}t[vx("0xa")].change((()=>{for(const t of e)n[vx("0x15")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[vx("0x1e")][vx("0x18")]((t=>{const{data:e}=t;if(e&&"style"===e[vx("0x5")])return e.commandParams[0][vx("0x10")]?{type:vx("0x4"),content:Yo(o,vx("0x27"),e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[vx("0x0")][0][vx("0x26")][vx("0x29")]())}}))}[vx("0x13")](t,e){let n=e.block.find((e=>e[vx("0x2d")]===t));return n||(n=e[vx("0x2c")][vx("0x17")]((e=>e[vx("0x2d")]===t))),n}[vx("0x2")](t,e,n,o){const s=[];for(const r of e[vx("0x1f")]()){const e=r[vx("0x8")](o);e&&n.every((t=>e[vx("0xd")][vx("0x3")](t)))&&s[vx("0x25")](t[vx("0x21")](r))}return s}}const Sx=["forceValue","tableRow","getRanges","MAX_SAFE_INTEGER","cell","locale","markMultiRangeDeletion","first","ELEMENT_TABLE_ROW_WITH_TEXT","plugins","enqueueChange","_setupColumnsRowsFixing","filter","insertTableColumnRight","insertTable","*Insert:* %0","createRangeIn","from","ELEMENT_TABLE","classes","getChanges","has","enableCommand","join","writer","last","findAncestor","end","getChangedMarkers","removeTableRow","getAttribute","isInContent","tableCell","getSuggestion","getRowIndexes","isTouching","includes","minColumn","add","setSelection","getChildren","options","TrackChangesEditing","accept","batch","insertTableRowBelow","mapper","push","removeClass","minRow","execute","editor","getFirstRange","insertTableColumnLeft","insertion","table","rootName","hasAttribute","detach","rowspan","tableColumn","refresh","selectTableRow","registerDescriptionCallback","start","ELEMENT_TABLE_ROW","discard","colspan","addMarker:suggestion","maxRow","TableEditing","_tablePostFixingSubtypes","maxColumn","max","selectTableColumn","isIntersectingWithRange","commands","*Remove:* %0","change:data","map","isArray","span","min","registerCustomCallback","differ","tablePaste","addRange","substr","values","nodeBefore","document","nodeAfter","addClass","toLowerCase","change","TableUtils","selection","_suggestionFactory","_descriptionFactory","_getSuggestionCoords","get","root","$graveyard","ELEMENT_TABLE_WITH_TEXT","type","getItems","isEqual","deletion","afterInit","order","subType","oldRange","low","getColumnIndexes","item","position","_tableSuggestions","createRangeOn","model","removeTableColumn","getCellLocation","length","insert","getSelectionAffectedTableCells","left","fromRange","$textProxy","markMultiRangeInsertion","some","MIN_SAFE_INTEGER","data","createPositionAt","ELEMENT_TABLE_COLUMN_WITH_TEXT","createTableWalker","getContainedElement","name"];var Lx,Nx;Lx=Sx,Nx=460,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x13")]=["tableRow",Mx("0x8")],this[Mx("0x40")]=new Set}[Mx("0x38")](){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")].selection;if(!t.plugins[Mx("0x69")](Mx("0x12")))return;const n=t[Mx("0x59")],o=t.plugins[Mx("0x30")]("TrackChangesEditing"),s=t[Mx("0x5d")].get(Mx("0x2b"));o[Mx("0x2e")].registerElementLabel("table",(t=>Yo(n,Mx("0x66"),t))),this[Mx("0x5f")](),o[Mx("0x6a")](Mx("0x62")),o[Mx("0x6a")](Mx("0xa")),o[Mx("0x6a")](Mx("0x16"));for(const n of["insertTableRowAbove",Mx("0x81")]){const r=t.commands[Mx("0x30")](n);o.enableCommand(n,(n=>{t.model[Mx("0x2a")]((t=>{n();const i="above"===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o[Mx("0x4b")](d,Mx("0x55"))}))}))}for(const n of[Mx("0x1"),Mx("0x61")]){const r=t[Mx("0x18")].get(n);o[Mx("0x6a")](n,(n=>{t[Mx("0x42")][Mx("0x2a")]((t=>{n();const i=Mx("0x48")===r[Mx("0x39")],x=s[Mx("0x47")](e),a=s[Mx("0x3d")](x),c=i?a[Mx("0x5b")]-1:a[Mx("0x6d")]+1,l=x[0][Mx("0x6e")]("table"),u=s.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x65")](u)[Mx("0x1b")]((e=>t[Mx("0x41")](e[Mx("0x58")])));o.markMultiRangeInsertion(d,Mx("0x8"))}))}))}for(const n of[Mx("0x71"),Mx("0x43")]){const r=n.substr(11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x1d"),a=Mx("0x3")+r,c="min"+r,l=Mx("0x15")+r;o[Mx("0x6a")](n,(()=>{t[Mx("0x42")].change((t=>{const r=s[Mx("0x47")](e),u=r[0][Mx("0x6e")](Mx("0x3"));let d;if("removeTableRow"==n){const t=s[Mx("0x76")](r);d={startRow:t[Mx("0x5b")],endRow:t[Mx("0x6d")],includeAllSlots:!0}}else{const t=s[Mx("0x3d")](r);d={startColumn:t.first,endColumn:t[Mx("0x6d")],includeAllSlots:!0}}const g=s[Mx("0x51")](u,d),m=Array[Mx("0x65")](g)[Mx("0x1b")]((({cell:t})=>t)),f=Ox(m[Mx("0x60")]((t=>t[Mx("0x5")](x)))),h=Ox(m[Mx("0x60")]((t=>!t[Mx("0x5")](x)))).map((e=>t[Mx("0x41")](e))),p=o[Mx("0x5a")](h,a);if(p&&(Mx("0x55")==p.subType||Mx("0x8")==p[Mx("0x3a")])){const e=this[Mx("0x2f")](p);for(const n of f){const o=t[Mx("0x41")](n),r=s.getCellLocation(n),a=n[Mx("0x72")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x22")](o)}}}))}))}function r(n){const o=Array[Mx("0x65")](e[Mx("0x56")]())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t)));t[Mx("0x42")][Mx("0x2a")]((e=>{const s=e[Mx("0x80")];n=n.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")])),e.setSelection(n),t[Mx("0x18")][Mx("0x30")](Mx("0x71")).refresh(),t.execute(Mx("0x71"),{forceDefaultExecution:!0}),t[Mx("0x42")][Mx("0x5e")]((()=>{t.model.enqueueChange(s,(t=>{const e=o.filter((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));e[Mx("0x45")]>0&&t[Mx("0x7b")](e);for(const t of o)t.detach()}))}))}))}function a(n){t.model.change((o=>{const s=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange[Mx("0x49")](t))),r=[];for(const t of n)for(const e of t[Mx("0x35")]({shallow:!0}))r[Mx("0x83")](e);for(const e of r)"$graveyard"!=e.root.rootName&&(o[Mx("0x7b")](o[Mx("0x4f")](e,0)),t[Mx("0x18")].get(Mx("0x43"))[Mx("0x9")](),t[Mx("0x86")](Mx("0x43"),{forceDefaultExecution:!0}));const x=s[Mx("0x60")]((t=>Mx("0x32")!=t[Mx("0x31")][Mx("0x4")]));x[Mx("0x45")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x6")]()}))}function c(t,e){return e.every((e=>t[Mx("0x4c")]((t=>t[Mx("0x6f")].isEqual(e[Mx("0xc")])||e[Mx("0x6f")][Mx("0x36")](t[Mx("0xc")])))))}function l(t,e){return t.some((t=>e.some((e=>t.end[Mx("0x77")](e[Mx("0xc")])))))}t[Mx("0x4e")].downcastDispatcher.on(Mx("0x10"),((t,e,n)=>{if(!n[Mx("0x7d")].showSuggestionHighlights)return;const o=e[Mx("0x3e")];if(!o)return;const s=n[Mx("0x82")].toViewElement(o);function r(t){return Array[Mx("0x1c")](t)?t:[t]}s&&Mx("0x74")===o[Mx("0x53")]&&(0,x.setHighlightHandling)(s,n[Mx("0x6c")],((t,e,n)=>n[Mx("0x28")](r(e[Mx("0x67")]),t)),((t,e,n)=>n[Mx("0x84")](r(e.classes),t)))}),{priority:"highest"}),o._descriptionFactory[Mx("0xb")]((t=>{if("insertion"!=t[Mx("0x34")]&&"deletion"!=t[Mx("0x34")])return;const e=t[Mx("0x52")]();if(null!=e&&e.is("element",Mx("0x3"))){if(Mx("0x2")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:"insertion",content:Yo(n,Mx("0x63"),Yo(n,Mx("0x33"),'"'+e[Mx("0x6b")](" ")+'"'))}}if(Mx("0x37")==t[Mx("0x34")]){const e=t[Mx("0x35")]().filter((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")]));if(e[Mx("0x45")])return{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x6b")](" ")+'"'))}}}})),o[Mx("0x2e")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[Mx("0x60")]((t=>t.is(Mx("0x4a"))))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this[Mx("0x2f")](t),s=o[Mx("0x11")]-o[Mx("0x85")]+1;if(Mx("0x2")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0xd"),s))};if("deletion"==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x5c"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0xd"),s))}}if(Mx("0x8")==t[Mx("0x3a")]){const e=t[Mx("0x35")]()[Mx("0x60")]((t=>t.is("$textProxy")))[Mx("0x1b")]((t=>t[Mx("0x4e")])),o=this._getSuggestionCoords(t),s=o[Mx("0x14")]-o[Mx("0x79")]+1;if(Mx("0x2")==t[Mx("0x34")])return e.length?{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x2"),content:Yo(n,Mx("0x63"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x37")==t[Mx("0x34")])return e[Mx("0x45")]?{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,Mx("0x50"),[s,'"'+e[Mx("0x6b")](" ")+'"']))}:{type:Mx("0x37"),content:Yo(n,Mx("0x19"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o._suggestionFactory.registerCustomCallback("insertion",Mx("0x55"),Mx("0xe"),r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),Mx("0x55"),"accept",r),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0xe"),a),o._suggestionFactory[Mx("0x1f")](Mx("0x37"),Mx("0x8"),Mx("0x7f"),a),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),"tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")]("deletion","tableColumn",Mx("0x6b"),c),o[Mx("0x2d")][Mx("0x1f")](Mx("0x2"),Mx("0x55"),Mx("0x6b"),l),o[Mx("0x2d")][Mx("0x1f")](Mx("0x37"),"tableRow",Mx("0x6b"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x87")],e=t[Mx("0x42")][Mx("0x26")][Mx("0x2c")];return(n,o)=>{t[Mx("0x42")][Mx("0x2a")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6f")][Mx("0x25")];x&&x[0]&&!1===x[0][Mx("0x54")]&&(a=n[0].start[Mx("0x27")]);const c=s[Mx("0x64")](a);if(Mx("0x32")==c[Mx("0x31")][Mx("0x4")])return;const l=Array[Mx("0x65")](e.getRanges())[Mx("0x1b")]((t=>i.LiveRange.fromRange(t)));s.setSelection(c),t[Mx("0x18")].get(r)[Mx("0x9")](),x[Mx("0x83")]({forceDefaultExecution:!0}),t[Mx("0x86")](r,...x);const u=l[Mx("0x60")]((t=>Mx("0x32")!=t.root[Mx("0x4")]));u[Mx("0x45")]>0&&s[Mx("0x7b")](u);for(const t of l)t[Mx("0x6")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x87")][Mx("0x5d")][Mx("0x30")](Mx("0x2b"));let n=Number[Mx("0x57")],o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x57")],r=Number[Mx("0x4d")];for(const i of t){if("$graveyard"==i[Mx("0x31")][Mx("0x4")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x5")](Mx("0x7"))?i.getAttribute(Mx("0x7"))-1:0,c=i[Mx("0x5")](Mx("0xf"))?i[Mx("0x72")](Mx("0xf"))-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("0x87")],e=t[Mx("0x5d")][Mx("0x30")](Mx("0x7e")),n=t.plugins[Mx("0x30")]("TableUtils");t[Mx("0x42")][Mx("0x26")].on(Mx("0x1a"),(()=>{const n=Array.from(t[Mx("0x42")].document[Mx("0x20")][Mx("0x70")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Mx("0x3b")])continue;const i=e[Mx("0x75")](s);this[Mx("0x13")][Mx("0x78")](r)&&this[Mx("0x40")][Mx("0x7a")](i)}}),{priority:Mx("0x3c")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x3")),i=n[Mx("0x44")](t);for(const e of this[Mx("0x40")]){const n=e[Mx("0x3a")],x=n.startsWith(Mx("0x21")),a=n[Mx("0x23")](x?10:5),c=a[Mx("0x29")](),l=c[Mx("0x23")](0,3)+Mx("0x1d"),u=Mx("0x1e")+a,d=Mx("0x15")+a;if(!e[Mx("0x73")])continue;if(r!=e[Mx("0x0")]()[Mx("0xc")][Mx("0x6e")]("table"))continue;if(e[Mx("0x17")](s))continue;const g=t[Mx("0x5")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x22")](s),o=!0)}return o};t[Mx("0x42")][Mx("0x26")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x42")][Mx("0x26")][Mx("0x20")][Mx("0x68")]())if(Mx("0x46")==s.type)if("tableRow"==s[Mx("0x53")])for(const t of s[Mx("0x3f")][Mx("0x27")][Mx("0x7c")]())n=n||o(t,e);else Mx("0x74")==s[Mx("0x53")]&&(n=n||o(s[Mx("0x3f")].nodeAfter,e));return n}))}[Mx("0x2f")](t){return this._getCoordsForCells(t.getRanges()[Mx("0x1b")]((t=>t.start[Mx("0x27")])))}}function Ox(t){return Array[Mx("0x65")](new Set(t)[Mx("0x24")]())}const Fx=["getSuggestions","registerCustomCallback","enableCommand","requires","cell","map","_areMergableCells","document","set:isEnabled","getAncestors","$graveyard","splitTableCellHorizontally","insertion","mergeTableCells","_descriptionFactory","TrackChangesEditing","containsRange","getRanges","commandName","markBlockFormat","_acceptFormatSuggestionCallbackFactory","trackChanges","setSelection","selection","get","mergeTableCellLeft","low","value","has","author","getSelectionAffectedTableCells","mergeTableCellDown","_suggestionFactory","add","mergeTableCellRight","locale","from","splitTableCellVertically","markMultiRangeBlockFormat","filter","mergeTableCellUp","find","root","commands","isInContent","afterInit","registerDescriptionCallback","length","*Merge cells*","getFirstPosition","format","createTableWalker","TableEditing","getCellLocation","*Split cell:* vertically","change","push","tableCell","_areSelectedCellsMergable","rootName","editor","deletion","isEnabled","plugins","table","forceDefaultExecution","element","type","*Split cell:* horizontally","refresh","return","size","execute","_tablePostFixingSubtypes","model","direction","createRangeOn","highest","fromRange","formatBlock","subType"];var Px,Dx;Px=Fx,Dx=359,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("0x31")](){return[wx]}[Bx("0xa")](){const t=this[Bx("0x19")],e=t[Bx("0x27")][Bx("0x35")].selection,n=t[Bx("0x0")];if(!t.plugins[Bx("0x4a")](Bx("0x11")))return;const o=t[Bx("0x1c")][Bx("0x46")]("TrackChangesEditing"),s=t.plugins.get("TableUtils"),r=t.plugins[Bx("0x46")](wx);r[Bx("0x26")][Bx("0x15")]("mergeTableCells"),o[Bx("0x30")](Bx("0x3b"),(()=>{const e=s[Bx("0x4c")](t[Bx("0x27")][Bx("0x35")][Bx("0x45")]);t[Bx("0x27")][Bx("0x14")]((()=>{o[Bx("0x3")](e,{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x8")][Bx("0x46")](Bx("0x3b")).on(Bx("0x25"),((e,n)=>{t[Bx("0x8")].get(Bx("0x43")).value&&(n[Bx("0xc")]>0&&n[n[Bx("0xc")]-1]&&n[n.length-1][Bx("0x1e")]||o._isForcedDefaultExecutionBlock||this[Bx("0x17")]()||e.stop())}),{priority:Bx("0x2a")});for(const e of[Bx("0x5"),Bx("0x50"),Bx("0x4d"),Bx("0x47")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const e=t.model[Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16")))),s=n[Bx("0x49")];t[Bx("0x27")][Bx("0x14")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x3b"),commandParams:[]},[],Bx("0x3b"))}))}))}for(const e of[Bx("0x2"),Bx("0x39")]){const n=t[Bx("0x8")][Bx("0x46")](e);o[Bx("0x30")](e,(()=>{const r=s[Bx("0x4c")](t.model[Bx("0x35")][Bx("0x45")])[0],i=r.findAncestor(Bx("0x1d")),{column:x,row:a}=s[Bx("0x12")](r);let c=[];if("horizontally"==n[Bx("0x28")]){const t=s[Bx("0x10")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t.cell))}else{const t=s[Bx("0x10")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x1")](t)[Bx("0x33")]((t=>t[Bx("0x32")]))}t[Bx("0x27")][Bx("0x14")]((t=>{o[Bx("0x41")](t[Bx("0x29")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x40")]?{type:Bx("0xf"),content:Yo(n,Bx("0xd"))}:void 0})),o[Bx("0x3c")][Bx("0xb")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x40")]?{type:"format",content:Yo(n,Bx("0x13"))}:"splitTableCellHorizontally"==e.commandName?{type:"format",content:Yo(n,Bx("0x21"))}:void 0}));const x=r[Bx("0x42")]();for(const t of["mergeTableCellUp",Bx("0x50"),Bx("0x4d"),Bx("0x47")])o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),t,"accept",x);for(const t of[Bx("0x2"),Bx("0x39")])o[Bx("0x4e")].registerCustomCallback(Bx("0x2c"),t,"accept",x);o[Bx("0x4e")][Bx("0x2f")](Bx("0x2c"),Bx("0x3b"),"accept",(n=>{t[Bx("0x27")][Bx("0x14")]((o=>{const s=Array.from(e[Bx("0x3f")]()).map((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x44")](n),t[Bx("0x8")][Bx("0x46")](Bx("0x3b"))[Bx("0x22")](),t[Bx("0x25")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[Bx("0x4")]((t=>Bx("0x38")!=t[Bx("0x7")][Bx("0x18")]));r[Bx("0xc")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x5"),Bx("0x4d"),Bx("0x47"),"mergeTableCellRight"]){const n=t[Bx("0x8")][Bx("0x46")](e);n.on(Bx("0x36"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x35")][Bx("0x45")][Bx("0xe")]()[Bx("0x37")]()[Bx("0x6")]((t=>t.is(Bx("0x1f"),Bx("0x16"))));this[Bx("0x34")](n.value,o)||(e[Bx("0x23")]=!1,e.stop())}}),{priority:Bx("0x48")})}}[Bx("0x17")](){const t=this[Bx("0x19")].commands[Bx("0x46")](Bx("0x3b")),e=this[Bx("0x19")].plugins.get("TableUtils");if(!t[Bx("0x1b")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x19")][Bx("0x27")][Bx("0x35")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Bx("0x34")](t,e){const n=this[Bx("0x19")][Bx("0x1c")][Bx("0x46")](Bx("0x3d")),o=this[Bx("0x19")][Bx("0x27")][Bx("0x29")](t),s=this[Bx("0x19")].model[Bx("0x29")](e),r=new Set,i=new Set;for(const t of n[Bx("0x2e")]())if((Bx("0x3a")==t.type||Bx("0x1a")==t.type||Bx("0x3b")==t[Bx("0x2d")])&&t[Bx("0x9")])for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x4f")](t[Bx("0x20")]+":"+t[Bx("0x4b")].id),e[Bx("0x3e")](s,!0)&&i.add(t[Bx("0x20")]+":"+t[Bx("0x4b")].id);if(r[Bx("0x24")]!=i[Bx("0x24")])return!1;for(const t of r)if(!i[Bx("0x4a")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","commandName","TableUtils","parent","setTableRowHeader","bindElementToMarker","markBlockFormat","addClass","createTableWalker","removeMarker:suggestion","mapper","getCellLocation","highest","data-suggestion","FORMAT_HEADER_COLUMN","nodeBefore","_suggestionFactory","model","first","setTableColumnHeader","item","forceValue","_acceptFormatSuggestionCallbackFactory","getChild","FORMAT_HEADER_ROW","requires","commandParams","value","getRowIndexes","selection","editing","createPositionAfter","from","isBefore","table","getSelectionAffectedTableCells","FORMAT_REGULAR_COLUMN","end","createRange","formatBlock","data","last","ck-suggestion-marker--active","consumable","afterInit","enableCommand","registerCustomCallback","plugins","showSuggestionHighlights","stop","removeAttribute","FORMAT_REGULAR_ROW","_splitMarkerName","document","consume","markerName","headingColumns","commands","writer","options","has","getColumnIndexes","getAttribute","*Format:* %0","removeClass","downcastDispatcher","cell","registerDescriptionCallback","childCount","createPositionBefore","markerRange","accept","name","addMarker:suggestion","start","index","setAttribute","nodeAfter","get","findAncestor"];var Gx,Hx;Gx=Ux,Hx=189,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("0x4c")](){return[wx]}[zx("0xf")](){const t=this.editor;if(!t[zx("0x12")][zx("0x1f")]("TableEditing"))return;const e=t.locale,n=t.plugins.get("TrackChangesEditing"),o=t[zx("0x12")][zx("0x31")]("TableUtils"),s=t[zx("0x12")][zx("0x31")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x17")](r[zx("0x1a")]),c=n.getSuggestion(a);if(!c[zx("0xb")]||zx("0x46")!=c[zx("0xb")][zx("0x34")])return;if(r[zx("0x47")])return void s[zx("0x14")]();if(!i[zx("0xe")][zx("0x19")](r[zx("0x29")],s[zx("0x2b")]))return;const l=r[zx("0x29")][zx("0x2d")][zx("0x30")],u=r.markerRange[zx("0x8")][zx("0x42")],d=l[zx("0x36")].parent,{column:g}=o[zx("0x3e")](l),{column:m}=o[zx("0x3e")](u);for(let s=g;s<=m;s++){const c=o[zx("0x3b")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x25")],c=i[zx("0x3d")].toViewElement(s);i[zx("0x1d")][zx("0x3a")](zx("0x33")+x,c),e&&i.writer[zx("0x2f")]("data-suggestion",a,c),i[zx("0x3d")][zx("0x38")](c,r[zx("0x1a")]),t&&(n.activeMarkers.includes(r.markerName)?i[zx("0x1d")][zx("0x3a")]("ck-suggestion-marker--active",c):i[zx("0x1d")][zx("0x23")](zx("0xd"),c))}}}}n.enableCommand(zx("0x37"),((e,s)=>{const r=o[zx("0x6")](t[zx("0x44")][zx("0x18")][zx("0x0")]),i=o[zx("0x4f")](r),x=r[0][zx("0x32")](zx("0x5")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[zx("0x48")]?s[zx("0x48")]:!t[zx("0x1c")][zx("0x31")]("setTableRowHeader")[zx("0x4e")],l=c?i[zx("0xc")]:i.first,u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u[zx("0x2e")]<e[zx("0x2e")])return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](e[zx("0x4a")](0)),t[zx("0x44")].createPositionAfter(u.getChild(u[zx("0x27")]-1)))}else{const e=x[zx("0x4a")](a-1);if(!e)return;d=t.model[zx("0x9")](t[zx("0x44")][zx("0x28")](u[zx("0x4a")](0)),t[zx("0x44")][zx("0x2")](e[zx("0x4a")](e[zx("0x27")]-1)))}t[zx("0x44")].change((()=>{n[zx("0x39")](d,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x10")](zx("0x46"),((e,o)=>{const s=t[zx("0x12")][zx("0x31")](zx("0x35")),r=s.getSelectionAffectedTableCells(t[zx("0x44")].document[zx("0x0")]),i=s[zx("0x20")](r),x=r[0][zx("0x32")](zx("0x5")),a=x[zx("0x21")](zx("0x1b"))||0,c=o&&null!==o.forceValue?o[zx("0x48")]:!t[zx("0x1c")][zx("0x31")](zx("0x46"))[zx("0x4e")];let l;const u=x.getChild(0),d=c?i[zx("0xc")]:i[zx("0x45")],g=s[zx("0x3b")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x3")](g)[0][zx("0x25")];if(c){const e=u.getChild(a);if(m[zx("0x4")](e))return;l=t[zx("0x44")][zx("0x9")](t[zx("0x44")][zx("0x28")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x4a")](a-1);if(!e)return;l=t[zx("0x44")][zx("0x9")](t.model[zx("0x28")](m),t[zx("0x44")][zx("0x2")](e))}t[zx("0x44")].change((()=>{n.markBlockFormat(l,{commandName:zx("0x46"),commandParams:[{forceValue:c}]},[],zx("0x46"))}))})),t[zx("0x1")][zx("0x24")].on(zx("0x2c"),r(),{priority:zx("0x3f")}),t.data[zx("0x24")].on(zx("0x2c"),((t,e,n)=>{n[zx("0x1e")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x3f")}),t[zx("0x1")][zx("0x24")].on(zx("0x3c"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x1a")]),i=n.getSuggestion(r);if(!i[zx("0xb")]||zx("0x46")!=i.data.commandName)return;const x=o[zx("0x3d")].markerNameToElements(e[zx("0x1a")]);if(x)for(const t of x)o.writer[zx("0x23")](zx("0x33")+s,t),o[zx("0x1d")][zx("0x23")]("ck-suggestion-marker--active",t),o.writer[zx("0x15")](zx("0x40"),t),o[zx("0x3d")].unbindElementFromMarkerName(t,e[zx("0x1a")])}),{priority:"highest"}),n._descriptionFactory[zx("0x26")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x34")]){const t=n.commandParams[0][zx("0x48")];return o(Yo(e,zx(t?"0x4b":"0x16")))}if(zx("0x46")==n[zx("0x34")]){const t=n[zx("0x4d")][0][zx("0x48")];return o(Yo(e,zx(t?"0x41":"0x7")))}}function o(t){return{type:"format",content:Yo(e,zx("0x22"),t)}}}));const i=s[zx("0x49")]();n[zx("0x43")][zx("0x11")]("formatBlock","setTableRowHeader",zx("0x2a"),i),n[zx("0x43")][zx("0x11")](zx("0xa"),zx("0x46"),zx("0x2a"),i)}}const Vx=["newRange","length","elementToElement","isEmpty","cells","endColumn","columnInsertionRanges","*Replace table cells*","markMultiRangeDeletion","updateMarker","insert","tablePasteColumn","remove","deletion","createRange","suggestion:formatBlock:tablePasteCell","activeMarkers","name","ck-suggestion-marker-insertion","suggestion-td","markerToHighlight","editingDowncast","getItems","push","reduce","previous","TableClipboard","tableCellBorderColor","register","tableCellSuggestion","commands","element","markerName","subType","suggestionUnloaded","insertion","view","first","tableCellHorizontalAlignment","some","rows","suggestion","removeMarkers","getSuggestion","removeMarker","tablePaste","tableCellVerticalAlignment","createElement","cell","removeColumns","high","map","getRowIndexes","model","removeRows","end","registerPostFixer","editor","getAllAdjacentSuggestions","next","get","find","_getCoordsForCells","getContainedElement","deletionRanges","tableCell","differ","requires","table","getChanges","_descriptionFactory","stop","batch","ck-suggestion-marker","createRangeOn","columns","add","getRange","root","start","nodeAfter","change","join","_suggestionFactory","isEqual","markMultiRangeInsertion","discard","getTableIfOnlyTableInContent","insertColumns","fill","getSuggestions","isInContent","Users","tablePasteRow","conversion","tableCellBorderWidth","type","low","getRows","containsRange","rowInsertionRanges","_tablePostFixingSubtypes","every","createRangeIn","position","from","rowInsertionIndexes","registerCustomCallback","startsWith","fromEntries","set","unwrap","setAttributes","afterInit","getColumnIndexes","markerAttributes","columnInsertionIndexes","getChangedMarkers","getSelectionAffectedTableCells","tablePasteChainId","document","forceDefaultExecution","_replaceTableSlotCell","includes","insertContent","getMarkers","_splitMarkerName","_isForcedDefaultExecutionBlock","$graveyard","getColumns","entries","plugins","_createdBatches","keys","tablePasteCell","tableCellBorderStyle","getRanges","for","getChild","findAncestor","getAttributes","accept","dataDowncast","filter","getChildren","has","wrap","formatBlock","tableCellBackgroundColor","paragraph","oldRange","createTableWalker","insertionRanges","attributes","locale","setAttribute"];var Kx,qx;Kx=Vx,qx=383,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x18"),Xx("0x70"),Xx("0x40"),Xx("0x7b"),Xx("0x83"),Xx("0x4d"),"tableCellPadding"],Jx=Object.fromEntries($x[Xx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x98")](){return[wx]}[Xx("0x2a")](){const t=this[Xx("0x8e")];if(!t[Xx("0x3c")][Xx("0x4a")](Xx("0x6f")))return;const n=t[Xx("0x3c")][Xx("0x91")]("TrackChangesEditing"),o=t[Xx("0x3c")][Xx("0x91")]("TableUtils"),s=t[Xx("0x3c")][Xx("0x91")](wx),r=t[Xx("0x3c")].get(Xx("0x6f"));s[Xx("0x1e")].push(Xx("0x16"),Xx("0x60")),t.model.schema[Xx("0x71")](Xx("0x72"),{allowIn:Xx("0x96"),allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x17")][Xx("0x57")]({model:Xx("0x72"),view:Xx("0x68")});let i=null;t[Xx("0x8a")].on(Xx("0x35"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x56")]-1];l&&l[Xx("0x32")]||n[Xx("0x38")]||this[Xx("0x8e")][Xx("0x73")].get("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Xx("0x10")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x2f")](n[Xx("0x31")].selection);if(!i[Xx("0x56")])return!1;const x=i[0].findAncestor(Xx("0x99")),a=o[Xx("0x89")](i),c=o[Xx("0x2b")](i),l={startRow:a[Xx("0x7a")],endRow:a.last,startColumn:c[Xx("0x7a")],endColumn:c.last};return 1==i.length&&(l.endRow+=o[Xx("0x1b")](r)-1,l[Xx("0x5a")]+=o[Xx("0x3a")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x8a")],o,r)&&(s[Xx("0x0")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x8a")].change((()=>{t[Xx("0x8a")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0xe")](s,"tablePasteRow",{tablePasteChainId:o}),r[Xx("0x56")]&&n[Xx("0xe")](r,Xx("0x60"),{tablePasteChainId:o}),a[Xx("0x56")]&&n[Xx("0xe")](a,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[Xx("0x5d")](c,Xx("0x82"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Xx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3f"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x8a")][Xx("0x3")](o),i=e[Xx("0x92")]((t=>t.getRange().isEqual(r)));i&&n[Xx("0x6c")]([i[Xx("0x66")],s])}n[Xx("0x56")]&&u[Xx("0x54")](Xx("0x2c"),Object[Xx("0x26")](n))}i=null})))}),{priority:e.priorities[Xx("0x87")]+10}),t[Xx("0x3c")][Xx("0x91")](Xx("0x6f")).on(Xx("0x33"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Xx("0x85")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,u=null;if(c||a)if(a&&!c){s[Xx("0x61")](r[Xx("0x43")](0));for(const t of Array.from(x[Xx("0x49")]()))s[Xx("0x5f")](t,r,"end");const t=i.rowInsertionIndexes.includes(n.row),e=i[Xx("0x2d")][Xx("0x34")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[Xx("0x20")](r));else{const t=s[Xx("0x84")](Xx("0x72")),e=s[Xx("0x84")](Xx("0x72"));s[Xx("0x4b")](s[Xx("0x20")](r),e),s[Xx("0x5f")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x5f")](e,t,Xx("0x8c"));l=s[Xx("0x3")](t),u=s[Xx("0x3")](e)}const d=Array[Xx("0x22")](x[Xx("0x45")]())[Xx("0x48")]((([t])=>$x[Xx("0x34")](t)));i[Xx("0x59")][Xx("0x6c")]({element:r,attributes:d[Xx("0x56")]?Object.fromEntries(d):null}),l&&i[Xx("0x51")][Xx("0x6c")](l),u&&i[Xx("0x95")][Xx("0x6c")](u)}),{priority:Xx("0x87")}),o.on(Xx("0x11"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x4")]||1;i[Xx("0x2d")]=new Array(a).fill(x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5b")].push(t[Xx("0x8a")][Xx("0x3")](e))}),{priority:Xx("0x1a")}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x7d")]||1;i[Xx("0x23")]=new Array(a)[Xx("0x12")](x)[Xx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x50")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1d")].push(t[Xx("0x8a")].createRangeOn(e))}),{priority:Xx("0x1a")}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return e[Xx("0x6e")]?{}:{type:Xx("0x78"),content:Yo(t[Xx("0x53")],Xx("0x5c"))}}));const x=()=>{};for(const t of[Xx("0x82"),Xx("0x60"),Xx("0x16"),Xx("0x3f")])n[Xx("0xc")][Xx("0x24")](Xx("0x78"),t,Xx("0xb"),x),n[Xx("0xc")][Xx("0x24")](Xx("0x62"),t,Xx("0xb"),x);n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),Xx("0x3f"),"discard",x),n[Xx("0xc")][Xx("0x24")](Xx("0x4c"),"tablePasteCell",Xx("0x46"),((e,n,o)=>{const s=e[Xx("0x88")]((t=>t[Xx("0x94")]()))[Xx("0x48")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x59")])e&&r[Xx("0x27")](t,e);else if(o&&o[Xx("0x2c")])for(const[e,n]of Object[Xx("0x3b")](o.markerAttributes)){const o=t[Xx("0x8a")].markers[Xx("0x91")](e),s=o?o[Xx("0x6")]()[Xx("0x94")]():null;s&&r.set(s,n)}t[Xx("0x8a")].change((t=>{for(const[e,n]of r)t[Xx("0x29")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0xc")][Xx("0x24")](e,Xx("0x82"),o,((s,r,i)=>{t[Xx("0x8a")][Xx("0xa")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x8")][Xx("0x9")];e.is("element",Xx("0x72"))&&x[Xx("0x6c")](e)}n[Xx("0xc")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x39")!=e[Xx("0x7")].rootName&&t.unwrap(e)}))}))};a(Xx("0x78"),Xx("0x46")),a(Xx("0x78"),Xx("0xf")),a(Xx("0x62"),Xx("0x46")),a(Xx("0x62"),Xx("0xf")),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x16"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0x8b")](n,{at:r,rows:i-r+1})})),n[Xx("0xc")][Xx("0x24")](Xx("0x78"),Xx("0x60"),Xx("0xf"),(t=>{const e=t[Xx("0x88")]((t=>t[Xx("0x94")]())),n=e[0][Xx("0x44")](Xx("0x99")),{minColumn:r,maxColumn:i}=s[Xx("0x93")](e);o[Xx("0x86")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x76")]||!e[Xx("0x76")][Xx("0x25")](Xx("0x82")))return;const o=e[Xx("0x52")][Xx("0x30")],s=n[Xx("0x13")]().filter((t=>t[Xx("0x14")]&&t[Xx("0x52")]&&t[Xx("0x52")][Xx("0x30")]==o));s[Xx("0x56")]&&e.getAllAdjacentSuggestions()[Xx("0x56")]!=s.length&&s[Xx("0x6d")](((t,e)=>(t[Xx("0x90")]=e,e[Xx("0x6e")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x37")](t[Xx("0x75")]),s=[Xx("0x2"),Xx("0x67")],r=n[Xx("0x65")].includes(t.markerName);return r&&s[Xx("0x6c")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Xx("0x87")}),n.on(Xx("0x77"),c,{priority:Xx("0x87")}),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x22")](t[Xx("0x8a")][Xx("0x31")][Xx("0x97")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x37")](s);if("suggestion"!=o||"deletion"!=i||r[Xx("0x4f")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x80")](x)[Xx("0x41")](),c=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me;for(const t of n[Xx("0x13")]())if(t[Xx("0x14")]&&t.author==c&&"formatBlock"==t[Xx("0x19")]&&Xx("0x3f")==t[Xx("0x76")]&&t[Xx("0x41")]()[Xx("0x1f")]((t=>a[Xx("0x7c")]((e=>e[Xx("0x1c")](t,!0))))))for(const n of t[Xx("0x8f")]())n[Xx("0x14")]&&(n[Xx("0xf")](),e=!0)}return e})),t[Xx("0x8a")][Xx("0x31")].registerPostFixer((e=>{const o=t.commands[Xx("0x91")]("redo");if(!o||!o[Xx("0x3d")][Xx("0x4a")](e[Xx("0x1")]))return!1;let s=!1;const r=t[Xx("0x3c")][Xx("0x91")](Xx("0x15")).me,i=t[Xx("0x8a")].document.differ[Xx("0x9a")](),x=Array[Xx("0x22")](t[Xx("0x8a")].document.differ[Xx("0x2e")]())[Xx("0x48")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x37")](t);return Xx("0x7e")==o&&Xx("0x82")==s&&i==r.id&&!e[Xx("0x4f")]}));for(const t of i){if(Xx("0x5f")!=t.type||Xx("0x72")!=t[Xx("0x66")]||1!=t[Xx("0x56")])continue;const n=e[Xx("0x63")](t[Xx("0x21")],t[Xx("0x21")].getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x55")][Xx("0xd")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x5e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x31")][Xx("0x8d")]((e=>{let o=!1;const s=t[Xx("0x3c")].get(Xx("0x15")).me,r=n[Xx("0x13")]()[Xx("0x48")]((t=>t[Xx("0x14")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x82")==t[Xx("0x76")])for(const e of t[Xx("0x36")]()){const n=e[Xx("0x6")]()[Xx("0x94")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x66")]),i.add(n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is(Xx("0x74"),Xx("0x72")),c=r&&r.is(Xx("0x74"),Xx("0x72"));a&&!i[Xx("0x4a")](s)&&x[Xx("0x5")](s),c&&!i.has(r)&&x[Xx("0x5")](r)}else n.is(Xx("0x74"),Xx("0x4e"))&&n[Xx("0x58")]&&(t[Xx("0x81")](e.name),o=!0)}else if(Xx("0x3f")==t[Xx("0x76")]){if(!t[Xx("0x52")]||!t.attributes[Xx("0x30")])continue;const e=t.attributes[Xx("0x2c")];if(e&&Object[Xx("0x3e")](e)[Xx("0x56")])continue;const n=t.attributes[Xx("0x30")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x76")]&&e[Xx("0x76")][Xx("0x25")]("tablePaste")){if(!e.attributes[Xx("0x30")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x52")][Xx("0x30")]==n){s=!1;break}}i&&s&&(t[Xx("0x7f")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x28")](t);return o})),t[Xx("0x17")][Xx("0x42")](Xx("0x6a"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>l(t),converterPriority:Xx("0x87")}),t[Xx("0x17")][Xx("0x42")](Xx("0x47"))[Xx("0x69")]({model:Xx("0x64"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const u=t.editing[Xx("0x79")];this.listenTo(u[Xx("0x31")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Xx("0x20")](e.content)[Xx("0x6b")]())t.is(Xx("0x74"),Xx("0x68"))&&n[Xx("0x6c")](t);u[Xx("0xa")]((t=>{for(const e of n)t.move(t[Xx("0x20")](e),t.createPositionBefore(e)),t[Xx("0x61")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x43")](0);return e.is("element","paragraph")&&e[Xx("0x58")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x50")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_descriptionFactory","columnWidths","formatGroupId","locale","resizeTableWidth","Users","subType","registerCustomCallback","formatBlock","model","has","getContainedElement","plugins","enableCommand","_suggestionFactory","markBlockFormat","resizeColumnWidths","discard","handleSuggestionDescription","getAttribute","format","registerDescriptionCallback","tableWidth","getTableColumnsWidths","handleResizeTableWidthCommand","editor","bind","table","author","getColumnGroupElement","commandParams","accept","*Format:* resize table","resizeTable","get","getSelectedElement","data","selection","change"];var ea,na;ea=ta,na=356,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("0x1e")].plugins[oa("0xf")]("TableColumnResizeEditing"))return;const t=this[oa("0x1e")].plugins[oa("0x27")]("TrackChangesEditing");t[oa("0x12")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t.enableCommand(oa("0x15"),this[oa("0x1d")].bind(this)),t[oa("0x13")].registerCustomCallback("formatBlock",oa("0x26"),oa("0x24"),t[oa("0x13")].getSuggestionCallback(oa("0xd"),null,oa("0x16"))),t._suggestionFactory[oa("0xc")](oa("0xd"),oa("0x26"),oa("0x16"),t[oa("0x13")].getSuggestionCallback("formatBlock",null,oa("0x24"))),t[oa("0x5")][oa("0x1a")](this.handleSuggestionDescription[oa("0x1f")](this))}[oa("0x1d")](t,e){const n=this[oa("0x1e")][oa("0x11")].get("TrackChangesEditing"),o=this[oa("0x1e")].plugins[oa("0x27")](oa("0x4")),s=e[oa("0x20")]||this[oa("0x1e")][oa("0xe")].document[oa("0x2")][oa("0x0")]();this[oa("0x1e")][oa("0xe")][oa("0x3")]((()=>{const r=o[oa("0x22")](s);let i=r?o[oa("0x1c")](r):null,x=s[oa("0x18")](oa("0x1b"))||null;const a=e.tableWidth||x,c=e[oa("0x6")]||i,l=this[oa("0x1e")].plugins[oa("0x27")](oa("0xa")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x26")===t[oa("0xb")]&&e===s){t[oa("0x21")]!==l&&t[oa("0x16")]();const e=t[oa("0x1")][oa("0x23")];x=e[0][oa("0x1b")],i=e[0][oa("0x6")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x9"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x26")},[],oa("0x26"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&oa("0x26")===e[oa("0x7")]){const t=oa("0x25");return{type:oa("0x19"),content:Yo(this[oa("0x1e")][oa("0x8")],t)}}}}const ra=["get","plugins","editor","has","afterInit","enableCommand","insertTemplate"];var ia,xa;ia=ra,xa=139,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x3")];t[aa("0x2")][aa("0x4")]("Template")&&t[aa("0x2")][aa("0x1")]("TrackChangesEditing")[aa("0x6")](aa("0x0"))}}const la=["commands","afterInit","insertTableOfContents","plugins","registerElementLabel","get","_descriptionFactory","TrackChangesEditing"];var ua,da;ua=la,da=456,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this.editor;if(!t[ga("0x0")][ga("0x5")](ga("0x2")))return;t[ga("0x3")][ga("0x5")](ga("0x7")).enableCommand(ga("0x2"));const e=t[ga("0x3")][ga("0x5")](ga("0x7")),n=t.locale;e[ga("0x6")][ga("0x4")]("tableOfContents",(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["registerPostFixer","start","element","end","from","get","title-content","registerElementLabel","suggestion","newRange","model","document","forward","Title","isEqual","differ","schema","locale","afterInit","nodeBefore","getNearestSelectionRange","TrackChangesEditing","plugins","getChangedMarkers","createRange"];var ha,pa;ha=fa,pa=251,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x11")](){const t=this.editor;if(!t[ba("0x15")].has(ba("0xc")))return;const e=t[ba("0x15")][ba("0x4")](ba("0x14"));e._descriptionFactory[ba("0x6")]("title-content",(()=>Yo(t[ba("0x10")],"ELEMENT_TITLE"))),t[ba("0x9")][ba("0xa")][ba("0x18")]((n=>{let o=!1;const s=Array[ba("0x3")](t[ba("0x9")][ba("0xa")][ba("0xe")][ba("0x16")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x7")!==s||!i.newRange)continue;const x=i[ba("0x8")],a=x[ba("0x2")][ba("0x12")];if(!a||!a.is(ba("0x1"),ba("0x5")))continue;if(!x[ba("0x0")].isTouching(x[ba("0x2")]))continue;const c=t[ba("0x9")][ba("0xf")][ba("0x13")](x[ba("0x2")],ba("0xb"));if(c&&c.isCollapsed){const t=n[ba("0x17")](x[ba("0x0")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["plugins","editor","TrackChangesEditing","afterInit","redo","enableCommand","undo","has","UndoEditing"];var Ta,Ca;Ta=_a,Ca=250,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x3")],e=t[ya("0x2")].get(ya("0x4"));t[ya("0x2")][ya("0x0")](ya("0x1"))&&(e[ya("0x7")](ya("0x8")),e.enableCommand(ya("0x6")))}}const Aa=["has","afterInit","TrackChangesEditing","enableCommand","get","plugins","editor"];var Ra,va;Ra=Aa,va=188,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get requires(){return[wx]}[Ia("0x2")](){const t=this[Ia("0x0")];t[Ia("0x6")][Ia("0x1")]("TableCaptionEditing")&&t[Ia("0x6")][Ia("0x5")](Ia("0x3"))[Ia("0x4")]("toggleTableCaption")}}const La=["_getSuggestionBlocks","plugins","commandParams","type","model","handleListStyleCommand","selection","TrackChangesEditing","*Format:* set order to reversed","isFirstBlockOfListItem","afterInit","DocumentListUtils","handleListStartCommand","change","*Format:* set start index to %0","listStart","push","config","isListItemBlock","getSelectedBlocks","commandName","_getTranslationKeyForListStyle","reversed","*Change to:* %0","getAttribute","has","handleListReversedCommand","registerDescriptionCallback","format","editor","listStyle","enableCommand","_getSuggestionBlocksForListStyle","expandListBlocksToCompleteList","_descriptionFactory","document","markMultiRangeBlockFormat","listType","startIndex","styles","bind","get","listReversed","numbered","DocumentListPropertiesUtils","getListTypeFromListStyleType","from","length","toUpperCase","replace","_LIST_","handleDescriptions"];var Na,Ma;Na=La,Ma=498,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x20")](){if(!this[wa("0x33")][wa("0x17")][wa("0x2f")]("DocumentListPropertiesEditing"))return;const t=this.editor[wa("0x27")][wa("0xb")]("list.properties"),e=this.editor[wa("0x17")][wa("0xb")](wa("0x1d"));t[wa("0x9")]&&e[wa("0x1")](wa("0x0"),this.handleListStyleCommand[wa("0xa")](this)),t.reversed&&e[wa("0x1")](wa("0xc"),this.handleListReversedCommand[wa("0xa")](this)),t[wa("0x8")]&&e[wa("0x1")](wa("0x25"),this[wa("0x22")][wa("0xa")](this)),e[wa("0x4")][wa("0x31")](this.handleDescriptions[wa("0xa")](this))}[wa("0x1b")](t,e={}){const n=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x2")]();this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n[wa("0x6")](o,{commandName:wa("0x0"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:wa("0x0")})}))}[wa("0x30")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o[wa("0x28")](t)&&"numbered"===t[wa("0x2e")]("listType")));null!==s&&this[wa("0x33")][wa("0x1a")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xc"),commandParams:[{reversed:e[wa("0x2c")]}],formatGroupId:wa("0xc")})}))}[wa("0x22")](t,e={}){const n=this.editor[wa("0x17")][wa("0xb")](wa("0x1d")),o=this[wa("0x33")][wa("0x17")][wa("0xb")](wa("0x21")),s=this[wa("0x16")]((t=>o.isListItemBlock(t)&&wa("0xd")===t.getAttribute(wa("0x7"))));null!==s&&this[wa("0x33")][wa("0x1a")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x25"),commandParams:[{startIndex:e[wa("0x8")]}],formatGroupId:wa("0x25")})}))}[wa("0x15")](t){const e=this[wa("0x33")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2a")]){case wa("0x0"):o=wa("0x2d"),s={type:wa("0x32"),content:Yo(e,o,Yo(e,this[wa("0x2b")](n[wa("0x18")][0].type)))};break;case"listReversed":o=n[wa("0x18")][0][wa("0x2c")]?wa("0x1e"):"*Format:* set order to regular",s={type:wa("0x32"),content:Yo(e,o)};break;case wa("0x25"):o=wa("0x24"),s={type:wa("0x32"),content:Yo(e,o,n[wa("0x18")][0].startIndex)}}return s}[wa("0x2")](){const t=this[wa("0x33")].plugins.get(wa("0x21"));let e=Array[wa("0x10")](this[wa("0x33")].model[wa("0x5")][wa("0x1c")][wa("0x29")]());return e[wa("0x26")](...t[wa("0x3")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[wa("0x17")][wa("0xb")](wa("0x21"));let n=Array.from(this[wa("0x33")][wa("0x1a")][wa("0x5")][wa("0x1c")].getSelectedBlocks()).filter(t);if(!n[wa("0x11")])return null;n=e[wa("0x3")](n);const o=[];for(const t of n)e[wa("0x1f")](t)&&o[wa("0x26")](t);return o}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this.editor[wa("0x17")][wa("0xb")](wa("0xe"))[wa("0xf")](t)[wa("0x12")]()+wa("0x14")+t[wa("0x12")]()[wa("0x13")](/-/g,"_")}}const Fa=["tableAlignment","accept","join","_handlePropertyChange","plugins","registerCustomCallback","tableCellVerticalAlignment","tableCellBorderStyle","subType","tableProperties","markBlockFormat","tableCellBackgroundColor","tableCellBorderWidth","tableBorderWidth","table","tableWidth","_getSuggestion","format","getContainedElement","tableCellHeight","getSelectionAffectedTableCells","tableHeight","start","findAncestor","discard","*Format:* change table cell properties","tableBorderColor","nodeAfter","document","enableCommand","batch","getSuggestions","tableCellProperties","editor","formatBlock","enqueueChange","tableCellBorderColor","get","selection","locale","_descriptionFactory","has","TrackChangesTableProperties","getSuggestionCallback","model","setAttribute","handleDiscardAction","commandParams","tableCellHorizontalAlignment","getAttribute","tableBackgroundColor","TableUtils","TrackChangesEditing","_suggestionFactory"];var Pa,Da;Pa=Fa,Da=264,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("0xf")]=[Ba("0x20"),"tableBorderStyle",Ba("0x13"),Ba("0x6"),Ba("0x15"),Ba("0x1b"),Ba("0x2")],this[Ba("0x26")]=[Ba("0x2a"),Ba("0xd"),Ba("0x12"),"tableCellPadding","tableCellWidth",Ba("0x19"),Ba("0x11"),Ba("0x0"),Ba("0xc")]}static get pluginName(){return Ba("0x30")}afterInit(){const t=this[Ba("0x27")][Ba("0xa")][Ba("0x2b")](Ba("0x4"));if(this[Ba("0x27")][Ba("0xa")][Ba("0x2f")]("TablePropertiesEditing")){for(const e of this[Ba("0xf")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0x32")].document[Ba("0x2c")].getFirstPosition()[Ba("0x1d")](Ba("0x14"));this[Ba("0x9")](e,[o],this.tableProperties,"tableProperties",t,n)}));t[Ba("0x5")].registerCustomCallback(Ba("0x28"),Ba("0xf"),Ba("0x7"),t._suggestionFactory.getSuggestionCallback(Ba("0x28"),null,"discard")),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0xf"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this[Ba("0xf")],t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableProperties","join",(()=>!1))}if(this[Ba("0x27")].plugins[Ba("0x2f")]("TableCellPropertiesEditing")){for(const e of this[Ba("0x26")])t[Ba("0x23")](e,((t,n)=>{const o=this[Ba("0x27")][Ba("0xa")].get(Ba("0x3"))[Ba("0x1a")](this.editor[Ba("0x32")][Ba("0x22")][Ba("0x2c")]);this._handlePropertyChange(e,o,this[Ba("0x26")],Ba("0x26"),t,n)}));t[Ba("0x5")][Ba("0xb")](Ba("0x28"),"tableCellProperties","accept",t[Ba("0x5")][Ba("0x31")](Ba("0x28"),null,Ba("0x1e"))),t._suggestionFactory[Ba("0xb")](Ba("0x28"),Ba("0x26"),Ba("0x1e"),((t,e)=>this[Ba("0x34")](this.tableCellProperties,t,e))),t[Ba("0x5")][Ba("0xb")]("formatBlock","tableCellProperties",Ba("0x8"),(()=>!1))}t[Ba("0x2e")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[Ba("0x9")](t,e,n,o,s,r){const i=this.editor.plugins[Ba("0x2b")](Ba("0x4"));this[Ba("0x27")][Ba("0x32")][Ba("0x29")](r[Ba("0x24")],(()=>{for(const t of e)if(this[Ba("0x16")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x10")](t,{commandParams:[e]},[],o)}}))}[Ba("0x34")](t,e,n){const o=e[0][Ba("0x1c")][Ba("0x21")],s=n[Ba("0x35")][0];this[Ba("0x27")].model.change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x33")](n,s[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[Ba("0xe")]){case Ba("0xf"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")][Ba("0x2d")],"*Format:* change table properties")};case Ba("0x26"):return{type:Ba("0x17"),content:Yo(this[Ba("0x27")].locale,Ba("0x1f"))}}}[Ba("0x16")](t,e){const n=this[Ba("0x27")].plugins[Ba("0x2b")]("TrackChangesEditing");for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o[Ba("0x18")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["define","ck-suggestion-marker--active","mapper","change:activeMarkers","join","_handleNewSuggestionMarker","removeClass","_enabledCommands","range","_setSuggestionRange","values","trackChanges.trackFormatChanges","containsRangeInObject","isInContent","PENDING_ACTION_SUGGESTION","setAttribute","getSuggestionCallback","suggestion","set","getRanges","fromRange","oldRange","getItems","nodeBefore","_suggestions","authoredAt","$graveyard","createPositionAt","group","getDifference","_saved","suggestionLoaded","creator","forward","isDocumentOperation","track-changes-user-not-found","accept","addSuggestion","external:","formatBlock","unbind","deletion:accept","every","_getSuggestionData","end","_findSuggestions","formatInline","differ","isSelectable","isObject","documentSelection","parent","markerToData","execute","isBlock","removeMarkers","formatBlock:discard","updateMarker","_model","some","moveTargetPosition","author","addCommentThread","refresh","commentThread","selection","_suggestionFactory","element","getFirstRange","_breakSuggestionMarker","isOwn","schema","buildSuggestion","_joinSuggestions","splitPosition","insertion:accept","head","registerPostFixer","addClass","locale","return","_updateSuggestionData","stop","markerNameToElements","widget","config","change:_saved","_customCallbacks","removeMarker","always","open","consume","getAttribute","track-changes-adapter-already-set","_suggestionState","containerElement","clear","acceptSelectedSuggestions","getUser","enableReadOnlyMode","splice","enableCommand","markerName","writer","add","_getAuthorFromId","isBefore","trackChanges","Users","attributes","markers","includes","_mergeNestedSuggestions","removed","createRange","createdAt","getChangedMarkers","$marker","hasCommentThread","track-changes-adapter-missing-getsuggestion","_checkSuggestionCorrectness","discardAllSuggestions","error-saving-suggestion-data-suggestion-discarded","formatInline:join","createPositionAfter","@external","_splitMarkerName","commands","_editor","filter","acceptSuggestion","after","formatBlock:join","elementEnd","detach","_trackFormatChanges","_createSuggestion","editing","acceptAllSuggestions","fetchCommentThread","PendingActions","accepted","size","deletion:","suggestion-type","addMarker:suggestion","ck-suggestion-marker-formatBlock","push","CommentsRepository","start","hasComments","nodeAfter","get","_defaultCallbacks","backward","insertion","before","remove","TrackChangesEditing","insertContent","markerToHighlight","getIntersection","discardSelectedSuggestions","formatBlock:","pluginName","formatBlock:accept","reconvertMarker","getCustomProperty","notReady","markMultiRangeDeletion","data-suggestion","authorName","init","options","conversion","fire","unbindElementFromMarkerName","isNextTo","setSelection","_commentsRepository","markDeletion","listenTo","never","formatInline:discard","addUser","ck-suggestion-marker","insertion:join","formatInline:chain","isAtEnd","deletion","getShiftedBy","enqueueChange","ready","formatInline:","marker-count","upcast","subType","data","_isForcedDefaultExecutionBlock","addHighlight","ck-suggestion-marker-","rethrowUnexpectedError","resolve","getNearestSelectionRange","dataReady","from","markInlineFormat","setTo","previous","dataToMarker","_joinWithAdjacentSuggestions","length","updateSuggestion","isLocal","getSuggestion","forceDefaultExecution","batch","insert","applyOperation","_addThreadToSuggestion","markBlockFormat","editor","requires","suggestionChanged","markerReady","howMany","deleteContent","bindElementToMarker","hasSuggestion","_addSuggestionMarker","rootName","addSuggestionData","showSuggestionHighlights","removeComment","_removeSuggestion","track-changes-suggestion-data-mismatch","getLastMatchingPosition","trackChanges.mergeNestedSuggestions","getSuggestions","isAfter","isLimit","item","getFirstMarker","next","createRangeIn","multipleBlocks","formatGroupId","root","commandName","adapter","_cutOutSuggestionMarker","registerCustomCallback","type","markMultiRangeInsertion","model","targetPosition","position","formatBlock:chain","getMultiRangeId","split","document","sort","activeMarkers","newRange","discard","delete","elementToElement","deletion:discard","markInsertion","plugins","isTouching","formatInline:accept","clone","addMarker:suggestion:formatBlock","isRemovable","createElement","getCommentThread","insertion:","isAtStart","value","getAllAdjacentSuggestions","isExternal","containsItem","_adapter","addMarkerName","then","consumable","for","name","containsRange","has","_refreshSuggestionsChain","multi","_rangeIsInLocalUserInsertion","_getExternalAuthor","trackChangesCommand","addRange","move","skipNestingCheck","_setSuggestionData","collaboration.channelId","dataDowncast","change","isMultiRange","suggestion:","map","originalSuggestionId","discardSuggestion","catch","createSelection","high","containsPosition","insertion:chain","removeAttribute","isEqual","low","toJSON","isCollapsed","editingDowncast","toViewElement"];var Ga,Ha;Ga=Ua,Ha=364,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0xb2")](){return[za("0x68"),r.Users,t.PendingActions,cs,Cs,vs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,vi,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x78")](){return za("0x72")}constructor(t){function e(t){return t[za("0x105")]((t=>String.fromCharCode(t)))[za("0x118")]("")}super(t),this.set(za("0xda"),[]),this.on(za("0x117"),((e,n,o,s)=>{this[za("0xe")][za("0x102")]((()=>{for(const e of[...s,...o])this._model[za("0x42")][za("0xf6")](e)&&t[za("0x5d")][za("0x7a")](e)}))})),this._descriptionFactory=new ss(this[za("0xb1")][za("0xd2")][za("0x1b")],this[za("0xb1")][za("0x23")]),this._adapter=null,this[za("0x16")]=new Va(this[za("0xb1")]),this._suggestions=new Map,this[za("0x87")]=t[za("0xe1")][za("0x6c")]("CommentsRepository"),this[za("0x11b")]=new Set,this[za("0xe")]=this[za("0xb1")][za("0xd2")],this[za("0x32")]=new WeakMap,this[za("0x9a")]=!1,t[za("0x29")][za("0x114")](za("0x11f"),"default"),this[za("0x5b")]=t.config[za("0x6c")](za("0x11f")),t.config[za("0x114")](za("0xc1"),!0),this._mergeNestedSuggestions=t[za("0x29")][za("0x6c")](za("0xc1")),this.trackChangesCommand=new d(t,this[za("0x11b")]),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,50,52])}[za("0x80")](){const t=this[za("0xb1")];t[za("0x82")].for(za("0x112"))[za("0x74")]({model:za("0x125"),view:t=>{const{id:e,type:n}=this[za("0x52")](t.markerName),o=[za("0x8d"),za("0x9c")+n];let s=3e3;return this.activeMarkers.includes(t[za("0x3a")])&&(o[za("0x67")](za("0x115")),s=3010),za("0x91")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((e=>{e.on(za("0x65"),((e,n,o)=>{if(!o.options[za("0xbc")])return;const s=n[za("0xc5")];if(!s)return;const r=o[za("0x116")][za("0x113")](s);t[za("0xd2")].schema[za("0x5")](s)&&r&&!r.getCustomProperty(za("0x28"))&&r.is(za("0x33"))&&(0,x.toWidget)(r,o.writer)}),{priority:"high"})})),t.conversion[za("0xf3")](za("0x101"))[za("0x74")]({model:za("0x125"),view:(t,e)=>{if(!e[za("0x81")][za("0xbc")])return null;const{type:n}=this[za("0x52")](t[za("0x3a")]);return{classes:["ck-suggestion-marker",za("0x9c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0xc5")].is(za("0x15")))return void s[za("0xf2")][za("0x2f")](o[za("0xc5")],n.name);const r=s.mapper[za("0x113")](o[za("0xc5")]);if(!o[za("0xc5")].is(za("0x17"))||!t.model[za("0x1b")][za("0xa")](o[za("0xc5")])||r[za("0x7b")]("addHighlight"))return;const{id:i}=this[za("0x52")](o[za("0x3a")]);s[za("0x3b")][za("0x22")]([za("0x8d"),za("0x66")],r),s[za("0x3b")][za("0x123")](za("0x7e"),i,r),s[za("0x116")][za("0xb7")](r,o.markerName),e&&(this[za("0xda")].includes(o[za("0x3a")])?s.writer[za("0x22")](za("0x115"),r):s[za("0x3b")].removeClass(za("0x115"),r));for(const e of t.model[za("0xc8")](o.item)[za("0x12a")]())s[za("0xf2")].consume(e,n[za("0xf4")]);s.consumable[za("0x2f")](o[za("0xc5")],n[za("0xf4")])};t.conversion[za("0xf3")]("dataDowncast")[za("0x3c")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0x81")][za("0xbc")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t.conversion[za("0xf3")]("dataDowncast")[za("0x8")]({model:za("0x125"),view:(t,e)=>e[za("0x81")].showSuggestionHighlights?null:{group:za("0x125"),name:t.substr(11)}}),t[za("0x82")][za("0xf3")](za("0x97"))[za("0xde")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x104")+t[za("0x30")](za("0x64"))+":"+t[za("0x30")]("id");return t.getAttribute(za("0x96"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0xe7")](za("0x49"),{"data-name":n})}}),t[za("0x82")].for(za("0x97"))[za("0xa5")]({view:za("0x125")}),t[za("0x82")].for(za("0x112"))[za("0x3c")]((t=>{t.on(za("0xe5"),n(),{priority:za("0x10a")})})),t.conversion[za("0xf3")](za("0x112"))[za("0x3c")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[za("0x116")][za("0x27")](e.markerName);if(o)for(const t of o)t[za("0x7b")](za("0x9b"))||(n[za("0x3b")][za("0x11a")](["ck-suggestion-marker",za("0x66"),za("0x115")],t),n[za("0x3b")][za("0x10d")](za("0x7e"),t),n[za("0x116")][za("0x84")](t,e[za("0x3a")]))}),{priority:"high"})})),t.model[za("0xd8")].registerPostFixer((e=>{let n=!1;const o=Array[za("0xa1")](t[za("0xd2")][za("0xd8")].differ[za("0x48")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x52")](x);if(za("0x125")!==o)continue;const u=this[za("0x12c")].get(l);if(null!=a[za("0xdb")])if(za("0x2")==c&&(n=n||Xa(a.newRange,x,e,t[za("0xd2")][za("0x1b")])),a[za("0xdb")][za("0x111")]||za("0x12e")==a.newRange.root[za("0xba")]||"formatBlock"==c&&!Ja(a[za("0xdb")])||"deletion"==c&&(qa(i=a[za("0xdb")])||(r=i)[za("0x69")].parent==r.end[za("0x12b")]&&r[za("0x69")][za("0x90")]))e[za("0x2c")](x),n=!0;else{if(!u||!u[za("0x121")])continue;s.add(u)}}var r,i;return s[za("0x62")]>0&&(n=!!this[za("0xa6")](s)||n),n})),t[za("0xd2")][za("0xd8")][za("0x21")]((e=>{let n=!1;for(const o of t[za("0xd2")][za("0xd8")].differ.getChanges()){if("insert"!=o.type)continue;const s=o[za("0xd4")][za("0x92")](o[za("0xa7")]);if(s[za("0x90")])for(const r of this[za("0x12c")][za("0x11e")]()){if(r[za("0x103")]||!r[za("0x121")])continue;if("formatBlock"!=r[za("0xd0")])continue;const i=r.getFirstRange();if(i[za("0x69")][za("0x7")]!=i.end[za("0x7")]&&i[za("0x0")][za("0x10e")](o[za("0xd4")])){const o=t[za("0xd2")].createRange(i[za("0x69")],s);e[za("0xd")](r[za("0xc6")](),{range:o}),n=!0}}}return n})),t.model.markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x52")](e[za("0xf4")]),n=this._suggestions[za("0x6c")](t);n&&n[za("0xf0")](e[za("0xf4")])}})),t[za("0xd2")][za("0xd8")].on("change:data",(()=>{const e=Array[za("0xa1")](t[za("0xd2")][za("0xd8")][za("0x3")][za("0x48")]())[za("0x55")]((t=>za("0x125")===this._splitMarkerName(t.name)[za("0x130")]));if(0===e[za("0xa7")])return;e[za("0xd9")](((t,e)=>{const n=t[za("0x99")][za("0x129")],o=e[za("0x99")][za("0x129")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x69")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x52")](t);if(null===s[za("0x129")]){const e=this[za("0x119")](t);o[za("0x3c")](e)}else{const t=this[za("0x12c")][za("0x6c")](e);null!==s.newRange||t[za("0x121")]?(n[za("0x3c")](t[za("0x20")]),o.add(t)):this[za("0xbe")](t)}}o[za("0x62")]>0&&this[za("0xf7")](o);for(const t of n)this.fire(za("0xb3"),t)})),t[za("0xd2")].on(za("0xae"),((e,n)=>{const o=n[0];if(!this[za("0x12c")].size)return;if(!o[za("0x136")])return;if(o[za("0xac")].isUndo||!o[za("0xac")][za("0xa9")])return;let s,r;switch(o[za("0xd0")]){case za("0xad"):s=t.model.createPositionAt(o[za("0xd4")]),r=s.getShiftedBy(o[za("0xb5")]);break;case za("0xd7"):s=t[za("0xd2")][za("0x12f")](o[za("0x1e")]),r=t[za("0xd2")][za("0x12f")](o[za("0x10")]);break;case za("0xfd"):s=t.model[za("0x12f")](o[za("0xd3")]),r=s[za("0x92")](o.howMany);break;default:return}const i=t.model.createRange(s,r);t[za("0xd2")][za("0x102")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x1")](i)){if(t[za("0x103")])continue;if("formatInline"==t[za("0xd0")])continue;const n=t[za("0x99")]&&t[za("0x99")][za("0xc9")];(za("0x13b")!=t[za("0xd0")]||za("0xd7")==o[za("0xd0")]&&!n)&&(e.containsRangeInObject||za("0x6f")==t[za("0xd0")]&&e[za("0x1a")]||t[za("0x18")]().containsRange(i)&&this[za("0x19")](t,s,r))}}))}),{priority:"lowest"}),t.model.on(za("0xb6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xab")])return;if(this[za("0x9a")])return;if(!this[za("0xfb")].value)return;if(o[za("0x111")])return;const r=t[za("0xd2")][za("0x1b")],{start:i,end:x}=o[za("0x18")](),a=i[za("0x6b")]&&r.isLimit(i[za("0x6b")])?null:r[za("0x9f")](i,za("0x135")),c=x[za("0x12b")]&&r.isLimit(x.nodeBefore)?null:r[za("0x9f")](x,za("0x6e")),l=t.model[za("0x46")](a?a[za("0x69")]:i,c?c[za("0x0")]:x);t[za("0xd2")][za("0x102")]((e=>{this[za("0x88")](l);const n=t[za("0xd2")].schema[za("0x9f")](l[za("0x69")]);o.is(za("0x6"))?e[za("0x86")](n):o[za("0xa3")](n)})),e[za("0x26")]()}),{priority:e.priorities.normal+10}),t[za("0xd2")].on(za("0x73"),((e,n)=>{const o=n[n[za("0xa7")]-1];o&&o[za("0xab")]||this[za("0x9a")]||this[za("0xfb")][za("0xeb")]&&(t[za("0xd2")][za("0x102")]((()=>{let o=t[za("0xd2")][za("0x73")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x24")]=o[za("0xe4")]();const s=o[za("0x0")][za("0x12b")],r=t.model[za("0x1b")];s&&r[za("0xa")](s)&&!r[za("0x5")](s)&&(o=t[za("0xd2")][za("0x46")](o.start,t[za("0xd2")][za("0x12f")](s,za("0x0")))),this[za("0xe0")](o)})),e[za("0x26")]())}),{priority:za("0x10a")}),this[za("0xb1")][za("0x53")].add(za("0x3f"),this[za("0xfb")]),this.enableCommand("trackChanges");const o=new p(t,this._suggestions);t[za("0x53")][za("0x3c")](za("0x56"),o),this[za("0x39")]("acceptSuggestion");const s=new C(t,this[za("0x12c")]);t[za("0x53")][za("0x3c")](za("0x107"),s),this[za("0x39")](za("0x107")),t.commands[za("0x3c")](za("0x5e"),new F(t,o,this._suggestions)),this[za("0x39")](za("0x5e")),t.commands[za("0x3c")](za("0x4d"),new F(t,s,this._suggestions)),this[za("0x39")](za("0x4d")),t[za("0x53")][za("0x3c")](za("0x35"),new U(t,o,this[za("0x12c")])),this.enableCommand(za("0x35")),t[za("0x53")][za("0x3c")](za("0x76"),new U(t,s,this[za("0x12c")])),this[za("0x39")](za("0x76"));const r=t[za("0xe1")][za("0x6c")](za("0x68"));this[za("0x89")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x12c")][za("0x6c")](e);n&&n[za("0x14")]&&1===n.commentThread[za("0xa7")]&&this[za("0x25")](e,{hasComments:!0})}),{priority:za("0x10f")}),this[za("0x89")](r,za("0xbd"),((t,{threadId:e})=>{const n=this._suggestions[za("0x6c")](e);n&&n[za("0x14")]&&!n[za("0x14")].length&&this[za("0x25")](e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0xef")])throw new e.CKEditorError(za("0x31"),this);this[za("0xef")]=t}get[za("0xcd")](){return this[za("0xef")]}[za("0xc2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x11e")]())t&&!e[za("0x121")]||n[za("0x67")](e);return e?n[za("0x105")]((t=>t[za("0x110")]())):n}[za("0xaa")](t){const n=this[za("0x12c")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xb8")](t){return this[za("0x12c")][za("0xf6")](t)}[za("0xbb")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xd0")].split(":"),i=this[za("0x12c")][za("0x6c")](n)||this[za("0x5c")](s,r,n,e,o);if(this[za("0xaf")](i),this[za("0x4c")](i,s,r||null,e),i[za("0x47")]=t[za("0x47")],o&&o[za("0x51")]){const t=o[za("0x51")],e=this[za("0xfa")](t[za("0x7f")]);i[za("0x12d")]=t[za("0x47")],i[za("0x11")]=e,i[za("0xed")]=!0}else i.authoredAt=t[za("0x47")];switch(t[za("0x99")]&&(i[za("0x99")]=t[za("0x99")]),t.attributes&&(i[za("0x41")]=t[za("0x41")]),this[za("0xef")]&&this._adapter[za("0x139")]||(i[za("0x132")]=!0),this._suggestionState.get(i)){case"notReady":this[za("0x32")][za("0x126")](i,za("0xa0"));break;case za("0xb4"):i.isInContent?(this[za("0x32")][za("0x126")](i,"ready"),this[za("0x83")](za("0x133"),i)):this[za("0x32")][za("0x126")](i,za("0x45"))}return i}[za("0x56")](t){this.forceDefaultExecution((()=>{this[za("0xb1")].model.change((()=>{for(const e of t[za("0xec")]())e[za("0x138")]()}))}))}[za("0x107")](t){this[za("0xab")]((()=>{this.editor[za("0xd2")][za("0x102")]((()=>{for(const e of t[za("0xec")]())e[za("0xdc")]()}))}))}[za("0x39")](t,n){const o=this[za("0xb1")][za("0x53")][za("0x6c")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x11b")][za("0x3c")](o),n&&o.on(za("0x9"),((t,e)=>{this[za("0xfb")].value&&(this[za("0x9a")]||e[za("0xa7")]>0&&e[e[za("0xa7")]-1]&&e[e[za("0xa7")]-1][za("0xab")]||(n(((...t)=>o[za("0x9")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x10a")})}[za("0xab")](t){let n,o;const s=this[za("0x9a")];this[za("0x9a")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0x9d")](o,this),n}[za("0xe0")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me;for(const{suggestion:e,meta:o}of this[za("0x1")](t,"insertion"))if(o.isOwn){if(!o.isNextTo){if(!this[za("0x44")]&&o[za("0x120")])continue;return e}if(n==e.subType){const n=e[za("0x18")]();return n[za("0x69")].isEqual(t[za("0x0")])?this[za("0x11d")](e,this[za("0xe")][za("0x46")](t[za("0x69")],n[za("0x0")])):this[za("0x11d")](e,this[za("0xe")][za("0x46")](n.start,t[za("0x0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xe9")+n:za("0x6f"),a=this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xb9")](x,r,i,t),a}[za("0xd1")](t,n=za("0xf8"),o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=this[za("0x16")][za("0x124")](za("0x6f"),n,"join");for(const e of this[za("0xc2")]())if(e.author.id==s.id&&za("0x6f")==e[za("0xd0")]&&e.subType==n&&(r(e[za("0x127")](),t)||r(t,e[za("0x127")]()))){for(const n of t)e[za("0xfc")](n);return e}if(this[za("0x44")])for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0x6f"))){if(!o[za("0x1a")])continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xf5")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xe9")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xb9")](a,i,x,e,Zo[za("0xd6")]());return c}[za("0xa2")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(za("0x8a")===this[za("0x5b")]){const e=this[za("0x16")].getSuggestionCallback(za("0x2"),o,za("0x138"));return this[za("0xab")]((()=>e([t],n,s))),null}const r=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,i=[];if(za("0x2d")!==this[za("0x5b")])for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion"))n.isOwn&&!n.isInsideObject&&i[za("0x67")](...e[za("0x127")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x75")](o);e&&n[za("0x67")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xa7")];){const o=n[e][za("0x131")](t);n[za("0x38")](e,1,...o),e+=o[za("0xa7")]}}return n}(t,i);x[za("0xa7")]&&this._model[za("0x102")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x124")]("formatInline",o,za("0x138"));this[za("0xab")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x69")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x2"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const s=e[za("0x18")]();if(s[za("0xf5")](t,!0))return null;x=x[za("0x3e")](s.start)?x:s[za("0x69")],a=a.isAfter(s[za("0x0")])?a:s[za("0x0")],i?s[za("0x69")][za("0x3e")](i[za("0x18")]()[za("0x69")])?(i[za("0xb")](),i=e):e[za("0xb")]():i=e}const c=this[za("0xe")][za("0x46")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xff")]({id:t,type:za("0x95")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xb9")]("formatInline:"+o,t,i,c)}}return null}[za("0xb0")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0xcc")]),n.multipleBlocks=t.is("range"),s=s||$a(n);const i=o[za("0x105")]((t=>Qa(t,this[za("0xe")]))),x=t.is(za("0x11c"))?t:Qa(t,this[za("0xe")]);if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t([x],n,r))),null}i[za("0x67")](x);let a=!0;for(const t of i)if(!this[za("0xf9")](t)){a=!1;break}if(a&&za("0x2d")!==this._trackFormatChanges){const t=this[za("0x16")][za("0x124")]("formatBlock",s,za("0x138"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0x69")],u=x[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](x,za("0x13b"))){if(!e[za("0x1a")]||e[za("0x85")]||e[za("0x120")]||e.isInsideObject)continue;if(t[za("0x99")][za("0xca")]!=n.formatGroupId)continue;const o=t.getFirstRange();if(t[za("0x98")]==s){if(o[za("0xf5")](x,!0))return null;l=l[za("0x3e")](o[za("0x69")])?l:o.start,u=u[za("0xc3")](o[za("0x0")])?u:o[za("0x0")],c?o[za("0x69")].isBefore(c.getFirstRange().start)?(c.removeMarkers(),c=t):t[za("0xb")]():c=t}else{const e=x.getIntersection(o);this[za("0xce")](t,e)}}const d=this[za("0xb1")][za("0xe1")].get(za("0x40")).me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0x11d")](c,this[za("0xe")].createRange(l,u)),c;{const t=this[za("0xff")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[za("0xe")][za("0x46")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0xca")]||(n[za("0xca")]=n[za("0xcc")]);const i=t[0];n[za("0xc9")]=i.is(za("0x11c")),s=s||$a(n);const x=o[za("0x105")]((t=>Qa(t,this._model))),a=i.is("range")?t:t.map((t=>Qa(t,this[za("0xe")])));if(za("0x8a")===this[za("0x5b")]){const t=this[za("0x16")][za("0x124")](za("0x13b"),s,"accept");return this[za("0xab")]((()=>t(a,n,r))),null}x[za("0x67")](...a);let c=!0;for(const t of x)if(!this[za("0xf9")](t)){c=!1;break}if(c&&"always"!==this[za("0x5b")]){const t=this._suggestionFactory[za("0x124")]("formatBlock",s,za("0x138"));return this[za("0xab")]((()=>t(a,n,r))),null}const l=this[za("0xb1")].plugins.get(za("0x40")).me;for(const t of this.getSuggestions()){if(t[za("0x11")].id!=l.id)continue;if("formatBlock"!=t[za("0xd0")]||t[za("0x99")].formatGroupId!=n[za("0xca")])continue;const e=t[za("0x98")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t.getMarkers()){const r=s.getRange();if(o[za("0x10e")](r)){e?(a[za("0x38")](n,1),n--):t[za("0x2c")](s.name);break}}}}if(0==a[za("0xa7")])return null;const u=this[za("0x16")][za("0x124")](za("0x13b"),s,za("0x118"));for(const t of this[za("0xc2")]())if(t[za("0x11")].id==l.id&&za("0x13b")==t[za("0xd0")]&&t[za("0x99")][za("0xca")]==n[za("0xca")]&&t.subType==s&&(u(t[za("0x127")](),a)||u(a,t.getRanges()))){for(const e of a)t[za("0xfc")](e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x77")+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xb9")](m,d,g,t,Zo.getMultiRangeId());return f}[za("0x88")](t,n=null,o={}){if(t[za("0x111")])return null;const s=this[za("0xb1")][za("0xe1")].get("Users").me,r=new i.LiveRange(t[za("0x69")],t.end);for(const{suggestion:t,meta:e}of this[za("0x1")](r,za("0x6f")))if(e[za("0x1a")]&&!e[za("0x85")])if(t.isMultiRange){const e=t.getRanges().filter((t=>"$graveyard"!=t[za("0xcb")][za("0xba")]));if(e[za("0x13e")]((t=>r.containsRange(t,!0)))&&t.discard(),e.some((t=>t[za("0xf5")](r,!0)))){const t=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>t([r],null,o))),null}}else{const e=r[za("0x75")](t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x5a")](),r.isCollapsed||za("0x12e")==r[za("0xcb")].rootName)return null;let x=null,a=r[za("0x69")],c=r[za("0x0")];for(const{suggestion:t,meta:e}of this[za("0x1")](r,"deletion"))if(e[za("0x1a")])if(t.isMultiRange&&this[za("0x44")]){let e=!0;for(const n of t.getRanges()){if(n[za("0xf5")](r,!0))return t;r[za("0xf5")](n)||(e=!1)}e&&t[za("0xdc")]()}else{const n=t[za("0x18")]();if(n[za("0xf5")](r,!0)){if(!this[za("0x44")]&&e[za("0x120")])continue;return t}a=a.isBefore(n[za("0x69")])?a:n[za("0x69")],c=c[za("0xc3")](n[za("0x0")])?c:n[za("0x0")],x?n[za("0x69")][za("0x3e")](x[za("0x18")]()[za("0x69")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this._model[za("0x46")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xe")][za("0x46")](a,c),i=s.id,x=n?za("0x63")+n:za("0x91"),l=this[za("0xff")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x7d")](t,n="multi",o={}){const s=this[za("0xb1")][za("0xe1")][za("0x6c")](za("0x40")).me,r=t.map((t=>new i.LiveRange(t[za("0x69")],t[za("0x0")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x6f")))n.isOwn&&!n[za("0x85")]&&x[za("0x3c")](e);for(const e of x)if(e[za("0x103")]){const s=e[za("0x127")]();if((!e[za("0x41")]||!e.attributes.skipNestingCheck)&&s[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&e[za("0xdc")](),r[za("0x13e")]((t=>s[za("0xf")]((e=>e[za("0xf5")](t,!0)))))){const e=this[za("0x16")][za("0x124")](za("0x91"),n,za("0x138"));return this[za("0xab")]((()=>e(t,null,o))),null}}else{const t=e[za("0x18")]();if(r[za("0xf")]((e=>e[za("0xf5")](t,!0)))&&e[za("0xdc")](),r[za("0x13e")]((e=>t[za("0xf5")](e,!0)))){const t=this[za("0x16")][za("0x124")]("deletion",n,"accept");return this[za("0xab")]((()=>t(r,null,o))),null}}const a=this[za("0x16")][za("0x124")](za("0x91"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[za("0x11")].id==s.id&&t[za("0x121")]&&za("0x91")==t.type&&t[za("0x98")]==n&&(a(t[za("0x127")](),r)||a(r,t[za("0x127")]())))if(c){if(t.commentThread&&t[za("0x14")][za("0xa7")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c.addRange(e);t[za("0xb")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xfc")](e)}if(c)return c;x[za("0x34")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x1")](t,za("0x91")))n[za("0x1a")]&&x[za("0x3c")](e);for(const t of x){const e=t[za("0x127")]();if((!o||!o[za("0xfe")])&&r[za("0x13e")]((t=>e[za("0xf")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x41")]||!t.attributes[za("0xfe")])&&e[za("0x13e")]((t=>r[za("0xf")]((e=>e[za("0xf5")](t,!0)))))&&t[za("0xdc")]()}const l=(0,e.uid)(),u=s.id,d=za("0x63")+n,g=this._setSuggestionData({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x5a")](),t[za("0x111")]||za("0x12e")==t[za("0xcb")][za("0xba")]||this[za("0xb9")](d,l,u,t,Zo[za("0xd6")]());return g}[za("0x11d")](t,e){const n=t[za("0xc6")]();this[za("0xe")][za("0x102")]((t=>{t[za("0xd")](n,{range:e})}))}[za("0xaf")](t){const e=t.id,n=this[za("0xb1")][za("0x29")].get(za("0x100"));this._commentsRepository[za("0x4a")](e)||this[za("0x87")][za("0x12")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xe8")](e);o[za("0x13c")](za("0xe6")),o.isRemovable=!1,t[za("0x14")]=o}[za("0x4c")](t,n,o,s){if(t[za("0xd0")]!=n||t.subType!=o||t[za("0x134")].id!=s)throw this[za("0xb1")][za("0x37")](za("0xbf")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0xce")](t,n){const o=t[za("0x18")]();if(n[za("0x10e")](o))t.removeMarkers();else if(o[za("0xf5")](n)){const s=this[za("0xe")][za("0x12f")](n.start[za("0x12b")],"end");this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],s));const r=(0,e.uid)(),i=t[za("0x134")].id,x=t[za("0xd0")]+":"+t[za("0x98")];this[za("0xff")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x99")],attributes:t[za("0x41")]});const a=this[za("0xe")][za("0x12f")](n.end[za("0x7")],za("0x57")),c=this[za("0xe")].createRange(a,o[za("0x0")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0x10b")](n[za("0x69")])){const e=this[za("0xe")][za("0x12f")](n.start.nodeBefore,za("0x0"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](o[za("0x69")],e))}else{const e=this[za("0xe")].createPositionAt(n[za("0x0")][za("0x7")],za("0x57"));this[za("0x11d")](t,this[za("0xe")][za("0x46")](e,o.end))}}[za("0xf9")](t){for(const{suggestion:e,meta:n}of this[za("0x1")](t,"insertion")){if(!n[za("0x1a")])continue;const o=e[za("0x127")]();for(const e of o)if(!t[za("0x131")](e)[za("0xa7")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0xb1")][za("0xe1")][za("0x6c")]("Users")[za("0x36")](t);if(!n)throw new e.CKEditorError(za("0x137"),this);return n}[za("0xfa")](t){const e=this[za("0xb1")][za("0xe1")].get(za("0x40")),n=(0,r.hashObject)(za("0x13a")+t);return e[za("0x36")](n)||e[za("0x8c")]({id:n,name:t})}[za("0x5c")](t,e,n,o,s){const r=this[za("0x3d")](o),i=this[za("0x16")][za("0x1c")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,za("0x138"),(()=>{this[za("0x25")](n,{state:za("0x61")})}),{priority:"high"}),this[za("0x89")](i,"discard",(()=>{this._updateSuggestionData(n,{state:"rejected"})}),{priority:za("0x10a")}),this[za("0x12c")][za("0x126")](n,i),this[za("0x32")][za("0x126")](i,za("0x7c")),i}_splitMarkerName(t){const e=t[za("0xd7")](":");return{group:e[0],type:e[1],subType:e[za("0xa7")]>=5?e[2]:null,id:e[za("0xa7")]<5?e[2]:e[3],authorId:e[za("0xa7")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0x19")](t,n,o){const s=t[za("0x18")](),r=s[za("0x69")],i=s.end;this._setSuggestionRange(t,this._model[za("0x46")](r,n));const x=(0,e.uid)(),a=t[za("0x134")].id,c=t[za("0xd0")]+(t[za("0x98")]?":"+t.subType:"");this[za("0xff")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x41")],data:t.data}),za("0x13b")==t[za("0xd0")]&&(o=this[za("0xe")].createPositionBefore(o[za("0x7")])),this._addSuggestionMarker(c,x,a,this._model.createRange(o,i))}[za("0x1")](t,e=null){const n=[],o=this[za("0xe")][za("0x1b")],s=this.editor.plugins[za("0x6c")](za("0x40")).me;for(const r of this.getSuggestions())if(r.isInContent&&(!e||r[za("0xd0")]==e))for(const e of r[za("0x127")]()){const i=t[za("0x69")][za("0x10e")](e[za("0x0")])||t[za("0x0")].isEqual(e[za("0x69")]);if(i||t.getIntersection(e)){const x=t[za("0xf5")](e)&&Ka(o,e[za("0x69")],t),a=e[za("0xf5")](t)&&Ka(o,t[za("0x69")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xb9")](t,e,n,o,s){this[za("0xe")][za("0x102")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xbe")](t){const e=t.previous,n=t.next;t[za("0xa4")]=null,null!=e&&(e[za("0xc7")]=null),t[za("0xc7")]=null,null!=n&&(n[za("0xa4")]=null),za("0x94")==this._suggestionState[za("0x6c")](t)&&(this[za("0x32")][za("0x126")](t,"removed"),this[za("0x83")]("suggestionUnloaded",t,e,n))}[za("0xff")](t){const n=t.id,o=this[za("0xbb")](t);if(this[za("0xef")]&&this._adapter[za("0x139")]){const s=this.editor[za("0xe1")].get(za("0x60")),r=o.hasComments,i=o.subType?o.type+":"+o.subType:o[za("0xd0")],x=this[za("0xb1")][za("0x23")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0x99")]||null,originalSuggestionId:t[za("0x106")]||null,attributes:o[za("0x41")]};this[za("0xef")].addSuggestion(c).then((t=>{o[za("0x132")]=!0,s[za("0x71")](a),t&&t.createdAt&&(this[za("0x12c")][za("0x6c")](n)[za("0x47")]=t[za("0x47")])}))[za("0x108")]((t=>{throw(0,e.logWarning)(za("0x4e")),this[za("0xb1")].model[za("0x93")]({isUndoable:!1},(()=>{o[za("0xdc")]()})),o.stopListening(),this._suggestions[za("0xdd")](o.id),this[za("0x32")][za("0xdd")](o),t}))}return o}[za("0x25")](t,e){const n=this[za("0xb1")].plugins[za("0x6c")](za("0x60")),o=this.getSuggestion(t);if(this[za("0xef")]&&this[za("0xef")][za("0xa8")])if(o._saved){const o=n[za("0x3c")](Yo(this[za("0xb1")][za("0x23")],za("0x122")));this[za("0xef")][za("0xa8")](t,e).then((()=>{n[za("0x71")](o)}))}else o.on(za("0x2a"),(()=>{this[za("0x25")](t,e)}))}[za("0x13f")](t){if(!this[za("0xef")]||!this._adapter[za("0xaa")])throw new e.CKEditorError(za("0x4b"),this);return this[za("0xef")][za("0xaa")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this._suggestions[za("0x6c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x4c")](r,n,o,s),this._suggestionState.get(r)){case za("0x7c"):this[za("0x13f")](e)[za("0xf1")]((t=>{let n=Promise[za("0x9e")]();t[za("0x6a")]&&(n=this._commentsRepository[za("0x5f")]({channelId:this[za("0xb1")][za("0x29")][za("0x6c")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xbb")](t)._saved=!0}))})),this[za("0x32")].set(r,za("0xb4"));break;case"removed":this._updateSuggestionData(e,{state:za("0x2e")});case za("0xa0"):this[za("0x32")].set(r,za("0x94")),this[za("0x83")](za("0x133"),r);break;case"ready":this.fire(za("0xb3"),r)}return r[za("0xf0")](t),r}[za("0xf7")](t){const e=Array[za("0xa1")](t).filter((t=>!t[za("0x103")])),n=this[za("0xc2")]({skipNotAttached:!0})[za("0x55")]((t=>!t[za("0x103")])),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(n[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t.subType,"chain")]))),r=new Map(n.map((t=>[t,t[za("0x18")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xa7")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xa7")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xa7")];t++){const n=e[t];!x[za("0xf6")](n)&&n[za("0xa4")]&&(n[za("0xa4")][za("0xc7")]===n&&(n.previous[za("0xc7")]=null),n.previous=null),!i.has(n)&&n.next&&(n[za("0xc7")].previous===n&&(n[za("0xc7")][za("0xa4")]=null),n[za("0xc7")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xa7")];o++){const n=c(t,e[o]);n&&(n[0][za("0xc7")]=n[1],n[1][za("0xa4")]=n[0],i.add(n[0]),x[za("0x3c")](n[1]))}}function c(t,e){if(t[za("0x11")].id!==e[za("0x11")].id)return null;const n=s[za("0x6c")](t)(t,e,r[za("0x6c")](t),r[za("0x6c")](e));return n&&s[za("0x6c")](e)(t,e,r[za("0x6c")](t),r[za("0x6c")](e))?n[1][za("0x14")]&&n[1][za("0x14")].length?null:n:null}}[za("0xa6")](t){const e=Array[za("0xa1")](t),n=this[za("0xc2")]({skipNotAttached:!0}),o=n[za("0x55")]((e=>!t[za("0xf6")](e))),s=new Map(e[za("0x105")]((t=>[t,this[za("0x16")][za("0x124")](t[za("0xd0")],t[za("0x98")],za("0x118"))]))),r=new Map(n[za("0x105")]((t=>[t,t[za("0x127")]()])));for(let t=0;t<e[za("0xa7")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xa7")];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("0xa7")];i++){const o=n[i];if(o[za("0xd0")]!==e[za("0xd0")]||o[za("0x11")].id!==e[za("0x11")].id||o.subType!==e.subType)continue;const x=s.get(e),a=r.get(e),c=r[za("0x6c")](o),l=e[za("0x14")]&&e.commentThread[za("0xa7")],u=o[za("0x14")]&&o[za("0x14")][za("0xa7")];if(!l&&x(c,a))return t[za("0x1d")](o,e),r[za("0xdd")](e),!0;if(!u&&x(a,c))return t[za("0x1d")](e,o),r[za("0xdd")](o),!0}return!1}}[za("0x1d")](t,e){if(t[za("0x103")])for(const n of e[za("0x127")]())t[za("0xfc")](n);else{const n=e[za("0x18")]()[za("0x0")];this._setSuggestionRange(t,this[za("0xe")][za("0x46")](t[za("0x18")]()[za("0x69")],n))}e[za("0xb")]()}}class Va{constructor(t){this[za("0x54")]=t,this[za("0xe")]=t[za("0xd2")],this[za("0x2b")]=new Map,this[za("0x6d")]=new Map,this._registerDefaultCallbacks()}[za("0x1c")](t,e,n,o,s,r){return new Zo(this[za("0xe")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x124")](t,e,za("0x138"))(...n),onDiscard:(...n)=>this[za("0x124")](t,e,za("0xdc"))(...n)})}[za("0xcf")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x2b")][za("0x126")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[za("0x2b")][za("0x6c")](o)||this._defaultCallbacks[za("0x6c")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0xd9")](((t,e)=>t.start[za("0x3e")](e[za("0x69")])?1:-1)),this[za("0xe")][za("0x102")]((e=>{for(const n of t){let t;t=n[za("0x0")][za("0x90")]&&n[za("0x0")][za("0x7")]==n[za("0x69")][za("0x6b")]?e.createSelection(n[za("0x69")][za("0x6b")],"on"):e[za("0x109")](n),this[za("0xe")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xe")][za("0x102")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x105")]((t=>(qa(t)&&(t=this[za("0xe")][za("0x46")](t.end)),t)))[za("0x55")]((t=>"$graveyard"!==t[za("0xcb")].rootName));if(r[za("0xa7")]<1)return;const x=Array.from(this._model[za("0xd8")][za("0x15")][za("0x127")]())[za("0x105")]((t=>i.LiveRange[za("0x128")](t)));n[za("0x86")](r);for(const t of this[za("0x54")].commands[za("0x53")]())t[za("0x13")]();s[za("0x67")]({forceDefaultExecution:!0}),this[za("0x54")][za("0x9")](o,...s);const a=x[za("0x55")]((t=>za("0x12e")!=t[za("0xcb")].rootName));a[za("0xa7")]>0&&n[za("0x86")](a);for(const t of x)t[za("0x5a")]()}))},o=(t,e)=>1==t[za("0xa7")]&&1==e[za("0xa7")]&&t[0][za("0x0")][za("0x10e")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0xe")])?[e,t]:null;this[za("0x6d")][za("0x126")](za("0x1f"),t),this._defaultCallbacks[za("0x126")]("insertion:discard",e),this[za("0x6d")][za("0x126")](za("0x8e"),o),this._defaultCallbacks[za("0x126")](za("0x10c"),s),this[za("0x6d")][za("0x126")](za("0x13d"),e),this._defaultCallbacks[za("0x126")](za("0xdf"),t),this[za("0x6d")][za("0x126")]("deletion:join",o),this[za("0x6d")][za("0x126")]("deletion:chain",s),this[za("0x6d")].set(za("0xe3"),n),this[za("0x6d")][za("0x126")](za("0x8b"),t),this[za("0x6d")][za("0x126")](za("0x4f"),o),this[za("0x6d")][za("0x126")](za("0x8f"),t),this[za("0x6d")][za("0x126")](za("0x79"),n),this._defaultCallbacks[za("0x126")](za("0xc"),t),this[za("0x6d")][za("0x126")](za("0x58"),o),this[za("0x6d")][za("0x126")](za("0xd5"),t)}}function Ka(t,e,n){for(const o of e[za("0x7")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xcb")]==o)return!1;if(!n[za("0xee")](o))return!1;if(t[za("0x5")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x0")][za("0x7")]==t[za("0x69")][za("0x6b")]&&t[za("0x0")][za("0xea")]}function Xa(t,e,n,o){const s=t=>!t.item.is("$textProxy")&&!o[za("0x5")](t[za("0xc5")]),r=t[za("0x69")][za("0xc0")](s),i=t.end[za("0xc0")](s,{direction:za("0x6e")});return!(t.start[za("0x10e")](r)&&t.end[za("0x10e")](i)||(r[za("0x3e")](i)?n[za("0xd")](e,{range:n[za("0x46")](r,i)}):n[za("0x2c")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x69")][za("0x6b")];return e&&e.is(za("0x17"))}function Qa(t,e){const n=e.schema[za("0x5")](t)||e[za("0x1b")][za("0x4")](t);return e.createRange(e[za("0x12f")](t,za("0x70")),n?e[za("0x50")](t):e[za("0x12f")](t,za("0x0")))}function Za(t,e,n,o,s){if(n[za("0x0")][za("0x10e")](o[za("0x69")]))return!0;if(t[za("0xd0")]!=e[za("0xd0")])return!1;if(!n[za("0x0")][za("0xe2")](o[za("0x69")]))return!1;const r=s[za("0x46")](n[za("0x0")],o[za("0x69")]).getWalker();for(const t of r)if(["elementStart",za("0x59")][za("0x43")](t[za("0xd0")])&&s.schema[za("0xc4")](t.item))return!1;return!0}const Ya=["stopListening","canDiscard","view","destroy","model","bind","_pendingAction","isEnabled","discardSuggestion","_removePendingAction","commands","plugins","unbind","canAccept","_discardCommand","execute","remove","isDirty","PendingActions","canEditAt","_acceptCommand","get","add","commentThreadController","acceptSuggestion","PENDING_ACTION_SUGGESTION","listenTo","_setPendingAction","_editor","getRanges"];var tc,ec;tc=Ya,ec=445,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("0x9")]=e,this[nc("0x7")]=n,this[nc("0x1c")]=o,this[nc("0x3")]=t,this[nc("0x19")]=t.commands[nc("0x1a")](nc("0x1d")),this[nc("0x13")]=t[nc("0xf")][nc("0x1a")](nc("0xd")),this.view[nc("0xa")](nc("0xc")).to(this[nc("0x19")],this._discardCommand,((t,e)=>t||e)),this[nc("0x7")][nc("0xa")](nc("0x12")).to(this._acceptCommand,nc("0xc"),(t=>t&&this[nc("0x3")].model[nc("0x18")](e[nc("0x4")]()))),this[nc("0x7")][nc("0xa")](nc("0x6")).to(this[nc("0x13")],nc("0xc"),(t=>t&&this[nc("0x3")][nc("0x9")][nc("0x18")](e[nc("0x4")]()))),this[nc("0xb")]=null,n[nc("0x16")]&&this[nc("0x2")](),this[nc("0x1")](n,"acceptSuggestion",(()=>this[nc("0x1d")]())),this[nc("0x1")](n,"discardSuggestion",(()=>this[nc("0xd")]())),this[nc("0x1")](n,"change:isDirty",(()=>{n[nc("0x16")]?this._setPendingAction():this[nc("0xe")]()}))}[nc("0x1d")](){this[nc("0x19")].execute(this[nc("0x9")].id)}[nc("0xd")](){this[nc("0x13")][nc("0x14")](this[nc("0x9")].id)}[nc("0x8")](){this[nc("0x7")][nc("0x11")](nc("0xc")),this[nc("0x7")][nc("0x11")]("canAccept"),this.view[nc("0x11")](nc("0x6")),this[nc("0x5")](),this[nc("0x1c")].destroy(),this[nc("0xb")]&&this[nc("0xe")]()}[nc("0x2")](){const t=Yo(this[nc("0x3")].locale,nc("0x0"));this[nc("0xb")]=this[nc("0x3")].plugins[nc("0x1a")](nc("0x17"))[nc("0x1b")](t)}[nc("0xe")](){null!==this[nc("0xb")]&&this[nc("0x3")][nc("0x10")][nc("0x1a")](nc("0x17"))[nc("0x15")](this[nc("0xb")]),this[nc("0xb")]=null}}const sc=["updateComment","commentThreadInputView","canAccept","_localUser","removeComment","isReadOnly","value","editor","destroy","set","focus","delegate","_createCommentViews","element","descriptionParts","cancel","hasDirtyComment","commentThread","isDirty","fire","_model","bind","length","commentInputView","commentsListView","isEnabled","assign","canDiscard","editorConfig","_config","addComment","_createCommentThreadInputView","setData","submit","authoredAt","locale","isActive","showInput"];var rc,ic;rc=sc,ic=379,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("0x2")]=null,this[xc("0xa")](xc("0x25"),!1),this.set(xc("0x23"),e[xc("0x23")]),this[xc("0x16")](xc("0x23")).to(e),this.set(xc("0xf"),[]),this[xc("0xa")](xc("0x13"),!1),this[xc("0xa")](xc("0x1a"),!1),this.set(xc("0x3"),!1),this[xc("0xa")](xc("0x1c"),!1),this[xc("0x15")]=e,this[xc("0x4")]=n,this[xc("0x1e")]=o,o.disableComments?this.set(xc("0x17"),1):this._createCommentViews()}[xc("0xb")](){this[xc("0xe")][xc("0xb")]()}[xc("0x9")](){this[xc("0x19")]&&this[xc("0x19")].destroy(),this[xc("0x2")]&&this[xc("0x2")][xc("0x9")](),super.destroy()}[xc("0xd")](){const{CommentsListView:t}=this[xc("0x1e")];this.commentsListView=new t(this[xc("0x24")],this[xc("0x15")][xc("0x12")],Object[xc("0x1b")]({CommentView:this._config.CommentView},this[xc("0x1e")])),this[xc("0x19")][xc("0xc")](xc("0x5")).to(this),this[xc("0x19")].delegate(xc("0x1")).to(this),this[xc("0x19")][xc("0x16")](xc("0x25")).to(this),this[xc("0xa")]("length",this[xc("0x19")][xc("0x17")]+1),this[xc("0x16")]("length").to(this[xc("0x19")],xc("0x17"),(t=>t+1)),this[xc("0x2")]=this[xc("0x20")](),this.on(xc("0x5"),(()=>this[xc("0xb")]())),this[xc("0x16")](xc("0x13")).to(this.commentsListView,xc("0x11"),this[xc("0x2")][xc("0x18")],xc("0x7"),((t,e)=>t||!!e))}[xc("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[xc("0x4")],this[xc("0x1e")][xc("0x1d")]),n=e[xc("0x18")];return e.bind(xc("0x0")).to(this,xc("0x25"),this[xc("0x15")][xc("0x12")],xc("0x6"),n,xc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x22"),((t,e)=>{this[xc("0x14")](xc("0x1f"),e),n[xc("0x8")][xc("0x21")]("")})),n.on(xc("0x10"),(()=>this[xc("0xb")]())),n[xc("0x16")]("disabledSubmit").to(this._model[xc("0x12")],xc("0x6")),e}}const cc=["name","span","querySelector","discardButton","locale","getExternalSuggestionNote","EXTERNAL_IMPORT_WORD_AVATAR","<p>",'"></span>',"_model","children","color","discardSuggestion","isActive","check","acceptSuggestion","createElement","attributes","</p>","ck-suggestion--discard","description","bind","Discard suggestion","split","getTemplate","@external","setTemplate","_descriptionElement","ck-suggestion-wrapper","innerHTML","ck-annotation__actions","canAccept","ck-suggestion__info","importWord","disableComments","formatDateTime","EXTERNAL_SUGGESTION","push","userView","author","div","EXTERNAL_IMPORT_WORD_SUGGESTION","creator","isExternal","editorReady","ck-suggestion__info-name","ck-annotation",'<span class="ck-suggestion-type">',"extendTemplate","fire","authoredAt",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__user","ck-suggestion","acceptButton",'" title="',"execute","commentThread","title","set","ck-suggestion--accept","_config","_createButton","element","content","type","delegate","ck-annotation__main","commentThreadInputView","commentsListView","</span>","ck-annotation__info-name","ck-suggestion__actions","innerText","source","editorDestroyed","getUserViewNotificationText","isEnabled"];var lc,uc;lc=cc,uc=158,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(dc("0x3f"),""),this.bind(dc("0x3f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][dc("0x3f")]:"")),this[dc("0x13")](dc("0x12")).to(this,"descriptionParts",this,dc("0xb"),((t,e)=>{let n="";for(const e of t)n+=dc("0x5")+mc(e[dc("0x3e")],e[dc("0x9")])+dc("0x10");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[dc("0x19")]=null,this[dc("0x34")]=this._createButton(Yo(e,"Accept suggestion"),t.icons[dc("0xc")],dc("0x3a"),dc("0xd"),"sw"),this[dc("0x34")][dc("0x13")](dc("0x4b")).to(this,dc("0x1d")),this[dc("0x1")]=this[dc("0x3c")](Yo(e,dc("0x14")),t.icons.cancel,dc("0x11"),dc("0xa"),"sw"),this[dc("0x1")][dc("0x13")](dc("0x4b")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[dc("0x7")][dc("0x25")],this[dc("0x4a")]()),this[dc("0x24")][dc("0x2e")]({attributes:{class:["ck-suggestion__user",dc("0x32")]}}),this[dc("0x18")](this[dc("0x16")]())}[dc("0x16")](){const t=this.bindTemplate,e=[{tag:dc("0x26"),attributes:{class:[dc("0x1e"),"ck-annotation__info"]},children:[{tag:dc("0x4d"),children:[{text:this[dc("0x24")][dc("0x4c")]}],attributes:{class:[dc("0x2b"),dc("0x45")]}},{tag:"time",attributes:{datetime:t.to(dc("0x30")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[dc("0x3b")][dc("0x21")](t)))}]}]},{tag:"div",attributes:{class:[dc("0x46"),dc("0x1c")]},children:[this[dc("0x34")],this.discardButton]},{tag:dc("0x26"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[dc("0x7")].isExternal&&e[dc("0x23")]({tag:dc("0x26"),attributes:{class:["ck-comment__external"]},children:[{text:this[dc("0x3")]()}]});const n={tag:"div",attributes:{class:[dc("0x1a"),t.if(dc("0xb"),"ck-suggestion-wrapper--active"),t.to(dc("0x3f"),(t=>"ck-suggestion-"+t)),this._config[dc("0x20")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[dc("0x7")].id,"data-thread-id":this[dc("0x7")][dc("0x37")].id,"data-author-id":this[dc("0x7")][dc("0x25")].id,tabindex:-1},children:[{tag:dc("0x26"),attributes:{class:[dc("0x33"),dc("0x2c")]},children:[this[dc("0x24")],{tag:"div",attributes:{class:["ck-suggestion__main",dc("0x41")]},children:e}]}]};return this[dc("0x43")]&&this.commentThreadInputView&&(n[dc("0x8")].push(this[dc("0x43")],this[dc("0x42")]),this.commentsListView[dc("0x40")](dc("0x2a")).to(this),this[dc("0x43")][dc("0x40")](dc("0x49")).to(this),this.commentThreadInputView[dc("0x40")]("editorReady").to(this),this[dc("0x42")][dc("0x40")](dc("0x49")).to(this)),n}render(){super.render(),this._descriptionElement=this[dc("0x3d")][dc("0x0")](".ck-annotation__content-wrapper"),this._descriptionElement[dc("0x1b")]=this[dc("0x12")],this.on("change:description",((t,e,n)=>{this[dc("0x19")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[dc("0x2")]);return i[dc("0x39")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[dc("0x2e")]({attributes:{class:n}}),i.on(dc("0x36"),(()=>{this[dc("0x2f")](o,this[dc("0x7")].id)})),i}[dc("0x3")](){return"importWord"===this[dc("0x7")][dc("0xf")][dc("0x17")].source?Yo(this[dc("0x2")],dc("0x27")):Yo(this.locale,dc("0x22"))}[dc("0x4a")](){return this[dc("0x7")][dc("0x29")]?dc("0x1f")===this._model[dc("0xf")][dc("0x17")][dc("0x48")]?Yo(this[dc("0x2")],dc("0x4"),this[dc("0x7")][dc("0x28")].name):Yo(this.locale,"EXTERNAL_AVATAR",this[dc("0x7")][dc("0x28")].name):null}}function mc(t,e){let n="";return n+=t[dc("0x15")]("*").map(((t,e)=>e%2!=0?dc("0x2d")+fc(t)+dc("0x44"):fc(t))).join(""),e&&(n+=dc("0x31")+e.value+dc("0x35")+e[dc("0x38")]+dc("0x6")),n}function fc(t){const e=document[dc("0xe")](dc("0x4d"));return e[dc("0x47")]=t,e.innerHTML}const hc=["commentThread","comments.maxCommentCharsWhenCollapsed","type","getByInnerView","isOn","_handleSuggestionControllerDelayed","CommentView","getAllAdjacentSuggestions","head","_descriptionFactory","arrowView","acceptAllSuggestions","model","acceptSelectedSuggestions","getDescriptions","getMarkerNames","innerView","push","acceptButton","descriptionParts","_viewToController","discardSelectedSuggestions","buttonView","_disableComments","commands","createAnnotation","has","change:activeAnnotations","editing","_initializeController","Annotations","init","EditorAnnotations","actionView","_destroyController","destroy","Discard all selected suggestions","_bindAnnotationToEditors","from","mainView","refreshSelectedViews","hasSuggestion","Track changes","lowest","isDirty","get","Accept all selected suggestions","isMultiRange","discardButton","_createUIButton","delete","bind","clear","Accept all suggestions","some","requires","suggestion-","unbind","source","trackChanges.disableComments","getRanges","values","activeMarkers","change:previous","focus","suggestionUnloaded","_suggestionToController","size","registerAnnotation","getSuggestion","trackChanges","locale","config","define","filter","_handleControllerBuffer","TrackChangesUI","comments","createAnnotationView","view","execute","add","length","isEnabled","_updateController","addSourceCollector","CommentsUI","getMarkers","editor","button","_refreshActiveMarkers","plugins","isInContent","activeAnnotations","addComment","commandName","set","SuggestionThreadView","_annotationViews","separator","discardAllSuggestions","listenTo","trackChanges.SuggestionThreadView","map","CommentsRepository","toMany","getJoined","TrackChangesEditing"];var pc,bc;pc=hc,bc=448,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("0x27")](){return[Wa,r.Users,Ec("0x58"),Ec("0xe"),Ec("0x10")]}static get pluginName(){return Ec("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[Ec("0x4")]=new Map,this[Ec("0x52")]=new Map,this[Ec("0x3b")]=new Map;const e=this[Ec("0x48")][Ec("0x38")];e[Ec("0x39")](Ec("0x56"),gc),e[Ec("0x39")](Ec("0x2b"),!1),this[Ec("0x7")]=e[Ec("0x1d")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x3b")][Ec("0x33")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3b")]){const n=this._suggestionToController[Ec("0xa")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0xd")](t)}this.editor[Ec("0x4b")][Ec("0x1d")](Ec("0x10"))[Ec("0x18")](),this[Ec("0x4a")](),this[Ec("0x3b")][Ec("0x24")]()}),10),this[Ec("0x3b")].set(t,e)}[Ec("0xf")](){const t=this.editor,e=t[Ec("0x4b")].get(Ec("0x5b")),n=t.plugins[Ec("0x1d")](Ec("0xe")),o=t[Ec("0x4b")].get(Ec("0x10")),s=t[Ec("0x4b")][Ec("0x1d")](Ec("0x58"));t.ui.componentFactory[Ec("0x41")](Ec("0x36"),(t=>this[Ec("0x21")](t))),o[Ec("0x45")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x32")])){const o=e[Ec("0x63")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x1f")]){s.push(...t[Ec("0x2c")]());continue}const e=t.getFirstRange();if(s[Ec("0x42")]>0){const t=s[0][Ec("0x5a")](e);if(t){s[0]=t;continue}}s[Ec("0x1")](e)}t[Ec("0x1")]([n.view,s])}return t})),this[Ec("0x55")](e,"suggestionLoaded",((t,e)=>{this[Ec("0x55")](e,Ec("0x2f"),((t,n,o,s)=>{e[Ec("0x4c")]&&(null==o?(this[Ec("0x44")](s[Ec("0x64")]),this[Ec("0x61")](e,!1)):(this[Ec("0x44")](o[Ec("0x64")]),this[Ec("0x61")](e,!0)))})),null===e.previous?this[Ec("0x61")](e,!1):this._updateController(e.head)})),this[Ec("0x55")](e,Ec("0x31"),((t,e,n)=>{this.stopListening(e,Ec("0x2f")),this[Ec("0x3b")][Ec("0x22")](e);const o=n?n[Ec("0x64")]:e,s=this[Ec("0x32")][Ec("0x1d")](o);null!==n&&this._updateController(o),null===n&&s&&this[Ec("0x12")](e)})),this[Ec("0x55")](e,"suggestionChanged",((t,e)=>{this[Ec("0x44")](e)})),this[Ec("0x55")](n,Ec("0xb"),(()=>{this[Ec("0x4a")]()})),this[Ec("0x55")](s,Ec("0x4e"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x19")](n))return;const s=e[Ec("0x35")](n);this._suggestionToController[Ec("0x1d")](s)[Ec("0x3f")][Ec("0x30")]()}),{priority:Ec("0x1b")})}_refreshActiveMarkers(){const t=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")]("Annotations"),e=this[Ec("0x48")][Ec("0x4b")][Ec("0x1d")](Ec("0x5b")),n=Array[Ec("0x16")](t[Ec("0x4d")],(t=>t[Ec("0x0")]))[Ec("0x3a")]((t=>this[Ec("0x4")][Ec("0xa")](t))),o=[];for(const t of n){const e=this[Ec("0x4")][Ec("0x1d")](t)[Ec("0x68")].getAllAdjacentSuggestions();o[Ec("0x1")](...e.reduce(((t,e)=>[...t,...e[Ec("0x6b")]()]),[]))}e[Ec("0x2e")]=o}[Ec("0x21")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x48")][Ec("0x8")][Ec("0x1d")]("trackChanges"),r=Yo(t,Ec("0x1a"));n[Ec("0x6")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x6")][Ec("0x23")]("isOn").to(o,"value"),n[Ec("0x6")].on(Ec("0x40"),(()=>{o.execute(),this[Ec("0x48")][Ec("0xc")][Ec("0x3f")][Ec("0x30")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Ec("0x36")}},{type:Ec("0x53")},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x25")),commandName:Ec("0x67")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x1e")),commandName:Ec("0x69")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Ec("0x54")}},{type:Ec("0x49"),model:{withText:!0,label:Yo(t,Ec("0x14")),commandName:Ec("0x5")}}];for(const t of x){let e={type:Ec("0x53")};if(t.model){const n=new s.Model(t[Ec("0x68")]),o=this[Ec("0x48")][Ec("0x8")].get(n.commandName);n[Ec("0x23")](Ec("0x60"),Ec("0x43")).to(o,"value","isEnabled"),e={type:t[Ec("0x5e")],model:n}}i[Ec("0x41")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ec("0x68")]))[Ec("0x57")]((t=>this[Ec("0x48")][Ec("0x8")][Ec("0x1d")](t.model[Ec("0x4f")]))),c=n[Ec("0x6")];return c.actionView[Ec("0x29")](Ec("0x43")),c[Ec("0x66")][Ec("0x29")](Ec("0x43")),c[Ec("0x11")][Ec("0x23")](Ec("0x43")).to(o,Ec("0x43")),c[Ec("0x66")].bind("isEnabled")[Ec("0x59")](a,"isEnabled",((...t)=>t[Ec("0x26")]((t=>t)))),n.on("execute",(t=>{this.editor.execute(t[Ec("0x2a")].commandName),this[Ec("0x48")].editing[Ec("0x3f")][Ec("0x30")]()})),n}[Ec("0xd")](t){const e=this[Ec("0x48")],n=e[Ec("0x38")],o=e[Ec("0x4b")].get(Ec("0xe")),s=e[Ec("0x4b")][Ec("0x1d")](Ec("0x58")),i=e[Ec("0x4b")][Ec("0x1d")](Ec("0x10")),x=e[Ec("0x4b")].get(r.Users).me,a=n[Ec("0x1d")](Ec("0x36"))[Ec("0x51")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1d")](Ec("0x46"));let u,d;this[Ec("0x52")][Ec("0xa")](t.id)?(d=this[Ec("0x52")].get(t.id),u=d.mainView):(u=new a(e[Ec("0x37")],t,x,{disableComments:this._disableComments,editorConfig:n[Ec("0x1d")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x1d")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Ec("0x1d")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Ec("0x1d")](Ec("0x5d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x1d")]("locale")),CommentView:n.get(Ec("0x3d"))[Ec("0x62")],CommentsListView:c,CommentThreadInputView:l}),u[Ec("0x2")].on(Ec("0x40"),(()=>{e.editing[Ec("0x3f")][Ec("0x30")]()})),u[Ec("0x20")].on(Ec("0x40"),(()=>{e[Ec("0xc")][Ec("0x3f")].focus()})),d=o[Ec("0x3e")](this[Ec("0x48")][Ec("0x37")],u),d[Ec("0x23")]("isDirty").to(u,Ec("0x1c")),d[Ec("0x23")]("length").to(u),d[Ec("0x23")](Ec("0x5e")).to(u,"type",(t=>Ec("0x28")+t)),this[Ec("0x52")][Ec("0x50")](t.id,d));const g=s.createCommentThreadController(t[Ec("0x5c")],u),m=new oc(e,t,u,g),f=t.getAllAdjacentSuggestions()[Ec("0x3a")]((t=>t[Ec("0x4c")]));u[Ec("0x3")]=e[Ec("0x4b")][Ec("0x1d")](Ec("0x5b"))._descriptionFactory[Ec("0x6a")](f),this[Ec("0x32")][Ec("0x50")](t,m),this[Ec("0x4")][Ec("0x50")](u,m);const h=o[Ec("0x9")]({view:d,target:()=>{const n=[],o=t[Ec("0x63")]()[Ec("0x3a")]((t=>t[Ec("0x4c")]));for(const t of o)n.push(...t[Ec("0x47")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0xc")],n)},type:()=>Ec("0x28")+m[Ec("0x3f")][Ec("0x5e")]});s[Ec("0x15")](u,h),o[Ec("0x41")](h),i[Ec("0x34")](h)}[Ec("0x12")](t){const e=this[Ec("0x48")].plugins[Ec("0x1d")]("Annotations"),n=this._suggestionToController[Ec("0x1d")](t),o=n.view,s=e[Ec("0x5f")](o);s&&e.remove(s),this[Ec("0x32")][Ec("0x22")](t),this[Ec("0x4")][Ec("0x22")](o),n[Ec("0x13")]()}[Ec("0x44")](t){if(!t[Ec("0x4c")]||!this[Ec("0x32")][Ec("0xa")](t))return;const e=this[Ec("0x48")].plugins.get(Ec("0x5b")),n=this._suggestionToController.get(t),o=t[Ec("0x63")]();n.view[Ec("0x3")]=e[Ec("0x65")].getDescriptions(o)}[Ec("0x13")](){for(const t of this[Ec("0x32")].keys())this._destroyController(t);for(const t of this[Ec("0x52")][Ec("0x2d")]())t[Ec("0x17")][Ec("0x13")]();super.destroy()}}var Tc,Cc,yc=["getSuggestion","plugins","editor","adapter","get","addSuggestionData","requires","TrackChanges","addSuggestion","getSuggestions"];Tc=yc,Cc=474,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("0x2")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x3")}set[kc("0x9")](t){this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x9")]=t}get[kc("0x9")](){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa).adapter}[kc("0x4")](t){return this.editor.plugins[kc("0x0")](Wa)[kc("0x1")](t)}[kc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x8")][kc("0x7")][kc("0x0")](Wa)[kc("0x5")]({skipNotAttached:t,toJSON:e})}[kc("0x6")](t){return this.editor[kc("0x7")][kc("0x0")](Wa)[kc("0x6")](t)}}const Rc=["init","trackChangesData","createElement","set","reduce","editor","editorCreator","Pagination","getRootNames","end","createDocumentFragment","requires","document","data","_adapter","constructor","destroy","config","rootsAttributes","create","acceptAllSuggestions","plugins","getSuggestions","CommentsRepository","div","get","getUser","getDataWithDiscardedSuggestions","getFullData","getDataWithAcceptedSuggestions","getRootsAttributes","TrackChangesEditing","pluginName","model","function","result","map","discardAllSuggestions","Users","useAnonymousUser","users","define","addSuggestionData"];var vc,Ic;vc=Rc,Ic=217,function(t){for(;--t;)vc.push(vc.shift())}(++Ic);const Sc=function(t,e){return Rc[t-=0]},Lc=[Sc("0x5")];class Nc extends t.Plugin{static get[Sc("0x9")](){return[Wa]}static get[Sc("0x1e")](){return"TrackChangesData"}[Sc("0x29")](){const t=this[Sc("0x3")];if(t[Sc("0xf")][Sc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t.model[Sc("0xa")][Sc("0x6")]()[Sc("0x2")](((t,e)=>(t[e]="",t)),{});return t[Sc("0xd")][Sc("0x11")](n,e)})),Sc("0x20")!=typeof t[Sc("0xf")][Sc("0x17")](Sc("0x2a"))[Sc("0x4")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Sc("0x1b")](t){return Oc(this[Sc("0x3")],!0,t)}[Sc("0x19")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Sc("0x1e")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Sc("0x21")]=Sc("0x7")}[Sc("0x29")](){this[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x15"))._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[Sc("0x3")][Sc("0x13")][Sc("0x17")](Sc("0x1d"))[Sc("0xc")]=null}}function wc(t){return void 0!==t.getRootsAttributes}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Sc("0x13")].push(Wa,Mc),o[Sc("0x10")]=wc(t)?t[Sc("0x1c")]():void 0;const s=document[Sc("0x8")](),i=t[Sc("0xf")].get(Sc("0x2a"))[Sc("0x4")],x=await i(o,(()=>function(t){const e=document[Sc("0x0")](Sc("0x16"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x1f")][Sc("0xa")][Sc("0x6")]().reduce(((e,n)=>(e[n]=t[Sc("0xb")][Sc("0x17")]({rootName:n}),e)),{}),o=t[Sc("0x13")][Sc("0x17")]("Users")[Sc("0x26")][Sc("0x22")]((t=>({id:t.id,name:t.name}))),s=t[Sc("0x13")].get(Sc("0x1d"))[Sc("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x13")][Sc("0x17")](Sc("0x24")),i=e[Sc("0x13")][Sc("0x17")](Sc("0x1d"));for(const t of o)r[Sc("0x18")](t.id)||r.addUser(t);r.me||r[Sc("0x25")]();for(const t of s)i[Sc("0x28")](t);e[Sc("0xb")][Sc("0x1")](n)}(t,x),x.execute(Sc(e?"0x12":"0x23"));const a=wc(x)?x[Sc("0x1a")](n):x.data[Sc("0x17")](n);return await x[Sc("0xe")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|